Sigma Moment
Sigma Moment
Sigma Moment
txt */
(self.webpackChunkapp_entry=self.webpackChunkapp_entry||[]).push([[736],{54597:
(e,t,n)=>{var r=n(5395),i=n(62121),o=i;o.v1=r,o.v4=i,e.exports=o},66132:e=>{for(var
t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var
r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r+
+]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r+
+]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},26492:e=>{var t="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var
n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new
Array(16);e.exports=function(){for(var e,t=0;t<16;t+
+)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},5395:
(e,t,n)=>{var r,i,o=n(26492),s=n(66132),a=0,c=0;e.exports=function(e,t,n){var
u=t&&n||0,l=t||[],h=(e=e||{}).node||r,d=void 0!==e.clockseq?
e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|
f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!
==e.msecs?e.msecs:(new Date).getTime(),g=void
0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),
(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create
more than 10M uuids/sec");a=p,c=g,i=d;var v=(1e4*(268435455&(p+=122192928e5))+g)
%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var
b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u+
+]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var y=0;y<6;++y)l[u+y]=h[y];return
t||s(l)}},62121:(e,t,n)=>{var r=n(26492),i=n(66132);e.exports=function(e,t,n){var
o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var
s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var
a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},85604:(e,t,n)=>{"use strict";var
r=n(95766),i=n(62333),o=n(77906);function s(){return c.TYPED_ARRAY_SUPPORT?
2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed
array length");return c.TYPED_ARRAY_SUPPORT?(e=new
Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function
c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new
c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding
is specified then the first argument must be a string");return h(this,e)}return
u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new
TypeError('"value" argument must not be a number');return"undefined"!=typeof
ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||
t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+
(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void
0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new
Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}
(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||
(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string
encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}
(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return
0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof
ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof
t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return
d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer,
ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof
e)throw new TypeError('"size" argument must be a number');if(e<0)throw new
RangeError('"size" argument must not be negative')}function h(e,t)
{if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;+
+n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|
f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e)
{if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum
size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t)
{if(c.isBuffer(e))return e.length;if("undefined"!=typeof
ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e
instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var
n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t)
{case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void
0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return
2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return
U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 P(this,t,n);case"utf8":case"utf-8":return
C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return
I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new
TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n)
{var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-
1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-
2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)
{if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof
t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-
1:b(e,t,n,r,i);if("number"==typeof t)return
t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?
Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,
n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or
Buffer")}function b(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!
==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-
16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t)
{return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o+
+)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!
==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d+
+)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(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;if(o
%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s)
{var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function
w(e,t,n,r){return G(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return G(function(e)
{for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}
(t),e,n,r)}function E(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return
G(H(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var
n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n
%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return
0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function
C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var
o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case
1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|
63&o)>127&&(l=c);break;case
3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|
63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case
4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<1
8|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?
(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|
1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=O)return
String.fromCharCode.apply(String,e);for(var
n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}
(r)}t.lW=c,t.h2=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?
n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return
e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return
42}},42===e.foo()&&"function"==typeof
e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}
(),s(),c.poolSize=8192,c._augment=function(e){return
e.__proto__=c.prototype,e},c.from=function(e,t,n){return
u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c
.__proto__=Uint8Array,"undefined"!=typeof
Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.speci
es,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r)
{return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?
a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e)
{return h(null,e)},c.allocUnsafeSlow=function(e){return
h(null,e)},c.isBuffer=function(e){return!(null==e||!
e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new
TypeError("Arguments must be Buffers");if(e===t)return 0;for(var
n=e.length,r=t.length,i=0,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},c.isEncoding=function(e)
{switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-
8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t)
{if(!o(e))throw new TypeError('"list" argument must be an Array of
Buffers');if(0===e.length)return c.alloc(0);var n;if(void
0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var
r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw
new TypeError('"list" argument must be an Array of
Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!
0,c.prototype.swap16=function(){var
e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of
16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return
this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new
RangeError("Buffer size must be a multiple of 32-bits");for(var
t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return
this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new
RangeError("Buffer size must be a multiple of 64-bits");for(var
t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return
this},c.prototype.toString=function(){var e=0|this.length;return
0===e?"":0===arguments.length?
C(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!
c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||
0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.h2;return
this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join("
"),this.length>n&&(e+=" ... ")),"<Buffer
"+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new
TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?
e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||
i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return
0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-
(r>>>=0),s=(n>>>=0)-
(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),h=0;h<a;++h)if(u[h]!
==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?
1:0},c.prototype.includes=function(e,t,n){return-1!
==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!
0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!
1)},c.prototype.write=function(e,t,n,r){if(void
0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof
t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string,
encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void
0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||
n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to
write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r)
{case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return
w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return
E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new
TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!
0}},c.prototype.toJSON=function()
{return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var
O=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;+
+i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var
r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return
r}function P(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var
o="",s=t;s<n;++s)o+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return o}function
D(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 k(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 R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer"
argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value"
argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of
range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-
n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r)
{t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;+
+i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(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 F(e,t,n,r,o){return o||
L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||
L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var
n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?
(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)
(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void
0);for(var o=0;o<i;++o)n[o]=this[o+e]}return
n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return
r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return
r},c.prototype.readUInt8=function(e,t){return t||
k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||
k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t)
{return t||k(e,2,this.length),this[e]<<8|
this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),
(this[e]|this[e+1]<<8|
this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return
t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|
this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||
k(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},c.prototype.readIntBE=function(e,t,n){e|=0,t|
=0,n||k(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},c.prototype.readInt8=function(e,t)
{return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]
+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var
n=this[e]|this[e+1]<<8;return 32768&n?4294901760|
n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|
this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t)
{return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|
this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||
k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|
this[e+3]},c.prototype.readFloatLE=function(e,t){return t||
k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t)
{return t||k(e,4,this.length),i.read(this,e,!
1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||
k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t)
{return t||k(e,8,this.length),i.read(this,e,!
1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n)
{return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!
0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;+
+o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--
o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-
128),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=func
tion(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!
0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!
0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!
1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!
0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!
1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||
(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return
0;if(0===e.length||0===this.length)return 0;if(t<0)throw new
RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new
RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out
of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var
i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!
c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else
Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return
o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof
t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var
i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new
TypeError("encoding must be a string");if("string"==typeof r&&!
c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof
e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range
index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||
(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:U(new
c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var
B=/[^+\/0-9A-Za-z-_]/g;function U(e,t){var n;t=t||1/0;for(var
r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i)
{if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 H(e){return r.toByteArray(function(e)
{if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}
(e))}function G(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}},35453:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var
r=n(80100),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},80100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},59157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(65426).__exportStar)(n(67527),t)},67527:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(65426),i=n(80100),o=n(35453),s=n(20328),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},37709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(16778),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},20328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(37709);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(65493);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(92592);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(30705);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},65493:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},92592:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},30705:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},65426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},62961:(e,t,n)=>{"use strict";var
r=n(95766),i=n(62333),o=n(77906);function s(){return c.TYPED_ARRAY_SUPPORT?
2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed
array length");return c.TYPED_ARRAY_SUPPORT?(e=new
Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function
c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new
c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding
is specified then the first argument must be a string");return h(this,e)}return
u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new
TypeError('"value" argument must not be a number');return"undefined"!=typeof
ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||
t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+
(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void
0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new
Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}
(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||
(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string
encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}
(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return
0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof
ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof
t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return
d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer,
ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof
e)throw new TypeError('"size" argument must be a number');if(e<0)throw new
RangeError('"size" argument must not be negative')}function h(e,t)
{if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;+
+n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|
f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e)
{if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum
size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t)
{if(c.isBuffer(e))return e.length;if("undefined"!=typeof
ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e
instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var
n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t)
{case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void
0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return
2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return
U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 P(this,t,n);case"utf8":case"utf-8":return
C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return
I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new
TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n)
{var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-
1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-
2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)
{if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof
t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-
1:b(e,t,n,r,i);if("number"==typeof t)return
t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?
Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,
n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or
Buffer")}function b(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!
==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-
16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t)
{return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o+
+)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!
==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d+
+)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(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;if(o
%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s)
{var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function
w(e,t,n,r){return G(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return G(function(e)
{for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}
(t),e,n,r)}function E(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return
G(H(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var
n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n
%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return
0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function
C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var
o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case
1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|
63&o)>127&&(l=c);break;case
3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|
63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case
4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<1
8|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?
(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|
1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=O)return
String.fromCharCode.apply(String,e);for(var
n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}
(r)}t.lW=c,t.h2=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?
n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new
Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function()
{return 42}},42===e.foo()&&"function"==typeof
e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}
(),s(),c.poolSize=8192,c._augment=function(e){return
e.__proto__=c.prototype,e},c.from=function(e,t,n){return
u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c
.__proto__=Uint8Array,"undefined"!=typeof
Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.speci
es,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r)
{return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?
a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e)
{return h(null,e)},c.allocUnsafeSlow=function(e){return
h(null,e)},c.isBuffer=function(e){return!(null==e||!
e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new
TypeError("Arguments must be Buffers");if(e===t)return 0;for(var
n=e.length,r=t.length,i=0,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},c.isEncoding=function(e)
{switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-
8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t)
{if(!o(e))throw new TypeError('"list" argument must be an Array of
Buffers');if(0===e.length)return c.alloc(0);var n;if(void
0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var
r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw
new TypeError('"list" argument must be an Array of
Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!
0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new
RangeError("Buffer size must be a multiple of 16-bits");for(var
t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var
e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-
bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return
this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new
RangeError("Buffer size must be a multiple of 64-bits");for(var
t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return
this},c.prototype.toString=function(){var e=0|this.length;return
0===e?"":0===arguments.length?
C(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!
c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||
0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.h2;return
this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join("
"),this.length>n&&(e+=" ... ")),"<Buffer
"+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new
TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?
e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||
i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return
0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-
(r>>>=0),s=(n>>>=0)-
(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),h=0;h<a;++h)if(u[h]!
==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?
1:0},c.prototype.includes=function(e,t,n){return-1!
==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!
0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!
1)},c.prototype.write=function(e,t,n,r){if(void
0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof
t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string,
encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void
0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||
n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to
write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r)
{case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return
w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return
E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new
TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!
0}},c.prototype.toJSON=function()
{return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var
O=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;+
+i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var
r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return
r}function P(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var
o="",s=t;s<n;++s)o+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return o}function
D(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 k(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 R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer"
argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value"
argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of
range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-
n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r)
{t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;+
+i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(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 F(e,t,n,r,o){return o||
L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||
L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var
n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?
(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)
(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void
0);for(var o=0;o<i;++o)n[o]=this[o+e]}return
n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return
r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return
r},c.prototype.readUInt8=function(e,t){return t||
k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||
k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t)
{return t||k(e,2,this.length),this[e]<<8|
this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),
(this[e]|this[e+1]<<8|
this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return
t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|
this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||
k(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},c.prototype.readIntBE=function(e,t,n){e|=0,t|
=0,n||k(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},c.prototype.readInt8=function(e,t)
{return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]
+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var
n=this[e]|this[e+1]<<8;return 32768&n?4294901760|
n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|
this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t)
{return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|
this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||
k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|
this[e+3]},c.prototype.readFloatLE=function(e,t){return t||
k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t)
{return t||k(e,4,this.length),i.read(this,e,!
1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||
k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t)
{return t||k(e,8,this.length),i.read(this,e,!
1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n)
{return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!
0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;+
+o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--
o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-
128),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.protot
ype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-
32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!
0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!
0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!
1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!
0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!
1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||
(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return
0;if(0===e.length||0===this.length)return 0;if(t<0)throw new
RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new
RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out
of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var
i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!
c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else
Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return
o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?
(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var
i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new
TypeError("encoding must be a string");if("string"==typeof r&&!
c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof
e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range
index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||
(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:U(new
c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var
B=/[^+\/0-9A-Za-z-_]/g;function U(e,t){var n;t=t||1/0;for(var
r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i)
{if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 H(e){return r.toByteArray(function(e)
{if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}
(e))}function G(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}},6247:(e,t,n)=>{var
r=n(64026),i=n(95349),o=i;o.v1=r,o.v4=i,e.exports=o},38099:e=>{for(var
t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var
r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r+
+]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r+
+]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},64767:e=>{var t="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var
n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new
Array(16);e.exports=function(){for(var e,t=0;t<16;t+
+)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},64026:
(e,t,n)=>{var r,i,o=n(64767),s=n(38099),a=0,c=0;e.exports=function(e,t,n){var
u=t&&n||0,l=t||[],h=(e=e||{}).node||r,d=void 0!==e.clockseq?
e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|
f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!
==e.msecs?e.msecs:(new Date).getTime(),g=void
0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),
(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create
more than 10M uuids/sec");a=p,c=g,i=d;var v=(1e4*(268435455&(p+=122192928e5))+g)
%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var
b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u+
+]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var y=0;y<6;++y)l[u+y]=h[y];return
t||s(l)}},95349:(e,t,n)=>{var r=n(64767),i=n(38099);e.exports=function(e,t,n){var
o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var
s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var
a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},60407:(e,t,n)=>{var
r=n(93686),i=n(56570),o=i;o.v1=r,o.v4=i,e.exports=o},18662:e=>{for(var
t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var
r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r+
+]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r+
+]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},18898:e=>{var t="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var
n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new
Array(16);e.exports=function(){for(var e,t=0;t<16;t+
+)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},93686:
(e,t,n)=>{var r,i,o=n(18898),s=n(18662),a=0,c=0;e.exports=function(e,t,n){var
u=t&&n||0,l=t||[],h=(e=e||{}).node||r,d=void 0!==e.clockseq?
e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|
f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!
==e.msecs?e.msecs:(new Date).getTime(),g=void
0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),
(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create
more than 10M uuids/sec");a=p,c=g,i=d;var v=(1e4*(268435455&(p+=122192928e5))+g)
%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var
b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u+
+]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var y=0;y<6;++y)l[u+y]=h[y];return
t||s(l)}},56570:(e,t,n)=>{var r=n(18898),i=n(18662);e.exports=function(e,t,n){var
o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var
s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var
a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},74985:(e,t,n)=>{"use strict";var
r=n(95766),i=n(62333),o=n(77906);function s(){return c.TYPED_ARRAY_SUPPORT?
2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed
array length");return c.TYPED_ARRAY_SUPPORT?(e=new
Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function
c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new
c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding
is specified then the first argument must be a string");return h(this,e)}return
u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new
TypeError('"value" argument must not be a number');return"undefined"!=typeof
ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||
t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+
(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void
0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new
Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}
(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||
(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string
encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}
(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return
0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof
ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof
t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return
d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer,
ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof
e)throw new TypeError('"size" argument must be a number');if(e<0)throw new
RangeError('"size" argument must not be negative')}function h(e,t)
{if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;+
+n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|
f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e)
{if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum
size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t)
{if(c.isBuffer(e))return e.length;if("undefined"!=typeof
ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e
instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var
n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t)
{case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void
0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return
2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return
U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 P(this,t,n);case"utf8":case"utf-8":return
C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return
I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new
TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n)
{var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-
1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-
2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)
{if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof
t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-
1:b(e,t,n,r,i);if("number"==typeof t)return
t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?
Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,
n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or
Buffer")}function b(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!
==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-
16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t)
{return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o+
+)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!
==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d+
+)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(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;if(o
%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s)
{var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function
w(e,t,n,r){return G(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return G(function(e)
{for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}
(t),e,n,r)}function E(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return
G(H(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var
n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n
%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return
0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function
C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var
o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case
1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|
63&o)>127&&(l=c);break;case
3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|
63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case
4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<1
8|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?
(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|
1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=O)return
String.fromCharCode.apply(String,e);for(var
n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}
(r)}t.lW=c,t.h2=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?
n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return
e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return
42}},42===e.foo()&&"function"==typeof
e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}
(),s(),c.poolSize=8192,c._augment=function(e){return
e.__proto__=c.prototype,e},c.from=function(e,t,n){return
u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c
.__proto__=Uint8Array,"undefined"!=typeof
Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.speci
es,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r)
{return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?
a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e)
{return h(null,e)},c.allocUnsafeSlow=function(e){return
h(null,e)},c.isBuffer=function(e){return!(null==e||!
e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new
TypeError("Arguments must be Buffers");if(e===t)return 0;for(var
n=e.length,r=t.length,i=0,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},c.isEncoding=function(e)
{switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-
8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t)
{if(!o(e))throw new TypeError('"list" argument must be an Array of
Buffers');if(0===e.length)return c.alloc(0);var n;if(void
0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var
r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw
new TypeError('"list" argument must be an Array of
Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!
0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new
RangeError("Buffer size must be a multiple of 16-bits");for(var
t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var
e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-
bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return
this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new
RangeError("Buffer size must be a multiple of 64-bits");for(var
t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return
this},c.prototype.toString=function(){var e=0|this.length;return
0===e?"":0===arguments.length?
C(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!
c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||
0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.h2;return
this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join("
"),this.length>n&&(e+=" ... ")),"<Buffer
"+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new
TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?
e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||
i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return
0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-
(r>>>=0),s=(n>>>=0)-
(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),h=0;h<a;++h)if(u[h]!
==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?
1:0},c.prototype.includes=function(e,t,n){return-1!
==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!
0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!
1)},c.prototype.write=function(e,t,n,r){if(void
0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof
t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string,
encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void
0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||
n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to
write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r)
{case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return
w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return
E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new
TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!
0}},c.prototype.toJSON=function()
{return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var
O=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;+
+i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var
r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return
r}function P(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var
o="",s=t;s<n;++s)o+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return o}function
D(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 k(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 R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer"
argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value"
argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of
range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-
n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r)
{t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;+
+i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(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 F(e,t,n,r,o){return o||
L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||
L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var
n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?
(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)
(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void
0);for(var o=0;o<i;++o)n[o]=this[o+e]}return
n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return
r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return
r},c.prototype.readUInt8=function(e,t){return
t||k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||
k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t)
{return t||k(e,2,this.length),this[e]<<8|
this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),
(this[e]|this[e+1]<<8|
this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return
t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|
this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||
k(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},c.prototype.readIntBE=function(e,t,n){e|=0,t|
=0,n||k(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},c.prototype.readInt8=function(e,t)
{return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]
+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var
n=this[e]|this[e+1]<<8;return 32768&n?4294901760|
n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|
this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t)
{return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|
this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||
k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|
this[e+3]},c.prototype.readFloatLE=function(e,t){return t||
k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t)
{return t||k(e,4,this.length),i.read(this,e,!
1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||
k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t)
{return t||k(e,8,this.length),i.read(this,e,!
1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n)
{return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!
0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;+
+o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--
o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-
128),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=func
tion(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!
0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!
0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!
1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!
0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!
1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||
(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return
0;if(0===e.length||0===this.length)return 0;if(t<0)throw new
RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new
RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out
of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var
i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!
c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else
Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return
o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?
(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var
i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new
TypeError("encoding must be a string");if("string"==typeof r&&!
c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof
e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range
index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||
(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:U(new
c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var
B=/[^+\/0-9A-Za-z-_]/g;function U(e,t){var n;t=t||1/0;for(var
r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i)
{if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 H(e){return r.toByteArray(function(e)
{if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}
(e))}function G(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}},27430:(e,t,n)=>{var
r=n(96187),i=n(38073),o=i;o.v1=r,o.v4=i,e.exports=o},61137:e=>{for(var
t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var
r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r+
+]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r+
+]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},96669:e=>{var t="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var
n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new
Array(16);e.exports=function(){for(var e,t=0;t<16;t+
+)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},96187:
(e,t,n)=>{var r,i,o=n(96669),s=n(61137),a=0,c=0;e.exports=function(e,t,n){var
u=t&&n||0,l=t||[],h=(e=e||{}).node||r,d=void 0!==e.clockseq?
e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|
f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!
==e.msecs?e.msecs:(new Date).getTime(),g=void
0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),
(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create
more than 10M uuids/sec");a=p,c=g,i=d;var v=(1e4*(268435455&(p+=122192928e5))+g)
%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var
b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u+
+]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var y=0;y<6;++y)l[u+y]=h[y];return
t||s(l)}},38073:(e,t,n)=>{var r=n(96669),i=n(61137);e.exports=function(e,t,n){var
o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var
s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var
a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},44002:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var
r=n(30149),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t
.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var o=new
Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},30149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},79387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),n(91205).__exportStar(n(43572),t)},43572:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(91205),i=n(30149),o=n(44002),s=n(4959),a=function(){function e(e)
{this.secret=e,this.hash=new o.RawSha256,this.reset()}return
e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return r.__awaiter(this,void 0,void 0,(function(){return
r.__generator(this,(function(e)
{return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new
o.RawSha256,this.secret){this.outer=new o.RawSha256;var e=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(this.secret),t=new Uint8Array(i.BLOCK_SIZE);t.set(e);for(var
n=0;n<i.BLOCK_SIZE;n+
+)e[n]^=54,t[n]^=92;for(this.hash.update(e),this.outer.update(t),n=0;n<e.byteLength
;n++)e[n]=0}},e}();t.Sha256=a},91205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},73376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(16778),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},4959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(73376);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return
r.convertToBuffer}});var i=n(71205);Object.defineProperty(t,"isEmptyData",
{enumerable:!0,get:function(){return i.isEmptyData}});var
o=n(91443);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function()
{return o.numToUint8}});var s=n(51650);Object.defineProperty(t,"uint32ArrayFrom",
{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},71205:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},91443:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},51650:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new
Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return
Uint32Array.from(e)}},84059:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0})},36205:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0})},4765:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0})},53343:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0})},61533:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!
1}},77441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0});var
r=n(65485);r.__exportStar(n(84059),t),r.__exportStar(n(36205),t),r.__exportStar(n(4
765),t),r.__exportStar(n(53343),t),r.__exportStar(n(61533),t)},65485:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},80496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},30394:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(61897),i=n(42215),o=n(14412),s=n(17742),a=n(77441),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},61897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(3796),i=n(80496),o=n(85065),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return
this.operation.then((function(e){return new Promise((function(t,n)
{e.onerror=function(){n(new Error("Error encountered finalizing
hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n(new
Error("Error encountered finalizing hash"))},e.finish()}))}))},e}();function c(e)
{return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},38296:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(4561).__exportStar)(n(30394),t);var
r=n(61897);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function()
{return r.Sha256}});var i=n(42215);Object.defineProperty(t,"WebCryptoSha256",
{enumerable:!0,get:function(){return i.Sha256}})},3796:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},42215:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(59557),i=n(80496),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},4561:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},89132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.RawSha256=void 0;var r=n(60351),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<
30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|
0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},60351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},14412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(51458).__exportStar)(n(697),t)},697:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(51458),i=n(60351),o=n(89132),s=n(59557),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},51458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},17742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),n(7201).__exportStar(n(69866),t)},69866:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(7201),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","si
gn","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},7201:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importSta
r:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},72571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(85065),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},59557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(72571);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(39761);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(19878);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(82307);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},39761:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},19878:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},82307:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},85065:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},4716:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67548:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83407:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74088:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81912:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!
1}},90585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0});var
r=n(26885);r.__exportStar(n(4716),t),r.__exportStar(n(67548),t),r.__exportStar(n(83
407),t),r.__exportStar(n(74088),t),r.__exportStar(n(81912),t)},26885:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},15667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},32394:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(58717),i=n(31334),o=n(99116),s=n(23903),a=n(90585),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},58717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(86372),i=n(15667),o=n(98034),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return this.operation.then((function(e){return
new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered
finalizing hash"))},e.oncomplete=function(){e.result&&t(new
Uint8Array(e.result)),n(new Error("Error encountered finalizing
hash"))},e.finish()}))}))},e}();function c(e){return"string"==typeof e?
(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},74511:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(39984).__exportStar)(n(32394),t);var
r=n(58717);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function()
{return r.Sha256}});var i=n(31334);Object.defineProperty(t,"WebCryptoSha256",
{enumerable:!0,get:function(){return i.Sha256}})},86372:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},31334:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(7448),i=n(15667),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},39984:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},17734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.RawSha256=void 0;var r=n(77049),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},77049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},99116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(61197).__exportStar)(n(88411),t)},88411:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(61197),i=n(77049),o=n(17734),s=n(7448),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},61197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPr
ivateFieldGet:()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},23903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),n(92584).__exportStar(n(19081),t)},19081:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(92584),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","s
ign","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},92584:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[
1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},32898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(98034),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},7448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(32898);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(60729);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(44767);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(41438);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},60729:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},44767:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},41438:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},98034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},98426:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1348:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39005:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30303:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},69340:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!1}},674:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var
r=n(86539);r.__exportStar(n(98426),t),r.__exportStar(n(1348),t),r.__exportStar(n(39
005),t),r.__exportStar(n(30303),t),r.__exportStar(n(69340),t)},86539:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw
o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},47709:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},1733:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(9342),i=n(27815),o=n(48891),s=n(19972),a=n(674),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},9342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(43523),i=n(47709),o=n(54757),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return this.operation.then((function(e){return
new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered
finalizing hash"))},e.oncomplete=function(){e.result&&t(new
Uint8Array(e.result)),n(new Error("Error encountered finalizing
hash"))},e.finish()}))}))},e}();function c(e){return"string"==typeof e?
(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},55246:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(16824).__exportStar)(n(1733),t);var
r=n(9342);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return
r.Sha256}});var i=n(27815);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!
0,get:function(){return i.Sha256}})},43523:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},27815:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(27742),i=n(47709),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},16824:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw
o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},33556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.RawSha256=void 0;var r=n(30013),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},30013:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},48891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(68693).__exportStar)(n(94187),t)},94187:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(68693),i=n(30013),o=n(33556),s=n(27742),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},68693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},19972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),n(19355).__exportStar(n(45591),t)},45591:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(19355),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","s
ign","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},19355:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}
}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},32490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(54757),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},27742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(32490);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(92867);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(23497);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(35525);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},92867:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},23497:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},35525:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},54757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},95193:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81600:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76472:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19711:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7909:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!
1}},70762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0});var
r=n(5768);r.__exportStar(n(95193),t),r.__exportStar(n(81600),t),r.__exportStar(n(76
472),t),r.__exportStar(n(19711),t),r.__exportStar(n(7909),t)},5768:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},49738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},79227:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(43178),i=n(51982),o=n(11388),s=n(86129),a=n(70762),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},43178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(83966),i=n(49738),o=n(47408),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return this.operation.then((function(e){return
new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered
finalizing hash"))},e.oncomplete=function(){e.result&&t(new
Uint8Array(e.result)),n(new Error("Error encountered finalizing
hash"))},e.finish()}))}))},e}();function c(e){return"string"==typeof e?
(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},79258:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(22043).__exportStar)(n(79227),t);var
r=n(43178);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function()
{return r.Sha256}});var i=n(51982);Object.defineProperty(t,"WebCryptoSha256",
{enumerable:!0,get:function(){return i.Sha256}})},83966:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},51982:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(71670),i=n(49738),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},22043:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return
e;var t={};if(null!=e)for(var n in
e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e)
{return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new
TypeError("attempted to get private field on non-instance");return
t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set
private field on non-instance");return t.set(e,n),n}},40093:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var
r=n(37437),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},37437:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},11388:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(84947).__exportStar)(n(46457),t)},46457:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(84947),i=n(37437),o=n(40093),s=n(71670),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},84947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return
this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!
function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}
(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?
Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in
e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e)
{return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new
TypeError("attempted to get private field on non-instance");return
t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set
private field on non-instance");return t.set(e,n),n}},86129:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),n(89144).__exportStar(n(61125),t)},61125:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(89144),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","s
ign","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},89144:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},47237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(47408),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},71670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(47237);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(66791);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(53775);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(13456);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},66791:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},53775:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},13456:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new
Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return
Uint32Array.from(e)}},47408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},36716:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99572:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59143:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39670:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21245:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!1}},4903:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var
r=n(45660);r.__exportStar(n(36716),t),r.__exportStar(n(99572),t),r.__exportStar(n(5
9143),t),r.__exportStar(n(39670),t),r.__exportStar(n(21245),t)},45660:
(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:
()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:
()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>C,__createBinding:
()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:
()=>h,__importDefault:()=>T,__importStar:()=>S,__makeTemplateObject:
()=>E,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:
()=>m,__spreadArrays:()=>v,__values:()=>p});var r=function(e,t){return
r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},7579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},84672:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(62719),i=n(55430),o=n(84914),s=n(63576),a=n(4903),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},62719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(10064),i=n(7579),o=n(40475),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return this.operation.then((function(e){return
new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered
finalizing hash"))},e.oncomplete=function(){e.result&&t(new
Uint8Array(e.result)),n(new
Error("Error encountered finalizing hash"))},e.finish()}))}))},e}();function c(e)
{return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},5095:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(38084).__exportStar)(n(84672),t);var
r=n(62719);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function()
{return r.Sha256}});var i=n(55430);Object.defineProperty(t,"WebCryptoSha256",
{enumerable:!0,get:function(){return i.Sha256}})},10064:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},55430:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(47364),i=n(7579),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},38084:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},66630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.RawSha256=void 0;var r=n(9811),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},9811:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},84914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(91282).__exportStar)(n(99689),t)},99689:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(91282),i=n(9811),o=n(66630),s=n(47364),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},91282:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},63576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),n(8745).__exportStar(n(70656),t)},70656:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(8745),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","si
gn","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},8745:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},12886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(40475),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},47364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(12886);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(38172);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(32637);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(37140);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},38172:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},32637:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},37140:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new
Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return
Uint32Array.from(e)}},40475:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},4590:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},98808:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76942:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18707:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75429:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isMsWindow=void 0;var
n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verif
y"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in
e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var
t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return
i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!
1}},28097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0});var
r=n(48266);r.__exportStar(n(4590),t),r.__exportStar(n(98808),t),r.__exportStar(n(76
942),t),r.__exportStar(n(18707),t),r.__exportStar(n(75429),t)},48266:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function
n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},79906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void
0,t.SHA_256_HASH={name:"SHA-
256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=ne
w
Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,2
28,100,155,147,76,164,149,153,27,120,82,184,85])},24549:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(58272),i=n(93546),o=n(66730),s=n(55594),a=n(28097),c=n(18281),u=function()
{function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new
i.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new
r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t)
{this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}
();t.Sha256=u},58272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.Sha256=void 0;var
r=n(34651),i=n(79906),o=n(65014),s=n(18281),a=function(){function e(e){e?
(this.operation=function(e){return new Promise((function(t,n){var
r=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]);r.oncomplete=function(){r.result&&t(r.result),n(new Error("ImportKey
completed without importing key."))},r.onerror=function(){n(new Error("ImportKey
failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)
().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function()
{}))):this.operation=Promise.resolve((0,s.locateWindow)
().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var
t=this;(0,r.isEmptyData)(e)||(this.operation=this.operation.then((function(n)
{return n.onerror=function(){t.operation=Promise.reject(new Error("Error
encountered updating hash"))},n.process(c(e)),n})),this.operation.catch((function()
{})))},e.prototype.digest=function(){return this.operation.then((function(e){return
new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered
finalizing hash"))},e.oncomplete=function(){e.result&&t(new
Uint8Array(e.result)),n(new Error("Error encountered finalizing
hash"))},e.finish()}))}))},e}();function c(e){return"string"==typeof e?
(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}t.Sha256=a},92259:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,n(18110).__exportStar)(n(24549),t);var
r=n(58272);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function()
{return r.Sha256}});var i=n(93546);Object.defineProperty(t,"WebCryptoSha256",
{enumerable:!0,get:function(){return i.Sha256}})},34651:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},93546:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(25677),i=n(79906),o=n(18281),s=function(){function e(e){this.toHash=new
Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){(0,o.locateWindow)
().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,
["sign"]).then(t,n)})),this.key.catch((function(){})))}return
e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var
t=(0,r.convertToBuffer)(e),n=new
Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.t
oHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return
this.key?this.key.then((function(t){return(0,o.locateWindow)
().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new
Uint8Array(e)}))})):(0,r.isEmptyData)(this.toHash)?
Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function()
{return(0,o.locateWindow)
().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return
Promise.resolve(new Uint8Array(e))}))},e}();t.Sha256=s},18110:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:
()=>y,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var
n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},82180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.RawSha256=void 0;var r=n(16473),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},16473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},66730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(10879).__exportStar)(n(18067),t)},18067:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(10879),i=n(16473),o=n(82180),s=n(25677),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},10879:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__genera
tor:()=>h,__importDefault:()=>T,__importStar:()=>S,__makeTemplateObject:
()=>E,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:
()=>m,__spreadArrays:()=>v,__values:()=>p});var r=function(e,t){return
r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},55594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),n(29319).__exportStar(n(9650),t)},9650:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsW
ebCrypto=void 0;var
r=n(29319),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","s
ign","verify"];function o(e){return"object"==typeof e&&"object"==typeof
e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return
e&&i.every((function(t){return"function"==typeof
e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof
e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCryp
to=s,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,
(function(){var t;return r.__generator(this,(function(n){switch(n.label){case
0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return
t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new
Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new
Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),
[2,!1];case 5:return[2]}}))}))}},29319:(e,t,n)=>{"use strict";n.r(t),n.d(t,
{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:
()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:
()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>d,__decorate:
()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:
()=>T,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:
()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:
()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.t
rys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw
o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},71796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(65014),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},25677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(71796);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(98450);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(57156);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(602);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},98450:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},57156:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},602:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},65014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:
()=>r,toUtf8:()=>i});var r=function(e){return"function"==typeof TextEncoder?
function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else
if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},i=function(e){return"function"==typeof TextDecoder?
function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var
t="",n=0,r=e.length;n<r;n++){var i=e[n];if(i<128)t+=String.fromCharCode(i);else
if(192<=i&&i<224){var o=e[++n];t+=String.fromCharCode((31&i)<<6|63&o)}else
if(240<=i&&i<365){var s="%"+[i,e[++n],e[++n],e[++n]].map((function(e){return
e.toString(16)})).join("%");t+=decodeURIComponent(s)}else
t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t}(e)}},94846:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.AwsCrc32=void 0;var r=n(10781),i=n(83288),o=n(65311),s=function(){function
e(){this.crc32=new o.Crc32}return e.prototype.update=function(e){(0,i.isEmptyData)
(e)||this.crc32.update((0,i.convertToBuffer)(e))},e.prototype.digest=function()
{return(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,
(function(e){return[2,(0,i.numToUint8)(this.crc32.digest())]}))}))},e}
();t.AwsCrc32=s},65311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var
r=n(10781),i=n(83288);t.crc32=function(e){return(new o).update(e).digest()};var
o=function(){function e(){this.checksum=4294967295}return
e.prototype.update=function(e){var t,n;try{for(var i=(0,r.__values)(e),o=i.next();!
o.done;o=i.next()){var
a=o.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return this},e.prototype.digest=function()
{return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var s=(0,i.uint32ArrayFrom)
([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249
268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,
498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,22116776
39,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,23661
15317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2
768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,370501575
9,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,348511
1705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,324
4367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2
680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,14137681
3,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,45309
2731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,36
6619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817
,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,114112
4467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,146
6479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,
1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,195781084
2,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790
376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762
050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1
742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,95372973
2,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,9061
85462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,6
28085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,299873360
8,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,396597
3030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,38037
40692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,40
57260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934
,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067
896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,293
2959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3
183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,60145043
1,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,75516
7117]),a=n(94846);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function()
{return a.AwsCrc32}})},22431:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void
0;var r=n(16778),i="undefined"!=typeof Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof
e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},83288:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(22431);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(11131);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(36580);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(33447);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},11131:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},36580:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},33447:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},10781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:
[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},90273:(e,t,n)=>{var
r=n(65314),i=n(54706),o=i;o.v1=r,o.v4=i,e.exports=o},554:e=>{for(var
t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var
r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r+
+]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r+
+]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},70436:e=>{var t="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var
n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new
Array(16);e.exports=function(){for(var e,t=0;t<16;t+
+)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},65314:
(e,t,n)=>{var r,i,o=n(70436),s=n(554),a=0,c=0;e.exports=function(e,t,n){var
u=t&&n||0,l=t||[],h=(e=e||{}).node||r,d=void 0!==e.clockseq?
e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|
f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!
==e.msecs?e.msecs:(new Date).getTime(),g=void
0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),
(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create
more than 10M uuids/sec");a=p,c=g,i=d;var v=(1e4*(268435455&(p+=122192928e5))+g)
%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var
b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u+
+]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var y=0;y<6;++y)l[u+y]=h[y];return
t||s(l)}},54706:(e,t,n)=>{var r=n(70436),i=n(554);e.exports=function(e,t,n){var
o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var
s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var
a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},18281:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{locateWindow:()=>i});const r={};function i()
{return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}},16778:
(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r,toUtf8:()=>i});const
r=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}
(e):(e=>{const t=[];for(let n=0,r=e.length;n<r;n++){const
r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else
if(n+1<e.length&&55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))){const i=65536+
((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(i>>18|240,i>>12&63|128,i>>6&63|
128,63&i|128)}else
t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)})
(e),i=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-
8").decode(e)}(e):(e=>{let t="";for(let n=0,r=e.length;n<r;n++){const
r=e[n];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){const i=e[+
+n];t+=String.fromCharCode((31&r)<<6|63&i)}else if(240<=r&&r<365){const i="%"+
[r,e[++n],e[++n],e[+
+n]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(i)}else
t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t})(e)},46434:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.RawSha256=void 0;var r=n(96642),i=function(){function e()
{this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new
Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var
t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)
throw new Error("Cannot hash more than 2^53 - 1
bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t+
+],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e
.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new
DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.b
ufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8)
{for(var i=this.bufferLength;i<r.BLOCK_SIZE;i+
+)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r
.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/
4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!
0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i+
+)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state
[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return
o},e.prototype.hashBuffer=function(){for(var
e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],
h=0;h<r.BLOCK_SIZE;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|
(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],f=(d>>>17|d<<15)^(d>>>19|
d<<13)^d>>>10,p=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|
d<<14)^d>>>3;this.temp[h]=(f+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var
g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[h]
+this.temp[h]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+
(n&i^n&o^i&o)|0;l=u,u=c,c=a,a=s+g|0,s=o,o=i,i=n,n=g+m|
0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}
();t.RawSha256=i},96642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void
0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new
Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,24536
35748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,26
14888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,
1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452
8711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,19866
61051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,
3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1
322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436
474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,277
3480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(
2,53)-1},52:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),(0,n(70781).__exportStar)(n(23518),t)},23518:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var
r=n(70781),i=n(96642),o=n(46434),s=n(42561),a=function(){function e(e)
{if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var
t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new
o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return
r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var
r=0;r<i.BLOCK_SIZE;r+
+)t[r]^=54,n[r]^=92;for(this.hash.update(t),this.outer.update(n),r=0;r<t.byteLength
;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!
this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e)
{this.error=e}},e.prototype.digestSync=function(){if(this.error)throw
this.error;return this.outer?(this.outer.finished||
this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.pr
ototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function()
{return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}
();t.Sha256=a},92243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.convertToBuffer=void 0;var r=n(16778),i="undefined"!=typeof
Buffer&&Buffer.from?function(e){return
Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof
Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e)}},42561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void
0;var r=n(92243);Object.defineProperty(t,"convertToBuffer",{enumerable:!
0,get:function(){return r.convertToBuffer}});var
i=n(51285);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function()
{return i.isEmptyData}});var o=n(26732);Object.defineProperty(t,"numToUint8",
{enumerable:!0,get:function(){return o.numToUint8}});var
s=n(48242);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function()
{return s.uint32ArrayFrom}})},51285:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void
0,t.isEmptyData=function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}},26732:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void
0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,
(16711680&e)>>16,(65280&e)>>8,255&e])}},48242:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void
0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new
Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return
Uint32Array.from(e)}},88820:(e,t,n)=>{"use strict";var
r=n(95766),i=n(62333),o=n(77906);function s(){return c.TYPED_ARRAY_SUPPORT?
2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed
array length");return c.TYPED_ARRAY_SUPPORT?(e=new
Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function
c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new
c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding
is specified then the first argument must be a string");return h(this,e)}return
u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new
TypeError('"value" argument must not be a number');return"undefined"!=typeof
ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||
t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+
(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void
0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new
Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}
(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||
(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string
encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}
(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return
0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof
ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof
t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return
d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer,
ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof
e)throw new TypeError('"size" argument must be a number');if(e<0)throw new
RangeError('"size" argument must not be negative')}function h(e,t)
{if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;+
+n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|
f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e)
{if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum
size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t)
{if(c.isBuffer(e))return e.length;if("undefined"!=typeof
ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e
instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var
n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t)
{case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void
0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return
2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return
U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 P(this,t,n);case"utf8":case"utf-8":return
C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return
I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new
TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n)
{var r=e[t];e[t]=e[n],e[n]=r}function
v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?
(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-
2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)
{if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof
t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-
1:b(e,t,n,r,i);if("number"==typeof t)return
t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?
Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,
n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or
Buffer")}function b(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!
==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-
16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t)
{return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o+
+)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!
==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d+
+)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(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;if(o
%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s)
{var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function
w(e,t,n,r){return G(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return G(function(e)
{for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}
(t),e,n,r)}function E(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return
G(H(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){for(var
n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n
%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return
0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function
C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var
o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case
1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|
63&o)>127&&(l=c);break;case
3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|
63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case
4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<1
8|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?
(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|
1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=O)return
String.fromCharCode.apply(String,e);for(var
n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}
(r)}t.lW=c,t.h2=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?
n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return
e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return
42}},42===e.foo()&&"function"==typeof
e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}
(),s(),c.poolSize=8192,c._augment=function(e){return
e.__proto__=c.prototype,e},c.from=function(e,t,n){return
u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c
.__proto__=Uint8Array,"undefined"!=typeof
Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.speci
es,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r)
{return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?
a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e)
{return h(null,e)},c.allocUnsafeSlow=function(e){return
h(null,e)},c.isBuffer=function(e){return!(null==e||!
e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new
TypeError("Arguments must be Buffers");if(e===t)return 0;for(var
n=e.length,r=t.length,i=0,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},c.isEncoding=function(e)
{switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-
8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t)
{if(!o(e))throw new TypeError('"list" argument must be an Array of
Buffers');if(0===e.length)return c.alloc(0);var n;if(void
0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var
r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw
new TypeError('"list" argument must be an Array of
Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!
0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new
RangeError("Buffer size must be a multiple of 16-bits");for(var
t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var
e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-
bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return
this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new
RangeError("Buffer size must be a multiple of 64-bits");for(var
t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return
this},c.prototype.toString=function(){var e=0|this.length;return
0===e?"":0===arguments.length?
C(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!
c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||
0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.h2;return
this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join("
"),this.length>n&&(e+=" ... ")),"<Buffer
"+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new
TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?
e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||
i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return
0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-
(r>>>=0),s=(n>>>=0)-
(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),h=0;h<a;++h)if(u[h]!
==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?
1:0},c.prototype.includes=function(e,t,n){return-1!
==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!
0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!
1)},c.prototype.write=function(e,t,n,r){if(void
0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof
t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string,
encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void
0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||
n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to
write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r)
{case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return
w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return
E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-
2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new
TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!
0}},c.prototype.toJSON=function()
{return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var
O=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;+
+i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var
r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return
r}function P(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var
o="",s=t;s<n;++s)o+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return o}function
D(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 k(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 R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer"
argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value"
argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of
range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-
n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r)
{t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;+
+i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(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 F(e,t,n,r,o){return o||
L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||
L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var
n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?
(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)
(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void
0);for(var o=0;o<i;++o)n[o]=this[o+e]}return
n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return
r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var
r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return
r},c.prototype.readUInt8=function(e,t){return t||
k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||
k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t)
{return t||k(e,2,this.length),this[e]<<8|
this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),
(this[e]|this[e+1]<<8|
this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return
t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|
this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||
k(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},c.prototype.readIntBE=function(e,t,n){e|=0,t|
=0,n||k(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},c.prototype.readInt8=function(e,t){return t||
k(e,1,this.length),128&this[e]?-1*(255-this[e]
+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var
n=this[e]|this[e+1]<<8;return 32768&n?4294901760|
n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|
this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t)
{return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|
this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||
k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|
this[e+3]},c.prototype.readFloatLE=function(e,t){return t||
k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t)
{return t||k(e,4,this.length),i.read(this,e,!
1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||
k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t)
{return t||k(e,8,this.length),i.read(this,e,!
1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||
R(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},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n)
{return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!
0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;+
+o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var
i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--
o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return
t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-
128),c.TYPED_ARRAY_SUPPORT||
(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=func
tion(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!
0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!
1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?
(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!
0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||
R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?
(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!
1),t+4},c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!
0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!
1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!
0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!
1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||
(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return
0;if(0===e.length||0===this.length)return 0;if(t<0)throw new
RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new
RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out
of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var
i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!
c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else
Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return
o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?
(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var
i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new
TypeError("encoding must be a string");if("string"==typeof r&&!
c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof
e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range
index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||
(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:U(new
c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var
B=/[^+\/0-9A-Za-z-_]/g;function U(e,t){var n;t=t||1/0;for(var
r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i)
{if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 H(e){return r.toByteArray(function(e)
{if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}
(e))}function G(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}},28969:(e,t,n)=>{var r,i,o;void
0===(i="function"==typeof(r=o=function(){function e(){for(var
e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return
t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return
function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document)
{"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new
Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var
s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(e){}n=r.write?
r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|
3F|40|5B|5D|5E|60|7B|7D|7C)/
g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|
7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in
o)o[c]&&(a+="; "+c,!0!==o[c]&&(a+="="+o[c].split(";")[0]));return
document.cookie=t+"="+n+a}}function s(e,n){if("undefined"!=typeof document){for(var
i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var
a=o[s].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-
1));try{var u=t(a[0]);if(c=(r.read||r)(c,u)||t(c),n)try{c=JSON.parse(c)}catch(e)
{}if(i[u]=c,e===u)break}catch(e){}}return e?i[e]:i}}return
i.set=o,i.get=function(e){return s(e,!1)},i.getJSON=function(e){return s(e,!
0)},i.remove=function(t,n){o(t,"",e(n,{expires:-
1}))},i.defaults={},i.withConverter=n,i}((function(){}))})?r.call(t,n,t,e):r)||
(e.exports=i),e.exports=o()},70781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:
()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>y,__asyncValues:()=>_,__await:
()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:
()=>C,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:
()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:
()=>S,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:
()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>v,__values:()=>p});var
r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?
r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else
for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||
s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return
function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function
l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function h(e,t)
{var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw
i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||
t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function g(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(g(arguments[t]));return e}function v(){for(var
e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var
r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i+
+)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new
b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof
b?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var
n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return
t={},r("next"),r("throw",(function(e){throw
e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i)
{t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?
i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t)
{return Object.defineProperty?Object.defineProperty(e,"raw",
{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!
=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return
t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function A(e,t)
{if(!t.has(e))throw new TypeError("attempted to get private field on non-
instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new
TypeError("attempted to set private field on non-instance");return
t.set(e,n),n}},78012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{API:()=>fE,APIClass:
()=>dE,AWSCloudWatchProvider:()=>RN,AWSKinesisFirehoseProvider:
()=>ed,AWSKinesisProvider:()=>Zl,AWSPinpointProvider:
()=>Qn,AmazonPersonalizeProvider:()=>Jd,Amplify:()=>p,Analytics:()=>Dr,Auth:
()=>Gp,AuthModeStrategyType:()=>cS,Cache:()=>W,ClientDevice:()=>se,DataStore:
()=>AO,Geo:()=>zB,Hub:()=>x,I18n:()=>pk,Interactions:()=>pD,Logger:
()=>h,Notifications:()=>nk,Predicates:()=>nA,Predictions:()=>ak,PubSub:
()=>CO,ServiceWorker:()=>hM,Signer:()=>Ue,SortDirection:()=>aS,Storage:
()=>Dv,StorageClass:()=>Iv,graphqlOperation:()=>pE,syncExpression:
()=>HS,withSSRContext:()=>LN});var r={};n.r(r),n.d(r,{hasBrowserEnv:
()=>Yw,hasStandardBrowserEnv:()=>Qw,hasStandardBrowserWebWorkerEnv:
()=>Xw,navigator:()=>$w,origin:()=>Zw});var i,o="Logging",s="No
credentials",a=["ResourceNotFoundException","InvalidSequenceTokenException"],c=func
tion(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return
s},u=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!
r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},l={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};!
function(e)
{e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE"}
(i||(i={}));var h=function(){function e(e,t){void
0===t&&(t=i.WARN),this.name=e,this.level=t,this._pluggables=[]}return
e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function()
{var e=new
Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")
+"."+e.getMilliseconds()},e.prototype.configure=function(e){return e?
(this._config=e,this._config):this._config},e.prototype._log=function(t){for(var
n,r,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var
a=this.level;if(e.LOG_LEVEL&&(a=e.LOG_LEVEL),"undefined"!=typeof
window&&window.LOG_LEVEL&&(a=window.LOG_LEVEL),l[t]>=l[a]){var
c=console.log.bind(console);t===i.ERROR&&console.error&&(c=console.error.bind(conso
le)),t===i.WARN&&console.warn&&(c=console.warn.bind(console));var u="[".concat(t,"]
").concat(this._ts()," ").concat(this.name),h="";if(1===o.length&&"string"==typeof
o[0])c(h="".concat(u," - ").concat(o[0]));else if(1===o.length)h="".concat(u,"
").concat(o[0]),c(u,o[0]);else if("string"==typeof o[0]){var
d=o.slice(1);1===d.length&&(d=d[0]),h="".concat(u," - ").concat(o[0],"
").concat(d),c("".concat(u," - ").concat(o[0]),d)}else h="".concat(u,"
").concat(o),c(u,o);try{for(var f=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(this._pluggables),p=f.next();!p.done;p=f.next()){var
g=p.value,m={message:h,timestamp:Date.now()};g.pushLogs([m])}}catch(e)
{n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw
n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.INFO],c(e),!
1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.INFO],c(e),!
1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.WARN],c(e),!
1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.ERROR],c(e),!
1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.DEBUG],c(e),!
1))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t+
+)e[t]=arguments[t];this._log.apply(this,u([i.VERBOSE],c(e),!
1))},e.prototype.addPluggable=function(e)
{e&&e.getCategoryName()===o&&(this._pluggables.push(e),e.configure(this._config))},
e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}
(),d=new h("Amplify"),f=function(){function e()
{this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics
=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cac
he=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=
null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Noti
fications=null,this.Logger=h,this.ServiceWorker=null}return
e.prototype.register=function(e){d.debug("component registered in
amplify",e),this._components.push(e),"function"==typeof e.getModuleName?
(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):d.debug("no
getModuleName method for
component",e),e.configure(this._config)},e.prototype.configure=function(e){var
t=this;return e?(this._config=Object.assign(this._config,e),d.debug("amplify
config",this._config),Object.entries(this._modules).forEach((function(e){var
n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return
e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}
(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e)
{t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e)
{e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=fun
ction(e){e&&e.getCategory&&"function"==typeof
e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"==typeof
t.addPluggable&&t.addPluggable(e)}))},e}(),p=new f,g=function(e,t){return
g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},g(e,t)},m=function(){return m=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},m.apply(this,arguments)};function v(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function b(e,t,n,r){return new(n||(n=Promise))((function(i,o)
{function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function y(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function w(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function _(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(w(arguments[t]));return e}var E=function(){return E=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},E.apply(this,arguments)},S=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},T=function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},A=new h("Hub"),C="undefined"!=typeof
Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",O=function(){function e(e)
{this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","an
alytics","interactions","pubsub","storage","ui","xr"],this.name=e}return
e.prototype._remove=function(e,t){if(e instanceof RegExp){var
n=this.patterns.find((function(t){return t.pattern.source===e.source}));if(!
n)return void A.warn("No listeners for
".concat(e));this.patterns=T([],S(this.patterns.filter((function(e){return e!
==n}))),!1)}else{var r=this.listeners[e];if(!r)return void A.warn("No listeners for
".concat(e));this.listeners[e]=T([],S(r.filter((function(e){return e.callback!
==t}))),!1)}},e.prototype.remove=function(e,t)
{this._remove(e,t)},e.prototype.dispatch=function(e,t,n,r){void
0===n&&(n=""),this.protectedChannels.indexOf(e)>-1&&(r===C||A.warn("WARNING:
".concat(e," is protected and dispatching on it can have unintended
consequences")));var i={channel:e,payload:E({},t),source:n,patternInfo:
[]};try{this._toListeners(i)}catch(e)
{A.error(e)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void
0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))A.warn("WARNING
onHubCapsule is Deprecated. Please pass in a
callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new
Error("No callback supplied to Hub");r=t}if(e instanceof
RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||
(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function()
{i._remove(e,r)}},e.prototype._toListeners=function(e){var
t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r)
{A.debug("Dispatching to ".concat(t," with "),n);try{r.callback(e)}catch(e)
{A.error(e)}})),this.patterns.length>0){if(!n.message)return void A.warn("Cannot
perform pattern matching without a message key");var
i=n.message;this.patterns.forEach((function(t){var n=i.match(t.pattern);if(n){var
r=S(n).slice(1),o=E(E({},e),{patternInfo:r});try{t.callback(o)}catch(e)
{A.error(e)}}}))}},e}(),x=new O("__default__"),I=function(){return
I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},I.apply(this,arguments)},P=new h("Parser"),D=function(e){var
t,n={};if(e.aws_mobile_analytics_app_id){var r={AWSPinpoint:
{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.A
nalytics=r}return(e.aws_cognito_identity_pool_id||
e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e
.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cogn
ito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enabl
e"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verific
ation_method||"code"}),t=e.aws_user_files_s3_bucket?{AWSS3:
{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangero
uslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http
_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(n.Logging=I(I({},e.Logging),
{region:e.aws_project_region})),e.geo&&(n.Geo=Object.assign({},e.geo),e.geo.amazon_
location_service&&(n.Geo={AmazonLocationService:e.geo.amazon_location_service})),n.
Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,
e.Auth),n.Storage=Object.assign({},t),n.Logging=Object.assign({},n.Logging,e.Loggin
g),P.debug("parse config",e,"to amplifyconfig",n),n},k=function(e,t){return
k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},k(e,t)},R={},M=function(){function e(){}return
e.setItem=function(e,t){return R[e]=t,R[e]},e.getItem=function(e){return
Object.prototype.hasOwnProperty.call(R,e)?R[e]:void 0},e.removeItem=function(e)
{return delete R[e]},e.clear=function(){return R={}},e}(),N=function(){function e()
{try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify
.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e)
{this.storageWindow=M}}return e.prototype.getStorage=function(){return
this.storageWindow},e}(),L={keyPrefix:"aws-amplify-
cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5
,warningThreshold:.8,storage:(new N).getStorage()};function F(e){var
t=0;t=e.length;for(var n=e.length;n>=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?
t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function j()
{return(new Date).getTime()}function B(e){return Number.isInteger?
Number.isInteger(e):function(e){return"number"==typeof
e&&isFinite(e)&&Math.floor(e)===e}(e)}var U={},H=(function(){function e()
{}e.clear=function(){U={}},e.getItem=function(e){return U[e]||
null},e.setItem=function(e,t){U[e]=t},e.removeItem=function(e){delete U[e]}}(),new
h("StorageCache")),G=function(){function e(e)
{this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSiz
e",this.checkConfig()}return e.prototype.getModuleName=function()
{return"Cache"},e.prototype.checkConfig=function(){B(this.config.capacityInBytes)||
(H.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back
to
default."),this.config.capacityInBytes=L.capacityInBytes),B(this.config.itemMaxSize
)||(H.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back
to default."),this.config.itemMaxSize=L.itemMaxSize),B(this.config.defaultTTL)||
(H.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to
default."),this.config.defaultTTL=L.defaultTTL),B(this.config.defaultPriority)||
(H.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back
to
default."),this.config.defaultPriority=L.defaultPriority),this.config.itemMaxSize>t
his.config.capacityInBytes&&(H.error("Invalid parameter: itemMaxSize. It should be
smaller than capacityInBytes. Setting back to
default."),this.config.itemMaxSize=L.itemMaxSize),(this.config.defaultPriority>5||
this.config.defaultPriority<1)&&(H.error("Invalid parameter: defaultPriority. It
should be between 1 and 5. Setting back to
default."),this.config.defaultPriority=L.defaultPriority),
(Number(this.config.warningThreshold)>1||
Number(this.config.warningThreshold)<0)&&(H.error("Invalid parameter:
warningThreshold. It should be between 0 and 1. Setting back to
default."),this.config.warningThreshold=L.warningThreshold),this.config.capacityInB
ytes>5242880&&(H.error("Cache Capacity should be less than 5MB. Setting back to
default. Setting back to
default."),this.config.capacityInBytes=L.capacityInBytes)},e.prototype.fillCacheIte
m=function(e,t,n){var
r={key:e,data:t,timestamp:j(),visitedTime:j(),priority:n.priority,expires:n.expires
,type:typeof t,byteSize:0};return
r.byteSize=F(JSON.stringify(r)),r.byteSize=F(JSON.stringify(r)),r},e.prototype.conf
igure=function(e){return e?(e.keyPrefix&&H.warn("Don't try to configure
keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig()
,this.config):this.config},e}(),z=new
h("Cache"),V=function(e){function t(t){var n=this,r=t?
Object.assign({},L,t):L;return(n=e.call(this,r)||
this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind
(n),n.removeItem=n.removeItem.bind(n),n}return function(e,t){function n()
{this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}
(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var
t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-
e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var
t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,
(t+e).toString())},t.prototype._refreshItem=function(e,t){return
e.visitedTime=j(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._
isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return
j()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||
JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n)
,this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t)
{this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.st
ringify(t))}catch(e){this._decreaseCurSizeInBytes(t.byteSize),z.error("Failed to
set item "+e)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-
this.config.capacityInBytes,n=(1-
this.config.warningThreshold)*this.config.capacityInBytes;return t>n?
t:n},t.prototype._isCacheFull=function(e){return
e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=fu
nction(){for(var
e=[],t=[],n=0;n<this.config.storage.length;n+=1)t.push(this.config.storage.key(n));
for(n=0;n<t.length;n+=1){var r=t[n];0===r.indexOf(this.config.keyPrefix)&&r!
==this.cacheCurSizeKey&&(this._isExpired(r)?this._removeItem(r):e.push(r))}return
e},t.prototype._popOutItems=function(e,t){for(var n=[],r=t,i=0;i<e.length;i+=1){var
o=this.config.storage.getItem(e[i]);if(null!=o){var
s=JSON.parse(o);n.push(s)}}for(n.sort((function(e,t){return e.priority>t.priority?-
1:e.priority<t.priority?1:e.visitedTime<t.visitedTime?-
1:1})),i=0;i<n.length;i+=1)if(this._removeItem(n[i].key,n[i].byteSize),(r-
=n[i].byteSize)<=0)return},t.prototype.setItem=function(e,t,n){z.log("Set item: key
is "+e+", value is "+t+" with options: "+n);var r=this.config.keyPrefix+e;if(r!
==this.config.keyPrefix&&r!==this.cacheCurSizeKey)if(void 0!==t){var
i={priority:n&&void 0!==n.priority?
n.priority:this.config.defaultPriority,expires:n&&void 0!==n.expires?
n.expires:this.config.defaultTTL+j()};if(i.priority<1||i.priority>5)z.warn("Invalid
parameter: priority due to out or range. It should be within 1 and 5.");else{var
o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)z.warn("Item with
key: "+e+" you are trying to put into is too big!");else try{var
s=this.config.storage.getItem(r);if(s&&this._removeItem(r,JSON.parse(s).byteSize),t
his._isCacheFull(o.byteSize)){var
a=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var
c=this._sizeToPop(o.byteSize);this._popOutItems(a,c)}}this._setItem(r,o)}catch(e)
{z.warn("setItem failed! "+e)}}}else z.warn("The value of item should not be
undefined!");else z.warn("Invalid key: should not be empty or
'CurSize'")},t.prototype.getItem=function(e,t){z.log("Get item: key is "+e+" with
options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||
r===this.cacheCurSizeKey)return z.warn("Invalid key: should not be empty or
'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!
this._isExpired(r)){var
i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse
(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!
==o&&this.setItem(e,o,t),o}return null}catch(e){return z.warn("getItem failed!
"+e),null}},t.prototype.removeItem=function(e){z.log("Remove item: key is "+e);var
t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!
==this.cacheCurSizeKey)try{var
n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catc
h(e){z.warn("removeItem failed! "+e)}},t.prototype.clear=function(){z.log("Clear
Cache");for(var e=[],t=0;t<this.config.storage.length;t+=1){var
n=this.config.storage.key(t);0===n.indexOf(this.config.keyPrefix)&&e.push(n)}try{fo
r(t=0;t<e.length;t+=1)this.config.storage.removeItem(e[t])}catch(e){z.warn("clear
failed! "+e)}},t.prototype.getAllKeys=function(){for(var
e=[],t=0;t<this.config.storage.length;t+=1){var
n=this.config.storage.key(t);0===n.indexOf(this.config.keyPrefix)&&n!
==this.cacheCurSizeKey&&e.push(n.substring(this.config.keyPrefix.length))}return
e},t.prototype.getCacheCurSize=function(){var
e=this.config.storage.getItem(this.cacheCurSizeKey);return e||
(this.config.storage.setItem(this.cacheCurSizeKey,"0"),e="0"),Number(e)},t.prototyp
e.createInstance=function(e){return e.keyPrefix&&e.keyPrefix!==L.keyPrefix||
(z.error("invalid keyPrefix, setting keyPrefix with
timeStamp"),e.keyPrefix=j.toString()),new t(e)},t}(G),W=new V;p.register(W);var
q=new h("ClientDevice_Browser");var K,Y,$,Q,X,Z,J,ee,te,ne,re,ie,oe,se=function()
{function e(){}return e.clientInfo=function(){return"undefined"==typeof window?
{}:function(){if("undefined"==typeof window)return q.warn("No window object
available to get browser client info"),{};var e=window.navigator;if(!e)return
q.warn("No navigator object available to get browser client info"),{};var
t,n=e.platform,r=e.product,i=e.vendor,o=e.userAgent,s=e.language,a=function(e){var
t=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);if(t)return{type:t[1],ver
sion:t[2]};var
n=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(e);if(n)return{type:n[1],version:n[2]};var
r=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(e);if(r)return{type:r[1],version:r
[2]};var
i=/.+(Safari)\/([0-9\.]+).*/i.exec(e);if(i)return{type:i[1],version:i[2]};var o=/.+
(AppleWebKit)\/([0-9\.]+).*/i.exec(e);if(o)return{type:o[1],version:o[2]};var
s=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(e);return s?{type:s[1],version:s[2]}:
{type:"",version:""}}(o),c=(t=/\(([A-Za-z\s].*)\)/.exec((new
Date).toString()))&&t[1]||"";return{platform:n,make:r||
i,model:a.type,version:a.version,appVersion:
[a.type,a.version].join("/"),language:s,timezone:c}}()},e.dimension=function()
{return"undefined"==typeof window?(q.warn("No window object available to get
browser client info"),{width:320,height:320}):
{width:window.innerWidth,height:window.innerHeight}},e}();!function(e)
{e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.S
velte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR
="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Exp
o="202"}(K||(K={})),function(e)
{e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="g
eo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="
predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="sto
rage"}(Y||(Y={})),function(e){e.Record="1",e.UpdateEndpoint="2"}($||
($={})),function(e)
{e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(Q||
(Q={})),function(e){e.FederatedSignIn="30"}(X||(X={})),function(e)
{e.Subscribe="1",e.GraphQl="2"}(Z||(Z={})),function(e){e.None="0"}(J||
(J={})),function(e){e.None="0"}(ee||(ee={})),function(e){e.None="0"}(te||
(te={})),function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}(ne||
(ne={})),function(e){e.Subscribe="1"}(re||(re={})),function(e){e.None="0"}(ie||
(ie={})),function(e)
{e.Put="1",e.Get="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6"}(oe||
(oe={}));for(var ae={clockOffset:0,getDateWithClockOffset:function(){return
ae.clockOffset?new Date((new Date).getTime()+ae.clockOffset):new
Date},getClockOffset:function(){return
ae.clockOffset},getHeaderStringFromDate:function(e){return void
0===e&&(e=ae.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/
g,"")},getDateFromHeaderString:function(e){var t=function(e,t){var
n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}(e.match(/^(\
d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).
+/),7),n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6];return new
Date(Date.UTC(Number(n),Number(r)-
1,Number(i),Number(o),Number(s),Number(a)))},isClockSkewed:function(e){return
Math.abs(e.getTime()-
ae.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!
e.response||!e.response.headers)return!1;var t=e.response.headers;return
Boolean(["BadRequestException","InvalidSignatureException"].includes(t["x-amzn-
errortype"])&&(t.date||t.Date))},setClockOffset:function(e)
{ae.clockOffset=e}},ce=function(e){return Object.keys(e).map((function(e){return
e.toLowerCase()})).sort().join(";")},ue="X-Amz-Date",le="X-Amz-Security-
Token",he="host",de=ue.toLowerCase(),fe=le.toLowerCase(),pe="aws4_request",ge="AWS4
-HMAC-
SHA256",me="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",ve=fu
nction(e){var t,n,r=e.credentials,i=e.signingDate,o=void 0===i?new
Date:i,s=e.signingRegion,a=e.signingService,c=e.uriEscapePath,u=void 0===c||
c,l=r.accessKeyId,h=r.secretAccessKey,d=r.sessionToken,f=function(e){var
t=e.toISOString().replace(/[:\-]|\.\d{3}/g,"");return{longDate:t,shortDate:t.slice(
0,8)}}(o),p=f.longDate,g=f.shortDate;return{accessKeyId:l,credentialScope:
(t=s,n=a,"".concat(g,"/").concat(t,"/").concat(n,"/").concat(pe)),longDate:p,secret
AccessKey:h,sessionToken:d,shortDate:g,signingRegion:s,signingService:a,uriEscapePa
th:u}},be=n(59157),ye={},we={},_e=0;_e<256;_e++){var
Ee=_e.toString(16).toLowerCase();1===Ee.length&&(Ee="0"+Ee),ye[_e]=Ee,we[Ee]=_e}var
Se=function(e,t){var n=new be.Sha256(e);return
n.update(t),n.digestSync()},Te=function(e,t){return function(e){for(var
t="",n=0;n<e.byteLength;n++)t+=ye[e[n]];return
t}(Se(e,t))},Ae=function(e){return Object.entries(e).map((function(e){var
t,n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return
e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}
(e,2),r=n[0],i=n[1];return{key:r.toLowerCase(),value:null!==(t=null==i?void
0:i.trim().replace(/\s+/g," "))&&void 0!==t?t:""}})).sort((function(e,t){return
e.key<t.key?-1:1})).map((function(e){return"".concat(e.key,":").concat(e.value,"\
n")})).join("")},Ce=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},Oe=function(e){return
encodeURIComponent(e).replace(/[!'()*]/g,xe)},xe=function(e)
{return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())},Ie=function(e,t)
{return void
0===t&&(t=!0),e?t?encodeURIComponent(e).replace(/%2F/g,"/"):e:"/"},Pe=function(e)
{return null==e?me:De(e)?Te(null,e):"UNSIGNED-PAYLOAD"},De=function(e)
{return"string"==typeof e||ArrayBuffer.isView(e)||ke(e)},ke=function(e)
{return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object
ArrayBuffer]"===Object.prototype.toString.call(e)},Re=function(e,t){var
n=t.credentialScope,r=t.longDate,i=t.secretAccessKey,o=t.shortDate,s=t.signingRegio
n,a=t.signingService,c=function(e,t){var
n,r=e.body,i=e.headers,o=e.method,s=e.url;return void 0===t&&(t=!0),
[o,Ie(s.pathname,t),(n=s.searchParams,Array.from(n).sort((function(e,t){var
n=Ce(e,2),r=n[0],i=n[1],o=Ce(t,2),s=o[0],a=o[1];return r===s?i<a?-1:1:r<s?-
1:1})).map((function(e){var
t=Ce(e,2),n=t[0],r=t[1];return"".concat(Oe(n),"=").concat(Oe(r))})).join("&")),Ae(i
),ce(i),Pe(r)].join("\n")}(e,t.uriEscapePath),u=function(e,t,n)
{return[ge,e,t,n].join("\n")}(r,n,Te(null,c)),l=Te(function(e,t,n,r){var
i="".concat("AWS4").concat(e),o=Se(i,t),s=Se(o,n),a=Se(s,r);return Se(a,pe)}
(i,o,s,a),u);return l},Me=function(){return Me=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Me.apply(this,arguments)},Ne=function(e,t){var
n=ve(t),r=n.accessKeyId,i=n.credentialScope,o=n.longDate,s=n.sessionToken,a=Me({},e
.headers);a[he]=e.url.host,a[de]=o,s&&(a[fe]=s);var c=Me(Me({},e),
{headers:a}),u=Re(c,n),l="Credential=".concat(r,"/").concat(i),h="SignedHeaders=".c
oncat(ce(a)),d="Signature=".concat(u);return a.authorization="".concat(ge,"
").concat(l,", ").concat(h,", ").concat(d),c},Le=function(){return
Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Le.apply(this,arguments)},Fe=function(e,t){var
n,r,i,o,s=e.body,a=e.method,c=void
0===a?"GET":a,u=e.url,l=t.expiration,h=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(t,
["expiration"]),d=ve(h),f=d.accessKeyId,p=d.credentialScope,g=d.longDate,m=d.sessio
nToken,v=new URL(u);Object.entries(Le(Le((n={},n["X-Amz-Algorithm"]=ge,n["X-Amz-
Credential"]="".concat(f,"/").concat(p),n[ue]=g,n["X-Amz-
SignedHeaders"]=he,n),l&&(r={},r["X-Amz-
Expires"]=l.toString(),r)),m&&(i={},i[le]=m,i))).forEach((function(e){var
t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return
e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}
(e,2),n=t[0],r=t[1];v.searchParams.append(n,r)}));var b={body:s,headers:
(o={},o[he]=u.host,o),method:c,url:v},y=Re(b,d);return v.searchParams.append("X-
Amz-Signature",y),v},je=function(){return je=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},je.apply(this,arguments)},Be=/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?
$/,Ue=function(){function e(){}return e.sign=function(e,t,n)
{if(e.headers=e.headers||{},e.body&&!e.data)throw new Error('The attribute "body"
was found on the request object. Please use the attribute "data" instead.');var
r=je(je({},e),{body:e.data,url:new URL(e.url)}),i=He(r,t,n),o=Ne(r,i);return
o.url=o.url.toString(),o.headers.Authorization=o.headers.authorization,o.headers["X
-Amz-Security-Token"]=o.headers["x-amz-security-token"],delete
o.headers.authorization,delete o.headers["x-amz-security-
token"],o},e.signUrl=function(e,t,n,r){var i="object"==typeof e?
e.url:e,o="object"==typeof e?e.method:"GET",s={body:"object"==typeof e?e.body:void
0,method:o,url:new URL(i)},a=He(s,t,n,r),c=Fe(s,a);return t.session_token&&!
ze(a.signingService)&&c.searchParams.append(le,t.session_token),c.toString()},e}
(),He=function(e,t,n,r){var i=null!=t?t:
{},o=i.access_key,s=i.secret_key,a=i.session_token,c=Ge(e.url),u=c.region,l=c.servi
ce,h=null!=n?n:{},d=h.region,f=void 0===d?u:d,p=h.service,g=void 0===p?
l:p,m=je({accessKeyId:o,secretAccessKey:s},ze(g)?{sessionToken:a}:{});return
je({credentials:m,signingDate:ae.getDateWithClockOffset(),signingRegion:f,signingSe
rvice:g},r&&{expiration:r})},Ge=function(e){var t,n=(null!
==(t=e.host.match(Be))&&void 0!==t?t:
[]).slice(1,3);return"es"===n[1]&&(n=n.reverse()),
{service:n[0],region:n[1]}},ze=function(e){return"iotdevicegateway"!
==e},Ve=function(){if("undefined"==typeof self)return!1;var e=self;return void 0!
==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},We=function()
{return{isBrowser:"undefined"!=typeof window&&void 0!
==window.document,isNode:"undefined"!=typeof process&&null!=process.versions&&null!
=process.versions.node}},qe=function(e,t,n){if(void 0===t&&(t=[]),void
0===n&&(n=[]),!Ye(e))return e;var r={};for(var i in
e)e.hasOwnProperty(i)&&(r[t.includes(i)?i:i[0].toLowerCase()
+i.slice(1)]=n.includes(i)?e[i]:qe(e[i],t,n));return r},Ke=function(e,t,n){if(void
0===t&&(t=[]),void 0===n&&(n=[]),!Ye(e))return e;var r={};for(var i in
e)e.hasOwnProperty(i)&&(r[t.includes(i)?i:i[0].toUpperCase()
+i.slice(1)]=n.includes(i)?e[i]:Ke(e[i],t,n));return r},Ye=function(e){return!(!(e
instanceof Object)||e instanceof Array||e instanceof Function||e instanceof
Number||e instanceof String||e instanceof Boolean)},$e=function(){var
e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return
function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends
value "+String(n)+" is not a constructor or null");function r()
{this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):
(r.prototype=n.prototype,new r)}}(),Qe=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Xe=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Ze=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},Je=function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},et=new h("Util"),tt=function(e){function t(t){var
n=e.call(this,t)||this;return n.nonRetryable=!0,n}return $e(t,e),t}
(Error),nt=function(e){return e&&e.nonRetryable};function rt(e,t,n,r){return
Qe(this,void 0,void 0,(function(){var i=this;return Xe(this,(function(o)
{if("function"!=typeof e)throw Error("functionToRetry must be a
function");return[2,new Promise((function(o,s){return Qe(i,void 0,void 0,
(function(){var i,a,c,u,l,h,d;return Xe(this,(function(f){switch(f.label){case
0:i=0,a=!1,u=function(){},r&&r.then((function(){a=!
0,clearTimeout(c),u()})),h=function(){var r,h,d,f;return Xe(this,(function(p)
{switch(p.label){case 0:i++,et.debug("".concat(e.name," attempt #").concat(i," with
this vars: ").concat(JSON.stringify(t))),p.label=1;case 1:return
p.trys.push([1,3,,7]),r={},h=o,[4,e.apply(void 0,Je([],Ze(t),!1))];case 2:return[2,
(r.value=h.apply(void 0,[p.sent()]),r)];case 3:return
d=p.sent(),l=d,et.debug("error
on ".concat(e.name),d),nt(d)?(et.debug("".concat(e.name," non retryable
error"),d),[2,{value:s(d)}]):(f=n(i,t,d),et.debug("".concat(e.name," retrying in
").concat(f," ms")),!1===f||a?[2,{value:s(d)}]:[3,4]);case 4:return[4,new
Promise((function(e){u=e,c=setTimeout(u,f)}))];case 5:p.sent(),p.label=6;case
6:return[3,7];case 7:return[2]}}))},f.label=1;case 1:return a?[3,3]:[5,h()];case
2:return"object"==typeof(d=f.sent())?[2,d.value]:[3,1];case 3:return s(l),
[2]}}))}))}))]}))}))}var it=3e5;function ot(e){return void
0===e&&(e=it),function(t){var n=100*Math.pow(2,t)+100*Math.random();return!
(n>e)&&n}}var st,at=function(e,t,n,r){return void
0===n&&(n=it),rt(e,t,ot(n),r)},ct=new h("CognitoCredentials"),ut=new
Promise((function(e,t){return We().isBrowser?
window.gapi&&window.gapi.auth2&&window.gapi.auth2?(ct.debug("google api already
loaded"),e()):void setTimeout((function(){return e()}),2e3):(ct.debug("not in the
browser, directly resolved"),e())})),lt=function(){function e(){this.initialized=!
1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTok
enImpl=this._refreshGoogleTokenImpl.bind(this)}return
e.prototype.refreshGoogleToken=function(){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(e){switch(e.label){case 0:return
this.initialized?[3,2]:(ct.debug("need to wait for the Google SDK loaded"),
[4,ut]);case 1:e.sent(),this.initialized=!0,ct.debug("finish
waiting"),e.label=2;case
2:return[2,this._refreshGoogleTokenImpl()]}}))}))},e.prototype._refreshGoogleTokenI
mpl=function(){var e=null;return We().isBrowser&&(e=window.gapi&&window.gapi.auth2?
window.gapi.auth2:null),e?new Promise((function(t,n)
{e.getAuthInstance().then((function(e){e||(ct.debug("google Auth undefined"),n(new
tt("google Auth undefined")));var r=e.currentUser.get();r.isSignedIn()?
(ct.debug("refreshing the google access
token"),r.reloadAuthResponse().then((function(e){var
n=e.id_token,r=e.expires_at;t({token:n,expires_at:r})})).catch((function(e)
{e&&"network_error"===e.error?n("Network error reloading google auth
response"):n(new tt("Failed to reload google auth response"))}))):n(new tt("User is
not signed in with Google"))})).catch((function(e){ct.debug("Failed to refresh
google token",e),n(new tt("Failed to refresh google token"))}))})):(ct.debug("no
gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),ht=new
h("CognitoCredentials"),dt=new Promise((function(e,t){return We().isBrowser?
window.FB?(ht.debug("FB SDK already loaded"),e()):void setTimeout((function()
{return e()}),2e3):(ht.debug("not in the browser, directly
resolved"),e())})),ft=function(){function e(){this.initialized=!
1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFaceb
ookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return
e.prototype.refreshFacebookToken=function(){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(e){switch(e.label){case 0:return
this.initialized?[3,2]:(ht.debug("need to wait for the Facebook SDK loaded"),
[4,dt]);case 1:e.sent(),this.initialized=!0,ht.debug("finish
waiting"),e.label=2;case
2:return[2,this._refreshFacebookTokenImpl()]}}))}))},e.prototype._refreshFacebookTo
kenImpl=function(){var e=null;if(We().isBrowser&&(e=window.FB),!e){var t="no fb sdk
available";return ht.debug(t),Promise.reject(new tt(t))}return new
Promise((function(t,n){e.getLoginStatus((function(e){if(e&&e.authResponse){var
r=e.authResponse,i=r.accessToken,o=1e3*r.expiresIn+(new Date).getTime();i||(s="the
jwtToken is undefined",ht.debug(s),n(new tt(s))),t({token:i,expires_at:o})}else{var
s="no response from facebook when refreshing the jwt token";ht.debug(s),n(new
tt(s))}}),{scope:"public_profile,email"})}))},e}(),pt=new lt,gt=new
ft,mt={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|
me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},vt={partitions:[mt,{id:"aws-
cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+
$",regions:["aws-cn-global"]}]},bt=function(e){var t,n,r=vt.partitions;try{for(var
i=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(r),o=i.next();!o.done;o=i.next()){var
s=o.value,a=s.regions,c=s.outputs,u=s.regionRegex,l=new
RegExp(u);if(a.includes(e)||l.test(e))return c.dnsSuffix}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return mt.outputs.dnsSuffix},yt=function(){return yt=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},yt.apply(this,arguments)},wt=function(e){var t=e.maxAttempts,n=void 0===t?
3:t,r=e.retryDecider,i=e.computeDelay,o=e.abortSignal;if(n<1)throw new
Error("maxAttempts must be greater than 0");return function(e,t){return function(s)
{var a;return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function
s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void
0,void 0,(function(){var c,u,l,h,d,f;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(p){switch(p.label){case 0:u=null!
==(a=t.attemptsCount)&&void 0!==a?a:0,h=function(){if(l)return Et(l,u),l;throw
Et(c,u),c},p.label=1;case 1:if((null==o?void 0:o.aborted)||!
(u<n))return[3,11];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,e(s)];case
3:return l=p.sent(),c=void 0,[3,5];case 4:return d=p.sent(),c=d,l=void 0,[3,5];case
5:return u=t.attemptsCount>u?t.attemptsCount:u+1,t.attemptsCount=u,[4,r(l,c)];case
6:return p.sent()?!(null==o?void 0:o.aborted)&&u<n?(f=i(u),[4,_t(f,o)]):[3,8]:
[3,9];case 7:p.sent(),p.label=8;case 8:return[3,1];case 9:return[2,h()];case
10:return[3,1];case 11:if(null==o?void 0:o.aborted)throw new Error("Request
aborted.");return[2,h()]}}))}))}}},_t=function(e,t){if(null==t?void
0:t.aborted)return Promise.resolve();var n,r,i=new Promise((function(t)
{r=t,n=setTimeout(t,e)}));return null==t||t.addEventListener("abort",(function e(i)
{clearTimeout(n),null==t||
t.removeEventListener("abort",e),r()})),i},Et=function(e,t){var n;"[object
Object]"===Object.prototype.toString.call(e)&&(e.$metadata=yt(yt({},null!==(n=e.
$metadata)&&void 0!==n?n:{}),{attempts:t}))},St=function(e){var
t=e.userAgentHeader,n=void 0===t?"x-amz-user-agent":t,r=e.userAgentValue,i=void
0===r?"":r;return function(e){return function(t){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){var r;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(o){switch(o.label){case 0:return 0!
==i.trim().length?[3,2]:[4,e(t)];case 1:case 3:return[2,o.sent()];case 2:return
r=n.toLowerCase(),t.headers[r]=t.headers[r]?"".concat(t.headers[r],"
").concat(i):i,[4,e(t)]}}))}))}}},Tt=function(e,t){return function(n,r){for(var
i={},o=function(t){return e(t,r)},s=t.length-1;s>=0;s--)o=(0,t[s])(r)(o,i);return
o(n)}},At=(n(12405),function(e){var t;return function(){return t||
(t=e()),t}}),Ct=function(){return Ct=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ct.apply(this,arguments)},Ot=function(e){return!
["HEAD","GET","DELETE"].includes(e.toUpperCase())},xt=function(e,t){var
n=e.url,r=e.method,i=e.headers,o=e.body,s=t.abortSignal;return function(e,t,n,r)
{return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var e,t,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(d){switch(d.label){case 0:return
d.trys.push([0,2,,3]),[4,fetch(n,{method:r,headers:i,body:Ot(r)?o:void
0,signal:s})];case 1:return e=d.sent(),[3,3];case 2:if((t=d.sent())instanceof
TypeError)throw new Error("Network error");throw t;case 3:return
a={},null===(l=e.headers)||void 0===l||l.forEach((function(e,t)
{a[t.toLowerCase()]=e})),c={statusCode:e.status,headers:a,body:null},u=Object.assig
n(null!==(h=e.body)&&void 0!==h?h:{},{text:At((function(){return
e.text()})),blob:At((function(){return e.blob()})),json:At((function(){return
e.json()}))}),[2,Ct(Ct({},c),{body:u})]}}))}))},It=Tt(xt,[St,wt]),Pt=function()
{return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Pt.apply(this,arguments)},Dt=function(e){var
t,n,r=e.headers,i=e.statusCode;return Pt(Pt({},kt(e)?e.$metadata:{}),
{httpStatusCode:i,requestId:null!==(n=null!==(t=r["x-amzn-requestid"])&&void 0!==t?
t:r["x-amzn-request-id"])&&void 0!==n?n:r["x-amz-request-
id"],extendedRequestId:r["x-amz-id-2"],cfId:r["x-amz-cf-id"]})},kt=function(e)
{return"object"==typeof(null==e?void 0:e.$metadata)},Rt=function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Mt=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Nt=function(e){return Rt(void 0,void 0,void 0,
(function(){var t,n,r,i,o,s,a,c,u;return Mt(this,(function(l){switch(l.label){case
0:return!e||e.statusCode<300?[2]:[4,Lt(e)];case 1:return t=l.sent(),h=null!
==(a=null!==(s=null!==(o=e.headers["x-amzn-errortype"])&&void 0!==o?o:t.code)&&void
0!==s?s:t.__type)&&void 0!==a?a:"UnknownError",d=function(e,t){var
n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}
(h.toString().split(/[\,\:]+/),1)[0],n=d.includes("#")?d.split("#")[1]:d,r=null!
==(u=null!==(c=t.message)&&void 0!==c?c:t.Message)&&void 0!==u?u:"Unknown
error",i=new Error(r),[2,Object.assign(i,{name:n,$metadata:Dt(e)})]}var
h,d}))}))},Lt=function(e){return Rt(void 0,void 0,void 0,(function(){var t;return
Mt(this,(function(n){switch(n.label){case 0:if(!e.body)throw new Error("Missing
response payload");return[4,e.body.json()];case 1:return t=n.sent(),
[2,Object.assign(t,
{$metadata:Dt(e)})]}}))}))},Ft=["AuthFailure","InvalidSignatureException","RequestE
xpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadReq
uestException"],jt=function(e){return Ft.includes(e)},Bt=function(e){return
function(t,n){return function(e,t,n,r){return new(n||(n=Promise))((function(i,o)
{function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i,o,s;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(a){switch(a.label){case 0:return
null==n?[3,1]:(i=n,[3,3]);case 1:return[4,e(t)];case 2:i=a.sent(),a.label=3;case
3:return r=(null!==(s=i)&&void 0!==s?s:{}).name,o=null==t?void 0:t.statusCode,
[2,zt(n)||Gt(o,r)||jt(r)||
Vt(o,r)]}}))}))}},Ut=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceed
edException","PriorRequestNotComplete","ProvisionedThroughputExceededException","Re
questLimitExceeded","RequestThrottled","RequestThrottledExc
eption","SlowDown","ThrottledException","Throttling","ThrottlingException","TooMany
RequestsException"],Ht=["TimeoutError","RequestTimeout","RequestTimeoutException"],
Gt=function(e,t){return 429===e||Ut.includes(t)},zt=function(e){return"Network
error"===(null==e?void 0:e.name)},Vt=function(e,t)
{return[500,502,503,504].includes(e)||Ht.includes(t)},Wt=3e5,qt=function(e){var
t=ot(Wt)(e);return!1===t?Wt:t},Kt="5.3.18",Yt=function(){return void 0!==n.g},
$t=function(){return"undefined"!=typeof window},Qt=function(){return"undefined"!
=typeof document},Xt=function(){return"undefined"!=typeof process},Zt=function(e,t)
{return!!Object.keys(e).find((function(e){return
e.startsWith(t)}))},Jt=[{platform:K.Expo,detectionMethod:function(){return
Yt()&&void 0!==n.g.expo}},{platform:K.ReactNative,detectionMethod:function()
{return"undefined"!=typeof navigator&&void 0!
==navigator.product&&"ReactNative"===navigator.product}},
{platform:K.NextJs,detectionMethod:function(){return
$t()&&window.next&&"object"==typeof window.next}},
{platform:K.Nuxt,detectionMethod:function(){return $t()&&(void 0!
==window.__NUXT__||void 0!==window.$nuxt)}},
{platform:K.Angular,detectionMethod:function(){var
e=Boolean(Qt()&&document.querySelector("[ng-version]")),t=Boolean($t()&&void 0!
==window.ng);return e||t}},{platform:K.React,detectionMethod:function(){var
e=function(e){return e.startsWith("_react")||e.startsWith("__react")};return
Qt()&&Array.from(document.querySelectorAll("[id]")).some((function(t){return
Object.keys(t).find(e)}))}},{platform:K.VueJs,detectionMethod:function(){return
$t()&&Zt(window,"__VUE")}},{platform:K.Svelte,detectionMethod:function(){return
$t()&&Zt(window,"__SVELTE")}},{platform:K.WebUnknown,detectionMethod:function()
{return $t()}},{platform:K.NextJsSSR,detectionMethod:function(){return
Yt()&&(Zt(n.g,"__next")||Zt(n.g,"__NEXT"))}},
{platform:K.NuxtSSR,detectionMethod:function(){return Yt()&&void 0!
==n.g.__NUXT_PATHS__}},{platform:K.ReactSSR,detectionMethod:function(){return
Xt()&&void 0!==process.env&&!!Object.keys(process.env).find((function(e){return
e.includes("react")}))}},{platform:K.VueJsSSR,detectionMethod:function(){return
Yt()&&Zt(n.g,"__VUE")}},{platform:K.AngularSSR,detectionMethod:function(){var
e;return Xt()&&"object"==typeof
process.env&&(null===(e=process.env.npm_lifecycle_script)||void 0===e?void
0:e.startsWith("ng "))||!1}},{platform:K.SvelteSSR,detectionMethod:function()
{return Xt()&&void 0!==process.env&&!!Object.keys(process.env).find((function(e)
{return e.includes("svelte")}))}}],en=[],tn=!1,nn=function(){if(!st)
{if(st=(null===(e=Jt.find((function(e){return e.detectionMethod()})))||void 0===e?
void 0:e.platform)||K.ServerSideUnknown,tn)for(;en.length;)en.pop()();else
en.forEach((function(e){return
e()}));on(K.ServerSideUnknown,10),on(K.WebUnknown,10)}var e;return
st},rn=function(e){tn||en.push(e)};function on(e,t){st!==e||tn||
setTimeout((function(){st=void 0,tn=!0,setTimeout(nn,1e3)}),t)}var sn="aws-
amplify",an=new(function(){function e()
{this.userAgent="".concat(sn,"/").concat(Kt)}return
Object.defineProperty(e.prototype,"framework",{get:function(){return
nn()},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return
this.framework===K.ReactNative||this.framework===K.Expo},enumerable:!
1,configurable:!0}),e.prototype.observeFrameworkChanges=function(e){rn(e)},e}
()),cn=function(e){var t=void 0===e?{}:e,n=t.category,r=t.action,i=(t.framework,
[[sn,Kt]]);return n&&i.push([n,r]),i.push(["framework",nn()]),i},un=function(e)
{return cn(e).map((function(e){var t=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(e,2),n=t[0],r=t[1];return"".concat(n,"/").concat(r)})).join("
")},ln=Tt(It,[function(){return function(e,t){return function(t){return
function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void
0,void 0,(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(n){return t.headers["cache-
control"]="no-store",[2,e(t)]}))}))}}}]),hn={service:"cognito-
identity",endpointResolver:function(e){var t=e.region;return{url:new
URL("https://cognito-
identity.".concat(t,".").concat(bt(t)))}},retryDecider:Bt(Nt),computeDelay:qt,userA
gentValue:un()};rn((function(){hn.userAgentValue=un()}));var dn=function(e)
{return{"content-type":"application/x-amz-json-1.1","x-amz-
target":"AWSCognitoIdentityService.".concat(e)}},fn=function(e,t,n)
{return{headers:t,url:e.url,body:n,method:"POST"}},pn=function(){return
pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},pn.apply(this,arguments)},gn=function(e,t,n,r){return function(i,o){return
function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var s,a,c,u;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(l){switch(l.label){case 0:return[4,
(s=pn(pn({},r),i)).endpointResolver(s,o)];case 1:return a=l.sent(),[4,t(o,a)];case
2:return c=l.sent(),[4,e(c,pn({},s))];case 3:return u=l.sent(),[4,n(u)];case
4:return[2,l.sent()]}}))}))}},mn=gn(ln,(function(e,t){var
n=dn("GetId"),r=JSON.stringify(e);return fn(t,n,r)}),(function(e){return
function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(t){switch(t.label){case 0:return
e.statusCode>=300?[4,Nt(e)]:[3,2];case 1:throw t.sent();case 2:return[4,Lt(e)];case
3:return[2,{IdentityId:t.sent().IdentityId,$metadata:Dt(e)}]}}))}))}),hn),vn=gn(ln,
(function(e,t){var n=dn("GetCredentialsForIdentity"),r=JSON.stringify(e);return
fn(t,n,r)}),(function(e){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof
n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void
0,void 0,void 0,(function(){var t;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(n){switch(n.label){case 0:return
e.statusCode>=300?[4,Nt(e)]:[3,2];case 1:throw n.sent();case 2:return[4,Lt(e)];case
3:return[2,{IdentityId:(t=n.sent()).IdentityId,Credentials:(r=t.Credentials,void
0===r&&(r={}),
{AccessKeyId:r.AccessKeyId,SecretKey:r.SecretKey,SessionToken:r.SessionToken,Expira
tion:new Date(1e3*r.Expiration)}),$metadata:Dt(e)}]}var r}))}))}),hn),bn=function()
{return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},bn.apply(this,arguments)},yn=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},wn=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},_n=new h("Credentials"),En="undefined"!=typeof
Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",Sn=function(){function e(e)
{this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void
0,this.configure(e),this._refreshHandlers.google=pt.refreshGoogleToken,this._refres
hHandlers.facebook=gt.refreshFacebookToken}return
e.prototype.getModuleName=function()
{return"Credentials"},e.prototype.getCredSource=function(){return
this._credentials_source},e.prototype.configure=function(e){if(!e)return
this._config||{};this._config=Object.assign({},this._config,e);var
t=this._config.refreshHandlers;return
t&&(this._refreshHandlers=bn(bn({},this._refreshHandlers),t)),this._storage=this._c
onfig.storage,this._storage||(this._storage=(new
N).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof
this._storage.sync&&(this._storageSync=this._storage.sync()),"credentials_configure
d",null,"Credentials has been configured successfully",x.dispatch("core",
{event:"credentials_configured",data:null,message:"Credentials has been configured
successfully"},"Credentials",En),this._config},e.prototype.get=function(){return
_n.debug("getting
credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKe
y=function(e)
{return"".concat("CognitoIdentityId-").concat(e)},e.prototype._pickupCredentials=fu
nction(){return _n.debug("picking up
credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?
_n.debug("getting old cred promise"):(_n.debug("getting new cred
promise"),this._gettingCredPromise=function(e){if(e.isResolved)return e;var t=!
0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!
1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return
t},i.isRejected=function(){return n},i}
(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function()
{return yn(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return wn(this,
(function(a){switch(a.label){case 0:if(_n.debug("checking if credentials exists and
not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return
_n.debug("credentials not changed and not expired, directly return"),
[2,Promise.resolve(e)];if(_n.debug("need to get a new credential or refresh the
existing one"),t=this.Auth,!(n=void 0===t?p.Auth:t)||"function"!=typeof
n.currentUserCredentials)return[2,this._setCredentialsForGuest()];if(this._isExpire
d(e)||!this._isPastTTL())return[3,6];_n.debug("ttl has passed but token is not yet
expired"),a.label=1;case 1:return a.trys.push([1,5,,6]),
[4,n.currentUserPoolUser()];case 2:return r=a.sent(),[4,n.currentSession()];case
3:return i=a.sent(),o=i.refreshToken,[4,new Promise((function(e,t)
{r.refreshSession(o,(function(n,r){return n?t(n):e(r)}))}))];case 4:return
a.sent(),[3,6];case 5:return s=a.sent(),_n.debug("Error attempting to refreshing
the session",s),[3,6];case
6:return[2,n.currentUserCredentials()]}}))}))},e.prototype.refreshFederatedToken=fu
nction(e){_n.debug("Getting federated credentials");var
t=e.provider,n=e.user,r=e.token,i=e.identity_id,o=e.expires_at;o=1970===new
Date(o).getFullYear()?1e3*o:o;var s=this;return _n.debug("checking if federated jwt
token expired"),o>(new Date).getTime()?(_n.debug("token not
expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id
:i,expires_at:o})):s._refreshHandlers[t]&&"function"==typeof s._refreshHandlers[t]?
(_n.debug("getting refreshed jwt token from federation
provider"),this._providerRefreshWithRetry({refreshHandler:s._refreshHandlers[t],pro
vider:t,user:n})):(_n.debug("no refresh handler for
provider:",t),this.clear(),Promise.reject("no refresh handler for
provider"))},e.prototype._providerRefreshWithRetry=function(e){var
t=this,n=e.refreshHandler,r=e.provider,i=e.user;return at(n,
[],1e4).then((function(e){return _n.debug("refresh federated token
sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,id
entity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e)
{return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network
error",e.length)||t.clear(),_n.debug("refresh federated token
failed",e),Promise.reject("refreshing federation token failed:
"+e)}))},e.prototype._isExpired=function(e){if(!e)return _n.debug("no credentials
for expiration check"),!0;_n.debug("are these credentials expired?",e);var
t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function()
{return
this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=funct
ion(){var e;return yn(this,void 0,void 0,(function(){var
t,n,r,i,o,s,a,c,u,l,h=this;return wn(this,(function(d){switch(d.label){case
0:return _n.debug("setting credentials for guest"),(null===(e=this._config)||void
0===e?void 0:e.identityPoolId)||
(this._config=Object.assign({},this._config,D(this._config||
{}).Auth)),t=this._config,n=t.identityPoolId,r=t.region,i=t.mandatorySignIn,o=t.ide
ntityPoolRegion,i?[2,Promise.reject("cannot get guest credentials when mandatory
signin enabled")]:n?o||r?(a=this,[4,this._getGuestIdentityId()]):(_n.debug("region
is not configured for getting the credentials"),[2,Promise.reject("region is not
configured for getting the credentials")]):(_n.debug("No Cognito Identity pool
provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool
provided for unauthenticated access")]);case 1:return
s=a._identityId=d.sent(),c={region:null!=o?o:r},u=function(){return yn(h,void
0,void 0,(function(){var e,t;return wn(this,(function(r){switch(r.label){case
0:return s?[3,2]:[4,mn(c,{IdentityPoolId:n})];case
1:e=r.sent().IdentityId,this._identityId=e,r.label=2;case 2:return[4,vn(c,
{IdentityId:this._identityId})];case 3:return t=r.sent().Credentials,[2,
{identityId:this._identityId,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,
sessionToken:t.SessionToken,expiration:t.Expiration}]}}))}))},l=u().catch((function
(e){return yn(h,void 0,void 0,(function(){return wn(this,(function(t){throw
e}))}))})),[2,this._loadCredentials(l,"guest",!1,null).then((function(e){return
e})).catch((function(e){return yn(h,void 0,void 0,(function(){var t,r=this;return
wn(this,(function(i){switch(i.label){case 0:return"ResourceNotFoundException"!
==e.name||e.message!=="Identity '".concat(s,"' not found.")?[3,2]:(_n.debug("Failed
to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return
i.sent(),t=function(){return yn(r,void 0,void 0,(function(){var e,t;return wn(this,
(function(r){switch(r.label){case 0:return[4,mn(c,{IdentityPoolId:n})];case
1:return e=r.sent().IdentityId,this._identityId=e,[4,vn(c,{IdentityId:e})];case
2:return t=r.sent().Credentials,[2,
{identityId:e,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.
SessionToken,expiration:t.Expiration}]}}))}))},
l=t().catch((function(e){return yn(r,void 0,void 0,(function(){return wn(this,
(function(t){throw e}))}))})),[2,this._loadCredentials(l,"guest",!1,null)];case
2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function
(e){var
t=this,n=e.provider,r=e.token,i=e.identity_id,o={google:"accounts.google.com",faceb
ook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-
identity.amazonaws.com"}[n]||n;if(!o)return Promise.reject("You must specify a
federated provider");var s={};s[o]=r;var
a=this._config,c=a.identityPoolId,u=a.region,l=a.identityPoolRegion;if(!c)return
_n.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito
Federated Identity pool provided");if(!l&&!u)return _n.debug("region is not
configured for getting the credentials"),Promise.reject("region is not configured
for getting the credentials");var h={region:null!=l?l:u},d=yn(t,void 0,void 0,
(function(){var e,t;return wn(this,(function(n){switch(n.label){case 0:return i?
[3,2]:[4,mn(h,{IdentityPoolId:c,Logins:s})];case
1:e=n.sent().IdentityId,i=e,n.label=2;case 2:return[4,vn(h,
{IdentityId:i,Logins:s})];case 3:return t=n.sent().Credentials,[2,
{identityId:i,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.
SessionToken,expiration:t.Expiration}]}}))})).catch((function(e){return yn(t,void
0,void 0,(function(){return wn(this,(function(t){throw e}))}))}));return
this._loadCredentials(d,"federated",!
0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;_n.debug("set
credentials from session");var
n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,s=r.identit
yPoolId,a=r.identityPoolRegion;if(!s)return _n.debug("No Cognito Federated Identity
pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!
a&&!i)return _n.debug("region is not configured for getting the
credentials"),Promise.reject("region is not configured for getting the
credentials");var c={};c["cognito-idp."+i+".amazonaws.com/"+o]=n;var
u={region:null!=a?a:i},l=yn(t,void 0,void 0,(function(){var
e,t,n,r,i,o,a,l,h,d;return wn(this,(function(f){switch(f.label){case
0:return[4,this._getGuestIdentityId()];case 1:return(e=f.sent())?[3,3]:[4,mn(u,
{IdentityPoolId:s,Logins:c})];case 2:n=f.sent().IdentityId,t=n,f.label=3;case
3:return[4,vn(u,{IdentityId:e||t,Logins:c})];case 4:return
r=f.sent(),i=r.Credentials,o=i.AccessKeyId,a=i.Expiration,l=i.SecretKey,h=i.Session
Token,d=r.IdentityId,this._identityId=d,e?(_n.debug("The guest identity
".concat(e," has been successfully linked to the logins")),e===d&&_n.debug("The
guest identity ".concat(e," has become the primary identity")),
[4,this._removeGuestIdentityId()]):[3,6];case 5:f.sent(),f.label=6;case 6:return[2,
{accessKeyId:o,secretAccessKey:l,sessionToken:h,expiration:a,identityId:d}]}}))})).
catch((function(e){return yn(t,void 0,void 0,(function(){return wn(this,
(function(t){throw e}))}))}));return this._loadCredentials(l,"userPool",!
0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this;return
new Promise((function(s,a){e.then((function(e){return yn(i,void 0,void 0,
(function(){var i,a,c,u,l;return wn(this,(function(h){switch(h.label){case
0:if(_n.debug("Load credentials successfully",e),this._identityId&&!
e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authe
nticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()
+3e6,"federated"===t)
{i=Object.assign({id:this._credentials.identityId},r.user),a=r.provider,c=r.token,u
=r.expires_at,l=r.identity_id;try{this._storage.setItem("aws-amplify-
federatedInfo",JSON.stringify({provider:a,token:c,user:i,expires_at:u,identity_id:l
}))}catch(e){_n.debug("Failed to put federated info into auth
storage",e)}}return"guest"!==t?[3,2]:
[4,this._setGuestIdentityId(e.identityId)];case 1:h.sent(),h.label=2;case 2:return
s(o._credentials),[2]}}))}))})).catch((function(t){if(t)return _n.debug("Failed to
load credentials",e),_n.debug("Error loading credentials",t),void
a(t)}))}))},e.prototype.set=function(e,t){return"session"===t?
this._setCredentialsFromSession(e):"federation"===t?
this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():
(_n.debug("no source specified for setting credentials"),Promise.reject("invalid
source"))},e.prototype.clear=function(){return yn(this,void 0,void 0,(function()
{return wn(this,(function(e){return
this._credentials=null,this._credentials_source=null,_n.debug("removing aws-
amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-
federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return
yn(this,void 0,void 0,(function(){var e,t;return wn(this,(function(n)
{switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return
n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),
[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return
t=n.sent(),_n.debug("Failed to get the cached guest identityId",t),[3,4];case
4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return yn(this,void
0,void 0,(function(){var t,n;return wn(this,(function(r){switch(r.label){case
0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),
[4,this._storageSync];case 2:return
r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),
[3,4];case 3:return n=r.sent(),_n.debug("Failed to cache guest identityId",n),
[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return
yn(this,void 0,void 0,(function(){var e;return wn(this,(function(t){return
e=this._config.identityPoolId,_n.debug("removing
".concat(this._getCognitoIdentityIdStorageKey(e)," from
storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),
[2]}))}))},e.prototype.shear=function(e)
{return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.sec
retAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),Tn=new
Sn(null);p.register(Tn);var An=function(e){return new Date(Date.now()
+e)},Cn=function(e){var
t,n=e.credentials,r=e.region,i=e.service,o=e.uriEscapePath,s=void 0===o||o;return
function(e){return function(o){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){var a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(d){switch(d.label){case 0:return
t=null!=t?t:0,h={},"function"!=typeof n?[3,2]:[4,n()];case 1:return a=d.sent(),
[3,3];case 2:a=n,d.label=3;case 3:return
h.credentials=a,h.signingDate=An(t),h.signingRegion=r,h.signingService=i,h.uriEscap
ePath=s,[4,Ne(o,h)];case 4:return c=d.sent(),[4,e(c)];case 5:return u=d.sent(),
(l=On(u))&&(t=function(e,t){return function(e,t){return Math.abs(An(t).getTime()-
e)>=3e5}(e,t)?e-Date.now():t}(Date.parse(l),t)),[2,u]}}))}))}}},On=function(e){var
t,n,r=(void 0===e?{}:e).headers;return null!==(n=null!==(t=null==r?void
0:r.date)&&void 0!==t?t:null==r?void 0:r.Date)&&void 0!==n?n:null==r?void 0:r["x-
amz-date"]},xn=Tt(xt,[St,wt,Cn]),In=function(e){return
encodeURIComponent(e).replace(/[!'()*]/g,Pn)},Pn=function(e)
{return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())},Dn={service:"mobilet
argeting",endpointResolver:function(e){var t=e.region;return{url:new
URL("https://pinpoint.".concat(t,".").concat(bt(t)))}},retryDecider:Bt(Nt),computeD
elay:qt,userAgentValue:un()},kn=gn(xn,(function(e,t){var
n=e.ApplicationId,r=e.EventsRequest,i=new URL(t.url);return
i.pathname="v1/apps/".concat(In(n),"/events"),{method:"POST",headers:{"content-
type":"application/json"},url:i,body:JSON.stringify(null!=r?r:{})}}),(function(e)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3
===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(t){switch(t.label){case 0:return
e.statusCode>=300?[4,Nt(e)]:[3,2];case 1:throw t.sent();case 2:return[4,Lt(e)];case
3:return[2,{EventsResponse:{Results:t.sent().Results},
$metadata:Dt(e)}]}}))}))}),Dn),Rn=gn(xn,(function(e,t){var
n=e.ApplicationId,r=e.EndpointId,i=e.EndpointRequest,o=new URL(t.url);return
o.pathname="v1/apps/".concat(In(n),"/endpoints/").concat(In(r)),
{method:"PUT",headers:{"content-type":"application/
json"},url:o,body:JSON.stringify(null!=i?i:{})}}),(function(e){return
function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var t,n,r;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(i){switch(i.label){case 0:return
e.statusCode>=300?[4,Nt(e)]:[3,2];case 1:throw i.sent();case 2:return[4,Lt(e)];case
3:return t=i.sent(),n=t.Message,r=t.RequestID,[2,{MessageBody:
{Message:n,RequestID:r},$metadata:Dt(e)}]}}))}))}),Dn),Mn=n(54597);function Nn(e)
{return cn({category:Y.Analytics,action:e})}function Ln(e){return
un({category:Y.Analytics,action:e})}var Fn=new
h("EventsBuffer"),jn=[429,500],Bn=[202],Un=function(){function e(e){this._pause=!
1,this._flush=!1,Fn.debug("Instantiating buffer with
config:",e),this._buffer=[],this._config=e,this._sendBatch=this._sendBatch.bind(thi
s),this._startLoop()}return e.prototype.push=function(e){var
t;if(this._buffer.length>=this._config.bufferSize)return Fn.debug("Exceeded
analytics events buffer size"),e.handlers.reject(new Error("Exceeded the size of
analytics events buffer"));var n=((t={})
[e.params.event.eventId]=e,t);this._buffer.push(n)},e.prototype.pause=function()
{this._pause=!0},e.prototype.resume=function(){this._pause=!
1},e.prototype.flush=function(){this._flush=!0},e.prototype._startLoop=function()
{this._interval&&clearInterval(this._interval);var
e=this._config.flushInterval;this._interval=setInterval(this._sendBatch,e)},e.proto
type._sendBatch=function(){var e=this._buffer.length;if(this._flush&&!
e&&clearInterval(this._interval),!this._pause&&e){var
t=this._config.flushSize,n=Math.min(t,e),r=this._buffer.splice(0,n);this._putEvents
(r)}},e.prototype._putEvents=function(e){return b(this,void 0,void 0,(function()
{var t,n,r,i,o,s,a;return y(this,(function(c){switch(c.label){case
0:t=this._bufferToMap(e),n=this._generateBatchEventParams(t),c.label=1;case
1:return c.trys.push([1,3,,4]),r=this._config,i=r.credentials,o=r.region,
[4,kn({credentials:i,region:o,userAgentValue:Ln($.Record)},n)];case 2:return
s=c.sent(),this._processPutEventsSuccessResponse(s,t),[3,4];case 3:return
a=c.sent(),[2,this._handlePutEventsFailure(a,t)];case
4:return[2]}}))}))},e.prototype._generateBatchEventParams=function(e){var
t={ApplicationId:"",EventsRequest:{BatchItem:{}}};return
Object.values(e).forEach((function(e){var
n=e.params,r=n.event,i=n.timestamp,o=n.config,s=r.name,a=r.attributes,c=r.metrics,u
=r.eventId,l=r.session,h=o.appId,d=o.endpointId,f=t.EventsRequest.BatchItem;t.Appli
cationId=t.ApplicationId||h,f[d]||(f[d]={Endpoint:{},Events:
{}}),f[d].Events[u]={EventType:s,Timestamp:new
Date(i).toISOString(),Attributes:a,Metrics:c,Session:l}})),t},e.prototype._handlePu
tEventsFailure=function(e,t){Fn.debug("_putEvents Failed: ",e);var n=e.
$metadata&&e.$metadata.httpStatusCode;if(jn.includes(n)){var
r=Object.values(t);this._retry(r)}},e.prototype._processPutEventsSuccessResponse=fu
nction(e,t){var n,r=(null!==(n=e.EventsResponse)&&void 0!==n?n:{}).Results,i=void
0===r?{}:r,o=[];Object.entries(i).forEach((function(e){var
n,r=w(e,2),i=r[0],s=null!==(n=r[1].EventsItemResponse)&&void 0!==n?n:
{};Object.entries(s).forEach((function(e){var
n,r,s=w(e,2),a=s[0],c=s[1],u=t[a];if(u){var l=null!=c?c:
{},h=l.StatusCode,d=l.Message,f={EventsResponse:{Results:
(n={},n[i]={EventsItemResponse:
(r={},r[a]={StatusCode:h,Message:d},r)},n)}};if(h&&Bn.includes(h))u.handlers.resolv
e(f);else{if(!h||!jn.includes(h)){var p=u.params.event.name;return Fn.error("event
"+a+" : "+p+" failed with error:
"+d),u.handlers.reject(f)}o.push(u)}}}))})),o.length&&this._retry(o)},e.prototype._
retry=function(e){var t,n=[];e.forEach((function(e){var
t,r=e.params,i=r.event,o=i.eventId,s=i.name;if(r.resendLimit-- >0)return
Fn.debug("resending event "+o+" : "+s+" with "+r.resendLimit+" retry attempts
remaining"),void n.push((t={},t[o]=e,t));Fn.debug("no retry attempts remaining for
event "+o+" : "+s)})),
(t=this._buffer).unshift.apply(t,_(n))},e.prototype._bufferToMap=function(e){return
e.reduce((function(e,t){var
n=w(Object.entries(t),1),r=w(n[0],2),i=r[0],o=r[1];return e[i]=o,e}),{})},e}
();const Hn=Un;var Gn="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",zn=function(e,t)
{x.dispatch("analytics",{event:e,data:t},"Analytics",Gn)},Vn=new
h("AWSPinpointProvider"),Wn=[429,500],qn=[202],Kn="_update_endpoint",Yn="_session.s
top",$n="undefined"!=typeof navigator&&navigator&&"function"==typeof
navigator.sendBeacon,Qn=function(){function e(e){this._endpointGenerating=!
0,this._endpointUpdateInProgress=!
1,this._buffer=null,this._endpointBuffer=[],this._config=e||
{},this._config.bufferSize=this._config.bufferSize||
1e3,this._config.flushSize=this._config.flushSize||
100,this._config.flushInterval=this._config.flushInterval||
5e3,this._config.resendLimit=this._config.resendLimit||
5,this._clientInfo=se.clientInfo()}return e.prototype.getCategory=function(){return
e.category},e.prototype.getProviderName=function(){return
e.providerName},e.prototype.configure=function(e){var t=this;Vn.debug("configure
Analytics",e);var n=e||
{};if(this._config=Object.assign({},this._config,n),this._endpointGenerating=!!
e.autoSessionRecord,this._config.appId&&!
this._config.disabled)if(this._config.endpointId)zn("pinpointProvider_configured",n
ull);else{var r=this.getProviderName()
+"_"+this._config.appId;this._getEndpointId(r).then((function(e){Vn.debug("setting
endpoint id from the
cache",e),t._config.endpointId=e,zn("pinpointProvider_configured",null)})).catch((f
unction(e){Vn.debug("Failed to generate endpointId",e)}))}else
this._flushBuffer();return this._config},e.prototype.record=function(e,t){return
b(this,void 0,void 0,(function(){var n,r;return y(this,(function(i){switch(i.label)
{case 0:return Vn.debug("_public record",e),[4,this._getCredentials()];case
1:return(n=i.sent())&&this._config.appId&&this._config.region?(this._init(n),r=(new
Date).getTime(),this._generateSession(e),e.event.eventId=(0,Mn.v1)
(),Object.assign(e,{timestamp:r,config:this._config}),e.event.immediate?
[2,this._send(e,t)]:(this._putToBuffer(e,t),[2])):(Vn.debug("cannot send events
without credentials, applicationId or region"),[2,t.reject(new Error("No
credentials, applicationId or
region"))])}}))}))},e.prototype._sendEndpointUpdate=function(e){return b(this,void
0,void 0,(function(){var t;return y(this,(function(n){switch(n.label){case 0:return
this._endpointUpdateInProgress?(this._endpointBuffer.push(e),[2]):
(this._endpointUpdateInProgress=!0,[4,this._updateEndpoint(e)]);case 1:return
n.sent(),t=this._endpointBuffer.shift(),this._endpointUpdateInProgress=!
1,t&&this._sendEndpointUpdate(t),[2]}}))}))},e.prototype._putToBuffer=function(e,t)
{var n;e.event.name!==Kn?null===(n=this._buffer)||void 0===n||
n.push({params:e,handlers:t}):this._sendEndpointUpdate({params:e,handlers:t})},e.pr
ototype._generateSession=function(e){this._sessionId=this._sessionId||(0,Mn.v1)
();var t=e.event;switch(t.name)
{case"_session.start":this._sessionStartTimestamp=(new
Date).getTime(),this._sessionId=(0,Mn.v1)
(),t.session={Id:this._sessionId,StartTimestamp:new
Date(this._sessionStartTimestamp).toISOString()};break;case Yn:var n=(new
Date).getTime();this._sessionStartTimestamp=this._sessionStartTimestamp||(new
Date).getTime(),this._sessionId=this._sessionId||(0,Mn.v1)
(),t.session={Id:this._sessionId,Duration:n-
this._sessionStartTimestamp,StartTimestamp:new
Date(this._sessionStartTimestamp).toISOString(),StopTimestamp:new
Date(n).toISOString()},this._sessionId=void 0,this._sessionStartTimestamp=void
0;break;default:this._sessionStartTimestamp=this._sessionStartTimestamp||(new
Date).getTime(),this._sessionId=this._sessionId||(0,Mn.v1)
(),t.session={Id:this._sessionId,StartTimestamp:new
Date(this._sessionStartTimestamp).toISOString()}}},e.prototype._send=function(e,t)
{return b(this,void 0,void 0,(function(){return y(this,(function(n)
{switch(e.event.name){case
Kn:return[2,this._updateEndpoint({params:e,handlers:t})];case
Yn:return[2,this._pinpointSendStopSession(e,t)];default:return[2,this._pinpointPutE
vents(e,t)]}return[2]}))}))},e.prototype._generateBatchItemContext=function(e){var
t,n,r=e.event,i=e.timestamp,o=e.config,s=r.name,a=r.attributes,c=r.metrics,u=r.even
tId,l=r.session;return{ApplicationId:o.appId,EventsRequest:{BatchItem:
(t={},t[o.endpointId]={Endpoint:{},Events:(n={},n[u]={EventType:s,Timestamp:new
Date(i).toISOString(),Attributes:a,Metrics:c,Session:l},n)},t)}}},e.prototype._pinp
ointPutEvents=function(e,t){var n,r,i,o,s;return b(this,void 0,void 0,(function()
{var a,c,u,l,h,d,f,p,g,m,v;return y(this,(function(b){switch(b.label){case
0:a=e.event.eventId,c=e.config.endpointId,u=this._generateBatchItemContext(e),b.lab
el=1;case 1:return b.trys.push([1,3,,4]),l=this._config,h=l.credentials,d=l.region,
[4,kn({credentials:h,region:d,userAgentValue:Ln($.Record)},u)];case 2:return
f=b.sent(),p=null!==(s=null===(o=null===(i=null===(r=null===(n=f.EventsResponse)||
void 0===n?void 0:n.Results)||void 0===r?void 0:r[c])||void 0===i?void
0:i.EventsItemResponse)||void 0===o?void 0:o[a])&&void 0!==s?s:
{},g=p.StatusCode,m=p.Message,g&&qn.includes(g)?(Vn.debug("record event success.
",f),[2,t.resolve(f)]):g&&Wn.includes(g)?(this._retry(e,t),[3,4]):(Vn.error("Event
"+a+" is not accepted, the error is "+m),[2,t.reject(f)]);case 3:return
v=b.sent(),this._eventError(v),[2,t.reject(v)];case
4:return[2]}}))}))},e.prototype._pinpointSendStopSession=function(e,t){if($n){var
n=this._generateBatchItemContext(e),r=this._config.region,i=n.ApplicationId,o=n.Eve
ntsRequest,s={secret_key:this._config.credentials.secretAccessKey,access_key:this._
config.credentials.accessKeyId,session_token:this._config.credentials.sessionToken}
,a="https://pinpoint."+r+".amazonaws.com/v1/apps/"+i+"/events/
legacy",c=JSON.stringify(o),u={url:a,body:c,method:"POST"},l={region:r,service:"mob
iletargeting"},h=Ue.signUrl(u,s,l);return navigator.sendBeacon(h,c)?
t.resolve("sendBeacon success"):t.reject("sendBeacon
failure")}this._pinpointPutEvents(e,t)},e.prototype._retry=function(e,t){var
n=e.config.resendLimit;e.resendLimit="number"==typeof e.resendLimit?
e.resendLimit:n,e.resendLimit-- >0?(Vn.debug("resending event "+e.eventName+" with
"+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):Vn.debug("retry
times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e)
{return b(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,h,d,f,p;return
y(this,(function(g){switch(g.label){case
0:t=e.params,n=e.handlers,r=t.config,i=t.event,o=r.appId,s=r.endpointId,a=this._end
pointRequest(r,qe(i,[],
["attributes","userAttributes","Attributes","UserAttributes"])),c={ApplicationId:o,
EndpointId:s,EndpointRequest:a},g.label=1;case 1:return
g.trys.push([1,3,,4]),u=this._config,l=u.credentials,h=u.region,
[4,Rn({credentials:l,region:h,userAgentValue:Ln($.UpdateEndpoint)},c)];case
2:return d=g.sent(),Vn.debug("updateEndpoint success",d),this._endpointGenerating=!
1,this._resumeBuffer(),n.resolve(d),[2];case 3:return
f=g.sent(),p={err:f,update_params:c,endpointObject:e},
[2,this._handleEndpointUpdateFailure(p)];case
4:return[2]}}))}))},e.prototype._handleEndpointUpdateFailure=function(e){return
b(this,void 0,void 0,(function(){var t,n,r;return y(this,(function(i){return
t=e.err,n=e.endpointObject,r=t.$metadata&&t.
$metadata.httpStatusCode,Vn.debug("updateEndpoint error",t),403===r?
[2,this._handleEndpointUpdateForbidden(e)]:Wn.includes(r)?
[2,this._retryEndpointUpdate(n,!0)]:(Vn.error("updateEndpoint
failed",t),n.handlers.reject(t),
[2])}))}))},e.prototype._handleEndpointUpdateForbidden=function(e){var
t=e.err,n=e.endpointObject,r=t.code,i=t.retryable;if("ExpiredTokenException"!==r&&!
i)return
n.handlers.reject(t);this._retryEndpointUpdate(n)},e.prototype._retryEndpointUpdate
=function(e,t){void 0===t&&(t=!1),Vn.debug("_retryEndpointUpdate",e);var
n=e.params,r=n.config.resendLimit;if(n.resendLimit="number"==typeof n.resendLimit?
n.resendLimit:r,n.resendLimit-- >0)return Vn.debug("resending endpoint update
"+n.event.eventId+" with "+n.resendLimit+" retry attempts
remaining"),void(this._endpointBuffer.length?
this._endpointBuffer.unshift(e):this._updateEndpoint(e));Vn.warn("resending
endpoint update "+n.event.eventId+" failed after "+n.config.resendLimit+"
attempts"),this._endpointGenerating&&Vn.error("Initial endpoint update failed.
")},e.prototype._init=function(e){return b(this,void 0,void 0,(function(){var
t;return y(this,(function(n){return Vn.debug("init
provider"),this._config.credentials&&this._config.credentials.sessionToken===e.sess
ionToken&&this._config.credentials.identityId===e.identityId?(Vn.debug("no change
for aws credentials, directly return from init"),[2]):(t=this._config.credentials?
this._config.credentials.identityId:null,this._config.credentials=e,this._bufferExi
sts()&&t===e.identityId||this._initBuffer(),
[2])}))}))},e.prototype._bufferExists=function(){return this._buffer&&this._buffer
instanceof Hn},e.prototype._initBuffer=function()
{this._bufferExists()&&this._flushBuffer(),this._buffer=new
Hn(this._config),this._endpointGenerating&&this._buffer.pause()},e.prototype._flush
Buffer=function(){var e;this._bufferExists()&&(null===(e=this._buffer)||void
0===e||e.flush(),this._buffer=null)},e.prototype._resumeBuffer=function(){var
e;this._bufferExists()&&(null===(e=this._buffer)||void 0===e||
e.resume())},e.prototype._getEndpointId=function(e){return b(this,void 0,void 0,
(function(){var t,n;return y(this,(function(r){switch(r.label){case
0:return[4,W.getItem(e)];case 1:return t=r.sent(),Vn.debug("endpointId from
cache",t,"type",typeof t),t||(t=(0,Mn.v1)(),n=(new Date).getTime()
+31536e8,W.setItem(e,t,{expires:n,priority:1})),
[2,t]}}))}))},e.prototype._endpointRequest=function(e,t){var
n=e.credentials,r=this._clientInfo||{},i=e.clientContext||{},o=e.endpoint||
{},s={appVersion:r.appVersion,make:r.make,model:r.model,modelVersion:r.version,plat
form:r.platform},a=(i.clientId,i.appTitle,i.appVersionName,i.appVersionCode,i.appPa
ckageName,v(i,
["clientId","appTitle","appVersionName","appVersionCode","appPackageName"])),c=t.ad
dress?"android"===r.platform?"GCM":"APNS":void 0,u=m(m(m({channelType:c,requestId:
(0,Mn.v1)(),effectiveDate:(new Date).toISOString()},o),t),
{attributes:m(m({},o.attributes),t.attributes),demographic:m(m(m(m({},s),a),o.demog
raphic),t.demographic),location:m(m({},o.location),t.location),metrics:m(m({},o.met
rics),t.metrics),user:{userId:t.userId||o.userId||
n.identityId,userAttributes:m(m({},o.userAttributes),t.userAttributes)}}),l=(u.user
Id,u.userAttributes,u.name,u.session,u.eventId,u.immediate,v(u,
["userId","userAttributes","name","session","eventId","immediate"]));return Ke(l,
[],["metrics","userAttributes","attributes"])},e.prototype._eventError=function(e)
{Vn.error("record event failed.",e),Vn.warn('Please ensure you have updated your
Pinpoint IAM Policy with the Action: "mobiletargeting:PutEvents" in order to record
events')},e.prototype._getCredentials=function(){return b(this,void 0,void 0,
(function(){var e,t;return y(this,(function(n){switch(n.label){case 0:return
n.trys.push([0,2,,3]),[4,Tn.get()];case 1:return(e=n.sent())?(Vn.debug("set
credentials for analytics",e),[2,Tn.shear(e)]):[2,null];case 2:return
t=n.sent(),Vn.debug("ensure credentials error",t),[2,null];case
3:return[2]}}))}))},e.category="Analytics",e.providerName="AWSPinpoint",e}
(),Xn=[],Zn=function(){function e(e,t)
{this.context=e,this.methodName=t,this._originalMethod=e[t].bind(e)}return
e.add=function(e,t,n){Jn(e,t).set(n)},e.remove=function(e,t)
{Jn(e,t).remove()},e.prototype.set=function(e){var
t=this;this.context[this.methodName]=function(){for(var
n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return
e(t._originalMethod.apply(t,_(n)))}},e.prototype.remove=function()
{this.context[this.methodName]=this._originalMethod},e}();function Jn(e,t){var
n=Xn.filter((function(n){return n.context===e&&n.methodName===t}))[0];return n||
(n=new Zn(e,t),Xn.push(n)),n}var er=new h("PageViewTracker"),tr="aws-amplify-
analytics-prevUrl",nr={enable:!1,provider:"AWSPinpoint",getUrl:function(){return
We().isBrowser?window.location.origin+window.location.pathname:""}},rr=function()
{function e(e,t){er.debug("initialize pageview tracker with
opts",t),this._config=Object.assign({},nr,t),this._tracker=e,this._hasEnabled=!
1,this._trackFunc=this._trackFunc.bind(this),"SPA"===this._config.type?
this._pageViewTrackSPA():this._pageViewTrackDefault()}return
e.prototype.configure=function(e){return
Object.assign(this._config,e),"SPA"===this._config.type&&this._pageViewTrackSPA(),t
his._config},e.prototype._isSameUrl=function(){return
sessionStorage.getItem(tr)===this._config.getUrl()&&(er.debug("the url is same"),!
0)},e.prototype._pageViewTrackDefault=function(){return b(this,void 0,void 0,
(function(){var e,t,n,r;return y(this,(function(i){switch(i.label){case 0:return
We().isBrowser&&window.addEventListener&&window.sessionStorage?
(e=this._config.getUrl(),"function"!=typeof this._config.attributes?[3,2]:
[4,this._config.attributes()]):(er.debug("not in the supported web enviroment"),
[2]);case 1:return n=i.sent(),[3,3];case 2:n=this._config.attributes,i.label=3;case
3:return t=n,r=Object.assign({url:e},t),this._config.enable&&!
this._isSameUrl()&&(this._tracker({name:this._config.eventName||"pageView",attribut
es:r},this._config.provider).catch((function(e){er.debug("Failed to record the page
view event",e)})),sessionStorage.setItem(tr,e)),
[2]}}))}))},e.prototype._trackFunc=function(){return b(this,void 0,void 0,
(function(){var e,t,n,r;return y(this,(function(i){switch(i.label){case 0:return
We().isBrowser&&window.addEventListener&&history.pushState&&window.sessionStorage?
(e=this._config.getUrl(),"function"!=typeof this._config.attributes?[3,2]:
[4,this._config.attributes()]):(er.debug("not in the supported web enviroment"),
[2]);case 1:return n=i.sent(),[3,3];case
2:n=this._config.attributes,i.label=3;case 3:return
t=n,r=Object.assign({url:e},t),this._isSameUrl()||
(this._tracker({name:this._config.eventName||"pageView",attributes:r},this._config.
provider).catch((function(e){er.debug("Failed to record the page view
event",e)})),sessionStorage.setItem(tr,e)),
[2]}}))}))},e.prototype._pageViewTrackSPA=function()
{We().isBrowser&&window.addEventListener&&history.pushState?this._config.enable&&!
this._hasEnabled?
(Zn.add(history,"pushState",this._trackFunc),Zn.add(history,"replaceState",this._tr
ackFunc),window.addEventListener("popstate",this._trackFunc),this._trackFunc(),this
._hasEnabled=!0):
(Zn.remove(history,"pushState"),Zn.remove(history,"replaceState"),window.removeEven
tListener("popstate",this._trackFunc),this._hasEnabled=!1):er.debug("not in the
supported web enviroment")},e}(),ir=We().isBrowser&&window.Element?
window.Element.prototype:null,or=ir?ir.matches||ir.matchesSelector||
ir.webkitMatchesSelector||ir.mozMatchesSelector||ir.msMatchesSelector||
ir.oMatchesSelector:null;function sr(e,t){if(e&&1===e.nodeType&&t)
{if("string"==typeof t||1===t.nodeType)return e===t||ar(e,t);if("length"in
t)for(var n=0,r=void 0;r=t[n];n++)if(e===r||ar(e,r))return!0}return!1}function
ar(e,t){if("string"!=typeof t)return!1;if(or)return or.call(e,t);for(var
n=e.parentNode.querySelectorAll(t),r=0,i=void 0;i=n[r];r++)if(i===e)return!
0;return!1}var cr=new h("EventTracker"),ur={enable:!1,events:
["click"],selectorPrefix:"data-amplify-
analytics-",provider:"AWSPinpoint"},lr=function(){function e(e,t)
{We().isBrowser&&window.addEventListener?
(this._config=Object.assign({},ur,t),this._tracker=e,this._delegates={},this._track
Func=this._trackFunc.bind(this),cr.debug("initialize pageview tracker with
opts",this._config),this.configure(this._config)):cr.debug("not in the supported
web environment")}return e.prototype.configure=function(e){var
t=this;if(Object.assign(this._config,e),this._config.enable)
{if(this._config.enable&&0===Object.keys(this._delegates).length){var
n="["+this._config.selectorPrefix+"on]";this._config.events.forEach((function(e)
{t._delegates[e]=function(e,t,n,r,i){void 0===i&&(i={});var o=function(e){var
t;if(i.composed&&"function"==typeof e.composedPath)for(var
o=e.composedPath(),s=0,a=void 0;a=o[s];s++)1===a.nodeType&&sr(a,n)&&(t=a);else
t=function(e,t,n){if(void 0===n&&(n=!1),e&&1===e.nodeType&&t)for(var r,i=(n?[e]:
[]).concat(function(e){for(var
t=[],n=e;n&&n.parentNode&&1===n.parentNode.nodeType;)n=n.parentNode,t.push(n);retur
n t}(e)),o=0;r=i[o];o++)if(sr(r,t))return r}(e.target,n,!
0);t&&r.call(t,e,t)};return e.addEventListener(t,o,i.useCapture),
{destroy:function(){e.removeEventListener(t,o,i.useCapture)}}}
(document,e,n,t._trackFunc,{composed:!0,useCapture:!0})}))}}else
Object.keys(this._delegates).forEach((function(e){"function"==typeof
t._delegates[e].destroy&&t._delegates[e].destroy()})),this._delegates={};return
this._config},e.prototype._trackFunc=function(e,t){return b(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c;return y(this,(function(u){switch(u.label){case
0:return n={},r=t.getAttribute(this._config.selectorPrefix+"on").split(/\s*,\
s*/),i=t.getAttribute(this._config.selectorPrefix+"name"),
(o=t.getAttribute(this._config.selectorPrefix+"attrs"))&&o.split(/\s*,\
s*/).forEach((function(e){var t=e.trim().split(/\s*:\
s*/);n[t[0]]=t[1]})),"function"!=typeof this._config.attributes?[3,2]:
[4,this._config.attributes()];case 1:return a=u.sent(),[3,3];case
2:a=this._config.attributes,u.label=3;case 3:return
s=a,c=Object.assign({type:e.type,target:e.target.localName+" with id
"+e.target.id},s,n),cr.debug("events needed to be recorded",r),cr.debug("attributes
needed to be attached",n),r.indexOf(e.type)<0?(cr.debug("event "+e.type+" is not
selected to be recorded"),[2]):
(this._tracker({name:i||"event",attributes:c},this._config.provider).catch((functio
n(t){cr.debug("Failed to record the "+e.type+" event', "+t)})),[2])}}))}))},e}
(),hr=new h("SessionTracker"),dr={enable:!1,provider:"AWSPinpoint"},fr=!
1,pr=function(){function e(e,t)
{this._config=Object.assign({},dr,t),this._tracker=e,this._hasEnabled=!
1,this._trackFunc=this._trackFunc.bind(this),this._trackBeforeUnload=this._trackBef
oreUnload.bind(this),this.configure(this._config)}return
e.prototype._envCheck=function(){if(!We().isBrowser)return!1;if(!document||!
document.addEventListener)return hr.debug("not in the supported web environment"),!
1;if(void 0!
==document.hidden)this._hidden="hidden",this._visibilityChange="visibilitychange";e
lse if(void 0!
==document.msHidden)this._hidden="msHidden",this._visibilityChange="msvisibilitycha
nge";else{if(void 0===document.webkitHidden)return hr.debug("not in the supported
web environment"),!
1;this._hidden="webkitHidden",this._visibilityChange="webkitvisibilitychange"}retur
n!0},e.prototype._trackFunc=function(){return b(this,void 0,void 0,(function(){var
e,t,n;return y(this,(function(r){switch(r.label){case 0:return"function"!=typeof
this._config.attributes?[3,2]:[4,this._config.attributes()];case 1:return
t=r.sent(),[3,3];case 2:t=this._config.attributes,r.label=3;case 3:return
e=t,n=Object.assign({},e),document.visibilityState===this._hidden?
this._tracker({name:"_session.stop",attributes:n},this._config.provider).catch((fun
ction(e){hr.debug("record session stop event
failed.",e)})):this._tracker({name:"_session.start",attributes:n},this._config.prov
ider).catch((function(e){hr.debug("record session start event failed.",e)})),
[2]}}))}))},e.prototype._trackBeforeUnload=function(e){var t=this;
("function"==typeof this._config.attributes?
Promise.resolve(this._config.attributes()):Promise.resolve(this._config.attributes)
).then((function(e){var
n=Object.assign({},e);t._tracker({name:"_session.stop",attributes:n,immediate:!
0},t._config.provider).catch((function(e){hr.debug("record session stop event
failed.",e)}))}))},e.prototype._sendInitialEvent=function(){return b(this,void
0,void 0,(function(){var e,t,n;return y(this,(function(r){switch(r.label){case
0:return fr?(hr.debug("the start session has been sent when the page is loaded"),
[2]):(fr=!0,"function"!=typeof this._config.attributes?[3,2]:
[4,this._config.attributes()]);case 1:return t=r.sent(),[3,3];case
2:t=this._config.attributes,r.label=3;case 3:return
e=t,n=Object.assign({},e),this._tracker({name:"_session.start",attributes:n},this._
config.provider).catch((function(e){hr.debug("record session start event
failed.",e)})),[2]}}))}))},e.prototype.configure=function(e){return
this._envCheck()?(Object.assign(this._config,e),this._config.enable&&!
this._hasEnabled?
(this._sendInitialEvent(),document.addEventListener(this._visibilityChange,this._tr
ackFunc,!1),window.addEventListener("beforeunload",this._trackBeforeUnload,!
1),this._hasEnabled=!0):!
this._config.enable&&this._hasEnabled&&(document.removeEventListener(this._visibili
tyChange,this._trackFunc,!
1),window.removeEventListener("beforeunload",this._trackBeforeUnload,!
1),this._hasEnabled=!1),this._config):this._config},e}(),gr=new
h("AnalyticsClass"),mr="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",vr=function(e,t,n)
{x.dispatch("analytics",
{event:e,data:t,message:n},"Analytics",mr)},br={pageView:rr,event:lr,session:pr},yr
=null,wr=function(){function e()
{this._config={},this._pluggables=[],this._disabled=!
1,this._trackers={},yr=this,this.record=this.record.bind(this),x.listen("auth",Ar),
x.listen("storage",Ar),x.listen("analytics",Ar),x.listen("core",Ar)}return
e.prototype.getModuleName=function()
{return"Analytics"},e.prototype.configure=function(e){var t=this;if(!e)return
this._config;gr.debug("configure Analytics",e);var n=D(e);return
this._config=Object.assign({},this._config,n.Analytics,e),this._config.disabled&&(t
his._disabled=!0),void
0===this._config.autoSessionRecord&&(this._config.autoSessionRecord=!
0),this._pluggables.forEach((function(e){var n="AWSPinpoint"!
==e.getProviderName()||t._config.AWSPinpoint?
t._config[e.getProviderName()]:t._config;e.configure(m({disabled:t._config.disabled
,autoSessionRecord:t._config.autoSessionRecord},n))})),0===this._pluggables.length&
&this.addPluggable(new Qn),vr("configured",null,"The Analytics category has been
configured successfully"),gr.debug("current
configuration",this._config),this._config},e.prototype.addPluggable=function(e)
{if(e&&"Analytics"===e.getCategory()){this._pluggables.push(e);var t="AWSPinpoint"!
==e.getProviderName()||this._config.AWSPinpoint?
this._config[e.getProviderName()]:this._config,n=m({disabled:this._config.disabled}
,t);return e.configure(n),n}},e.prototype.getPluggable=function(e){for(var
t=0;t<this._pluggables.length;t+=1){var
n=this._pluggables[t];if(n.getProviderName()===e)return n}return gr.debug("No
plugin found with providerName",e),null},e.prototype.removePluggable=function(e)
{for(var t=0;t<this._pluggables.length&&this._pluggables[t].getProviderName()!
==e;)t+=1;return t===this._pluggables.length?void gr.debug("No plugin found with
providerName",e):void
this._pluggables.splice(t,t+1)},e.prototype.disable=function(){this._disabled=!
0},e.prototype.enable=function(){this._disabled=!
1},e.prototype.startSession=function(e){return b(this,void 0,void 0,(function(){var
t,n;return y(this,(function(r){return
n={event:t={name:"_session.start"},provider:e},vr("record",t,"Recording Analytics
session start event"),
[2,this._sendEvent(n)]}))}))},e.prototype.stopSession=function(e){return
b(this,void 0,void 0,(function(){var t,n;return y(this,(function(r){return
n={event:t={name:"_session.stop"},provider:e},vr("record",t,"Recording Analytics
session stop event"),[2,this._sendEvent(n)]}))}))},e.prototype.record=function(e,t)
{return b(this,void 0,void 0,(function(){var n;return y(this,(function(r){return
vr("record",(n={event:e,provider:t}).event,"Recording Analytics event"),
[2,this._sendEvent(n)]}))}))},e.prototype.updateEndpoint=function(e,t){return
b(this,void 0,void 0,(function(){var
n;return y(this,(function(r){return n=m(m({},e),{name:"_update_endpoint"}),
[2,this.record(n,t)]}))}))},e.prototype._sendEvent=function(e){var
t=this;if(this._disabled)return gr.debug("Analytics has been
disabled"),Promise.resolve();var n=e.provider?e.provider:"AWSPinpoint";return new
Promise((function(r,i){t._pluggables.forEach((function(t)
{t.getProviderName()===n&&t.record(e,
{resolve:r,reject:i})}))}))},e.prototype.autoTrack=function(e,t){if(br[e])
{"session"===e&&(this._config.autoSessionRecord=t.enable);var
n=this._trackers[e];n?n.configure(t):this._trackers[e]=new br[e]
(this.record,t)}else gr.debug("invalid tracker type")},e}(),_r=!1,Er=!1,Sr=!1,Tr=!
1,Ar=function(e){var t=e.channel,n=e.payload;switch(gr.debug("on hub capsule
"+t,n),t)
{case"auth":Or(n);break;case"storage":Cr(n);break;case"analytics":xr(n);break;case"
core":Ir(n)}},Cr=function(e){var
t=e.data,n=t.attrs,r=t.metrics;n&&Sr&&yr.record({name:"Storage",attributes:n,metric
s:r}).catch((function(e){gr.debug("Failed to send the storage event
automatically",e)}))},Or=function(e){var t=e.event;if(t){var n=function(e){return
b(void 0,void 0,void 0,(function(){var t;return y(this,(function(n){switch(n.label)
{case 0:if(!Er||!Sr)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),
[4,yr.record({name:"_userauth."+e})];case 2:return[2,n.sent()];case 3:return
t=n.sent(),gr.debug("Failed to send the "+e+" event automatically",t),[3,4];case
4:return[2]}}))}))};switch(t){case"signIn":return n("sign_in");case"signUp":return
n("sign_up");case"signOut":return n("sign_out");case"signIn_failure":return
n("auth_fail");case"configured":Er=!0,Sr&&Pr()}}},xr=function(e){var
t=e.event;t&&"pinpointProvider_configured"===t&&(Sr=!0,(Er||
Tr)&&Pr())},Ir=function(e){var t=e.event;t&&"credentials_configured"===t&&(Tr=!
0,Sr&&Pr())},Pr=function(){var e=yr.configure();!
_r&&e.autoSessionRecord&&(yr.updateEndpoint({immediate:!0}).catch((function(e)
{gr.debug("Failed to update the endpoint",e)})),_r=!0),yr.autoTrack("session",
{enable:e.autoSessionRecord})},Dr=new wr;p.register(Dr);var kr=function(e,t){return
kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},kr(e,t)};function Rr(e,t)
{if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value
"+String(t)+" is not a constructor or null");function n()
{this.constructor=e}kr(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var Mr,Nr,Lr,Fr,jr,Br,Ur,Hr,Gr,zr,Vr,Wr,qr,Kr,Yr,
$r,Qr,Xr,Zr,Jr,ei,ti,ni,ri,ii,oi,si,ai,ci,ui,li,hi,di,fi,pi,gi,mi,vi,bi,yi,wi,_i,Ei
,Si,Ti,Ai,Ci,Oi,xi,Ii,Pi,Di,ki,Ri,Mi,Ni,Li,Fi,ji,Bi,Ui,Hi,Gi,zi,Vi,Wi,qi,Ki,Yi,
$i,Qi,Xi,Zi,Ji,eo,to,no,ro,io,oo,so,ao,co=function(){return co=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},co.apply(this,arguments)};function uo(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function lo(e,t,n,r){return new(n||(n=Promise))((function(i,o)
{function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function ho(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}function fo(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function po(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function go(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(po(arguments[t]));return e}function mo(e,t,n){if(n||
2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))}function vo(e){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var
t,n=e[Symbol.asyncIterator];return n?n.call(e):
(e=fo(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function()
{return this},t);function r(n){t[n]=e[n]&&function(t){return new
Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t)
{e({value:t,done:n})}),t)}(r,i,(t=e[n]
(t)).done,t.value)}))}}}Object.create,Object.create,"function"==typeof
SuppressedError&&SuppressedError,function(e){e.filterSensitiveLog=function(e)
{return co({},e)}}(Mr||(Mr={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(Nr||(Nr={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(Lr||(Lr={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(Fr||(Fr={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(jr||(jr={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(Br||(Br={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(Ur||(Ur={})),function(e)
{e.ACTIVE="ACTIVE",e.CREATING="CREATING",e.DELETING="DELETING"}(Hr||
(Hr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Gr||
(Gr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(zr||
(zr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Vr||
(Vr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Wr||
(Wr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(qr||
(qr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Kr||
(Kr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Yr||
(Yr={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}($r||
($r={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Qr||
(Qr={})),function(e){e.KMS="KMS",e.NONE="NONE"}(Xr||(Xr={})),function(e)
{e.ALL="ALL",e.INCOMING_BYTES="IncomingBytes",e.INCOMING_RECORDS="IncomingRecords",
e.ITERATOR_AGE_MILLISECONDS="IteratorAgeMilliseconds",e.OUTGOING_BYTES="OutgoingByt
es",e.OUTGOING_RECORDS="OutgoingRecords",e.READ_PROVISIONED_THROUGHPUT_EXCEEDED="Re
adProvisionedThroughputExceeded",e.WRITE_PROVISIONED_THROUGHPUT_EXCEEDED="WriteProv
isionedThroughputExceeded"}(Zr||(Zr={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Jr||(Jr={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ei||(ei={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ti||(ti={})),function(e)
{e.ACTIVE="ACTIVE",e.CREATING="CREATING",e.DELETING="DELETING",e.UPDATING="UPDATING
"}(ni||(ni={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ri||
(ri={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ii||
(ii={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(oi||
(oi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(si||
(si={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ai||
(ai={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ci||
(ci={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ui||
(ui={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(li||
(li={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(hi||
(hi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(di||
(di={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(fi||
(fi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(pi||
(pi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(gi||
(gi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(mi||
(mi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(vi||
(vi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(bi||
(bi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(yi||
(yi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(wi||
(wi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(_i||
(_i={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Ei||
(Ei={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Si||
(Si={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Ti||
(Ti={})),function(e)
{e.AFTER_SEQUENCE_NUMBER="AFTER_SEQUENCE_NUMBER",e.AT_SEQUENCE_NUMBER="AT_SEQUENCE_
NUMBER",e.AT_TIMESTAMP="AT_TIMESTAMP",e.LATEST="LATEST",e.TRIM_HORIZON="TRIM_HORIZO
N"}(Ai||(Ai={})
),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Ci||
(Ci={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Oi||
(Oi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(xi||
(xi={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Ii||
(Ii={})),function(e)
{e.AFTER_SHARD_ID="AFTER_SHARD_ID",e.AT_LATEST="AT_LATEST",e.AT_TIMESTAMP="AT_TIMES
TAMP",e.AT_TRIM_HORIZON="AT_TRIM_HORIZON",e.FROM_TIMESTAMP="FROM_TIMESTAMP",e.FROM_
TRIM_HORIZON="FROM_TRIM_HORIZON"}(Pi||(Pi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Di||(Di={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ki||(ki={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ri||(Ri={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Mi||(Mi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ni||(Ni={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Li||(Li={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Fi||(Fi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ji||(ji={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Bi||(Bi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ui||(Ui={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Hi||(Hi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Gi||(Gi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(zi||(zi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Vi||(Vi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Wi||(Wi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(qi||(qi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ki||(Ki={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Yi||(Yi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}($i||($i={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Qi||(Qi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Xi||(Xi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Zi||(Zi={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ji||(Ji={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(eo||(eo={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(to||(to={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(no||(no={})),function(e)
{e.visit=function(e,t){return void 0!==e.SubscribeToShardEvent?
t.SubscribeToShardEvent(e.SubscribeToShardEvent):void 0!
==e.ResourceNotFoundException?
t.ResourceNotFoundException(e.ResourceNotFoundException):void 0!
==e.ResourceInUseException?t.ResourceInUseException(e.ResourceInUseException):void
0!==e.KMSDisabledException?t.KMSDisabledException(e.KMSDisabledException):void 0!
==e.KMSInvalidStateException?
t.KMSInvalidStateException(e.KMSInvalidStateException):void 0!
==e.KMSAccessDeniedException?
t.KMSAccessDeniedException(e.KMSAccessDeniedException):void 0!
==e.KMSNotFoundException?t.KMSNotFoundException(e.KMSNotFoundException):void 0!
==e.KMSOptInRequired?t.KMSOptInRequired(e.KMSOptInRequired):void 0!
==e.KMSThrottlingException?t.KMSThrottlingException(e.KMSThrottlingException):void
0!==e.InternalFailureException?
t.InternalFailureException(e.InternalFailureException):t._(e.$unknown[0],e.
$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!
==e.SubscribeToShardEvent?
{SubscribeToShardEvent:no.filterSensitiveLog(e.SubscribeToShardEvent)}:void 0!
==e.ResourceNotFoundException?
{ResourceNotFoundException:jr.filterSensitiveLog(e.ResourceNotFoundException)}:void
0!==e.ResourceInUseException?
{ResourceInUseException:Fr.filterSensitiveLog(e.ResourceInUseException)}:void 0!
==e.KMSDisabledException?
{KMSDisabledException:yi.filterSensitiveLog(e.KMSDisabledException)}:void 0!
==e.KMSInvalidStateException?
{KMSInvalidStateException:wi.filterSensitiveLog(e.KMSInvalidStateException)}:void
0!==e.KMSAccessDeniedException?
{KMSAccessDeniedException:bi.filterSensitiveLog(e.KMSAccessDeniedException)}:void
0!==e.KMSNotFoundException?
{KMSNotFoundException:_i.filterSensitiveLog(e.KMSNotFoundException)}:void 0!
==e.KMSOptInRequired?
{KMSOptInRequired:Ei.filterSensitiveLog(e.KMSOptInRequired)}:void 0!
==e.KMSThrottlingException?
{KMSThrottlingException:Si.filterSensitiveLog(e.KMSThrottlingException)}:void 0!
==e.InternalFailureException?
{InternalFailureException:Ii.filterSensitiveLog(e.InternalFailureException)}:void
0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(ro||
(ro={})),function(e){e.filterSensitiveLog=function(e){return
co(co({},e),e.EventStream&&{EventStream:"STREAMING_CONTENT"})}}(io||
(io={})),function(e){e.UNIFORM_SCALING="UNIFORM_SCALING"}(oo||(oo={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(so||(so={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ao||(ao={}));var bo=function()
{function e(e){this.statusCode=e.statusCode,this.headers=e.headers||
{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var
t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}
(),yo=function(){return yo=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},yo.apply(this,arguments)};function wo(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}var _o=function(){function e(e)
{this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port
,this.query=e.query||{},this.headers=e.headers||
{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?
e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!
==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!
e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in
t&&"object"==typeof t.query&&"object"==typeof
t.headers},e.prototype.clone=function(){var t,n=new e(yo(yo({},this),
{headers:yo({},this.headers)}));return
n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var
r,i=t[n];return yo(yo({},e),((r={})[n]=Array.isArray(i)?function(){for(var
e=[],t=0;t<arguments.length;t++)e=e.concat(wo(arguments[t]));return e}(i):i,r))}),
{}))),n},e}(),Eo=function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v;return ho(this,(function(b){switch(b.label){case
0:return r=[co({},e)],v={},[4,Wo(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(v.body=b.sent(),v)])),o="UnknownError",o=qo(e,n.body))
{case"InvalidArgumentException":case"com.amazonaws.kinesis#InvalidArgumentException
":return[3,2];case"KMSAccessDeniedException":case"com.amazonaws.kinesis#KMSAccessDe
niedException":return[3,4];case"KMSDisabledException":case"com.amazonaws.kinesis#KM
SDisabledException":return[3,6];case"KMSInvalidStateException":case"com.amazonaws.k
inesis#KMSInvalidStateException":return[3,8];case"KMSNotFoundException":case"com.am
azonaws.kinesis#KMSNotFoundException":return[3,10];case"KMSOptInRequired":case"com.
amazonaws.kinesis#KMSOptInRequired":return[3,12];case"KMSThrottlingException":case"
com.amazonaws.kinesis#KMSThrottlingException":return[3,14];case"ProvisionedThroughp
utExceededException":case"com.amazonaws.kinesis#ProvisionedThroughputExceededExcept
ion":return[3,16];case"ResourceNotFoundException":case"com.amazonaws.kinesis#Resour
ceNotFoundException":return[3,18]}return[3,20];case 2:return s=[{}],
[4,So(n,t)];case 3:return i=co.apply(void 0,[co.apply(void 0,s.concat([b.sent()])),
{name:o,$metadata:zo(e)}]),[3,21];case 4:return a=[{}],[4,To(n,t)];case 5:return
i=co.apply(void 0,[co.apply(void 0,a.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 6:return c=[{}],[4,Ao(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 8:return u=[{}],[4,Co(n,t)];case 9:return
i=co.apply(void 0,[co.apply(void 0,u.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 10:return l=[{}],[4,Oo(n,t)];case 11:return
i=co.apply(void 0,[co.apply(void 0,l.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 12:return h=[{}],[4,xo(n,t)];case 13:return
i=co.apply(void 0,[co.apply(void 0,h.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 14:return d=[{}],[4,Io(n,t)];case 15:return
i=co.apply(void 0,[co.apply(void 0,d.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 16:return f=[{}],[4,Po(n,t)];case 17:return
i=co.apply(void 0,[co.apply(void 0,f.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 18:return p=[{}],[4,Do(n,t)];case 19:return
i=co.apply(void 0,[co.apply(void 0,p.concat([b.sent()])),{name:o,
$metadata:zo(e)}]),[3,21];case 20:g=n.body,o=g.code||g.Code||o,i=co(co({},g),
{name:""+o,message:g.message||g.Message||o,$fault:"client",
$metadata:zo(e)}),b.label=21;case 21:return m=i.message||i.Message||
o,i.message=m,delete i.Message,[2,Promise.reject(Object.assign(new
Error(m),i))]}}))}))},So=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r;return ho(this,(function(i){return n=e.body,r=Ro(n,t),
[2,co({name:"InvalidArgumentException",$fault:"client",
$metadata:zo(e)},r)]}))}))},To=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=Mo(n,t),
[2,co({name:"KMSAccessDeniedException",$fault:"client",
$metadata:zo(e)},r)]}))}))},Ao=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=No(n,t),
[2,co({name:"KMSDisabledException",$fault:"client",
$metadata:zo(e)},r)]}))}))},Co=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return
n=e.body,r=Lo(n,t),[2,co({name:"KMSInvalidStateException",$fault:"client",
$metadata:zo(e)},r)]}))}))},Oo=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=Fo(n,t),
[2,co({name:"KMSNotFoundException",$fault:"client",
$metadata:zo(e)},r)]}))}))},xo=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=jo(n,t),
[2,co({name:"KMSOptInRequired",$fault:"client",
$metadata:zo(e)},r)]}))}))},Io=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=Bo(n,t),
[2,co({name:"KMSThrottlingException",$fault:"client",
$metadata:zo(e)},r)]}))}))},Po=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=Uo(n,t),
[2,co({name:"ProvisionedThroughputExceededException",$fault:"client",
$metadata:zo(e)},r)]}))}))},Do=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=Go(n,t),
[2,co({name:"ResourceNotFoundException",$fault:"client",
$metadata:zo(e)},r)]}))}))},ko=function(e,t){return e.filter((function(e){return
null!=e})).map((function(e){return null===e?null:function(e,t){return
co(co(co({},void 0!==e.Data&&null!==e.Data&&{Data:t.base64Encoder(e.Data)}),void 0!
==e.ExplicitHashKey&&null!
==e.ExplicitHashKey&&{ExplicitHashKey:e.ExplicitHashKey}),void 0!
==e.PartitionKey&&null!==e.PartitionKey&&{PartitionKey:e.PartitionKey})}
(e,t)}))},Ro=function(e,t){return{message:void 0!==e.message&&null!==e.message?
e.message:void 0}},Mo=function(e,t){return{message:void 0!==e.message&&null!
==e.message?e.message:void 0}},No=function(e,t){return{message:void 0!
==e.message&&null!==e.message?e.message:void 0}},Lo=function(e,t)
{return{message:void 0!==e.message&&null!==e.message?e.message:void
0}},Fo=function(e,t){return{message:void 0!==e.message&&null!==e.message?
e.message:void 0}},jo=function(e,t){return{message:void 0!==e.message&&null!
==e.message?e.message:void 0}},Bo=function(e,t){return{message:void 0!
==e.message&&null!==e.message?e.message:void 0}},Uo=function(e,t)
{return{message:void 0!==e.message&&null!==e.message?e.message:void
0}},Ho=function(e,t){return(e||[]).filter((function(e){return null!
=e})).map((function(e){return null===e?null:function(e,t){return{ErrorCode:void 0!
==e.ErrorCode&&null!==e.ErrorCode?e.ErrorCode:void 0,ErrorMessage:void 0!
==e.ErrorMessage&&null!==e.ErrorMessage?e.ErrorMessage:void 0,SequenceNumber:void
0!==e.SequenceNumber&&null!==e.SequenceNumber?e.SequenceNumber:void 0,ShardId:void
0!==e.ShardId&&null!==e.ShardId?e.ShardId:void 0}}(e)}))},Go=function(e,t)
{return{message:void 0!==e.message&&null!==e.message?e.message:void
0}},zo=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!
==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},Vo=function(e,t,n,r,i){return lo(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,e.endpoint()];case 1:return o=h.sent(),s=o.hostname,a=o.protocol,c=void
0===a?"https":a,u=o.port,l={protocol:c,hostname:s,port:u,method:"POST",path:n,heade
rs:t},void 0!==r&&(l.hostname=r),void 0!==i&&(l.body=i),[2,new
_o(l)]}}))}))},Wo=function(e,t){return function(e,t){return function(e,t){return
void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?
Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)}
(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return
e.length?JSON.parse(e):{}}))},qo=function(e,t){var n,r=function(e){var t=e;return
t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")
[1]),t},i=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((function(e){return
e.toLowerCase()==="x-amzn-errortype".toLowerCase()})));return void 0!==i?
r(e.headers[i]):void 0!==t.code?r(t.code):void 0!==t.__type?
r(t.__type):""},Ko=function(){return Ko=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ko.apply(this,arguments)};function Yo(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function $o(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}var
Qo={name:"deserializerMiddleware",step:"deserialize",tags:
["DESERIALIZER"],override:!
0},Xo={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!
0};function Zo(e,t,n){return{applyToStack:function(r){r.add(function(e,t){return
function(n,r){return function(r){return Yo(void 0,void 0,void 0,(function(){var
i,o;return $o(this,(function(s){switch(s.label){case 0:return[4,n(r)];case 1:return
i=s.sent().response,[4,t(i,e)];case 2:return o=s.sent(),[2,
{response:i,output:o}]}}))}))}}}(e,n),Qo),r.add(function(e,t){return function(n,r)
{return function(r){return Yo(void 0,void 0,void 0,(function(){var i;return
$o(this,(function(o){switch(o.label){case 0:return[4,t(r.input,e)];case 1:return
i=o.sent(),[2,n(Ko(Ko({},r),{request:i}))]}}))}))}}}(e,t),Xo)}}}var Jo=function()
{return Jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Jo.apply(this,arguments)};function es(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function ts(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(es(arguments[t]));return e}var ns=function(){var e=[],t=[],n=new
Set,r=function(n){return e.forEach((function(e)
{n.add(e.middleware,Jo({},e))})),t.forEach((function(e)
{n.addRelativeTo(e.middleware,Jo({},e))})),n},i=function(e){var t=[];return
e.before.forEach((function(e){0===e.before.length&&0===e.after.length?
t.push(e):t.push.apply(t,ts(i(e)))})),t.push(e),e.after.reverse().forEach((function
(e){0===e.before.length&&0===e.after.length?
t.push(e):t.push.apply(t,ts(i(e)))})),t},o={add:function(t,r){void
0===r&&(r={});var
i=r.name,o=r.override,s=Jo({step:"initialize",priority:"normal",middleware:t},r);if
(i){if(n.has(i)){if(!o)throw new Error("Duplicate middleware name '"+i+"'");var
a=e.findIndex((function(e){return e.name===i})),c=e[a];if(c.step!==s.step||
c.priority!==s.priority)throw new Error('"'+i+'" middleware with '+c.priority+"
priority in "+c.step+" step cannot be overridden by same-name middleware with
"+s.priority+" priority in "+s.step+"
step.");e.splice(a,1)}n.add(i)}e.push(s)},addRelativeTo:function(e,r){var
i=r.name,o=r.override,s=Jo({middleware:e},r);if(i){if(n.has(i)){if(!o)throw new
Error("Duplicate middleware name '"+i+"'");var a=t.findIndex((function(e){return
e.name===i})),c=t[a];if(c.toMiddleware!==s.toMiddleware||c.relation!
==s.relation)throw new Error('"'+i+'" middleware '+c.relation+'
"'+c.toMiddleware+'" middleware cannot be overridden by same-name middleware
'+s.relation+' "'+s.toMiddleware+'"
middleware.');t.splice(a,1)}n.add(i)}t.push(s)},clone:function(){return
r(ns())},use:function(e){e.applyToStack(o)},remove:function(r)
{return"string"==typeof r?function(r){var i=!1,o=function(e){return!e.name||e.name!
==r||(i=!0,n.delete(r),!1)};return e=e.filter(o),t=t.filter(o),i}(r):function(r)
{var i=!1,o=function(e){return e.middleware!==r||(i=!0,e.name&&n.delete(e.name),!
1)};return e=e.filter(o),t=t.filter(o),i}(r)},removeByTag:function(r){var i=!
1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(r)||(o&&n.delete(o),i=!
0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var
t=r(ns());return t.use(e),t},applyToStack:r,resolve:function(n,r){var
o,s;try{for(var a=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(function(){var n=[],r=[],o={};e.forEach((function(e){var
t=Jo(Jo({},e),{before:[],after:
[]});t.name&&(o[t.name]=t),n.push(t)})),t.forEach((function(e){var t=Jo(Jo({},e),
{before:[],after:[]});t.name&&(o[t.name]=t),r.push(t)})),r.forEach((function(e)
{if(e.toMiddleware){var t=o[e.toMiddleware];if(void 0===t)throw new
Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+"
middleware "+e.relation+"
"+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.be
fore.push(e)}}));var s,a=(s=n,s.sort((function(e,t){return
rs[t.step]-rs[e.step]||is[t.priority||"normal"]-
is[e.priority||"normal"]}))).map(i).reduce((function(e,t){return
e.push.apply(e,ts(t)),e}),[]);return a.map((function(e){return e.middleware}))}
().reverse()),c=a.next();!c.done;c=a.next())n=(0,c.value)(n,r)}catch(e)
{o={error:e}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(o)throw
o.error}}return n}};return
o},rs={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},is={high:3
,normal:2,low:1},os=function(){function e(e)
{this.middlewareStack=ns(),this.config=e}return e.prototype.send=function(e,t,n)
{var r="function"!=typeof t?t:void 0,i="function"==typeof t?
t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return
o(e).then((function(e){return e.output}));o(e).then((function(e){return
i(null,e.output)}),(function(e){return i(e)})).catch((function()
{}))},e.prototype.destroy=function()
{this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}
(),ss=function(){this.middlewareStack=ns()},as=function(e,t){return
as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},as(e,t)};function cs(e,t){var
n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}var
us=function(){var
e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,function()
{for(var e=[],t=0;t<arguments.length;t++)e=e.concat(cs(arguments[t]));return e}
([null],arguments)),n=new t;return
Object.setPrototypeOf(n,e.prototype),n};us.prototype=Object.create(String.prototype
,{constructor:{value:us,enumerable:!1,writable:!0,configurable:!
0}}),Object.setPrototypeOf(us,String);for(var ls=function(e){function t(){return
null!==e&&e.apply(this,arguments)||this}return function(e,t){function n()
{this.constructor=e}as(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}(t,e),t.prototype.deserializeJSON=function(){return
JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return
e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?
e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))},t}
(us),hs="***SensitiveInformation***",ds=function(e){function t(t){var
n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"KinesisClient",comm
andName:"PutRecordsCommand",inputFilterSensitiveLog:Wi.filterSensitiveLog,outputFil
terSensitiveLog:Ki.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Kinesis_20131202.PutRecords"},r=JSON.stringify(function(e,t){return
co(co({},void 0!==e.Records&&null!==e.Records&&{Records:ko(e.Records,t)}),void 0!
==e.StreamName&&null!==e.StreamName&&{StreamName:e.StreamName})}(e,t)),
[2,Vo(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var n,r,i;return ho(this,
(function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Eo(e,t)]:
[4,Wo(e.body,t)];case 1:return n=o.sent(),r=function(e,t)
{return{EncryptionType:void 0!==e.EncryptionType&&null!==e.EncryptionType?
e.EncryptionType:void 0,FailedRecordCount:void 0!==e.FailedRecordCount&&null!
==e.FailedRecordCount?e.FailedRecordCount:void 0,Records:void 0!==e.Records&&null!
==e.Records?Ho(e.Records,t):void 0}}(n,t),i=co({$metadata:zo(e)},r),
[2,Promise.resolve(i)]}}))}))}(e,t)},t}
(ss),fs=n(55246),ps=n(65311),gs=n(10781),ms={},vs={},bs=0;bs<256;bs++){var
ys=bs.toString(16).toLowerCase();1===ys.length&&(ys="0"+ys),ms[bs]=ys,vs[ys]=bs}fun
ction ws(e){for(var t="",n=0;n<e.byteLength;n++)t+=ms[e[n]];return t}var
_s=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64
buffers must be exactly 8 bytes")}return e.fromNumber=function(t)
{if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large
(or, if negative, too small) to represent as an Int64");for(var n=new
Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return
t<0&&Es(n),new e(n)},e.prototype.valueOf=function(){var
e=this.bytes.slice(0),t=128&e[0];return t&&Es(e),parseInt(ws(e),16)*(t?-
1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function
Es(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var
Ss,Ts=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return
e.prototype.format=function(e){var t,n,r,i,o=[];try{for(var s=(0,gs.__values)
(Object.keys(e)),a=s.next();!a.done;a=s.next()){var
c=a.value,u=this.fromUtf8(c);o.push(Uint8Array.from([u.byteLength]),u,this.formatHe
aderValue(e[c]))}}catch(e){t={error:e}}finally{try{a&&!
a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var l=new
Uint8Array(o.reduce((function(e,t){return e+t.byteLength}),0)),h=0;try{for(var
d=(0,gs.__values)(o),f=d.next();!f.done;f=d.next()){var
p=f.value;l.set(p,h),h+=p.byteLength}}catch(e){r={error:e}}finally{try{f&&!
f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return
l},e.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return
Uint8Array.from([e.value?0:1]);case"byte":return
Uint8Array.from([2,e.value]);case"short":var t=new DataView(new
ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new
Uint8Array(t.buffer);case"integer":var n=new DataView(new ArrayBuffer(5));return
n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":var
r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new
DataView(new
ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength
,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var
s=this.fromUtf8(e.value),a=new DataView(new
ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);var
c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":var u=new
Uint8Array(9);return
u[0]=8,u.set(_s.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!
Ms.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new
Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new
Error("Hex encoded strings must have an even number length");for(var t=new
Uint8Array(e.length/2),n=0;n<e.length;n+=2){var r=e.substr(n,2).toLowerCase();if(!
(r in vs))throw new Error("Cannot decode unrecognized sequence "+r+" as
hexadecimal");t[n/2]=vs[r]}return
t}(e.value.replace(/\-/g,"")),1),l}},e.prototype.parse=function(e){for(var
t={},n=0;n<e.byteLength;){var r=e.getUint8(n++),i=this.toUtf8(new
Uint8Array(e.buffer,e.byteOffset+n,r));switch(n+=r,e.getUint8(n++)){case
0:t[i]={type:As,value:!0};break;case 1:t[i]={type:As,value:!1};break;case
2:t[i]={type:Cs,value:e.getInt8(n++)};break;case
3:t[i]={type:Os,value:e.getInt16(n,!1)},n+=2;break;case
4:t[i]={type:xs,value:e.getInt32(n,!1)},n+=4;break;case 5:t[i]={type:Is,value:new
_s(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:var
o=e.getUint16(n,!1);n+=2,t[i]={type:Ps,value:new
Uint8Array(e.buffer,e.byteOffset+n,o)},n+=o;break;case 7:var s=e.getUint16(n,!
1);n+=2,t[i]={type:Ds,value:this.toUtf8(new
Uint8Array(e.buffer,e.byteOffset+n,s))},n+=s;break;case 8:t[i]={type:ks,value:new
Date(new _s(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case
9:var a=new
Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[i]={type:Rs,value:ws(a.subarray(0,4)
)+"-"+ws(a.subarray(4,6))+"-"+ws(a.subarray(6,8))+"-"+ws(a.subarray(8,10))
+"-"+ws(a.subarray(10))};break;default:throw new Error("Unrecognized header type
tag")}}return t},e}();!function(e)
{e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.sho
rt=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArr
ay",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Ss||
(Ss={}));var
As="boolean",Cs="byte",Os="short",xs="integer",Is="long",Ps="binary",Ds="string",ks
="timestamp",Rs="uuid",Ms=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-
9]{12}$/,Ns=function(){function e(e,t){this.headerMarshaller=new Ts(e,t)}return
e.prototype.marshall=function(e){var
t=e.headers,n=e.body,r=this.headerMarshaller.format(t),i=r.byteLength+n.byteLength+
16,o=new Uint8Array(i),s=new DataView(o.buffer,o.byteOffset,o.byteLength),a=new
ps.Crc32;return s.setUint32(0,i,!1),s.setUint32(4,r.byteLength,!
1),s.setUint32(8,a.update(o.subarray(0,8)).digest(),!
1),o.set(r,12),o.set(n,r.byteLength+12),s.setUint32(i-4,a.update(o.subarray(8,i-
4)).digest(),!1),o},e.prototype.unmarshall=function(e){var t=function(e){var
t=e.byteLength,n=e.byteOffset,r=e.buffer;if(t<16)throw new Error("Provided message
too short to accommodate event stream message overhead");var i=new
DataView(r,n,t),o=i.getUint32(0,!1);if(t!==o)throw new Error("Reported message
length does not match received message length");var s=i.getUint32(4,!
1),a=i.getUint32(8,!1),c=i.getUint32(t-4,!1),u=(new ps.Crc32).update(new
Uint8Array(r,n,8));if(a!==u.digest())throw new Error("The prelude checksum
specified in the message ("+a+") does not match the calculated CRC32 checksum
("+u.digest()+")");if(u.update(new Uint8Array(r,n+8,t-12)),c!==u.digest())throw new
Error("The message checksum ("+u.digest()+") did not match the expected value of
"+c);return{headers:new DataView(r,n+8+4,s),body:new Uint8Array(r,n+8+4+s,o-s-16)}}
(e),n=t.headers,r=t.body;return{headers:this.headerMarshaller.parse(n),body:r}},e.p
rototype.formatHeaders=function(e){return
this.headerMarshaller.format(e)},e}();function Ls(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function Fs(e){return this instanceof Fs?
(this.v=e,this):new Fs(e)}function js(e,t,n){if(!Symbol.asyncIterator)throw new
TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||
[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{!function(e){e.value
instanceof Fs?Promise.resolve(e.value.v).then(c,u):l(o[0][2],e)}(i[e](t))}catch(e)
{l(o[0][3],e)}}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Bs(e){if(!
Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not
defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var
t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return
this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!
function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}
(r,i,(t=e[n](t)).done,t.value)}))}}}var Us=function(){function e(e){var
t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new
Ns(t,n),this.utfEncoder=t}return e.prototype.deserialize=function(e,t){var
n,r,i,o=function(e){var t,n=0,r=0,i=null,o=null;return(t={})
[Symbol.asyncIterator]=function(){return js(this,arguments,(function(){var
t,s,a,c,u,l,h,d;return Ls(this,(function(f){switch(f.label){case
0:t=e[Symbol.asyncIterator](),f.label=1;case 1:return[4,Fs(t.next())];case 2:return
s=f.sent(),a=s.value,s.done?n?[3,4]:[4,Fs(void 0)]:[3,10];case
3:return[2,f.sent()];case 4:return n!==r?[3,7]:[4,Fs(i)];case
5:return[4,f.sent()];case 6:return f.sent(),[3,8];case 7:throw new Error("Truncated
event message received.");case 8:return[4,Fs(void 0)];case
9:return[2,f.sent()];case 10:c=a.length,u=0,f.label=11;case 11:if(!
(u<c))return[3,15];if(!i){if(l=c-u,o||(o=new Uint8Array(4)),h=Math.min(4-
r,l),o.set(a.slice(u,u+h),r),u+=h,(r+=h)<4)return[3,15];!function(e){if("number"!
=typeof e)throw new Error("Attempted to allocate an event message where size was
not a number: "+e);n=e,r=4,i=new Uint8Array(e),new
DataView(i.buffer).setUint32(0,e,!1)}(new DataView(o.buffer).getUint32(0,!
1)),o=null}return d=Math.min(n-r,c-u),i.set(a.slice(u,u+d),r),r+=d,u+=d,n&&n===r?
[4,Fs(i)]:[3,14];case 12:return[4,f.sent()];case
13:f.sent(),i=null,n=0,r=0,f.label=14;case 14:return[3,11];case 15:return[3,1];case
16:return[2]}}))}))},t}
(e),s=(n=o,r={eventMarshaller:this.eventMarshaller,deserializer:t,toUtf8:this.utfEn
coder},(i={})[Symbol.asyncIterator]=function(){return js(this,arguments,(function()
{var e,t,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b;return Ls(this,(function(y){switch(y.label)
{case 0:y.trys.push([0,12,13,18]),e=Bs(n),y.label=1;case
1:return[4,Fs(e.next())];case
2:if((t=y.sent()).done)return[3,11];if(i=t.value,o=r.eventMarshaller.unmarshall(i),
"error"!==(s=o.headers[":message-type"].value))return[3,3];throw(a=new
Error(o.headers[":error-message"].value||"UnknownError")).name=o.headers[":error-
code"].value,a;case 3:return"exception"!==s?[3,5]:(c=o.headers[":exception-
type"].value,(g={})[c]=o,u=g,[4,Fs(r.deserializer(u))]);case 4:if((l=y.sent()).
$unknown)throw(h=new Error(r.toUtf8(o.body))).name=c,h;throw l[c];case
5:return"event"!==s?[3,9]:((m={})[o.headers[":event-type"].value]=o,d=m,
[4,Fs(r.deserializer(d))]);case 6:return(f=y.sent()).$unknown?[3,10]:[4,Fs(f)];case
7:return[4,y.sent()];case 8:return y.sent(),[3,10];case 9:throw
Error("Unrecognizable event type: "+o.headers[":event-type"].value);case
10:return[3,1];case 11:return[3,18];case 12:return p=y.sent(),v={error:p},
[3,18];case 13:return y.trys.push([13,,16,17]),t&&!t.done&&(b=e.return)?
[4,Fs(b.call(e))]:[3,15];case 14:y.sent(),y.label=15;case 15:return[3,17];case
16:if(v)throw v.error;return[7];case 17:return[7];case
18:return[2]}}))}))},i);return s},e.prototype.serialize=function(e,t){var
n,r=this;return(n={})[Symbol.asyncIterator]=function(){return js(this,arguments,
(function(){var n,i,o,s,a,c;return Ls(this,(function(u){switch(u.label){case
0:u.trys.push([0,7,8,13]),n=Bs(e),u.label=1;case 1:return[4,Fs(n.next())];case
2:return(i=u.sent()).done?[3,6]:(o=i.value,
[4,Fs(r.eventMarshaller.marshall(t(o)))]);case 3:return[4,u.sent()];case
4:u.sent(),u.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return
s=u.sent(),a={error:s},[3,13];case 8:return u.trys.push([8,,11,12]),i&&!
i.done&&(c=n.return)?[4,Fs(c.call(n))]:[3,10];case 9:u.sent(),u.label=10;case
10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case
13:return[4,Fs(new Uint8Array(0))];case 14:return[4,u.sent()];case 15:return
u.sent(),[2]}}))}))},n},e}();function Hs(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function Gs(e){return this instanceof Gs?
(this.v=e,this):new Gs(e)}var zs=function(){function e(e){var
t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new
Ns(t,n),this.universalMarshaller=new Us({utf8Decoder:n,utf8Encoder:t})}return
e.prototype.deserialize=function(e,t){var n,r,i=Vs(e)?(n=e,(r={})
[Symbol.asyncIterator]=function(){return function(e,t,n){if(!
Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not
defined.");var r,i=n.apply(e,t||[]),o=[];return
r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return
this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r)
{o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{!function(e){e.value
instanceof Gs?Promise.resolve(e.value.v).then(c,u):l(o[0][2],e)}(i[e](t))}catch(e)
{l(o[0][3],e)}}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t)
{e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,(function(){var
e,t,r,i;return Hs(this,(function(o){switch(o.label){case
0:e=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case
2:return[4,Gs(e.read())];case 3:return t=o.sent(),r=t.done,i=t.value,r?[4,Gs(void
0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Gs(i)];case
6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return
e.releaseLock(),[7];case 10:return[2]}}))}))},r):e;return
this.universalMarshaller.deserialize(i,t)},e.prototype.serialize=function(e,t){var
n,r=this.universalMarshaller.serialize(e,t);return"function"==typeof
ReadableStream?(n=r[Symbol.asyncIterator](),new ReadableStream({pull:function(e)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void
0,void 0,(function(){var t,r,i;return Hs(this,(function(o){switch(o.label){case
0:return[4,n.next()];case 1:return t=o.sent(),r=t.done,i=t.value,r?[2,e.close()]:
(e.enqueue(i),[2])}}))}))}})):r},e}(),Vs=function(e){return"function"==typeof
ReadableStream&&e instanceof ReadableStream};function Ws(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function qs(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw
new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?
r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!
(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case
0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label+
+,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}for(var Ks=function(e){return
encodeURIComponent(e).replace(/[!'()*]/g,Ys)},Ys=function(e)
{return"%"+e.charCodeAt(0).toString(16).toUpperCase()},$s=function(){function e(e)
{var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return
e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void
0===t?{}:t).abortSignal,r=this.requestTimeout;if(null==n?void 0:n.aborted){var
i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var
o=e.path;if(e.query){var s=function(e){var t,n,r=[];try{for(var i=function(e){var
t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var
s=o.value,a=e[s];if(s=Ks(s),Array.isArray(a))for(var c=0,u=a.length;c<u;c+
+)r.push(s+"="+Ks(a[c]));else{var l=s;(a||"string"==typeof
a)&&(l+="="+Ks(a)),r.push(l)}}}catch(e){t={error:e}}finally{try{o&&!
o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r.join("&")}
(e.query);s&&(o+="?"+s)}var a=e.port,c=e.method,u=e.protocol+"//"+e.hostname+
(a?":"+a:"")+o,l={body:"GET"===c||"HEAD"===c?void 0:e.body,headers:new
Headers(e.headers),method:c};"undefined"!=typeof AbortController&&(l.signal=n);var
h,d=new Request(u,l),f=[fetch(d).then((function(e){var
t,n,r=e.headers,i={};try{for(var o=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(r.entries()),s=o.next();!s.done;s=o.next()){var
a=s.value;i[a[0]]=a[1]}}catch(e){t={error:e}}finally{try{s&&!
s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return void 0!==e.body?
{response:new
bo({headers:i,statusCode:e.status,body:e.body})}:e.blob().then((function(t)
{return{response:new bo({headers:i,statusCode:e.status,body:t})}}))})),(h=r,void
0===h&&(h=0),new Promise((function(e,t){h&&setTimeout((function(){var e=new
Error("Request did not complete within "+h+"
ms");e.name="TimeoutError",t(e)}),h)})))];return n&&f.push(new
Promise((function(e,t){n.onabort=function(){var e=new Error("Request
aborted");e.name="AbortError",t(e)}}))),Promise.race(f)},e}(),Qs={},Xs=new
Array(64),Zs=0,Js="A".charCodeAt(0),ea="Z".charCodeAt(0);Zs+Js<=ea;Zs++){var
ta=String.fromCharCode(Zs+Js);Qs[ta]=Zs,Xs[Zs]=ta}for(Zs=0,Js="a".charCodeAt(0),ea=
"z".charCodeAt(0);Zs+Js<=ea;Zs++){ta=String.fromCharCode(Zs+Js);var
na=Zs+26;Qs[ta]=na,Xs[na]=ta}for(Zs=0;Zs<10;Zs+
+)Qs[Zs.toString(10)]=Zs+52,ta=Zs.toString(10),na=Zs+52,Qs[ta]=na,Xs[na]=ta;Qs["+"]
=62,Xs[62]="+",Qs["/"]=63,Xs[63]="/";function ra(e){var
t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var n=new
ArrayBuffer(t),r=new DataView(n),i=0;i<e.length;i+=4){for(var
o=0,s=0,a=i,c=i+3;a<=c;a++)"="!==e[a]?(o|=Qs[e[a]]<<6*(c-a),s+=6):o>>=6;var
u=i/4*3;o>>=s%8;for(var l=Math.floor(s/8),h=0;h<l;h++){var d=8*(l-h-
1);r.setUint8(u+h,(o&255<<d)>>d)}}return new Uint8Array(n)}function ia(e){for(var
t="",n=0;n<e.length;n+=3){for(var r=0,i=0,o=n,s=Math.min(n+3,e.length);o<s;o++)r|
=e[o]<<8*(s-o-1),i+=8;var a=Math.ceil(i/6);r<<=6*a-i;for(var c=1;c<=a;c++){var
u=6*(a-c);t+=Xs[(r&63<<u)>>u]}t+="==".slice(0,4-a)}return t}var oa=function(e)
{return"function"==typeof Blob&&e instanceof Blob?function(e){return Ws(this,void
0,void 0,(function(){var t,n;return qs(this,(function(r){switch(r.label){case
0:return[4,sa(e)];case 1:return t=r.sent(),n=ra(t),[2,new Uint8Array(n)]}}))}))}
(e):function(e){return Ws(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return
qs(this,(function(c){switch(c.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!
1,c.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=c.sent(),o=i.done,
(s=i.value)&&(a=t,(t=new
Uint8Array(a.length+s.length)).set(a),t.set(s,a.length)),r=o,[3,1];case
3:return[2,t]}}))}))}(e)};function sa(e){return new Promise((function(t,n){var
r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new
Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?
e:"",o=i.indexOf(","),s=o>-1?o+1:i.length;t(i.substring(s))},r.onabort=function()
{return n(new Error("Read aborted"))},r.onerror=function(){return
n(r.error)},r.readAsDataURL(e)}))}var aa=function(e){return function(){return
Promise.reject(e)}},ca=function(){return ca=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},ca.apply(this,arguments)};function ua(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function la(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function ha(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}var da={name:"retryMiddleware",tags:
["RETRY"],step:"finalizeRequest",priority:"high",override:!0},fa=function(e)
{return{applyToStack:function(t){t.add(function(e){return function(t,n){return
function(r){return ua(void 0,void 0,void 0,(function(){var i;return la(this,
(function(o){return(null===(i=null==e?void 0:e.retryStrategy)||void 0===i?void
0:i.mode)&&(n.userAgent=function(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(ha(arguments[t]));return e}(n.userAgent||[],[["cfg/retry-
mode",e.retryStrategy.mode]])),[2,e.retryStrategy.retry(t,r)]}))}))}}}
(e),da)}}},pa=["AuthFailure","InvalidSignatureException","RequestExpired","RequestI
nTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],ga=["BandwidthLimitExce
eded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","P
rovisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","R
equestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingE
xception","TooManyRequestsException","TransactionInProgressException"],ma=["AbortEr
ror","TimeoutError","RequestTimeout","RequestTimeoutException"],va=[500,502,503,504
],ba=function(e){var t,n;return 429===(null===(t=e.$metadata)||void 0===t?void
0:t.httpStatusCode)||ga.includes(e.name)||1==(null===(n=e.$retryable)||void 0===n?
void 0:n.throttling)},ya=n(90273),wa=function(e,t){return
Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},_a=function(e){return!!
e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return
pa.includes(e.name)}(e)||ba(e)||function(e){var t;return ma.includes(e.name)||
va.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}
(e))},Ea=function(){function e(e,t){var
n,r,i,o,s,a,c;this.maxAttemptsProvider=e,this.mode="standard",this.retryDecider=nul
l!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:_a,this.delayDecider=null!
==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:wa,this.retryQuota=null!
==(i=null==t?void 0:t.retryQuota)&&void 0!==i?i:(o=500,s=500,a=function(e)
{return"TimeoutError"===e.name?10:5},c=function(e){return
a(e)<=s},Object.freeze({hasRetryTokens:c,retrieveRetryTokens:function(e){if(!
c(e))throw new Error("No retry token available");var t=a(e);return s-
=t,t},releaseRetryTokens:function(e){s+=null!=e?e:1,s=Math.min(s,o)}}))}return
e.prototype.shouldRetry=function(e,t,n){return
t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAtt
empts=function(){return ua(this,void 0,void 0,(function(){var e;return la(this,
(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),
[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return
t.sent(),e=3,[3,3];case 3:return[2,e]}}))}))},e.prototype.retry=function(e,t)
{return
ua(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u;return la(this,(function(l)
{switch(l.label){case 0:return r=0,i=0,[4,this.getMaxAttempts()];case
1:o=l.sent(),s=t.request,_o.isInstance(s)&&(s.headers["amz-sdk-invocation-
id"]=(0,ya.v4)()),a=function(){var a,u,l,h,d;return la(this,(function(f)
{switch(f.label){case 0:return
f.trys.push([0,2,,5]),_o.isInstance(s)&&(s.headers["amz-sdk-request"]="attempt="+
(r+1)+"; max="+o),[4,e(t)];case 1:return
a=f.sent(),u=a.response,l=a.output,c.retryQuota.releaseRetryTokens(n),l.
$metadata.attempts=r+1,l.$metadata.totalRetryDelay=i,[2,{value:
{response:u,output:l}}];case 2:return h=f.sent(),r++,c.shouldRetry(h,r,o)?
(n=c.retryQuota.retrieveRetryTokens(h),d=c.delayDecider(ba(h)?500:100,r),i+=d,
[4,new Promise((function(e){return setTimeout(e,d)}))]):[3,4];case 3:return
f.sent(),[2,"continue"];case 4:throw h.$metadata||(h.$metadata={}),h.
$metadata.attempts=r,h.$metadata.totalRetryDelay=i,h;case
5:return[2]}}))},c=this,l.label=2;case 2:return[5,a()];case
3:return"object"==typeof(u=l.sent())?[2,u.value]:[3,2];case 4:return[2]}}))}))},e}
(),Sa=function(e){var t=Ta(e.maxAttempts);return ca(ca({},e),
{maxAttempts:t,retryStrategy:e.retryStrategy||new Ea(t)})},Ta=function(e){if(void
0===e&&(e=3),"number"==typeof e){var t=Promise.resolve(e);return function(){return
t}}return e};function Aa(e){if("string"==typeof e){for(var t=e.length,n=t-
1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t+
+:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?
e.byteLength:"number"==typeof e.size?e.size:void 0}var
Ca=n(77160),Oa=n.n(Ca),xa=n(54757),Ia="kinesis.{region}.amazonaws.com",Pa=new
Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-
southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-
1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-
east-2","us-west-1","us-west-2"]),Da=new Set(["cn-north-1","cn-northwest-
1"]),ka=new Set(["us-iso-east-1"]),Ra=new Set(["us-isob-east-1"]),Ma=new Set(["us-
gov-east-1","us-gov-west-1"]);function Na(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}var La,Fa,ja,Ba=function(e){var t,n=new
URL(e),r=n.hostname,i=n.pathname,o=n.port,s=n.protocol,a=n.search;return
a&&(t=function(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var i=function(e)
{var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(e.split("&")),o=i.next();!o.done;o=i.next()){var
s=Na(o.value.split("="),2),a=s[0],c=s[1],u=void 0===c?
null:c;a=decodeURIComponent(a),u&&(u=decodeURIComponent(u)),a in r?
Array.isArray(r[a])?r[a].push(u):r[a]=[r[a],u]:r[a]=u}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return r}(a)),{hostname:r,port:o?parseInt(o):void
0,protocol:s,path:i,query:t}},Ua={apiVersion:"2013-12-02",disableHostPrefix:!
1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-
1":n={hostname:"kinesis.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-
east-1":n={hostname:"kinesis.ap-east-
1.amazonaws.com",partition:"aws"};break;case"ap-northeast-
1":n={hostname:"kinesis.ap-northeast-
1.amazonaws.com",partition:"aws"};break;case"ap-northeast-
2":n={hostname:"kinesis.ap-northeast-
2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"kinesis.ap-
south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-
1":n={hostname:"kinesis.ap-southeast-
1.amazonaws.com",partition:"aws"};break;case"ap-southeast-
2":n={hostname:"kinesis.ap-southeast-
2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"kinesis.ca-
central-1.amazonaws.com",partition:"aws"};break;case"cn-north-
1":n={hostname:"kinesis.cn-north-1.amazonaws.com.cn",partition:"aws-
cn"};break;case"cn-northwest-1":n={hostname:"kinesis.cn-northwest-
1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-
1":n={hostname:"kinesis.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-
north-1":n={hostname:"kinesis.eu-north-
1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"kinesis.eu-
south-1.amazonaws.com",partition:"aws"};break;case"eu-west-
1":n={hostname:"kinesis.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-
west-2":n={hostname:"kinesis.eu-west-
2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"kinesis.eu-
west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-
1":n={hostname:"kinesis-fips.us-east-
1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-
east-2":n={hostname:"kinesis-fips.us-east-
2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-
west-1":n={hostname:"kinesis-fips.us-west-
1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"fips-us-
west-2":n={hostname:"kinesis-fips.us-west-
2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"me-south-
1":n={hostname:"kinesis.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-
east-1":n={hostname:"kinesis.sa-east-
1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"kinesis.us-
east-1.amazonaws.com",partition:"aws"};break;case"us-east-
2":n={hostname:"kinesis.us-east-2.amazonaws.com",partition:"aws"};break;case"us-
gov-east-1":n={hostname:"kinesis.us-gov-east-1.amazonaws.com",partition:"aws-us-
gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-
1":n={hostname:"kinesis.us-gov-west-1.amazonaws.com",partition:"aws-us-
gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-
1":n={hostname:"kinesis.us-iso-east-1.c2s.ic.gov",partition:"aws-
iso"};break;case"us-isob-east-1":n={hostname:"kinesis.us-isob-east-
1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-
1":n={hostname:"kinesis.us-west-1.amazonaws.com",partition:"aws"};break;case"us-
west-2":n={hostname:"kinesis.us-west-
2.amazonaws.com",partition:"aws"};break;default:Pa.has(e)&&(n={hostname:Ia.replace(
"{region}",e),partition:"aws"}),Da.has(e)&&(n={hostname:"kinesis.
{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-
cn"}),ka.has(e)&&(n={hostname:"kinesis.
{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-
iso"}),Ra.has(e)&&(n={hostname:"kinesis.
{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-
b"}),Ma.has(e)&&(n={hostname:"kinesis.
{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void
0===n&&(n={hostname:Ia.replace("{region}",e),partition:"aws"})}return
Promise.resolve(co({signingService:"kinesis"},n))},serviceId:"Kinesis",urlParser:Ba
},Ha=co(co({},Ua),
{runtime:"browser",base64Decoder:ra,base64Encoder:ia,bodyLengthChecker:Aa,credentia
lDefaultProvider:function(e){return function(){return Promise.reject(new
Error("Credential is missing"))}},defaultUserAgentProvider:
(La={serviceId:Ua.serviceId,clientVersion:"3.6.1"},Fa=La.serviceId,ja=La.clientVers
ion,function(){return function(e,t,n,r){return new(n||(n=Promise))((function(i,o)
{function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var e,t,n,r,i,o,s,a,c;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(u){return
e=(null===(n=null===window||void 0===window?void 0:window.navigator)||void 0===n?
void 0:n.userAgent)?Oa().parse(window.navigator.userAgent):void 0,t=[["aws-sdk-
js",ja],["os/"+((null===(r=null==e?void 0:e.os)||void 0===r?void
0:r.name)||"other"),null===(i=null==e?void 0:e.os)||void 0===i?void 0:i.version],
["lang/js"],["md/browser",(null!==(s=null===(o=null==e?void 0:e.browser)||void
0===o?void 0:o.name)&&void 0!==s?s:"unknown")+"_"+(null!==(c=null===(a=null==e?void
0:e.browser)||void 0===a?void 0:a.version)&&void 0!==c?
c:"unknown")]],Fa&&t.push(["api/"+Fa,ja]),
[2,t]}))}))}),eventStreamSerdeProvider:function(e){return new
zs(e)},maxAttempts:3,region:aa("Region is missing"),requestHandler:new
$s,sha256:fs.Sha256,streamCollector:oa,utf8Decoder:xa.fromUtf8,utf8Encoder:xa.toUtf
8}),Ga=function(){return Ga=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ga.apply(this,arguments)};var za=function(e){var t;return Ga(Ga({},e),
{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?Va(e):function(){return
Wa(e)},isCustomEndpoint:!!e.endpoint})},Va=function(e){var
t=e.endpoint,n=e.urlParser;if("string"==typeof t){var
r=Promise.resolve(n(t));return
function(){return r}}if("object"==typeof t){var i=Promise.resolve(t);return
function(){return i}}return t},Wa=function(e){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var t,n,r,i,o;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(s){switch(s.label){case 0:return
t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=s.sent(),!new RegExp(/^([a-zA-
Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid
region in client config");return[4,e.regionInfoProvider(r)];case 2:if(!(i=(null!
==(o=s.sent())&&void 0!==o?o:{}).hostname))throw new Error("Cannot resolve hostname
from client config");return[2,e.urlParser((n?"https:":"http:")
+"//"+i)]}}))}))},qa=function(e){if(!e.region)throw new Error("Region is
missing");return Ga(Ga({},e),{region:Ka(e.region)})},Ka=function(e)
{if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return
e},Ya=function(){return Ya=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ya.apply(this,arguments)},$a=function(){return $a=Object.assign||function(e)
{for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},
$a.apply(this,arguments)};var Qa="content-length",Xa={step:"build",tags:
["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!
0},Za=function(e){return{applyToStack:function(t){t.add(function(e){var
t=this;return function(n){return function(r){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function()
{var t,i,o,s,a;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(c){return
t=r.request,_o.isInstance(t)&&(i=t.body,o=t.headers,i&&-
1===Object.keys(o).map((function(e){return e.toLowerCase()})).indexOf(Qa)&&void 0!
==(s=e(i))&&(t.headers=$a($a({},t.headers),((a={})[Qa]=String(s),a)))),
[2,n($a($a({},r),{request:t}))]}))}))}}}(e.bodyLengthChecker),Xa)}}};var
Ja={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},ec=function(e){return{applyToStack:function(t)
{t.add(function(e){return function(t){return function(n){return function(e,t,n,r)
{return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){return _o.isInstance(n.request)?
(r=n.request,(void 0===(i=(e.requestHandler.metadata||
{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),Ja)}}};var tc=function()
{return function(e,t){return function(n){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}},nc={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},rc=function(){return rc=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},rc.apply(this,arguments)};function ic(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function oc(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1
]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}var sc=function(){return sc=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},sc.apply(this,arguments)};function ac(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function cc(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function uc(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}function lc(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}for(var hc={},dc={},fc=0;fc<256;fc++){var
pc=fc.toString(16).toLowerCase();1===pc.length&&(pc="0"+pc),hc[fc]=pc,dc[pc]=fc}fun
ction gc(e){for(var t="",n=0;n<e.byteLength;n++)t+=hc[e[n]];return t}var mc="X-Amz-
Date",vc="X-Amz-Signature",bc="X-Amz-Security-
Token",yc="authorization",wc=mc.toLowerCase(),_c=[yc,wc,"date"],Ec=vc.toLowerCase()
,Sc="x-amz-content-sha256",Tc=bc.toLowerCase(),Ac={authorization:!0,"cache-
control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!
0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-
agent":!0,"x-amzn-trace-id":!0},Cc=/^proxy-/,Oc=/^sec-/,xc="AWS4-HMAC-
SHA256",Ic="AWS4-HMAC-SHA256-PAYLOAD",Pc="aws4_request",Dc={},kc=[];function
Rc(e,t,n){return e+"/"+t+"/"+n+"/"+Pc}function Mc(e,t,n){var r=new e(t);return
r.update(n),r.digest()}function Nc(e,t,n){var r,i,o=e.headers,s={};try{for(var
a=uc(Object.keys(o).sort()),c=a.next();!c.done;c=a.next()){var
u=c.value,l=u.toLowerCase();(l in Ac||(null==t?void 0:t.has(l))||Cc.test(l)||
Oc.test(l))&&(!n||n&&!n.has(l))||(s[l]=o[u].trim().replace(/\s+/g," "))}}catch(e)
{r={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw
r.error}}return s}function Lc(e,t){var n=e.headers,r=e.body;return ac(this,void
0,void 0,(function(){var e,i,o,s,a,c,u;return cc(this,(function(l){switch(l.label)
{case 0:try{for(e=uc(Object.keys(n)),i=e.next();!
i.done;i=e.next())if((o=i.value).toLowerCase()===Sc)return[2,n[o]]}catch(e)
{c={error:e}}finally{try{i&&!i.done&&(u=e.return)&&u.call(e)}finally{if(c)throw
c.error}}return null!=r?[3,1]:
[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case
1:return"string"==typeof r||ArrayBuffer.isView(r)||(h=r,"function"==typeof
ArrayBuffer&&h instanceof ArrayBuffer||"[object
ArrayBuffer]"===Object.prototype.toString.call(h))?((s=new t).update(r),a=gc,
[4,s.digest()]):[3,3];case 2:return[2,a.apply(void 0,[l.sent()])];case
3:return[2,"UNSIGNED-PAYLOAD"]}var h}))}))}function Fc(e){var
t=e.headers,n=e.query,r=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(e,["headers","query"]);return sc(sc({},r),
{headers:sc({},t),query:n?jc(n):void 0})}function jc(e){return
Object.keys(e).reduce((function(t,n){var r,i=e[n];return sc(sc({},t),((r={})
[n]=Array.isArray(i)?function(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(lc(arguments[t]));return e}(i):i,r))}),{})}function Bc(e){var
t,n;e="function"==typeof e.clone?e.clone():Fc(e);try{for(var
r=uc(Object.keys(e.headers)),i=r.next();!i.done;i=r.next()){var
o=i.value;_c.indexOf(o.toLowerCase())>-1&&delete e.headers[o]}}catch(e)
{t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw
t.error}}return e}var Uc=function(){function e(e){var
t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,s=e.uriEscapePa
th,a=void 0===s||
s;this.service=i,this.sha256=o,this.uriEscapePath=a,this.applyChecksum="boolean"!
=typeof t||t,this.regionProvider=zc(r),this.credentialProvider=Vc(n)}return
e.prototype.presign=function(e,t){return void 0===t&&(t={}),ac(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A;return cc(this,
(function(C){switch(C.label){case 0:return n=t.signingDate,r=void 0===n?new
Date:n,i=t.expiresIn,o=void 0===i?
3600:i,s=t.unsignableHeaders,a=t.unhoistableHeaders,c=t.signableHeaders,u=t.signing
Region,l=t.signingService,[4,this.credentialProvider()];case 1:return
h=C.sent(),null==u?[3,2]:(f=u,[3,4]);case 2:return[4,this.regionProvider()];case
3:f=C.sent(),C.label=4;case 4:return
d=f,p=Hc(r),g=p.longDate,m=p.shortDate,o>604800?[2,Promise.reject("Signature
version 4 presigned URLs must have an expiration date less than one week in the
future")]:(v=Rc(m,d,null!=l?l:this.service),b=function(e,t){var n,r,i;void
0===t&&(t={});var o="function"==typeof e.clone?
e.clone():Fc(e),s=o.headers,a=o.query,c=void 0===a?{}:a;try{for(var
u=uc(Object.keys(s)),l=u.next();!l.done;l=u.next()){var
h=l.value,d=h.toLowerCase();"x-amz-"!==d.substr(0,6)||
(null===(i=t.unhoistableHeaders)||void 0===i?void 0:i.has(d))||(c[h]=s[h],delete
s[h])}}catch(e){n={error:e}}finally{try{l&&!
l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return sc(sc({},e),
{headers:s,query:c})}(Bc(e),
{unhoistableHeaders:a}),h.sessionToken&&(b.query[bc]=h.sessionToken),b.query["X-
Amz-Algorithm"]=xc,b.query["X-Amz-
Credential"]=h.accessKeyId+"/"+v,b.query[mc]=g,b.query["X-Amz-
Expires"]=o.toString(10),y=Nc(b,s,c),b.query["X-Amz-
SignedHeaders"]=Gc(y),w=b.query,_=vc,E=this.getSignature,S=[g,v,this.getSigningKey(
h,d,m,l)],T=this.createCanonicalRequest,A=[b,y],[4,Lc(e,this.sha256)]);case
5:return[4,E.apply(this,S.concat([T.apply(this,A.concat([C.sent()]))]))];case
6:return w[_]=C.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return
ac(this,void 0,void 0,(function(){return cc(this,(function(n)
{return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?
[2,this.signEvent(e,t)]:
[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var
n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new
Date:i,s=t.priorSignature,a=t.signingRegion,c=t.signingService;return ac(this,void
0,void 0,(function(){var e,t,i,u,l,h,d,f,p,g,m;return cc(this,(function(v)
{switch(v.label){case 0:return null==a?[3,1]:(t=a,[3,3]);case
1:return[4,this.regionProvider()];case 2:t=v.sent(),v.label=3;case 3:return
e=t,i=Hc(o),u=i.shortDate,l=i.longDate,h=Rc(u,e,null!=c?c:this.service),
[4,Lc({headers:{},body:r},this.sha256)];case 4:return d=v.sent(),(f=new
this.sha256).update(n),g=gc,[4,f.digest()];case 5:return p=g.apply(void 0,
[v.sent()]),m=[Ic,l,h,s,p,d].join("\n"),[2,this.signString(m,
{signingDate:o,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=f
unction(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new
Date:r,o=n.signingRegion,s=n.signingService;return ac(this,void 0,void 0,
(function(){var t,n,r,a,c,u,l,h;return cc(this,(function(d){switch(d.label){case
0:return[4,this.credentialProvider()];case 1:return t=d.sent(),null==o?[3,2]:(r=o,
[3,4]);case 2:return[4,this.regionProvider()];case 3:r=d.sent(),d.label=4;case
4:return n=r,a=Hc(i).shortDate,l=(u=this.sha256).bind,
[4,this.getSigningKey(t,n,a,s)];case 5:return(c=new(l.apply(u,[void
0,d.sent()]))).update(e),h=gc,[4,c.digest()];case 6:return[2,h.apply(void 0,
[d.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?
{}:t,r=n.signingDate,i=void 0===r?new
Date:r,o=n.signableHeaders,s=n.unsignableHeaders,a=n.signingRegion,c=n.signingServi
ce;return ac(this,void 0,void 0,(function(){var t,n,r,u,l,h,d,f,p,g,m;return
cc(this,(function(v){switch(v.label){case
0:return[4,this.credentialProvider()];case 1:return t=v.sent(),null==a?[3,2]:(r=a,
[3,4]);case 2:return[4,this.regionProvider()];case 3:r=v.sent(),v.label=4;case
4:return n=r,u=Bc(e),l=Hc(i),h=l.longDate,d=l.shortDate,f=Rc(d,n,null!=c?
c:this.service),u.headers[wc]=h,t.sessionToken&&(u.headers[Tc]=t.sessionToken),
[4,Lc(u,this.sha256)];case 5:return p=v.sent(),!function(e,t){var
n,r;e=e.toLowerCase();try{for(var i=uc(Object.keys(t)),o=i.next();!
o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e)
{n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw
n.error}}return!1}
(Sc,u.headers)&&this.applyChecksum&&(u.headers[Sc]=p),g=Nc(u,s,o),
[4,this.getSignature(h,f,this.getSigningKey(t,n,d,c),this.createCanonicalRequest(u,
g,p))];case 6:return m=v.sent(),u.headers[yc]=xc+"
Credential="+t.accessKeyId+"/"+f+", SignedHeaders="+Gc(g)+", Signature="+m,
[2,u]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var
r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\
n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],s={},a=function(e)
{if(e.toLowerCase()===Ec)return"continue";o.push(e);var t=i[e];"string"==typeof t?
s[e]=Ks(e)
+"="+Ks(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,n){return
t.concat([Ks(e)+"="+Ks(n)])}),[]).join("&"))};try{for(var
c=uc(Object.keys(i).sort()),u=c.next();!u.done;u=c.next())a(u.value)}catch(e)
{t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw
t.error}}return o.map((function(e){return s[e]})).filter((function(e){return
e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\
n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return
ac(this,void 0,void 0,(function(){var r,i;return cc(this,(function(o)
{switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case
1:return i=o.sent(),[2,xc+"\n"+e+"\n"+t+"\
n"+gc(i)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return
this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/
g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return ac(this,void 0,void 0,
(function(){var i,o,s,a,c;return cc(this,(function(u){switch(u.label){case
0:return[4,this.createStringToSign(e,t,r)];case 1:return
i=u.sent(),a=(s=this.sha256).bind,[4,n];case 2:return(o=new(a.apply(s,[void
0,u.sent()]))).update(i),c=gc,[4,o.digest()];case 3:return[2,c.apply(void 0,
[u.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return
function(e,t,n,r,i){return ac(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l,h,d,f;return cc(this,(function(p){switch(p.label){case
0:return[4,Mc(e,t.secretAccessKey,t.accessKeyId)];case 1:if(o=p.sent(),
(s=n+":"+r+":"+i+":"+gc(o)+":"+t.sessionToken)in
Dc)return[2,Dc[s]];for(kc.push(s);kc.length>50;)delete
Dc[kc.shift()];a="AWS4"+t.secretAccessKey,p.label=2;case
2:p.trys.push([2,7,8,9]),c=uc([n,r,i,Pc]),u=c.next(),p.label=3;case 3:return
u.done?[3,6]:(l=u.value,[4,Mc(e,a,l)]);case 4:a=p.sent(),p.label=5;case 5:return
u=c.next(),[3,3];case 6:return[3,9];case 7:return h=p.sent(),d={error:h},[3,9];case
8:try{u&&!u.done&&(f=c.return)&&f.call(c)}finally{if(d)throw d.error}return[7];case
9:return[2,Dc[s]=a]}}))}))}(this.sha256,e,n,t,r||this.service)},e}(),Hc=function(e)
{var t,n=(t=e,function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof
e?Number(e)?new Date(1e3*Number(e)):new Date(e):e}(t).toISOString().replace(/\.\
d{3}Z$/,"Z")).replace(/[\-:]/
g,"");return{longDate:n,shortDate:n.substr(0,8)}},Gc=function(e){return
Object.keys(e).sort().join(";")},zc=function(e){if("string"==typeof e){var
t=Promise.resolve(e);return function(){return t}}return e},Vc=function(e)
{if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return
e};function Wc(e){if("object"==typeof e){var t=Promise.resolve(e);return function()
{return t}}return e}function qc(e){return function(t,n){return function(r){return
ic(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,h,d;return oc(this,(function(f)
{switch(f.label){case 0:return _o.isInstance(r.request)?"function"!=typeof
e.signer?[3,2]:[4,e.signer()]:[2,t(r)];case 1:return o=f.sent(),[3,3];case
2:o=e.signer,f.label=3;case 3:return i=o,a=t,c=[rc({},r)],d={},[4,i.sign(r.request,
{signingDate:new Date(Date.now()
+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_servi
ce})];case 4:return[4,a.apply(void 0,[rc.apply(void
0,c.concat([(d.request=f.sent(),d)]))])];case 5:return
s=f.sent(),u=s.response.headers,(l=u&&(u.date||
u.Date))&&(p=h=Date.parse(l),g=e.systemClockOffset,Math.abs(function(e){return new
Date(Date.now()+e)}(g).getTime()-p)>=3e5&&(e.systemClockOffset=h-Date.now())),
[2,s]}var p,g}))}))}}}var Kc={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},Yc=function(){return Yc=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Yc.apply(this,arguments)};function $c(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function Qc(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat($c(arguments[t]));return e}var
Xc,Zc,Jc,eu,tu,nu,ru,iu,ou,su,au,cu,uu,lu,hu,du,fu,pu,gu,mu,vu,bu,yu,wu,_u,Eu,Su,Tu
,Au,Cu,Ou,xu,Iu,Pu,Du,ku,Ru,Mu,Nu,Lu,Fu,ju,Bu,Uu,Hu,Gu,zu,Vu,Wu,qu,Ku,Yu,
$u,Qu,Xu,Zu,Ju,el,tl,nl,rl,il,ol,sl,al,cl,ul,ll,hl,dl,fl,pl,gl,ml,vl,bl,yl,wl,_l,El
,Sl,Tl,Al,Cl,Ol,xl,Il,Pl,Dl,kl,Rl,Ml,Nl,Ll,Fl,jl,Bl,Ul,Hl,Gl,zl,Vl="user-
agent",Wl=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,ql=function(e){var
t=$c(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(Wl,"_")})).join("/")},Kl={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Yl=function(e)
{return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(r)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
i=r.request,_o.isInstance(i)?(o=i.headers,s=(null===(l=null==t?void
0:t.userAgent)||void 0===l?void 0:l.map(ql))||[],[4,n.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=d.sent().map(ql),c=(null===(h=null==n?void
0:n.customUserAgent)||void 0===h?void 0:h.map(ql))||[],o["x-amz-user-
agent"]=Qc(a,s,c).join(" "),u=Qc(a.filter((function(e){return e.startsWith("aws-
sdk-")})),c).join(" "),"browser"!==n.runtime&&u&&(o[Vl]=o[Vl]?o[Vl]+" "+u:u),
[2,e(Yc(Yc({},r),{request:i}))]}}))}))}}),Kl)}}},$l=function(e){function t(t){var
n,r,i=this,o=co(co({},Ha),t),s=qa(o),a=function(e){var
t,n=this,r=Wc(e.credentials||
e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||
i,s=e.systemClockOffset,a=void 0===s?e.systemClockOffset||0:s,c=e.sha256;return
t=e.signer?Wc(e.signer):function(){return Wc(e.region)().then((function(t){return
ic(n,void 0,void 0,(function(){return oc(this,(function(n){switch(n.label){case
0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||
{},t]]}}))}))})).then((function(t){var n=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(t,2),i=n[0],s=n[1],a=i.signingRegion,u=i.signingService;return
e.signingRegion=e.signingRegion||a||s,e.signingName=e.signingName||u||
e.serviceId,new
Uc({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePa
th:o})}))},rc(rc({},e),
{systemClockOffset:a,signingEscapePath:o,credentials:r,signer:t})}
(za(s)),c=Sa(a),u=function(e){return Ya(Ya({},e),
{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})}(Yc(Yc({},n=c),
{customUserAgent:"string"==typeof n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent}));return(i=e.call(this,u)||
this).config=u,i.middlewareStack.use((r=i.config,{applyToStack:function(e)
{e.addRelativeTo(qc(r),Kc)}})),i.middlewareStack.use(fa(i.config)),i.middlewareStac
k.use(Za(i.config)),i.middlewareStack.use(ec(i.config)),i.middlewareStack.use((i.co
nfig,{applyToStack:function(e)
{e.add(tc(),nc)}})),i.middlewareStack.use(Yl(i.config)),i}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(os),Ql=function(e){return"function"==typeof TextEncoder?function(e){return(new
TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n<r;n++){var
i=e.charCodeAt(n);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(e)},Xl=new
h("AWSKinesisProvider"),Zl=function(){function e(e)
{this._buffer=[],this._config=e||
{},this._config.bufferSize=this._config.bufferSize||
1e3,this._config.flushSize=this._config.flushSize||
100,this._config.flushInterval=this._config.flushInterval||
5e3,this._config.resendLimit=this._config.resendLimit||5,this._setupTimer()}return
e.prototype._setupTimer=function(){var
e=this;this._timer&&clearInterval(this._timer);var
t=this._config,n=t.flushSize,r=t.flushInterval;this._timer=setInterval((function()
{for(var t=e._buffer.length<n?e._buffer.length:n,r=[],i=0;i<t;i+=1){var
o=e._buffer.shift();r.push(o)}e._sendFromBuffer(r)}),r)},e.prototype.getCategory=fu
nction(){return"Analytics"},e.prototype.getProviderName=function()
{return"AWSKinesis"},e.prototype.configure=function(e){Xl.debug("configure
Analytics",e);var t=e||{};return
this._config=Object.assign({},this._config,t),this._setupTimer(),this._config},e.pr
ototype.record=function(e){var t;return b(this,void 0,void 0,(function(){var
n;return y(this,(function(r){switch(r.label){case
0:return[4,this._getCredentials()];case 1:return(n=r.sent())?(Object.assign(e,
{config:this._config,credentials:n}),(null===(t=e.event)||void 0===t?void
0:t.immediate)?(this._sendEvents([e]),[2,Promise.resolve(!0)]):
[2,this._putToBuffer(e)]):[2,Promise.resolve(!
1)]}}))}))},e.prototype.updateEndpoint=function(){return Xl.debug("updateEndpoint
is not implemented in Kinesis provider"),Promise.resolve(!
0)},e.prototype._putToBuffer=function(e){return this._buffer.length<1e3?
(this._buffer.push(e),Promise.resolve(!0)):(Xl.debug("exceed analytics events
buffer size"),Promise.reject(!1))},e.prototype._sendFromBuffer=function(e){for(var
t=this,n=[],r=null,i=[],o=0;o<e.length;o+=1){var s=e[o].credentials;0===o?
(i.push(e[o]),r=s):s.sessionToken===r.sessionToken&&s.identityId===r.identityId?
(Xl.debug("no change for cred, put event in the same group"),i.push(e[o])):
(n.push(i),(i=[]).push(e[o]),r=s)}n.push(i),n.map((function(e)
{t._sendEvents(e)}))},e.prototype._sendEvents=function(e){var t=this;if(0!
==e.length){var n=e[0],r=n.config,i=n.credentials;if(!this._init(r,i))return!1;var
o={};e.map((function(e){var t=e.event,n=t.streamName;void 0===o[n]&&(o[n]=[]);var
r=t.data&&"string"!=typeof t.data?
JSON.stringify(t.data):t.data,s={Data:Ql(r),PartitionKey:t.partitionKey||"partition
-"+i.identityId};o[n].push(s)})),Object.keys(o).map((function(e){return b(t,void
0,void 0,(function(){var t,n;return y(this,(function(r){switch(r.label){case
0:Xl.debug("putting records to kinesis with records",o[e]),r.label=1;case 1:return
r.trys.push([1,3,,4]),t=new ds({Records:o[e],StreamName:e}),
[4,this._kinesis.send(t)];case 2:return r.sent(),Xl.debug("Upload records to
stream",e),[3,4];case 3:return n=r.sent(),Xl.debug("Failed to upload records to
Kinesis",n),[3,4];case 4:return[2]}}))}))}))}},e.prototype._init=function(e,t)
{if(Xl.debug("init
clients"),this._kinesis&&this._config.credentials&&this._config.credentials.session
Token===t.sessionToken&&this._config.credentials.identityId===t.identityId)return
Xl.debug("no change for analytics config, directly return from init"),!
0;this._config.credentials=t;var n=e.region,r=e.endpoint;return
this._initKinesis(n,r,t)},e.prototype._initKinesis=function(e,t,n){return
Xl.debug("initialize kinesis with credentials",n),this._kinesis=new
$l({region:e,credentials:n,customUserAgent:Nn($.Record),endpoint:t}),!
0},e.prototype._getCredentials=function(){var e=this;return
Tn.get().then((function(t){return t?(Xl.debug("set credentials for
analytics",e._config.credentials),Tn.shear(t)):null})).catch((function(e){return
Xl.debug("ensure credentials error",e),null}))},e}();!function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Xc||(Xc={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Zc||(Zc={})),function(e)
{e.GZIP="GZIP",e.HADOOP_SNAPPY="HADOOP_SNAPPY",e.SNAPPY="Snappy",e.UNCOMPRESSED="UN
COMPRESSED",e.ZIP="ZIP"}(Jc||(Jc={})),function(e){e.filterSensitiveLog=function(e)
{return co({},e)}}(eu||(eu={})),function(e){e.GZIP="GZIP",e.NONE="NONE"}(tu||
(tu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(nu||
(nu={})),function(e)
{e.AWS_OWNED_CMK="AWS_OWNED_CMK",e.CUSTOMER_MANAGED_CMK="CUSTOMER_MANAGED_CMK"}
(ru||(ru={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(iu||
(iu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ou||
(ou={})),function(e)
{e.BUFFER_INTERVAL_IN_SECONDS="BufferIntervalInSeconds",e.BUFFER_SIZE_IN_MB="Buffer
SizeInMBs",e.LAMBDA_ARN="LambdaArn",e.LAMBDA_NUMBER_OF_RETRIES="NumberOfRetries",e.
ROLE_ARN="RoleArn"}(su||(su={})),function(e){e.filterSensitiveLog=function(e)
{return co({},e)}}(au||(au={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(cu||(cu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(uu||(uu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(lu||(lu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(hu||(hu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(du||(du={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(fu||(fu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(pu||(pu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(gu||(gu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(mu||(mu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(vu||(vu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(bu||(bu={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(yu||(yu={})),function(e){e.NONE="NONE",e.SNAPPY="SNAPPY",e.ZLIB="ZLIB"}
(wu||(wu={})),function(e){e.V0_11="V0_11",e.V0_12="V0_12"}(_u||(_u={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Eu||(Eu={})),function(e)
{e.GZIP="GZIP",e.SNAPPY="SNAPPY",e.UNCOMPRESSED="UNCOMPRESSED"}(Su||
(Su={})),function(e){e.V1="V1",e.V2="V2"}(Tu||(Tu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Au||(Au={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Cu||(Cu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ou||(Ou={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(xu||(xu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Iu||(Iu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Pu||(Pu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Du||(Du={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.Url&&{Url:hs}),e.AccessKey&&{AccessKey:hs})}}(ku||
(ku={})),function(e){e.filterSensitiveLog=function(e){return
co(co(co({},e),e.AttributeName&&{AttributeName:hs}),e.AttributeValue&&{AttributeVal
ue:hs})}}(Ru||(Ru={})),function(e){e.filterSensitiveLog=function(e){return
co(co({},e),e.CommonAttributes&&{CommonAttributes:e.CommonAttributes.map((function(
e){return Ru.filterSensitiveLog(e)}))})}}(Mu||(Mu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Nu||(Nu={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.EndpointConfiguration&&{EndpointConfiguration:ku.filterSensitiveLo
g(e.EndpointConfiguration)}),e.RequestConfiguration&&{RequestConfiguration:Mu.filte
rSensitiveLog(e.RequestConfiguration)})}}(Lu||(Lu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Fu||(Fu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(ju||(ju={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.Username&&{Username:hs}),e.Password&&{Password:hs})}}(Bu||
(Bu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Uu||
(Uu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Hu||
(Hu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Gu||
(Gu={})),function(e){e.filterSensitiveLog=function(e){return
co(co(co({},e),e.RedshiftDestinationConfiguration&&{RedshiftDestinationConfiguratio
n:Bu.filterSensitiveLog(e.RedshiftDestinationConfiguration)}),e.HttpEndpointDestina
tionConfiguration&&{HttpEndpointDestinationConfiguration:Lu.filterSensitiveLog(e.Ht
tpEndpointDestinationConfiguration)})}}(zu||(zu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Vu||(Vu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Wu||(Wu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(qu||(qu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ku||(Ku={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Yu||(Yu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}($u||($u={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Qu||(Qu={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Xu||(Xu={})),function(e)
{e.CREATE_ENI_FAILED="CREATE_ENI_FAILED",e.CREATE_KMS_GRANT_FAILED="CREATE_KMS_GRAN
T_FAILED",e.DELETE_ENI_FAILED="DELETE_ENI_FAILED",e.DISABLED_KMS_KEY="DISABLED_KMS_
KEY",e.ENI_ACCESS_DENIED="ENI_ACCESS_DENIED",e.INVALID_KMS_KEY="INVALID_KMS_KEY",e.
KMS_ACCESS_DENIED="KMS_ACCESS_DENIED",e.KMS_KEY_NOT_FOUND="KMS_KEY_NOT_FOUND",e.KMS
_OPT_IN_REQUIRED="KMS_OPT_IN_REQUIRED",e.RETIRE_KMS_GRANT_FAILED="RETIRE_KMS_GRANT_
FAILED",e.SECURITY_GROUP_ACCESS_DENIED="SECURITY_GROUP_ACCESS_DENIED",e.SECURITY_GR
OUP_NOT_FOUND="SECURITY_GROUP_NOT_FOUND",e.SUBNET_ACCESS_DENIED="SUBNET_ACCESS_DENI
ED",e.SUBNET_NOT_FOUND="SUBNET_NOT_FOUND",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(Zu||
(Zu={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Ju||
(Ju={})),function(e)
{e.DISABLED="DISABLED",e.DISABLING="DISABLING",e.DISABLING_FAILED="DISABLING_FAILED
",e.ENABLED="ENABLED",e.ENABLING="ENABLING",e.ENABLING_FAILED="ENABLING_FAILED"}
(el||(el={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(tl||
(tl={})),function(e)
{e.ACTIVE="ACTIVE",e.CREATING="CREATING",e.CREATING_FAILED="CREATING_FAILED",e.DELE
TING="DELETING",e.DELETING_FAILED="DELETING_FAILED"}(nl||(nl={})),function(e)
{e.filterSensitiveLog=function(e){retu
rn co({},e)}}(rl||(rl={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(il||(il={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(ol||(ol={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(sl||(sl={})),function(e){e.filterSensitiveLog=function(e){return
co(co({},e),e.Url&&{Url:hs})}}(al||(al={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.EndpointConfiguration&&{EndpointConfiguration:al.filterSensitiveLo
g(e.EndpointConfiguration)}),e.RequestConfiguration&&{RequestConfiguration:Mu.filte
rSensitiveLog(e.RequestConfiguration)})}}(cl||(cl={})),function(e)
{e.filterSensitiveLog=function(e){return co(co({},e),e.Username&&{Username:hs})}}
(ul||(ul={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ll||
(ll={})),function(e){e.filterSensitiveLog=function(e){return
co(co(co({},e),e.RedshiftDestinationDescription&&{RedshiftDestinationDescription:ul
.filterSensitiveLog(e.RedshiftDestinationDescription)}),e.HttpEndpointDestinationDe
scription&&{HttpEndpointDestinationDescription:cl.filterSensitiveLog(e.HttpEndpoint
DestinationDescription)})}}(hl||(hl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(dl||(dl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(fl||(fl={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co({},e),e.Destinations&&{Destinations:e.Destinations.map((function(e){return
hl.filterSensitiveLog(e)}))})}}(pl||(pl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(gl||(gl={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co({},e),e.DeliveryStreamDescription&&{DeliveryStreamDescription:pl.filterSensit
iveLog(e.DeliveryStreamDescription)})}}(ml||(ml={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(vl||(vl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(bl||(bl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(yl||(yl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(wl||(wl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(_l||(_l={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(El||(El={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Sl||(Sl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Tl||(Tl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Al||(Al={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Cl||(Cl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ol||(Ol={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(xl||(xl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Il||(Il={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Pl||(Pl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Dl||(Dl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(kl||(kl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Rl||(Rl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ml||(Ml={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Nl||(Nl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ll||(Ll={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Fl||(Fl={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(jl||(jl={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.EndpointConfiguration&&{EndpointConfiguration:ku.filterSensitiveLo
g(e.EndpointConfiguration)}),e.RequestConfiguration&&{RequestConfiguration:Mu.filte
rSensitiveLog(e.RequestConfiguration)})}}(Bl||(Bl={})),function(e)
{e.filterSensitiveLog=function(e){return
co(co(co({},e),e.Username&&{Username:hs}),e.Password&&{Password:hs})}}(Ul||
(Ul={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Hl||
(Hl={})),function(e){e.filterSensitiveLog=function(e){return
co(co(co({},e),e.RedshiftDestinationUpdate&&{RedshiftDestinationUpdate:Ul.filterSen
sitiveLog(e.RedshiftDestinationUpdate)}),e.HttpEndpointDestinationUpdate&&{HttpEndp
ointDestinationUpdate:Bl.filterSensitiveLog(e.HttpEndpointDestinationUpdate)})}}
(Gl||(Gl={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(zl||
(zl={}));var Jl=function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l,h,d;return ho(this,(function(f){switch(f.label){case 0:return
r=[co({},e)],d={},[4,fh(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(d.body=f.sent(),d)])),o="UnknownError",o=ph(e,n.body))
{case"InvalidArgumentException":case"com.amazonaws.firehose#InvalidArgumentExceptio
n":return[3,2];case"InvalidKMSResourceException":case"com.amazonaws.firehose#Invali
dKMSResourceException":return[3,4];case"ResourceNotFoundException":case"com.amazona
ws.firehose#ResourceNotFoundException":return[3,6];case"ServiceUnavailableException
":case"com.amazonaws.firehose#ServiceUnavailableException":return[3,8]}return[3,10]
;case 2:return s=[{}],[4,eh(n,t)];case 3:return i=co.apply(void 0,[co.apply(void
0,s.concat([f.sent()])),{name:o,$metadata:hh(e)}]),[3,11];case 4:return a=[{}],
[4,th(n,t)];case 5:return i=co.apply(void 0,[co.apply(void 0,a.concat([f.sent()])),
{name:o,$metadata:hh(e)}]),[3,11];case 6:return c=[{}],[4,nh(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([f.sent()])),{name:o,
$metadata:hh(e)}]),[3,11];case 8:return u=[{}],[4,rh(n,t)];case 9:return
i=co.apply(void 0,[co.apply(void 0,u.concat([f.sent()])),{name:o,
$metadata:hh(e)}]),[3,11];case 10:l=n.body,o=l.code||l.Code||o,i=co(co({},l),
{name:""+o,message:l.message||l.Message||o,$fault:"client",
$metadata:hh(e)}),f.label=11;case 11:return h=i.message||i.Message||
o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new
Error(h),i))]}}))}))},eh=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r;return ho(this,(function(i){return n=e.body,r=sh(n,t),
[2,co({name:"InvalidArgumentException",$fault:"client",
$metadata:hh(e)},r)]}))}))},th=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=ah(n,t),
[2,co({name:"InvalidKMSResourceException",$fault:"client",
$metadata:hh(e)},r)]}))}))},nh=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=uh(n,t),
[2,co({name:"ResourceNotFoundException",$fault:"client",
$metadata:hh(e)},r)]}))}))},rh=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=lh(n,t),
[2,co({name:"ServiceUnavailableException",$fault:"server",
$metadata:hh(e)},r)]}))}))},ih=function(e,t){return e.filter((function(e){return
null!=e})).map((function(e){return null===e?null:oh(e,t)}))},oh=function(e,t)
{return co({},void 0!==e.Data&&null!
==e.Data&&{Data:t.base64Encoder(e.Data)})},sh=function(e,t){return{message:void 0!
==e.message&&null!==e.message?e.message:void 0}},ah=function(e,t){return{code:void
0!==e.code&&null!==e.code?e.code:void 0,message:void 0!==e.message&&null!
==e.message?e.message:void 0}},ch=function(e,t){return(e||[]).filter((function(e)
{return null!=e})).map((function(e){return null===e?null:function(e,t)
{return{ErrorCode:void 0!==e.ErrorCode&&null!==e.ErrorCode?e.ErrorCode:void
0,ErrorMessage:void 0!==e.ErrorMessage&&null!==e.ErrorMessage?e.ErrorMessage:void
0,RecordId:void 0!==e.RecordId&&null!==e.RecordId?e.RecordId:void 0}}
(e)}))},uh=function(e,t){return{message:void 0!==e.message&&null!==e.message?
e.message:void 0}},lh=function(e,t){return{message:void 0!==e.message&&null!
==e.message?e.message:void 0}},hh=function(e){var
t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-
requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},dh=function(e,t,n,r,i){return lo(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,e.endpoint()];case 1:return o=h.sent(),s=o.hostname,a=o.protocol,c=void
0===a?"https":a,u=o.port,l={protocol:c,hostname:s,port:u,method:"POST",path:n,heade
rs:t},void 0!==r&&(l.hostname=r),void 0!==i&&(l.body=i),[2,new
_o(l)]}}))}))},fh=function(e,t){return function(e,t){return function(e,t){return
void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?
Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)}
(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return
e.length?JSON.parse(e):{}}))},ph=function(e,t){var n,r=function(e){var t=e;return
t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")
[1]),t},i=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((function(e){return
e.toLowerCase()==="x-amzn-errortype".toLowerCase()})));return void 0!==i?
r(e.headers[i]):void 0!==t.code?r(t.code):void 0!==t.__type?
r(t.__type):""},gh=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"FirehoseClient",com
mandName:"PutRecordBatchCommand",inputFilterSensitiveLog:xl.filterSensitiveLog,outp
utFilterSensitiveLog:Pl.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Firehose_20150804.PutRecordBatch"},r=JSON.stringify(function(e,t){return
co(co({},void 0!==e.DeliveryStreamName&&null!
==e.DeliveryStreamName&&{DeliveryStreamName:e.DeliveryStreamName}),void 0!
==e.Records&&null!==e.Records&&{Records:ih(e.Records,t)})}(e,t)),[2,dh(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var n,r,i;return ho(this,
(function(o){switch(o.label){case 0:return e.statusCode>=300?[2,Jl(e,t)]:
[4,fh(e.body,t)];case 1:return n=o.sent(),r=function(e,t){return{Encrypted:void 0!
==e.Encrypted&&null!==e.Encrypted?e.Encrypted:void 0,FailedPutCount:void 0!
==e.FailedPutCount&&null!==e.FailedPutCount?e.FailedPutCount:void
0,RequestResponses:void 0!==e.RequestResponses&&null!==e.RequestResponses?
ch(e.RequestResponses,t):void 0}}(n,t),i=co({$metadata:hh(e)},r),
[2,Promise.resolve(i)]}}))}))}(e,t)},t}(ss),mh=n(74511);var
vh=n(98034),bh="firehose.{region}.amazonaws.com",yh=new Set(["af-south-1","ap-east-
1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-
2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-
2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-
west-2"]),wh=new Set(["cn-north-1","cn-northwest-1"]),_h=new Set(["us-iso-east-
1"]),Eh=new Set(["us-isob-east-1"]),Sh=new Set(["us-gov-east-1","us-gov-west-
1"]),Th={apiVersion:"2015-08-04",disableHostPrefix:!1,logger:
{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-
1":n={hostname:"firehose.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-
east-1":n={hostname:"firehose.ap-east-
1.amazonaws.com",partition:"aws"};break;case"ap-northeast-
1":n={hostname:"firehose.ap-northeast-
1.amazonaws.com",partition:"aws"};break;case"ap-northeast-
2":n={hostname:"firehose.ap-northeast-
2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"firehose.ap-
south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-
1":n={hostname:"firehose.ap-southeast-
1.amazonaws.com",partition:"aws"};break;case"ap-southeast-
2":n={hostname:"firehose.ap-southeast-
2.amazonaws.com",partition:"aws"};break;case"ca-central-
1":n={hostname:"firehose.ca-central-
1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"firehose.cn-
north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-
1":n={hostname:"firehose.cn-northwest-1.amazonaws.com.cn",partition:"aws-
cn"};break;case"eu-central-1":n={hostname:"firehose.eu-central-
1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"firehose.eu-
north-1.amazonaws.com",partition:"aws"};break;case"eu-south-
1":n={hostname:"firehose.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-
west-1":n={hostname:"firehose.eu-west-
1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"firehose.eu-
west-2.amazonaws.com",partition:"aws"};break;case"eu-west-
3":n={hostname:"firehose.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-
us-east-1":n={hostname:"firehose-fips.us-east-
1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-
east-2":n={hostname:"firehose-fips.us-east-
2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-
east-1":n={hostname:"firehose-fips.us-gov-east-1.amazonaws.com",partition:"aws-us-
gov",signingRegion:"us-gov-east-1"};break;case"fips-us-gov-west-
1":n={hostname:"firehose-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-
gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-
1":n={hostname:"firehose-fips.us-west-
1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"fips-us-
west-2":n={hostname:"firehose-fips.us-west-
2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"me-south-
1":n={hostname:"firehose.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-
east-1":n={hostname:"firehose.sa-east-
1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"firehose.us-
east-1.amazonaws.com",partition:"aws"};break;case"us-east-
2":n={hostname:"firehose.us-east-2.amazonaws.com",partition:"aws"};break;case"us-
gov-east-1":n={hostname:"firehose.us-gov-east-1.amazonaws.com",partition:"aws-us-
gov"};break;case"us-gov-west-1":n={hostname:"firehose.us-gov-west-
1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-
1":n={hostname:"firehose.us-west-1.amazonaws.com",partition:"aws"};break;case"us-
west-2":n={hostname:"firehose.us-west-
2.amazonaws.com",partition:"aws"};break;default:yh.has(e)&&(n={hostname:bh.replace(
"{region}",e),partition:"aws"}),wh.has(e)&&(n={hostname:"firehose.
{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-
cn"}),_h.has(e)&&(n={hostname:"firehose.
{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-
iso"}),Eh.has(e)&&(n={hostname:"firehose.
{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-
b"}),Sh.has(e)&&(n={hostname:"firehose.
{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void
0===n&&(n={hostname:bh.replace("{region}",e),partition:"aws"})}return
Promise.resolve(co({signingService:"firehose"},n))},serviceId:"Firehose",urlParser:
Ba},Ah=co(co({},Th),
{runtime:"browser",base64Decoder:ra,base64Encoder:ia,bodyLengthChecker:Aa,credentia
lDefaultProvider:function(e){return function(){return Promise.reject(new
Error("Credential is missing"))}},defaultUserAgentProvider:function(e){var
t=e.serviceId,n=e.clientVersion;return function(){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var e,r,i,o,s,a,c,u,l;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(h){return
e=(null===(i=null===window||void 0===window?void 0:window.navigator)||void 0===i?
void 0:i.userAgent)?Oa().parse(window.navigator.userAgent):void 0,r=[["aws-sdk-
js",n],["os/"+((null===(o=null==e?void 0:e.os)||void 0===o?void
0:o.name)||"other"),null===(s=null==e?void 0:e.os)||void 0===s?void 0:s.version],
["lang/js"],["md/browser",(null!==(c=null===(a=null==e?void 0:e.browser)||void
0===a?void 0:a.name)&&void 0!==c?c:"unknown")+"_"+(null!==(l=null===(u=null==e?void
0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?
l:"unknown")]],t&&r.push(["api/"+t,n]),[2,r]}))}))}}
({serviceId:Th.serviceId,clientVersion:"3.6.1"}),maxAttempts:3,region:aa("Region is
missing"),requestHandler:new
$s,sha256:mh.Sha256,streamCollector:oa,utf8Decoder:vh.fromUtf8,utf8Encoder:vh.toUtf
8});var Ch={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},Oh=function(e){return{applyToStack:function(t)
{t.add(function(e){return function(t){return function(n){return function(e,t,n,r)
{return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){return _o.isInstance(n.request)?
(r=n.request,(void 0===(i=(e.requestHandler.metadata||
{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),Ch)}}};var xh=function()
{return function(e,t){return function(n){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw
new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?
r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!
(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case
0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label+
+,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}},Ih={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},Ph=function(){return Ph=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ph.apply(this,arguments)};function Dh(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function kh(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function Rh(e){if("object"==typeof e){var
t=Promise.resolve(e);return function(){return t}}return e}function Mh(e){return
function(t,n){return function(r){return Dh(this,void 0,void 0,(function(){var
i,o,s,a,c,u,l,h,d;return kh(this,(function(f){switch(f.label){case 0:return
_o.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:
[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return
i=o,a=t,c=[Ph({},r)],d={},[4,i.sign(r.request,{signingDate:new Date(Date.now()
+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_servi
ce})];case 4:return[4,a.apply(void 0,[Ph.apply(void
0,c.concat([(d.request=f.sent(),d)]))])];case 5:return
s=f.sent(),u=s.response.headers,(l=u&&(u.date||
u.Date))&&(p=h=Date.parse(l),g=e.systemClockOffset,Math.abs(function(e){return new
Date(Date.now()+e)}(g).getTime()-p)>=3e5&&(e.systemClockOffset=h-Date.now())),
[2,s]}var p,g}))}))}}}var Nh={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},Lh=function(){return Lh=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Lh.apply(this,arguments)};function Fh(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function jh(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(Fh(arguments[t]));return e}var Bh,Uh,Hh,Gh,zh,Vh,Wh,qh,Kh="user-
agent",Yh=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,$h=function(e){var
t=Fh(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(Yh,"_")})).join("/")},Qh={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Xh=function(e)
{return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(r)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
i=r.request,_o.isInstance(i)?(o=i.headers,s=(null===(l=null==t?void
0:t.userAgent)||void 0===l?void 0:l.map($h))||[],[4,n.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=d.sent().map($h),c=(null===(h=null==n?void
0:n.customUserAgent)||void 0===h?void 0:h.map($h))||[],o["x-amz-user-
agent"]=jh(a,s,c).join(" "),u=jh(a.filter((function(e){return e.startsWith("aws-
sdk-")})),c).join(" "),"browser"!==n.runtime&&u&&(o[Kh]=o[Kh]?o[Kh]+" "+u:u),
[2,e(Lh(Lh({},r),{request:i}))]}}))}))}}),Qh)}}},Zh=function(e){function t(t){var
n,r,i=this,o=co(co({},Ah),t),s=qa(o),a=function(e){var
t,n=this,r=Rh(e.credentials||
e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||
i,s=e.systemClockOffset,a=void 0===s?e.systemClockOffset||0:s,c=e.sha256;return
t=e.signer?Rh(e.signer):function(){return Rh(e.region)().then((function(t){return
Dh(n,void 0,void 0,(function(){return kh(this,(function(n){switch(n.label){case
0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||
{},t]]}}))}))})).then((function(t){var n=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(t,2),i=n[0],s=n[1],a=i.signingRegion,u=i.signingService;return
e.signingRegion=e.signingRegion||a||s,e.signingName=e.signingName||u||
e.serviceId,new
Uc({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePa
th:o})}))},Ph(Ph({},e),
{systemClockOffset:a,signingEscapePath:o,credentials:r,signer:t})}
(za(s)),c=Sa(a),u=Lh(Lh({},n=c),{customUserAgent:"string"==typeof
n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent});return(i=e.call(this,u)||
this).config=u,i.middlewareStack.use((r=i.config,{applyToStack:function(e)
{e.addRelativeTo(Mh(r),Nh)}})),i.middlewareStack.use(fa(i.config)),i.middlewareStac
k.use(Za(i.config)),i.middlewareStack.use(Oh(i.config)),i.middlewareStack.use((i.co
nfig,{applyToStack:function(e)
{e.add(xh(),Ih)}})),i.middlewareStack.use(Xh(i.config)),i}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(os),Jh=new h("AWSKineisFirehoseProvider"),ed=function(e){function t(t){return
e.call(this,t)||this}return function(e,t){function n()
{this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}(t,e),t.prototype.getProviderName=function()
{return"AWSKinesisFirehose"},t.prototype._sendEvents=function(e){var t=this;if(0!
==e.length){var n=e[0],r=n.config,i=n.credentials;if(!this._init(r,i))return!1;var
o={};e.map((function(e){var t=e.event,n=t.streamName,r=t.data;void
0===o[n]&&(o[n]=[]);var i=r&&"string"!=typeof r?
JSON.stringify(r):r,s={Data:Ql(i)};o[n].push(s)})),Object.keys(o).map((function(e)
{Jh.debug("putting records to kinesis",e,"with
records",o[e]),t._kinesisFirehose.send(new
gh({Records:o[e],DeliveryStreamName:e})).then((function(t){return Jh.debug("Upload
records to stream",e)})).catch((function(e){return Jh.debug("Failed to upload
records to Kinesis",e)}))}))}},t.prototype._init=function(e,t){if(Jh.debug("init
clients"),this._kinesisFirehose&&this._config.credentials&&this._config.credentials
.sessionToken===t.sessionToken&&this._config.credentials.identityId===t.identityId)
return Jh.debug("no change for analytics config, directly return from init"),!
0;this._config.credentials=t;var n=e.region;return
this._initFirehose(n,t)},t.prototype._initFirehose=function(e,t){return
Jh.debug("initialize kinesis firehose with
credentials",t),this._kinesisFirehose=new Zh({apiVersion:"2015-08-
04",region:e,credentials:t,customUserAgent:Nn($.Record)}),!0},t}(Zl);!function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Bh||(Bh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Uh||(Uh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Hh||(Hh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Gh||(Gh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(zh||(zh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Vh||(Vh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Wh||(Wh={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(qh||(qh={}));var
td=function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u;return ho(this,(function(l){switch(l.label){case 0:return
r=[co({},e)],u={},[4,ad(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(u.body=l.sent(),u)])),o="UnknownError",o=cd(e,n.body))
{case"InvalidInputException":case"com.amazonaws.personalizeevents#InvalidInputExcep
tion":return[3,2]}return[3,4];case 2:return s=[{}],[4,nd(n,t)];case 3:return
i=co.apply(void 0,[co.apply(void 0,s.concat([l.sent()])),{name:o,
$metadata:od(e)}]),[3,5];case 4:a=n.body,o=a.code||a.Code||o,i=co(co({},a),
{name:""+o,message:a.message||a.Message||o,$fault:"client",
$metadata:od(e)}),l.label=5;case 5:return c=i.message||i.Message||
o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new
Error(c),i))]}}))}))},nd=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n;return ho(this,(function(r){return t={name:"InvalidInputException",
$fault:"client",$metadata:od(e),message:void 0},void 0!==(n=e.body).message&&null!
==n.message&&(t.message=n.message),[2,t]}))}))},rd=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return co(co(co(co(co(co(co(co({},void 0!==e.eventId&&null!
==e.eventId&&{eventId:e.eventId}),void 0!==e.eventType&&null!
==e.eventType&&{eventType:e.eventType}),void 0!==e.eventValue&&null!
==e.eventValue&&{eventValue:e.eventValue}),void 0!==e.impression&&null!
==e.impression&&{impression:id(e.impression,t)}),void 0!==e.itemId&&null!
==e.itemId&&{itemId:e.itemId}),void 0!==e.properties&&null!
==e.properties&&{properties:ls.fromObject(e.properties)}),void 0!
==e.recommendationId&&null!
==e.recommendationId&&{recommendationId:e.recommendationId}),void 0!
==e.sentAt&&null!==e.sentAt&&{sentAt:Math.round(e.sentAt.getTime()/1e3)})}
(e,t)}))},id=function(e,t){return e.filter((function(e){return null!
=e})).map((function(e){return null===e?null:e}))},od=function(e){var
t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-
requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},sd=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof
Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new
Uint8Array)},ad=function(e,t){return function(e,t){return sd(e,t).then((function(e)
{return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):
{}}))},cd=function(e,t){var n,r=function(e){var t=e;return
t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")
[1]),t},i=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((function(e){return
e.toLowerCase()==="x-amzn-errortype".toLowerCase()})));return void 0!==i?
r(e.headers[i]):void 0!==t.code?r(t.code):void 0!==t.__type?
r(t.__type):""},ud=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"PersonalizeEventsCl
ient",commandName:"PutEventsCommand",inputFilterSensitiveLog:Hh.filterSensitiveLog,
outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o,s,a,c,u;return ho(this,(function(l)
{switch(l.label){case 0:return
n={"content-type":"application/json"},r="/events",i=JSON.stringify(co(co(co(co({},v
oid 0!==e.eventList&&null!==e.eventList&&{eventList:rd(e.eventList,t)}),void 0!
==e.sessionId&&null!==e.sessionId&&{sessionId:e.sessionId}),void 0!
==e.trackingId&&null!==e.trackingId&&{trackingId:e.trackingId}),void 0!
==e.userId&&null!==e.userId&&{userId:e.userId})),[4,t.endpoint()];case 1:return
o=l.sent(),s=o.hostname,a=o.protocol,c=void 0===a?"https":a,u=o.port,[2,new
_o({protocol:c,hostname:s,port:u,method:"POST",headers:n,path:r,body:i})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n;return ho(this,(function(r){switch(r.label){case
0:return 200!==e.statusCode&&e.statusCode>=300?[2,td(e,t)]:(n={$metadata:od(e)},
[4,sd(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}
(ss),ld=n(92259);var hd=n(65014),dd="personalize-events.
{region}.amazonaws.com",fd=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-
northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-
central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-
1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),pd=new Set(["cn-
north-1","cn-northwest-1"]),gd=new Set(["us-iso-east-1"]),md=new Set(["us-isob-
east-1"]),vd=new Set(["us-gov-east-1","us-gov-west-1"]),bd={apiVersion:"2018-03-
22",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void
0;return
fd.has(e)&&(n={hostname:dd.replace("{region}",e),partition:"aws"}),pd.has(e)&&(n={h
ostname:"personalize-events.
{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-
cn"}),gd.has(e)&&(n={hostname:"personalize-events.
{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-
iso"}),md.has(e)&&(n={hostname:"personalize-events.
{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-
b"}),vd.has(e)&&(n={hostname:"personalize-events.
{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void
0===n&&(n={hostname:dd.replace("{region}",e),partition:"aws"}),Promise.resolve(co({
signingService:"personalize"},n))},serviceId:"Personalize
Events",urlParser:Ba},yd=co(co({},bd),
{runtime:"browser",base64Decoder:ra,base64Encoder:ia,bodyLengthChecker:Aa,credentia
lDefaultProvider:function(e){return function(){return Promise.reject(new
Error("Credential is missing"))}},defaultUserAgentProvider:function(e){var
t=e.serviceId,n=e.clientVersion;return function(){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var e,r,i,o,s,a,c,u,l;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(h){return
e=(null===(i=null===window||void 0===window?void 0:window.navigator)||void 0===i?
void 0:i.userAgent)?Oa().parse(window.navigator.userAgent):void 0,r=[["aws-sdk-
js",n],["os/"+((null===(o=null==e?void 0:e.os)||void 0===o?void
0:o.name)||"other"),null===(s=null==e?void 0:e.os)||void 0===s?void 0:s.version],
["lang/js"],["md/browser",(null!==(c=null===(a=null==e?void 0:e.browser)||void
0===a?void 0:a.name)&&void 0!==c?c:"unknown")+"_"+(null!==(l=null===(u=null==e?void
0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?
l:"unknown")]],t&&r.push(["api/"+t,n]),[2,r]}))}))}}
({serviceId:bd.serviceId,clientVersion:"3.6.1"}),maxAttempts:3,region:aa("Region is
missing"),requestHandler:new
$s,sha256:ld.Sha256,streamCollector:oa,utf8Decoder:hd.fromUtf8,utf8Encoder:hd.toUtf
8});var wd={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},_d=function(e){return{applyToStack:function(t)
{t.add(function(e){return function(t){return function(n){return function(e,t,n,r)
{return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw
i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){return _o.isInstance(n.request)?
(r=n.request,(void 0===(i=(e.requestHandler.metadata||
{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),wd)}}};var Ed=function()
{return function(e,t){return function(n){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}},Sd={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},Td=function(){return Td=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Td.apply(this,arguments)};function Ad(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function Cd(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function Od(e){if("object"==typeof e){var
t=Promise.resolve(e);return function(){return t}}return e}function xd(e){return
function(t,n){return function(r){return Ad(this,void 0,void 0,(function(){var
i,o,s,a,c,u,l,h,d;return Cd(this,(function(f){switch(f.label){case 0:return
_o.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:
[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return
i=o,a=t,c=[Td({},r)],d={},[4,i.sign(r.request,{signingDate:new Date(Date.now()
+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_servi
ce})];case 4:return[4,a.apply(void 0,[Td.apply(void
0,c.concat([(d.request=f.sent(),d)]))])];case 5:return
s=f.sent(),u=s.response.headers,(l=u&&(u.date||
u.Date))&&(p=h=Date.parse(l),g=e.systemClockOffset,Math.abs(function(e){return new
Date(Date.now()+e)}(g).getTime()-p)>=3e5&&(e.systemClockOffset=h-Date.now())),
[2,s]}var p,g}))}))}}}var Id={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},Pd=function(){return Pd=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Pd.apply(this,arguments)};function Dd(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function kd(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(Dd(arguments[t]));return e}var Rd,Md,Nd,Ld="user-agent",Fd=/[^\!\#\$\
%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,jd=function(e){var
t=Dd(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(Fd,"_")})).join("/")},Bd={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ud=function(e)
{return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(r)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
i=r.request,_o.isInstance(i)?(o=i.headers,s=(null===(l=null==t?void
0:t.userAgent)||void 0===l?void 0:l.map(jd))||[],[4,n.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=d.sent().map(jd),c=(null===(h=null==n?void
0:n.customUserAgent)||void 0===h?void 0:h.map(jd))||[],o["x-amz-user-
agent"]=kd(a,s,c).join(" "),u=kd(a.filter((function(e){return e.startsWith("aws-
sdk-")})),c).join(" "),"browser"!==n.runtime&&u&&(o[Ld]=o[Ld]?o[Ld]+" "+u:u),
[2,e(Pd(Pd({},r),{request:i}))]}}))}))}}),Bd)}}},Hd=function(e){function t(t){var
n,r,i=this,o=co(co({},yd),t),s=qa(o),a=function(e){var
t,n=this,r=Od(e.credentials||
e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||
i,s=e.systemClockOffset,a=void 0===s?e.systemClockOffset||0:s,c=e.sha256;return
t=e.signer?Od(e.signer):function(){return Od(e.region)().then((function(t){return
Ad(n,void 0,void 0,(function(){return Cd(this,(function(n){switch(n.label){case
0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||
{},t]]}}))}))})).then((function(t){var n=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(t,2),i=n[0],s=n[1],a=i.signingRegion,u=i.signingService;return
e.signingRegion=e.signingRegion||a||s,e.signingName=e.signingName||u||
e.serviceId,new
Uc({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePa
th:o})}))},Td(Td({},e),
{systemClockOffset:a,signingEscapePath:o,credentials:r,signer:t})}
(za(s)),c=Sa(a),u=Pd(Pd({},n=c),{customUserAgent:"string"==typeof
n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent});return(i=e.call(this,u)||
this).config=u,i.middlewareStack.use((r=i.config,{applyToStack:function(e)
{e.addRelativeTo(xd(r),Id)}})),i.middlewareStack.use(fa(i.config)),i.middlewareStac
k.use(Za(i.config)),i.middlewareStack.use(_d(i.config)),i.middlewareStack.use((i.co
nfig,{applyToStack:function(e)
{e.add(Ed(),Sd)}})),i.middlewareStack.use(Ud(i.config)),i}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(os),Gd=n(45455),zd=n.n(Gd),Vd=n(18149),Wd=n.n(Vd),qd="_awsct_uid",Kd="_awsct_sid",
Yd=(new h("AmazonPersonalizeProvider"),function(){function e(e){void
0===e&&(e=""),this._isBrowser=We().isBrowser,this._timerKey=(0,Mn.v1)
().substr(0,15),this._refreshTimer()}return e.prototype._refreshTimer=function()
{this._timer&&clearInterval(this._timer);var
e=this;this._timer=setInterval((function(){e._timerKey=(0,Mn.v1)
().substr(0,15)}),3e4)},e.prototype.storeValue=function(e,t){var n=new Date,r=new
Date;r.setTime(n.getTime()+6048e5),W.setItem(this._getCachePrefix(e),t,
{expires:r.getTime()})},e.prototype.retrieveValue=function(e){return
W.getItem(this._getCachePrefix(e))},e.prototype._getCachePrefix=function(e){return
this._isBrowser?
e+"."+window.location.host:"personalize"},e.prototype.getTimerKey=function(){return
this._timerKey},e.prototype.updateSessionInfo=function(e,t){var
n=t.userId,r=t.sessionId;if(this._isRequireNewSession(e,n,r)){var i=(0,Mn.v1)
();this.storeValue(qd,e),this.storeValue(Kd,i),t.sessionId=i}else
this._isRequireUpdateSessionInfo(e,n,r)&&this.storeValue(qd,e);t.userId=e},e.protot
ype._isRequireUpdateSessionInfo=function(e,t,n){return!zd()(n)&&zd()(t)&&!zd()
(e)},e.prototype.retrieveSessionInfo=function(e){var t={};return
t.trackingId=e,t.sessionId=this.retrieveValue(Kd),t.userId=this.retrieveValue(qd),z
d()(t.sessionId)&&(t.sessionId=(0,Mn.v1)
(),this.storeValue(Kd,t.sessionId)),this.storeValue("_awsct",e),t},e.prototype._isR
equireNewSession=function(e,t,n){var r=zd()(n),i=zd()(e)&&!zd()(t),o=!zd()(e)&&!
zd()(t)&&!Wd()(e,t);return r||i||o},e}());!function(e)
{e.PLAY="play",e.PAUSE="pause",e.ENDED="Ended"}(Rd||(Rd={})),function(e)
{e.IFRAME="IFRAME",e.VIDEO="VIDEO",e.AUDIO="AUDIO"}(Md||(Md={})),function(e)
{e.PLAY="Play",e.ENDED="Ended",e.PAUSE="Pause",e.TIME_WATCHED="TimeWatched"}(Nd||
(Nd={}));var $d=function(){function e(e,t){var n;this.eventActionMapping=((n={})
[Nd.ENDED]=this.endedEventAction.bind(this),n[Nd.PLAY]=this.playEventAction.bind(th
is),n[Nd.PAUSE]=this.pauseEventAction.bind(this),n);var
r=e.eventData;this._params=e,this._mediaElement=document.getElementById(r.propertie
s.domElementId),this._started=!1,this._provider=t,
{IFRAME:this._iframeMediaTracker,VIDEO:this._html5MediaTracker,AUDIO:this._html5Med
iaTracker}[this._mediaElement.tagName].bind(this)(),this._initYoutubeFrame()}return
e.prototype._initYoutubeFrame=function(){this._youTubeIframeLoader={src:"https://
www.youtube.com/iframe_api",loading:!1,loaded:!1,listeners:[],load:function(e){var
t=this;if(this.listeners.push(e),this.loaded)setTimeout((function()
{t.done()}));else if(!this.loading){this.loading=!
0,window.onYouTubeIframeAPIReady=function(){t.loaded=!0,t.done()};var
n=document.createElement("script");n.type="text/javascript",n.src=this.src,document
.body.appendChild(n)}},done:function(){for(delete
window.onYouTubeIframeAPIReady;this.listeners.length;)this.listeners.pop()
(window.YT)}}},e.prototype._iframeMediaTracker=function(){var
e=this;setInterval((function()
{e._started&&e.recordEvent(Md.IFRAME,Nd.TIME_WATCHED)}),3e3),this._youTubeIframeLoa
der.load((function(t){e._iframePlayer=new t.Player(e._mediaElement.id,{events:
{onStateChange:e._onPlayerStateChange.bind(e)}})}))},e.prototype._onPlayerStateChan
ge=function(e){var t={0:Nd.ENDED,1:Nd.PLAY,2:Nd.PAUSE}
[e.data];t&&this.eventActionMapping[t]
(Md.IFRAME)},e.prototype._html5MediaTracker=function(){var
e=this;setInterval((function()
{e._started&&e.recordEvent(Md.VIDEO,Nd.TIME_WATCHED)}),3e3),this._mediaElement.addE
ventListener(Rd.PLAY,(function(){e.eventActionMapping[Nd.PLAY](Md.VIDEO)}),!
1),this._mediaElement.addEventListener(Rd.PAUSE,(function()
{e.eventActionMapping[Nd.PAUSE](Md.VIDEO)}),!
1),this._mediaElement.addEventListener(Rd.ENDED,(function()
{e.eventActionMapping[Nd.ENDED](Md.VIDEO)}),!
1)},e.prototype.playEventAction=function(e){this._started=!
0,this.recordEvent(e,Nd.PLAY)},e.prototype.pauseEventAction=function(e)
{this._started=!
1,this.recordEvent(e,Nd.PAUSE)},e.prototype.endedEventAction=function(e)
{this._started=!
1,this.recordEvent(e,Nd.ENDED)},e.prototype.recordEvent=function(e,t){var
n,r=Object.assign({},this._params),i=r.eventData;i.eventType=t,e===Md.VIDEO?
(n=this._mediaElement.currentTime,i.properties.duration=this._mediaElement.duration
):
(n=this._financial(this._iframePlayer.getCurrentTime()),i.properties.duration=this.
_financial(this._iframePlayer.getDuration()));var
o=parseFloat(n)/parseFloat(i.properties.duration);i.properties.eventValue=Number(o.
toFixed(4)),delete
i.properties.domElementId,this._provider.putToBuffer(r)},e.prototype._financial=fun
ction(e){return Number.parseFloat(e).toFixed(4)},e}(),Qd=n(72579),Xd=n.n(Qd),Zd=new
h("AmazonPersonalizeProvider"),Jd=function(){function e(e)
{this._buffer=[],this._config=e||
{},this._config.flushSize=this._config.flushSize>0&&this._config.flushSize<=10?
this._config.flushSize:5,this._config.flushInterval=this._config.flushInterval||
5e3,this._sessionManager=new Yd,zd()(this._config.trackingId)||
(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId
)),this._isBrowser=We().isBrowser,this._setupTimer()}return
e.prototype._setupTimer=function(){this._timer&&clearInterval(this._timer);var
e=this._config.flushInterval,t=this;this._timer=setInterval((function()
{t._sendFromBuffer()}),e)},e.prototype.record=function(e){return b(this,void 0,void
0,(function(){var t,n,r,i,o;return y(this,(function(s){switch(s.label){case
0:return[4,this._getCredentials()];case 1:return(t=s.sent())?(Object.assign(e,
{config:this._config,credentials:t,sentAt:new
Date}),n=e.event,r=n.eventType,i=n.properties,"Identify"===r?
(this._sessionManager.updateSessionInfo(i&&i.userId?i.userId:"",this._sessionInfo),
[2]):(zd()(e.event.userId)||
this._sessionManager.updateSessionInfo(e.event.userId,this._sessionInfo),o=this.gen
erateRequestParams(e,this._sessionInfo),"MediaAutoTrack"!==r?[3,7]:this._isBrowser?
zd()(Xd()(o,"eventData.properties.domElementId",null))?[3,3]:
[4,this.isElementFullyLoaded(this.loadElement,o.eventData.properties.domElementId,5
00,5)]:[3,5])):[2,Promise.resolve(!1)];case 2:return s.sent()?new
$d(o,this):Zd.debug("Cannot find the media element."),[3,4];case
3:Zd.debug("Missing domElementId field in 'properties' for MediaAutoTrack event
type."),s.label=4;case 4:return[3,6];case 5:Zd.debug("MediaAutoTrack only for
browser"),s.label=6;case 6:return[2];case
7:return[2,this.putToBuffer(o)]}}))}))},e.prototype.loadElement=function(e){return
new Promise((function(t,n){return
document.getElementById(e)&&document.getElementById(e).clientHeight?t(!0):n(!
0)}))},e.prototype.isElementFullyLoaded=function(e,t,n,r){var i=this;return new
Promise((function(o,s){return e(t).then(o).catch((function(a){return r-1>0?(c=n,new
Promise((function(e){return
setTimeout(e,c)}))).then(i.isElementFullyLoaded.bind(null,e,t,n,r-
1)).then(o).catch(s):s(a);var c}))}))},e.prototype.getCategory=function()
{return"Analytics"},e.prototype.getProviderName=function()
{return"AmazonPersonalize"},e.prototype.configure=function(e){Zd.debug("configure
Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),zd()
(this._config.trackingId)||
(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId
)),this._setupTimer(),this._config},e.prototype.generateRequestParams=function(e,t)
{var n={},r=e.event,i=r.eventType,o=r.properties;return
n.eventData={eventType:i,properties:o},n.sessionInfo=t,n.sentAt=e.sentAt,n.credenti
als=e.credentials,n.config=e.config,n},e.prototype._sendEvents=function(e){var
t=e.length;if(0!==t){var n=e[0],r=n.config,i=n.credentials,o=n.sessionInfo;if(!
this._init(r,i))return!1;if(t>0){for(var s=[],a=0;a<t;a+=1){var
c=e.shift(),u=this._generateSingleRecordPayload(c,o);s.push(u)}var
l={};l.trackingId=o.trackingId,l.sessionId=o.sessionId,l.userId=o.userId,l.eventLis
t=[],s.forEach((function(e){l.eventList.push(e)}));var h=new
ud(l);this._personalize.send(h,(function(e){e?Zd.debug("Failed to call putEvents in
Personalize",e):Zd.debug("Put events")}))}}else Zd.debug("events array is empty,
directly return")},e.prototype.putToBuffer=function(e){return
this._buffer.length<this._config.flushSize?this._buffer.push(e):
(this._buffer.push(e),this._sendFromBuffer()),Promise.resolve(!
0)},e.prototype._sendFromBuffer=function(){var e=this,t=this._buffer.length;if(!
(t<=0)){for(var n=[],r=null,i=[],o=0;o<t;o+=1){var
s=this._buffer.shift(),a=s.credentials,c=s.sessionInfo;0===o?(i.push(s),r=a):Wd()
(c,this._sessionInfo)&&a.sessionToken===r.sessionToken&&a.identityId===r.identityId
?(Zd.debug("no change for cred, put event in the same group"),i.push(s)):
(n.push(i),(i=[]).push(s),r=a,this._sessionInfo=c)}n.push(i),n.map((function(t)
{e._sendEvents(t)}))}},e.prototype._generateSingleRecordPayload=function(e,t){var
n=e.eventData,r=e.sentAt,i={};return
i.sentAt=r,i.properties=n.properties&&JSON.stringify(n.properties),i.eventId=this._
sessionManager.getTimerKey()
+t.sessionId,i.eventType=n.eventType,i},e.prototype._init=funct
ion(e,t){if(Zd.debug("init
clients"),this._personalize&&this._config.credentials&&this._config.credentials.ses
sionToken===t.sessionToken&&this._config.credentials.identityId===t.identityId)retu
rn Zd.debug("no change for analytics config, directly return from init"),!
0;this._config.credentials=t;var n=e.region;return Zd.debug("initialize personalize
with credentials",t),this._personalize=new
Hd({region:n,credentials:t,customUserAgent:Nn($.Record)}),!
0},e.prototype._getCredentials=function(){var e=this;return
Tn.get().then((function(t){return t?(Zd.debug("set credentials for
analytics",e._config.credentials),Tn.shear(t)):null})).catch((function(e){return
Zd.debug("ensure credentials error",e),null}))},e}(),ef=function(e,t){return
ef=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},ef(e,t)};function tf(e,t){function n()
{this.constructor=e}ef(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var nf,rf,of,sf=function(){return
sf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},sf.apply(this,arguments)};function af(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function cf(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function uf(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function lf(e){return e&&!!["provider"].find((function(t){return
e.hasOwnProperty(t)}))}function hf(e){return void 0!==e.redirectSignIn}!function(e)
{e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAma
zon",e.Apple="SignInWithApple"}(nf||(nf={})),function(e)
{e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emp
tyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.E
mptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="inva
lidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSe
ssion",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkErr
or",e.AutoSignInError="autoSignInError"}(rf||(rf={})),function(e)
{e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON
_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"}(of||
(of={}));var df=n(78909);function ff(e,t){void 0===t&&(t={});var n=function(e)
{return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(function(e,t){return void
0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return
JSON.parse(n)}catch(e){}return e}var pf=function(){return pf=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},pf.apply(this,arguments)},gf=function(){function e(e,t){var
n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!
1,this.cookies=function(e,t){return"string"==typeof e?df.Q(e,t):"object"==typeof
e&&null!==e?e:{}}(e,t),new Promise((function()
{n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof
document.cookie})).catch((function(){}))}return
e.prototype._updateBrowserValues=function(e)
{this.HAS_DOCUMENT_COOKIE&&(this.cookies=df.Q(document.cookie,e))},e.prototype._emi
tChange=function(e){for(var t=0;t<this.changeListeners.length;+
+t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void
0===t&&(t={}),this._updateBrowserValues(n),ff(this.cookies[e],t)},e.prototype.getAl
l=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r
in this.cookies)n[r]=ff(this.cookies[r],e);return
n},e.prototype.set=function(e,t,n){var r;"object"==typeof
t&&(t=JSON.stringify(t)),this.cookies=pf(pf({},this.cookies),((r={})
[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=df.q(e,t,n)),this._emitChange(
{name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=pf(pf({},t),
{expires:new
Date(1970,1,1,0,0,1),maxAge:0});this.cookies=pf({},this.cookies),delete
this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=df.q(e,"",n)),this._emit
Change({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e)
{this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var
t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}
();const mf=gf;var vf,bf=function(){return bf=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},bf.apply(this,arguments)},yf=We().isBrowser,wf=function(){function e(e){void
0===e&&(e={}),this.cookies=new mf,this.store=yf?
window.localStorage:Object.create(null),this.cookies=e.req?new
mf(decodeURIComponent(e.req.headers.cookie)):new
mf,Object.assign(this.store,this.cookies.getAll())}return
Object.defineProperty(e.prototype,"length",{get:function(){return
Object.entries(this.store).length},enumerable:!1,configurable:!
0}),e.prototype.clear=function(){var e=this;Array.from(new
Array(this.length)).map((function(t,n){return e.key(n)})).forEach((function(t)
{return e.removeItem(t)}))},e.prototype.getItem=function(e){return
this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return
Object.prototype.hasOwnProperty.call(this.store,e)?
this.store[e]:null},e.prototype.getUniversalItem=function(e){return
this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)
[e]},e.prototype.removeItem=function(e)
{this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=f
unction(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e)
{this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t)
{this.setLocalItem(e,t);var n=e.split(".").pop();
["LastAuthUser","accessToken","refreshToken","idToken"].includes(null!=n?
n:"")&&this.setUniversalItem(e,t,{expires:new Date(Date.now()
+31536e6)})},e.prototype.setLocalItem=function(e,t)
{this.store[e]=t},e.prototype.setUniversalItem=function(e,t,n){void
0===n&&(n={}),this.cookies.set(e,t,bf(bf({},n),{path:"/",sameSite:!0,secure:!
yf||"localhost"!==window.location.hostname}))},e}(),_f=function(){function e(e){var
t=e||
{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,s=t.ClientMetada
ta;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=s||
{},this.username=r,this.password=i}var t=e.prototype;return
t.getUsername=function(){return this.username},t.getPassword=function(){return
this.password},t.getValidationData=function(){return
this.validationData},t.getAuthParameters=function(){return
this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}
(),Ef=n(88820);if("undefined"!=typeof window&&window.crypto&&(vf=window.crypto),!
vf&&"undefined"!=typeof window&&window.msCrypto&&(vf=window.msCrypto),!vf&&void 0!
==n.g&&n.g.crypto&&(vf=n.g.crypto),!vf)try{vf=n(66538)}catch(e){}function Sf()
{if(vf){if("function"==typeof vf.getRandomValues)try{return vf.getRandomValues(new
Uint32Array(1))[0]}catch(e){}if("function"==typeof vf.randomBytes)try{return
vf.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module
could not be used to get secure random number.")}var Tf=function(){function e(e,t)
{e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length}var t=e.prototype;return
t.random=function(t){for(var n=[],r=0;r<t;r+=4)n.push(Sf());return new
e(n,t)},t.toString=function(){return function(e){for(var
t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i
%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return
r.join("")}(this)},e}(),Af=n(52);const Cf=Of;function Of(e,t){null!
=e&&this.fromString(e,t)}function xf(){return new Of(null)}var If,Pf="undefined"!
=typeof navigator;Pf&&"Microsoft Internet Explorer"==navigator.appName?
(Of.prototype.am=function(e,t,n,r,i,o){for(var s=32767&t,a=t>>15;--o>=0;){var
c=32767&this[e],u=this[e++]>>15,l=a*c+u*s;i=((c=s*c+((32767&l)<<15)+n[r]
+(1073741823&i))>>>30)+(l>>>15)+a*u+(i>>>30),n[r++]=1073741823&c}return
i},If=30):Pf&&"Netscape"!=navigator.appName?(Of.prototype.am=function(e,t,n,r,i,o)
{for(;--o>=0;){var s=t*this[e++]+n[r]+i;i=Math.floor(s/67108864),n[r+
+]=67108863&s}return i},If=26):(Of.prototype.am=function(e,t,n,r,i,o){for(var
s=16383&t,a=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,l=a*c+u*s;i=((c=s*c+
((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+a*u,n[r++]=268435455&c}return
i},If=28),Of.prototype.DB=If,Of.prototype.DM=(1<<If)-
1,Of.prototype.DV=1<<If,Of.prototype.FV=Math.pow(2,52),Of.prototype.F1=52-I
f,Of.prototype.F2=2*If-52;var Df,kf,Rf=new
Array;for(Df="0".charCodeAt(0),kf=0;kf<=9;++kf)Rf[Df+
+]=kf;for(Df="a".charCodeAt(0),kf=10;kf<36;++kf)Rf[Df+
+]=kf;for(Df="A".charCodeAt(0),kf=10;kf<36;++kf)Rf[Df++]=kf;function Mf(e)
{return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function Nf(e,t){var
n=Rf[e.charCodeAt(t)];return null==n?-1:n}function Lf(e){var t=xf();return
t.fromInt(e),t}function Ff(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!
=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!
=(t=e>>1)&&(e=t,n+=1),n}function jf(e)
{this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=
(1<<e.DB-15)-1,this.mt2=2*e.t}function Bf(e){return Ef.lW.from((new
Tf).random(e).toString(),"hex")}jf.prototype.convert=function(e){var t=xf();return
e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Of.ZERO)
>0&&this.m.subTo(t,t),t},jf.prototype.revert=function(e){var t=xf();return
e.copyTo(t),this.reduce(t),t},jf.prototype.reduce=function(e)
{for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var
n=32767&e[t],r=n*this.mpl+((n*this.mph+
(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]
+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]+
+}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},jf.p
rototype.mulTo=function(e,t,n)
{e.multiplyTo(t,n),this.reduce(n)},jf.prototype.sqrTo=function(e,t)
{e.squareTo(t),this.reduce(t)},Of.prototype.copyTo=function(e){for(var t=this.t-
1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},Of.prototype.fromInt=function(e)
{this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?
this[0]=e+this.DV:this.t=0},Of.prototype.fromString=function(e,t){var
n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!
=t)throw new Error("Only radix 2, 4, 8, 16, 32 are
supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var
s=Nf(e,r);s<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+n>this.DB?
(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-
1]|=s<<o,(o+=n)>=this.DB&&(o-
=this.DB))}this.clamp(),i&&Of.ZERO.subTo(this,this)},Of.prototype.clamp=function()
{for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--
this.t},Of.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--
n)t[n+e]=this[n];for(n=e-1;n>=0;--
n)t[n]=0;t.t=this.t+e,t.s=this.s},Of.prototype.drShiftTo=function(e,t){for(var
n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-
e,0),t.s=this.s},Of.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-
r,o=(1<<i)-1,s=Math.floor(e/this.DB),a=this.s<<r&this.DM;for(n=this.t-1;n>=0;--
n)t[n+s+1]=this[n]>>i|a,a=(this[n]&o)<<r;for(n=s-1;n>=0;--
n)t[n]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()},Of.prototype.rShiftTo=function
(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e
%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-
1]|=(this[s]&o)<<i,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|
=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},Of.prototype.subTo=function(e,t){for(var
n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n+
+]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n+
+]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n+
+]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n+
+]=r),t.t=n,t.clamp()},Of.prototype.multiplyTo=function(e,t){var
n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;+
+i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!
=e.s&&Of.ZERO.subTo(t,t)},Of.prototype.squareTo=function(e){for(var
t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var
r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-
1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-
1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},Of.prototype.divRemTo=function(e,t,n)
{var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!
=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=xf());var
o=xf(),s=this.s,a=e.s,c=this.DB-Ff(r[r.t-1]);c>0?(r.lShiftTo(c,o),i.lShiftTo(c,n)):
(r.copyTo(o),i.copyTo(n));var u=o.t,l=o[u-1];if(0!=l){var h=l*(1<<this.F1)+(u>1?
o[u-2]>>this.F2:0),d=this.FV/h,f=(1<<this.F1)/h,p=1<<this.F2,g=n.t,m=g-u,v=null==t?
xf():t;for(o.dlShiftTo(m,v),n.compareTo(v)>=0&&(n[n.t+
+]=1,n.subTo(v,n)),Of.ONE.dlShiftTo(u,v),v.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--
m>=0;){var b=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*f);if((n[g]
+=o.am(0,b,n,m,0,u))<b)for(o.dlShiftTo(m,v),n.subTo(v,n);n[g]<--
b;)n.subTo(v,n)}null!=t&&(n.drShiftTo(u,t),s!
=a&&Of.ZERO.subTo(t,t)),n.t=u,n.clamp(),c>0&&n.rShiftTo(c,n),s<0&&Of.ZERO.subTo(n,n
)}}},Of.prototype.invDigit=function(){if(this.t<1)return 0;var
e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-
(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-
t:-t},Of.prototype.addTo=function(e,t){for(var
n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n+
+]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n+
+]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n+
+]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n+
+]=this.DV+r),t.t=n,t.clamp()},Of.prototype.toString=function(e)
{if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else
if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only
radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<<t)-1,i=!
1,o="",s=this.t,a=this.DB-s*this.DB%t;if(s--
>0)for(a<this.DB&&(n=this[s]>>a)>0&&(i=!0,o=Mf(n));s>=0;)a<t?(n=(this[s]&(1<<a)-
1)<<t-a,n|=this[--s]>>(a+=this.DB-t)):(n=this[s]>>(a-=t)&r,a<=0&&(a+=this.DB,--
s)),n>0&&(i=!0),i&&(o+=Mf(n));return i?o:"0"},Of.prototype.negate=function(){var
e=xf();return Of.ZERO.subTo(this,e),e},Of.prototype.abs=function(){return this.s<0?
this.negate():this},Of.prototype.compareTo=function(e){var t=this.s-e.s;if(0!
=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!
=(t=this[n]-e[n]))return t;return 0},Of.prototype.bitLength=function(){return
this.t<=0?0:this.DB*(this.t-1)+Ff(this[this.t-
1]^this.s&this.DM)},Of.prototype.mod=function(e){var t=xf();return
this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Of.ZERO)>0&&e.subTo(t,t),t},Of.
prototype.equals=function(e){return
0==this.compareTo(e)},Of.prototype.add=function(e){var t=xf();return
this.addTo(e,t),t},Of.prototype.subtract=function(e){var t=xf();return
this.subTo(e,t),t},Of.prototype.multiply=function(e){var t=xf();return
this.multiplyTo(e,t),t},Of.prototype.divide=function(e){var t=xf();return
this.divRemTo(e,t,null),t},Of.prototype.modPow=function(e,t,n){var
r,i=e.bitLength(),o=Lf(1),s=new jf(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?
4:i<768?5:6;var a=new Array,c=3,u=r-1,l=(1<<r)-1;if(a[1]=s.convert(this),r>1){var
h=xf();for(s.sqrTo(a[1],h);c<=l;)a[c]=xf(),s.mulTo(h,a[c-2],a[c]),c+=2}var
d,f,p=e.t-1,g=!0,m=xf();for(i=Ff(e[p])-1;p>=0;){for(i>=u?d=e[p]>>i-u&l:
(d=(e[p]&(1<<i+1)-1)<<u-i,p>0&&(d|=e[p-1]>>this.DB+i-u)),c=r;0==(1&d);)d>>=1,--
c;if((i-=c)<0&&(i+=this.DB,--p),g)a[d].copyTo(o),g=!
1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):
(f=o,o=m,m=f),s.mulTo(m,a[d],o)}for(;p>=0&&0==(e[p]&1<<i);)s.sqrTo(o,m),f=o,o=m,m=f
,--i<0&&(i=this.DB-1,--p)}var v=s.revert(o);return
n(null,v),v},Of.ZERO=Lf(0),Of.ONE=Lf(1);var Uf=/^[89a-f]/i,Hf=function(){function
e(e){this.N=new
Cf("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B2
2514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F4
4C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007
CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED52907
7096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC0
7A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC4
2DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7A
BF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F
2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D12
0A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new Cf("2",16),this.k=new
Cf(this.hexHash(""+this.padHex(this.N)
+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLarg
eAValue((function(){})),this.infoBits=Ef.lW.from("Caldera Derived
Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function()
{return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?
e(null,this.largeAValue):this.calculateA(this.smallAValue,(function(n,r)
{n&&e(n,null),t.largeAValue=r,e(null,t.largeAValue)}))},t.generateRandomSmallA=func
tion(){var e=Bf(128).toString("hex");return new
Cf(e,16)},t.generateRandomString=function(){return
Bf(40).toString("base64")},t.getRandomPassword=function(){return
this.randomPassword},t.getSaltDevices=function(){return
this.SaltToHashDevices},t.getVerifierDevices=function(){return
this.verifierDevices},t.generateHashDevice=function(e,t,n){var
r=this;this.randomPassword=this.generateRandomString();var
i=""+e+t+":"+this.randomPassword,o=this.hash(i),s=Bf(16).toString("hex");this.SaltT
oHashDevices=this.padHex(new Cf(s,16)),this.g.modPow(new
Cf(this.hexHash(this.SaltToHashDevices+o),16),this.N,(function(e,t)
{e&&n(e,null),r.verifierDevices=r.padHex(t),n(null,null)}))},t.calculateA=function(
e,t){var n=this;this.g.modPow(e,this.N,(function(e,r)
{e&&t(e,null),r.mod(n.N).equals(Cf.ZERO)&&t(new Error("Illegal paramater. A mod N
cannot be 0."),null),t(null,r)}))},t.calculateU=function(e,t){return
this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new
Cf(this.UHexHash,16)},t.hash=function(e){var t=new Af.Sha256;t.update(e);var
n=t.digestSync(),r=Ef.lW.from(n).toString("hex");return new Array(64-
r.length).join("0")+r},t.hexHash=function(e){return
this.hash(Ef.lW.from(e,"hex"))},t.computehkdf=function(e,t){var
n=Ef.lW.concat([this.infoBits,Ef.lW.from(String.fromCharCode(1),"utf8")]),r=new
Af.Sha256(t);r.update(e);var i=r.digestSync(),o=new Af.Sha256(i);return
o.update(n),o.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(e,t
,n,r,i){var o=this;if(n.mod(this.N).equals(Cf.ZERO))throw new Error("B cannot be
zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals(Cf.ZE
RO))throw new Error("U cannot be zero.");var
s=""+this.poolName+e+":"+t,a=this.hash(s),c=new Cf(this.hexHash(this.padHex(r)
+a),16);this.calculateS(c,n,(function(e,t){e&&i(e,null);var
n=o.computehkdf(Ef.lW.from(o.padHex(t),"hex"),Ef.lW.from(o.padHex(o.UValue),"hex"))
;i(null,n)}))},t.calculateS=function(e,t,n){var r=this;this.g.modPow(e,this.N,
(function(i,o)
{i&&n(i,null),t.subtract(r.k.multiply(o)).modPow(r.smallAValue.add(r.UValue.multipl
y(e)),r.N,(function(e,t)
{e&&n(e,null),n(null,t.mod(r.N))}))}))},t.getNewPasswordRequiredChallengeUserAttrib
utePrefix=function(){return"userAttributes."},t.padHex=function(e){if(!(e
instanceof Cf))throw new Error("Not a BigInteger");var
t=e.compareTo(Cf.ZERO)<0,n=e.abs().toString(16);if(n=n.length%2!
=0?"0"+n:n,n=Uf.test(n)?"00"+n:n,t){var r=n.split("").map((function(e){var
t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)})).join("");(n=new
Cf(r,16).add(Cf.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(n=n.substring(
2))}return n},e}(),Gf=function(){function e(e)
{this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return
t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return
this.payload.exp},t.getIssuedAt=function(){return
this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")
[1];try{return JSON.parse(Ef.lW.from(e,"base64").toString("utf8"))}catch(e)
{return{}}},e}();function zf(e,t){return zf=Object.setPrototypeOf?
Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zf(e,t)}var
Vf=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).AccessToken;return
e.call(this,n||"")||this}return n=e,
(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,zf(t,n),r}
(Gf);function Wf(e,t){return Wf=Object.setPrototypeOf?
Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wf(e,t)}var
qf=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).IdToken;return
e.call(this,n||"")||this}return n=e,
(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Wf(t,n),r}
(Gf),Kf=function(){function e(e){var t=(void 0===e?
{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return
this.token},e}(),Yf="aws-amplify/5.0.4",$f="undefined"!=typeof
navigator&&"ReactNative"===navigator.product,Qf=function(){function e(e){var t=void
0===e?{}:e,n=t.IdToken,r=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(null==i||
null==n)throw new Error("Id token and Access Token must be
present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=vo
id 0===o?this.calculateClockDrift():o}var t=e.prototype;return
t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return
this.refreshToken},t.getAccessToken=function(){return
this.accessToken},t.getClockDrift=function(){return
this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-
Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=func
tion(){var e=Math.floor(new Date/1e3)-this.clockDrift;return
e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}
(),Xf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zf=
["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Jf=function(){function e(){}return
e.prototype.getNowString=function(){var e=new
Date,t=Zf[e.getUTCDay()],n=Xf[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCHours();i
<10&&(i="0"+i);var o=e.getUTCMinutes();o<10&&(o="0"+o);var
s=e.getUTCSeconds();return s<10&&(s="0"+s),t+" "+n+" "+r+" "+i+":"+o+":"+s+" UTC
"+e.getUTCFullYear()},e}(),ep=function(){function e(e){var t=void 0===e?
{}:e,n=t.Name,r=t.Value;this.Name=n||"",this.Value=r||""}var t=e.prototype;return
t.getValue=function(){return this.Value},t.setValue=function(e){return
this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e)
{return this.Name=e,this},t.toString=function(){return
JSON.stringify(this)},t.toJSON=function()
{return{Name:this.Name,Value:this.Value}},e}(),tp={},np=function(){function e()
{}return e.setItem=function(e,t){return tp[e]=t,tp[e]},e.getItem=function(e){return
Object.prototype.hasOwnProperty.call(tp,e)?tp[e]:void 0},e.removeItem=function(e)
{return delete tp[e]},e.clear=function(){return tp={}},e}(),rp=function(){function
e()
{try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito
.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e)
{this.storageWindow=np}}return e.prototype.getStorage=function(){return
this.storageWindow},e}(),ip="undefined"!=typeof navigator?$f?"react-
native":navigator.userAgent:"nodejs",op=function(){function e(e){if(null==e||
null==e.Username||null==e.Pool)throw new Error("Username and Pool information are
required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.cl
ient=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SR
P_AUTH",this.storage=e.Storage||(new
rp).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClie
ntId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var
t=e.prototype;return t.setSignInUserSession=function(e)
{this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignI
nUserSession=function(){return this.signInUserSession},t.getUsername=function()
{return this.username},t.getAuthenticationFlowType=function(){return
this.authenticationFlowType},t.setAuthenticationFlowType=function(e)
{this.authenticationFlowType=e},t.initiateAuth=function(e,t){var
n=this,r=e.getAuthParameters();r.USERNAME=this.username;var i=0!
==Object.keys(e.getValidationData()).length?
e.getValidationData():e.getClientMetadata(),o={AuthFlow:"CUSTOM_AUTH",ClientId:this
.pool.getClientId(),AuthParameters:r,ClientMetadata:i};this.getUserContextData()&&(
o.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",o,
(function(e,r){if(e)return t.onFailure(e);var
i=r.ChallengeName,o=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?
(n.Session=r.Session,t.customChallenge(o)):
(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(
),t.onSuccess(n.signInUserSession))}))},t.authenticateUser=function(e,t)
{return"USER_PASSWORD_AUTH"===this.authenticationFlowType?
this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticati
onFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?
this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow
type is invalid."))},t.authenticateUserDefaultAuth=function(e,t){var
n,r,i=this,o=new Hf(this.pool.getUserPoolName()),s=new Jf,a={};null!
=this.deviceKey&&(a.DEVICE_KEY=this.deviceKey),a.USERNAME=this.username,o.getLargeA
Value((function(c,u)
{c&&t.onFailure(c),a.SRP_A=u.toString(16),"CUSTOM_AUTH"===i.authenticationFlowType&
&(a.CHALLENGE_NAME="SRP_A");var l=0!==Object.keys(e.getValidationData()).length?
e.getValidationData():e.getClientMetadata(),h={AuthFlow:i.authenticationFlowType,Cl
ientId:i.pool.getClientId(),AuthParameters:a,ClientMetadata:l};i.getUserContextData
(i.username)&&(h.UserContextData=i.getUserContextData(i.username)),i.client.request
("InitiateAuth",h,(function(a,c){if(a)return t.onFailure(a);var
u=c.ChallengeParameters;i.username=u.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+
i.username+".userData",n=new Cf(u.SRP_B,16),r=new
Cf(u.SALT,16),i.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(i.us
ername,e.getPassword(),n,r,(function(e,n){e&&t.onFailure(e);var
r=s.getNowString(),a=Ef.lW.concat([Ef.lW.from(i.pool.getUserPoolName(),"utf8"),Ef.l
W.from(i.username,"utf8"),Ef.lW.from(u.SECRET_BLOCK,"base64"),Ef.lW.from(r,"utf8")]
),h=new Af.Sha256(n);h.update(a);var
d=h.digestSync(),f=Ef.lW.from(d).toString("base64"),p={};p.USERNAME=i.username,p.PA
SSWORD_CLAIM_SECRET_BLOCK=u.SECRET_BLOCK,p.TIMESTAMP=r,p.PASSWORD_CLAIM_SIGNATURE=f
,null!=i.deviceKey&&(p.DEVICE_KEY=i.deviceKey);var
g={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeRespons
es:p,Session:c.Session,ClientMetadata:l};i.getUserContextData()&&(g.UserContextData
=i.getUserContextData()),function e(t,n){return
i.client.request("RespondToAuthChallenge",t,(function(r,o){return
r&&"ResourceNotFoundException"===r.code&&-1!
==r.message.toLowerCase().indexOf("device")?
(p.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.c
learCachedDeviceKeyAndPassword(),e(t,n)):n(r,o)}))}(g,(function(e,n){return e?
t.onFailure(e):i.authenticateUserInternal(n,o,t)}))}))}))}))},t.authenticateUserPla
inUsernamePassword=function(e,t){var
n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var
i=new Hf(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!
=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o=0!
==Object.keys(e.getValidationData()).length?
e.getValidationData():e.getClientMetadata(),s={AuthFlow:"USER_PASSWORD_AUTH",Client
Id:this.pool.getClientId(),AuthParameters:r,ClientMetadata:o};this.getUserContextDa
ta(this.username)&&(s.UserContextData=this.getUserContextData(this.username)),this.
client.request("InitiateAuth",s,(function(e,r){return e?
t.onFailure(e):n.authenticateUserInternal(r,i,t)}))}else t.onFailure(new
Error("PASSWORD parameter is
required"))},t.authenticateUserInternal=function(e,t,n){var
r=this,i=e.ChallengeName,o=e.ChallengeParameters;if("SMS_MFA"===i)return
this.Session=e.Session,n.mfaRequired(i,o);if("SELECT_MFA_TYPE"===i)return
this.Session=e.Session,n.selectMFAType(i,o);if("MFA_SETUP"===i)return
this.Session=e.Session,n.mfaSetup(i,o);if("SOFTWARE_TOKEN_MFA"===i)return
this.Session=e.Session,n.totpRequired(i,o);if("CUSTOM_CHALLENGE"===i)return
this.Session=e.Session,n.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===i)
{this.Session=e.Session;var
s=null,a=null,c=[],u=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(
s=JSON.parse(e.ChallengeParameters.userAttributes),a=JSON.parse(e.ChallengeParamete
rs.requiredAttributes)),a)for(var l=0;l<a.length;l+
+)c[l]=a[l].substr(u.length);return
n.newPasswordRequired(s,c)}if("DEVICE_SRP_AUTH"===i)return
this.Session=e.Session,void
this.getDeviceResponse(n);this.signInUserSession=this.getCognitoUserSession(e.Authe
nticationResult),this.challengeName=i,this.cacheTokens();var
h=e.AuthenticationResult.NewDeviceMetadata;if(null==h)return
n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.New
DeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,
(function(i){if(i)return n.onFailure(i);var
o={Salt:Ef.lW.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:Ef
.lW.from(t.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=o.Pass
wordVerifier,r.deviceGroupKey=h.DeviceGroupKey,r.randomPassword=t.getRandomPassword
(),r.client.request("ConfirmDevice",
{DeviceKey:h.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken
(),DeviceSecretVerifierConfig:o,DeviceName:ip},(function(t,i){return t?
n.onFailure(t):
(r.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAnd
Password(),!0===i.UserConfirmationNecessary?
n.onSuccess(r.signInUserSession,i.UserConfirmationNecessary):n.onSuccess(r.signInUs
erSession))}))}))},t.completeNewPasswordChallenge=function(e,t,n,r){var i=this;if(!
e)return n.onFailure(new Error("New password is required."));var o=new
Hf(this.pool.getUserPoolName()),s=o.getNewPasswordRequiredChallengeUserAttributePre
fix(),a={};t&&Object.keys(t).forEach((function(e)
{a[s+e]=t[e]})),a.NEW_PASSWORD=e,a.USERNAME=this.username;var
c={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),Challenge
Responses:a,Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(c.Us
erContextData=this.getUserContextData()),this.client.request("RespondToAuthChalleng
e",c,(function(e,t){return e?
n.onFailure(e):i.authenticateUserInternal(t,o,n)}))},t.getDeviceResponse=function(e
,t){var n=this,r=new Hf(this.deviceGroupKey),i=new
Jf,o={};o.USERNAME=this.username,o.DEVICE_KEY=this.deviceKey,r.getLargeAValue((func
tion(s,a){s&&e.onFailure(s),o.SRP_A=a.toString(16);var
c={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses
:o,ClientMetadata:t,Session:n.Session};n.getUserContextData()&&(c.UserContextData=n
.getUserContextData()),n.client.request("RespondToAuthChallenge",c,(function(t,o)
{if(t)return e.onFailure(t);var s=o.ChallengeParameters,a=new Cf(s.SRP_B,16),c=new
Cf(s.SALT,16);r.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,a,c,
(function(t,r){if(t)return e.onFailure(t);var
a=i.getNowString(),c=Ef.lW.concat([Ef.lW.from(n.deviceGroupKey,"utf8"),Ef.lW.from(n
.deviceKey,"utf8"),Ef.lW.from(s.SECRET_BLOCK,"base64"),Ef.lW.from(a,"utf8")]),u=new
Af.Sha256(r);u.update(c);var
l=u.digestSync(),h=Ef.lW.from(l).toString("base64"),d={};d.USERNAME=n.username,d.PA
SSWORD_CLAIM_SECRET_BLOCK=s.SECRET_BLOCK,d.TIMESTAMP=a,d.PASSWORD_CLAIM_SIGNATURE=h
,d.DEVICE_KEY=n.deviceKey;var
f={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),Challenge
Responses:d,Session:o.Session};n.getUserContextData()&&(f.UserContextData=n.getUser
ContextData()),n.client.request("RespondToAuthChallenge",f,(function(t,r){return t?
e.onFailure(t):
(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(
),e.onSuccess(n.signInUserSession))}))}))}))}))},t.confirmRegistration=function(e,t
,n,r){var
i={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,Force
AliasCreation:t,ClientMetadata:r};this.getUserContextData()&&(i.UserContextData=thi
s.getUserContextData()),this.client.request("ConfirmSignUp",i,(function(e){return
e?n(e,null):n(null,"SUCCESS")}))},t.sendCustomChallengeAnswer=function(e,t,n){var
r=this,i={};i.USERNAME=this.username,i.ANSWER=e;var o=new
Hf(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!
=this.deviceKey&&(i.DEVICE_KEY=this.deviceKey);var
s={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:i,ClientId:this.pool.getClie
ntId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(s.UserCon
textData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",s,
(function(e,n){return e?
t.onFailure(e):r.authenticateUserInternal(n,o,t)}))},t.sendMFACode=function(e,t,n,r
){var i=this,o={};o.USERNAME=this.username,o.SMS_MFA_CODE=e;var
s=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===s&&(o.SOFTWARE_TOKEN_MFA_CODE=e),null!
=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var
a={ChallengeName:s,ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:th
is.Session,ClientMetadata:r};this.getUserContextData()&&(a.UserContextData=this.get
UserContextData()),this.client.request("RespondToAuthChallenge",a,(function(e,n)
{if(e)return t.onFailure(e);if("DEVICE_SRP_AUTH"!==n.ChallengeName)
{if(i.signInUserSession=i.getCognitoUserSession(n.AuthenticationResult),i.cacheToke
ns(),null==n.AuthenticationResult.NewDeviceMetadata)return
t.onSuccess(i.signInUserSession);var r=new
Hf(i.pool.getUserPoolName());r.generateHashDevice(n.AuthenticationResult.NewDeviceM
etadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,
(function(e){if(e)return t.onFailure(e);var
o={Salt:Ef.lW.from(r.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:Ef
.lW.from(r.getVerifierDevices(),"hex").toString("base64")};i.verifierDevices=o.Pass
wordVerifier,i.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupK
ey,i.randomPassword=r.getRandomPassword(),i.client.request("ConfirmDevice",
{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:i.signInU
serSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:i
p},(function(e,r){return e?t.onFailure(e):
(i.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,i.cacheDeviceKeyAnd
Password(),!0===r.UserConfirmationNecessary?
t.onSuccess(i.signInUserSession,r.UserConfirmationNecessary):t.onSuccess(i.signInUs
erSession))}))}))}else
i.getDeviceResponse(t)}))},t.changePassword=function(e,t,n,r)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new
Error("User is not authenticated"),null);this.client.request("ChangePassword",
{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccess
Token().getJwtToken(),ClientMetadata:r},(function(e){return e?
n(e,null):n(null,"SUCCESS")}))},t.enableMFA=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new
Error("User is not authenticated"),null);var
t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.reques
t("SetUserSettings",
{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},
(function(t){return t?
e(t,null):e(null,"SUCCESS")}))},t.setUserMfaPreference=function(e,t,n)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new
Error("User is not
authenticated"),null);this.client.request("SetUserMFAPreference",
{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.get
AccessToken().getJwtToken()},(function(e){return e?
n(e,null):n(null,"SUCCESS")}))},t.disableMFA=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new
Error("User is not authenticated"),null);this.client.request("SetUserSettings",
{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},
(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.deleteUser=function(e,t)
{var n=this;if(null==this.signInUserSession||!
this.signInUserSession.isValid())return e(new Error("User is not
authenticated"),null);this.client.request("DeleteUser",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t
},(function(t){return t?e(t,null):
(n.clearCachedUser(),e(null,"SUCCESS"))}))},t.updateAttributes=function(e,t,n){var
r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return
t(new Error("User is not
authenticated"),null);this.client.request("UpdateUserAttributes",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e
,ClientMetadata:n},(function(e,n){return e?t(e,null):r.getUserData((function()
{return t(null,"SUCCESS",n)}),{bypassCache:!0})}))},t.getUserAttributes=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new
Error("User is not authenticated"),null);this.client.request("GetUser",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n)
{if(t)return e(t,null);for(var r=[],i=0;i<n.UserAttributes.length;i++){var
o={Name:n.UserAttributes[i].Name,Value:n.UserAttributes[i].Value},s=new
ep(o);r.push(s)}return e(null,r)}))},t.getMFAOptions=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new
Error("User is not authenticated"),null);this.client.request("GetUser",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n)
{return t?e(t,null):e(null,n.MFAOptions)}))},t.createGetUserRequest=function()
{return this.client.promisifyRequest("GetUser",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSess
ionIfPossible=function(e){var t=this;return void 0===e&&(e={}),new
Promise((function(n){var r=t.signInUserSession.getRefreshToken();r&&r.getToken()?
t.refreshSession(r,n,e.clientMetadata):n()}))},t.getUserData=function(e,t){var
n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return
this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var
r=this.getUserDataFromCache();if(r)if(this.isFetchUserDataAndTokenRequired(t))this.
fetchUserData().then((function(e){return
n.refreshSessionIfPossible(t).then((function(){return e}))})).then((function(t)
{return e(null,t)})).catch(e);else try{return void e(null,JSON.parse(r))}catch(t)
{return this.clearCachedUserData(),void e(t,null)}else
this.fetchUserData().then((function(t)
{e(null,t)})).catch(e)},t.getUserDataFromCache=function(){return
this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(
e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var
e=this;return this.createGetUserRequest().then((function(t){return
e.cacheUserData(t),t}))},t.deleteAttributes=function(e,t){var
n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return
t(new Error("User is not
authenticated"),null);this.client.request("DeleteUserAttributes",
{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtTok
en()},(function(e){return e?t(e,null):n.getUserData((function(){return
t(null,"SUCCESS")}),{bypassCache:!0})}))},t.resendConfirmationCode=function(e,t)
{var
n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.c
lient.request("ResendConfirmationCode",n,(function(t,n){return t?
e(t,null):e(null,n)}))},t.getSession=function(e,t){if(void
0===t&&(t={}),null==this.username)return e(new Error("Username is null. Cannot
retrieve a new session"),null);if(null!
=this.signInUserSession&&this.signInUserSession.isValid())return
e(null,this.signInUserSession);var
n="CognitoIdentityServiceProvider."+this.pool.getClientId()
+"."+this.username,r=n+".idToken",i=n+".accessToken",o=n+".refreshToken",s=n+".cloc
kDrift";if(this.storage.getItem(r)){var a=new
qf({IdToken:this.storage.getItem(r)}),c=new
Vf({AccessToken:this.storage.getItem(i)}),u=new
Kf({RefreshToken:this.storage.getItem(o)}),l=parseInt(this.storage.getItem(s),0)||
0,h=new
Qf({IdToken:a,AccessToken:c,RefreshToken:u,ClockDrift:l});if(h.isValid())return
this.signInUserSession=h,e(null,this.signInUserSession);if(!u.getToken())return
e(new Error("Cannot retrieve a new session. Please
authenticate."),null);this.refreshSession(u,e,t.clientMetadata)}else e(new
Error("Local storage is missing an ID Token, Please
authenticate"),null)},t.refreshSession=function(e,t,n){var
r=this,i=this.pool.wrapRefreshSessionCallback?
this.pool.wrapRefreshSessionCallback(t):t,o={};o.REFRESH_TOKEN=e.getToken();var
s="CognitoIdentityServiceProvider."+this.pool.getClientId(),a=s+".LastAuthUser";if(
this.storage.getItem(a)){this.username=this.storage.getItem(a);var
c=s+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(c),o.DEVICE_
KEY=this.deviceKey}var
u={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:o,
ClientMetadata:n};this.getUserContextData()&&(u.UserContextData=this.getUserContext
Data()),this.client.request("InitiateAuth",u,(function(t,n)
{if(t)return"NotAuthorizedException"===t.code&&r.clearCachedUser(),i(t,null);if(n)
{var o=n.AuthenticationResult;return
Object.prototype.hasOwnProperty.call(o,"RefreshToken")||
(o.RefreshToken=e.getToken()),r.signInUserSession=r.getCognitoUserSession(o),r.cach
eTokens(),i(null,r.signInUserSession)}}))},t.cacheTokens=function(){var
e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+"
.idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken
",i=e+"."+this.username+".clockDrift",o=e+".LastAuthUser";this.storage.setItem(t,th
is.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signIn
UserSession.getAccessToken().getJwtToken()),this.storage.setItem(r,this.signInUserS
ession.getRefreshToken().getToken()),this.storage.setItem(i,""+this.signInUserSessi
on.getClockDrift()),this.storage.setItem(o,this.username)},t.cacheUserData=function
(e)
{this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=fu
nction(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function()
{this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=f
unction(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()
+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";
this.storage.setItem(t,this.deviceKey),this.storage.setItem(n,this.randomPassword),
this.storage.setItem(r,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=functi
on(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()
+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";
this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPasswor
d=this.storage.getItem(n),this.deviceGroupKey=this.storage.getItem(r))},t.clearCach
edDeviceKeyAndPassword=function(){var
e="CognitoIdentityServiceProvider."+this.pool.getClientId()
+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";
this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r)},t
.clearCachedTokens=function(){var
e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+"
.idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken
",i=e+".LastAuthUser",o=e+"."+this.username+".clockDrift";this.storage.removeItem(t
),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(i),
this.storage.removeItem(o)},t.getCognitoUserSession=function(e){var t=new
qf(e),n=new Vf(e),r=new Kf(e);return new
Qf({IdToken:t,AccessToken:n,RefreshToken:r})},t.forgotPassword=function(e,t){var
n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.g
etUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.requ
est("ForgotPassword",n,(function(t,n){return t?e.onFailure(t):"function"==typeof
e.inputVerificationCode?
e.inputVerificationCode(n):e.onSuccess(n)}))},t.confirmPassword=function(e,t,n,r)
{var
i={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Passw
ord:t,ClientMetadata:r};this.getUserContextData()&&(i.UserContextData=this.getUserC
ontextData()),this.client.request("ConfirmForgotPassword",i,(function(e){return e?
n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getAttributeVerificationCode=function(e
,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return
t.onFailure(new Error("User is not
authenticated"));this.client.request("GetUserAttributeVerificationCode",
{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),
ClientMetadata:n},(function(e,n){return e?t.onFailure(e):"function"==typeof
t.inputVerificationCode?
t.inputVerificationCode(n):t.onSuccess("SUCCESS")}))},t.verifyAttribute=function(e,
t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return
n.onFailure(new Error("User is not
authenticated"));this.client.request("VerifyUserAttribute",
{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtT
oken()},(function(e){return e?
n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getDevice=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return
e.onFailure(new Error("User is not
authenticated"));this.client.request("GetDevice",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.d
eviceKey},(function(t,n){return t?
e.onFailure(t):e.onSuccess(n)}))},t.forgetSpecificDevice=function(e,t)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return
t.onFailure(new Error("User is not
authenticated"));this.client.request("ForgetDevice",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},
(function(e){return e?
t.onFailure(e):t.onSuccess("SUCCESS")}))},t.forgetDevice=function(e){var
t=this;this.forgetSpecificDevice(this.deviceKey,
{onFailure:e.onFailure,onSuccess:function(n){return
t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKey
AndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return
e.onFailure(new Error("User is not
authenticated"));this.client.request("UpdateDeviceStatus",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.d
eviceKey,DeviceRememberedStatus:"remembered"},(function(t){return t?
e.onFailure(t):e.onSuccess("SUCCESS")}))},t.setDeviceStatusNotRemembered=function(e
){if(null==this.signInUserSession||!this.signInUserSession.isValid())return
e.onFailure(new Error("User is not
authenticated"));this.client.request("UpdateDeviceStatus",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.d
eviceKey,DeviceRememberedStatus:"not_remembered"},(function(t){return t?
e.onFailure(t):e.onSuccess("SUCCESS")}))},t.listDevices=function(e,t,n)
{if(null==this.signInUserSession||!this.signInUserSession.isValid())return
n.onFailure(new Error("User is not authenticated"));var
r={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(r
.PaginationToken=t),this.client.request("ListDevices",r,(function(e,t){return e?
n.onFailure(e):n.onSuccess(t)}))},t.globalSignOut=function(e){var
t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return
e.onFailure(new Error("User is not
authenticated"));this.client.request("GlobalSignOut",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(n)
{return n?e.onFailure(n):
(t.clearCachedUser(),e.onSuccess("SUCCESS"))}))},t.signOut=function(e){var
t=this;e&&"function"==typeof e?this.getSession((function(n,r){if(n)return
e(n);t.revokeTokens((function(n)
{t.cleanClientData(),e(n)}))})):this.cleanClientData()},t.revokeTokens=function(e)
{if(void 0===e&&(e=function(){}),"function"!=typeof e)throw new Error("Invalid
revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return
e(new Error("User is not authenticated"));if(!
this.signInUserSession.getAccessToken())return e(new Error("No Access token
available"));var
t=this.signInUserSession.getRefreshToken().getToken(),n=this.signInUserSession.getA
ccessToken();if(this.isSessionRevocable(n)&&t)
return this.revokeToken({token:t,callback:e});e()},t.isSessionRevocable=function(e)
{if(e&&"function"==typeof e.decodePayload)try{return!!
e.decodePayload().origin_jti}catch(e){}return!1},t.cleanClientData=function()
{this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var
t=e.token,n=e.callback;this.client.requestWithRetry("RevokeToken",
{Token:t,ClientId:this.pool.getClientId()},(function(e){if(e)return
n(e);n()}))},t.sendMFASelectionAnswer=function(e,t){var
n=this,r={};r.USERNAME=this.username,r.ANSWER=e;var
i={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:r,ClientId:this.pool.getClien
tId(),Session:this.Session};this.getUserContextData()&&(i.UserContextData=this.getU
serContextData()),this.client.request("RespondToAuthChallenge",i,(function(r,i)
{return r?t.onFailure(r):(n.Session=i.Session,"SMS_MFA"===e?
t.mfaRequired(i.ChallengeName,i.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?
t.totpRequired(i.ChallengeName,i.ChallengeParameters):void
0)}))},t.getUserContextData=function(){return
this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e)
{var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?
this.client.request("AssociateSoftwareToken",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n)
{return t?
e.onFailure(t):e.associateSecretCode(n.SecretCode)})):this.client.request("Associat
eSoftwareToken",{Session:this.Session},(function(n,r){return n?e.onFailure(n):
(t.Session=r.Session,e.associateSecretCode(r.SecretCode))}))},t.verifySoftwareToken
=function(e,t,n){var r=this;null!
=this.signInUserSession&&this.signInUserSession.isValid()?
this.client.request("VerifySoftwareToken",
{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,Frien
dlyDeviceName:t},(function(e,t){return e?
n.onFailure(e):n.onSuccess(t)})):this.client.request("VerifySoftwareToken",
{Session:this.Session,UserCode:e,FriendlyDeviceName:t},(function(e,t){if(e)return
n.onFailure(e);r.Session=t.Session;var i={};i.USERNAME=r.username;var
o={ChallengeName:"MFA_SETUP",ClientId:r.pool.getClientId(),ChallengeResponses:i,Ses
sion:r.Session};r.getUserContextData()&&(o.UserContextData=r.getUserContextData()),
r.client.request("RespondToAuthChallenge",o,(function(e,t){return e?n.onFailure(e):
(r.signInUserSession=r.getCognitoUserSession(t.AuthenticationResult),r.cacheTokens(
),n.onSuccess(r.signInUserSession))}))}))},e}();function sp()
{}sp.prototype.userAgent=Yf;var ap=function(e){sp.framework=e};function cp(e){var
t="function"==typeof Map?new Map:void 0;return cp=function(e){if(null===e||!
function(e){try{return-1!==Function.toString.call(e).indexOf("[native
code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof
e)throw new TypeError("Super expression must either be null or a function");if(void
0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return
up(e,arguments,hp(this).constructor)}return n.prototype=Object.create(e.prototype,
{constructor:{value:n,enumerable:!1,writable:!0,configurable:!
0}}),lp(n,e)},cp(e)}function up(e,t,n){return up=function(){if("undefined"==typeof
Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!
1;if("function"==typeof Proxy)return!0;try{return
Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!
0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var
r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return
n&&lp(i,n.prototype),i},up.apply(null,arguments)}function lp(e,t){return
lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return
e.__proto__=t,e},lp(e,t)}function hp(e){return hp=Object.setPrototypeOf?
Object.getPrototypeOf.bind():function(e){return e.__proto__||
Object.getPrototypeOf(e)},hp(e)}var dp=function(e){function t(t,n,r,i){var
o;return(o=e.call(this,t)||this).code=n,o.name=r,o.statusCode=i,o}return r=e,
(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,lp(n,r),t;var
n,r}(cp(Error)),fp=function(){function e(e,t,n){this.endpoint=t||"https://cognito-
idp."+e+".amazonaws.com/";var r=(n||{}).credentials;this.fetchOptions=r?
{credentials:r}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var
n=this;return new Promise((function(r,i){n.request(e,t,(function(e,t){e?i(new
dp(e.message,e.code,e.name,e.statusCode)):r(t)}))}))},t.requestWithRetry=function(e
,t,n){var r,i,o=this;(r=[t],i=5e3,void 0===i&&(i=vp),mp((function(t){return new
Promise((function(n,r){o.request(e,t,(function(e,t){e?
r(e):n(t)}))}))}),r,function(e){return function(t){var n=100*Math.pow(2,t)
+100*Math.random();return!(n>e)&&n}}(i))).then((function(e){return
n(null,e)})).catch((function(e){return n(e)}))},t.request=function(e,t,n){var
r,i,o,s={"Content-Type":"application/x-amz-json-1.1","X-Amz-
Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":(r=sp.category?"
"+sp.category:"",i=sp.framework?"
framework/"+sp.framework:"",""+sp.prototype.userAgent+r+i),"Cache-Control":"no-
store"},a=Object.assign({},this.fetchOptions,
{headers:s,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,a
).then((function(e){return o=e,e}),(function(e){if(e instanceof TypeError)throw new
Error("Network error");throw e})).then((function(e){return
e.json().catch((function(){return{}}))})).then((function(e){if(o.ok)return
n(null,e);var t=(e.__type||e.code).split("#").pop(),r=new Error(e.message||
e.Message||null);return r.name=t,r.code=t,n(r)})).catch((function(e)
{if(o&&o.headers&&o.headers.get("x-amzn-errortype"))try{var t=o.headers.get("x-
amzn-errortype").split(":")[0],r=new Error(o.status?
o.status.toString():null);return
r.code=t,r.name=t,r.statusCode=o.status,n(r)}catch(t){return n(e)}else e instanceof
Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)}))},e}
(),pp={debug:function(){}},gp=function(e){return e&&e.nonRetryable};function
mp(e,t,n,r){if(void 0===r&&(r=1),"function"!=typeof e)throw Error("functionToRetry
must be a function");return pp.debug(e.name+" attempt #"+r+" with args:
"+JSON.stringify(t)),e.apply(void 0,t).catch((function(i){if(pp.debug("error on
"+e.name,i),gp(i))throw pp.debug(e.name+" non retryable error",i),i;var
o=n(r,t,i);if(pp.debug(e.name+" retrying in "+o+" ms"),!1!==o)return new
Promise((function(e){return setTimeout(e,o)})).then((function(){return
mp(e,t,n,r+1)}));throw i}))}var vp=3e5,bp=function(){function e(e,t){var n=e||
{},r=n.UserPoolId,i=n.ClientId,o=n.endpoint,s=n.fetchOptions,a=n.AdvancedSecurityDa
taCollectionFlag;if(!r||!i)throw new Error("Both UserPoolId and ClientId are
required.");if(r.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw new
Error("Invalid UserPoolId format.");var c=r.split("_")
[0];this.userPoolId=r,this.clientId=i,this.client=new
fp(c,o,s),this.advancedSecurityDataCollectionFlag=!1!==a,this.storage=e.Storage||
(new rp).getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var
t=e.prototype;return t.getUserPoolId=function(){return
this.userPoolId},t.getUserPoolName=function(){return
this.getUserPoolId().split("_")[1]},t.getClientId=function(){return
this.clientId},t.signUp=function(e,t,n,r,i,o){var
s=this,a={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationD
ata:r,ClientMetadata:o};this.getUserContextData(e)&&(a.UserContextData=this.getUser
ContextData(e)),this.client.request("SignUp",a,(function(t,n){if(t)return
i(t,null);var r={Username:e,Pool:s,Storage:s.storage},o={user:new
op(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDel
iveryDetails};return i(null,o)}))},t.getCurrentUser=function(){var
e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.ge
tItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new
op(n)}return null},t.getUserContextData=function(e){if("undefined"!=typeof
AmazonCognitoAdvancedSecurityData){var
t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var
n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},
e}(),yp=n(28969),wp=function(){function e(e){if(void
0===e&&(e={}),e.domain&&(this.domain=e.domain),e.path?
this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?
this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"sec
ure")?this.secure=e.secure:this.secure=!
0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!
["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of
cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!
this.secure)throw new Error("sameSite = None requires the Secure attribute in
latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var
t=e.prototype;return t.setItem=function(e,t){var
n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};retur
n
this.sameSite&&(n.sameSite=this.sameSite),yp.set(e,t,n),yp.get(e)},t.getItem=functi
on(e){return yp.get(e)},t.removeItem=function(e){var
t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};retur
n this.sameSite&&(t.sameSite=this.sameSite),yp.remove(e,t)},t.clear=function()
{for(var e=yp.get(),t=Object.keys(e).length,n=0;n<t;+
+n)this.removeItem(Object.keys(e)[n]);return{}},e}(),_p=n(883),Ep=function(e){var
t=window.open(e,"_self");return t?
Promise.resolve(t):Promise.reject()},Sp=n(85604),Tp="undefined"!=typeof
Symbol&&"function"==typeof Symbol.for?
Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"):"@@INTERNAL_AWS_APPSYNC
_REALTIME_PUBSUB_PROVIDER",Ap="x-amz-user-agent",Cp=n(79387),Op="undefined"!=typeof
Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",xp=function(e,t,n)
{x.dispatch("auth",{event:e,data:t,message:n},"Auth",Op)},Ip=new
h("OAuth"),Pp=function(){function e(e){var
t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?
[]:r;if(this._urlOpener=t.urlOpener||Ep,this._config=t,this._cognitoClientId=n,!
this.isValidScopes(i))throw
Error("scopes must be a String Array");this._scopes=i}return
e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e)
{return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,r,i,o){void
0===e&&(e="code"),void 0===i&&(i=nf.Cognito);var s=this._generateState(32),a=o?
s+"-"+o.split("").map((function(e){return
e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e)
{window.sessionStorage.setItem("oauth_state",e)}(a);var
c,u=this._generateRandom(128);c=u,window.sessionStorage.setItem("ouath_pkce_key",c)
;var l=this._generateChallenge(u),h=this._scopes.join("
"),d=Object.entries(sf(sf({redirect_uri:n,response_type:e,client_id:r,identity_prov
ider:i,scope:h,state:a},"code"===e?{code_challenge:l}:{}),"code"===e?
{code_challenge_method:"S256"}:{})).map((function(e){var
t=uf(e,2),n=t[0],r=t[1];return encodeURIComponent(n)
+"="+encodeURIComponent(r)})).join("&"),f="https://"+t+"/oauth2/
authorize?"+d;Ip.debug("Redirecting to
"+f),this._urlOpener(f,n)},e.prototype._handleCodeFlow=function(e){return
af(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,h,d,f,p,g,m;return
cf(this,(function(v){switch(v.label){case 0:return t=((0,_p.Qc)
(e).query||"").split("&").map((function(e){return
e.split("=")})).reduce((function(e,t){var n,r=uf(t,2),i=r[0],o=r[1];return
sf(sf({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=(0,_p.Qc)
(e).pathname||"/",r=(0,_p.Qc)(this._config.redirectSignIn).pathname||"/",t&&n===r?
(i="https://"+this._config.domain+"/oauth2/token",xp("codeFlow",{},"Retrieving
tokens from "+i),o=hf(this._config)?
this._cognitoClientId:this._config.clientID,s=hf(this._config)?
this._config.redirectSignIn:this._config.redirectUri,b=window.sessionStorage.getIte
m("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),c=sf({grant_
type:"authorization_code",code:t,client_id:o,redirect_uri:s},(a=b)?
{code_verifier:a}:{}),Ip.debug("Calling token endpoint: "+i+"
with",c),u=Object.entries(c).map((function(e){var t=uf(e,2),n=t[0],r=t[1];return
encodeURIComponent(n)
+"="+encodeURIComponent(r)})).join("&"),l={category:Y.Auth,action:X.FederatedSignIn
},[4,fetch(i,{method:"POST",headers:(m={"Content-Type":"application/x-www-form-
urlencoded"},m[Ap]=un(l),m),body:u})]):[2];case 1:return[4,v.sent().json()];case
2:if(h=v.sent(),d=h.access_token,f=h.refresh_token,p=h.id_token,g=h.error)throw new
Error(g);return[2,{accessToken:d,refreshToken:f,idToken:p}]}var
b}))}))},e.prototype._handleImplicitFlow=function(e){return af(this,void 0,void 0,
(function(){var t,n,r;return cf(this,(function(i){return t=((0,_p.Qc)
(e).hash||"#").substr(1).split("&").map((function(e){return
e.split("=")})).reduce((function(e,t){var n,r=uf(t,2),i=r[0],o=r[1];return
sf(sf({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void
0}),n=t.id_token,r=t.access_token,xp("implicitFlow",{},"Got tokens from
"+e),Ip.debug("Retrieving implicit tokens from "+e+" with"),[2,
{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=
function(e){return af(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return
cf(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,5,,6]),t=e?sf(sf({},
((0,_p.Qc)(e).hash||"#").substr(1).split("&").map((function(e){return
e.split("=")})).reduce((function(e,t){var n=uf(t,2),r=n[0],i=n[1];return
e[r]=i,e}),{})),((0,_p.Qc)(e).query||"").split("&").map((function(e){return
e.split("=")})).reduce((function(e,t){var n=uf(t,2),r=n[0],i=n[1];return
e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return
i=this._validateState(t),Ip.debug("Starting "+this._config.responseType+" flow with
"+e),"code"!==this._config.responseType?[3,2]:(o=[{}],
[4,this._handleCodeFlow(e)]);case 1:return[2,sf.apply(void 0,[sf.apply(void
0,o.concat([c.sent()])),{state:i}])];case 2:return s=[{}],
[4,this._handleImplicitFlow(e)];case 3:return[2,sf.apply(void 0,[sf.apply(void
0,s.concat([c.sent()])),{state:i}])];case 4:return[3,6];case 5:throw
a=c.sent(),Ip.debug("Error handling auth response.",a),a;case
6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var
t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeIte
m("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth
flow");return r}},e.prototype.signOut=function(){return af(this,void 0,void 0,
(function(){var e,t,n;return cf(this,(function(r){return
e="https://"+this._config.domain+"/logout?",t=hf(this._config)?
this._cognitoClientId:this._config.oauth.clientID,n=hf(this._config)?
this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,l
ogout_uri:encodeURIComponent(n)}).map((function(e){var t=uf(e,2);return
t[0]+"="+t[1]})).join("&"),xp("oAuthSignOut",{oAuth:"signOut"},"Signing out from
"+e),Ip.debug("Signing out from "+e),
[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var
t="",n=e;n>0;--
n)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.round(61
*Math.random())];return t},e.prototype._generateChallenge=function(e){var t=new
Cp.Sha256;t.update(e);var
n=t.digestSync(),r=Sp.lW.from(n).toString("base64");return
this._base64URL(r)},e.prototype._base64URL=function(e){return
e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRand
om=function(e){var t=new Uint8Array(e);if("undefined"!=typeof
window&&window.crypto)window.crypto.getRandomValues(t);else for(var
n=0;n<e;n+=1)t[n]=66*Math.random()|0;return
this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var
t=[],n=0;n<e.byteLength;n+=1){var r=e[n]
%62;t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[r])}ret
urn t.join("")},e}();const Dp=Pp;var kp;!function(e){e.DEFAULT_MSG="Authentication
Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be
empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username
should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password
cannot be empty",e.EMPTY_CODE="Confirmation code cannot be
empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method
provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response
cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is
empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not
been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials
to sign in"}(kp||(kp={}));var Rp=new h("AuthError"),Mp=function(e){function t(n)
{var r=this,i=Lp[n],o=i.message,s=i.log;return(r=e.call(this,o)||
this).constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=s
||o,Rp.error(r.log),r}return tf(t,e),t}(Error),Np=function(e){function t(n){var
r=e.call(this,n)||this;return
r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}ret
urn tf(t,e),t}(Mp),Lp={noConfig:{message:kp.DEFAULT_MSG,log:"\n Error:
Amplify has not been configured correctly.\n This error is typically
caused by one of the following scenarios:\n\n 1. Make sure you're
passing the awsconfig object to Amplify.configure() in your app's entry point\n
See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for
more information\n \n 2. There might be multiple conflicting
versions of amplify packages in your node_modules.\n\t\t\t\tRefer to our docs site
for help upgrading Amplify packages
(https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n
"},missingAuthConfig:{message:kp.DEFAULT_MSG,log:"\n Error: Amplify has
not been configured correctly. \n The configuration object is missing
required auth properties.\n This error is typically caused by one of the
following scenarios:\n\n 1. Did you run `amplify push` after adding auth
via `amplify add auth`?\n See
https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more
information\n\n 2. This could also be caused by multiple conflicting
versions of amplify packages, see
(https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help
upgrading Amplify packages.\n "},emptyUsername:
{message:kp.EMPTY_USERNAME},invalidUsername:
{message:kp.INVALID_USERNAME},emptyPassword:{message:kp.EMPTY_PASSWORD},emptyCode:
{message:kp.EMPTY_CODE},signUpError:{message:kp.SIGN_UP_ERROR,log:"The first
parameter should either be non-null string or object"},noMFA:
{message:kp.NO_MFA},invalidMFA:{message:kp.INVALID_MFA},emptyChallengeResponse:
{message:kp.EMPTY_CHALLENGE},noUserSession:
{message:kp.NO_USER_SESSION},deviceConfig:{message:kp.DEVICE_CONFIG},networkError:
{message:kp.NETWORK_ERROR},autoSignInError:{message:kp.AUTOSIGNIN_ERROR},default:
{message:kp.DEFAULT_MSG}},Fp=new
h("AuthClass"),jp="aws.cognito.signin.user.admin",Bp="undefined"!=typeof
Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",Up=function(e,t,n)
{x.dispatch("auth",{event:e,data:t,message:n},"Auth",Bp)},Hp=function(){function
e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!
1,this.autoSignInInitiated=!
1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Creden
tials=Tn,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?
Up("tokenRefresh",void 0,"New token retrieved"):Up("tokenRefresh_failure",t,"Failed
to retrieve new
token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.
bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),x.lis
ten("auth",(function(e){switch(e.payload.event)
{case"verify":case"signIn":t._storage.setItem("amplify-signin-with-
hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-
hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-
hostedUI","true")}})),sp.category="auth",ap(an.framework),an.observeFrameworkChange
s(
(function(){ap(an.framework)}))}return e.prototype.getModuleName=function()
{return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return
this._config||{};Fp.debug("configure Auth");var
n=Object.assign({},this._config,D(e).Auth,e);this._config=n;var
r=this._config,i=r.userPoolId,o=r.userPoolWebClientId,s=r.cookieStorage,a=r.oauth,c
=r.region,u=r.identityPoolId,l=r.mandatorySignIn,h=r.refreshHandlers,d=r.identityPo
olRegion,f=r.clientMetadata,p=r.endpoint,g=r.storage;if(g){if(!
this._isValidAuthStorage(g))throw Fp.error("The storage in the Auth config is not
valid!"),new Error("Empty storage object");this._storage=g}else this._storage=s?new
wp(s):e.ssr?new wf:(new
N).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof
this._storage.sync&&(this._storageSync=this._storage.sync()),i){var
m={UserPoolId:i,ClientId:o,endpoint:p};m.Storage=this._storage,this.userPool=new
bp(m,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:l
,region:c,userPoolId:i,identityPoolId:u,refreshHandlers:h,storage:this._storage,ide
ntityPoolRegion:d});var v=a?hf(this._config.oauth)?a:a.awsCognito:void 0;if(v){var
b=Object.assign({cognitoClientId:o,UserPoolId:i,domain:v.domain,scopes:v.scope,redi
rectSignIn:v.redirectSignIn,redirectSignOut:v.redirectSignOut,responseType:v.respon
seType,Storage:this._storage,urlOpener:v.urlOpener,clientMetadata:f},v.options);thi
s._oAuthHandler=new
Dp({scopes:b.scopes,config:b,cognitoClientId:b.cognitoClientId});var y={};!
function(e){if(We().isBrowser&&window.location)!function(e){var n=e.url;y[n]||
(y[n]=!0,t._handleAuthResponse(n))}({url:window.location.href});else if(!
We().isNode)throw new Error("Not supported")}()}return Up("configured",null,"The
Auth category has been configured
successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem||
(this.isTrueStorageValue("amplify-polling-
started")&&(Up("autoSignIn_failure",null,rf.AutoSignInError),this._storage.removeIt
em("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-
started")),this._config},e.prototype.signUp=function(e){for(var
t,n,r,i=this,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(!
this.userPool)return this.rejectNoUserPool();var
a,c=null,u=null,l=[],h=null,d={enabled:!1},f={},p={};if(e&&"string"==typeof e)
{c=e,u=o?o[0]:null;var g=o?o[1]:null,m=o?o[2]:null;g&&l.push(new
ep({Name:"email",Value:g})),m&&l.push(new
ep({Name:"phone_number",Value:m}))}else{if(!e||"object"!=typeof e)return
this.rejectAuthError(rf.SignUpError);c=e.username,u=e.password,e&&e.clientMetadata?
a=e.clientMetadata:this._config.clientMetadata&&(a=this._config.clientMetadata);var
v=e.attributes;v&&Object.keys(v).map((function(e){l.push(new
ep({Name:e,Value:v[e]}))}));var
b=e.validationData;b&&(h=[],Object.keys(b).map((function(e){h.push(new
ep({Name:e,Value:b[e]}))}))),(d=null!==(t=e.autoSignIn)&&void 0!==t?t:{enabled:!
1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),f=null!
==(n=d.validationData)&&void 0!==n?n:{},p=null!==(r=d.clientMetaData)&&void 0!==r?
r:{})}return c?u?(Fp.debug("signUp attrs:",l),Fp.debug("signUp validation
data:",h),new Promise((function(e,t){i.userPool.signUp(c,u,l,h,(function(n,r){n?
(Up("signUp_failure",n,c+" failed to signup"),t(n)):(Up("signUp",r,c+" has signed
up
successfully"),d.enabled&&i.handleAutoSignIn(c,u,f,p,r),e(r))}),a)}))):this.rejectA
uthError(rf.EmptyPassword):this.rejectAuthError(rf.EmptyUsername)},e.prototype.hand
leAutoSignIn=function(e,t,n,r,i){this.autoSignInInitiated=!0;var o=new
_f({Username:e,Password:t,ValidationData:n,ClientMetadata:r});i.userConfirmed?
this.signInAfterUserConfirmed(o):"link"===this._config.signUpVerificationMethod?
this.handleLinkAutoSignIn(o):this.handleCodeAutoSignIn(o)},e.prototype.handleCodeAu
toSignIn=function(e){var t=this,n=function(r)
{"confirmSignUp"===r.payload.event&&t.signInAfterUserConfirmed(e,n)};x.listen("auth
",n)},e.prototype.handleLinkAutoSignIn=function(e){var
t=this;this._storage.setItem("amplify-polling-started","true");var
n=Date.now(),r=setInterval((function(){Date.now()-n>18e4?
(clearInterval(r),Up("autoSignIn_failure",null,"Please confirm your account and use
your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-
in")):t.signInAfterUserConfirmed(e,null,r)}),5e3)},e.prototype.signInAfterUserConfi
rmed=function(e,t,n){return af(this,void 0,void 0,(function(){var r,i,o=this;return
cf(this,(function(s){switch(s.label){case
0:r=this.createCognitoUser(e.getUsername()),s.label=1;case 1:return
s.trys.push([1,3,,4]),[4,r.authenticateUser(e,this.authCallbacks(r,(function(r)
{Up("autoSignIn",r,e.getUsername()+" has signed in
successfully"),t&&x.remove("auth",t),n&&(clearInterval(n),o._storage.removeItem("am
plify-polling-started")),o._storage.removeItem("amplify-auto-sign-in")}),
(function(e){Fp.error(e),o._storage.removeItem("amplify-auto-sign-in")})))];case
2:return s.sent(),[3,4];case 3:return i=s.sent(),Fp.error(i),[3,4];case
4:return[2]}}))}))},e.prototype.confirmSignUp=function(e,t,n){var r=this;if(!
this.userPool)return this.rejectNoUserPool();if(!e)return
this.rejectAuthError(rf.EmptyUsername);if(!t)return
this.rejectAuthError(rf.EmptyCode);var i,o=this.createCognitoUser(e),s=!
n||"boolean"!=typeof n.forceAliasCreation||n.forceAliasCreation;return
n&&n.clientMetadata?
i=n.clientMetadata:this._config.clientMetadata&&(i=this._config.clientMetadata),new
Promise((function(n,a){o.confirmRegistration(t,s,(function(t,i){t?a(t):
(Up("confirmSignUp",i,e+" has been confirmed
successfully"),r.isTrueStorageValue("amplify-auto-sign-in")&&!
r.autoSignInInitiated&&(Up("autoSignIn_failure",null,rf.AutoSignInError),r._storage
.removeItem("amplify-auto-sign-
in")),n(i))}),i)}))},e.prototype.isTrueStorageValue=function(e){var
t=this._storage.getItem(e);return!!
t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void
0===t&&(t=this._config.clientMetadata),!this.userPool)return
this.rejectNoUserPool();if(!e)return this.rejectAuthError(rf.EmptyUsername);var
n=this.createCognitoUser(e);return new Promise((function(e,r)
{n.resendConfirmationCode((function(t,n){t?
r(t):e(n)}),t)}))},e.prototype.signIn=function(e,t,n){if(void
0===n&&(n=this._config.clientMetadata),!this.userPool)return
this.rejectNoUserPool();var r=null,i=null,o={};if("string"==typeof
e)r=e,i=t;else{if(!e.username)return this.rejectAuthError(rf.InvalidUsername);void
0!==t&&Fp.warn("The password should be defined under the first parameter
object!"),r=e.username,i=e.password,o=e.validationData}if(!r)return
this.rejectAuthError(rf.EmptyUsername);var s=new
_f({Username:r,Password:i,ValidationData:o,ClientMetadata:n});return i?
this.signInWithPassword(s):this.signInWithoutPassword(s)},e.prototype.authCallbacks
=function(e,t,n){var r=this,i=this;return{onSuccess:function(o){return af(r,void
0,void 0,(function(){var r,s,a,c;return cf(this,(function(u){switch(u.label){case
0:Fp.debug(o),delete e.challengeName,delete e.challengeParam,u.label=1;case
1:return u.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return
u.sent(),[4,this.Credentials.set(o,"session")];case 3:return
r=u.sent(),Fp.debug("succeed to get cognito credentials",r),[3,9];case 4:return
s=u.sent(),Fp.debug("cannot get cognito credentials",s),[3,9];case 5:return
u.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return
a=u.sent(),i.user=a,Up("signIn",a,"A user "+e.getUsername()+" has been signed
in"),t(a),[3,8];case 7:return c=u.sent(),Fp.error("Failed to get the signed in
user",c),n(c),[3,8];case 8:return[7];case 9:return[2]}}))}))},onFailure:function(t)
{Fp.debug("signIn failure",t),Up("signIn_failure",t,e.getUsername()+" failed to
signin"),n(t)},customChallenge:function(n){Fp.debug("signIn custom challenge answer
required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:
function(n,r){Fp.debug("signIn MFA
required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r)
{Fp.debug("signIn mfa
setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n
,r){Fp.debug("signIn new
password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes
:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){Fp.debug("signIn
totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,
r){Fp.debug("signIn
selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWi
thPassword=function(e){var t=this;if(this.pendingSignIn)throw new Error("Pending
sign-in attempt already in progress");var
n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new
Promise((function(r,i){n.authenticateUser(e,t.authCallbacks(n,(function(e)
{t.pendingSignIn=null,r(e)}),(function(e)
{t.pendingSignIn=null,i(e)})))})),this.pendingSignIn},e.prototype.signInWithoutPass
word=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return
n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(r,i)
{n.initiateAuth(e,t.authCallbacks(n,r,i))}))},e.prototype.getMFAOptions=function(e)
{return new Promise((function(t,n){e.getMFAOptions((function(e,r){if(e)return
Fp.debug("get MFA Options failed",e),void n(e);Fp.debug("get MFA options
success",r),t(r)}))}))},e.prototype.getPreferredMFA=function(e,t){var
n=this,r=this;return new Promise((function(i,o){var s=n._config.clientMetadata,a=!!
t&&t.bypassCache;e.getUserData((function(t,s){return af(n,void 0,void 0,(function()
{var n,a;return cf(this,(function(c){switch(c.label){case 0:if(!
t)return[3,5];if(Fp.debug("getting preferred mfa failed",t),!
this.isSessionInvalid(t))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(e)];case 2:return c.sent(),[3,4];case 3:return
n=c.sent(),o(new Error("Session is invalid due to: "+t.message+" and failed to
clean up invalid session: "+n.message)),[2];case 4:return o(t),[2];case
5:return(a=r._getMfaTypeFromUserData(s))?(i(a),[2]):(o("invalid MFA Type"),
[2])}}))}))}),
{bypassCache:a,clientMetadata:s})}))},e.prototype._getMfaTypeFromUserData=function(
e){var
t=null,n=e.PreferredMfaSetting;if(n)t=n;else{var r=e.UserMFASettingList;r?
0===r.length?t="NOMFA":Fp.debug("invalid case for
getPreferredMFA",e):t=e.MFAOptions?"SMS_MFA":"NOMFA"}return
t},e.prototype._getUserData=function(e,t){var n=this;return new
Promise((function(r,i){e.getUserData((function(t,o){return af(n,void 0,void 0,
(function(){var n;return cf(this,(function(s){switch(s.label){case 0:if(!
t)return[3,5];if(Fp.debug("getting user data failed",t),!
this.isSessionInvalid(t))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(e)];case 2:return s.sent(),[3,4];case 3:return
n=s.sent(),i(new Error("Session is invalid due to: "+t.message+" and failed to
clean up invalid session: "+n.message)),[2];case 4:return i(t),[2];case
5:r(o),s.label=6;case
6:return[2]}}))}))}),t)}))},e.prototype.setPreferredMFA=function(e,t){return
af(this,void 0,void 0,(function(){var n,r,i,o,s,a,c=this;return cf(this,
(function(u){switch(u.label){case 0:return n=this._config.clientMetadata,
[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case
1:switch(r=u.sent(),i=null,o=null,t)
{case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3
];case"NOMFA":return[3,4]}return[3,6];case 2:return o={PreferredMfa:!0,Enabled:!0},
[3,7];case 3:return i={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return
s=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case
5:if("NOMFA"===(a=u.sent()))return[2,Promise.resolve("No change for mfa
type")];if("SMS_MFA"===a)i={PreferredMfa:!1,Enabled:!
1};else{if("SOFTWARE_TOKEN_MFA"!
==a)return[2,this.rejectAuthError(rf.InvalidMFA)];o={PreferredMfa:!1,Enabled:!
1}}return s&&0!==s.length&&s.forEach((function(e){"SMS_MFA"===e?i={PreferredMfa:!
1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(o={PreferredMfa:!1,Enabled:!1})})),
[3,7];case 6:return Fp.debug("no validmfa method provided"),
[2,this.rejectAuthError(rf.NoMFA)];case 7:return[2,new Promise((function(t,r)
{e.setUserMfaPreference(i,o,(function(i,o){if(i)return Fp.debug("Set user mfa
preference error",i),r(i);Fp.debug("Set user mfa success",o),Fp.debug("Caching the
latest user data into local"),e.getUserData((function(n,i){return af(c,void 0,void
0,(function(){var i;return cf(this,(function(s){switch(s.label){case 0:if(!
n)return[3,5];if(Fp.debug("getting user data failed",n),!
this.isSessionInvalid(n))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(e)];case 2:return s.sent(),[3,4];case 3:return
i=s.sent(),r(new Error("Session is invalid due to: "+n.message+" and failed to
clean up invalid session: "+i.message)),[2];case 4:return[2,r(n)];case
5:return[2,t(o)]}}))}))}),{bypassCache:!
0,clientMetadata:n})}))}))]}}))}))},e.prototype.disableSMS=function(e){return new
Promise((function(t,n){e.disableMFA((function(e,r){if(e)return Fp.debug("disable
mfa failed",e),void n(e);Fp.debug("disable mfa
succeed",r),t(r)}))}))},e.prototype.enableSMS=function(e){return new
Promise((function(t,n){e.enableMFA((function(e,r){if(e)return Fp.debug("enable mfa
failed",e),void n(e);Fp.debug("enable mfa
succeed",r),t(r)}))}))},e.prototype.setupTOTP=function(e){return new
Promise((function(t,n){e.associateSoftwareToken({onFailure:function(e)
{Fp.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e)
{Fp.debug("associateSoftwareToken
success",e),t(e)}})}))},e.prototype.verifyTotpToken=function(e,t){var
n;Fp.debug("verification totp token",e,t),e&&"function"==typeof
e.getSignInUserSession&&(n=e.getSignInUserSession());var r=null==n?void
0:n.isValid();return new Promise((function(n,i){e.verifySoftwareToken(t,"My TOTP
device",{onFailure:function(e){Fp.debug("verifyTotpToken
failed",e),i(e)},onSuccess:function(t){r||Up("signIn",e,"A user "+e.getUsername()+"
has been signed in"),Up("verify",e,"A user "+e.getUsername()+" has been
verified"),Fp.debug("verifyTotpToken
success",t),n(t)}})}))},e.prototype.confirmSignIn=function(e,t,n,r){var
i=this;if(void 0===r&&(r=this._config.clientMetadata),!t)return
this.rejectAuthError(rf.EmptyCode);var o=this;return new Promise((function(s,a)
{e.sendMFACode(t,{onSuccess:function(t){return af(i,void 0,void 0,(function(){var
n,r,i,a;return cf(this,(function(c){switch(c.label){case
0:Fp.debug(t),c.label=1;case 1:return c.trys.push([1,4,5,10]),
[4,this.Credentials.clear()];case 2:return c.sent(),
[4,this.Credentials.set(t,"session")];case 3:return n=c.sent(),Fp.debug("succeed to
get cognito credentials",n),[3,10];case 4:return r=c.sent(),Fp.debug("cannot get
cognito credentials",r),[3,10];case 5:o.user=e,c.label=6;case 6:return
c.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return
i=c.sent(),e.attributes=i.attributes,[3,9];case 8:return
a=c.sent(),Fp.debug("cannot get updated Cognito User",a),[3,9];case 9:return
Up("signIn",e,"A user "+e.getUsername()+" has been signed in"),s(e),[7];case
10:return[2]}}))}))},onFailure:function(e){Fp.debug("confirm signIn
failure",e),a(e)}},n,r)}))},e.prototype.completeNewPassword=function(e,t,n,r){var
i=this;if(void 0===n&&(n={}),void 0===r&&(r=this._config.clientMetadata),!t)return
this.rejectAuthError(rf.EmptyPassword);var o=this;return new Promise((function(s,a)
{e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return af(i,void 0,void
0,(function(){var n,r;return cf(this,(function(i){switch(i.label){case
0:Fp.debug(t),i.label=1;case 1:return i.trys.push([1,4,5,6]),
[4,this.Credentials.clear()];case 2:return i.sent(),
[4,this.Credentials.set(t,"session")];case 3:return n=i.sent(),Fp.debug("succeed to
get cognito credentials",n),[3,6];case 4:return r=i.sent(),Fp.debug("cannot get
cognito credentials",r),[3,6];case 5:return o.user=e,Up("signIn",e,"A user
"+e.getUsername()+" has been signed in"),s(e),[7];case
6:return[2]}}))}))},onFailure:function(e){Fp.debug("completeNewPassword
failure",e),Up("completeNewPassword_failure",e,i.user+" failed to complete the new
password flow"),a(e)},mfaRequired:function(t,n){Fp.debug("signIn MFA
required"),e.challengeName=t,e.challengeParam=n,s(e)},mfaSetup:function(t,n)
{Fp.debug("signIn mfa
setup",t),e.challengeName=t,e.challengeParam=n,s(e)},totpRequired:function(t,n)
{Fp.debug("signIn mfa
setup",t),e.challengeName=t,e.challengeParam=n,s(e)}},r)}))},e.prototype.sendCustom
ChallengeAnswer=function(e,t,n){var r=this;return void
0===n&&(n=this._config.clientMetadata),this.userPool?t?new Promise((function(i,o)
{e.sendCustomChallengeAnswer(t,r.authCallbacks(e,i,o),n)})):this.rejectAuthError(rf
.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=
function(e,t){var n=this;return new Promise((function(r,i)
{n.userSession(e).then((function(n){e.deleteAttributes(t,(function(e,t){return e?
i(e):r(t)}))}))}))},e.prototype.deleteUser=function(){return af(this,void 0,void 0,
(function(){var e,t,n=this;return cf(this,(function(r){switch(r.label){case
0:return r.trys.push([0,2,,3]),[4,this._storageSync];case 1:return r.sent(),
[3,3];case 2:throw e=r.sent(),Fp.debug("Failed to sync cache info into
memory",e),new Error(e);case 3:return
t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-
hostedUI"),[2,new Promise((function(e,r){return af(n,void 0,void 0,(function(){var
n,i=this;return cf(this,(function(o){if(this.userPool){if(!
(n=this.userPool.getCurrentUser()))return Fp.debug("Failed to get user from user
pool"),[2,r(new Error("No current user."))];n.getSession((function(o,s){return
af(i,void 0,void 0,(function(){var i,s=this;return cf(this,(function(a)
{switch(a.label){case 0:if(!o)return[3,5];if(Fp.debug("Failed to get the user
session",o),!this.isSessionInvalid(o))return[3,4];a.label=1;case 1:return
a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return a.sent(),
[3,4];case 3:return i=a.sent(),r(new Error("Session is invalid due to:
"+o.message+" and failed to clean up invalid session: "+i.message)),[2];case
4:return[2,r(o)];case 5:n.deleteUser((function(i,o)
{if(i)r(i);else{Up("userDeleted",o,"The authenticated user has been
deleted."),n.signOut(),s.user=null;try{s.cleanCachedItems()}catch(e)
{Fp.debug("failed to clear cached items")}t?s.oAuthSignOutRedirect(e,r):
(Up("signOut",s.user,"A user has been signed out"),e(o))}})),a.label=6;case
6:return[2]}}))}))}))}else Fp.debug("no Congito User pool"),r(new Error("Cognito
User pool does not
exist"));return[2]}))}))}))]}}))}))},e.prototype.updateUserAttributes=function(e,t,
n){var r=this;void 0===n&&(n=this._config.clientMetadata);var i=[],o=this;return
new Promise((function(s,a){o.userSession(e).then((function(o){for(var c in
t)if("sub"!==c&&c.indexOf("_verified")<0){var
u={Name:c,Value:t[c]};i.push(u)}e.updateAttributes(i,(function(e,n,i){if(e)return
Up("updateUserAttributes_failure",e,"Failed to update attributes"),a(e);var
o=r.createUpdateAttributesResultList(t,null==i?void
0:i.CodeDeliveryDetailsList);return Up("updateUserAttributes",o,"Attributes
successfully
updated"),s(n)}),n)}))}))},e.prototype.createUpdateAttributesResultList=function(e,
t){var n={};return Object.keys(e).forEach((function(e){n[e]={isUpdated:!0};var
r=null==t?void 0:t.find((function(t){return
t.AttributeName===e}));r&&(n[e].isUpdated=!
1,n[e].codeDeliveryDetails=r)})),n},e.prototype.userAttributes=function(e){var
t=this;return new Promise((function(n,r){t.userSession(e).then((function(t)
{e.getUserAttributes((function(e,t){e?
r(e):n(t)}))}))}))},e.prototype.verifiedContact=function(e){var t=this;return
this.userAttributes(e).then((function(e){var
n=t.attributesToObject(e),r={},i={};return n.email&&(n.email_verified?
i.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?
i.phone_number=n.phone_number:r.phone_number=n.phone_number),
{verified:i,unverified:r}}))},e.prototype.isErrorWithMessage=function(e)
{return"object"==typeof
e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedErr
or=function(e){return this.isErrorWithMessage(e)&&"Access Token has been
revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return
this.isErrorWithMessage(e)&&"Refresh Token has been
revoked"===e.message},e.prototype.isUserDisabledError=function(e){return
this.isErrorWithMessage(e)&&"User is
disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return
this.isErrorWithMessage(e)&&"User does not
exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return
this.isErrorWithMessage(e)&&"Refresh Token has
expired"===e.message},e.prototype.isPasswordResetRequiredError=function(e){return
this.isErrorWithMessage(e)&&"Password reset required for the
user"===e.message},e.prototype.isSignedInHostedUI=function(){return
this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-
hostedUI")},e.prototype.isSessionInvalid=function(e){return
this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||
this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||
this.isRefreshTokenExpiredError(e)||
this.isPasswordResetRequiredError(e)},e.prototype.cleanUpInvalidSession=function(e)
{return af(this,void 0,void 0,(function(){var t=this;return cf(this,(function(n)
{switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return
n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case
3:return n.sent(),Fp.debug("failed to clear cached items"),[3,4];case 4:return
this.isSignedInHostedUI()?[2,new Promise((function(e,n)
{t.oAuthSignOutRedirect(e,n)}))]:(Up("signOut",this.user,"A user has been signed
out"),[2])}}))}))},e.prototype.currentUserPoolUser=function(e){var t=this;return
this.userPool?new Promise((function(n,r){t._storageSync.then((function(){return
af(t,void 0,void 0,(function(){var t,i,o,s,a,c,u=this;return cf(this,(function(l)
{switch(l.label){case 0:return this.isOAuthInProgress()?(Fp.debug("OAuth signIn in
progress, waiting for resolution..."),[4,new Promise((function(e){var
t=setTimeout((function(){Fp.debug("OAuth signIn in progress
timeout"),x.remove("auth",n),e()}),1e4);function n(r){var
i=r.payload.event;"cognitoHostedUI"!==i&&"cognitoHostedUI_failure"!==i||
(Fp.debug("OAuth signIn resolved:
"+i),clearTimeout(t),x.remove("auth",n),e())}x.listen("auth",n)}))]):[3,2];case
1:l.sent(),l.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return
Fp.debug("Failed to get user from user pool"),r("No current user"),
[2];l.label=3;case 3:return l.trys.push([3,7,,8]),[4,this._userSession(t)];case
4:return i=l.sent(),(o=!!e&&e.bypassCache)?[4,this.Credentials.clear()]:[3,6];case
5:l.sent(),l.label=6;case 6:return s=this._config.clientMetadata,(void
0===(a=i.getAccessToken().decodePayload().scope)?"":a).split(" ").includes(jp)?
(t.getUserData((function(e,i){return af(u,void 0,void 0,(function(){var
o,s,a,c,u,l,h;return cf(this,(function(d){switch(d.label){case 0:if(!
e)return[3,7];if(Fp.debug("getting user data failed",e),!
this.isSessionInvalid(e))return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(t)];case 2:return d.sent(),[3,4];case 3:return
o=d.sent(),r(new Error("Session is invalid due to: "+e.message+" and failed to
clean up invalid session: "+o.message)),[2];case 4:return r(e),[3,6];case
5:n(t),d.label=6;case 6:return[2];case
7:for(s=i.PreferredMfaSetting||"NOMFA",a=[],c=0;c<i.UserAttributes.length;c+
+)u={Name:i.UserAttributes[c].Name,Value:i.UserAttributes[c].Value},l=new
ep(u),a.push(l);return h=this.attributesToObject(a),Object.assign(t,
{attributes:h,preferredMFA:s}),[2,n(t)]}}))}))}),{bypassCache:o,clientMetadata:s}),
[3,8]):(Fp.debug("Unable to get the user data because the "+jp+" is not in the
scopes of the access token"),[2,n(t)]);case 7:return c=l.sent(),r(c),[3,8];case
8:return[2]}}))}))})).catch((function(e){return Fp.debug("Failed to sync cache info
into
memory",e),r(e)}))})):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=functi
on(){return
this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return
af(this,void 0,void 0,(function(){var t,n,r,i,o;return cf(this,(function(s)
{switch(s.label){case 0:Fp.debug("getting current authenticated
user"),t=null,s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,this._storageSync];case 2:return s.sent(),[3,4];case 3:throw
n=s.sent(),Fp.debug("Failed to sync cache info into memory",n),n;case
4:try{(r=JSON.parse(this._storage.getItem("aws-amplify-
federatedInfo")))&&(t=sf(sf({},r.user),{token:r.token}))}catch(e){Fp.debug("cannot
load federated user from auth storage")}return t?(this.user=t,Fp.debug("get current
authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Fp.debug("get
current authenticated userpool user"),i=null,s.label=6;case 6:return
s.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return i=s.sent(),
[3,9];case 8:return"No userPool"===(o=s.sent())&&Fp.error("Cannot get the current
user because the user pool is missing. Please make sure the Auth module is
configured with a valid Cognito User Pool ID"),Fp.debug("The user is not
authenticated by the error",o),[2,Promise.reject("The user is not
authenticated")];case 9:return this.user=i,
[2,this.user]}}))}))},e.prototype.currentSession=function(){var e=this;return
Fp.debug("Getting current session"),this.userPool?new Promise((function(t,n)
{e.currentUserPoolUser().then((function(r){e.userSession(r).then((function(e)
{t(e)})).catch((function(e){Fp.debug("Failed to get the current
session",e),n(e)}))})).catch((function(e){Fp.debug("Failed to get the current
user",e),n(e)}))})):Promise.reject(new Error("No User Pool in the
configuration."))},e.prototype._userSession=function(e){return af(this,void 0,void
0,(function(){var t,n,r=this;return cf(this,(function(i){switch(i.label){case
0:if(!e)return Fp.debug("the user is null"),
[2,this.rejectAuthError(rf.NoUserSession)];t=this._config.clientMetadata,0===this.i
nflightSessionPromiseCounter&&(this.inflightSessionPromise=new
Promise((function(n,i){e.getSession((function(t,o){return af(r,void 0,void 0,
(function(){var r;return cf(this,(function(s){switch(s.label){case 0:if(!
t)return[3,5];if(Fp.debug("Failed to get the session from user",e),!
this.isSessionInvalid(t))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(e)];case 2:return s.sent(),[3,4];case 3:return
r=s.sent(),i(new Error("Session is invalid due to: "+t.message+" and failed to
clean up invalid session: "+r.message)),[2];case 4:return i(t),[2];case 5:return
Fp.debug("Succeed to get the user session",o),n(o),[2]}}))}))}),
{clientMetadata:t})}))),this.inflightSessionPromiseCounter++,i.label=1;case
1:return i.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return
n=i.sent(),e.signInUserSession=n,[2,n];case 3:return
this.inflightSessionPromiseCounter--,[7];case
4:return[2]}}))}))},e.prototype.userSession=function(e){return
this._userSession(e)},e.prototype.currentUserCredentials=function(){return
af(this,void 0,void 0,(function(){var e,t,n=this;return cf(this,(function(r)
{switch(r.label){case 0:Fp.debug("Getting current user credentials"),r.label=1;case
1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),
[3,4];case 3:throw e=r.sent(),Fp.debug("Failed to sync cache info into
memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-
federatedInfo"))}catch(e){Fp.debug("failed to get or parse item aws-amplify-
federatedInfo",e)}return t?[2,this.Credentials.refreshFederatedToken(t)]:
[2,this.currentSession().then((function(e){return Fp.debug("getting session
success",e),n.Credentials.set(e,"session")})).catch((function(){return
Fp.debug("getting guest
credentials"),n.Credentials.set(null,"guest")}))]}}))}))},e.prototype.currentCreden
tials=function(){return Fp.debug("getting current
credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(e,t,
n){return void 0===n&&(n=this._config.clientMetadata),new Promise((function(r,i)
{e.getAttributeVerificationCode(t,{onSuccess:function(e){return
r(e)},onFailure:function(e){return
i(e)}},n)}))},e.prototype.verifyUserAttributeSubmit=function(e,t,n){return n?new
Promise((function(r,i){e.verifyAttribute(t,n,{onSuccess:function(e)
{r(e)},onFailure:function(e)
{i(e)}})})):this.rejectAuthError(rf.EmptyCode)},e.prototype.verifyCurrentUserAttrib
ute=function(e){var t=this;return t.currentUserPoolUser().then((function(n){return
t.verifyUserAttribute(n,e)}))},e.prototype.verifyCurrentUserAttributeSubmit=functio
n(e,t){var n=this;return n.currentUserPoolUser().then((function(r){return
n.verifyUserAttributeSubmit(r,e,t)}))},e.prototype.cognitoIdentitySignOut=function(
e,t){return af(this,void 0,void 0,(function(){var n,r,i=this;return cf(this,
(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),
[4,this._storageSync];case 1:return o.sent(),[3,3];case 2:throw
n=o.sent(),Fp.debug("Failed to sync cache info into memory",n),n;case 3:return
r=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-
hostedUI"),[2,new Promise((function(n,o){if(e&&e.global){Fp.debug("user global sign
out",t);var s=i._config.clientMetadata;t.getSession((function(e,s){return af(i,void
0,void 0,(function(){var i,s=this;return cf(this,(function(a){switch(a.label){case
0:if(!e)return[3,5];if(Fp.debug("failed to get the user session",e),!
this.isSessionInvalid(e))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),
[4,this.cleanUpInvalidSession(t)];case 2:return a.sent(),[3,4];case 3:return
i=a.sent(),o(new Error("Session is invalid due to: "+e.message+" and failed to
clean up invalid session: "+i.message)),[2];case 4:return[2,o(e)];case 5:return
t.globalSignOut({onSuccess:function(e){if(Fp.debug("global sign out success"),!
r)return n();s.oAuthSignOutRedirect(n,o)},onFailure:function(e){return
Fp.debug("global sign out failed",e),o(e)}}),[2]}}))}))}),{clientMetadata:s})}else
Fp.debug("user sign out",t),t.signOut((function(){if(!r)return
n();i.oAuthSignOutRedirect(n,o)}))}))]}}))}))},e.prototype.oAuthSignOutRedirect=fun
ction(e,t){We().isBrowser?
this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oA
uthSignOutAndResolve=function(e){this._oA
uthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e)
{this._oAuthHandler.signOut(),setTimeout((function(){return e(Error("Signout
timeout fail"))}),3e3)},e.prototype.signOut=function(e){return void
0===e&&(e={}),af(this,void 0,void 0,(function(){var t,n;return cf(this,(function(r)
{switch(r.label){case 0:return r.trys.push([0,2,,3]),
[4,this.cleanCachedItems()];case 1:return r.sent(),[3,3];case 2:return
r.sent(),Fp.debug("failed to clear cached items"),[3,3];case 3:if(!
this.userPool)return[3,11];r.label=4;case 4:return r.trys.push([4,6,,7]),
[4,this._storageSync];case 5:return r.sent(),[3,7];case 6:throw
t=r.sent(),Fp.debug("Failed to sync cache info into memory",t),t;case
7:return(n=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(e,n)]:
[3,9];case 8:return r.sent(),[3,10];case 9:Fp.debug("no current Cognito
user"),r.label=10;case 10:return[3,12];case 11:Fp.debug("no Cognito User
pool"),r.label=12;case 12:return Up("signOut",this.user,"A user has been signed
out"),this.user=null,[2]}}))}))},e.prototype.cleanCachedItems=function(){return
af(this,void 0,void 0,(function(){return cf(this,(function(e){switch(e.label){case
0:return[4,this.Credentials.clear()];case 1:return e.sent(),
[2]}}))}))},e.prototype.changePassword=function(e,t,n,r){var i=this;return void
0===r&&(r=this._config.clientMetadata),new Promise((function(o,s)
{i.userSession(e).then((function(i){e.changePassword(t,n,(function(e,t){return e?
(Fp.debug("change password
failure",e),s(e)):o(t)}),r)}))}))},e.prototype.forgotPassword=function(e,t){if(void
0===t&&(t=this._config.clientMetadata),!this.userPool)return
this.rejectNoUserPool();if(!e)return this.rejectAuthError(rf.EmptyUsername);var
n=this.createCognitoUser(e);return new Promise((function(r,i)
{n.forgotPassword({onSuccess:function(){r()},onFailure:function(t){Fp.debug("forgot
password failure",t),Up("forgotPassword_failure",t,e+" forgotPassword
failed"),i(t)},inputVerificationCode:function(t){Up("forgotPassword",n,e+" has
initiated forgot password
flow"),r(t)}},t)}))},e.prototype.forgotPasswordSubmit=function(e,t,n,r){if(void
0===r&&(r=this._config.clientMetadata),!this.userPool)return
this.rejectNoUserPool();if(!e)return this.rejectAuthError(rf.EmptyUsername);if(!
t)return this.rejectAuthError(rf.EmptyCode);if(!n)return
this.rejectAuthError(rf.EmptyPassword);var i=this.createCognitoUser(e);return new
Promise((function(o,s){i.confirmPassword(t,n,{onSuccess:function(t)
{Up("forgotPasswordSubmit",i,e+" forgotPasswordSubmit
successful"),o(t)},onFailure:function(t){Up("forgotPasswordSubmit_failure",t,e+"
forgotPasswordSubmit failed"),s(t)}},r)}))},e.prototype.currentUserInfo=function()
{return af(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return cf(this,
(function(a){switch(a.label){case
0:return(e=this.Credentials.getCredSource())&&"aws"!==e&&"userPool"!==e?[3,9]:
[4,this.currentUserPoolUser().catch((function(e){return Fp.error(e)}))];case 1:if(!
(s=a.sent()))return[2,null];a.label=2;case 2:return a.trys.push([2,8,,9]),
[4,this.userAttributes(s)];case
3:t=a.sent(),n=this.attributesToObject(t),r=null,a.label=4;case 4:return
a.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return r=a.sent(),
[3,7];case 6:return i=a.sent(),Fp.debug("Failed to retrieve credentials while
getting current user info",i),[3,7];case 7:return[2,{id:r?r.identityId:void
0,username:s.getUsername(),attributes:n}];case 8:return
o=a.sent(),Fp.error("currentUserInfo error",o),[2,{}];case 9:return"federated"===e?
[2,(s=this.user)||{}]:[2]}}))}))},e.prototype.federatedSignIn=function(e,t,n)
{return af(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,h,d,f;return cf(this,
(function(p){switch(p.label){case 0:if(!this._config.identityPoolId&&!
this._config.userPoolId)throw new Error("Federation requires either a User Pool or
Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!
this._config.userPoolId)throw new Error("Federation with Identity Pools requires
tokens passed as arguments");return lf(e)||
(g=e)&&["customProvider"].find((function(e){return g.hasOwnProperty(e)}))||
function(e){return e&&!!["customState"].find((function(t){return
e.hasOwnProperty(t)}))}(e)||void 0===e?(r=e||{provider:nf.Cognito},a=lf(r)?
r.provider:r.customProvider,lf(r),i=r.customState,this._config.userPoolId&&(o=hf(th
is._config.oauth)?
this._config.userPoolWebClientId:this._config.oauth.clientID,s=hf(this._config.oaut
h)?
this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler
.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,s,o,a,i)),
[3,4]):[3,1];case
1:a=e;try{(c=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-
federatedInfo")).user))&&Fp.warn("There is already a signed in user: "+c+" in your
app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn
method again as it may cause unexpected behavior.")}catch(e){}return
u=t.token,l=t.identity_id,h=t.expires_at,
[4,this.Credentials.set({provider:a,token:u,identity_id:l,user:n,expires_at:h},"fed
eration")];case 2:return d=p.sent(),[4,this.currentAuthenticatedUser()];case
3:return f=p.sent(),Up("signIn",f,"A user "+f.username+" has been signed
in"),Fp.debug("federated sign in credentials",d),[2,d];case 4:return[2]}var
g}))}))},e.prototype._handleAuthResponse=function(e){return af(this,void 0,void 0,
(function(){var t,n,r,i,o,s,a,c,u,l,h,d,f,p;return cf(this,(function(g)
{switch(g.label){case 0:if(this.oAuthFlowInProgress)return Fp.debug("Skipping URL
"+e+" current flow in progress"),[2];g.label=1;case
1:if(g.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!
this._config.userPoolId)throw new Error("OAuth responses require a User Pool
defined in config");if(Up("parsingCallbackUrl",{url:e},"The callback url is being
parsed"),t=e||(We().isBrowser?window.location.href:""),n=!!((0,_p.Qc)
(t).query||"").split("&").map((function(e){return e.split("=")})).find((function(e)
{var t=uf(e,1)[0];return"code"===t||"error"===t})),r=!!((0,_p.Qc)
(t).hash||"#").substr(1).split("&").map((function(e){return
e.split("=")})).find((function(e){var t=uf(e,1)
[0];return"access_token"===t||"error"===t})),!n&&!
r)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-
ui","true"),g.label=2;case 2:return g.trys.push([2,6,,7]),
[4,this._oAuthHandler.handleAuthResponse(t)];case 3:return
i=g.sent(),o=i.accessToken,s=i.idToken,a=i.refreshToken,c=i.state,u=new
Qf({IdToken:new qf({IdToken:s}),RefreshToken:new
Kf({RefreshToken:a}),AccessToken:new Vf({AccessToken:o})}),l=void
0,this._config.identityPoolId?[4,this.Credentials.set(u,"session")]:[3,5];case
4:l=g.sent(),Fp.debug("AWS credentials",l),g.label=5;case 5:return h=/-/.test(c),
(d=this.createCognitoUser(u.getIdToken().decodePayload()
["cognito:username"])).setSignInUserSession(u),window&&void 0!
==window.history&&window.history.replaceState(window.history.state,"",this._config.
oauth.redirectSignIn),Up("signIn",d,"A user "+d.getUsername()+" has been signed
in"),Up("cognitoHostedUI",d,"A user "+d.getUsername()+" has been signed in via
Cognito Hosted
UI"),h&&(f=c.split("-").splice(1).join("-"),Up("customOAuthState",f.match(/.{2}/
g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""),"State
for user "+d.getUsername())),[2,l];case 6:return p=g.sent(),Fp.debug("Error in
cognito hosted auth response",p),window&&void 0!
==window.history&&window.history.replaceState(window.history.state,"",this._config.
oauth.redirectSignIn),Up("signIn_failure",p,"The OAuth response flow
failed"),Up("cognitoHostedUI_failure",p,"A failure occurred when returning to the
Cognito Hosted UI"),Up("customState_failure",p,"A failure occurred when returning
state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case
9:return[2]}}))}))},e.prototype.essentialCredentials=function(e)
{return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.sec
retAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.at
tributesToObject=function(e){var t=this,n={};return e&&e.map((function(e)
{"email_verified"===e.Name||"phone_number_verified"===e.Name?
n[e.Name]=t.isTruthyString(e.Value)||!
0===e.Value:n[e.Name]=e.Value})),n},e.prototype.isTruthyString=function(e)
{return"function"==typeof
e.toLowerCase&&"true"===e.toLowerCase()},e.prototype.createCognitoUser=function(e)
{var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var
n=this._config.authenticationFlowType,r=new op(t);return
n&&r.setAuthenticationFlowType(n),r},e.prototype._isValidAuthStorage=function(e)
{return!!e&&"function"==typeof e.getItem&&"function"==typeof
e.setItem&&"function"==typeof e.removeItem&&"function"==typeof
e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||
e.userPoolId&&e.identityPoolId?
rf.NoConfig:rf.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return
Promise.reject(new Mp(e))},e.prototype.rejectNoUserPool=function(){var
e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new
Np(e))},e.prototype.rememberDevice=function(){return af(this,void 0,void 0,
(function(){var e,t;return cf(this,(function(n){switch(n.label){case 0:return
n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),
[3,3];case 2:return t=n.sent(),Fp.debug("The user is not authenticated by the
error",t),[2,Promise.reject("The user is not authenticated")];case 3:return
e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n)
{e.setDeviceStatusRemembered({onSuccess:function(e){t(e)},onFailure:function(e)
{"InvalidParameterException"===e.code?n(new
Mp(rf.DeviceConfig)):"NetworkError"===e.code?n(new
Mp(rf.NetworkError)):n(e)}})}))]}}))}))},e.prototype.forgetDevice=function(){return
af(this,void 0,void 0,(function(){var e,t;return cf(this,(function(n)
{switch(n.label){case 0:return n.trys.push([0,2,,3]),
[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return
t=n.sent(),Fp.debug("The user is not authenticated by
the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return
e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n)
{e.forgetDevice({onSuccess:function(e){t(e)},onFailure:function(e)
{"InvalidParameterException"===e.code?n(new
Mp(rf.DeviceConfig)):"NetworkError"===e.code?n(new
Mp(rf.NetworkError)):n(e)}})}))]}}))}))},e.prototype.fetchDevices=function(){return
af(this,void 0,void 0,(function(){var e,t;return cf(this,(function(n)
{switch(n.label){case 0:return n.trys.push([0,2,,3]),
[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:throw
t=n.sent(),Fp.debug("The user is not authenticated by the error",t),new Error("The
user is not authenticated");case 3:return e.getCachedDeviceKeyAndPassword(),[2,new
Promise((function(t,n){var r={onSuccess:function(e){var
n=e.Devices.map((function(e){var t=e.DeviceAttributes.find((function(e)
{return"device_name"===e.Name}))||
{};return{id:e.DeviceKey,name:t.Value}}));t(n)},onFailure:function(e)
{"InvalidParameterException"===e.code?n(new
Mp(rf.DeviceConfig)):"NetworkError"===e.code?n(new
Mp(rf.NetworkError)):n(e)}};e.listDevices(60,null,r)}))]}}))}))},e}(),Gp=new
Hp(null);p.register(Gp);var zp=function(e){var t,n,r;if(Wp(e))return(t={})
[e.documentElement.nodeName]=zp(e.documentElement),t;if(e.nodeType===Node.TEXT_NODE
)return null===(n=e.nodeValue)||void 0===n?void 0:n.trim();if(Vp(e))
{if(qp(e))return null===(r=e.childNodes[0])||void 0===r?void 0:r.nodeValue;for(var
i={},o=0;o<e.attributes.length;o++){var s=e.attributes[o];Yp(s.nodeName)||
(i[s.nodeName]=s.nodeValue)}if(e.children.length>0)for(o=0;o<e.children.length;o++)
{var a=e.children[o],c=zp(a);if(void 0!==c){var u=a.nodeName;void 0===i[u]?
i[u]=c:Array.isArray(i[u])?i[u].push(c):i[u]=[i[u],c]}}return
0===Object.keys(i).length?"":i}},Vp=function(e){return
e.nodeType===Node.ELEMENT_NODE},Wp=function(e){return
e.nodeType===Node.DOCUMENT_NODE},qp=function(e){var t;return
Kp(e)&&0===e.children.length&&(null===(t=e.firstChild)||void 0===t?void
0:t.nodeType)===Node.TEXT_NODE},Kp=function(e){for(var t=0;t<e.attributes.length;t+
+){var n=e.attributes[t];if(!Yp(n.nodeName))return!1}return!0},Yp=function(e)
{return"xmlns"===e||e.startsWith("xmlns:")},$p=function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Qp=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Xp=function(e){return $p(void 0,void 0,void 0,
(function(){var t,n,r,i,o,s,a;return Qp(this,(function(c){switch(c.label){case
0:return!e||e.statusCode<300?[2]:(t=e.statusCode,[4,Zp(e)]);case 1:return
n=c.sent(),r=(null==n?void 0:n.Code)?n.Code:404===t?"NotFound":t.toString(),i=null!
==(a=null!==(s=null==n?void 0:n.message)&&void 0!==s?s:null==n?void
0:n.Message)&&void 0!==a?a:r,o=new Error(i),[2,Object.assign(o,{name:r,
$metadata:Dt(e)})]}}))}))},Zp=function(e){return $p(void 0,void 0,void 0,
(function(){var t;return Qp(this,(function(n){switch(n.label){case 0:if(!
e.body)throw new Error("S3 aborted request.");return[4,e.body.text()];case
1:if((null==(t=n.sent())?void 0:t.length)>0)try{return[2,(r=t,i=(new
DOMParser).parseFromString(r,"text/xml"),o=zp(i),o[Object.keys(o)[0]])]}catch(e)
{throw new Error("Failed to parse XML response.")}return[2,{}]}var
r,i,o}))}))},Jp=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,eg=/(\d+\.){3}\
d+/,tg=/\.\./,ng={service:"s3",endpointResolver:function(e,t){var
n,r,i=e.region,o=e.useAccelerateEndpoint,s=e.customEndpoint,a=e.forcePathStyle;if(s
)n=new URL(s);else if(o){if(a)throw new Error("Path style URLs are not supported
with S3 Transfer Acceleration.");n=new URL("https://s3-
accelerate.".concat(bt(i)))}else n=new
URL("https://s3.".concat(i,".").concat(bt(i)));if(null==t?void 0:t.Bucket)
{if(r=t.Bucket,!Jp.test(r)||eg.test(r)||tg.test(r))throw new Error('Invalid bucket
name: "'.concat(t.Bucket,'".'));a||t.Bucket.includes(".")?
n.pathname="/".concat(t.Bucket):n.host="".concat(t.Bucket,".").concat(n.host)}retur
n{url:n}},retryDecider:Bt(Xp),computeDelay:qt,userAgentValue:un(),useAccelerateEndp
oint:!1,uriEscapePath:!1};var
rg=[1732584193,4023233417,2562383102,271733878],ig=function(){function e()
{this.state=Uint32Array.from(rg),this.buffer=new DataView(new
ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return
e.prototype.update=function(e){if(!function(e){return"string"==typeof e?
0===e.length:0===e.byteLength}(e)){if(this.finished)throw new Error("Attempted to
update an already finished hash.");var t=function(e){return"string"==typeof e?
(t=e,"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}
(t):function(e){for(var t=[],n=0,r=e.length;n<r;n++){var
i=e.charCodeAt(n);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else
if(n+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))){var o=65536+
((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|
128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return
Uint8Array.from(t)}(t)):ArrayBuffer.isView(e)?new
Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new
Uint8Array(e);var t}
(e),n=0,r=t.byteLength;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.buffe
rLength++,t[n+
+]),r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)}},e.prototy
pe.digest=function(){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){var e,t,n,r,i,o,s;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(a){if(!this.finished)
{if(t=(e=this).buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r,t.setUint8(this.buffer
Length++,128),n%64>=56){for(s=this.bufferLength;s<64;s+
+)t.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<5
6;s++)t.setUint8(s,0);t.setUint32(56,i>>>0,!0),t.setUint32(60,Math.floor(i/
4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new
ArrayBuffer(16)),s=0;s<4;s++)o.setUint32(4*s,this.state[s],!0);return[2,new
Uint8Array(o.buffer,o.byteOffset,o.byteLength)]}))}))},e.prototype.hashBuffer=funct
ion(){var
e=this.buffer,t=this.state,n=t[0],r=t[1],i=t[2],o=t[3];n=sg(n,r,i,o,e.getUint32(0,!
0),7,3614090360),o=sg(o,n,r,i,e.getUint32(4,!
0),12,3905402710),i=sg(i,o,n,r,e.getUint32(8,!
0),17,606105819),r=sg(r,i,o,n,e.getUint32(12,!
0),22,3250441966),n=sg(n,r,i,o,e.getUint32(16,!
0),7,4118548399),o=sg(o,n,r,i,e.getUint32(20,!
0),12,1200080426),i=sg(i,o,n,r,e.getUint32(24,!
0),17,2821735955),r=sg(r,i,o,n,e.getUint32(28,!
0),22,4249261313),n=sg(n,r,i,o,e.getUint32(32,!
0),7,1770035416),o=sg(o,n,r,i,e.getUint32(36,!
0),12,2336552879),i=sg(i,o,n,r,e.getUint32(40,!
0),17,4294925233),r=sg(r,i,o,n,e.getUint32(44,!
0),22,2304563134),n=sg(n,r,i,o,e.getUint32(48,!
0),7,1804603682),o=sg(o,n,r,i,e.getUint32(52,!
0),12,4254626195),i=sg(i,o,n,r,e.getUint32(56,!
0),17,2792965006),n=ag(n,r=sg(r,i,o,n,e.getUint32(60,!
0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=ag(o,n,r,i,e.getUint32(24,!
0),9,3225465664),i=ag(i,o,n,r,e.getUint32(44,!
0),14,643717713),r=ag(r,i,o,n,e.getUint32(0,!
0),20,3921069994),n=ag(n,r,i,o,e.getUint32(20,!
0),5,3593408605),o=ag(o,n,r,i,e.getUint32(40,!
0),9,38016083),i=ag(i,o,n,r,e.getUint32(60,!
0),14,3634488961),r=ag(r,i,o,n,e.getUint32(16,!
0),20,3889429448),n=ag(n,r,i,o,e.getUint32(36,!
0),5,568446438),o=ag(o,n,r,i,e.getUint32(56,!
0),9,3275163606),i=ag(i,o,n,r,e.getUint32(12,!
0),14,4107603335),r=ag(r,i,o,n,e.getUint32(32,!
0),20,1163531501),n=ag(n,r,i,o,e.getUint32(52,!
0),5,2850285829),o=ag(o,n,r,i,e.getUint32(8,!
0),9,4243563512),i=ag(i,o,n,r,e.getUint32(28,!
0),14,1735328473),n=cg(n,r=ag(r,i,o,n,e.getUint32
(48,!0),20,2368359562),i,o,e.getUint32(20,!
0),4,4294588738),o=cg(o,n,r,i,e.getUint32(32,!
0),11,2272392833),i=cg(i,o,n,r,e.getUint32(44,!
0),16,1839030562),r=cg(r,i,o,n,e.getUint32(56,!
0),23,4259657740),n=cg(n,r,i,o,e.getUint32(4,!
0),4,2763975236),o=cg(o,n,r,i,e.getUint32(16,!
0),11,1272893353),i=cg(i,o,n,r,e.getUint32(28,!
0),16,4139469664),r=cg(r,i,o,n,e.getUint32(40,!
0),23,3200236656),n=cg(n,r,i,o,e.getUint32(52,!
0),4,681279174),o=cg(o,n,r,i,e.getUint32(0,!
0),11,3936430074),i=cg(i,o,n,r,e.getUint32(12,!
0),16,3572445317),r=cg(r,i,o,n,e.getUint32(24,!
0),23,76029189),n=cg(n,r,i,o,e.getUint32(36,!
0),4,3654602809),o=cg(o,n,r,i,e.getUint32(48,!
0),11,3873151461),i=cg(i,o,n,r,e.getUint32(60,!
0),16,530742520),n=ug(n,r=cg(r,i,o,n,e.getUint32(8,!
0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=ug(o,n,r,i,e.getUint32(28,!
0),10,1126891415),i=ug(i,o,n,r,e.getUint32(56,!
0),15,2878612391),r=ug(r,i,o,n,e.getUint32(20,!
0),21,4237533241),n=ug(n,r,i,o,e.getUint32(48,!
0),6,1700485571),o=ug(o,n,r,i,e.getUint32(12,!
0),10,2399980690),i=ug(i,o,n,r,e.getUint32(40,!
0),15,4293915773),r=ug(r,i,o,n,e.getUint32(4,!
0),21,2240044497),n=ug(n,r,i,o,e.getUint32(32,!
0),6,1873313359),o=ug(o,n,r,i,e.getUint32(60,!
0),10,4264355552),i=ug(i,o,n,r,e.getUint32(24,!
0),15,2734768916),r=ug(r,i,o,n,e.getUint32(52,!
0),21,1309151649),n=ug(n,r,i,o,e.getUint32(16,!
0),6,4149444226),o=ug(o,n,r,i,e.getUint32(44,!
0),10,3174756917),i=ug(i,o,n,r,e.getUint32(8,!
0),15,718787259),r=ug(r,i,o,n,e.getUint32(36,!
0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967
295,t[3]=o+t[3]&4294967295},e}();function og(e,t,n,r,i,o)
{return((t=(t+e&4294967295)+(r+o&4294967295)&4294967295)<<i|t>>>32-i)
+n&4294967295}function sg(e,t,n,r,i,o,s){return og(t&n|~t&r,e,t,i,o,s)}function
ag(e,t,n,r,i,o,s){return og(t&r|n&~r,e,t,i,o,s)}function cg(e,t,n,r,i,o,s){return
og(t^n^r,e,t,i,o,s)}function ug(e,t,n,r,i,o,s){return og(n^(t|
~r),e,t,i,o,s)}function lg(e){return(new TextEncoder).encode(e)}function hg(e)
{return t="string"==typeof e?lg(e):new
Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=Array.from(t,(function(e){return
String.fromCodePoint(e)})).join(""),btoa(n);var t,n}var dg,fg,pg,gg=function()
{return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},gg.apply(this,arguments)},mg=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},vg=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},bg=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},yg=function(e){var t,n,r={};try{for(var i=function(e){var
t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(Object.entries(e)),o=i.next();!o.done;o=i.next()){var
s=bg(o.value,2),a=s[0],c=s[1];null!=c&&(r[a]=c.toString())}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return r},wg=function(e){return mg(void 0,void 0,void 0,(function(){var
t,n,r,i,o,s;return vg(this,(function(a){switch(a.label){case 0:return t=function(e)
{return mg(void 0,void 0,void 0,(function(){var t;return vg(this,(function(n)
{return(t=new ig).update(lg(e)),[2,t.digest()]}))}))},n=yg,s={"x-amz-server-side-
encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-
encryption-customer-key":e.SSECustomerKey&&hg(e.SSECustomerKey)},r="x-amz-server-
side-encryption-customer-key-md5",(i=e.SSECustomerKey)?(o=hg,
[4,t(e.SSECustomerKey)]):[3,2];case 1:i=o.apply(void 0,[a.sent()]),a.label=2;case
2:return[2,n.apply(void 0,[(s[r]=i,s)])]}}))}))},_g=function(e){return mg(void
0,void 0,void 0,(function(){var t,n;return vg(this,(function(r){switch(r.label)
{case 0:return t=[{}],[4,wg(e)];case 1:return[2,gg.apply(void 0,[gg.apply(void
0,t.concat([r.sent()])),yg(gg({"x-amz-server-side-
encryption":e.ServerSideEncryption,"x-amz-server-side-encryption-aws-kms-key-
id":e.SSEKMSKeyId,"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-
disposition":e.ContentDisposition,"content-language":e.ContentLanguage,"content-
encoding":e.ContentEncoding,"content-
type":e.ContentType,expires:null===(n=e.Expires)||void 0===n?void
0:n.toUTCString(),"x-amz-
tagging":e.Tagging},Eg(e.Metadata)))])]}}))}))},Eg=function(e){return void
0===e&&(e={}),Object.keys(e).reduce((function(t,n){return t["x-amz-
meta-".concat(n.toLowerCase())]=e[n],t}),{})},Sg=function(e,t){return
e.pathname.replace(/\/$/,"")
+"/".concat(t.split("/").map(In).join("/"))},Tg="sendUploadProgress",Ag="sendDownlo
adProgress",Cg="Network Error",Og="Request aborted",xg="canceled",Ig="x-amz-
content-sha256",Pg=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},Dg=new h("xhr-http-handler"),kg=function(e,t,n,r){return
Object.assign(new Error(e),{code:t,config:r,request:n})},Rg=function(e){return!!
(null==e?void 0:e.__CANCEL__)},Mg=["host"],Ng=Tt((function(e,t){var
n=e.url,r=e.method,i=e.headers,o=e.body,s=t.emitter,a=t.responseType,c=t.abortSigna
l;return new Promise((function(e,u){var l,h=new
XMLHttpRequest;if(h.open(r.toUpperCase(),n.toString()),Object.entries(i).filter((fu
nction(e){var t=Pg(e,1)[0];return!Mg.includes(t)})).forEach((function(e){var
t=Pg(e,2),n=t[0],r=t[1];h.setRequestHeader(n,r)})),h.responseType=a,s&&(h.upload.ad
dEventListener("progress",(function(e)
{s.emit(Tg,e),Dg.debug(e)})),h.addEventListener("progress",(function(e)
{s.emit(Ag,e),Dg.debug(e)}))),h.addEventListener("error",(function(){var
e=kg(Cg,"ECONNABORTED",h,t);Dg.error(Cg),u(e),h=null})),h.addEventListener("abort",
(function(){if(h&&!(null==c?void 0:c.aborted)){var
e=kg(Og,"ERR_ABORTED",h,t);Dg.error(Og),u(e),h=null}})),h.addEventListener("readyst
atechange",(function(){h&&h.readyState===h.DONE&&setTimeout((function(){if(h){var
t=(a=h.getAllResponseHeaders())?a.split("\r\n").reduce((function(e,t){var
n=t.split(": "),r=n.shift(),i=n.join(": ");return e[r.toLowerCase()]=i,e}),{}):
{},n=h.responseType,r=h.response,i="text"===n?h.responseText:"",o={blob:function()
{return Promise.resolve(r)},text:At((function(){return"blob"===n?(e=r,t=new
FileReader,new Promise((function(n,r){t.onloadend=function()
{t.readyState===FileReader.DONE&&n(t.result)},t.onerror=function()
{r(t.error)},t.readAsText(e)}))):Promise.resolve(i);var e,t})),json:function()
{return Promise.reject(new Error("Parsing response to JSON is not implemented.
Please use response.text()
instead."))}},s={statusCode:h.status,headers:t,body:"blob"===h.responseType?
Object.assign(r,o):o};e(s),h=null}var a}))})),c){var d=function(){if(h){var
e=function(e,t,n,r){var i=kg(e,t,n,r);return i.name="CanceledError",i.__CANCEL__=!
0,i}(xg,"ERR_CANCELED",h,t);h.abort(),u(e),h=null}};c.aborted?
d():c.addEventListener("abort",d)}if("function"==typeof ReadableStream&&o
instanceof ReadableStream)throw new Error("ReadableStream request payload is not
supported.");h.send(null!==(l=o)&&void 0!==l?l:null)}))}),[function(e){return
function(e){return function(t){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,
(function(){var n;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1]
,i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case 0:return
t.headers[Ig]?[2,e(t)]:[3,1];case 1:return[4,Pe(t.body)];case 2:return
n=r.sent(),t.headers[Ig]=n,[2,e(t)]}}))}))}}},St,wt,Cn]),Lg=function(){return
Lg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Lg.apply(this,arguments)},Fg=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},jg=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Bg=gn(Ng,(function(e,t){return Fg(void 0,void
0,void 0,(function(){var n,r,i;return jg(this,(function(o){switch(o.label){case
0:return r=[{}],[4,_g(e)];case 1:return n=Lg.apply(void 0,[Lg.apply(void
0,r.concat([o.sent()])),yg({"x-amz-copy-source":e.CopySource,"x-amz-metadata-
directive":e.MetadataDirective})]),(i=new
URL(t.url.toString())).pathname=Sg(i,e.Key),[2,
{method:"PUT",headers:n,url:i}]}}))}))}),(function(e){return Fg(void 0,void 0,void
0,(function(){return jg(this,(function(t){switch(t.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw t.sent();case 2:return[4,Zp(e)];case
3:return t.sent(),[2,{$metadata:Dt(e)}]}}))}))}),Lg(Lg({},ng),
{responseType:"text"})),Ug=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},Hg=function(e,t){var n,r,i={};try{for(var o=function(e){var
t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(Object.entries(t)),s=o.next();!s.done;s=o.next()){var
a=Ug(s.value,2),c=a[0],u=a[1],l=Ug(Array.isArray(u)?u:
[u],2),h=l[0],d=l[1];e.hasOwnProperty(h)&&(i[c]=d?d(e[h]):String(e[h]))}}catch(e)
{n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw
n.error}}return i},Gg=function(e){return e?Number(e):void 0},zg=function(e){return
e?"true"===e:void 0},Vg=function(e){return e?new Date(e):void 0},Wg=function(e,t)
{return""===e?[]:t((Array.isArray(e)?e:[e]).filter((function(e){return null!
=e})))},qg=function(e){var t="x-amz-meta-",n=Object.keys(e).filter((function(e)
{return e.startsWith(t)})).reduce((function(n,r){return
n[r.replace(t,"")]=e[r],n}),{});return Object.keys(n).length>0?n:void
0},Kg=function(){return Kg=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Kg.apply(this,arguments)},Yg=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},$g=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Qg=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},Xg=function(e,t){return Yg(void 0,void 0,void 0,(function(){var
n,r,i;return $g(this,(function(o){switch(o.label){case 0:return[4,wg(e)];case
1:return n=o.sent(),r=Hg(e,{"response-cache-
control":"ResponseCacheControl","response-content-
disposition":"ResponseContentDisposition","response-content-
encoding":"ResponseContentEncoding","response-content-
language":"ResponseContentLanguage","response-content-
type":"ResponseContentType"}),(i=new
URL(t.url.toString())).pathname=Sg(i,e.Key),i.search=new
URLSearchParams(r).toString(),[2,
{method:"GET",headers:n,url:i}]}}))}))},Zg=gn(Ng,Xg,(function(e){return Yg(void
0,void 0,void 0,(function(){return $g(this,(function(t){switch(t.label){case
0:return e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw t.sent();case
2:if(e.body)return[2,Kg(Kg({},Hg(e.headers,{DeleteMarker:["x-amz-delete-
marker",zg],AcceptRanges:"accept-ranges",Expiration:"x-amz-expiration",Restore:"x-
amz-restore",LastModified:["last-modified",Vg],ContentLength:["content-
length",Gg],ETag:"etag",ChecksumCRC32:"x-amz-checksum-crc32",ChecksumCRC32C:"x-amz-
checksum-crc32c",ChecksumSHA1:"x-amz-checksum-sha1",ChecksumSHA256:"x-amz-checksum-
sha256",MissingMeta:["x-amz-missing-meta",Gg],VersionId:"x-amz-version-
id",CacheControl:"cache-control",ContentDisposition:"content-
disposition",ContentEncoding:"content-encoding",ContentLanguage:"content-
language",ContentRange:"content-range",ContentType:"content-type",Expires:
["expires",Vg],WebsiteRedirectLocation:"x-amz-website-redirect-
location",ServerSideEncryption:"x-amz-server-side-
encryption",SSECustomerAlgorithm:"x-amz-server-side-encryption-customer-
algorithm",SSECustomerKeyMD5:"x-amz-server-side-encryption-customer-key-
md5",SSEKMSKeyId:"x-amz-server-side-encryption-aws-kms-key-id",BucketKeyEnabled:
["x-amz-server-side-encryption-bucket-key-enabled",zg],StorageClass:"x-amz-storage-
class",RequestCharged:"x-amz-request-charged",ReplicationStatus:"x-amz-replication-
status",PartsCount:["x-amz-mp-parts-count",Gg],TagCount:["x-amz-tagging-
count",Gg],ObjectLockMode:"x-amz-object-lock-mode",ObjectLockRetainUntilDate:["x-
amz-object-lock-retain-until-date",Vg],ObjectLockLegalHoldStatus:"x-amz-object-
lock-legal-hold"})),{Metadata:qg(e.headers),$metadata:Dt(e),Body:e.body})];throw
new Error("Got empty response body.");case 3:return[2]}}))}))}),Kg(Kg({},ng),
{responseType:"blob"})),Jg=function(e,t){return Yg(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h,d,f,p;return $g(this,(function(g){switch(g.label){case
0:return n=ng.endpointResolver(e,t),[4,Xg(t,n)];case
1:r=g.sent(),i=r.url,o=r.headers,s=r.method,i.searchParams.append(Ig,me),i.searchPa
rams.append(null!==(p=e.userAgentHeader)&&void 0!==p?
p:Ap,e.userAgentValue);try{for(a=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(Object.entries(o).sort((function(e,t){var n=Qg(e,1)[0],r=Qg(t,1)
[0];return n.localeCompare(r)}))),c=a.next();!
c.done;c=a.next())u=Qg(c.value,2),l=u[0],h=u[1],i.searchParams.append(l,h)}catch(e)
{d={error:e}}finally{try{c&&!c.done&&(f=a.return)&&f.call(a)}finally{if(d)throw
d.error}}return[2,Fe({method:s,url:i,body:null},Kg(Kg({},ng),e)).toString()]}}))}))
},em=function(){return em=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},em.apply(this,arguments)},tm=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},nm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},rm=gn(Ng,(function(e,t){return tm(void 0,void
0,void 0,(function(){var n,r;return nm(this,(function(i){switch(i.label){case
0:return[4,wg(e)];case 1:return n=i.sent(),(r=new
URL(t.url.toString())).pathname=Sg(r,e.Key),[2,
{method:"HEAD",headers:n,url:r}]}}))}))}),(function(e){return tm(void 0,void 0,void
0,(function(){var t;return nm(this,(function(n){switch(n.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw n.sent();case 2:return
t=em(em({},Hg(e.headers,{ContentLength:["content-length",Gg],ContentType:"content-
type",ETag:"etag",LastModified:["last-modified",Vg],VersionId:"x-amz-version-
id"})),{Metadata:qg(e.headers)}),[2,em({$metadata:Dt(e)},t)]}}))}))}),em(em({},ng),
{responseType:"text"})),im=function(){return im=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},im.apply(this,arguments)},om=gn(Ng,(function(e,t){var n=new
URL(t.url.toString());return n.pathname=Sg(n,e.Key),{method:"DELETE",headers:
{},url:n}}),(function(e){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var t;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(n){switch(n.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw n.sent();case 2:return
t=Hg(e.headers,{DeleteMarker:["x-amz-delete-marker",zg],VersionId:"x-amz-version-
id",RequestCharged:"x-amz-request-charged"}),[2,im(im({},t),
{$metadata:Dt(e)})]}}))}))}),im(im({},ng),{responseType:"text"})),sm=function()
{return sm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},sm.apply(this,arguments)},am=function(e){return e.map(cm)},cm=function(e){return
Hg(e,{Prefix:"Prefix"})},um=function(e){return e.map(lm)},lm=function(e){return
Hg(e,{Key:"Key",LastModified:["LastModified",Vg],ETag:"ETag",ChecksumAlgorithm:
["ChecksumAlgorithm",function(e){return Wg(e,hm)}],Size:
["Size",Gg],StorageClass:"StorageClass",Owner:["Owner",dm]})},hm=function(e){return
e.map((function(e){return String(e)}))},dm=function(e){return Hg(e,
{DisplayName:"DisplayName",ID:"ID"})},fm=gn(Ng,(function(e,t){var n=yg({"x-amz-
request-payer":e.RequestPayer,"x-amz-expected-bucket-
owner":e.ExpectedBucketOwner}),r=yg({"list-type":"2","continuation-
token":e.ContinuationToken,delimiter:e.Delimiter,"encoding-
type":e.EncodingType,"fetch-owner":e.FetchOwner,"max-
keys":e.MaxKeys,prefix:e.Prefix,"start-after":e.StartAfter}),i=new
URL(t.url.toString());return i.search=new URLSearchParams(r).toString(),
{method:"GET",headers:n,url:i}}),(function(e){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var t,n;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw r.sent();case 2:return[4,Zp(e)];case
3:return t=r.sent(),n=Hg(t,{CommonPrefixes:["CommonPrefixes",function(e){return
Wg(e,am)}],Contents:["Contents",function(e){return
Wg(e,um)}],ContinuationToken:"ContinuationToken",Delimiter:"Delimiter",EncodingType
:"EncodingType",IsTruncated:["IsTruncated",zg],KeyCount:["KeyCount",Gg],MaxKeys:
["MaxKeys",Gg],Name:"Name",NextContinuationToken:"NextContinuationToken",Prefix:"Pr
efix",StartAfter:"StartAfter"}),[2,sm({$metadata:Dt(e)},n)]}}))}))}),sm(sm({},ng),
{responseType:"text"}));!function(e){e.NO_CREDENTIALS="No
credentials",e.NO_SRC_KEY='source param should be an object with the property "key"
with value of type string',e.NO_DEST_KEY='destination param should be an object
with the property "key" with value of type string',e.INVALID_BLOB="Object must be
an instance of Blob"}(dg||(dg={})),function(e){e.CLEANUP_FAILED="Multipart copy
clean up failed",e.NO_OBJECT_FOUND="Object does not
exist",e.INVALID_QUEUESIZE="Queue size must be a positive
number",e.NO_COPYSOURCE="You must specify a copy
source",e.MAX_NUM_PARTS_EXCEEDED="Only a maximum of 10000 parts are allowed"}(fg||
(fg={})),function(e){e.UPLOAD_PAUSED_MESSAGE="paused"}(pg||(pg={}));var
pm,gm,mm="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",vm="__uploadInProgress",bm=functi
on(e,t,n,r,i){if(e){var o={attrs:n};r&&(o.metrics=r),x.dispatch("storage",
{event:t,data:o,message:i},"Storage",mm)}},ym=function(){return ym=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},ym.apply(this,arguments)},wm=new
h("S3ClientUtils"),_m={accessKeyId:"",secretAccessKey:""},Em=function(e){var
t=e.credentials,n=e.level,r=e.customPrefix||{},i=e.identityId||t.identityId,o=(void
0!==r.private?r.private:"private/")+i+"/",s=(void 0!==r.protected?
r.protected:"protected/")+i+"/",a=void 0!==r.public?r.public:"public/";switch(n)
{case"private":return o;case"protected":return s;default:return a}},Sm=function()
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var e,t,n;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case
0:return r.trys.push([0,2,,3]),[4,Tn.get()];case 1:return(e=r.sent())?
(t=Tn.shear(e),wm.debug("credentials provider get credentials",t),[2,t]):
[2,_m];case 2:return n=r.sent(),wm.warn("credentials provider error",n),[2,_m];case
3:return[2]}}))}))},Tm=function(e){if(!e.region)throw new Error("Region is
missing.");return ym(ym(ym({},e),{region:e.region,credentials:e.credentials?
function(){return
Promise.resolve(e.credentials)}:Sm,userAgentValue:un({category:Y.Storage,action:e.s
torageAction})}),e.dangerouslyConnectToHttpEndpointForTesting?
{customEndpoint:"http://localhost:20005",forcePathStyle:!0}:
{})},Am=5242880,Cm=5497558138880,Om=function(e){for(var
t=Am,n=Math.ceil(e/t);n>1e4;)t*=2,n=Math.ceil(e/t);return t},xm=function(){return
xm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},xm.apply(this,arguments)},Im=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Pm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Dm=gn(Ng,(function(e,t){return Im(void 0,void
0,void 0,(function(){var n,r,i,o;return Pm(this,(function(s){switch(s.label){case
0:return r=[{}],[4,_g(xm(xm({},e),{ContentType:null!==(o=e.ContentType)&&void 0!
==o?o:"application/octet-stream"}))];case 1:return n=xm.apply(void 0,[xm.apply(void
0,r.concat([s.sent()])),yg({"content-md5":e.ContentMD5})]),(i=new
URL(t.url.toString())).pathname=Sg(i,e.Key),[2,
{method:"PUT",headers:n,url:i,body:e.Body}]}}))}))}),(function(e){return Im(void
0,void 0,void 0,(function(){return Pm(this,(function(t){switch(t.label){case
0:return e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw t.sent();case
2:return[2,xm(xm({},Hg(e.headers,{ETag:"etag",VersionId:"x-amz-version-id"})),
{$metadata:Dt(e)})]}}))}))}),xm(xm({},ng),{responseType:"text"})),km=function()
{return km=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},km.apply(this,arguments)},Rm=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Mm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Nm=gn(Ng,(function(e,t){return Rm(void 0,void
0,void 0,(function(){var n,r;return Mm(this,(function(i){switch(i.label){case
0:return[4,_g(e)];case 1:return n=i.sent(),(r=new
URL(t.url.toString())).pathname=Sg(r,e.Key),r.search="uploads",[2,
{method:"POST",headers:n,url:r}]}}))}))}),(function(e){return Rm(void 0,void 0,void
0,(function(){var t,n;return Mm(this,(function(r){switch(r.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw r.sent();case 2:return[4,Zp(e)];case
3:return t=r.sent(),n=Hg(t,{UploadId:"UploadId"}),
[2,km({$metadata:Dt(e)},n)]}}))}))}),km(km({},ng),
{responseType:"text"})),Lm=function(){return Lm=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Lm.apply(this,arguments)},Fm=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},jm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Bm=gn(Ng,(function(e,t){return Fm(void 0,void
0,void 0,(function(){var n,r,i;return jm(this,(function(o){switch(o.label){case
0:return r=[{}],[4,wg(e)];case 1:return(n=Lm.apply(void 0,[Lm.apply(void
0,r.concat([o.sent()])),yg({"content-md5":e.ContentMD5})]))["content-
type"]="application/octet-stream",(i=new
URL(t.url.toString())).pathname=Sg(i,e.Key),i.search=new
URLSearchParams({partNumber:e.PartNumber+"",uploadId:e.UploadId}).toString(),[2,
{method:"PUT",headers:n,url:i,body:e.Body}]}}))}))}),(function(e){return Fm(void
0,void 0,void 0,(function(){return jm(this,(function(t){switch(t.label){case
0:return e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw t.sent();case
2:return[2,Lm(Lm({},Hg(e.headers,{ETag:"etag"})),
{$metadata:Dt(e)})]}}))}))}),Lm(Lm({},ng),{responseType:"text"})),Um=function()
{return Um=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Um.apply(this,arguments)},Hm=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Gm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},zm="Invalid parameter for ComplteMultipartUpload
API",Vm=function(e){var t;if(!(null===(t=e.Parts)||void 0===t?void
0:t.length))throw new Error("".concat(zm,":
").concat(e));return'<CompleteMultipartUpload
xmlns="http://s3.amazonaws.com/doc/2006-03-
01/">'.concat(e.Parts.map(Wm).join(""),"</
CompleteMultipartUpload>")},Wm=function(e){if(!e.ETag||null==e.PartNumber)throw new
Error("".concat(zm,":
").concat(e));return"<Part><ETag>".concat(e.ETag,"</ETag><PartNumber>").concat(e.Pa
rtNumber,"</PartNumber></Part>")},qm=function(e){return Hm(void 0,void 0,void 0,
(function(){var t,n;return Gm(this,(function(r){switch(r.label){case
0:return[4,Zp(e)];case
1:return void 0===(t=r.sent()).Code||void 0===t.Message?[3,3]:[4,Xp(Um(Um({},e),
{statusCode:500}))];case 2:throw(n=r.sent()).
$metadata.httpStatusCode=e.statusCode,n;case 3:return[2,t]}}))}))},Km=gn(Ng,
(function(e,t){return Hm(void 0,void 0,void 0,(function(){var n,r;return Gm(this,
(function(i){switch(i.label){case 0:return[4,wg(e)];case 1:return(n=i.sent())
["content-type"]="application/xml",(r=new
URL(t.url.toString())).pathname=Sg(r,e.Key),r.search=new
URLSearchParams({uploadId:e.UploadId}).toString(),[2,
{method:"POST",headers:n,url:r,body:'<?xml version="1.0" encoding="UTF-8"?
>'+Vm(e.MultipartUpload)}]}}))}))}),(function(e){return Hm(void 0,void 0,void 0,
(function(){var t,n;return Gm(this,(function(r){switch(r.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw r.sent();case 2:return[4,qm(e)];case
3:return t=r.sent(),n=Hg(t,{ETag:"ETag",Key:"Key",Location:"Location"}),
[2,Um({$metadata:Dt(e)},n)]}}))}))}),Um(Um({},ng),
{responseType:"text",retryDecider:function(e,t){return Hm(void 0,void 0,void 0,
(function(){var n;return Gm(this,(function(r){switch(r.label){case 0:return 200!
==e.statusCode?[3,2]:e.body?[4,Zp(e)]:[2,!0];case 1:return void 0!
==(n=r.sent()).Code&&void 0!==n.Message?[2,!0]:[2,!1];case 2:return[2,
(0,ng.retryDecider)(e,t)]}}))}))}})),Ym=function(){return Ym=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ym.apply(this,arguments)},$m=gn(Ng,(function(e,t){var n=new
URL(t.url.toString());return n.pathname=Sg(n,e.Key),n.search=new
URLSearchParams({uploadId:e.UploadId}).toString(),{method:"DELETE",headers:
{},url:n}}),(function(e){return function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(t){switch(t.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw t.sent();case 2:return[2,
{$metadata:Dt(e)}]}}))}))}),Ym(Ym({},ng),{responseType:"text"})),Qm=function()
{return Qm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Qm.apply(this,arguments)},Xm=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Zm=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},Jm=function(e){return e.map((function(e){return
Hg(e,{PartNumber:["PartNumber",Gg],ETag:"ETag",Size:["Size",Gg]})}))},ev=gn(Ng,
(function(e,t){return Xm(void 0,void 0,void 0,(function(){var n,r;return Zm(this,
(function(i){switch(i.label){case 0:return[4,wg(e)];case 1:return n=i.sent(),(r=new
URL(t.url.toString())).pathname=Sg(r,e.Key),r.search=new
URLSearchParams({uploadId:e.UploadId}).toString(),[2,
{method:"GET",headers:n,url:r}]}}))}))}),(function(e){return Xm(void 0,void 0,void
0,(function(){var t,n;return Zm(this,(function(r){switch(r.label){case 0:return
e.statusCode>=300?[4,Xp(e)]:[3,2];case 1:throw r.sent();case 2:return[4,Zp(e)];case
3:return t=r.sent(),n=Hg(t,{UploadId:"UploadId",Parts:["Part",function(e){return
Wg(e,Jm)}]}),[2,Qm({$metadata:Dt(e)},n)]}}))}))}),Qm(Qm({},ng),
{responseType:"text"})),tv=n(22699),nv=function(e){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var t,n;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case 0:return
t=new ig,"string"!=typeof e?[3,1]:(t.update(e),[3,3]);case 1:return[4,rv(e)];case
2:n=r.sent(),t.update(n),r.label=3;case 3:return[4,t.digest()];case
4:return[2,hg(r.sent())]}}))}))},rv=function(e){return new Promise((function(t,n)
{var r=new FileReader;r.onloadend=function()
{r.result&&t(r.result),r.onabort=function(){return n(new Error("Read
aborted"))},r.onerror=function(){return n(r.error)}},void 0!
==e&&r.readAsArrayBuffer(e)}))},iv=function(){return iv=Object.assign||function(e)
{for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},iv.apply(this,arguments)},ov=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},sv=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},av=new
h("AWSS3ProviderManagedUpload"),cv=function(){function e(e,t,n)
{this.opts=null,this.completedParts=[],this.partSize=Am,this.bytesUploaded=0,this.t
otalBytesToUpload=0,this.emitter=null,this.params=e,this.opts=iv({isObjectLockEnabl
ed:!1},t),this.emitter=n,this.s3Config=Tm(iv(iv({},t),
{emitter:n,storageAction:oe.Put}))}return e.prototype.upload=function(){return
ov(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,c,u,l=this;return sv(this,
(function(h){switch(h.label){case 0:return h.trys.push([0,12,,14]),!0!
==this.opts.isObjectLockEnabled?[3,2]:(e=this.params,[4,nv(this.params.Body)]);case
1:e.ContentMD5=h.sent(),h.label=2;case 2:return
this.body=this.validateAndSanitizeBody(this.params.Body),this.totalBytesToUpload=th
is.byteLength(this.body),thi
s.totalBytesToUpload<=Am?
(this.params.Body=this.body,t=Dm,n=[this.s3Config],r=[iv({},this.params)],u={},
[4,this.getObjectKeyWithPrefix(this.params.Key)]):[3,4];case
3:return[2,t.apply(void 0,n.concat([iv.apply(void
0,r.concat([(u.Key=h.sent(),u)]))]))];case 4:return
this.partSize=Om(this.totalBytesToUpload),i=this,
[4,this.createMultiPartUpload()];case
5:i.uploadId=h.sent(),o=Math.ceil(this.totalBytesToUpload/this.partSize),s=this.cre
ateParts(),a=0,h.label=6;case 6:return a<o?
[4,this.uploadParts(this.uploadId,s.slice(a,a+4))]:[3,9];case
7:h.sent(),h.label=8;case 8:return a+=4,[3,6];case 9:return s.map((function(e)
{l.removeEventListener(e)})),[4,this.finishMultiPartUpload(this.uploadId)];case
10:return[2,h.sent()];case 11:return[3,14];case 12:return c=h.sent(),
[4,this.cleanup(this.uploadId)];case 13:throw h.sent(),av.error("Error. Cancelling
the multipart upload."),c;case
14:return[2]}}))}))},e.prototype.createParts=function(){try{for(var
e=[],t=0;t<this.totalBytesToUpload;){var
n=Math.min(t+this.partSize,this.totalBytesToUpload);e.push({bodyPart:this.body.slic
e(t,n),partNumber:e.length+1,emitter:new
tv.EventEmitter,_lastUploadedBytes:0}),t+=this.partSize}return e}catch(e){throw
av.error(e),e}},e.prototype.createMultiPartUpload=function(){return ov(this,void
0,void 0,(function(){var e,t,n,r,i,o;return sv(this,(function(s){switch(s.label)
{case 0:return
s.trys.push([0,3,,4]),t=Nm,n=[this.s3Config],r=[iv({},this.params)],o={},
[4,this.getObjectKeyWithPrefix(this.params.Key)];case 1:return[4,t.apply(void
0,n.concat([iv.apply(void 0,r.concat([(o.Key=s.sent(),o)]))]))];case 2:return
e=s.sent(),av.debug(e.UploadId),[2,e.UploadId];case 3:throw
i=s.sent(),av.error(i),i;case
4:return[2]}}))}))},e.prototype.uploadParts=function(e,t){return ov(this,void
0,void 0,(function(){var n,r,i,o=this;return sv(this,(function(s){switch(s.label)
{case 0:return s.trys.push([0,2,,3]),[4,Promise.all(t.map((function(t){return
ov(o,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,h;return sv(this,(function(d)
{switch(d.label){case 0:return
this.setupEventListener(t),this.opts.isObjectLockEnabled?(n=this.params,
[4,nv(t.bodyPart)]):[3,2];case 1:n.ContentMD5=d.sent(),d.label=2;case
2:return(r=this.params).Key,i=r.Bucket,o=r.SSECustomerAlgorithm,s=r.SSECustomerKey,
a=r.SSECustomerKeyMD5,c=r.ContentMD5,u=Bm,l=[iv(iv({},this.s3Config),
{emitter:t.emitter})],h={PartNumber:t.partNumber,Body:t.bodyPart,UploadId:e},
[4,this.getObjectKeyWithPrefix(this.params.Key)];case 3:return[4,u.apply(void
0,l.concat([(h.Key=d.sent(),h.Bucket=i,h.SSECustomerAlgorithm=o,h.SSECustomerKey=s,
h.SSECustomerKeyMD5=a,h.ContentMD5=c,h)]))];case
4:return[2,d.sent()]}}))}))})))];case 1:for(n=s.sent(),r=0;r<n.length;r+
+)this.completedParts.push({PartNumber:t[r].partNumber,ETag:n[r].ETag});return[3,3]
;case 2:throw i=s.sent(),av.error("Error happened while uploading a part.
Cancelling the multipart upload"),i;case
3:return[2]}}))}))},e.prototype.finishMultiPartUpload=function(e){return
ov(this,void 0,void 0,(function(){var t,n,r;return sv(this,(function(i)
{switch(i.label){case 0:return r={Bucket:this.params.Bucket},
[4,this.getObjectKeyWithPrefix(this.params.Key)];case
1:r.Key=i.sent(),r.UploadId=e,r.MultipartUpload={Parts:this.completedParts},t=r,i.l
abel=2;case 2:return i.trys.push([2,4,,5]),[4,Km(this.s3Config,t)];case
3:return[2,i.sent().Key];case 4:throw n=i.sent(),av.error("Error happened while
finishing the upload."),n;case 5:return[2]}}))}))},e.prototype.cleanup=function(e)
{return ov(this,void 0,void 0,(function(){var t,n,r;return sv(this,(function(i)
{switch(i.label){case 0:return
this.body=null,this.completedParts=[],this.bytesUploaded=0,this.totalBytesToUpload=
0,e?(r={Bucket:this.params.Bucket},
[4,this.getObjectKeyWithPrefix(this.params.Key)]):[2];case 1:return
r.Key=i.sent(),r.UploadId=e,t=r,[4,$m(this.s3Config,t)];case 2:return i.sent(),
[4,ev(this.s3Config,t)];case 3:if((n=i.sent())&&n.Parts&&n.Parts.length>0)throw new
Error("Multipart upload clean up
failed.");return[2]}}))}))},e.prototype.removeEventListener=function(e)
{e.emitter.removeAllListeners(Tg),e.emitter.removeAllListeners(Ag)},e.prototype.set
upEventListener=function(e){var t=this;e.emitter.on(Tg,(function(n)
{t.progressChanged(e.partNumber,n.loaded-
e._lastUploadedBytes),e._lastUploadedBytes=n.loaded}))},e.prototype.progressChanged
=function(e,t){this.bytesUploaded+=t,this.emitter.emit(Tg,
{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key
})},e.prototype.byteLength=function(e){if(null==e)return 0;if("number"==typeof
e.byteLength)return e.byteLength;if("number"==typeof e.length)return
e.length;if("number"==typeof e.size)return e.size;if("string"!=typeof e.path)throw
new Error("Cannot determine length of
"+e)},e.prototype.validateAndSanitizeBody=function(e){var
t=this.isGenericObject(e)?JSON.stringify(e):e;if(this.byteLength(t)>Cm)throw new
Error("File size bigger than S3 Object limit of 5TB, got
".concat(this.totalBytesToUpload," Bytes"));return
t},e.prototype.isGenericObject=function(e){if(null!==e&&"object"==typeof
e)try{return!(this.byteLength(e)>=0)}catch(e){return!0}return!
1},e.prototype.getObjectKeyWithPrefix=function(e){return ov(this,void 0,void 0,
(function(){var t,n,r;return sv(this,(function(i){switch(i.label){case 0:return
t=Em,n=[iv({},this.opts)],r={},[4,Sm()];case 1:return[4,t.apply(void 0,
[iv.apply(void 0,n.concat([(r.credentials=i.sent(),r)]))])];case
2:return[2,i.sent()+e]}}))}))},e}(),uv=function(){return uv=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},uv.apply(this,arguments)},lv=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},hv=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},dv=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},fv=function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},pv=new h("AWSS3UploadTask");function gv(e,t){return
e.PartNumber-t.PartNumber}!function(e)
{e[e.INIT=0]="INIT",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.PAUSED=2]="PAUSED",e[e.CAN
CELLED=3]="CANCELLED",e[e.COMPLETED=4]="COMPLETED"}(pm||(pm={})),function(e)
{e.CANCEL="cancel",e.UPLOAD_COMPLETE="uploadComplete",e.UPLOAD_PROGRESS="uploadPart
Progress",e.ERROR="error"}(gm||(gm={}));var mv=function(){function e(e){var
t=e.s3Config,n=e.file,r=e.emitter,i=e.storage,o=e.params,s=e.level,a=e.prefixPromis
e;this.queueSize=4,this.partSize=Am,this.inProgress=[],this.completedParts=[],this.
queued=[],this.bytesUploaded=0,this.totalBytes=0,this.state=pm.INIT,this.prefixProm
ise=a,this.s3Config=t,this.storage=i,this.storageSync=Promise.resolve(),"function"=
=typeof
this.storage.sync&&(this.storageSync=this.storage.sync()),this.params=o,this.file=n
,this.totalBytes=this.file.size,this.bytesUploaded=0,this.emitter=r,this.queued=[],
this.fileId=this._getFileId(s),this._validateParams(),this.emitter.on(gm.ERROR,
(function(){}))}return Object.defineProperty(e.prototype,"percent",{get:function()
{return this.bytesUploaded/this.totalBytes*100},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"isInProgress",{get:function(){return
this.state===pm.IN_PROGRESS},enumerable:!1,configurable:!
0}),e.prototype._listSingleFile=function(e){var t=e.key,n=e.bucket;return
lv(this,void 0,void 0,(function(){var e,r,i;return hv(this,(function(o)
{switch(o.label){case 0:return[4,this.prefixPromise];case 1:return e=o.sent(),
[4,fm(this.s3Config,{Bucket:n,Prefix:e+t})];case 2:return
r=o.sent().Contents,i=(void 0===r?[]:r).find((function(n){return
n.Key==="".concat(e).concat(t)})),[2,i]}}))}))},e.prototype._getFileId=function(e)
{return function(e){return void 0!==e&&e instanceof File}(this.file)?
[this.file.name,this.file.lastModified,this.file.size,this.file.type,this.params.Bu
cket,e,this.params.Key].join("-"):
[this.file.size,this.file.type,this.params.Bucket,e,this.params.Key].join("-")},e.p
rototype._findCachedUploadParts=function(){return lv(this,void 0,void 0,(function()
{var e,t,n,r,i,o;return hv(this,(function(s){switch(s.label){case
0:return[4,this._listCachedUploadTasks()];case 1:return e=s.sent(),0!
==Object.keys(e).length&&Object.prototype.hasOwnProperty.call(e,this.fileId)?
((t=e[this.fileId]).lastTouched=Date.now(),this.storage.setItem(vm,JSON.stringify(e
)),r=ev,i=[this.s3Config],o={Bucket:this.params.Bucket},[4,this.prefixPromise]):[2,
{parts:[],uploadId:null}];case
2:return[4,r.apply(void 0,i.concat([(o.Key=s.sent()
+this.params.Key,o.UploadId=t.uploadId,o)]))];case 3:return[2,{parts:void
0===(n=s.sent().Parts)?
[]:n,uploadId:t.uploadId}]}}))}))},e.prototype._emitEvent=function(e,t)
{this.emitter.emit(e,t)},e.prototype._validateParams=function()
{if(this.totalBytes>Cm)throw new Error("File size bigger than S3 Object limit of
5TB, got ".concat(this.totalBytes,"
Bytes"))},e.prototype._listCachedUploadTasks=function(){return lv(this,void 0,void
0,(function(){var e;return hv(this,(function(t){switch(t.label){case
0:return[4,this.storageSync];case 1:return
t.sent(),e=this.storage.getItem(vm)||"{}",
[2,JSON.parse(e)]}}))}))},e.prototype._cache=function(e){return lv(this,void 0,void
0,(function(){var t;return hv(this,(function(n){switch(n.label){case
0:return[4,this._listCachedUploadTasks()];case 1:return(t=n.sent())
[this.fileId]=e,this.storage.setItem(vm,JSON.stringify(t)),
[2]}}))}))},e.prototype._isCached=function(){return lv(this,void 0,void 0,
(function(){var e,t;return hv(this,(function(n){switch(n.label){case 0:return
t=(e=Object.prototype.hasOwnProperty).call,[4,this._listCachedUploadTasks()];case
1:return[2,t.apply(e,
[n.sent(),this.fileId])]}}))}))},e.prototype._removeFromCache=function(){return
lv(this,void 0,void 0,(function(){var e;return hv(this,(function(t){switch(t.label)
{case 0:return[4,this._listCachedUploadTasks()];case 1:return delete(e=t.sent())
[this.fileId],this.storage.setItem(vm,JSON.stringify(e)),
[2]}}))}))},e.prototype._onPartUploadCompletion=function(e){var
t=e.eTag,n=e.partNumber,r=e.chunk;return lv(this,void 0,void 0,(function(){return
hv(this,(function(e){return
this.completedParts.push({ETag:t,PartNumber:n}),this.bytesUploaded+=function(e)
{if("string"==typeof e)return e.length;if(function(e){return void 0!==e&&e
instanceof ArrayBuffer}(e))return e.byteLength;if(function(e){return void 0!==e&&e
instanceof Blob}(e))return e.size;throw new Error("Cannot determine byte length of
"+e)}(r),this._emitEvent(gm.UPLOAD_PROGRESS,
{loaded:this.bytesUploaded,total:this.totalBytes}),this.inProgress=this.inProgress.
filter((function(e){return e.uploadPartInput.PartNumber!
==n})),this.queued.length&&this.state!
==pm.PAUSED&&this._startNextPart(),this._isDone()&&this._completeUpload(),
[2]}))}))},e.prototype._completeUpload=function(){return lv(this,void 0,void 0,
(function(){var e,t,n,r;return hv(this,(function(i){switch(i.label){case 0:return
i.trys.push([0,4,,5]),e=Km,t=[this.s3Config],r={Bucket:this.params.Bucket},
[4,this.prefixPromise];case 1:return[4,e.apply(void 0,t.concat([(r.Key=i.sent()
+this.params.Key,r.UploadId=this.uploadId,r.MultipartUpload={Parts:fv([],dv(this.co
mpletedParts),!1).sort(gv)},r)]))];case 2:return i.sent(),
[4,this._verifyFileSize()];case 3:return
i.sent(),this._emitEvent(gm.UPLOAD_COMPLETE,
{key:this.params.Key}),this._removeFromCache(),this.state=pm.COMPLETED,[3,5];case
4:return n=i.sent(),pv.error("error completing
upload",n),this._emitEvent(gm.ERROR,n),[3,5];case
5:return[2]}}))}))},e.prototype._makeUploadPartRequest=function(e,t){return
lv(this,void 0,void 0,(function(){var n,r,i,o,s,a;return hv(this,(function(c)
{switch(c.label){case 0:return
c.trys.push([0,4,,5]),r=Bm,i=[uv(uv({},this.s3Config),
{abortSignal:t})],o=[uv({},e)],a={},[4,this.prefixPromise];case
1:return[4,r.apply(void 0,i.concat([uv.apply(void 0,o.concat([(a.Key=c.sent()
+this.params.Key,a)]))]))];case 2:return n=c.sent(),
[4,this._onPartUploadCompletion({eTag:n.ETag,partNumber:e.PartNumber,chunk:e.Body})
];case 3:return c.sent(),[3,5];case 4:return s=c.sent(),this.state===pm.PAUSED?
pv.log("upload paused"):this.state===pm.CANCELLED?pv.log("upload
aborted"):pv.error("error starting next part of upload: ",s),Rg(s)||
s.message===xg||(this._emitEvent(gm.ERROR,s),this.pause()),[3,5];case
5:return[2]}}))}))},e.prototype._startNextPart=function()
{if(this.queued.length>0&&this.state!==pm.PAUSED){var e=new
AbortController,t=this.queued.shift();this.inProgress.push({uploadPartInput:t,s3Req
uest:this._makeUploadPartRequest(t,e.signal),abortController:e})}},e.prototype._ver
ifyFileSize=function(){return lv(this,void 0,void 0,(function(){var e,t,n;return
hv(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),
[4,this._listSingleFile({key:this.params.Key,bucket:this.params.Bucket})];case
1:return t=r.sent(),e=Boolean(t&&t.Size===this.file.size),[3,3];case 2:return
n=r.sent(),pv.log("Could not get file on s3 for size matching: ",n),[2];case 3:if(!
e)throw new Error("File size does not match between local file and file on
s3");return[2]}}))}))},e.prototype._isDone=function(){return!this.queued.length&&!
this.inProgress.length&&this.bytesUploaded===this.totalBytes},e.prototype._createPa
rts=function(){for(var e=this.file.size,t=[],n=0;n<e;){var
r=Math.min(n+this.partSize,e);t.push({Body:this.file.slice(n,r),Key:this.params.Key
,Bucket:this.params.Bucket,PartNumber:t.length+1,UploadId:this.uploadId}),n+=this.p
artSize}return t},e.prototype._initCachedUploadParts=function(e)
{this.bytesUploaded+=e.reduce((function(e,t){return e+t.Size}),0);var t=new
Set(e.map((function(e){return
e.PartNumber})));this.queued=this.queued.filter((function(e){return!
t.has(e.PartNumber)})),this.completedParts=e.map((function(e)
{return{PartNumber:e.PartNumber,ETag:e.ETag}})),this._emitEvent(gm.UPLOAD_PROGRESS,
{loaded:this.bytesUploaded,total:this.totalBytes})},e.prototype._initMultipartUploa
d=function(){return lv(this,void 0,void 0,(function(){var e,t,n,r,i;return hv(this,
(function(o){switch(o.label){case 0:return
t=Nm,n=[this.s3Config],r=[uv({},this.params)],i={},[4,this.prefixPromise];case
1:return[4,t.apply(void 0,n.concat([uv.apply(void 0,r.concat([(i.Key=o.sent()
+this.params.Key,i)]))]))];case 2:return
e=o.sent(),this._cache({uploadId:e.UploadId,lastTouched:Date.now(),bucket:this.para
ms.Bucket,key:this.params.Key,fileName:this.file instanceof File?
this.file.name:""}),
[2,e.UploadId]}}))}))},e.prototype._initializeUploadTask=function(){return
lv(this,void 0,void 0,(function(){var e,t,n,r;return hv(this,(function(i)
{switch(i.label){case
0:this.state=pm.IN_PROGRESS,this.partSize=Om(this.totalBytes),i.label=1;case
1:return i.trys.push([1,7,,8]),[4,this._isCached()];case 2:return i.sent()?
[4,this._findCachedUploadParts()]:[3,4];case 3:return
e=i.sent(),t=e.parts,n=e.uploadId,this.uploadId=n,this.queued=this._createParts(),t
his._initCachedUploadParts(t),this._isDone()?
this._completeUpload():this._startUpload(),[3,6];case 4:return this.uploadId?[3,6]:
[4,this._initMultipartUpload()];case
5:n=i.sent(),this.uploadId=n,this.queued=this._createParts(),this._startUpload(),i.
label=6;case 6:return[3,8];case 7:return r=i.sent(),Rg(r)||(pv.error("Error
initializing the upload task",r),this._emitEvent(gm.ERROR,r)),[3,8];case
8:return[2]}}))}))},e.prototype.resume=function(){this.state===pm.CANCELLED?
pv.warn("This task has already been cancelled"):this.state===pm.COMPLETED?
pv.warn("This task has already been completed"):this.state===pm.IN_PROGRESS?
pv.warn("Upload task already in progress"):this.uploadId?
this._startUpload():this._initializeUploadTask()},e.prototype._startUpload=function
(){this.state=pm.IN_PROGRESS;for(var e=0;e<this.queueSize;e+
+)this._startNextPart()},e.prototype._cancel=function(){return lv(this,void 0,void
0,(function(){var e,t,n,r;return hv(this,(function(i){switch(i.label){case 0:return
this.state!==pm.CANCELLED?[3,1]:(pv.warn("This task has already been cancelled"),
[2,!1]);case 1:return this.state!==pm.COMPLETED?[3,2]:(pv.warn("This task has
already been completed"),[2,!1]);case
2:this.pause(),this.queued=[],this.completedParts=[],this.bytesUploaded=0,this.stat
e=pm.CANCELLED,i.label=3;case 3:return
i.trys.push([3,7,,8]),e=$m,t=[this.s3Config],r={Bucket:this.params.Bucket},
[4,this.prefixPromise];case 4:return[4,e.apply(void 0,t.concat([(r.Key=i.sent()
+this.params.Key,r.UploadId=this.uploadId,r)]))];case 5:return i.sent(),
[4,this._removeFromCache()];case 6:return i.sent(),[2,!0];case 7:return
n=i.sent(),pv.error("Error cancelling upload task",n),[2,!1];case
8:return[2]}}))}))},e.prototype.pause=function(){var e;this.state===pm.CANCELLED?
pv.warn("This task has already been cancelled"):this.state===pm.COMPLETED?
pv.warn("This task has already been
completed"):this.state===pm.PAUSED&&pv.warn("This task is already
paused"),this.state=pm.PAUSED;var
t=this.inProgress.splice(0,this.inProgress.length);t.forEach((function(e)
{e.abortController.abort()})),
(e=this.queued).unshift.apply(e,fv([],dv(t.map((function(e){return
e.uploadPartInput}))),!1))},e}(),vv=function(){return vv=Object.assign||function(e)
{for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},vv.apply(this,arguments)},bv=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},yv=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,
e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}
([a,c])}}},wv=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},_v=function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},Ev=new h("AWSS3Provider"),Sv="public",Tv=function()
{function e(e){var t=this;this._config=e||{},this._storage=(new
N).getStorage(),x.listen("auth",(function(e){var n=e.payload;"signOut"!
==n.event&&"signIn"!==n.event||t._storage.removeItem(vm)})),Ev.debug("Storage
Options",this._config)}return e.prototype.getCategory=function(){return
e.CATEGORY},e.prototype.getProviderName=function(){return
e.PROVIDER_NAME},e.prototype.configure=function(e){if(Ev.debug("configure
Storage",e),!e)return this._config;var t=D(e);return
this._config=Object.assign({},this._config,t.Storage),this._config.bucket||
Ev.debug("Do not have bucket
yet"),this._config},e.prototype.startResumableUpload=function(e,t){var
n,r=e.s3Config,i=e.emitter,o=e.key,s=e.file,a=e.params,c=t.progressCallback,u=t.com
pleteCallback,l=t.errorCallback,h=void 0!==(n=t.track)&&n;if(!(s instanceof
Blob))throw new Error(dg.INVALID_BLOB);i.on(gm.UPLOAD_PROGRESS,(function(e)
{c&&("function"==typeof c?c(e):Ev.warn("progressCallback should be a function, not
a "+typeof c))})),i.on(gm.UPLOAD_COMPLETE,(function(e){u&&("function"==typeof u?
u(e):Ev.warn("completeCallback should be a function, not a "+typeof
u))})),i.on(gm.ERROR,(function(e){l&&("function"==typeof l?
l(e):Ev.warn("errorCallback should be a function, not a "+typeof l))}));var
d=Tn.get().then((function(n){var r=Tn.shear(n);return Em(vv(vv({},t),
{level:e.accessLevel,credentials:r}))})),f=new
mv({s3Config:r,file:s,emitter:i,level:e.accessLevel,storage:this._storage,params:a,
prefixPromise:d});return bm(h,"upload",{method:"put",result:"success"},null,"Upload
Task created successfully for
".concat(o)),f.resume(),f},e.prototype.copy=function(e,t,n){return bv(this,void
0,void 0,(function(){var r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C;return
yv(this,(function(O){switch(O.label){case
0:return[4,this._ensureCredentials()];case 1:if(!O.sent()||!
this._isWithCredentials(this._config))throw new
Error(dg.NO_CREDENTIALS);if(r=Object.assign({},this._config,n),i=r.acl,o=r.bucket,s
=r.cacheControl,a=r.expires,c=r.track,u=r.serverSideEncryption,l=r.SSECustomerAlgor
ithm,h=r.SSECustomerKey,d=r.SSECustomerKeyMD5,f=r.SSEKMSKeyId,A=e.level,p=void
0===A?Sv:A,g=e.identityId,m=e.key,C=t.level,v=void 0===C?Sv:C,b=t.key,!m||"string"!
=typeof m)throw new Error(dg.NO_SRC_KEY);if(!b||"string"!=typeof b)throw new
Error(dg.NO_DEST_KEY);"protected"!==p&&g&&Ev.warn('You may copy files from another
user if the source level is "protected", currently it\'s
'.concat(p)),y=this._prefix(vv(vv(vv({},r),
{level:p}),g&&{identityId:g})),w=this._prefix(vv(vv({},r),
{level:v})),_="".concat(o,"/").concat(y).concat(m),E="".concat(w).concat(b),Ev.debu
g("copying ".concat(_," to
").concat(E)),S={Bucket:o,CopySource:_,Key:E,MetadataDirective:"COPY"},s&&(S.CacheC
ontrol=s),a&&(S.Expires=a),u&&(S.ServerSideEncryption=u),l&&(S.SSECustomerAlgorithm
=l),h&&(S.SSECustomerKey=h),d&&(S.SSECustomerKeyMD5=d),f&&(S.SSEKMSKeyId=f),i&&(S.A
CL=i),O.label=2;case 2:return O.trys.push([2,4,,5]),[4,Bg(Tm(vv(vv({},r),
{storageAction:oe.Copy})),S)];case 3:return O.sent(),bm(c,"copy",
{method:"copy",result:"success"},null,"Copy success from ".concat(m," to
").concat(b)),[2,{key:b}];case 4:throw T=O.sent(),bm(c,"copy",
{method:"copy",result:"failed"},null,"Copy failed from ".concat(m," to
").concat(b)),T;case 5:return[2]}}))}))},e.prototype.get=function(e,t){var n;return
bv(this,void 0,void 0,(function(){var
r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C,O,x,I,P,D;return yv(this,
(function(k){switch(k.label){case 0:return[4,this._ensureCredentials()];case 1:if(!
k.sent()||!this._isWithCredentials(this._config))throw new
Error(dg.NO_CREDENTIALS);if(r=Object.assign({},this._config,t),i=r.bucket,o=r.downl
oad,s=r.cacheControl,a=r.contentDisposition,c=r.contentEncoding,u=r.contentLanguage
,l=r.contentType,h=r.expires,d=r.track,f=r.SSECustomerAlgorithm,p=r.SSECustomerKey,
g=r.SSECustomerKeyMD5,m=r.progressCallback,P=r.validateObjectExistence,v=void 0!
==P&&P,b=this._prefix(r),y=b+e,w=new tv.EventEmitter,_=Tm(vv(vv({},r),
{emitter:w,storageAction:oe.Get})),Ev.debug("get "+e+" from
"+y),E={Bucket:i,Key:y},s&&(E.ResponseCacheControl=s),a&&(E.ResponseContentDisposit
ion=a),c&&(E.ResponseContentEncoding=c),u&&(E.ResponseContentLanguage=u),l&&(E.Resp
onseContentType=l),f&&(E.SSECustomerAlgorithm=f),p&&(E.SSECustomerKey=p),g&&(E.SSEC
ustomerKeyMD5=g),!0!==o)return[3,5];k.label=2;case 2:return
k.trys.push([2,4,,5]),m&&("function"==typeof m?w.on(Ag,(function(e)
{m(e)})):Ev.warn("progressCallback should be a function, not a "+typeof m)),
[4,Zg(_,E)];case 3:return S=k.sent(),w.removeAllListeners(Ag),bm(d,"download",
{method:"get",result:"success"},{fileSize:Number(S.Body.size||
S.Body.length)},"Download success for ".concat(e)),[2,S];case 4:throw
T=k.sent(),bm(d,"download",{method:"get",result:"failed"},null,"Download failed
with ".concat(T.message)),T;case 5:if(!v)return[3,9];k.label=6;case 6:return
k.trys.push([6,8,,9]),[4,rm(_,E)];case 7:return k.sent(),[3,9];case 8:throw
A=k.sent(),404===(null===(n=A.$metadata)||void 0===n?void
0:n.httpStatusCode)&&bm(d,"getSignedUrl",
{method:"get",result:"failed"},null,"".concat(e," not found")),A;case 9:return
k.trys.push([9,12,,13]),O=Jg,x=[vv({},_)],D={expiration:h||900},
[4,_.credentials()];case 10:return[4,O.apply(void 0,[vv.apply(void
0,x.concat([(D.credentials=k.sent(),D.signingRegion=_.region,D.signingService="s3",
D)])),E])];case 11:return C=k.sent(),bm(d,"getSignedUrl",
{method:"get",result:"success"},null,"Signed URL: ".concat(C)),[2,C];case 12:throw
I=k.sent(),Ev.warn("get signed url error",I),bm(d,"getSignedUrl",
{method:"get",result:"failed"},null,"Could not get a signed URL for
".concat(e)),I;case 13:return[2]}}))}))},e.prototype.getProperties=function(e,t)
{var n;return bv(this,void 0,void 0,(function(){var
r,i,o,s,a,c,u,l,h,d,f,p,g,m;return yv(this,(function(v){switch(v.label){case
0:return[4,this._ensureCredentials()];case 1:if(!v.sent()||!
this._isWithCredentials(this._config))throw new
Error(dg.NO_CREDENTIALS);r=Object.assign({},this._config,t),i=r.bucket,m=r.track,o=
void 0!
==m&&m,s=r.SSECustomerAlgorithm,a=r.SSECustomerKey,c=r.SSECustomerKeyMD5,u=this._pr
efix(r),l=u+e,Ev.debug("getProperties ".concat(e," from
").concat(l)),h=Tm(vv(vv({},r),
{storageAction:oe.GetProperties})),d={Bucket:i,Key:l},s&&(d.SSECustomerAlgorithm=s)
,a&&(d.SSECustomerKey=a),c&&(d.SSECustomerKeyMD5=c),v.label=2;case 2:return
v.trys.push([2,4,,5]),[4,rm(h,d)];case 3:return
f=v.sent(),p={contentLength:f.ContentLength,contentType:f.ContentType,eTag:f.ETag,l
astModified:f.LastModified,metadata:f.Metadata},bm(o,"getProperties",
{method:"getProperties",result:"success"},null,"getProperties successful for
".concat(e)),[2,p];case 4:throw g=v.sent(),404===(null===(n=g.$metadata)||void
0===n?void 0:n.httpStatusCode)&&bm(o,"getProperties",
{method:"getProperties",result:"failed"},null,"".concat(e," not found")),g;case
5:return[2]}}))}))},e.prototype.put=function(e,t,n){var
r=Object.assign({},this._config,n),i=r.bucket,o=r.track,s=r.progressCallback,a=r.le
vel,c=r.resumable,u=r.contentType,l=r.contentDisposition,h=r.contentEncoding,d=r.ca
cheControl,f=r.expires,p=r.metadata,g=r.tagging,m=r.acl,v=r.serverSideEncryption,b=
r.SSECustomerAlgorithm,y=r.SSECustomerKey,w=r.SSECustomerKeyMD5,_=r.SSEKMSKeyId,E={
Bucket:i,Key:e,Body:t,ContentType:u||"binary/octet-
stream"};d&&(E.CacheControl=d),l&&(E.ContentDisposition=l),h&&(E.ContentEncoding=h)
,f&&(E.Expires=f),p&&(E.Metadata=p),g&&(E.Tagging=g),v&&(E.ServerSideEncryption=v),
b&&(E.SSECustomerAlgorithm=b),y&&(E.SSECustomerKey=y),w&&(E.SSECustomerKeyMD5=w),_&
&(E.SSEKMSKeyId=_);var S=new tv.EventEmitter,T=new cv(E,r,S);if(m&&(E.ACL=m),!
0===c){var A=Tm(vv(vv({},r),
{storageAction:oe.Put})),C={bucket:i,key:e,s3Config:A,file:t,emitter:S,accessLevel:
a,params:E};return this.startResumableUpload(C,n)}try{return s&&("function"==typeof
s?S.on(Tg,(function(e){s(e)})):Ev.warn("progressCallback should be a function, not
a "+typeof s)),T.upload().then((function(t){return Ev.debug("upload
result",t),bm(o,"upload",{method:"put",result:"success"},null,"Upload success for
".concat(e)),{key:e}}))}catch(t){throw Ev.warn("error uploading",t),bm(o,"upload",
{method:"put",result:"failed"},null,"Error uploading
".concat(e)),t}},e.prototype.remove=function(e,t){return bv(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l;return yv(this,(function(h){switch(h.label){case
0:return[4,this._ensureCredentials()];case 1:if(!h.sent()||!
this._isWithCredentials(this._config))throw new
Error(dg.NO_CREDENTIALS);n=Object.assign({},this._config,t),r=n.bucket,i=n.track,o=
this._prefix(n),s=o+e,Ev.debug("remove "+e+" from
"+s),a={Bucket:r,Key:s},c=Tm(vv(vv({},n),{storageAction:oe.Remove})),h.label=2;case
2:return h.trys.push([2,4,,5]),[4,om(c,a)];case 3:return u=h.sent(),bm(i,"delete",
{method:"remove",result:"success"},null,"Deleted ".concat(e," successfully")),
[2,u];case 4:throw l=h.sent(),bm(i,"delete",
{method:"remove",result:"failed"},null,"Deletion of ".concat(e," failed with
").concat(l)),l;case 5:return[2]}}))}))},e.prototype._list=function(e,t,n){return
bv(this,void 0,void 0,(function(){var r,i;return yv(this,(function(o)
{switch(o.label){case 0:return r={results:[],hasNextToken:!1},[4,fm(Tm(vv(vv({},t),
{storageAction:oe.List})),vv({},e))];case
1:return(i=o.sent())&&i.Contents&&(r.results=i.Contents.map((function(e)
{return{key:e.Key.substr(n.length),eTag:e.ETag,lastModified:e.LastModified,size:e.S
ize}})),r.nextToken=i.NextContinuationToken,r.hasNex
tToken=i.IsTruncated),[2,r]}}))}))},e.prototype.list=function(e,t){return
bv(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g;return yv(this,
(function(m){switch(m.label){case 0:return[4,this._ensureCredentials()];case 1:if(!
m.sent()||!this._isWithCredentials(this._config))throw new
Error(dg.NO_CREDENTIALS);n=Object.assign({},this._config,t),r=n.bucket,i=n.track,o=
n.pageSize,s=n.nextToken,a=this._prefix(n),c=a+e,Ev.debug("list "+e+" from
"+c),m.label=2;case 2:if(m.trys.push([2,10,,11]),u={results:[],hasNextToken:!
1},h=void 0,
(d={Bucket:r,Prefix:c,MaxKeys:l=1e3,ContinuationToken:s}).ContinuationToken=s,"ALL"
!==o)return[3,7];m.label=3;case 3:return[4,this._list(d,n,a)];case 4:h=m.sent(),
(p=u.results).push.apply(p,_v([],wv(h.results),!
1)),h.nextToken&&(d.ContinuationToken=h.nextToken),m.label=5;case
5:if(h.nextToken)return[3,3];m.label=6;case 6:return[3,9];case 7:return
o&&o<=l&&"number"==typeof o?d.MaxKeys=o:Ev.warn("pageSize should be from 0 -
".concat(l,".")),[4,this._list(d,n,a)];case 8:h=m.sent(),
(g=u.results).push.apply(g,_v([],wv(h.results),!
1)),u.hasNextToken=h.hasNextToken,u.nextToken=h.nextToken,m.label=9;case 9:return
bm(i,"list",{method:"list",result:"success"},null,"".concat(u.results.length,"
items returned from list operation")),Ev.debug("list",u),[2,u];case 10:throw
f=m.sent(),Ev.error("list InvalidArgument",f),bm(i,"list",
{method:"list",result:"failed"},null,"Listing items failed:
".concat(f.message)),f;case
11:return[2]}}))}))},e.prototype._ensureCredentials=function(){return bv(this,void
0,void 0,(function(){var e,t,n;return yv(this,(function(r){switch(r.label){case
0:return r.trys.push([0,2,,3]),[4,Tn.get()];case 1:return(e=r.sent())?
(t=Tn.shear(e),Ev.debug("set credentials for
storage",t),this._config.credentials=t,[2,!0]):[2,!1];case 2:return
n=r.sent(),Ev.warn("ensure credentials error",n),[2,!1];case
3:return[2]}}))}))},e.prototype._isWithCredentials=function(e)
{return"object"==typeof
e&&e.hasOwnProperty("credentials")},e.prototype._prefix=function(e){var
t=e.credentials,n=e.level,r=e.customPrefix||{},i=e.identityId||t.identityId,o=(void
0!==r.private?r.private:"private/")+i+"/",s=(void 0!==r.protected?
r.protected:"protected/")+i+"/",a=void 0!==r.public?r.public:"public/";switch(n)
{case"private":return o;case"protected":return s;default:return
a}},e.CATEGORY="Storage",e.PROVIDER_NAME="AWSS3",e}(),Av=function(){return
Av=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Av.apply(this,arguments)},Cv=new h("StorageClass"),Ov=new
h("Storage"),xv="AWSS3",Iv=function(){function e()
{this._config={},this._pluggables=[],this._abortControllerMap=new
WeakMap,Cv.debug("Storage
Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),th
is.remove=this.remove.bind(this),this.list=this.list.bind(this)}return
e.prototype.getModuleName=function()
{return"Storage"},e.prototype.addPluggable=function(e)
{if(e&&"Storage"===e.getCategory())return
this._pluggables.push(e),e.configure(this._config[e.getProviderName()])},e.prototyp
e.getPluggable=function(e){var t=this._pluggables.find((function(t){return
t.getProviderName()===e}));return void 0===t?(Cv.debug("No plugin found with
providerName",e),null):t},e.prototype.removePluggable=function(e)
{this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!
==e}))},e.prototype.configure=function(e){var t,n=this;if(Cv.debug("configure
Storage"),!e)return this._config;var r=null!==(t=D(e).Storage)&&void 0!==t?t:
{},i=["bucket","region","level","track","customPrefix","ContentMD5","serverSideEncr
yption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"];
return function(e){return Object.keys(e).find((function(e){return i.includes(e)}))}
(r)&&!r[xv]&&(r[xv]={}),Object.entries(r).forEach((function(e){var t=function(e,t)
{var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}
(e,2),n=t[0],o=t[1];n&&i.includes(n)&&void 0!==o&&(r[xv][n]=o,delete
r[n])})),Object.keys(r).forEach((function(e){"string"!=typeof
r[e]&&(n._config[e]=Av(Av({},n._config[e]),r[e]))})),this._pluggables.forEach((func
tion(e)
{e.configure(n._config[e.getProviderName()])})),0===this._pluggables.length&&this.a
ddPluggable(new Tv),this._config},e.prototype.getAbortController=function(){return
new AbortController},e.prototype.updateRequestToBeCancellable=function(e,t)
{this._abortControllerMap.set(e,t)},e.prototype.isUploadTask=function(e){return
void 0!==e&&"function"==typeof e.pause&&"function"==typeof
e.resume},e.prototype.cancel=function(e,t){if(e instanceof mv)return
e._cancel();var n=this._abortControllerMap.get(e);n?n.abort(t):Cv.debug("The
request does not map to any cancel token")},e.prototype.copy=function(e,t,n){var
r=(null==n?void 0:n.provider)||xv,i=this._pluggables.find((function(e){return
e.getProviderName()===r}));if(void 0===i)return Cv.debug("No plugin found with
providerName",r),Promise.reject("No plugin found in Storage for the provider");var
o=this.getAbortController();if("function"!=typeof i.copy)return
Promise.reject(".copy is not implemented on provider
".concat(i.getProviderName()));var s=i.copy(e,t,Av(Av({},n),
{abortSignal:o.signal}));return
this.updateRequestToBeCancellable(s,o),s},e.prototype.get=function(e,t){var
n=(null==t?void 0:t.provider)||xv,r=this._pluggables.find((function(e){return
e.getProviderName()===n}));if(void 0===r)return Cv.debug("No plugin found with
providerName",n),Promise.reject("No plugin found in Storage for the provider");var
i=this.getAbortController(),o=r.get(e,Av(Av({},t),{abortSignal:i.signal}));return
this.updateRequestToBeCancellable(o,i),o},e.prototype.isCancelError=function(e)
{return Rg(e)},e.prototype.getProperties=function(e,t){var n=(null==t?void
0:t.provider)||xv,r=this._pluggables.find((function(e){return
e.getProviderName()===n}));if(void 0===r)throw Cv.debug("No plugin found with
providerName",n),new Error("No plugin found with providerName");var
i=this.getAbortController();if("function"!=typeof r.getProperties)return
Promise.reject(".getProperties is not implemented on provider
".concat(r.getProviderName()));var o=null==r?void
0:r.getProperties(e,Av({},t));return
this.updateRequestToBeCancellable(o,i),o},e.prototype.put=function(e,t,n){var
r=(null==n?void 0:n.provider)||xv,i=this._pluggables.find((function(e){return
e.getProviderName()===r}));if(void 0===i)return Cv.debug("No plugin found with
providerName",r),Promise.reject("No plugin found in Storage for the provider");var
o=this.getAbortController(),s=i.put(e,t,Av(Av({},n),{abortSignal:o.signal}));return
this.isUploadTask(s)||
this.updateRequestToBeCancellable(s,o),s},e.prototype.remove=function(e,t){var
n=(null==t?void 0:t.provider)||xv,r=this._pluggables.find((function(e){return
e.getProviderName()===n}));return void 0===r?(Cv.debug("No plugin found with
providerName",n),Promise.reject("No plugin found in Storage for the
provider")):r.remove(e,t)},e.prototype.list=function(e,t){var n=(null==t?void
0:t.provider)||xv,r=this._pluggables.find((function(e){return
e.getProviderName()===n}));return void 0===r?(Cv.debug("No plugin found with
providerName",n),Promise.reject("No plugin found in Storage for the
provider")):r.list(e,t)},e}(),Pv=null,Dv=function(){if(Pv)return
Pv;Ov.debug("Create Storage Instance, debug"),(Pv=new Iv).vault=new Iv;var
e=Pv.configure;return Pv.configure=function(t){Ov.debug("storage configure
called");var n=Av({},e.call(Pv,t));Object.keys(n).forEach((function(e){"string"!
=typeof n[e]&&(n[e]=Av(Av({},n[e]),{level:"private"}))})),Ov.debug("storage vault
configure called"),Pv.vault.configure(n)},Pv}();p.register(Dv);var kv=function(e,t)
{return kv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},kv(e,t)},Rv=function(){return
Rv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Rv.apply(this,arguments)};var Mv=function(e,t){return Mv=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var
n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Mv(e,t)},Nv=function(){return
Nv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Nv.apply(this,arguments)};function Lv(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function Fv(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw
o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function jv(e,t){var
n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var
r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!
(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!
r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Bv(e)
{return Bv="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},Bv(e)}"function"==typeof Symbol&&null!
=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!
=Symbol.asyncIterator&&Symbol.asyncIterator;var Uv="function"==typeof Symbol&&null!
=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Hv(e,t){for(var
n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-
(n.index+n[0].length);return{line:i,column:o}}function Gv(e){return
zv(e.source,Hv(e.source,e.start))}function zv(e,t){var n=e.locationOffset.column-
1,r=Wv(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?
n:0,c=t.column+a,u="".concat(e.name,":").concat(s,":").concat(c,"\n"),l=r.split(/\
r\n|[\n\r]/g),h=l[i];if(h.length>120){for(var d=Math.floor(c/80),f=c
%80,p=[],g=0;g<h.length;g+=80)p.push(h.slice(g,g+80));return
u+Vv([["".concat(s),p[0]]].concat(p.slice(1,d+1).map((function(e){return["",e]})),
[[" ",Wv(f-1)+"^"],["",p[d+1]]]))}return u+Vv([["".concat(s-1),l[i-1]],
["".concat(s),h],["",Wv(c-1)+"^"],["".concat(s+1),l[i+1]]])}function Vv(e){var
t=e.filter((function(e){return e[0],void 0!
==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return
t.map((function(e){var t,r=e[0],i=e[1];return Wv(n-(t=r).length)+t+(i?" | "+i:"
|")})).join("\n")}function Wv(e){return Array(e+1).join(" ")}function qv(e){return
qv="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},qv(e)}function Kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return
n}function Yv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!
0,configurable:!0,writable:!0}):e[t]=n,e}function $v(e,t){for(var n=0;n<t.length;n+
+){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in
r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qv(e,t){return!
t||"object"!==qv(t)&&"function"!=typeof t?Xv(e):t}function Xv(e){if(void
0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been
called");return e}function Zv(e){var t="function"==typeof Map?new Map:void 0;return
Zv=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native
code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super
expression must either be null or a function");if(void 0!==t){if(t.has(e))return
t.get(e);t.set(e,r)}function r(){return Jv(e,arguments,nb(this).constructor)}return
r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!
1,writable:!0,configurable:!0}}),tb(r,e)},Zv(e)}function Jv(e,t,n){return Jv=eb()?
Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var
i=new(Function.bind.apply(e,r));return
n&&tb(i,n.prototype),i},Jv.apply(null,arguments)}function eb()
{if("undefined"==typeof Reflect||!Reflect.construct)return!
1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!
0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function()
{}))),!0}catch(e){return!1}}function tb(e,t){return tb=Object.setPrototypeOf||
function(e,t){return e.__proto__=t,e},tb(e,t)}function nb(e){return
nb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||
Object.getPrototypeOf(e)},nb(e)}var rb=function(e){!function(e,t){if("function"!
=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a
function");e.prototype=Object.create(t&&t.prototype,{constructor:
{value:e,writable:!0,configurable:!0}}),t&&tb(e,t)}(s,e);var
t,n,r,i,o=(t=s,n=eb(),function(){var e,r=nb(t);if(n){var
i=nb(this).constructor;e=Reflect.construct(r,arguments,i)}else
e=r.apply(this,arguments);return Qv(this,e)});function s(e,t,n,r,i,a,c){var
u,l,h,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a
class as a function")}(this,s),
(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=a?a:void
0,d.nodes=ib(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],p=0,g=null!
==(m=d.nodes)&&void 0!==m?m:[];p<g.length;p++){var m,v=g[p].loc;null!
=v&&f.push(v)}f=ib(f),d.source=null!=n?n:null===(u=f)||void 0===u?void
0:u[0].source,d.positions=null!=r?r:null===(l=f)||void 0===l?void
0:l.map((function(e){return e.start})),d.locations=r&&n?r.map((function(e){return
Hv(n,e)})):null===(h=f)||void 0===h?void 0:h.map((function(e){return
Hv(e.source,e.start)})),d.path=null!=i?i:void 0;var b,y=null==a?void
0:a.extensions;return null==c&&"object"==Bv(b=y)&&null!==b?d.extensions=function(e)
{for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?
Kv(Object(n),!0).forEach((function(t)
{Yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEac
h((function(t)
{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
({},y):d.extensions=null!=c?c:{},Object.defineProperties(Xv(d),{message:
{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!
=d.path},extensions:{enumerable:null!
=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:
{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:
{enumerable:!1}}),null!=a&&a.stack?(Object.defineProperty(Xv(d),"stack",
{value:a.stack,writable:!0,configurable:!0}),Qv(d)):(Error.captureStackTrace?
Error.captureStackTrace(Xv(d),s):Object.defineProperty(Xv(d),"stack",
{value:Error().stack,writable:!0,configurable:!0}),d)}return r=s,
(i=[{key:"toString",value:function(){return function(e){var
t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var
i=r[n];i.loc&&(t+="\n\n"+Gv(i.loc))}else if(e.source&&e.locations)for(var
o=0,s=e.locations;o<s.length;o++){var a=s[o];t+="\n\n"+zv(e.source,a)}return t}
(this)}},{key:Uv,get:function(){return"Object"}}])&&$v(r.prototype,i),s}
(Zv(Error));function ib(e){return void 0===e||0===e.length?void 0:e}function
ob(e,t,n){return new rb("Syntax Error: ".concat(n),void 0,e,[t])}var
sb=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDe
finition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIE
LD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"In
lineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"Int
Value",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullVal
ue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectFiel
d",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:
"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"Opera
tionTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFIN
ITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINIT
ION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNIO
N_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",E
NUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjec
tTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"Schem
aExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"Obje
ctTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTEN
SION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE
_EXTENSION:"InputObjectTypeExtension"});const ab="function"==typeof
Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void
0;function cb(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!
Boolean(0))throw new Error("Unexpected invariant triggered.")}
(),e.prototype.inspect=t,ab&&(e.prototype[ab]=t)}var ub=function(){function
e(e,t,n)
{this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}
return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}
();cb(ub);var lb=function(){function e(e,t,n,r,i,o,s)
{this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=s,this.pr
ev=o,this.next=null}return e.prototype.toJSON=function()
{return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}
();function hb(e){return null!=e&&"string"==typeof e.kind}cb(lb);var
db=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",P
AREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRA
CE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",B
LOCK_STRING:"BlockString",COMMENT:"Comment"});function fb(e){return
fb="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},fb(e)}var
pb=10,gb=2;function mb(e){return vb(e,[])}function vb(e,t){switch(fb(e))
{case"string":return JSON.stringify(e);case"function":return e.name?"[function
".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t)
{if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var
t=e[String(ab)];return"function"==typeof t?t:"function"==typeof e.inspect?
e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof
i?i:vb(i,n)}else if(Array.isArray(e))return function(e,t)
{if(0===e.length)return"[]";if(t.length>gb)return"[Array]";for(var
n=Math.min(pb,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(vb(e[o],t));return
1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more
items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var
n=Object.keys(e);return 0===n.length?"{}":t.length>gb?"["+function(e){var
t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]
$/,"");if("Object"===t&&"function"==typeof e.constructor){var
n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)
+"]":"{ "+n.map((function(n){return n+": "+vb(e[n],t)})).join(", ")+" }"}(e,n)}
(e,t);default:return String(e)}}function bb(e,t){if(!Boolean(e))throw new
Error(t)}function yb(e,t){for(var n=0;n<t.length;n++){var
r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!
0),Object.defineProperty(e,r.key,r)}}var wb=function(){function e(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL
request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{line:1,column:1};"string"==typeof e||bb(0,"Body must be a string. Received:
".concat(mb(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOff
set.line>0||bb(0,"line in locationOffset is 1-indexed and must be
positive."),this.locationOffset.column>0||bb(0,"column in locationOffset is 1-
indexed and must be positive.")}var t,n;return t=e,(n=[{key:Uv,get:function()
{return"Source"}}])&&yb(t.prototype,n),e}
(),_b=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",
FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_S
PREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",
SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION"
,ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM
:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:
"INPUT_FIELD_DEFINITION"});function Eb(e){var
t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!
0,i=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case
13:10===e.charCodeAt(s+1)&&++s;case 10:n=!1,r=!0,i=0;break;case 9:case 32:+
+i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!
==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var
i=0;i<t.length&&Sb(t[i]);)++i;for(var o=t.length;o>i&&Sb(t[o-1]);)--o;return
t.slice(i,o).join("\n")}function Sb(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\
t"!==e[t])return!1;return!0}var Tb=function(){function e(e){var t=new
lb(db.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,thi
s.lineStart=0}var t=e.prototype;return t.advance=function(){return
this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var
e=this.token;if(e.kind!==db.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?
t:e.next=Cb(this,e)}while(e.kind===db.COMMENT);return e},e}();function Ab(e){return
isNaN(e)?db.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\
u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Cb(e,t)
{for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var
s=r.charCodeAt(o),a=e.line,c=1+o-e.lineStart;switch(s){case 65279:case 9:case
32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case
13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return
new lb(db.BANG,o,o+1,a,c,t);case 35:return xb(n,o,a,c,t);case 36:return new
lb(db.DOLLAR,o,o+1,a,c,t);case 38:return new lb(db.AMP,o,o+1,a,c,t);case 40:return
new lb(db.PAREN_L,o,o+1,a,c,t);case 41:return new lb(db.PAREN_R,o,o+1,a,c,t);case
46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new
lb(db.SPREAD,o,o+3,a,c,t);break;case 58:return new lb(db.COLON,o,o+1,a,c,t);case
61:return new lb(db.EQUALS,o,o+1,a,c,t);case 64:return new
lb(db.AT,o,o+1,a,c,t);case 91:return new lb(db.BRACKET_L,o,o+1,a,c,t);case
93:return new lb(db.BRACKET_R,o,o+1,a,c,t);case 123:return new
lb(db.BRACE_L,o,o+1,a,c,t);case 124:return new lb(db.PIPE,o,o+1,a,c,t);case
125:return new lb(db.BRACE_R,o,o+1,a,c,t);case 34:return
34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?kb(n,o,a,c,t,e):Db(n,o,a,c,t);case
45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case
57:return Ib(n,o,s,a,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case
71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case
81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case
95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case
105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case
114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return
Nb(n,o,a,c,t)}throw ob(n,o,Ob(s))}var u=e.line,l=1+o-e.lineStart;return new
lb(db.EOF,i,i,u,l,t)}function Ob(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot
contain the invalid character ".concat(Ab(e),"."):39===e?"Unexpected single quote
character ('), did you mean to use a double quote (\")?":"Cannot parse the
unexpected character ".concat(Ab(e),".")}function xb(e,t,n,r,i){var
o,s=e.body,a=t;do{o=s.charCodeAt(++a)}while(!isNaN(o)&&(o>31||9===o));return new
lb(db.COMMENT,t,a,n,r,i,s.slice(t+1,a))}function Ib(e,t,n,r,i,o){var
s=e.body,a=n,c=t,u=!1;if(45===a&&(a=s.charCodeAt(++c)),48===a){if((a=s.charCodeAt(+
+c))>=48&&a<=57)throw ob(e,c,"Invalid number, unexpected digit after 0:
".concat(Ab(a),"."))}else c=Pb(e,c,a),a=s.charCodeAt(c);if(46===a&&(u=!
0,a=s.charCodeAt(++c),c=Pb(e,c,a),a=s.charCodeAt(c)),69!==a&&101!==a||(u=!0,43!
==(a=s.charCodeAt(++c))&&45!==a||(a=s.charCodeAt(+
+c)),c=Pb(e,c,a),a=s.charCodeAt(c)),46===a||function(e){return 95===e||
e>=65&&e<=90||e>=97&&e<=122}(a))throw ob(e,c,"Invalid number, expected digit but
got: ".concat(Ab(a),"."));return new lb(u?
db.FLOAT:db.INT,t,c,r,i,o,s.slice(t,c))}function Pb(e,t,n){var
r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return
i}throw ob(e,i,"Invalid number, expected digit but got:
".concat(Ab(o),"."))}function Db(e,t,n,r,i){for(var
o=e.body,s=t+1,a=s,c=0,u="";s<o.length&&!isNaN(c=o.charCodeAt(s))&&10!==c&&13!==c;)
{if(34===c)return u+=o.slice(a,s),new lb(db.STRING,t,s+1,n,r,i,u);if(c<32&&9!
==c)throw ob(e,s,"Invalid character within String: ".concat(Ab(c),"."));if(+
+s,92===c){switch(u+=o.slice(a,s-1),c=o.charCodeAt(s)){case 34:u+='"';break;case
47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\
f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+="\t";break;case
117:var
l=Rb(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(l<
0){var h=o.slice(s+1,s+5);throw ob(e,s,"Invalid character escape sequence: \\
u".concat(h,"."))}u+=String.fromCharCode(l),s+=4;break;default:throw
ob(e,s,"Invalid character escape
sequence: \\".concat(String.fromCharCode(c),"."))}a=++s}}throw ob(e,s,"Unterminated
string.")}function kb(e,t,n,r,i,o){for(var
s=e.body,a=t+3,c=a,u=0,l="";a<s.length&&!isNaN(u=s.charCodeAt(a));)
{if(34===u&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2))return
l+=s.slice(c,a),new lb(db.BLOCK_STRING,t,a+3,n,r,i,Eb(l));if(u<32&&9!==u&&10!
==u&&13!==u)throw ob(e,a,"Invalid character within String:
".concat(Ab(u),"."));10===u?(++a,++o.line,o.lineStart=a):13===u?
(10===s.charCodeAt(a+1)?a+=2:++a,+
+o.line,o.lineStart=a):92===u&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2)&&34==
=s.charCodeAt(a+3)?(l+=s.slice(c,a)+'"""',c=a+=4):++a}throw ob(e,a,"Unterminated
string.")}function Rb(e,t,n,r){return Mb(e)<<12|Mb(t)<<8|Mb(n)<<4|Mb(r)}function
Mb(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function
Nb(e,t,n,r,i){for(var o=e.body,s=o.length,a=t+1,c=0;a!==s&&!
isNaN(c=o.charCodeAt(a))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)+
+a;return new lb(db.NAME,t,a,n,r,i,o.slice(t,a))}function Lb(e,t){return new
Fb(e,t).parseDocument()}var Fb=function(){function e(e,t){var n=function(e){return
e instanceof wb}(e)?e:new wb(e);this._lexer=new Tb(n),this._options=t}var
t=e.prototype;return t.parseName=function(){var
e=this.expectToken(db.NAME);return{kind:sb.NAME,value:e.value,loc:this.loc(e)}},t.p
arseDocument=function(){var
e=this._lexer.token;return{kind:sb.DOCUMENT,definitions:this.many(db.SOF,this.parse
Definition,db.EOF),loc:this.loc(e)}},t.parseDefinition=function()
{if(this.peek(db.NAME))switch(this._lexer.token.value)
{case"query":case"mutation":case"subscription":return
this.parseOperationDefinition();case"fragment":return
this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface"
:case"union":case"enum":case"input":case"directive":return
this.parseTypeSystemDefinition();case"extend":return
this.parseTypeSystemExtension()}else{if(this.peek(db.BRACE_L))return
this.parseOperationDefinition();if(this.peekDescription())return
this.parseTypeSystemDefinition()}throw
this.unexpected()},t.parseOperationDefinition=function(){var
e=this._lexer.token;if(this.peek(db.BRACE_L))return{kind:sb.OPERATION_DEFINITION,op
eration:"query",name:void 0,variableDefinitions:[],directives:
[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var
t,n=this.parseOperationType();return this.peek(db.NAME)&&(t=this.parseName()),
{kind:sb.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVari
ableDefinitions(),directives:this.parseDirectives(!
1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=fun
ction(){var e=this.expectToken(db.NAME);switch(e.value)
{case"query":return"query";case"mutation":return"mutation";case"subscription":retur
n"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function()
{return
this.optionalMany(db.PAREN_L,this.parseVariableDefinition,db.PAREN_R)},t.parseVaria
bleDefinition=function(){var
e=this._lexer.token;return{kind:sb.VARIABLE_DEFINITION,variable:this.parseVariable(
),type:(this.expectToken(db.COLON),this.parseTypeReference()),defaultValue
:this.expectOptionalToken(db.EQUALS)?this.parseValueLiteral(!0):void
0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function()
{var e=this._lexer.token;return this.expectToken(db.DOLLAR),
{kind:sb.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=funct
ion(){var
e=this._lexer.token;return{kind:sb.SELECTION_SET,selections:this.many(db.BRACE_L,th
is.parseSelection,db.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return
this.peek(db.SPREAD)?
this.parseFragment():this.parseField()},t.parseField=function(){var
e,t,n=this._lexer.token,r=this.parseName();return
this.expectOptionalToken(db.COLON)?(e=r,t=this.parseName()):t=r,
{kind:sb.FIELD,alias:e,name:t,arguments:this.parseArguments(!
1),directives:this.parseDirectives(!1),selectionSet:this.peek(db.BRACE_L)?
this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var
t=e?this.parseConstArgument:this.parseArgument;return
this.optionalMany(db.PAREN_L,t,db.PAREN_R)},t.parseArgument=function(){var
e=this._lexer.token,t=this.parseName();return this.expectToken(db.COLON),
{kind:sb.ARGUMENT,name:t,value:this.parseValueLiteral(!
1),loc:this.loc(e)}},t.parseConstArgument=function(){var
e=this._lexer.token;return{kind:sb.ARGUMENT,name:this.parseName(),value:
(this.expectToken(db.COLON),this.parseValueLiteral(!
0)),loc:this.loc(e)}},t.parseFragment=function(){var
e=this._lexer.token;this.expectToken(db.SPREAD);var
t=this.expectOptionalKeyword("on");return!t&&this.peek(db.NAME)?
{kind:sb.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirecti
ves(!1),loc:this.loc(e)}:{kind:sb.INLINE_FRAGMENT,typeCondition:t?
this.parseNamedType():void 0,directives:this.parseDirectives(!
1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinitio
n=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!
0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?
{kind:sb.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this
.parseVariableDefinitions(),typeCondition:
(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!
1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:
{kind:sb.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:
(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!
1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=func
tion(){if("on"===this._lexer.token.value)throw this.unexpected();return
this.parseName()},t.parseValueLiteral=function(e){var
t=this._lexer.token;switch(t.kind){case db.BRACKET_L:return this.parseList(e);case
db.BRACE_L:return this.parseObject(e);case db.INT:return this._lexer.advance(),
{kind:sb.INT,value:t.value,loc:this.loc(t)};case db.FLOAT:return
this._lexer.advance(),{kind:sb.FLOAT,value:t.value,loc:this.loc(t)};case
db.STRING:case db.BLOCK_STRING:return this.parseStringLiteral();case
db.NAME:switch(this._lexer.advance(),t.value)
{case"true":return{kind:sb.BOOLEAN,value:!
0,loc:this.loc(t)};case"false":return{kind:sb.BOOLEAN,value:!
1,loc:this.loc(t)};case"null":return{kind:sb.NULL,loc:this.loc(t)};default:return{k
ind:sb.ENUM,value:t.value,loc:this.loc(t)}}case db.DOLLAR:if(!e)return
this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var
e=this._lexer.token;return this._lexer.advance(),
{kind:sb.STRING,value:e.value,block:e.kind===db.BLOCK_STRING,loc:this.loc(e)}},t.pa
rseList=function(e){var
t=this,n=this._lexer.token;return{kind:sb.LIST,values:this.any(db.BRACKET_L,
(function(){return
t.parseValueLiteral(e)}),db.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e)
{var t=this,n=this._lexer.token;return{kind:sb.OBJECT,fields:this.any(db.BRACE_L,
(function(){return
t.parseObjectField(e)}),db.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e
){var t=this._lexer.token,n=this.parseName();return this.expectToken(db.COLON),
{kind:sb.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.pa
rseDirectives=function(e){for(var
t=[];this.peek(db.AT);)t.push(this.parseDirective(e));return
t},t.parseDirective=function(e){var t=this._lexer.token;return
this.expectToken(db.AT),
{kind:sb.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.
loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return
this.expectOptionalToken(db.BRACKET_L)?
(e=this.parseTypeReference(),this.expectToken(db.BRACKET_R),e={kind:sb.LIST_TYPE,ty
pe:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(db.BANG)?
{kind:sb.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var
e=this._lexer.token;return{kind:sb.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)
}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?
this._lexer.lookahead():this._lexer.token;if(e.kind===db.NAME)switch(e.value)
{case"schema":return this.parseSchemaDefinition();case"scalar":return
this.parseScalarTypeDefinition();case"type":return
this.parseObjectTypeDefinition();case"interface":return
this.parseInterfaceTypeDefinition();case"union":return
this.parseUnionTypeDefinition();case"enum":return
this.parseEnumTypeDefinition();case"input":return
this.parseInputObjectTypeDefinition();case"directive":return
this.parseDirectiveDefinition()}throw
this.unexpected(e)},t.peekDescription=function(){return this.peek(db.STRING)||
this.peek(db.BLOCK_STRING)},t.parseDescription=function()
{if(this.peekDescription())return
this.parseStringLiteral()},t.parseSchemaDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var
n=this.parseDirectives(!
0),r=this.many(db.BRACE_L,this.parseOperationTypeDefinition,db.BRACE_R);return{kind
:sb.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}}
,t.parseOperationTypeDefinition=function(){var
e=this._lexer.token,t=this.parseOperationType();this.expectToken(db.COLON);var
n=this.parseNamedType();return{kind:sb.OPERATION_TYPE_DEFINITION,operation:t,type:n
,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var
n=this.parseName(),r=this.parseDirectives(!
0);return{kind:sb.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this
.loc(e)}},t.parseObjectTypeDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var
n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!
0),o=this.parseFieldsDefinition();return{kind:sb.OBJECT_TYPE_DEFINITION,description
:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInt
erfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!
0===(null===(e=this._options)||void 0===e?void
0:e.allowLegacySDLImplementsInterfaces)){var
t=[];this.expectOptionalToken(db.AMP);do{t.push(this.parseNamedType())}while(this.e
xpectOptionalToken(db.AMP)||this.peek(db.NAME));return t}return
this.delimitedMany(db.AMP,this.parseNamedType)},t.parseFieldsDefinition=function()
{var e;return!0===(null===(e=this._options)||void 0===e?void
0:e.allowLegacySDLEmptyFields)&&this.peek(db.BRACE_L)&&this._lexer.lookahead().kind
===db.BRACE_R?(this._lexer.advance(),this._lexer.advance(),
[]):this.optionalMany(db.BRACE_L,this.parseFieldDefinition,db.BRACE_R)},t.parseFiel
dDefinition=function(){var
e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgume
ntDefs();this.expectToken(db.COLON);var
i=this.parseTypeReference(),o=this.parseDirectives(!
0);return{kind:sb.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directiv
es:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return
this.optionalMany(db.PAREN_L,this.parseInputValueDef,db.PAREN_R)},t.parseInputValue
Def=function(){var
e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(d
b.COLON);var
r,i=this.parseTypeReference();this.expectOptionalToken(db.EQUALS)&&(r=this.parseVal
ueLiteral(!0));var o=this.parseDirectives(!
0);return{kind:sb.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r
,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var
n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!
0),o=this.parseFieldsDefinition();return{kind:sb.INTERFACE_TYPE_DEFINITION,descript
ion:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeD
efinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var
n=this.parseName(),r=this.parseDirectives(!
0),i=this.parseUnionMemberTypes();return{kind:sb.UNION_TYPE_DEFINITION,description:
t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function()
{return this.expectOptionalToken(db.EQUALS)?
this.delimitedMany(db.PIPE,this.parseNamedType):
[]},t.parseEnumTypeDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var
n=this.parseName(),r=this.parseDirectives(!
0),i=this.parseEnumValuesDefinition();return{kind:sb.ENUM_TYPE_DEFINITION,descripti
on:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=fun
ction(){return
this.optionalMany(db.BRACE_L,this.parseEnumValueDefinition,db.BRACE_R)},t.parseEnum
ValueDefinition=function(){var
e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirect
ives(!
0);return{kind:sb.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.
loc(e)}},t.parseInputObjectTypeDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var
n=this.parseName(),r=this.parseDirectives(!
0),i=this.parseInputFieldsDefinition();return{kind:sb.INPUT_OBJECT_TYPE_DEFINITION,
description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefi
nition=function(){return
this.optionalMany(db.BRACE_L,this.parseInputValueDef,db.BRACE_R)},t.parseTypeSystem
Extension=function(){var
e=this._lexer.lookahead();if(e.kind===db.NAME)switch(e.value){case"schema":return
this.parseSchemaExtension();case"scalar":return
this.parseScalarTypeExtension();case"type":return
this.parseObjectTypeExtension();case"interface":return
this.parseInterfaceTypeExtension();case"union":return
this.parseUnionTypeExtension();case"enum":return
this.parseEnumTypeExtension();case"input":return
this.parseInputObjectTypeExtension()}throw
this.unexpected(e)},t.parseSchemaExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var
t=this.parseDirectives(!
0),n=this.optionalMany(db.BRACE_L,this.parseOperationTypeDefinition,db.BRACE_R);if(
0===t.length&&0===n.length)throw
this.unexpected();return{kind:sb.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc
:this.loc(e)}},t.parseScalarTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var
t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw
this.unexpected();return{kind:sb.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this
.loc(e)}},t.parseObjectTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var
t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!
0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw
this.unexpected();return{kind:sb.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directiv
es:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");va
r t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!
0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw
this.unexpected();return{kind:sb.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,direc
tives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var
t=this.parseName(),n=this.parseDirectives(!
0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw
this.unexpected();return{kind:sb.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,l
oc:this.loc(e)}},t.parseEnumTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var
t=this.parseName(),n=this.parseDirectives(!
0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw
this.unexpected();return{kind:sb.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,l
oc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var
e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var
t=this.parseName(),n=this.parseDirectives(!
0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw
this.unexpected();return{kind:sb.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fi
elds:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var
e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.
expectToken(db.AT);var
n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeata
ble");this.expectKeyword("on");var
o=this.parseDirectiveLocations();return{kind:sb.DIRECTIVE_DEFINITION,description:t,
name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocat
ions=function(){return
this.delimitedMany(db.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=f
unction(){var e=this._lexer.token,t=this.parseName();if(void 0!==_b[t.value])return
t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!
==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new
ub(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return
this._lexer.token.kind===e},t.expectToken=function(e){var
t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw
ob(this._lexer.source,t.start,"Expected ".concat(Bb(e),", found
").concat(jb(t),"."))},t.expectOptionalToken=function(e){var
t=this._lexer.token;if(t.kind===e)return
this._lexer.advance(),t},t.expectKeyword=function(e){var
t=this._lexer.token;if(t.kind!==db.NAME||t.value!==e)throw
ob(this._lexer.source,t.start,'Expected "'.concat(e,'", found
').concat(jb(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e)
{var t=this._lexer.token;return
t.kind===db.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e)
{var t=null!=e?e:this._lexer.token;return ob(this._lexer.source,t.start,"Unexpected
".concat(jb(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!
this.expectOptionalToken(n);)r.push(t.call(this));return
r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var
r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return
r}return[]},t.many=function(e,t,n){this.expectToken(e);var
r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return
r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var
n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}
();function jb(e){var t=e.value;return Bb(e.kind)+(null!=t?'
"'.concat(t,'"'):"")}function Bb(e){return function(e){return e===db.BANG||
e===db.DOLLAR||e===db.AMP||e===db.PAREN_L||e===db.PAREN_R||e===db.SPREAD||
e===db.COLON||e===db.EQUALS||e===db.AT||e===db.BRACKET_L||e===db.BRACKET_R||
e===db.BRACE_L||e===db.PIPE||e===db.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ub={Name:
[],Document:["definitions"],OperationDefinition:
["name","variableDefinitions","directives","selectionSet"],VariableDefinition:
["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:
["selections"],Field:
["alias","name","arguments","directives","selectionSet"],Argument:
["name","value"],FragmentSpread:["name","directives"],InlineFragment:
["typeCondition","directives","selectionSet"],FragmentDefinition:
["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue
:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:
[],ListValue:["values"],ObjectValue:["fields"],ObjectField:
["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:
["type"],NonNullType:["type"],SchemaDefinition:
["description","directives","operationTypes"],OperationTypeDefinition:
["type"],ScalarTypeDefinition:
["description","name","directives"],ObjectTypeDefinition:
["description","name","interfaces","directives","fields"],FieldDefinition:
["description","name","arguments","type","directives"],InputValueDefinition:
["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:
["description","name","interfaces","directives","fields"],UnionTypeDefinition:
["description","name","directives","types"],EnumTypeDefinition:
["description","name","directives","values"],EnumValueDefinition:
["description","name","directives"],InputObjectTypeDefinition:
["description","name","directives","fields"],DirectiveDefinition:
["description","name","arguments","locations"],SchemaExtension:
["directives","operationTypes"],ScalarTypeExtension:
["name","directives"],ObjectTypeExtension:
["name","interfaces","directives","fields"],InterfaceTypeExtension:
["name","interfaces","directives","fields"],UnionTypeExtension:
["name","directives","types"],EnumTypeExtension:
["name","directives","values"],InputObjectTypeExtension:
["name","directives","fields"]},Hb=Object.freeze({});function Gb(e,t,n){var
r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?
r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o)
{if("function"==typeof o)return o;var s=o[t];if("function"==typeof s)return
s}}}function zb(e){return function(e,t){var n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:Ub,r=void 0,i=Array.isArray(e),o=[e],s=-1,a=[],c=void
0,u=void 0,l=void 0,h=[],d=[],f=e;do{var p=++s===o.length,g=p&&0!==a.length;if(p)
{if(u=0===d.length?void 0:h[h.length-1],c=l,l=d.pop(),g)
{if(i)c=c.slice();else{for(var m={},v=0,b=Object.keys(c);v<b.length;v++){var
y=b[v];m[y]=c[y]}c=m}for(var w=0,_=0;_<a.length;_++){var E=a[_][0],S=a[_][1];i&&(E-
=w),i&&null===S?(c.splice(E,1),w+
+):c[E]=S}}s=r.index,o=r.keys,a=r.edits,i=r.inArray,r=r.prev}else{if(u=l?i?
s:o[s]:void 0,null==(c=l?l[u]:f))continue;l&&h.push(u)}var T,A=void 0;if(!
Array.isArray(c)){if(!hb(c))throw new Error("Invalid AST Node:
".concat(mb(c),"."));var C=Gb(t,c.kind,p);if(C)
{if((A=C.call(t,c,u,l,h,d))===Hb)break;if(!1===A){if(!p){h.pop();continue}}else
if(void 0!==A&&(a.push([u,A]),!p)){if(!hb(A)){h.pop();continue}c=A}}}void
0===A&&g&&a.push([u,c]),p?h.pop():
(r={inArray:i,index:s,keys:o,edits:a,prev:r},o=(i=Array.isArray(c))?c:null!
==(T=n[c.kind])&&void 0!==T?T:[],s=-1,a=[],l&&d.push(l),l=c)}while(void 0!
==r);return 0!==a.length&&(f=a[a.length-1][1]),f}(e,{leave:Vb})}var
Vb={Name:function(e){return e.value},Variable:function(e)
{return"$"+e.name},Document:function(e){return qb(e.definitions,"\n\n")+"\
n"},OperationDefinition:function(e){var
t=e.operation,n=e.name,r=Yb("(",qb(e.variableDefinitions,",
"),")"),i=qb(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?
qb([t,qb([n,r]),i,o]," "):o},VariableDefinition:function(e){var
t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Yb(" = ",r)
+Yb(" ",qb(i," "))},SelectionSet:function(e){return
Kb(e.selections)},Field:function(e){var
t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,s=Yb("",t,": ")
+n,a=s+Yb("(",qb(r,", "),")");return a.length>80&&(a=s+Yb("(\n",$b(qb(r,"\n")),"\
n)")),qb([a,qb(i," "),o]," ")},Argument:function(e){return e.name+":
"+e.value},FragmentSpread:function(e){return"..."+e.name+Yb(" ",qb(e.directives,"
"))},InlineFragment:function(e){var
t=e.typeCondition,n=e.directives,r=e.selectionSet;return qb(["...",Yb("on
",t),qb(n," "),r]," ")},FragmentDefinition:function(e){var
t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;
return"fragment
".concat(t).concat(Yb("(",qb(r,", "),")")," ")+"on ".concat(n,"
").concat(Yb("",qb(i," ")," "))+o},IntValue:function(e){return
e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var
n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!
==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\
t"===e[0],o='"'===e[e.length-1],s="\\"===e[e.length-1],a=!r||o||s||n,c="";return!
a||r&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,a&&(c+="\
n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":"
"):JSON.stringify(n)},BooleanValue:function(e){return
e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e)
{return e.value},ListValue:function(e){return"["+qb(e.values,", ")
+"]"},ObjectValue:function(e){return"{"+qb(e.fields,", ")
+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e)
{return"@"+e.name+Yb("(",qb(e.arguments,", "),")")},NamedType:function(e){return
e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return
e.type+"!"},SchemaDefinition:Wb((function(e){var
t=e.directives,n=e.operationTypes;return qb(["schema",qb(t," "),Kb(n)],"
")})),OperationTypeDefinition:function(e){return e.operation+":
"+e.type},ScalarTypeDefinition:Wb((function(e){return
qb(["scalar",e.name,qb(e.directives," ")],"
")})),ObjectTypeDefinition:Wb((function(e){var
t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return
qb(["type",t,Yb("implements ",qb(n," & ")),qb(r," "),Kb(i)],"
")})),FieldDefinition:Wb((function(e){var
t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Xb(n)?Yb("(\n",$b(qb(n,"\
n")),"\n)"):Yb("(",qb(n,", "),")"))+": "+r+Yb(" ",qb(i,"
"))})),InputValueDefinition:Wb((function(e){var
t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return qb([t+": "+n,Yb("=
",r),qb(i," ")]," ")})),InterfaceTypeDefinition:Wb((function(e){var
t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return
qb(["interface",t,Yb("implements ",qb(n," & ")),qb(r," "),Kb(i)],"
")})),UnionTypeDefinition:Wb((function(e){var
t=e.name,n=e.directives,r=e.types;return qb(["union",t,qb(n," "),r&&0!==r.length?"=
"+qb(r," | "):""]," ")})),EnumTypeDefinition:Wb((function(e){var
t=e.name,n=e.directives,r=e.values;return qb(["enum",t,qb(n," "),Kb(r)],"
")})),EnumValueDefinition:Wb((function(e){return qb([e.name,qb(e.directives," ")],"
")})),InputObjectTypeDefinition:Wb((function(e){var
t=e.name,n=e.directives,r=e.fields;return qb(["input",t,qb(n," "),Kb(r)],"
")})),DirectiveDefinition:Wb((function(e){var
t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Xb(n)?
Yb("(\n",$b(qb(n,"\n")),"\n)"):Yb("(",qb(n,", "),")"))+(r?" repeatable":"")+" on
"+qb(i," | ")})),SchemaExtension:function(e){var
t=e.directives,n=e.operationTypes;return qb(["extend schema",qb(t," "),Kb(n)],"
")},ScalarTypeExtension:function(e){return qb(["extend
scalar",e.name,qb(e.directives," ")]," ")},ObjectTypeExtension:function(e){var
t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return qb(["extend
type",t,Yb("implements ",qb(n," & ")),qb(r," "),Kb(i)],"
")},InterfaceTypeExtension:function(e){var
t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return qb(["extend
interface",t,Yb("implements ",qb(n," & ")),qb(r," "),Kb(i)],"
")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return
qb(["extend union",t,qb(n," "),r&&0!==r.length?"= "+qb(r," | "):""],"
")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return
qb(["extend enum",t,qb(n," "),Kb(r)]," ")},InputObjectTypeExtension:function(e){var
t=e.name,n=e.directives,r=e.fields;return qb(["extend input",t,qb(n," "),Kb(r)],"
")}};function Wb(e){return function(t){return qb([t.description,e(t)],"\
n")}}function qb(e){var t,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return
e})).join(n))&&void 0!==t?t:""}function Kb(e){return Yb("{\n",$b(qb(e,"\n")),"\
n}")}function Yb(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!
==arguments[2]?arguments[2]:""):""}function $b(e){return Yb(" ",e.replace(/\n/g,"\
n "))}function Qb(e){return-1!==e.indexOf("\n")}function Xb(e){return null!
=e&&e.some(Qb)}var Zb=function(e,t){return Zb=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},Zb(e,t)};function Jb(e,t){function n()
{this.constructor=e}Zb(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}var ey=function(){return ey=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},ey.apply(this,arguments)};function ty(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function ny(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}var ry=n(82394);const iy=n.n(ry)();var
oy,sy,ay=n(27430),cy=n(74985),uy=new h("AbstractPubSubProvider"),ly=function()
{function e(e){this._config=e}return e.prototype.configure=function(e){return
this._config=ey(ey({},e),this._config),uy.debug("configure
"+this.getProviderName(),this._config),this.options},e.prototype.getCategory=functi
on(){return"PubSub"},Object.defineProperty(e.prototype,"options",{get:function()
{return ey({},this._config)},enumerable:!0,configurable:!0}),e}();!function(e)
{e.CONNECTION_CLOSED="Connection closed",e.CONNECTION_FAILED="Connection
failed",e.REALTIME_SUBSCRIPTION_INIT_ERROR="AppSync Realtime subscription init
error",e.SUBSCRIPTION_ACK="Subscription ack",e.TIMEOUT_DISCONNECT="Timeout
disconnect"}(oy||(oy={})),function(e)
{e.Connected="Connected",e.ConnectedPendingNetwork="ConnectedPendingNetwork",e.Conn
ectionDisrupted="ConnectionDisrupted",e.ConnectionDisruptedPendingNetwork="Connecti
onDisruptedPendingNetwork",e.Connecting="Connecting",e.ConnectedPendingDisconnect="
ConnectedPendingDisconnect",e.Disconnected="Disconnected",e.ConnectedPendingKeepAli
ve="ConnectedPendingKeepAlive"}(sy||(sy={}));var
hy,dy,fy,py=[400,401,403],gy="ConnectionStateChange";!function(e)
{e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",
e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ac
k",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPL
ETE="complete",e.GQL_ERROR="error"}(hy||(hy={})),function(e)
{e[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED"}(dy||
(dy={})),function(e)
{e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(fy||
(fy={}));var my="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",vy={accept:"application/json,
text/javascript","content-encoding":"amz-1.0","content-type":"application/json;
charset=UTF-8"},by=3e5,yy=function(){function e(){}return
e.prototype.networkMonitor=function(t){if(We().isNode)return iy.from([{online:!
0}]);var n=Ve()?self:window;return new iy((function(t)
{t.next({online:n.navigator.onLine});var r=function(){return t.next({online:!
0})},i=function(){return t.next({online:!1})};return
n.addEventListener("online",r),n.addEventListener("offline",i),e._observers.push(t)
,function()
{n.removeEventListener("online",r),n.removeEventListener("offline",i),e._observers=
e._observers.filter((function(e){return e!
==t}))}}))},e._observerOverride=function(t){var n,r,i=function(n)
{if(n.closed)return e._observers=e._observers.filter((function(e){return e!
==n})),"continue";n.next(t)};try{for(var o=function(e){var t="function"==typeof
Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof
e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r+
+],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is
not defined.")}(e._observers),s=o.next();!s.done;s=o.next())i(s.value)}catch(e)
{n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw
n.error}}},e._observers=[],e}();const wy=yy;var _y,Ey=function(){return(new
wy).networkMonitor()},Sy={KEEP_ALIVE_MISSED:
{keepAliveState:"unhealthy"},KEEP_ALIVE:
{keepAliveState:"healthy"},CONNECTION_ESTABLISHED:
{connectionState:"connected"},CONNECTION_FAILED:
{intendedConnectionState:"disconnected",connectionState:"disconnected"},CLOSING_CON
NECTION:{intendedConnectionState:"disconnected"},OPENING_CONNECTION:
{intendedConnectionState:"connected",connectionState:"connecting"},CLOSED:
{connectionState:"disconnected"},ONLINE:{networkState:"connected"},OFFLINE:
{networkState:"disconnected"}},Ty=function(){function e(){var
e=this;this._networkMonitoringSubscription=void
0,this._linkedConnectionState={networkState:"connected",connectionState:"disconnect
ed",intendedConnectionState:"disconnected",keepAliveState:"healthy"},this._initialN
etworkStateSubscription=Ey().subscribe((function(t){var n,r=t.online;e.record(r?
Sy.ONLINE:Sy.OFFLINE),null===(n=e._initialNetworkStateSubscription)||void 0===n||
n.unsubscribe()})),this._linkedConnectionStateObservable=new iy((function(t)
{t.next(e._linkedConnectionState),e._linkedConnectionStateObserver=t}))}return
e.prototype.enableNetworkMonitoring=function(){var
e,t=this;null===(e=this._initialNetworkStateSubscription)||void 0===e||
e.unsubscribe(),void
0===this._networkMonitoringSubscription&&(this._networkMonitoringSubscription=Ey().
subscribe((function(e){var n=e.online;t.record(n?
Sy.ONLINE:Sy.OFFLINE)})))},e.prototype.disableNetworkMonitoring=function(){var
e;null===(e=this._networkMonitoringSubscription)||void 0===e||
e.unsubscribe(),this._networkMonitoringSubscription=void
0},Object.defineProperty(e.prototype,"connectionStateObservable",{get:function()
{var e,t=this;return this._linkedConnectionStateObservable.map((function(e){return
t.connectionStatesTranslator(e)})).filter((function(t){var n=t!==e;return
e=t,n}))},enumerable:!0,configurable:!0}),e.prototype.record=function(e)
{"connected"===e.intendedConnectionState?
this.enableNetworkMonitoring():"disconnected"===e.intendedConnectionState&&this.dis
ableNetworkMonitoring();var
t=ey(ey({},this._linkedConnectionState),e);this._linkedConnectionState=ey({},t),thi
s._linkedConnectionStateObserver.next(this._linkedConnectionState)},e.prototype.con
nectionStatesTranslator=function(e){var
t=e.connectionState,n=e.networkState,r=e.intendedConnectionState,i=e.keepAliveState
;return"connected"===t&&"disconnected"===n?
sy.ConnectedPendingNetwork:"connected"===t&&"disconnected"===r?
sy.ConnectedPendingDisconnect:"disconnected"===t&&"connected"===r&&"disconnected"==
=n?sy.ConnectionDisruptedPendingNetwork:"disconnected"===t&&"connected"===r?
sy.ConnectionDisrupted:"connected"===t&&"unhealthy"===i?
sy.ConnectedPendingKeepAlive:"connecting"===t?sy.Connecting:"disconnected"===t?
sy.Disconnected:sy.Connected},e}();!function(e)
{e.START_RECONNECT="START_RECONNECT",e.HALT_RECONNECT="HALT_RECONNECT"}(_y||
(_y={}));var Ay,Cy=function(){function e(){this.reconnectObservers=[]}return
e.prototype.addObserver=function(e)
{this.reconnectObservers.push(e)},e.prototype.record=function(e){var
t=this;e===_y.START_RECONNECT&&void 0===this.reconnectSetTimeoutId&&void
0===this.reconnectIntervalId&&(this.reconnectSetTimeoutId=setTimeout((function()
{t._triggerReconnect(),t.reconnectIntervalId=setInterval((function()
{t._triggerReconnect()}),6e4)}),5e3)),e===_y.HALT_RECONNECT&&(this.reconnectInterva
lId&&(clearInterval(this.reconnectIntervalId),this.reconnectIntervalId=void
0),this.reconnectSetTimeoutId&&(clearTimeout(this.reconnectSetTimeoutId),this.recon
nectSetTimeoutId=void 0))},e.prototype.close=function()
{this.reconnectObservers.forEach((function(e){var t;null===(t=e.complete)||void
0===t||t.call(e)}))},e.prototype._triggerReconnect=function()
{this.reconnectObservers.forEach((function(e){var t;null===(t=e.next)||void 0===t||
t.call(e)}))},e}(),Oy=new h("AWSAppSyncRealTimeProvider"),xy=function(e,t,n)
{x.dispatch("api",{event:e,data:t,message:n},"PubSub",my)},Iy=/^https:\/\/\
w{26}\.appsync\-api\.\w{2}(?:(?:\-\w{2,})+)\-\d\.amazonaws.com(?:\.cn)?\/graphql$/
i,Py=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return
n.socketStatus=fy.CLOSED,n.keepAliveTimeout=by,n.subscriptionObserverMap=new
Map,n.promiseArray=[],n.connectionStateMonitor=new Ty,n.reconnectionMonitor=new
Cy,n.connectionStateMonitorSubscription=n.connectionStateMonitor.connectionStateObs
ervable.subscribe((function(e){xy(gy,{provider:n,connectionState:e},"Connection
state is
"+e),n.connectionState=e,e===sy.ConnectionDisrupted&&n.reconnectionMonitor.record(_
y.START_RECONNECT),
[sy.Connected,sy.ConnectedPendingDisconnect,sy.ConnectedPendingKeepAlive,sy.Connect
edPendingNetwork,sy.ConnectionDisruptedPendingNetwork,sy.Disconnected].includes(e)&
&n.reconnectionMonitor.record(_y.HALT_RECONNECT)})),n}return
Jb(t,e),t.prototype.close=function()
{this.socketStatus=fy.CLOSED,this.connectionStateMonitor.record(Sy.CONNECTION_FAILE
D),this.connectionStateMonitorSubscription.unsubscribe(),this.reconnectionMonitor.c
lose()},t.prototype.getNewWebSocket=function(e,t){return new
WebSocket(e,t)},t.prototype.getProviderName=function()
{return"AWSAppSyncRealTimeProvider"},t.prototype.newClient=function(){throw new
Error("Not used here")},t.prototype.publish=function(e,t,n){return ty(this,void
0,void 0,(function(){return ny(this,(function(e){throw new Error("Operation not
supported")}))}))},t.prototype.isCustomDomain=function(e){return
null===e.match(Iy)},t.prototype.subscribe=function(e,t,n){var r=this,i=null==t?void
0:t.appSyncGraphqlEndpoint;return new iy((function(e){if(t&&i){var o,s=!
1,a=(0,ay.v4)(),c=function(){s||(s=!
0,r._startSubscriptionWithAWSAppSyncRealTime({options:t,observer:e,subscriptionId:a
,customUserAgentDetails:n}).catch((function(e)
{Oy.debug(oy.REALTIME_SUBSCRIPTION_INIT_ERROR+":
"+e),r.connectionStateMonitor.record(Sy.CLOSED)})).finally((function(){s=!
1})))};return o=new iy((function(e)
{r.reconnectionMonitor.addObserver(e)})).subscribe((function()
{c()})),c(),function(){return ty(r,void 0,void 0,(function(){var e,t;return
ny(this,(function(n){switch(n.label){case 0:null==o||o.unsubscribe(),n.label=1;case
1:return n.trys.push([1,3,4,5]),[4,this._waitForSubscriptionToBeConnected(a)];case
2:if(n.sent(),!(e=(this.subscriptionObserverMap.get(a)||
{}).subscriptionState))return[2];if(e!==dy.CONNECTED)throw new Error("Subscription
never connected");return this._sendUnsubscriptionMessage(a),[3,5];case 3:return
t=n.sent(),Oy.debug("Error while unsubscribing "+t),[3,5];case 4:return
this._removeSubscriptionObserver(a),[7];case 5:return[2]}}))}))}}e.error({errors:
[ey({},new rb("Subscribe only available for AWS AppSync
endpoint"))]}),e.complete()}))},Object.defineProperty(t.prototype,"isSSLEnabled",
{get:function(){return!
this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerab
le:!0,configurable:!
0}),t.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var
t,n=e.options,r=e.observer,i=e.subscriptionId,o=e.customUserAgentDetails;return
ty(this,void 0,void 0,(function(){var
e,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C,O,x=this;return ny(this,(function(I)
{switch(I.label){case 0:return
e=n.appSyncGraphqlEndpoint,s=n.authenticationType,a=n.query,c=n.variables,u=n.apiKe
y,l=n.region,h=n.graphql_headers,d=void 0===h?function()
{return{}}:h,f=n.additionalHeaders,p=void 0===f?
{}:f,g=dy.PENDING,m={query:a,variables:c},this.subscriptionObserverMap.set(i,
{observer:r,query:null!=a?a:"",variables:null!=c?c:
{},subscriptionState:g,startAckTimeoutId:void 0}),v=JSON.stringify(m),y=[{}],
[4,this._awsRealTimeHeaderBasedAuth({apiKey:u,appSyncGraphqlEndpoint:e,authenticati
onType:s,payload:v,canonicalUri:"",region:l,additionalHeaders:p})];case 1:return
w=[ey.apply(void 0,y.concat([I.sent()]))],[4,d()];case 2:b=ey.apply(void 0,
[ey.apply(void 0,[ey.apply(void 0,w.concat([I.sent()])),p]),
(O={},O[Ap]=un(o),O)]),_={id:i,payload:{data:v,extensions:
{authorization:ey({},b)}},type:hy.GQL_START},E=JSON.stringify(_),I.label=3;case
3:return
I.trys.push([3,5,,6]),this.connectionStateMonitor.record(Sy.OPENING_CONNECTION),
[4,this._initializeWebSocketConnection({apiKey:u,appSyncGraphqlEndpoint:e,authentic
ationType:s,region:l,additionalHeaders:p})];case 4:return I.sent(),[3,6];case
5:return S=I.sent(),this._logStartSubscriptionError(i,r,S),[2];case 6:return
T=null!==(t=this.subscriptionObserverMap.get(i))&&void 0!==t?t:
{},A=T.subscriptionFailedCallback,C=T.subscriptionReadyCallback,this.subscriptionOb
serverMap.set(i,{observer:r,subscriptionState:g,query:null!=a?a:"",variables:null!
=c?c:
{},subscriptionReadyCallback:C,subscriptionFailedCallback:A,startAckTimeoutId:setTi
meout((function()
{x._timeoutStartSubscriptionAck.call(x,i)}),15e3)}),this.awsRealTimeSocket&&this.aw
sRealTimeSocket.send(E),
[2]}}))}))},t.prototype._logStartSubscriptionError=function(e,t,n){var
r;Oy.debug({err:n});var i=String(null!==(r=n.message)&&void 0!==r?
r:"");if(Promise.resolve(this.connectionStateMonitor.record(Sy.CLOSED)),this.connec
tionState!==sy.ConnectionDisruptedPendingNetwork){nt(n)?t.error({errors:[ey({},new
rb(oy.CONNECTION_FAILED+": "+i))]}):Oy.debug(oy.CONNECTION_FAILED+": "+i);var
o=(this.subscriptionObserverMap.get(e)||
{}).subscriptionFailedCallback;"function"==typeof
o&&o()}},t.prototype._waitForSubscriptionToBeConnected=function(e){return
ty(this,void 0,void 0,(function(){var t,n=this;return ny(this,(function(r)
{return(t=this.subscriptionObserverMap.get(e))&&t.subscriptionState===dy.PENDING?
[2,new Promise((function(r,i){var
o=t.observer,s=t.subscriptionState,a=t.variables,c=t.query;n.subscriptionObserverMa
p.set(e,
{observer:o,subscriptionState:s,variables:a,query:c,subscriptionReadyCallback:r,sub
scriptionFailedCallback:i})}))]:
[2]}))}))},t.prototype._sendUnsubscriptionMessage=function(e)
{try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&
&this.socketStatus===fy.READY){var
t={id:e,type:hy.GQL_STOP},n=JSON.stringify(t);this.awsRealTimeSocket.send(n)}}catch
(e){Oy.debug({err:e})}},t.prototype._removeSubscriptionObserver=function(e)
{this.subscriptionObserverMap.delete(e),setTimeout(this._closeSocketIfRequired.bind
(this),1e3)},t.prototype._closeSocketIfRequired=function(){if(!
(this.subscriptionObserverMap.size>0))if(this.awsRealTimeSocket)if(this.connectionS
tateMonitor.record(Sy.CLOSING_CONNECTION),this.awsRealTimeSocket.bufferedAmount>0)s
etTimeout(this._closeSocketIfRequired.bind(this),1e3);else{Oy.debug("closing
WebSocket..."),this.keepAliveTimeoutId&&clearTimeout(this.keepAliveTimeoutId),this.
keepAliveAlertTimeoutId&&clearTimeout(this.keepAliveAlertTimeoutId);var
e=this.awsRealTimeSocket;e.onclose=null,e.onerror=null,e.close(1e3),this.awsRealTim
eSocket=void
0,this.socketStatus=fy.CLOSED,this.connectionStateMonitor.record(Sy.CLOSED)}else
this.socketStatus=fy.CLOSED},t.prototype._handleIncomingSubscriptionMessage=functio
n(e){var t=this;if("string"==typeof e.data){Oy.debug("subscription message from AWS
AppSync RealTime: "+e.data);var n=JSON.parse(String(e.data)),r=n.id,i=void
0===r?"":r,o=n.payload,s=n.type,a=this.subscriptionObserverMap.get(i)||
{},c=a.observer,u=void 0===c?null:c,l=a.query,h=void
0===l?"":l,d=a.variables,f=void 0===d?
{}:d,p=a.startAckTimeoutId,g=a.subscriptionReadyCallback,m=a.subscriptionFailedCall
back;if(Oy.debug({id:i,observer:u,query:h,variables:f}),s===hy.GQL_DATA&&o&&o.data)
u?u.next(o):Oy.debug("observer not found for id: "+i);else{if(s===hy.GQL_START_ACK)
{Oy.debug("subscription ready for
"+JSON.stringify({query:h,variables:f})),"function"==typeof
g&&g(),p&&clearTimeout(p),xy(oy.SUBSCRIPTION_ACK,{query:h,variables:f},"Connection
established for subscription");var v=dy.CONNECTED;return
u&&this.subscriptionObserverMap.set(i,
{observer:u,query:h,variables:f,startAckTimeoutId:void
0,subscriptionState:v,subscriptionReadyCallback:g,subscriptionFailedCallback:m}),vo
id
this.connectionStateMonitor.record(Sy.CONNECTION_ESTABLISHED)}if(s===hy.GQL_CONNECT
ION_KEEP_ALIVE)return
this.keepAliveTimeoutId&&clearTimeout(this.keepAliveTimeoutId),this.keepAliveAlertT
imeoutId&&clearTimeout(this.keepAliveAlertTimeoutId),this.keepAliveTimeoutId=setTim
eout((function(){return
t._errorDisconnect(oy.TIMEOUT_DISCONNECT)}),this.keepAliveTimeout),this.keepAliveAl
ertTimeoutId=setTimeout((function()
{t.connectionStateMonitor.record(Sy.KEEP_ALIVE_MISSED)}),65e3),void
this.connectionStateMonitor.record(Sy.KEEP_ALIVE);s===hy.GQL_ERROR&&(v=dy.FAILED,u&
&(this.subscriptionObserverMap.set(i,
{observer:u,query:h,variables:f,startAckTimeoutId:p,subscriptionReadyCallback:g,sub
scriptionFailedCallback:m,subscriptionState:v}),Oy.debug(oy.CONNECTION_FAILED+":
"+JSON.stringify(o)),u.error({errors:[ey({},new rb(oy.CONNECTION_FAILED+":
"+JSON.stringify(o)))]}),p&&clearTimeout(p),"function"==typeof
m&&m()))}}},t.prototype._errorDisconnect=function(e){Oy.debug("Disconnect error:
"+e),this.awsRealTimeSocket&&(this.connectionStateMonitor.record(Sy.CLOSED),this.aw
sRealTimeSocket.close()),this.socketStatus=fy.CLOSED},t.prototype._timeoutStartSubs
criptionAck=function(e){var t=this.subscriptionObserverMap.get(e);if(t){var
n=t.observer,r=t.query,i=t.variables;if(!
n)return;this.subscriptionObserverMap.set(e,
{observer:n,query:r,variables:i,subscriptionState:dy.FAILED}),this.connectionStateM
onitor.record(Sy.CLOSED),Oy.debug("timeoutStartSubscription",JSON.stringify({query:
r,variables:i}))}},t.prototype._initializeWebSocketConnection=function(e){var
t=this,n=e.appSyncGraphqlEndpoint,r=e.authenticationType,i=e.apiKey,o=e.region,s=e.
additionalHeaders;if(this.socketStatus!==fy.READY)return new Promise((function(e,a)
{return ty(t,void 0,void 0,(function(){var t,c,u,l,h,d,f,p,g;return ny(this,
(function(m){switch(m.label){case
0:if(this.promiseArray.push({res:e,rej:a}),this.socketStatus!
==fy.CLOSED)return[3,5];m.label=1;case 1:return
m.trys.push([1,4,,5]),this.socketStatus=fy.CONNECTING,t="{}",
[4,this._awsRealTimeHeaderBasedAuth({authenticationType:r,payload:t,canonicalUri:"/
connect",apiKey:i,appSyncGraphqlEndpoint:n,region:o,additionalHeaders:s})];case
2:return c=m.sent(),u=c?
JSON.stringify(c):"",l=cy.lW.from(u).toString("base64"),h=cy.lW.from(t).toString("b
ase64"),d=null!=n?n:"",d=this.isCustomDomain(d)?d.concat("/
realtime"):d.replace("appsync-api","appsync-realtime-api").replace("gogi-
beta","grt-
beta"),f=this.isSSLEnabled?"wss://":"ws://",d=d.replace("https://",f).replace("http
://",f),p=d+"?header="+l+"&payload="+h,
[4,this._initializeRetryableHandshake(p)];case 3:return
m.sent(),this.promiseArray.forEach((function(e){var t=e.res;Oy.debug("Notifying
connection successful"),t()})),this.socketStatus=fy.READY,this.promiseArray=[],
[3,5];case 4:return g=m.sent(),Oy.debug("Connection exited
with",g),this.promiseArray.forEach((function(e){return(0,e.rej)
(g)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readySta
te===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=void
0,this.socketStatus=fy.CLOSED,[3,5];case
5:return[2]}}))}))}))},t.prototype._initializeRetryableHandshake=function(e){return
ty(this,void 0,void 0,(function(){return ny(this,(function(t){switch(t.label){case
0:return Oy.debug("Initializaling retryable Handshake"),
[4,at(this._initializeHandshake.bind(this),[e],5e3)];case 1:return t.sent(),
[2]}}))}))},t.prototype._initializeHandshake=function(e){return ty(this,void 0,void
0,(function(){var t,n,r,i,o=this;return ny(this,(function(s){switch(s.label){case
0:Oy.debug("Initializing handshake "+e),s.label=1;case 1:return
s.trys.push([1,4,,5]),[4,new Promise((function(t,n){var
r=o.getNewWebSocket(e,"graphql-ws");r.onerror=function(){Oy.debug("WebSocket
connection error")},r.onclose=function(){n(new Error("Connection handshake
error"))},r.onopen=function(){return o.awsRealTimeSocket=r,t()}}))];case 2:return
s.sent(),[4,new Promise((function(e,t){if(o.awsRealTimeSocket){var n=!
1;o.awsRealTimeSocket.onerror=function(e){Oy.debug("WebSocket error
"+JSON.stringify(e))},o.awsRealTimeSocket.onclose=function(e){Oy.debug("WebSocket
closed "+e.reason),t(new
Error(JSON.stringify(e)))},o.awsRealTimeSocket.onmessage=function(r)
{if("string"==typeof r.data){Oy.debug("subscription message from AWS
AppSyncRealTime: "+r.data+" ");var
i=JSON.parse(r.data),s=i.type,a=i.payload,c=(void 0===a?
{}:a).connectionTimeoutMs,u=void 0===c?by:c;if(s===hy.GQL_CONNECTION_ACK)return n=!
0,o.awsRealTimeSocket&&(o.keepAliveTimeout=u,o.awsRealTimeSocket.onmessage=o._handl
eIncomingSubscriptionMessage.bind(o),o.awsRealTimeSocket.onerror=function(e)
{Oy.debug(e),o._errorDisconnect(oy.CONNECTION_CLOSED)},o.awsRealTimeSocket.onclose=
function(e){Oy.debug("WebSocket closed
"+e.reason),o._errorDisconnect(oy.CONNECTION_CLOSED)}),void e("Cool, connected to
AWS AppSyncRealTime");if(s===hy.GQL_CONNECTION_ERROR){var l=i.payload,h=(void
0===l?{}:l).errors,d=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(void 0===h?[]:h,1)[0],f=void 0===d?{}:d,p=f.errorType,g=void
0===p?"":p,m=f.errorCode;t({errorType:g,errorCode:void 0===m?0:m})}}};var
r={type:hy.GQL_CONNECTION_INIT};o.awsRealTimeSocket.send(JSON.stringify(r)),setTime
out((function(){n||(o.connectionStateMonitor.record(Sy.CONNECTION_FAILED),t(new
Error("Connection timeout: ack from AWSAppSyncRealTime was not received after 15000
ms")))}),15e3)}}))];case 3:return s.sent(),[3,5];case 4:throw
t=s.sent(),r=(n=t).errorType,i=n.errorCode,py.includes(i)?new tt(r):r?new
Error(r):t;case
5:return[2]}}))}))},t.prototype._awsRealTimeHeaderBasedAuth=function(e){var
t=e.authenticationType,n=e.payload,r=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.
apiKey,s=e.region,a=e.additionalHeaders;return ty(this,void 0,void 0,(function()
{var e,c,u;return ny(this,(function(l){switch(l.label){case 0:return
e={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHea
der.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNI
TO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this),AWS_LAMBDA:this._customAuthHead
er},t&&e[t]?[3,1]:(Oy.debug("Authentication type "+t+" not supported"),[2,void
0]);case 1:return c=e[t],u=_p.Qc(null!=i?i:"").host,Oy.debug("Authenticating with
"+t),
[4,c({payload:n,canonicalUri:r,appSyncGraphqlEndpoint:i,apiKey:o,region:s,host:u,ad
ditionalHeaders:a})];case
2:return[2,l.sent()]}}))}))},t.prototype._awsRealTimeCUPHeader=function(e){var
t=e.host;return ty(this,void 0,void 0,(function(){return ny(this,(function(e)
{switch(e.label){case 0:return[4,Gp.currentSession()];case 1:return[2,
{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},t.prototype
._awsRealTimeOPENIDHeader=function(e){var t=e.host;return ty(this,void 0,void 0,
(function(){var e,n,r;return ny(this,(function(i){switch(i.label){case
0:return[4,W.getItem("federatedInfo")];case 1:return(n=i.sent())?(e=n.token,[3,4]):
[3,2];case 2:return[4,Gp.currentAuthenticatedUser()];case 3:
(r=i.sent())&&(e=r.token),i.label=4;case 4:if(!e)throw new Error("No federated
jwt");return[2,
{Authorization:e,host:t}]}}))}))},t.prototype._awsRealTimeApiKeyHeader=function(e)
{var t=e.apiKey,n=e.host;return ty(this,void 0,void 0,(function(){var e,r;return
ny(this,(function(i){return e=new
Date,r=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:n,"x-amz-date":r,"x-
api-key":t}]}))}))},t.prototype._awsRealTimeIAMHeader=function(e){var
t=e.payload,n=e.canonicalUri,r=e.appSyncGraphqlEndpoint,i=e.region;return
ty(this,void 0,void 0,(function(){var e,o,s;return ny(this,(function(a)
{switch(a.label){case 0:return e={region:i,service:"appsync"},
[4,this._ensureCredentials()];case 1:if(!a.sent())throw new Error("No
credentials");return[4,Tn.get().then((function(e){var
t=e;return{secret_key:t.secretAccessKey,access_key:t.accessKeyId,session_token:t.se
ssionToken}}))];case 2:return
o=a.sent(),s={url:""+r+n,data:t,method:"POST",headers:ey({},vy)},
[2,Ue.sign(s,o,e).headers]}}))}))},t.prototype._customAuthHeader=function(e){var
t=e.host,n=e.additionalHeaders;if(!n||!n.Authorization)throw new Error("No auth
token
specified");return{Authorization:n.Authorization,host:t}},t.prototype._ensureCreden
tials=function(){return Tn.get().then((function(e){if(!e)return!1;var
t=Tn.shear(e);return Oy.debug("set credentials for AWSAppSyncRealTimeProvider",t),!
0})).catch((function(e){return Oy.warn("ensure credentials error",e),!1}))},t}
(ly),Dy=We().isNode,ky=new h("PubSub"),Ry=function(){function e(e)
{this._options=null!=e?e:{},ky.debug("PubSub
Options",this._options),this._pluggables=[],this.subscribe=this.subscribe.bind(this
)}return
Object.defineProperty(e.prototype,"awsAppSyncRealTimeProvider",{get:function()
{return this._awsAppSyncRealTimeProvider||(this._awsAppSyncRealTimeProvider=new
Py(this._options)),this._awsAppSyncRealTimeProvider},enumerable:!0,configurable:!
0}),e.prototype.getModuleName=function()
{return"InternalPubSub"},e.prototype.configure=function(e){var t=this,n=e?
e.PubSub||e:{};return ky.debug("configure PubSub",
{opt:n}),this._options=Object.assign({},this._options,n),this._pluggables.map((func
tion(e){return
e.configure(t._options)})),this._options},e.prototype.addPluggable=function(e)
{return ty(this,void 0,void 0,(function(){return ny(this,(function(t){return
e&&"PubSub"===e.getCategory()?(this._pluggables.push(e),
[2,e.configure(this._options)]):[2]}))}))},e.prototype.removePluggable=function(e)
{this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!
==e}))},e.prototype.getProviderByName=function(e){return e===Tp?
this.awsAppSyncRealTimeProvider:this._pluggables.find((function(t){return
t.getProviderName()===e}))},e.prototype.getProviders=function(e){void
0===e&&(e={});var t=e.provider;if(!t)return this._pluggables;var
n=this.getProviderByName(t);if(!n)throw new Error("Could not find provider named
"+String(t));return[n]},e.prototype.publish=function(e,t,n){return ty(this,void
0,void 0,(function(){return ny(this,(function(r)
{return[2,Promise.all(this.getProviders(n).map((function(r){return
r.publish(e,t,n)})))]}))}))},e.prototype.subscribe=function(e,t,n)
{if(Dy&&this._options&&this._options.ssr)throw new Error("Subscriptions are not
supported for Server-Side Rendering (SSR)");ky.debug("subscribe options",t);var
r=this.getProviders(t),i=ey({category:Y.PubSub,action:re.Subscribe},n);return new
iy((function(n){var o=r.map((function(n)
{return{provider:n,observable:n.subscribe(e,t,i)}})).map((function(e){var
t=e.provider;return e.observable.subscribe({start:console.error,next:function(e)
{return n.next({provider:t,value:e})},error:function(e){return
n.error({provider:t,error:e})}})}));return function(){return o.forEach((function(e)
{return e.unsubscribe()}))}}))},e}(),My=new Ry;p.register(My),function(e)
{e.NO_API_KEY="No api-key configured",e.NO_CURRENT_USER="No current
user",e.NO_CREDENTIALS="No credentials",e.NO_FEDERATED_JWT="No federated
jwt",e.NO_AUTH_TOKEN="No auth token specified"}(Ay||(Ay={}));var Ny=function()
{return Ny=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},Ny.apply(this,arguments)};function Ly(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}function Fy(e,t,n,r){return new(n||(n=Promise))((function(i,o)
{function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function jy(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function By(e,t){return function(){return
e.apply(t,arguments)}}const{toString:Uy}=Object.prototype,
{getPrototypeOf:Hy}=Object,Gy=(zy=Object.create(null),e=>{const t=Uy.call(e);return
zy[t]||(zy[t]=t.slice(8,-1).toLowerCase())});var zy;const
Vy=e=>(e=e.toLowerCase(),t=>Gy(t)===e),Wy=e=>t=>typeof t===e,
{isArray:qy}=Array,Ky=Wy("undefined"),Yy=Vy("ArrayBuffer"),
$y=Wy("string"),Qy=Wy("function"),Xy=Wy("number"),Zy=e=>null!==e&&"object"==typeof
e,Jy=e=>{if("object"!==Gy(e))return!1;const t=Hy(e);return!(null!==t&&t!
==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||
Symbol.iterator in
e)},ew=Vy("Date"),tw=Vy("File"),nw=Vy("Blob"),rw=Vy("FileList"),iw=Vy("URLSearchPar
ams"),
[ow,sw,aw,cw]=["ReadableStream","Request","Response","Headers"].map(Vy);function
uw(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof
e&&(e=[e]),qy(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?
Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r+
+)s=i[r],t.call(null,e[s],s,e)}}function lw(e,t){t=t.toLowerCase();const
n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return
r;return null}const hw="undefined"!=typeof globalThis?globalThis:"undefined"!
=typeof self?self:"undefined"!=typeof window?window:global,dw=e=>!Ky(e)&&e!
==hw,fw=(pw="undefined"!=typeof Uint8Array&&Hy(Uint8Array),e=>pw&&e instanceof
pw);var pw;const
gw=Vy("HTMLFormElement"),mw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))
(Object.prototype),vw=Vy("RegExp"),bw=(e,t)=>{const
n=Object.getOwnPropertyDescriptors(e),r={};uw(n,((n,i)=>{let o;!1!
==(o=t(n,i,e))&&(r[i]=o||
n)})),Object.defineProperties(e,r)},yw="abcdefghijklmnopqrstuvwxyz",ww="0123456789"
,_w={DIGIT:ww,ALPHA:yw,ALPHA_DIGIT:yw+yw.toUpperCase()
+ww},Ew=Vy("AsyncFunction"),Sw=(Tw="function"==typeof
setImmediate,Aw=Qy(hw.postMessage),Tw?setImmediate:Aw?(Cw=`axios@$
{Math.random()}`,Ow=[],hw.addEventListener("message",
(({source:e,data:t})=>{e===hw&&t===Cw&&Ow.length&&Ow.shift()()}),!
1),e=>{Ow.push(e),hw.postMessage(Cw,"*")}):e=>setTimeout(e));var Tw,Aw,Cw,Ow;const
xw="undefined"!=typeof queueMicrotask?queueMicrotask.bind(hw):"undefined"!=typeof
process&&process.nextTick||Sw,Iw={isArray:qy,isArrayBuffer:Yy,isBuffer:function(e)
{return null!==e&&!Ky(e)&&null!==e.constructor&&!
Ky(e.constructor)&&Qy(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormDat
a:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||
Qy(e.append)&&("formdata"===(t=Gy(e))||"object"===t&&Qy(e.toString)&&"[object
FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return
t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?
ArrayBuffer.isView(e):e&&e.buffer&&Yy(e.buffer),t},isString:
$y,isNumber:Xy,isBoolean:e=>!0===e||!
1===e,isObject:Zy,isPlainObject:Jy,isReadableStream:ow,isRequest:sw,isResponse:aw,i
sHeaders:cw,isUndefined:Ky,isDate:ew,isFile:tw,isBlob:nw,isRegExp:vw,isFunction:Qy,
isStream:e=>Zy(e)&&Qy(e.pipe),isURLSearchParams:iw,isTypedArray:fw,isFileList:rw,fo
rEach:uw,merge:function e(){const{caseless:t}=dw(this)&&this||
{},n={},r=(r,i)=>{const o=t&&lw(n,i)||i;Jy(n[o])&&Jy(r)?n[o]=e(n[o],r):Jy(r)?
n[o]=e({},r):qy(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e+
+)arguments[e]&&uw(arguments[e],r);return n},extend:(e,t,n,
{allOwnKeys:r}={})=>(uw(t,((t,r)=>{n&&Qy(t)?e[r]=By(t,n):e[r]=t}),
{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\
xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:
(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Obje
ct.defineProperty(e,"super",
{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let
i,o,s;const a={};if(t=t||{},null==e)return
t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||
a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Hy(e)}while(e&&(!n||n(e,t))&&e!
==Object.prototype);return t},kindOf:Gy,kindOfTest:Vy,endsWith:
(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const
r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(qy(e))return
e;let t=e.length;if(!Xy(t))return null;const n=new Array(t);for(;t--
>0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const
n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const
n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!
==(n=e.exec(t));)r.push(n);return
r},isHTMLForm:gw,hasOwnProperty:mw,hasOwnProp:mw,reduceDescriptors:bw,freezeMethods
:e=>{bw(e,((t,n)=>{if(Qy(e)&&-1!
==["arguments","caller","callee"].indexOf(n))return!1;const
r=e[n];Qy(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||
(t.set=()=>{throw Error("Can not rewrite read-only method
'"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!
0}))};return qy(e)?
r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\
d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:
(e,t)=>null!=e&&Number.isFinite(e=+e)?
e:t,findKey:lw,global:hw,isContextDefined:dw,ALPHABET:_w,generateString:
(e=16,t=_w.ALPHA_DIGIT)=>{let
n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return
n},isSpecCompliantForm:function(e){return!!
(e&&Qy(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONOb
ject:e=>{const t=new Array(10),n=(e,r)=>{if(Zy(e)){if(t.indexOf(e)>=0)return;if(!
("toJSON"in e)){t[r]=e;const i=qy(e)?[]:{};return uw(e,((e,t)=>{const o=n(e,r+1);!
Ky(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return
n(e,0)},isAsyncFn:Ew,isThenable:e=>e&&(Zy(e)||
Qy(e))&&Qy(e.then)&&Qy(e.catch),setImmediate:Sw,asap:xw};function Pw(e,t,n,r,i)
{Error.call(this),Error.captureStackTrace?
Error.captureStackTrace(this,this.constructo
r):this.stack=(new
Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config
=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?
i.status:null)}Iw.inherits(Pw,Error,{toJSON:function()
{return{message:this.message,name:this.name,description:this.description,number:thi
s.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.column
Number,stack:this.stack,config:Iw.toJSONObject(this.config),code:this.code,status:t
his.status}}});const Dw=Pw.prototype,kw={};
["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","
ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","E
RR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{kw[e]={value:e}})),O
bject.defineProperties(Pw,kw),Object.defineProperty(Dw,"isAxiosError",{value:!
0}),Pw.from=(e,t,n,r,i,o)=>{const s=Object.create(Dw);return Iw.toFlatObject(e,s,
(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!
==e)),Pw.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s}
;const Rw=Pw;function Mw(e){return Iw.isPlainObject(e)||Iw.isArray(e)}function
Nw(e){return Iw.endsWith(e,"[]")?e.slice(0,-2):e}function Lw(e,t,n){return e?
e.concat(t).map((function(e,t){return e=Nw(e),!
n&&t?"["+e+"]":e})).join(n?".":""):t}const Fw=Iw.toFlatObject(Iw,{},null,
(function(e){return/^is[A-Z]/.test(e)})),jw=function(e,t,n){if(!
Iw.isObject(e))throw new TypeError("target must be an object");t=t||new
FormData;const r=(n=Iw.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,
(function(e,t){return!Iw.isUndefined(t[e])}))).metaTokens,i=n.visitor||
u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof
Blob&&Blob)&&Iw.isSpecCompliantForm(t);if(!Iw.isFunction(i))throw new
TypeError("visitor must be a function");function c(e)
{if(null===e)return"";if(Iw.isDate(e))return e.toISOString();if(!
a&&Iw.isBlob(e))throw new Rw("Blob is not supported. Use a Buffer instead.");return
Iw.isArrayBuffer(e)||Iw.isTypedArray(e)?a&&"function"==typeof Blob?new
Blob([e]):Buffer.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof
e)if(Iw.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else
if(Iw.isArray(e)&&function(e){return Iw.isArray(e)&&!e.some(Mw)}(e)||
(Iw.isFileList(e)||Iw.endsWith(n,"[]"))&&(a=Iw.toArray(e)))return
n=Nw(n),a.forEach((function(e,r){!Iw.isUndefined(e)&&null!==e&&t.append(!0===s?
Lw([n],r,o):null===s?n:n+"[]",c(e))})),!1;return!!Mw(e)||
(t.append(Lw(i,n,o),c(e)),!1)}const l=[],h=Object.assign(Fw,
{defaultVisitor:u,convertValue:c,isVisitable:Mw});if(!Iw.isObject(e))throw new
TypeError("data must be an object");return function e(n,r){if(!Iw.isUndefined(n))
{if(-1!==l.indexOf(n))throw Error("Circular reference detected in
"+r.join("."));l.push(n),Iw.forEach(n,(function(n,o){!0===(!(Iw.isUndefined(n)||
null===n)&&i.call(t,n,Iw.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):
[o])})),l.pop()}}(e),t};function Bw(e){const
t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return
encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return
t[e]}))}function Uw(e,t){this._pairs=[],e&&jw(e,this,t)}const
Hw=Uw.prototype;Hw.append=function(e,t)
{this._pairs.push([e,t])},Hw.toString=function(e){const t=e?function(t){return
e.call(this,t,Bw)}:Bw;return this._pairs.map((function(e){return t(e[0])
+"="+t(e[1])}),"").join("&")};const Gw=Uw;function zw(e){return
encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/
gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function
Vw(e,t,n){if(!t)return e;const r=n&&n.encode||zw,i=n&&n.serialize;let o;if(o=i?
i(t,n):Iw.isURLSearchParams(t)?t.toString():new Gw(t,n).toString(r),o){const
t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return
e}const Ww=class{constructor(){this.handlers=[]}use(e,t,n){return
this.handlers.push({fulfilled:e,rejected:t,synchronous:!!
n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e)
{this.handlers[e]&&(this.handlers[e]=null)}clear()
{this.handlers&&(this.handlers=[])}forEach(e){Iw.forEach(this.handlers,(function(t)
{null!==t&&e(t)}))}},qw={silentJSONParsing:!0,forcedJSONParsing:!
0,clarifyTimeoutError:!1},Kw={isBrowser:!0,classes:{URLSearchParams:"undefined"!
=typeof URLSearchParams?URLSearchParams:Gw,FormData:"undefined"!=typeof FormData?
FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:
["http","https","file","blob","url","data"]},Yw="undefined"!=typeof
window&&"undefined"!=typeof document,$w="object"==typeof navigator&&navigator||void
0,Qw=Yw&&(!$w||
["ReactNative","NativeScript","NS"].indexOf($w.product)<0),Xw="undefined"!=typeof
WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof
self.importScripts,Zw=Yw&&window.location.href||"http://localhost",Jw={...r,...Kw},
e_=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const
s=Number.isFinite(+o),a=i>=e.length;return o=!o&&Iw.isArray(r)?r.length:o,a?
(Iw.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s):(r[o]&&Iw.isObject(r[o])||
(r[o]=[]),t(e,n,r[o],i)&&Iw.isArray(r[o])&&(r[o]=function(e){const
t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r+
+)o=n[r],t[o]=e[o];return t}(r[o])),!
s)}if(Iw.isFormData(e)&&Iw.isFunction(e.entries)){const n={};return
Iw.forEachEntry(e,((e,r)=>{t(function(e){return
Iw.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}
(e),r,n,0)})),n}return null},t_={transitional:qw,adapter:
["xhr","http","fetch"],transformRequest:[function(e,t){const
n=t.getContentType()||"",r=n.indexOf("application/json")>-
1,i=Iw.isObject(e);if(i&&Iw.isHTMLForm(e)&&(e=new
FormData(e)),Iw.isFormData(e))return r?
JSON.stringify(e_(e)):e;if(Iw.isArrayBuffer(e)||Iw.isBuffer(e)||Iw.isStream(e)||
Iw.isFile(e)||Iw.isBlob(e)||Iw.isReadableStream(e))return
e;if(Iw.isArrayBufferView(e))return e.buffer;if(Iw.isURLSearchParams(e))return
t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!
1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-
1)return function(e,t){return jw(e,new
Jw.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return
Jw.isNode&&Iw.isBuffer(e)?(this.append(t,e.toString("base64")),!
1):r.defaultVisitor.apply(this,arguments)}},t))}
(e,this.formSerializer).toString();if((o=Iw.isFileList(e))||n.indexOf("multipart/
form-data")>-1){const t=this.env&&this.env.FormData;return jw(o?
{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?
(t.setContentType("application/json",!1),function(e,t,n)
{if(Iw.isString(e))try{return(0,JSON.parse)(e),Iw.trim(e)}catch(e)
{if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}
(e)):e}],transformResponse:[function(e){const t=this.transitional||
t_.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Iw.isRespo
nse(e)||Iw.isReadableStream(e))return e;if(e&&Iw.isString(e)&&(n&&!
this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return
JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw
Rw.from(e,Rw.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return
e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-
TOKEN",maxContentLength:-1,maxBodyLength:-1,env:
{FormData:Jw.classes.FormData,Blob:Jw.classes.Blob},validateStatus:function(e)
{return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain,
*/*","Content-Type":void
0}}};Iw.forEach(["delete","get","head","post","put","patch"],
(e=>{t_.headers[e]={}}));const
n_=t_,r_=Iw.toObjectSet(["age","authorization","content-length","content-
type","etag","expires","from","host","if-modified-since","if-unmodified-
since","last-modified","location","max-forwards","proxy-
authorization","referer","retry-after","user-
agent"]),i_=Symbol("internals");function o_(e){return
e&&String(e).trim().toLowerCase()}function s_(e){return!1===e||null==e?
e:Iw.isArray(e)?e.map(s_):String(e)}function a_(e,t,n,r,i){return Iw.isFunction(r)?
r.call(this,t,n):(i&&(t=n),Iw.isString(t)?Iw.isString(r)?-1!
==t.indexOf(r):Iw.isRegExp(r)?r.test(t):void 0:void 0)}class c_{constructor(e)
{e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=o_(t);if(!i)throw
new Error("header name must be a non-empty string");const o=Iw.findKey(r,i);(!o||
void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=s_(e))}const
o=(e,t)=>Iw.forEach(e,((e,n)=>i(e,n,t)));if(Iw.isPlainObject(e)||e instanceof
this.constructor)o(e,t);else if(Iw.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!
#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\
n").forEach((function(e)
{i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim()
,!n||t[n]&&r_[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+",
"+r:r)})),t})(e),t);else if(Iw.isHeaders(e))for(const[t,r]of
e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=o_(e)){const
n=Iw.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return
function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let
r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Iw.isFunction(t))return
t.call(this,e,n);if(Iw.isRegExp(t))return t.exec(e);throw new TypeError("parser
must be boolean|regexp|function")}}}has(e,t){if(e=o_(e)){const
n=Iw.findKey(this,e);return!(!n||void 0===this[n]||t&&!a_(0,this[n],n,t))}return!
1}delete(e,t){const n=this;let r=!1;function i(e){if(e=o_(e)){const
i=Iw.findKey(n,e);!i||t&&!a_(0,n[i],i,t)||(delete n[i],r=!0)}}return Iw.isArray(e)?
e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!
1;for(;n--;){const i=t[n];e&&!a_(0,this[i],i,e,!0)||(delete this[i],r=!0)}return
r}normalize(e){const t=this,n={};return Iw.forEach(this,((r,i)=>{const
o=Iw.findKey(n,i);if(o)return t[o]=s_(r),void delete t[i];const s=e?function(e)
{return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()
+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=s_(r),n[s]=!
0})),this}concat(...e){return
this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return
Iw.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Iw.isArray(n)?n.join(",
"):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())
[Symbol.iterator]()}toString(){return
Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\
n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e
instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return
t.forEach((e=>n.set(e))),n}static accessor(e){const
t=(this[i_]=this[i_]={accessors:{}}).accessors,n=this.prototype;function r(e){const
r=o_(e);t[r]||(function(e,t){const n=Iw.toCamelCase(" "+t);
["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i)
{return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return
Iw.isArray(e)?e.forEach(r):r(e),this}}c_.accessor(["Content-Type","Content-
Length","Accept","Accept-Encoding","User-
Agent","Authorization"]),Iw.reduceDescriptors(c_.prototype,(({value:e},t)=>{let
n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e)
{this[n]=e}}})),Iw.freezeMethods(c_);const u_=c_;function l_(e,t){const n=this||
n_,r=t||n,i=u_.from(r.headers);let o=r.data;return Iw.forEach(e,(function(e)
{o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function h_(e)
{return!(!e||!e.__CANCEL__)}function d_(e,t,n)
{Rw.call(this,null==e?"canceled":e,Rw.ERR_CANCELED,t,n),this.name="CanceledError"}I
w.inherits(d_,Rw,{__CANCEL__:!0});const f_=d_;function p_(e,t,n){const
r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Rw("Request failed with
status code "+n.status,[Rw.ERR_BAD_REQUEST,Rw.ERR_BAD_RESPONSE]
[Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const g_=(e,t,n=3)=>{let
r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let
i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];i||
(i=c),n[o]=a,r[o]=c;let l=s,h=0;for(;l!==o;)h+=n[l++],l
%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const d=u&&c-u;return d?
Math.round(1e3*h/d):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const
s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return
[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||
(r=setTimeout((()=>{r=null,s(n)}),o-a)))},()=>n&&s(n)]}((n=>{const
o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-
r,c=i(a);r=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void
0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:n,lengthComputable:null!=s,
[t?"download":"upload"]:!0})}),n)},m_=(e,t)=>{const n=null!=e;return[r=>t[0]
({lengthComputable:n,total:e,loaded:r}),t[1]]},v_=e=>(...t)=>Iw.asap((()=>e(...t)))
,b_=Jw.hasStandardBrowserEnv?function(){const
e=Jw.navigator&&/(msie|trident)/i.test(Jw.navigator.userAgent),t=document.createEle
ment("a");let n;function r(n){let r=n;return
e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),
{href:t.href,protocol:t.protocol?t.protocol.replace(/:
$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?
t.hash.replace(/
^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?
t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const
t=Iw.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}
():function(){return!0},y_=Jw.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const
s=[e+"="+encodeURIComponent(t)];Iw.isNumber(n)&&s.push("expires="+new
Date(n).toGMTString()),Iw.isString(r)&&s.push("path="+r),Iw.isString(i)&&s.push("do
main="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const
t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?
decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:
{write(){},read:()=>null,remove(){}};function w_(e,t){return e&&!/^([a-z][a-z\
d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")
+"/"+t.replace(/^\/+/,""):e}(e,t):t}const __=e=>e instanceof u_?{...e}:e;function
E_(e,t){t=t||{};const n={};function r(e,t,n){return
Iw.isPlainObject(e)&&Iw.isPlainObject(t)?
Iw.merge.call({caseless:n},e,t):Iw.isPlainObject(t)?Iw.merge({},t):Iw.isArray(t)?
t.slice():t}function i(e,t,n){return Iw.isUndefined(t)?Iw.isUndefined(e)?void
0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Iw.isUndefined(t))return r(void
0,t)}function s(e,t){return Iw.isUndefined(t)?Iw.isUndefined(e)?void 0:r(void
0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void
0}const
c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSer
ializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,re
sponseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgres
s:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,ht
tpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus
:a,headers:(e,t)=>i(__(e),__(t),!0)};return
Iw.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=c[r]||
i,s=o(e[r],t[r],r);Iw.isUndefined(s)&&o!==a||(n[r]=s)})),n}const S_=e=>{const
t=E_({},e);let n,
{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=t;if(t.
headers=a=u_.from(a),t.url=Vw(w_(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a
.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?
unescape(encodeURIComponent(c.password)):""))),Iw.isFormData(r))if(Jw.hasStandardBr
owserEnv||Jw.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!
==(n=a.getContentType())){const[e,...t]=n?
n.split(";").map((e=>e.trim())).filter(Boolean):
[];a.setContentType([e||"multipart/form-data",...t].join(";
"))}if(Jw.hasStandardBrowserEnv&&(i&&Iw.isFunction(i)&&(i=i(t)),i||!1!
==i&&b_(t.url))){const e=o&&s&&y_.read(s);e&&a.set(o,e)}return t},T_="undefined"!
=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const
r=S_(e);let i=r.data;const o=u_.from(r.headers).normalize();let s,a,c,u,l,
{responseType:h,onUploadProgress:d,onDownloadProgress:f}=r;function p()
{u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.remov
eEventListener("abort",s)}let g=new XMLHttpRequest;function m(){if(!g)return;const
r=u_.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());p_((function(e)
{t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?
g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:
e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!
0),g.timeout=r.timeout,"onloadend"in g?
g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||
g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=functi
on(){g&&(n(new Rw("Request
aborted",Rw.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new Rw("Network
Error",Rw.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout
of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||
qw;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new
Rw(t,i.clarifyTimeoutError?Rw.ETIMEDOUT:Rw.ECONNABORTED,e,g)),g=null},void
0===i&&o.setContentType(null),"setRequestHeader"in g&&Iw.forEach(o.toJSON(),
(function(e,t){g.setRequestHeader(t,e)})),Iw.isUndefined(r.withCredentials)||
(g.withCredentials=!!r.withCredentials),h&&"json"!
==h&&(g.responseType=r.responseType),f&&([c,l]=g_(f,!
0),g.addEventListener("progress",c)),d&&g.upload&&([a,u]=g_(d),g.upload.addEventLis
tener("progress",a),g.upload.addEventListener("loadend",u)),(r.cancelToken||
r.signal)&&(s=t=>{g&&(n(!t||t.type?new
f_(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.sign
al&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const
v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}
(r.url);v&&-1===Jw.protocols.indexOf(v)?n(new Rw("Unsupported protocol
"+v+":",Rw.ERR_BAD_REQUEST,e)):g.send(i||null)}))},A_=(e,t)=>{const{length:n}=e=e?
e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!
n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Rw?t:new
f_(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new
Rw(`timeout ${t} of ms exceeded`,Rw.ETIMEDOUT))}),t);const
s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?
e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEv
entListener("abort",i)));const{signal:a}=r;return
a.unsubscribe=()=>Iw.asap(s),a}},C_=function*(e,t){let n=e.byteLength;if(!t||
n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield
e.slice(i,r),i=r},O_=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of
async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const
t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield
n}}finally{await t.cancel()}}(e))yield*C_(n,t)}(e,t);let o,s=0,a=e=>{o||(o=!
0,r&&r(e))};return new ReadableStream({async pull(e)
{try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let
o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw
a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},x_="function"==typeof
fetch&&"function"==typeof Request&&"function"==typeof
Response,I_=x_&&"function"==typeof ReadableStream,P_=x_&&("function"==typeof
TextEncoder?(D_=new TextEncoder,e=>D_.encode(e)):async e=>new Uint8Array(await new
Response(e).arrayBuffer()));var D_;const k_=(e,...t)=>{try{return!!e(...t)}catch(e)
{return!1}},R_=I_&&k_((()=>{let e=!1;const t=new Request(Jw.origin,{body:new
ReadableStream,method:"POST",get duplex(){return e=!
0,"half"}}).headers.has("Content-Type");return e&&!
t})),M_=I_&&k_((()=>Iw.isReadableStream(new
Response("").body))),N_={stream:M_&&(e=>e.body)};var L_;x_&&(L_=new Response,
["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!
N_[e]&&(N_[e]=Iw.isFunction(L_[e])?t=>t[e]():(t,n)=>{throw new Rw(`Response type '$
{e}'
is not supported`,Rw.ERR_NOT_SUPPORT,n)})})));const
F_={http:null,xhr:T_,fetch:x_&&(async
e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a
,onUploadProgress:c,responseType:u,headers:l,withCredentials:h="same-
origin",fetchOptions:d}=S_(e);u=u?(u+"").toLowerCase():"text";let
f,p=A_([i,o&&o.toAbortSignal()],s);const
g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&R_&&"get"!==n&&"head"!
==n&&0!==(m=await(async(e,t)=>{const
n=Iw.toFiniteNumber(e.getContentLength());return null==n?(async
e=>{if(null==e)return 0;if(Iw.isBlob(e))return e.size;if(Iw.isSpecCompliantForm(e))
{const t=new Request(Jw.origin,{method:"POST",body:e});return(await
t.arrayBuffer()).byteLength}return Iw.isArrayBufferView(e)||Iw.isArrayBuffer(e)?
e.byteLength:(Iw.isURLSearchParams(e)&&(e+=""),Iw.isString(e)?(await
P_(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,
{method:"POST",body:r,duplex:"half"});if(Iw.isFormData(r)&&(e=n.headers.get("conten
t-type"))&&l.setContentType(e),n.body)
{const[e,t]=m_(m,g_(v_(c)));r=O_(n.body,65536,e,t)}}Iw.isString(h)||
(h=h?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,
{...d,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:
"half",credentials:i?h:void 0});let o=await fetch(f);const
s=M_&&("stream"===u||"response"===u);if(M_&&(a||s&&g)){const e={};
["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const
t=Iw.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&m_(t,g_(v_(a),!0))||
[];o=new Response(O_(o.body,65536,n,(()=>{r&&r(),g&&g()})),e)}u=u||"text";let
v=await N_[Iw.findKey(N_,u)||"text"](o,e);return!s&&g&&g(),await new
Promise(((t,n)=>{p_(t,n,
{data:v,headers:u_.from(o.headers),status:o.status,statusText:o.statusText,config:e
,request:f})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/
i.test(t.message))throw Object.assign(new Rw("Network Error",Rw.ERR_NETWORK,e,f),
{cause:t.cause||t});throw Rw.from(t,t&&t.code,e,f)}})};Iw.forEach(F_,((e,t)=>{if(e)
{try{Object.defineProperty(e,"name",{value:t})}catch(e)
{}Object.defineProperty(e,"adapterName",{value:t})}}));const j_=e=>`- $
{e}`,B_=e=>Iw.isFunction(e)||null===e||!1===e,U_=e=>{e=Iw.isArray(e)?e:
[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!
B_(n)&&(r=F_[(t=String(n)).toLowerCase()],void 0===r))throw new Rw(`Unknown adapter
'${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const
e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the
environment":"is not available in the build")));let n=t?e.length>1?"since :\
n"+e.map(j_).join("\n"):" "+j_(e[0]):"as no adapter specified";throw new Rw("There
is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return
r};function H_(e)
{if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)thro
w new f_(null,e)}function G_(e){return
H_(e),e.headers=u_.from(e.headers),e.data=l_.call(e,e.transformRequest),-1!
==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/
x-www-form-urlencoded",!1),U_(e.adapter||n_.adapter)(e).then((function(t){return
H_(e),t.data=l_.call(e,e.transformResponse,t),t.headers=u_.from(t.headers),t}),
(function(t){return h_(t)||
(H_(e),t&&t.response&&(t.response.data=l_.call(e,e.transformResponse,t.response),t.
response.headers=u_.from(t.response.headers))),Promise.reject(t)}))}const z_={};
["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{z_[e]=f
unction(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const
V_={};z_.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7]
Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new
Rw(r(i," has been removed"+(t?" in "+t:"")),Rw.ERR_DEPRECATED);return t&&!
V_[i]&&(V_[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be
removed in the near future"))),!e||e(n,i,o)}};const
W_={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Rw("options must
be an object",Rw.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let
i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||
s(t,o,e);if(!0!==n)throw new Rw("option "+o+" must be
"+n,Rw.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Rw("Unknown option
"+o,Rw.ERR_BAD_OPTION)}},validators:z_},q_=W_.validators;class K_{constructor(e)
{this.defaults=e,this.interceptors={request:new Ww,response:new Ww}}async
request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)
{let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const
n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!
String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\
n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||
{}).url=e:t=e||
{},t=E_(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void
0!==n&&W_.assertOptions(n,
{silentJSONParsing:q_.transitional(q_.boolean),forcedJSONParsing:q_.transitional(q_
.boolean),clarifyTimeoutError:q_.transitional(q_.boolean)},!1),null!
=r&&(Iw.isFunction(r)?t.paramsSerializer={serialize:r}:W_.assertOptions(r,
{encode:q_.function,serialize:q_.function},!0)),t.method=(t.method||
this.defaults.method||"get").toLowerCase();let
o=i&&Iw.merge(i.common,i[t.method]);i&&Iw.forEach(["delete","get","head","post","pu
t","patch","common"],(e=>{delete i[e]})),t.headers=u_.concat(o,i);const s=[];let
a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!
1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const
c=[];let u;this.interceptors.response.forEach((function(e)
{c.push(e.fulfilled,e.rejected)}));let l,h=0;if(!a){const e=[G_.bind(this),void
0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);h<l;)
u=u.then(e[h++],e[h++]);return u}l=s.length;let d=t;for(h=0;h<l;){const e=s[h+
+],t=s[h++];try{d=e(d)}catch(e)
{t.call(this,e);break}}try{u=G_.call(this,d)}catch(e){return
Promise.reject(e)}for(h=0,l=c.length;h<l;)u=u.then(c[h++],c[h++]);return
u}getUri(e){return
Vw(w_((e=E_(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Iw.forEa
ch(["delete","get","head","options"],(function(e){K_.prototype[e]=function(t,n)
{return this.request(E_(n||{},{method:e,url:t,data:(n||
{}).data}))}})),Iw.forEach(["post","put","patch"],(function(e){function t(t){return
function(n,r,i){return this.request(E_(i||{},{method:e,headers:t?{"Content-
Type":"multipart/form-data"}:
{},url:n,data:r}))}}K_.prototype[e]=t(),K_.prototype[e+"Form"]=t(!0)}));const
Y_=K_;class $_{constructor(e){if("function"!=typeof e)throw new TypeError("executor
must be a function.");let t;this.promise=new Promise((function(e){t=e}));const
n=this;this.promise.then((e=>{if(!n._listeners)return;let
t=n._listeners.length;for(;t-- >0;)n._listeners[t]
(e);n._listeners=null})),this.promise.then=e=>{let t;const r=new
Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function()
{n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new
f_(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw
this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?
this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!
this._listeners)return;const t=this._listeners.indexOf(e);-1!
==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new
AbortController,t=t=>{e.abort(t)};return
this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static
source(){let e;const t=new $_((function(t){e=t}));return{token:t,cancel:e}}}const
Q_=$_,X_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,
Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent
:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoi
ces:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Un
used:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:40
1,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable
:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,Lengt
hRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,Unsupported
MediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,Misdirect
edRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,
UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderField
sTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented
:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupport
ed:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtend
ed:510,NetworkAuthenticationRequired:511};Object.entries(X_).forEach((([e,t])=>{X_[
t]=e}));const Z_=X_,J_=function e(t){const n=new
Y_(t),r=By(Y_.prototype.request,n);return Iw.extend(r,Y_.prototype,n,{allOwnKeys:!
0}),Iw.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(E_(t,n))},r}
(n_);J_.Axios=Y_,J_.CanceledError=f_,J_.CancelToken=Q_,J_.isCancel=h_,J_.VERSION="1
.7.7",J_.toFormData=jw,J_.AxiosError=Rw,J_.Cancel=J_.CanceledError,J_.all=function(
e){return Promise.all(e)},J_.spread=function(e){return function(t){return
e.apply(null,t)}},J_.isAxiosError=function(e){return Iw.isObject(e)&&!
0===e.isAxiosError},J_.mergeConfig=E_,J_.AxiosHeaders=u_,J_.formToJSON=e=>e_(Iw.isH
TMLForm(e)?new
FormData(e):e),J_.getAdapter=U_,J_.HttpStatusCode=Z_,J_.default=J_;const eE=J_;var
tE=new h("RestClient"),nE=function(){function e(e){this._region="us-east-
1",this._service="execute-api",this._custom_header=void
0,this._cancelTokenMap=null,this.Credentials=Tn,this._options=e,tE.debug("API
Options",this._options),null==this._cancelTokenMap&&(this._cancelTokenMap=new
WeakMap)}return e.prototype.ajax=function(e,t,n){return Fy(this,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T;return jy(this,
(function(A){switch(A.label){case
0:return tE.debug(t,e),o="us-east-1",s="execute-api",a=void 0,"string"==typeof e?
(r=this._parseUrl(e),i=e):
(i=e.endpoint,a=e.custom_header,o=e.region,s=e.service,r=this._parseUrl(e.endpoint)
),c={method:t,url:i,host:r.host,path:r.path,headers:
{},data:null,responseType:"json",timeout:0,cancelToken:null},u={},l=Object.assign({
},n),h=l.response,l.body&&("function"==typeof FormData&&l.body instanceof FormData?
(u["Content-Type"]="multipart/form-data",c.data=l.body):(u["Content-
Type"]="application/json; charset=UTF-
8",c.data=JSON.stringify(l.body))),l.responseType&&(c.responseType=l.responseType),
l.withCredentials&&(c.withCredentials=l.withCredentials),l.timeout&&(c.timeout=l.ti
meout),l.cancellableToken&&(c.cancelToken=l.cancellableToken.token),c.signerService
Info=l.signerServiceInfo,"function"!=typeof a?[3,2]:[4,a()];case 1:return
f=A.sent(),[3,3];case 2:f=void 0,A.label=3;case
3:if(d=f,c.headers=Ny(Ny(Ny({},u),d),l.headers),(p=(0,_p.Qc)(i,!0,!
0)).search,g=Ly(p,["search"]),c.url=(0,_p.WU)(Ny(Ny({},g),
{query:Ny(Ny({},g.query),l.queryStringParameters||{})})),void 0!
==c.headers.Authorization)return
c.headers=Object.keys(c.headers).reduce((function(e,t){return
c.headers[t]&&(e[t]=c.headers[t]),e}),{}),[2,this._request(c,h)];A.label=4;case
4:return A.trys.push([4,6,,7]),[4,this.Credentials.get()];case 5:return m=A.sent(),
[3,7];case 6:return A.sent(),tE.debug("No credentials available, the request will
be unsigned"),[2,this._request(c,h)];case 7:return
A.trys.push([7,9,,10]),v=this._sign(Ny({},c),m,{region:o,service:s}),[4,eE(v)];case
8:return b=A.sent(),[2,h?b:b.data];case
9:if(y=A.sent(),tE.debug(y),ae.isClockSkewError(y)&&(w=y.response.headers,_=w&&(w.d
ate||w.Date),E=new Date(_),S=ae.getDateFromHeaderString(v.headers["x-amz-
date"]),ae.isClockSkewed(E)))return T=S.getTime()-
ae.getClockOffset(),ae.setClockOffset(E.getTime()-T),[2,this.ajax(e,t,n)];throw
y;case 10:return[2]}}))}))},e.prototype.get=function(e,t){return
this.ajax(e,"GET",t)},e.prototype.put=function(e,t){return
this.ajax(e,"PUT",t)},e.prototype.patch=function(e,t){return
this.ajax(e,"PATCH",t)},e.prototype.post=function(e,t){return
this.ajax(e,"POST",t)},e.prototype.del=function(e,t){return
this.ajax(e,"DELETE",t)},e.prototype.head=function(e,t){return
this.ajax(e,"HEAD",t)},e.prototype.cancel=function(e,t){var
n=this._cancelTokenMap.get(e);return!!n&&(n.cancel(t),!
0)},e.prototype.hasCancelToken=function(e){return
this._cancelTokenMap.has(e)},e.prototype.isCancel=function(e){return
eE.isCancel(e)},e.prototype.getCancellableToken=function(){return
eE.CancelToken.source()},e.prototype.updateRequestToBeCancellable=function(e,t)
{this._cancelTokenMap.set(e,t)},e.prototype.endpoint=function(e){var
t=this,n=this._options.endpoints,r="";return Array.isArray(n)?
(n.forEach((function(n){n.name===e&&(r=n.endpoint,"string"==typeof n.region?
t._region=n.region:"string"==typeof
t._options.region&&(t._region=t._options.region),"string"==typeof n.service?
t._service=n.service||"execute-api":t._service="execute-api","function"==typeof
n.custom_header?t._custom_header=n.custom_header:t._custom_header=void
0)})),r):r},e.prototype._sign=function(e,t,n){var
r=n.service,i=n.region,o=e.signerServiceInfo,s=Ly(e,["signerServiceInfo"]),a=i||
this._region||this._options.region,c=r||this._service||
this._options.service,u={secret_key:t.secretAccessKey,access_key:t.accessKeyId,sess
ion_token:t.sessionToken},l={region:a,service:c},h=Object.assign(l,o),d=Ue.sign(s,u
,h);return d.data&&(d.body=d.data),tE.debug("Signed Request: ",d),delete
d.headers.host,d},e.prototype._request=function(e,t){return void 0===t&&(t=!
1),eE(e).then((function(e){return t?e:e.data})).catch((function(e){throw
tE.debug(e),e}))},e.prototype._parseUrl=function(e){var
t=e.split("/");return{host:t[2],path:"/"+t.slice(3).join("/")}},e}(),rE=new
h("GraphQLAPI"),iE=function(){function e(e)
{this._api=null,this.Auth=Gp,this.Cache=W,this.Credentials=Tn,this._options=e,rE.de
bug("API Options",this._options)}return e.prototype.getModuleName=function()
{return"InternalGraphQLAPI"},e.prototype.configure=function(e){var t=e||
{},n=t.API,r=void 0===n?{}:n,i=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(t,["API"]),o=Nv(Nv({},i),r);return rE.debug("configure GraphQL
API",{opt:o}),o.aws_project_region&&(o=Object.assign({},o,
{region:o.aws_project_region,header:{}})),void 0!==o.graphql_headers&&"function"!
=typeof o.graphql_headers&&(rE.warn("graphql_headers should be a
function"),o.graphql_headers=void
0),this._options=Object.assign({},this._options,o),this.createInstance(),this._opti
ons},e.prototype.createInstance=function(){return rE.debug("create Rest
instance"),this._options?(this._api=new
nE(this._options),this._api.Credentials=this.Credentials,!0):Promise.reject("API
not configured")},e.prototype._headerBasedAuth=function(e,t){return void
0===t&&(t={}),Lv(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u;return Fv(this,
(function(l){switch(l.label){case
0:switch(n=this._options,r=n.aws_appsync_authenticationType,i=n.aws_appsync_apiKey,
o={},e||r||"AWS_IAM")
{case"API_KEY":return[3,1];case"AWS_IAM":return[3,2];case"OPENID_CONNECT":return[3,
4];case"AMAZON_COGNITO_USER_POOLS":return[3,11];case"AWS_LAMBDA":return[3,15]}retur
n[3,16];case 1:if(!i)throw new Error(Ay.NO_API_KEY);return
o={Authorization:null,"X-Api-Key":i},[3,17];case
2:return[4,this._ensureCredentials()];case 3:if(!l.sent())throw new
Error(Ay.NO_CREDENTIALS);return[3,17];case 4:return l.trys.push([4,9,,10]),s=void
0,[4,W.getItem("federatedInfo")];case 5:return(a=l.sent())?(s=a.token,[3,8]):
[3,6];case 6:return[4,Gp.currentAuthenticatedUser()];case 7:
(c=l.sent())&&(s=c.token),l.label=8;case 8:if(!s)throw new
Error(Ay.NO_FEDERATED_JWT);return o={Authorization:s},[3,10];case 9:throw
l.sent(),new Error(Ay.NO_CURRENT_USER);case 10:return[3,17];case 11:return
l.trys.push([11,13,,14]),[4,this.Auth.currentSession()];case 12:return
u=l.sent(),o={Authorization:u.getAccessToken().getJwtToken()},[3,14];case 13:throw
l.sent(),new Error(Ay.NO_CURRENT_USER);case 14:return[3,17];case 15:if(!
t.Authorization)throw new Error(Ay.NO_AUTH_TOKEN);return
o={Authorization:t.Authorization},[3,17];case 16:return o={Authorization:null},
[3,17];case 17:return[2,o]}}))}))},e.prototype.getGraphqlOperationType=function(e)
{return jv(Lb(e).definitions,1)[0].operation},e.prototype.graphql=function(e,t,n)
{var r=e.query,i=e.variables,o=void 0===i?
{}:i,s=e.authMode,a=e.authToken,c=Lb("string"==typeof r?
r:zb(r)),u=jv(c.definitions.filter((function(e)
{return"OperationDefinition"===e.kind})),1)[0],l=(void 0===u?{}:u).operation,h=t||
{};switch(a&&(h.Authorization=a),l)
{case"query":case"mutation":this.createInstanceIfNotCreated();var
d=this._api.getCancellableToken(),f={cancellableToken:d,withCredentials:this._optio
ns.withCredentials},p=this._graphql({query:c,variables:o,authMode:s},h,f,n);return
this._api.updateRequestToBeCancellable(p,d),p;case"subscription":return
this._graphqlSubscribe({query:c,variables:o,authMode:s},h,n);default:throw new
Error("invalid operation type:
".concat(l))}},e.prototype._graphql=function(e,t,n,r){var
i=e.query,o=e.variables,s=e.authMode;return void 0===t&&(t={}),void
0===n&&(n={}),Lv(this,void 0,void 0,(function(){var
e,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C;return Fv(this,(function(O)
{switch(O.label){case 0:return
this.createInstanceIfNotCreated(),e=this._options,a=e.aws_appsync_region,c=e.aws_ap
psync_graphqlEndpoint,u=e.graphql_headers,l=void 0===u?function()
{return{}}:u,h=e.graphql_endpoint,d=e.graphql_endpoint_iam_region,p=[{}],(g=!h)?
[4,this._headerBasedAuth(s,t)]:[3,2];case 1:g=O.sent(),O.label=2;case 2:return
m=[Nv.apply(void 0,p.concat([g]))],(v=h)?d?[4,this._headerBasedAuth(s,t)]:[3,4]:
[3,6];case 3:return b=O.sent(),[3,5];case 4:b={Authorization:null},O.label=5;case
5:v=b,O.label=6;case 6:return y=[Nv.apply(void 0,m.concat([v]))],
[4,l({query:i,variables:o})];case 7:if(f=Nv.apply(void 0,[Nv.apply(void 0,
[Nv.apply(void 0,y.concat([O.sent()])),t]),!h&&(C={},C["x-amz-user-
agent"]=un(r),C)]),w={query:zb(i),variables:o},_=Object.assign({headers:f,body:w,si
gnerServiceInfo:{service:h?"execute-api":"appsync",region:h?d:a}},n),!(E=h||
c))throw{data:{},errors:[new rb("No graphql endpoint provided.")]};O.label=8;case
8:return O.trys.push([8,10,,11]),[4,this._api.post(E,_)];case 9:return S=O.sent(),
[3,11];case 10:if(T=O.sent(),this._api.isCancel(T))throw T;return S={data:
{},errors:[new rb(T.message,null,null,null,null,T)]},[3,11];case
11:if((A=S.errors)&&A.length)throw
S;return[2,S]}}))}))},e.prototype.createInstanceIfNotCreated=function(){return
Lv(this,void 0,void 0,(function(){return Fv(this,(function(e){switch(e.label){case
0:return this._api?[3,2]:[4,this.createInstance()];case 1:e.sent(),e.label=2;case
2:return[2]}}))}))},e.prototype.isCancel=function(e){return
this._api.isCancel(e)},e.prototype.cancel=function(e,t){return
this._api.cancel(e,t)},e.prototype.hasCancelToken=function(e){return
this._api.hasCancelToken(e)},e.prototype._graphqlSubscribe=function(e,t,n){var
r=e.query,i=e.variables,o=e.authMode,s=e.authToken;void 0===t&&(t={});var
a=this._options,c=a.aws_appsync_region,u=a.aws_appsync_graphqlEndpoint,l=a.aws_apps
ync_authenticationType,h=a.aws_appsync_apiKey,d=a.graphql_headers,f=void 0===d?
function(){return{}}:d,p=o||l||"AWS_IAM";if(My&&"function"==typeof
My.subscribe)return My.subscribe("",
{provider:Tp,appSyncGraphqlEndpoint:u,authenticationType:p,apiKey:h,query:zb(r),reg
ion:c,variables:i,graphql_headers:f,additionalHeaders:t,authToken:s},n);throw
rE.debug("No pubsub module applied for subscription"),new Error("No pubsub module
applied for subscription")},e.prototype._ensureCredentials=function(){var
e=this;return
this.Credentials.get().then((function(t){if(!t)return!1;var
n=e.Credentials.shear(t);return rE.debug("set credentials for api",n),!
0})).catch((function(e){return rE.warn("ensure credentials error",e),!1}))},e}
(),oE=new iE(null);p.register(oE);var sE=new h("RestAPI"),aE=function(){function
e(e){this._api=null,this.Credentials=Tn,this._options=e,sE.debug("API
Options",this._options)}return e.prototype.getModuleName=function()
{return"RestAPI"},e.prototype.configure=function(e){var t=e||{},n=t.API,r=void
0===n?{}:n,i=Ly(t,["API"]),o=Ny(Ny({},i),r);if(sE.debug("configure Rest API",
{opt:o}),o.aws_project_region){if(o.aws_cloud_logic_custom){var
s=o.aws_cloud_logic_custom;o.endpoints="string"==typeof s?
JSON.parse(s):s}o=Object.assign({},o,{region:o.aws_project_region,header:
{}})}return Array.isArray(o.endpoints)?o.endpoints.forEach((function(e){void 0!
==e.custom_header&&"function"!=typeof e.custom_header&&(sE.warn("Rest API
"+e.name+", custom_header should be a function"),e.custom_header=void
0)})):this._options&&Array.isArray(this._options.endpoints)?
o.endpoints=this._options.endpoints:o.endpoints=[],this._options=Object.assign({},t
his._options,o),this.createInstance(),this._options},e.prototype.createInstance=fun
ction(){return sE.debug("create Rest API instance"),this._api=new
nE(this._options),this._api.Credentials=this.Credentials,!
0},e.prototype.get=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.get(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.post=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.post(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.put=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.put(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.patch=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.patch(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.del=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.del(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.head=function(e,t,n){try{var
r=this.getEndpointInfo(e,t),i=this._api.getCancellableToken(),o=Object.assign({},n)
;o.cancellableToken=i;var s=this._api.head(r,o);return
this._api.updateRequestToBeCancellable(s,i),s}catch(e){return
Promise.reject(e.message)}},e.prototype.isCancel=function(e){return
this._api.isCancel(e)},e.prototype.cancel=function(e,t){return
this._api.cancel(e,t)},e.prototype.hasCancelToken=function(e){return
this._api.hasCancelToken(e)},e.prototype.endpoint=function(e){return Fy(this,void
0,void 0,(function(){return jy(this,(function(t)
{return[2,this._api.endpoint(e)]}))}))},e.prototype.getEndpointInfo=function(e,t)
{var n=this._options.endpoints;if(!Array.isArray(n))throw new Error("API category
not configured");var r=n.find((function(t){return t.name===e}));if(!r)throw new
Error("API ".concat(e," does not exist"));var
i={endpoint:r.endpoint+t};return"string"==typeof r.region?
i.region=r.region:"string"==typeof
this._options.region&&(i.region=this._options.region),"string"==typeof r.service?
i.service=r.service||"execute-api":i.service="execute-api","function"==typeof
r.custom_header?i.custom_header=r.custom_header:i.custom_header=void 0,i},e}
(),cE=new aE(null);p.register(cE);var uE=new h("API"),lE=function(){function e(e)
{this.Auth=Gp,this.Cache=W,this.Credentials=Tn,this._options=e,this._restApi=new
aE(e),this._graphqlApi=new iE(e),uE.debug("API Options",this._options)}return
e.prototype.getModuleName=function()
{return"InternalAPI"},e.prototype.configure=function(e)
{this._options=Object.assign({},this._options,e),this._restApi.Credentials=this.Cre
dentials,this._graphqlApi.Auth=this.Auth,this._graphqlApi.Cache=this.Cache,this._gr
aphqlApi.Credentials=this.Credentials;var
t=this._restApi.configure(this._options),n=this._graphqlApi.configure(this._options
);return Rv(Rv({},t),n)},e.prototype.get=function(e,t,n){return
this._restApi.get(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Get))},e.prototype
.post=function(e,t,n){return
this._restApi.post(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Post))},e.prototy
pe.put=function(e,t,n){return
this._restApi.put(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Put))},e.prototype
.patch=function(e,t,n){return
this._restApi.patch(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Patch))},e.proto
type.del=function(e,t,n){return
this._restApi.del(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Del))},e.prototype
.head=function(e,t,n){return
this._restApi.head(e,t,this.getInitWithCustomUserAgentDetails(n,Q.Head))},e.prototy
pe.isCancel=function(e){return
this._restApi.isCancel(e)},e.prototype.cancel=function(e,t){return
this._restApi.hasCancelToken(e)?this._restApi.cancel(e,t):!!
this._graphqlApi.hasCancelToken(e)&&this._graphqlApi.cancel(e,t)},e.prototype.getIn
itWithCustomUserAgentDetails=function(e,t){var n={category:Y.API,action:t};return
Rv(Rv({},e),{customUserAgentDetails:n})},e.prototype.endpoint=function(e){return
function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(this,void
0,void 0,(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(t)
{return[2,this._restApi.endpoint(e)]}))}))},e.prototype.getGraphqlOperationType=fun
ction(e){return
this._graphqlApi.getGraphqlOperationType(e)},e.prototype.graphql=function(e,t,n)
{var r=Rv({category:Y.API,action:Q.GraphQl},n);return
this._graphqlApi.graphql(e,t,r)},e}(),hE=new lE(null);p.register(hE),new
h("API");var dE=function(e){function t(){return null!==e&&e.apply(this,arguments)||
this}return function(e,t){function n()
{this.constructor=e}kv(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}(t,e),t.prototype.getModuleName=function()
{return"API"},t.prototype.graphql=function(t,n){return
e.prototype.graphql.call(this,t,n)},t}(lE),fE=new dE(null);p.register(fE);var
pE=function(e,t,n){return void 0===t&&(t={}),
{query:e,variables:t,authToken:n}},gE=function(e){function t(){return null!
==e&&e.apply(this,arguments)||this}return function(e,t){function n()
{this.constructor=e}Mv(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}(t,e),t.prototype.getModuleName=function()
{return"GraphQLAPI"},t.prototype.graphql=function(t,n){return
e.prototype.graphql.call(this,t,n)},t}(iE),mE=new gE(null);p.register(mE);var
vE=n(62961);function bE(e){var t=new Error(e);return t.source="ulid",t}var
yE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",wE=yE.length,_E=Math.pow(2,48)-
1,EE=10,SE=16;function TE(e,t,n){return t>e.length-1?e:e.substr(0,t)
+n+e.substr(t+1)}function AE(e){var t=Math.floor(e()*wE);return t===wE&&(t=wE-
1),yE.charAt(t)}function CE(e,t){if(isNaN(e))throw new Error(e+" must be a
number");if(e>_E)throw bE("cannot encode time greater than "+_E);if(e<0)throw
bE("time must be positive");if(!1===Number.isInteger(e))throw bE("time must be an
integer");for(var n=void 0,r="";t>0;t--)n=e%wE,r=yE.charAt(n)+r,e=(e-n)/wE;return
r}function OE(){var e=arguments.length>0&&void 0!
==arguments[0]&&arguments[0],t=arguments[1];t||(t="undefined"!=typeof window?
window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var e=new
Uint8Array(1);return r.getRandomValues(e),e[0]/255};try{var i=n(6660);return
function(){return i.randomBytes(1).readUInt8()/255}}catch(e){}if(e)
{try{console.error("secure crypto unusable, falling back to insecure
Math.random()!")}catch(e){}return function(){return Math.random()}}throw bE("secure
crypto unusable, insecure Math.random not allowed")}function xE(e){e||(e=OE());var
t=0,n=void 0;return function(r){if(isNaN(r)&&(r=Date.now()),r<=t){var
i=n=function(e){for(var t=void 0,n=e.length,r=void 0,i=void 0,o=wE-1;!t&&n-- >=0;)
{if(r=e[n],-1===(i=yE.indexOf(r)))throw bE("incorrectly encoded string");i!==o?
t=TE(e,n,yE[i+1]):e=TE(e,n,yE[0])}if("string"==typeof t)return t;throw bE("cannot
increment this string")}(n);return CE(t,EE)+i}t=r;var o=n=function(e,t){for(var
n="";e>0;e--)n=AE(t)+n;return n}(SE,e);return CE(r,EE)+o}}IE||(IE=OE());var
IE,PE,DE=n(6247),kE=function(){function e(){}return
e.createPredicateBuilder=function(t){var n=t.name,r=new
Set(Object.keys(t.fields)),i=new Proxy({},{get:function(t,i,o){var s=i;if(!
r.has(s))throw new Error("Invalid field for model. field: "+s+", model: "+n);return
function(t){var n;return null===(n=e.sortPredicateGroupsMap.get(o))||void 0===n||
n.push({field:s,sortDirection:t}),o}}});return e.sortPredicateGroupsMap.set(i,
[]),i},e.isValidPredicate=function(t){return
e.sortPredicateGroupsMap.has(t)},e.getPredicates=function(t,n){if(void 0===n&&(n=!
0),n&&!e.isValidPredicate(t))throw new Error("The predicate is not valid");var
r=e.sortPredicateGroupsMap.get(t);if(r)return r;throw new Error("Predicate group
not found")},e.createFromExisting=function(t,n){if(n&&t)return
n(e.createPredicateBuilder(t))},e.sortPredicateGroupsMap=new WeakMap,e}
(),RE="id",ME="#",NE="-";!function(e)
{e.DATASTORE="datastore",e.USER="user",e.SYNC="sync",e.STORAGE="storage"}(PE||
(PE={}));var LE=PE.DATASTORE,FE=PE.USER,jE=PE.SYNC,BE=PE.STORAGE,UE=function(e)
{return void 0===e||null==e},HE=function(e,t,n){var r,i=!1;if(0===n.length)return!
0;switch(t){case"not":r="every",i=!
0;break;case"and":r="every";break;case"or":r="some";break;default:throw new
Error("Invalid "+t)}var o=n[r]((function(t){if(BS(t)){var
n=t.field,r=t.operator,i=t.operand,o=e[n];return GE(o,r,i)}if(US(t)){var
s=t.type,a=t.predicates;return HE(e,s,a)}throw new Error("Not a predicate or
group")}));return i?!o:o},GE=function(e,t,n){switch(t){case"ne":return e!
==n;case"eq":return e===n;case"le":return e<=n;case"lt":return e<n;case"ge":return
e>=n;case"gt":return e>n;case"between":var r=po(n,2),i=r[0],o=r[1];return
e>=i&&e<=o;case"beginsWith":return!UE(e)&&e.startsWith(n);case"contains":return!
UE(e)&&e.indexOf(n)>-1;case"notContains":return UE(e)||-
1===e.indexOf(n);default:return!1}},zE=function(e){return e&&"function"==typeof
e.copyOf};new WeakSet;var VE,WE,qE=new WeakMap,KE=function(e,t,n,r,i){var
o=[],s=i(n.name,e).copyOf(t,(function()
{}));o.unshift({modelName:e,item:s,instance:s}),qE.has(n)||
qE.set(n,Array.from(n.modelTopologicalOrdering.keys()));var a=qE.get(n);return
o.sort((function(e,t){return a.indexOf(e.modelName)-
a.indexOf(t.modelName)})),o},YE=function(){return(1,vE.lW.from((new
Tf).random(1).toString(),"hex")).readUInt8(0)/255};function $E(e){var
t=xE(YE);return function(){return t(e)}}function QE(){return"undefined"!=typeof
performance&&performance&&"function"==typeof performance.now?0|
performance.now():Date.now()}function XE(e){return function(t,n){var
r,i;try{for(var o=fo(e),s=o.next();!s.done;s=o.next()){var
a=s.value,c=a.field,u=a.sortDirection===aS.ASCENDING?1:-1;if(t[c]<n[c])return-
1*u;if(t[c]>n[c])return 1*u}}catch(e){r={error:e}}finally{try{s&&!
s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return 0}}function
ZE(e,t,n){var r,i;void 0===n&&(n=!1);var o=e,s=t;if(o instanceof Object&&!(s
instanceof Object)||!(o instanceof Object)&&s instanceof Object)return!1;if(!(o
instanceof Object))return!(!n||!function(e,t){return null==e&&null==t}(o,s))||
o===s;if(Array.isArray(o)&&!Array.isArray(s)||Array.isArray(s)&&!
Array.isArray(o))return!1;o instanceof Set&&s instanceof Set&&(o=go(o),s=go(s)),o
instanceof Map&&s instanceof
Map&&(o=Object.fromEntries(o),s=Object.fromEntries(s));var
a=Object.keys(o),c=Object.keys(s);if(a.length!==c.length&&(!n||
Array.isArray(o)))return!1;var u=a.length>=c.length?a:c;try{for(var
l=fo(u),h=l.next();!h.done;h=l.next()){var d=h.value;if(!ZE(o[d],s[d],n))return!
1}}catch(e){r={error:e}}finally{try{h&&!
h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return!0}function
JE(e,t){if(t&&e.length>1){if(t.sort){var n=kE.getPredicates(t.sort);if(n.length)
{var r=XE(n);e.sort(r)}}var i=t.page,o=void 0===i?0:i,s=t.limit,a=void 0===s?
0:s,c=Math.max(0,o*a)||0,u=a>0?c+a:e.length;return e.slice(c,u)}return e}function
eS(e,t){return lo(this,void 0,void 0,(function(){var n,r,i,o,s,a;return ho(this,
(function(c){switch(c.label){case
0:c.trys.push([0,5,6,7]),n=fo(e),r=n.next(),c.label=1;case 1:return r.done?[3,4]:
(i=r.value,[4,t(i)]);case 2:if(c.sent())return[2,!0];c.label=3;case 3:return
r=n.next(),[3,1];case 4:return[3,7];case 5:return o=c.sent(),s={error:o},[3,7];case
6:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case
7:return[2,!1]}}))}))}function tS(e,t){return lo(this,void 0,void 0,(function(){var
n,r,i,o,s,a;return ho(this,(function(c){switch(c.label){case
0:c.trys.push([0,5,6,7]),n=fo(e),r=n.next(),c.label=1;case 1:return r.done?[3,4]:
(i=r.value,[4,t(i)]);case 2:if(!c.sent())return[2,!1];c.label=3;case 3:return
r=n.next(),[3,1];case 4:return[3,7];case 5:return o=c.sent(),s={error:o},[3,7];case
6:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case
7:return[2,!0]}}))}))}var nS,rS,iS,oS,sS,aS,cS,uS,lS,hS,dS=function(e){return!!/^\
d{4}-\d{2}-\d{2}(Z|[+-]\d{2}:\d{2}($|:\d{2}))?$/.exec(e)},fS=function(e){return!!/
^\d{2}:\d{2}(:\d{2}(.\d+)?)?(Z|[+-]\d{2}:\d{2}($|:\d{2}))?
$/.exec(e)},pS=function(e){return!!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(.\d+)?)?
(Z|[+-]\d{2}:\d{2}($|:\d{2}))?$/.exec(e)},gS=function(e){return!!/^\d+
$/.exec(String(e))},mS=function(e){return!!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-
zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
zA-Z0-9])?)*$/.exec(e)},vS=function(e){try{return JSON.parse(e),!0}catch(e){return!
1}},bS=function(e){try{return!!new URL(e)}catch(e){return!1}},yS=function(e)
{return!!/^\+?\d[\d\s-]+$/.exec(e)},wS=function(e){return!!/((^((([0-9]|[1-9][0-9]|
1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-
5]))$)|(^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-
9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\
d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|
1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:)
{4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-
9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-
9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)
(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-
f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.
(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]
{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-
5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]
{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))
{3}))|:)))(%.+)?$))$/.exec(e)},_S=function(){var e=this;this.promise=new
Promise((function(t,n){e.resolve=t,e.reject=n}))},ES=function(){function e(e)
{this.limitPromise=new _S,this.raceInFlight=!1,this.callback=function()
{},this.defaultErrorHandler=function(e){throw void
0===e&&(e="DeferredCallbackResolver error"),new
Error(e)},this.callback=e.callback,this.errorHandler=e.errorHandler||
this.defaultErrorHandler,this.maxInterval=e.maxInterval||2e3}return
e.prototype.startTimer=function(){var e=this;this.timerPromise=new
Promise((function(t,n){e.timer=setTimeout((function()
{t(GS.TIMER)}),e.maxInterval)}))},e.prototype.racePromises=function(){return
lo(this,void 0,void 0,(function(){var e,t;return ho(this,(function(n)
{switch(n.label){case 0:return n.trys.push([0,2,3,4]),this.raceInFlight=!
0,this.startTimer(),
[4,Promise.race([this.timerPromise,this.limitPromise.promise])];case 1:return
e=n.sent(),this.callback(),[3,4];case 2:return t=n.sent(),this.errorHandler(t),
[3,4];case 3:return this.clear(),this.raceInFlight=!1,this.limitPromise=new _S,
[2,e];case 4:return[2]}}))}))},e.prototype.start=function(){this.raceInFlight||
this.racePromises()},e.prototype.clear=function()
{clearTimeout(this.timer)},e.prototype.resolve=function()
{this.limitPromise.resolve(GS.LIMIT)},e}(),SS=function(e,t){return
e+"_"+t},TS=function(e){var t=function(e){var t;return null===(t=null==e?void
0:e.attributes)||void 0===t?void 0:t.find(MS)}(e);return t&&NS(t)?
t.properties.fields:[RE]},AS=function(e,t){return t.map((function(t){return
e[t]}))},CS=function(e){var t={},n={};return
Object.keys(e.models).forEach((function(r){var i,o;t[r]={indexes:[],relationTypes:
[]},n[r]={};var s,a,c=e.models[r];if(Object.keys(c.fields).forEach((function(e){var
n=c.fields[e];if("object"==typeof n.type&&"model"in n.type){var
i=n.association.connectionType;if(t[r].relationTypes.push({fieldName:n.name,modelNa
me:n.type.model,relationType:i,targetName:n.association.targetName,targetNames:n.as
sociation.targetNames,associatedWith:n.association.associatedWith}),"BELONGS_TO"===
i){var o=OS(n.association);if(o){var s=xS(o),a=t[r].indexes.find((function(e)
{return po(e,1)[0]===s}));a||t[r].indexes.push([s,o])}}}})),c.attributes)
{n[r].compositeKeys=(s=function(e){return e.reduce((function(e,t){var n=new
Set(t);if(0===e.length)return e.push(n),e;var r=e.findIndex((function(e){return
go(e).some((function(e){return n.has(e)}))}));if(r>-1){var i=new
Set(go(e[r],n));e[r]=i}else e.push(n);return e}),
[])},a=s(c.attributes.filter(LS).map((function(e){return
po(e.properties.fields).slice(1)}))),s(a));var u=function(e){if(!
MS(e))return"continue";var i=e.properties.fields;if(NS(e))return
n[r].primaryKey=i,"continue";var o=xS(i),s=t[r].indexes.find((function(e){return
po(e,1)[0]===o}));s||t[r].indexes.push([o,i])};try{for(var
l=fo(c.attributes),h=l.next();!h.done;h=l.next())u(h.value)}catch(e)
{i={error:e}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw
i.error}}}n[r].primaryKey||
(n[r].primaryKey=[RE]),t[r].indexes.push(["byPk",n[r].primaryKey,{unique:!0}])})),
[t,n]},OS=function(e){var t=null==e?void 0:e.targetName,n=null==e?void
0:e.targetNames;return Array.isArray(n)?n:"string"==typeof t?[t]:void
0},xS=function(e){return e.reduce((function(e,t,n){return 0===n?
t:""+e+NE+t}),"")},IS=function(e,t){return
e.length===t.length&&e.every((function(e,n){return e===t[n]}))},PS=function(e,t)
{var n,r;return(null===(r=null===(n=null==e?void 0:e.keys)||void 0===n?void
0:n[t])||void 0===r?void 0:r.primaryKey)||[RE]};function DS(e){return e&&void 0!
==e.pluralName}function kS(e){return(null==e?void 0:e.targetName)||(null==e?void
0:e.targetNames)}function RS(e,t){var n,r;return null===(r=null===(n=null==e?void
0:e.fields[t])||void 0===n?void 0:n.association)||void 0===r?void
0:r.connectionType}function MS(e)
{return"key"===e.type&&e.properties&&e.properties.fields&&e.properties.fields.lengt
h>0}function NS(e){return MS(e)&&void 0===e.properties.name}function LS(e){return
MS(e)&&void 0!==e.properties.name&&e.properties.fields.length>2}function FS(e)
{return!(!e||!e.nonModel)}function jS(e,t){var n=TS(t);return"object"==typeof
e&&e&&n.every((function(t){return void 0!==e[t]}))}function BS(e){return e&&void 0!
==e.field}function US(e){return e&&void 0!==e.type}function HS(e,t){return
lo(this,void 0,void 0,(function(){return ho(this,(function(n){return[2,
{modelConstructor:e,conditionProducer:t}]}))}))}!function(e)
{e.CUSTOM="custom",e.OWNER="owner",e.GROUPS="groups",e.PRIVATE="private",e.PUBLIC="
public"}(nS||(nS={})),function(e)
{e.FUNCTION="function",e.USER_POOLS="userPools",e.OIDC="oidc",e.IAM="iam",e.API_KEY
="apiKey"}(rS||(rS={})),(hS=iS||(iS={}))
[hS.ID=0]="ID",hS[hS.String=1]="String",hS[hS.Int=2]="Int",hS[hS.Float=3]="Float",h
S[hS.Boolean=4]="Boolean",hS[hS.AWSDate=5]="AWSDate",hS[hS.AWSTime=6]="AWSTime",hS[
hS.AWSDateTime=7]="AWSDateTime",hS[hS.AWSTimestamp=8]="AWSTimestamp",hS[hS.AWSEmail
=9]="AWSEmail",hS[hS.AWSJSON=10]="AWSJSON",hS[hS.AWSURL=11]="AWSURL",hS[hS.AWSPhone
=12]="AWSPhone",hS[hS.AWSIPAddress=13]="AWSIPAddress",function(e)
{e.getJSType=function(e){switch(e)
{case"Boolean":return"boolean";case"ID":case"String":case"AWSDate":case"AWSTime":ca
se"AWSDateTime":case"AWSEmail":case"AWSURL":case"AWSPhone":case"AWSIPAddress":retur
n"string";case"Int":case"Float":case"AWSTimestamp":return"number";case"AWSJSON":ret
urn"object";default:throw new Error("Invalid scalar
type")}},e.getValidationFunction=function(e){switch(e){case"AWSDate":return
dS;case"AWSTime":return fS;case"AWSDateTime":return pS;case"AWSTimestamp":return
gS;case"AWSEmail":return mS;case"AWSJSON":return vS;case"AWSURL":return
bS;case"AWSPhone":return yS;case"AWSIPAddress":return wS;default:return}}}(iS||
(iS={})),function(e){e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"}(oS||
(oS={})),function(e){e[e.FIRST=0]="FIRST",e[e.LAST=1]="LAST"}(sS||
(sS={})),function(e){e.ASCENDING="ASCENDING",e.DESCENDING="DESCENDING"}(aS||
(aS={})),function(e){e.DEFAULT="DEFAULT",e.MULTI_AUTH="MULTI_AUTH"}(cS||
(cS={})),function(e)
{e.CREATE="CREATE",e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE"}(uS||
(uS={})),function(e){e.sync="sync",e.mutate="mutate",e.subscribe="subscribe"}(lS||
(lS={}));var GS,zS=Symbol("DISCARD");!function(e){e.LIMIT="LIMIT",e.TIMER="TIMER"}
(GS||(GS={}));var VS,WS=function(){this.__isPredicateInternalsKeySentinel=!
0},qS=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:
[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return
function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends
value "+String(n)+" is not a constructor or null");function r()
{this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):
(r.prototype=n.prototype,new r)}}(),KS=function(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},YS=function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},$S=function(){function e()
{this._state=VS.Open,this.jobs=new Set}return e.prototype.add=function(t,n){var
r,i;"string"==typeof t?(r=void 0,i=t):(r=t,i=n);var
o=this.closedFailure(i);if(o)return o;if(void 0===r)return
this.addHook(i);if("function"==typeof r)return this.addFunction(r,i);if(r
instanceof e)return this.addManager(r,i);throw new Error("If `job` is provided, it
must be an Observable, Function, or
BackgroundProcessManager.")},e.prototype.addCleaner=function(e,t){var
n=this,r=this.addHook(t),i=r.resolve,o=function(){return KS(n,void 0,void 0,
(function(){return YS(this,(function(t){switch(t.label){case 0:return[4,e()];case
1:return t.sent(),i(),[2]}}))}))};return
r.onTerminate.then(o),o},e.prototype.addFunction=function(e,t){var n,r=e(new
Promise((function(e){n=e})));return"function"==typeof(null==r?void
0:r.then)&&this.registerPromise(r,n,t),r},e.prototype.addManager=function(e,t){var
n=this;this.addCleaner((function(){return KS(n,void 0,void 0,(function(){return
YS(this,(function(t){switch(t.label){case 0:return[4,e.close()];case
1:return[2,t.sent()]}}))}))}),t)},e.prototype.addHook=function(e){var t,n,r,i=new
Promise((function(e,r){t=e,n=r})),o=new Promise((function(e){r=e}));return
this.registerPromise(i,r,e),
{resolve:t,reject:n,onTerminate:o}},e.prototype.registerPromise=function(e,t,n){var
r=this,i={promise:e,terminate:t,description:n};this.jobs.add(i),e.then((function()
{r.jobs.delete(i)})).catch((function()
{r.jobs.delete(i)}))},Object.defineProperty(e.prototype,"length",{get:function()
{return this.jobs.size},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"state",{get:function(){return
this._state},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"pending",{get:function(){return
Array.from(this.jobs).map((function(e){return e.description}))},enumerable:!
1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function()
{return this._state===VS.Open},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"isClosing",{get:function(){return
this._state===VS.Closing},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"isClosed",{get:function(){return
this._state===VS.Closed},enumerable:!1,configurable:!
0}),e.prototype.closedFailure=function(e){if(!this.isOpen)return Promise.reject(new
QS(["The manager is ".concat(this.state,"."),'You tried to add
"'.concat(e,'".'),"Pending jobs: [\n".concat(this.pending.map((function(e){return"
"+e})).join(",\n"),"\n]")].join("\n")))},e.prototype.close=function(){return
KS(this,void 0,void 0,(function(){var e,t,n,r,i;return YS(this,(function(o)
{switch(o.label){case 0:if(!
this.isOpen)return[3,2];this._state=VS.Closing;try{for(e=function(e){var
t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return
n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return
e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new
TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
(Array.from(this.jobs)),t=e.next();!t.done;t=e.next())
{n=t.value;try{n.terminate()}catch(e){console.warn("Failed to send termination
signal to job. Error: ".concat(e.message),n)}}}catch(e)
{r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw
r.error}}return
this._closingPromise=Promise.allSettled(Array.from(this.jobs).map((function(e)
{return e.promise}))),[4,this._closingPromise];case
1:o.sent(),this._state=VS.Closed,o.label=2;case
2:return[2,this._closingPromise]}}))}))},e.prototype.open=function(){return
KS(this,void 0,void 0,(function(){return YS(this,(function(e){switch(e.label){case
0:return this.isClosing?[4,this.close()]:[3,2];case 1:e.sent(),e.label=2;case
2:return this._state=VS.Open,[2]}}))}))},e}(),QS=function(e){function t(t){return
e.call(this,"BackgroundManagerNotOpenError: ".concat(t))||this}return qS(t,e),t}
(Error);function XS(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r+
+)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?"
"+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at:
https://bit.ly/3cXEKWf")}function ZS(e){return!!e&&!!e[jT]}function JS(e){return!!
e&&(function(e){if(!e||"object"!=typeof e)return!1;var
t=Object.getPrototypeOf(e);if(null===t)return!0;var
n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return
n===Object||"function"==typeof n&&Function.toString.call(n)===BT}(e)||
Array.isArray(e)||!!e[FT]||!!e.constructor[FT]||oT(e)||sT(e))}function eT(e,t,n)
{void 0===n&&(n=!1),0===tT(e)?(n?Object.keys:UT)(e).forEach((function(r)
{n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return
t(r,n,e)}))}function tT(e){var t=e[jT];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?
1:oT(e)?2:sT(e)?3:0}function nT(e,t){return 2===tT(e)?
e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rT(e,t){return
2===tT(e)?e.get(t):e[t]}function iT(e,t,n){var r=tT(e);2===r?e.set(t,n):3===r?
(e.delete(t),e.add(n)):e[t]=n}function oT(e){return RT&&e instanceof Map}function
sT(e){return MT&&e instanceof
Set}function aT(e){return e.o||e.t}function cT(e){if(Array.isArray(e))return
Array.prototype.slice.call(e);var t=HT(e);delete t[jT];for(var
n=UT(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!
0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!
0,enumerable:o.enumerable,value:e[i]})}return
Object.create(Object.getPrototypeOf(e),t)}function uT(e,t){return void 0===t&&(t=!
1),hT(e)||ZS(e)||!JS(e)||
(tT(e)>1&&(e.set=e.add=e.clear=e.delete=lT),Object.freeze(e),t&&eT(e,(function(e,t)
{return uT(t,!0)}),!0)),e}function lT(){XS(2)}function hT(e){return
null==e||"object"!=typeof e||Object.isFrozen(e)}function dT(e){var t=GT[e];return
t||XS(18,e),t}function fT(){return DT}function pT(e,t)
{t&&(dT("Patches"),e.u=[],e.s=[],e.v=t)}function gT(e)
{mT(e),e.p.forEach(bT),e.p=null}function mT(e){e===DT&&(DT=e.l)}function vT(e)
{return DT={p:[],l:DT,h:e,m:!0,_:0}}function bT(e){var t=e[jT];0===t.i||1===t.i?
t.j():t.O=!0}function yT(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!
==n;return t.h.g||dT("ES5").S(t,e,r),r?
(n[jT].P&&(gT(t),XS(4)),JS(e)&&(e=wT(t,e),t.l||
ET(t,e)),t.u&&dT("Patches").M(n[jT],e,t.u,t.s)):e=wT(t,n,
[]),gT(t),t.u&&t.v(t.u,t.s),e!==LT?e:void 0}function wT(e,t,n){if(hT(t))return
t;var r=t[jT];if(!r)return eT(t,(function(i,o){return _T(e,r,t,i,o,n)}),!
0),t;if(r.A!==e)return t;if(!r.P)return ET(e,r.t,!0),r.t;if(!r.I){r.I=!
0,r.A._--;var i=4===r.i||5===r.i?r.o=cT(r.k):r.o;eT(3===r.i?new Set(i):i,
(function(t,o){return _T(e,r,i,t,o,n)})),ET(e,i,!
1),n&&e.u&&dT("Patches").R(r,n,e.u,e.s)}return r.o}function _T(e,t,n,r,i,o)
{if(ZS(i)){var s=wT(e,i,o&&t&&3!==t.i&&!nT(t.D,r)?o.concat(r):void
0);if(iT(n,r,s),!ZS(s))return;e.m=!1}if(JS(i)&&!hT(i)){if(!
e.h.F&&e._<1)return;wT(e,i),t&&t.A.l||ET(e,i)}}function ET(e,t,n){void 0===n&&(n=!
1),e.h.F&&e.m&&uT(t,n)}function ST(e,t){var n=e[jT];return(n?aT(n):e)[t]}function
TT(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var
r=Object.getOwnPropertyDescriptor(n,t);if(r)return
r;n=Object.getPrototypeOf(n)}}function AT(e){e.P||(e.P=!0,e.l&&AT(e.l))}function
CT(e){e.o||(e.o=cT(e.t))}function OT(e,t,n){var r=oT(t)?dT("MapSet").N(t,n):sT(t)?
dT("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?
t.A:fT(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!
1},i=r,o=zT;n&&(i=[r],o=VT);var s=Proxy.revocable(i,o),a=s.revoke,c=s.proxy;return
r.k=c,r.j=a,c}(t,n):dT("ES5").J(t,n);return(n?n.A:fT()).p.push(r),r}function xT(e)
{return ZS(e)||XS(22,e),function e(t){if(!JS(t))return t;var
n,r=t[jT],i=tT(t);if(r){if(!r.P&&(r.i<4||!dT("ES5").K(r)))return r.t;r.I=!
0,n=IT(t,i),r.I=!1}else n=IT(t,i);return eT(n,(function(t,i){r&&rT(r.t,t)===i||
iT(n,t,e(i))})),3===i?new Set(n):n}(e)}function IT(e,t){switch(t){case 2:return new
Map(e);case 3:return Array.from(e)}return cT(e)}!function(e)
{e.Open="Open",e.Closing="Closing",e.Closed="Closed"}(VS||(VS={}));var
PT,DT,kT="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),RT="undefined"!
=typeof Map,MT="undefined"!=typeof Set,NT="undefined"!=typeof Proxy&&void 0!
==Proxy.revocable&&"undefined"!=typeof Reflect,LT=kT?Symbol.for("immer-nothing"):
((PT={})["immer-nothing"]=!0,PT),FT=kT?Symbol.for("immer-
draftable"):"__$immer_draftable",jT=kT?Symbol.for("immer-
state"):"__$immer_state",BT=("undefined"!=typeof
Symbol&&Symbol.iterator,""+Object.prototype.constructor),UT="undefined"!=typeof
Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?
function(e){return
Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOw
nPropertyNames,HT=Object.getOwnPropertyDescriptors||function(e){var t={};return
UT(e).forEach((function(n)
{t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},GT={},zT={get:function(e,t)
{if(t===jT)return e;var n=aT(e);if(!nT(n,t))return function(e,t,n){var
r,i=TT(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void
0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!JS(r)?r:r===ST(e.t,t)?
(CT(e),e.o[t]=OT(e.A.h,r,e)):r},has:function(e,t){return t in
aT(e)},ownKeys:function(e){return Reflect.ownKeys(aT(e))},set:function(e,t,n){var
r=TT(aT(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var
i=ST(aT(e),t),o=null==i?void 0:i[jT];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!
0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||
nT(e.t,t)))return!0;CT(e),AT(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!
==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void
0!==ST(e.t,t)||t in e.t?(e.D[t]=!1,CT(e),AT(e)):delete e.D[t],e.o&&delete e.o[t],!
0},getOwnPropertyDescriptor:function(e,t){var
n=aT(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!
0,configurable:1!==e.i||"length"!
==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function()
{XS(11)},getPrototypeOf:function(e){return
Object.getPrototypeOf(e.t)},setPrototypeOf:function(){XS(12)}},VT={};eT(zT,
(function(e,t){VT[e]=function(){return arguments[0]=arguments[0]
[0],t.apply(this,arguments)}})),VT.deleteProperty=function(e,t){return
zT.deleteProperty.call(this,e[0],t)},VT.set=function(e,t,n){return
zT.set.call(this,e[0],t,n,e[0])};var WT=function(){function e(e){var
t=this;this.g=NT,this.F=!0,this.produce=function(e,n,r){if("function"==typeof
e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void
0===e&&(e=i);for(var r=arguments.length,s=Array(r>1?r-1:0),a=1;a<r;a++)s[a-
1]=arguments[a];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,
[t,e].concat(s))}))}}var s;if("function"!=typeof n&&XS(6),void 0!==r&&"function"!
=typeof r&&XS(7),JS(e)){var a=vT(t),c=OT(t,e,void 0),u=!0;try{s=n(c),u=!
1}finally{u?gT(a):mT(a)}return"undefined"!=typeof Promise&&s instanceof Promise?
s.then((function(e){return pT(a,r),yT(e,a)}),(function(e){throw gT(a),e})):
(pT(a,r),yT(s,a))}if(!e||"object"!=typeof e){if((s=n(e))===LT)return;return void
0===s&&(s=e),t.F&&uT(s,!0),s}XS(21,e)},this.produceWithPatches=function(e,n)
{return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-
1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t)
{return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t)
{r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void
0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void
0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return
t.createDraft=function(e){JS(e)||XS(8),ZS(e)&&(e=xT(e));var
t=vT(this),n=OT(this,e,void 0);return n[jT].C=!
0,mT(t),n},t.finishDraft=function(e,t){var n=(e&&e[jT]).A;return pT(n,t),yT(void
0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!
NT&&XS(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--)
{var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var
i=dT("Patches").$;return ZS(e)?i(e,t):this.produce(e,(function(e){return
i(e,t.slice(n+1))}))},e}(),qT=new
WT,KT=(qT.produce,qT.produceWithPatches.bind(qT),qT.setAutoFreeze.bind(qT));functio
n YT(e){return"private"!==e.allow||e.provider?"public"!==e.allow||e.provider?
e.provider:rS.API_KEY:rS.USER_POOLS}function $T(e){var
t=e.rules,n=e.currentUser,r=new Set;return t.forEach((function(e){switch(e.allow)
{case nS.CUSTOM:e.provider&&e.provider!==rS.FUNCTION||
r.add(of.AWS_LAMBDA);break;case nS.GROUPS:case
nS.OWNER:n&&(e.provider===rS.USER_POOLS?
r.add(of.AMAZON_COGNITO_USER_POOLS):e.provider===rS.OIDC&&r.add(of.OPENID_CONNECT))
;break;case nS.PRIVATE:n&&(e.provider&&e.provider!==rS.USER_POOLS?
e.provider===rS.IAM&&r.add(of.AWS_IAM):r.add(of.AMAZON_COGNITO_USER_POOLS));break;c
ase nS.PUBLIC:e.provider===rS.IAM?r.add(of.AWS_IAM):e.provider&&e.provider!
==rS.API_KEY||
r.add(of.API_KEY)}})),Array.from(r)}qT.setUseProxies.bind(qT),qT.applyPatches.bind(
qT),qT.createDraft.bind(qT),qT.finishDraft.bind(qT);var QT=function()
{return[]},XT=new WeakSet;function ZT(e){return XT.has(e)}var JT=new
Set(["and","or","not"]),eA=new
Set(["eq","ne","gt","lt","ge","le","contains","notContains","beginsWith","between"]
),tA=function(e){return Array.isArray(e)?e.every((function(e){return
tA(e)})):Object.keys(e).length<=1},nA=(Symbol("A predicate that matches all
records"),function(){function e(){}return Object.defineProperty(e,"ALL",
{get:function(){var e=function(e){return e};return XT.add(e),e},enumerable:!
0,configurable:!0}),e}()),rA=function(){function e(){}return
e.isValidPredicate=function(t){return
e.predicateGroupsMap.has(t)},e.getPredicates=function(t,n){if(void 0===n&&(n=!
0),n&&!e.isValidPredicate(t))throw new Error("The predicate is not valid");return
e.predicateGroupsMap.get(t)},e.createForPk=function(e,t){var
n=TS(e),r=AS(t,n),i=this.createFromAST(e,{and:n.map((function(e,t){var
n,i=r[t];return(n={})[e]={eq:i},n}))});return
i},e.createFromFlatEqualities=function(e,t){var
n={and:Object.entries(t).map((function(e){var
t,n=po(e,2),r=n[0],i=n[1];return(t={})[r]={eq:i},t}))};return
this.createFromAST(e,n)},e.transformGraphQLFilterNodeToPredicateAST=function(e){var
t=this;if(!tA(e))throw new Error("Invalid GraphQL Condition or subtree:
"+JSON.stringify(e));if(function(e){return!
Array.isArray(e)&&0===Object.keys(e).length}(e))return{type:"and",predicates:
[]};if(function(e){var t=go(Object.keys(e));return 1===t.length&&JT.has(t[0])}(e))
{var n=Object.keys(e)
[0],r=this.transformGraphQLFilterNodeToPredicateAST(e[n]);return{type:n,predicates:
Array.isArray(r)?r:[r]}}if(function(e){var t=go(Object.keys(e));return!
Array.isArray(e)&&1===t.length&&eA.has(t[0])}(e)){var i=Object.keys(e)
[0];return{operator:i,operand:e[i]}}if(Array.isArray(e))return e.map((function(e)
{return t.transformGraphQLFilterNodeToPredicateAST(e)}));var o=Object.keys(e)
[0];return
co({field:o},this.transformGraphQLFilterNodeToPredicateAST(e[o]))},e.createFromAST=
function(t,n){var r={};return
e.predicateGroupsMap.set(r,this.transformGraphQLFilterNodeToPredicateAST(n)),r},e.p
redicateGroupsMap=new WeakMap,e}(),iA=function(){function
e(){this._queue=[],this._pending=!1}return e.prototype.isLocked=function(){return
this._pending},e.prototype.acquire=function(){var e=this,t=new Promise((function(t)
{return e._queue.push(t)}));return this._pending||
this._dispatchNext(),t},e.prototype.runExclusive=function(e){return
this.acquire().then((function(t){var n;try{n=e()}catch(e){throw t(),e}return
Promise.resolve(n).then((function(e){return t(),e}),(function(e){throw
t(),e}))}))},e.prototype._dispatchNext=function(){this._queue.length>0?
(this._pending=!0,this._queue.shift()
(this._dispatchNext.bind(this))):this._pending=!1},e}();const oA=iA;var
sA,aA,cA=n(98151),uA=n.n(cA),lA=new h("DataStore");!function(e)
{e.LIST="query",e.CREATE="mutation",e.UPDATE="mutation",e.DELETE="mutation",e.GET="
query"}(sA||(sA={})),function(e)
{e.CREATE="Create",e.UPDATE="Update",e.DELETE="Delete",e.GET="Get"}(aA||
(aA={}));var hA,dA=Object.keys({_version:void 0,_lastChangedAt:void 0,_deleted:void
0});function fA(e,t){var n=pA(t),r=function(e,t){var n=[];return
Object.values(t.fields).forEach((function(t){var r=t.name,i=t.type;if(FS(i)){var
o=e.nonModels[i.nonModel],s=Object.values(pA(o)).map((function(e){return
e.name})),a=[];Object.values(o.fields).forEach((function(t){var
n=t.type,r=t.name;if(FS(n)){var i=e.nonModels[n.nonModel];a.push(r+" { "+fA(e,i)
+" }")}})),n.push(r+" { "+s.join(" ")+" "+a.join(" ")+" }")}})),n}
(e,t),i=function(e,t){var n=function(e){var t=[];return function(e){return
DS(e)&&void 0!==e.attributes}(e)&&e.attributes.forEach((function(e)
{if(e.properties&&e.properties.rules){var n=e.properties.rules.find((function(e)
{return"owner"===e.allow}));n&&n.ownerField&&t.push(n.ownerField)}})),t}(e);return!
t.owner&&n.includes("owner")?["owner"]:[]}(t,n),o=Object.values(n).map((function(e)
{return e.name})).concat(i).concat(r);return
DS(t)&&(o=o.concat(dA).concat(function(e,t){var n=[];return
Object.values(e.fields).filter((function(e){var t=e.association;return
t&&Object.keys(t).length})).forEach((function(r){var
i=r.name,o=r.association,s=(o||{}).connectionType;switch(s)
{case"HAS_ONE":case"HAS_MANY":break;case"BELONGS_TO":if(kS(o))if(o.targetNames&&o.t
argetNames.length>0){var a=po(CS(t),1)[0]
[e.fields[i].type.model].indexes.find((function(e){return"byPk"===po(e,1)
[0]})),c=a&&a[1],u=null==c?void 0:c.join(" ");n.push(i+" { "+u+" _deleted }")}else
n.push(i+" { id _deleted }");break;default:throw new Error("Invalid connection type
"+s)}})),n}(t,e))),o.join("\n")}function pA(e){var t=e.fields;return
Object.values(t).filter((function(e){return!!((t=e.type)&&void 0!==iS[t]||
function(e){return!(!e||!e.enum)}(e.type));var t})).reduce((function(e,t){return
e[t.name]=t,e}),{})}function gA(e){var t=([].concat(e.attributes||
[]).find((function(e){return e&&"auth"===e.type}))||{}).properties,n=(void 0===t?
{}:t).rules,r=[];return(void 0===n?[]:n).forEach((function(t){var
n=t.identityClaim,i=void 0===n?"cognito:username":n,o=t.ownerField,s=void
0===o?"owner":o,a=t.operations,c=void 0===a?
["create","update","delete","read"]:a,u=t.provider,l=void
0===u?"userPools":u,h=t.groupClaim,d=void 0===h?"cognito:groups":h,f=t.allow,p=void
0===f?"iam":f,g=t.groups,m=void 0===g?[]:g,v=t.groupsField,b=void
0===v?"":v,y="owner"===p;if(c.includes("read")||y){var
w={identityClaim:i,ownerField:s,provider:l,groupClaim:d,authStrategy:p,groups:m,gro
upsField:b,areSubscriptionsPublic:!1};if(y){var _=([].concat(e.attributes||
[]).find((function(e){return e&&"model"===e.type}))||{}).properties,E=(void 0===_?
{}:_).subscriptions,S=(void 0===E?{}:E).level,T=void
0===S?"on":S;w.areSubscriptionsPublic=!c.includes("read")||"public"===T}y?
r.push(w):r.unshift(w)}})),r}function mA(e,t,n){var
r,i,o,s,a=fA(e,t),c=t.name,u=t.pluralName;switch(n)
{case"LIST":r="sync"+u,i="($limit: Int, $nextToken: String, $lastSync:
AWSTimestamp, $filter: Model"+c+"FilterInput)",o="(limit: $limit, nextToken:
$nextToken, lastSync: $lastSync, filter: $filter)",a="items {\n\t\t\t\t\t\t\t"+a+"\
n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextToken\n\t\t\t\t\t\
tstartedAt";break;case"CREATE":r="create"+c,i="($input:
Create"+c+"Input!)",o="(input:
$input)",s=aA.CREATE;break;case"UPDATE":r="update"+c,i="($input: Update"+c+"Input!,
$condition: Model"+c+"ConditionInput)",o="(input: $input, condition:
$condition)",s=aA.UPDATE;break;case"DELETE":r="delete"+c,i="($input:
Delete"+c+"Input!, $condition: Model"+c+"ConditionInput)",o="(input: $input,
condition: $condition)",s=aA.DELETE;break;case"GET":r="get"+c,i="($id:
ID!)",o="(id: $id)",s=aA.GET;break;default:throw new Error("Invalid graphQlOpType
"+n)}return[[s,r,sA[n]+" operation"+i+"{\n\t\t"+r+o+"{\n\t\t\t"+a+"\n\t\t}\n\
t}"]]}function vA(e,t,n,r,i,o,s,a,c){var u;switch(n){case
oS.INSERT:u=aA.CREATE;break;case oS.UPDATE:u=aA.UPDATE;break;case
oS.DELETE:u=aA.DELETE;break;default:throw new Error("Invalid opType "+n)}var
l=TA(t,i),h=oS.INSERT&&c?{id:c}:{},d=a(s,co(co({},h),{data:JSON.stringify(i,
(function(e,n){return e&&null!==n&&"object"==typeof
n&&t.fields[e]&&"AWSJSON"===t.fields[e].type?
JSON.stringify(n):n})),modelId:l,model:r.name,operation:u,condition:JSON.stringify(
o)}));return d}function bA(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!0);var
r={};if(!e||!Array.isArray(e.predicates))return r;var
i=e.type,o=e.predicates,s="and"===i||"or"===i;r[i]=s?[]:{};var
a=[];if(o.forEach((function(e){var n,r;if(BS(e)){var
i=e.field,o=e.operator,s=e.operand;if(t.includes(i))return;var c=((n={})[i]=((r={})
[o]=s,r),n);a.push(c)}else{var u=bA(e,t,!
1);Object.keys(u).length>0&&a.push(u)}})),1===a.length){var c=po(a,1)[0];if(s&&!n||
s&&n&&("and"in c||"or"in c))return delete
r[i],Object.assign(r,c),r}if(a.forEach((function(e){s?r[i].push(e):r[i]=e})),s)
{if(0===r[i].length)return{}}else if(0===Object.keys(r[i]).length)return{};return
r}function yA(e,t){var n=e[t.groupClaim]||[];if("string"==typeof n){var r=void
0;try{r=JSON.parse(n)}catch(e){r=n}n=[].concat(r)}return n}function wA(e){var
t=e.authModeStrategy,n=e.defaultAuthMode,r=e.modelName,i=e.schema;return
lo(this,void 0,void 0,(function(){var e,o,s,a=this;return ho(this,(function(c)
{switch(c.label){case 0:e=Object.values(uS),o={CREATE:[],READ:[],UPDATE:[],DELETE:
[]},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(e.map((function(e)
{return lo(a,void 0,void 0,(function(){var s;return ho(this,(function(a)
{switch(a.label){case 0:return[4,t({schema:i,modelName:r,operation:e})];case
1:return"string"==typeof(s=a.sent())?o[e]=[s]:Array.isArray(s)&&s.length?
o[e]=s:o[e]=[n],[2]}}))}))})))];case 2:return c.sent(),[3,4];case 3:return
s=c.sent(),lA.debug("Error getting auth modes for model: "+r,s),[3,4];case
4:return[2,o]}}))}))}function _A(e){var t,n=["Request failed with status code
401","Request failed with status code 403"];return e&&e.errors?
t=e.errors.find((function(e){return n.includes(e.message)})):e&&e.message&&(t=e),t?
t.message:null}function EA(e){var t=Object.values(Ay);return
e&&e.message&&t.find((function(t){return e.message.includes(t)}))||null}function
SA(e,t){return void 0===t&&(t={}),lo(this,void 0,void 0,(function(){var
n,r,i;return ho(this,(function(o){switch(o.label){case 0:if(e!
==of.AWS_LAMBDA)return[3,6];if(n=t.authProviders,!(r=(void 0===n?
{functionAuthProvider:null}:n).functionAuthProvider)||"function"!=typeof
r)return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r()];case
2:return[2,o.sent().token];case 3:throw i=o.sent(),new Error("Error retrieving
token from `functionAuthProvider`: "+i);case 4:return[3,6];case 5:throw new
Error("You must provide a `functionAuthProvider` function to `DataStore.configure`
when using "+of.AWS_LAMBDA);case 6:return[2]}}))}))}function TA(e,t){var
n=TS(e).map((function(e){return t[e]})).join(NE);return n}!function(e)
{e[e.UnknownField=0]="UnknownField",e[e.MaxAttributes=1]="MaxAttributes",e[e.MaxCom
binations=2]="MaxCombinations",e[e.RepeatedFieldname=3]="RepeatedFieldname",e[e.Not
Group=4]="NotGroup",e[e.FieldNotInType=5]="FieldNotInType"}(hA||(hA={}));const
AA=(e,t)=>t.some((t=>e instanceof t));let CA,OA;const xA=new WeakMap,IA=new
WeakMap,PA=new WeakMap,DA=new WeakMap,kA=new WeakMap;let RA={get(e,t,n){if(e
instanceof IDBTransaction){if("done"===t)return
IA.get(e);if("objectStoreNames"===t)return e.objectStoreNames||
PA.get(e);if("store"===t)return n.objectStoreNames[1]?void
0:n.objectStore(n.objectStoreNames[0])}return NA(e[t])},set:(e,t,n)=>(e[t]=n,!
0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in
e};function MA(e){return"function"==typeof e?(t=e)!
==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?
(OA||
(OA=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.c
ontinuePrimaryKey])).includes(t)?function(...e){return
t.apply(LA(this),e),NA(xA.get(this))}:function(...e){return
NA(t.apply(LA(this),e))}:function(e,...n){const r=t.call(LA(this),e,...n);return
PA.set(r,e.sort?e.sort():[e]),NA(r)}:(e instanceof IDBTransaction&&function(e)
{if(IA.has(e))return;const t=new Promise(((t,n)=>{const
r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.remov
eEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new
DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.ad
dEventListener("error",o),e.addEventListener("abort",o)}));IA.set(e,t)}
(e),AA(e,CA||(CA=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?
new Proxy(e,RA):e);var t}function NA(e){if(e instanceof IDBRequest)return
function(e){const t=new Promise(((t,n)=>{const
r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{
t(NA(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEv
entListener("error",o)}));return t.then((t=>{t instanceof
IDBCursor&&xA.set(t,e)})).catch((()=>{})),kA.set(t,e),t}(e);if(DA.has(e))return
DA.get(e);const t=MA(e);return t!==e&&(DA.set(e,t),kA.set(t,e)),t}const
LA=e=>kA.get(e);function FA(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={})
{const s=indexedDB.open(e,t),a=NA(s);return
r&&s.addEventListener("upgradeneeded",
(e=>{r(NA(s.result),e.oldVersion,e.newVersion,NA(s.transaction))})),n&&s.addEventLi
stener("blocked",(()=>n())),a.then((e=>{o&&e.addEventListener("close",
(()=>o())),i&&e.addEventListener("versionchange",
(()=>i()))})).catch((()=>{})),a}function jA(e,{blocked:t}={}){const
n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",
(()=>t())),NA(n).then((()=>{}))}const
BA=["get","getKey","getAll","getAllKeys","count"],UA=["put","add","delete","clear"]
,HA=new Map;function GA(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!
=typeof t)return;if(HA.get(t))return HA.get(t);const
n=t.replace(/FromIndex$/,""),r=t!==n,i=UA.includes(n);if(!(n in(r?
IDBIndex:IDBObjectStore).prototype)||!i&&!BA.includes(n))return;const o=async
function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let
s=o.store;r&&(s=s.index(t.shift()));const a=await s[n](...t);return i&&await
o.done,a};return HA.set(t,o),o}var zA;zA=RA,RA={...zA,get:(e,t,n)=>GA(e,t)||
zA.get(e,t,n),has:(e,t)=>!!GA(e,t)||zA.has(e,t)};var VA=function(){function e(e,t)
{if(!RS(e.schema,t))throw new Error(e.schema.name+"."+t+" is not a
relationship.");this.localModel=e,this._field=t}return e.from=function(e,t){return
RS(e.schema,t)?new this(e,t):null},e.allFrom=function(t){var n,r,i=[];try{for(var
o=fo(Object.keys(t.schema.fields)),s=o.next();!s.done;s=o.next()){var
a=s.value,c=e.from(t,a);c&&i.push(c)}}catch(e){n={error:e}}finally{try{s&&!
s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return
i},Object.defineProperty(e.prototype,"localDefinition",{get:function(){return
this.localModel.schema},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"field",{get:function(){return
this._field},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"localConstructor",{get:function(){return
this.localModel.builder},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"type",{get:function(){return
this.localAssocation.connectionType},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"localAssocation",{get:function(){return
this.localDefinition.fields[this.field].association},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"localJoinFields",{get:function(){return
this.localAssocation.targetName?
[this.localAssocation.targetName]:this.localAssocation.targetNames?
this.localAssocation.targetNames:this.localPKFields},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"localPKFields",{get:function(){return
this.localModel.pkField},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"remoteDefinition",{get:function(){var
e;return null===(e=this.remoteModelType.modelConstructor)||void 0===e?void
0:e.schema},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"remoteModelType",{get:function(){return
this.localDefinition.fields[this.field].type},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"remoteModelConstructor",{get:function()
{return this.remoteModelType.modelConstructor.builder},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"remotePKFields",{get:function(){var
e;return(null===(e=this.remoteModelType.modelConstructor)||void 0===e?void
0:e.pkField)||["id"]},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"localAssociatedWith",{get:function()
{return"HAS_MANY"===this.localAssocation.connectionType||"HAS_ONE"===this.localAsso
cation.connectionType?Array.isArray(this.localAssocation.associatedWith)?
this.localAssocation.associatedWith:[this.localAssocation.associatedWith]:void
0},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"explicitRemoteAssociation",{get:function()
{var e;if(this.localAssociatedWith)return 1===this.localAssociatedWith.length?
null===(e=this.remoteDefinition.fields[this.localAssociatedWith[0]])||void 0===e?
void 0:e.association:void 0},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"remoteJoinFields",{get:function(){var
e,t,n;return(null===(e=this.explicitRemoteAssociation)||void 0===e?void
0:e.targetName)?[this.explicitRemoteAssociation.targetName]:
(null===(t=this.explicitRemoteAssociation)||void 0===t?void 0:t.targetNames)?
null===(n=this.explicitRemoteAssociation)||void 0===n?void
0:n.targetNames:this.localAssociatedWith?
this.localAssociatedWith:this.remotePKFields},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"isComplete",{get:function(){return
this.localJoinFields.length>0&&this.remoteJoinFields.length>0},enumerable:!
0,configurable:!0}),e.prototype.createLocalFKObject=function(e){for(var
t={},n=0;n<this.localJoinFields.length;n+
+)t[this.localJoinFields[n]]=e[this.remoteJoinFields[n]];return
t},e.prototype.createRemoteQueryObject=function(e){for(var
t={},n=0;n<this.remoteJoinFields.length;n++)
{if(null==e[this.localJoinFields[n]])return
null;t[this.remoteJoinFields[n]]=e[this.localJoinFields[n]]}return t},e}(),WA=new
h("DataStore"),qA="amplify-datastore",KA=function(){function e()
{this.dbName=qA}return e.prototype.setUp=function(e,t,n,r,i){return lo(this,void
0,void 0,(function(){var o,s,a=this;return ho(this,(function(c){switch(c.label)
{case 0:return[4,this.preSetUpChecks()];case 1:return c.sent(),this.initPromise?
[3,2]:(this.initPromise=new Promise((function(e,t){a.resolve=e,a.reject=t})),
[3,4]);case 2:return[4,this.initPromise];case 3:return c.sent(),[2];case
4:i&&(this.dbName=qA+"-"+i),this.schema=e,this.namespaceResolver=t,this.modelInstan
ceCreator=n,this.getModelConstructorByModelName=r,c.label=5;case 5:return
c.trys.push([5,8,,9]),this.db?[3,7]:(o=this,[4,this.initDb()]);case
6:o.db=c.sent(),this.resolve(),c.label=7;case 7:return[3,9];case 8:return
s=c.sent(),this.reject(s),[3,9];case
9:return[2]}}))}))},e.prototype.getStorenameForModel=function(e){var
t=this.namespaceResolver(e),n=e.name;return
SS(t,n)},e.prototype.getIndexKeyValuesFromModel=function(e){var
t=Object.getPrototypeOf(e).constructor,n=this.namespaceResolver(t),r=PS(this.schema
.namespaces[n],t.name);return AS(e,r)},e.prototype.saveMetadata=function(e){var
t=this,n=Object.getPrototypeOf(e).constructor,r=this.getStorenameForModel(n),i=this
.namespaceResolver(n),o=KE(n.name,e,this.schema.namespaces[i],this.modelInstanceCre
ator,this.getModelConstructorByModelName),s=new
Set,a=Object.values(o).map((function(e){var
n=e.modelName,r=e.item,o=e.instance,a=SS(i,n);return s.add(a),
{storeName:a,item:r,instance:o,keys:PS(t.schema.namespaces[i],n)}})),c=this.getInde
xKeyValuesFromModel(e);return{storeName:r,set:s,connectionStoreNames:a,modelKeyValu
es:c}},e.prototype.validateSaveCondition=function(e,t){if(e&&t){var
n=rA.getPredicates(e),r=n.predicates,i=n.type;if(!HE(t,i,r)){var o="Conditional
update failed";throw WA.error(o,{model:t,condition:r}),new
Error(o)}}},e.prototype.load=function(e,t,n){return lo(this,void 0,void 0,
(function(){var r,i,o,s,a=this;return ho(this,(function(c){return
r=this.schema.namespaces[e],i=r.relationships[t].relationTypes,o=i.map((function(t)
{var n=t.modelName;return
SS(e,n)})),s=this.getModelConstructorByModelName(e,t),o.length,
[2,n.map((function(e){return
a.modelInstanceCreator(s,e)}))]}))}))},e.prototype.keyValueFromPredicate=function(e
,t){var n,r,i=e.predicates;if(i.length===t.length){var o=[],s=function(e){var
t=i.find((function(t){return BS(t)&&t.field===e&&"eq"===t.operator&&null!
==t.operand&&void 0!==t.operand}));t&&o.push(t.operand)};try{for(var
a=fo(t),c=a.next();!c.done;c=a.next())s(c.value)}catch(e)
{n={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw
n.error}}return o.length===t.length?o:void
0}},e.prototype.queryMetadata=function(e,t,n){var
r=this.getStorenameForModel(e),i=this.namespaceResolver(e),o=t&&rA.getPredicates(t)
,s=PS(this.schema.namespaces[i],e.name);return{storeName:r,namespaceName:i,queryByK
ey:o&&this.keyValueFromPredicate(o,s),predicates:o,hasSort:n&&n.sort,hasPagination:
n&&n.limit}},e.prototype.delete=function(e,t){return lo(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m;return ho(this,(function(v)
{switch(v.label){case 0:return[4,this.preOpCheck()];case 1:return
v.sent(),n=[],zE(e)?(s=e,r=this.namespaceResolver(s),[4,this.query(s,t)]):
[3,9];case 2:return i=v.sent(),void 0===t?[3,5]:
[4,this.deleteTraverse(i,s,r,n)];case 3:return v.sent(),[4,this.deleteItem(n)];case
4:return v.sent(),m=n.reduce((function(e,t){var n=t.items;return e.concat(n)}),[]),
[2,[i,m]];case 5:return[4,this.deleteTraverse(i,s,r,n)];case 6:return v.sent(),
[4,this.deleteItem(n)];case 7:return v.sent(),m=n.reduce((function(e,t){var
n=t.items;return e.concat(n)}),[]),[2,[i,m]];case 8:return[3,16];case 9:return
o=e,s=Object.getPrototypeOf(o).constructor,a=this.namespaceResolver(s),c=this.getSt
orenameForModel(s),t?(u=this.getIndexKeyValuesFromModel(o),[4,this._get(c,u)]):
[3,12];case 10:if(void 0===(l=v.sent()))return g="Model instance not found in
storage",WA.warn(g,{model:o}),[2,[[o],
[]]];if(h=rA.getPredicates(t),f=(d=h).predicates,p=d.type,!HE(l,p,f))throw
g="Conditional update failed",WA.error(g,{model:l,condition:f}),new
Error(g);return[4,this.deleteTraverse([o],s,a,n)];case 11:return v.sent(),
[3,14];case 12:return[4,this.deleteTraverse([o],s,a,n)];case
13:v.sent(),v.label=14;case 14:return[4,this.deleteItem(n)];case 15:return
v.sent(),m=n.reduce((function(e,t){var n=t.items;return e.concat(n)}),[]),[2,
[[o],m]];case 16:return[2]}}))}))},e.prototype.deleteTraverse=function(e,t,n,r){var
i,o,s,a,c,u;return lo(this,void 0,void 0,(function(){var
l,h,d,f,p,g,m,v,b,y,w,_;return ho(this,(function(E){switch(E.label){case
0:l=["HAS_ONE","HAS_MANY"],E.label=1;case
1:E.trys.push([1,19,20,25]),i=vo(e),E.label=2;case 2:return[4,i.next()];case
3:if((o=E.sent()).done)return[3,18];h=o.value,d=this.schema.namespaces[n].models[t.
name],f={builder:t,schema:d,pkField:TS(d)},p=VA.allFrom(f).filter((function(e)
{return l.includes(e.type)})),E.label=4;case
4:E.trys.push([4,11,12,17]),g=vo(p),E.label=5;case
5:return[4,g.next()];case 6:return(m=E.sent()).done?[3,10]:
(v=m.value,null===(b=v.createRemoteQueryObject(h))?[3,9]:
[4,this.query(v.remoteModelConstructor,rA.createFromFlatEqualities(v.remoteDefiniti
on,b))]);case 7:return y=E.sent(),
[4,this.deleteTraverse(y,v.remoteModelConstructor,n,r)];case
8:E.sent(),E.label=9;case 9:return[3,5];case 10:return[3,17];case 11:return
w=E.sent(),c={error:w},[3,17];case 12:return E.trys.push([12,,15,16]),m&&!
m.done&&(u=g.return)?[4,u.call(g)]:[3,14];case 13:E.sent(),E.label=14;case
14:return[3,16];case 15:if(c)throw c.error;return[7];case 16:return[7];case
17:return[3,2];case 18:return[3,25];case 19:return _=E.sent(),s={error:_},
[3,25];case 20:return E.trys.push([20,,23,24]),o&&!o.done&&(a=i.return)?
[4,a.call(i)]:[3,22];case 21:E.sent(),E.label=22;case 22:return[3,24];case
23:if(s)throw s.error;return[7];case 24:return[7];case 25:return
r.push({storeName:SS(n,t.name),items:e}),[2]}}))}))},e}(),YA=new h("DataStore"),
$A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return
t.safariCompatabilityMode=!1,t.canonicalKeyPath=function(e){return
t.safariCompatabilityMode?e.length>1?e:e[0]:e},t}return
Rr(t,e),t.prototype.preSetUpChecks=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e){switch(e.label){case
0:return[4,this.checkPrivate()];case 1:return e.sent(),
[4,this.setSafariCompatabilityMode()];case 2:return e.sent(),
[2]}}))}))},t.prototype.preOpCheck=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e){switch(e.label){case
0:return[4,this.checkPrivate()];case 1:return e.sent(),
[2]}}))}))},t.prototype.initDb=function(){return lo(this,void 0,void 0,(function()
{var e=this;return ho(this,(function(t){switch(t.label){case
0:return[4,FA(this.dbName,3,{upgrade:function(t,n,r,i){return lo(e,void 0,void 0,
(function(){var e,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y=this;return ho(this,(function(w)
{switch(w.label){case 0:if(0===n)return
Object.keys(this.schema.namespaces).forEach((function(e){var
n=y.schema.namespaces[e];Object.keys(n.models).forEach((function(n){var
r=SS(e,n);y.createObjectStoreForModel(t,e,r,n)}))})),[2];if(1!==n&&2!==n||3!
==r)return[3,16];w.label=1;case 1:w.trys.push([1,14,,15]),w.label=2;case
2:w.trys.push([2,11,12,13]),e=fo(i.objectStoreNames),o=e.next(),w.label=3;case
3:return o.done?[3,10]:
(s=o.value,a=i.objectStore(s),c="tmp_"+s,a.name=c,u=this.getNamespaceAndModelFromSt
orename(s),l=u.namespaceName,(h=u.modelName)in this.schema.namespaces[l].models?
(d=this.createObjectStoreForModel(t,l,s,h),[4,a.openCursor()]):
(t.deleteObjectStore(c),[3,9]));case 4:f=w.sent(),p=0,w.label=5;case 5:return
f&&f.value?[4,d.put(f.value)]:[3,8];case 6:return w.sent(),[4,f.continue()];case
7:return f=w.sent(),p++,[3,5];case 8:t.deleteObjectStore(c),YA.debug(p+" "+s+"
records migrated"),w.label=9;case 9:return o=e.next(),[3,3];case
10:return[3,13];case 11:return g=w.sent(),v={error:g},[3,13];case 12:try{o&&!
o.done&&(b=e.return)&&b.call(e)}finally{if(v)throw v.error}return[7];case 13:return
Object.keys(this.schema.namespaces).forEach((function(e){var
n=y.schema.namespaces[e],r=new
Set(i.objectStoreNames);Object.keys(n.models).map((function(t)
{return[t,SS(e,t)]})).filter((function(e){var t=po(e,2)[1];return!
r.has(t)})).forEach((function(n){var
r=po(n,2),i=r[0],o=r[1];y.createObjectStoreForModel(t,e,o,i)}))})),[3,15];case
14:throw m=w.sent(),YA.error("Error migrating IndexedDB data",m),i.abort(),m;case
15:case 16:return[2]}}))}))}})];case
1:return[2,t.sent()]}}))}))},t.prototype._get=function(e,t){return lo(this,void
0,void 0,(function(){var n,r;return ho(this,(function(i){switch(i.label){case
0:return"string"==typeof e?
(r=e,n=this.db.transaction(r,"readonly").store.index("byPk")):n=e.index("byPk"),
[4,n.get(this.canonicalKeyPath(t))];case
1:return[2,i.sent()]}}))}))},t.prototype.clear=function(){var e;return lo(this,void
0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return[4,this.checkPrivate()];case 1:return t.sent(),null===(e=this.db)||void
0===e||e.close(),[4,jA(this.dbName)];case 2:return t.sent(),this.db=void
0,this.initPromise=void 0,[2]}}))}))},t.prototype.save=function(e,t){var n,r;return
lo(this,void 0,void 0,(function(){var
i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A;return ho(this,(function(C)
{switch(C.label){case 0:return[4,this.checkPrivate()];case 1:return
C.sent(),i=this.saveMetadata(e),o=i.storeName,s=i.set,a=i.connectionStoreNames,c=i.
modelKeyValues,u=this.db.transaction(go([o],Array.from(s.values())),"readwrite"),l=
u.objectStore(o),[4,this._get(l,c)];case
2:h=C.sent(),this.validateSaveCondition(t,h),d=[],C.label=3;case
3:C.trys.push([3,11,12,17]),f=vo(a),C.label=4;case 4:return[4,f.next()];case
5:return(p=C.sent()).done?[3,10]:
(g=p.value,m=g.storeName,v=g.item,b=g.instance,y=g.keys,w=u.objectStore(m),_=y.map(
(function(e){return v[e]})),[4,this._get(w,_)]);case 6:return E=C.sent(),S=E?
oS.UPDATE:oS.INSERT,IS(_,c)||S===oS.INSERT?
[4,w.index("byPk").getKey(this.canonicalKeyPath(_))]:[3,9];case 7:return
T=C.sent(),[4,w.put(v,T)];case 8:C.sent(),d.push([b,S]),C.label=9;case
9:return[3,4];case 10:return[3,17];case 11:return A=C.sent(),n={error:A},
[3,17];case 12:return C.trys.push([12,,15,16]),p&&!p.done&&(r=f.return)?
[4,r.call(f)]:[3,14];case 13:C.sent(),C.label=14;case 14:return[3,16];case
15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[4,u.done];case
18:return C.sent(),[2,d]}}))}))},t.prototype.query=function(e,t,n){return
lo(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,h=this;return ho(this,
(function(d){switch(d.label){case 0:return[4,this.checkPrivate()];case 1:return
d.sent(),r=this.queryMetadata(e,t,n),i=r.storeName,o=r.namespaceName,s=r.queryByKey
,a=r.predicates,c=r.hasSort,u=r.hasPagination,[4,lo(h,void 0,void 0,(function(){var
e,t,r;return ho(this,(function(o){switch(o.label){case 0:return s?
[4,this.getByKey(i,s)]:[3,2];case 1:return[2,(e=o.sent())?[e]:[]];case 2:return a?
[4,this.filterOnPredicate(i,a)]:[3,4];case 3:return t=o.sent(),
[2,this.inMemoryPagination(t,n)];case 4:return c?[4,this.getAll(i)]:[3,6];case
5:return r=o.sent(),[2,this.inMemoryPagination(r,n)];case 6:return u?
[2,this.enginePagination(i,n)]:[2,this.getAll(i)]}}))}))];case 2:return l=d.sent(),
[4,this.load(o,e.name,l)];case
3:return[2,d.sent()]}}))}))},t.prototype.queryOne=function(e,t){return void
0===t&&(t=sS.FIRST),lo(this,void 0,void 0,(function(){var n,r,i;return ho(this,
(function(o){switch(o.label){case 0:return[4,this.checkPrivate()];case 1:return
o.sent(),n=this.getStorenameForModel(e),
[4,this.db.transaction([n],"readonly").objectStore(n).openCursor(void
0,t===sS.FIRST?"next":"prev")];case 2:return r=o.sent(),[2,(i=r?r.value:void
0)&&this.modelInstanceCreator(e,i)]}}))}))},t.prototype.batchSave=function(e,t)
{return lo(this,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l,h,d,f,p,g,m=this;return ho(this,(function(v){switch(v.label){case
0:return[4,this.checkPrivate()];case 1:if(v.sent(),0===t.length)return[2,
[]];n=e.name,r=this.namespaceResolver(e),i=this.getStorenameForModel(e),o=[],s=this
.db.transaction(i,"readwrite"),a=s.store,c=function(t){var i,s,c,l,h,d;return
ho(this,(function(f){switch(f.label){case 0:return
i=u.modelInstanceCreator(e,t),s=KE(n,i,u.schema.namespaces[r],u.modelInstanceCreato
r,u.getModelConstructorByModelName),c=u.getIndexKeyValuesFromModel(i),l=t._deleted,
[4,a.index("byPk").getKey(u.canonicalKeyPath(c))];case 1:return h=f.sent(),l?[3,3]:
(d=s.find((function(e){var t=e.instance,n=m.getIndexKeyValuesFromModel(t);return
IS(n,c)})).instance,o.push([d,h?oS.UPDATE:oS.INSERT]),[4,a.put(d,h)]);case 2:return
f.sent(),[3,5];case 3:return o.push([t,oS.DELETE]),h?[4,a.delete(h)]:[3,5];case
4:f.sent(),f.label=5;case 5:return[2]}}))},u=this,v.label=2;case
2:v.trys.push([2,7,8,9]),l=fo(t),h=l.next(),v.label=3;case 3:return h.done?[3,6]:
(d=h.value,[5,c(d)]);case 4:v.sent(),v.label=5;case 5:return h=l.next(),[3,3];case
6:return[3,9];case 7:return f=v.sent(),p={error:f},[3,9];case 8:try{h&&!
h.done&&(g=l.return)&&g.call(l)}finally{if(p)throw p.error}return[7];case
9:return[4,s.done];case 10:return v.sent(),
[2,o]}}))}))},t.prototype.deleteItem=function(e){var t,n,r,i;return lo(this,void
0,void 0,(function(){var o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w;return ho(this,
(function(_){switch(_.label){case 0:o=e.map((function(e){return
e.storeName})),s=this.db.transaction(go(o),"readwrite"),_.label=1;case
1:_.trys.push([1,22,23,28]),a=vo(e),_.label=2;case 2:return[4,a.next()];case
3:if((c=_.sent()).done)return[3,21];u=c.value,l=u.storeName,h=u.items,d=s.objectSto
re(l),_.label=4;case 4:_.trys.push([4,14,15,20]),f=vo(h),_.label=5;case
5:return[4,f.next()];case 6:return(p=_.sent()).done?[3,13]:(g=p.value)?(m=void
0,"object"!=typeof g?[3,8]:(v=this.getIndexKeyValuesFromModel(g),
[4,d.index("byPk").getKey(this.canonicalKeyPath(v))])):[3,12];case 7:return
m=_.sent(),[3,10];case 8:return b=g.toString(),[4,d.index("byPk").getKey(b)];case
9:m=_.sent(),_.label=10;case 10:return void 0===m?[3,12]:[4,d.delete(m)];case
11:_.sent(),_.label=12;case 12:return[3,5];case 13:return[3,20];case 14:return
y=_.sent(),r={error:y},[3,20];case 15:return _.trys.push([15,,18,19]),p&&!
p.done&&(i=f.return)?[4,i.call(f)]:[3,17];case 16:_.sent(),_.label=17;case
17:return[3,19];case 18:if(r)throw r.error;return[7];case 19:return[7];case
20:return[3,2];case 21:return[3,28];case 22:return w=_.sent(),t={error:w},
[3,28];case 23:return _.trys.push([23,,26,27]),c&&!c.done&&(n=a.return)?
[4,n.call(a)]:[3,25];case 24:_.sent(),_.label=25;case 25:return[3,27];case
26:if(t)throw t.error;return[7];case 27:return[7];case
28:return[2]}}))}))},t.prototype.checkPrivate=function(){return lo(this,void 0,void
0,(function(){return ho(this,(function(e){switch(e.label){case 0:return[4,new
Promise((function(e){var t,n=(0,DE.v4)(),r=function(){VE=!1,e(!0)},i=function()
{return lo(void 0,void 0,void 0,(function(){return ho(this,(function(r)
{switch(r.label){case 0:return
t&&t.result&&"function"==typeof t.result.close?[4,t.result.close()]:[3,2];case
1:r.sent(),r.label=2;case 2:return[4,indexedDB.deleteDatabase(n)];case 3:return
r.sent(),VE=!0,[2,e(!1)]}}))}))};return!0===VE?i():!1===VE||null===indexedDB?r():
((t=indexedDB.open(n)).onerror=r,void(t.onsuccess=i))})).then((function(e){return
e}))];case 1:return e.sent()?(YA.error("IndexedDB not supported in this browser's
private mode"),[2,Promise.reject("IndexedDB not supported in this browser's private
mode")]):
[2,Promise.resolve()]}}))}))},t.prototype.setSafariCompatabilityMode=function()
{return lo(this,void 0,void 0,(function(){var e;return ho(this,(function(t)
{switch(t.label){case 0:return e=this,[4,lo(void 0,void 0,void 0,(function(){var
e,t,n,r,i,o;return ho(this,(function(s){switch(s.label){case 0:return
s.trys.push([0,6,,7]),e=(0,DE.v4)
(),t="indexedDBFeatureProbeStore",n="idx",null===indexedDB?[2,!1]:void 0!==WE?
[2,WE]:[4,new Promise((function(r){var i=indexedDB.open(e);i.onerror=function()
{return r(!1)},i.onsuccess=function(){var
e=i.result;r(e)},i.onupgradeneeded=function(e){var i,o=null===(i=null==e?void
0:e.target)||void 0===i?void 0:i.result;o.onerror=function(){return r(!
1)},o.createObjectStore(t,{autoIncrement:!0}).createIndex(n,["id"])}}))];case
1:if(!(r=s.sent()))throw new Error("Could not open probe
DB");return(i=r.transaction(t,"readwrite")).objectStore(t).add({id:1}),i.commit(),
[4,new Promise((function(e){var
i=r.transaction(t,"readonly").objectStore(t).index(n).get([1]);i.onerror=function()
{return e(!1)},i.onsuccess=function(t){var n;e(null===(n=null==t?void 0:t.target)||
void 0===n?void 0:n.result)}}))];case 2:return o=s.sent(),r&&"function"==typeof
r.close?[4,r.close()]:[3,4];case 3:s.sent(),s.label=4;case
4:return[4,indexedDB.deleteDatabase(e)];case 5:return s.sent(),WE=void 0===o,
[3,7];case 6:return s.sent(),WE=!1,[3,7];case 7:return[2,WE]}}))}))];case 1:return
e.safariCompatabilityMode=t.sent(),!
0===this.safariCompatabilityMode&&YA.debug("IndexedDB Adapter is running in Safari
Compatability Mode"),
[2]}}))}))},t.prototype.getNamespaceAndModelFromStorename=function(e){var
t=po(e.split("_"));return{namespaceName:t[0],modelName:t.slice(1).join("_")}},t.pro
totype.createObjectStoreForModel=function(e,t,n,r){var i=e.createObjectStore(n,
{autoIncrement:!0});return
this.schema.namespaces[t].relationships[r].indexes.forEach((function(e){var
t=po(e,3),n=t[0],r=t[1],o=t[2];i.createIndex(n,r,o)})),i},t.prototype.getByKey=func
tion(e,t){return lo(this,void 0,void 0,(function(){return ho(this,(function(n)
{switch(n.label){case 0:return[4,this._get(e,t)];case
1:return[2,n.sent()]}}))}))},t.prototype.getAll=function(e){return lo(this,void
0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return[4,this.db.getAll(e)];case
1:return[2,t.sent()]}}))}))},t.prototype.matchingIndexQueries=function(e,t,n){var
r,i,o,s,a=this,c=[],u=new Map;try{for(var l=fo(t),h=l.next();!h.done;h=l.next())
{var d=h.value;u.set(String(d.field),d)}}catch(e){r={error:e}}finally{try{h&&!
h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}var
f=n.objectStore(e),p=function(t){var n,r,i=f.index(t),o=Array.isArray(i.keyPath)?
i.keyPath:[i.keyPath],s=[];try{for(var l=(n=void 0,fo(o)),h=l.next();!
h.done;h=l.next()){var d=h.value,p=u.get(d);if(!p||null===p.operand||void
0===p.operand)break;s.push(p.operand)}}catch(e){n={error:e}}finally{try{h&&!
h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw
n.error}}s.length===o.length&&c.push((function(){return
a.db.transaction(e).objectStore(e).index(t).getAll(a.canonicalKeyPath(s))}))};try{f
or(var g=fo(f.indexNames),m=g.next();!m.done;m=g.next())p(m.value)}catch(e)
{o={error:e}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(o)throw
o.error}}return c},t.prototype.baseQueryIndex=function(e,t,n){return lo(this,void
0,void 0,(function(){var r,i,o,s,a,c,u,l,h=this;return ho(this,(function(d)
{switch(d.label){case 0:for(r=t.predicates,i=t.type;1===r.length&&US(r[0])&&"not"!
==r[0].type;)i=r[0].type,r=r[0].predicates;return o=r.filter((function(e){return
BS(e)&&"eq"===e.operator})),s=n||this.db.transaction(e),a={},"or"!==i?[3,2]:
[4,Promise.all(r.filter((function(e){return
US(e)&&"and"===e.type})).map((function(t){return
h.baseQueryIndex(e,t,s)}))).then((function(e){return e.filter((function(e){return
1===e.indexedQueries.length})).map((function(e){return e.indexedQueries}))}))];case
1:return c=d.sent(),u=r.filter((function(e){return BS(e)})).map((function(t){return
h.matchingIndexQueries(e,[t],s)})),l=go(c,u).map((function(e){return
e[0]})).filter((function(e){return e})),a=r.length>l.length?
{groupType:null,indexedQueries:[]}:{groupType:"or",indexedQueries:l},[3,3];case
2:a="and"===i?{groupType:i,indexedQueries:this.matchingIndexQueries(e,o,s)}:
{groupType:null,indexedQueries:[]},d.label=3;case 3:return n?[3,5]:[4,s.done];case
4:d.sent(),d.label=5;case
5:return[2,a]}}))}))},t.prototype.filterOnPredicate=function(e,t){return
lo(this,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_;return ho(this,(function(E){switch(E.label)
{case 0:return n=t.predicates,r=t.type,[4,this.baseQueryIndex(e,t)];case 1:return
i=E.sent(),o=i.groupType,s=i.indexedQueries,"and"===o&&s.length>0?[4,s[0]()]:
[3,3];case 2:return a=E.sent(),[3,14];case 3:if(!
("or"===o&&s.length>0&&s.length<=7))return[3,12];c=new Map,E.label=4;case
4:E.trys.push([4,9,10,11]),u=fo(s),l=u.next(),E.label=5;case 5:return l.done?[3,8]:
[4,(0,l.value)()];case 6:h=E.sent();try{for(w=void 0,d=fo(h),f=d.next();!
f.done;f=d.next())p=f.value,g=JSON.stringify(p),c.set(g,p)}catch(e)
{w={error:e}}finally{try{f&&!f.done&&(_=d.return)&&_.call(d)}finally{if(w)throw
w.error}}E.label=7;case 7:return l=u.next(),[3,5];case 8:return[3,11];case 9:return
m=E.sent(),b={error:m},[3,11];case 10:try{l&&!
l.done&&(y=u.return)&&y.call(u)}finally{if(b)throw b.error}return[7];case 11:return
a=Array.from(c.values()),[3,14];case 12:return[4,this.getAll(e)];case
13:a=E.sent(),E.label=14;case 14:return v=n?a.filter((function(e){return
HE(e,r,n)})):a,[2,v]}}))}))},t.prototype.inMemoryPagination=function(e,t){return
JE(e,t)},t.prototype.enginePagination=function(e,t){return lo(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return t?(r=t.page,i=void 0===r?0:r,o=t.limit,s=void 0===o?
0:o,a=Math.max(0,i*s)||0,[4,this.db.transaction(e).objectStore(e).openCursor()]):
[3,7];case 1:return(c=h.sent())&&a>0?[4,c.advance(a)]:[3,3];case
2:h.sent(),h.label=3;case 3:u=[],l="number"==typeof s&&s>0,h.label=4;case 4:return
c&&c.value?(u.push(c.value),l&&u.length===s?[3,6]:[4,c.continue()]):[3,6];case
5:return c=h.sent(),[3,4];case 6:return n=u,[3,9];case
7:return[4,this.db.getAll(e)];case 8:n=h.sent(),h.label=9;case
9:return[2,n]}}))}))},t}(KA);const QA=new $A;var XA=function(){var
e=this;this.db=new Map,this.getAllKeys=function(){return lo(e,void 0,void 0,
(function(){return ho(this,(function(e)
{return[2,Array.from(this.db.keys())]}))}))},this.multiGet=function(t){return
lo(e,void 0,void 0,(function(){var e=this;return ho(this,(function(n)
{return[2,t.reduce((function(t,n){return t.push([n,e.db.get(n)]),t}),
[])]}))}))},this.multiRemove=function(t,n){return lo(e,void 0,void 0,(function()
{var e=this;return ho(this,(function(r){return t.forEach((function(t){return
e.db.delete(t)})),"function"==typeof n&&n(),[2]}))}))},this.multiSet=function(t,n)
{return lo(e,void 0,void 0,(function(){var e=this;return ho(this,(function(r)
{return t.forEach((function(t){var
n=po(t,2),r=n[0],i=n[1];e.setItem(r,i)})),"function"==typeof n&&n(),
[2]}))}))},this.setItem=function(t,n){return lo(e,void 0,void 0,(function(){return
ho(this,(function(e){return[2,this.db.set(t,n)]}))}))},this.removeItem=function(t)
{return lo(e,void 0,void 0,(function(){return ho(this,(function(e)
{return[2,this.db.delete(t)]}))}))},this.getItem=function(t){return lo(e,void
0,void 0,(function(){return ho(this,(function(e)
{return[2,this.db.get(t)]}))}))}},ZA="@AmplifyDatastore",JA="Data",eC=new
Map,tC=function(){function e(){this._collectionInMemoryIndex=new
Map,this.storage=new XA}return e.prototype.getCollectionIndex=function(e){return
this._collectionInMemoryIndex.has(e)||this._collectionInMemoryIndex.set(e,new
Map),this._collectionInMemoryIndex.get(e)},e.prototype.getMonotonicFactory=function
(e){return eC.has(e)||eC.set(e,$E()),eC.get(e)},e.prototype.init=function(){return
lo(this,void 0,void 0,(function(){var
e,t,n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y;return ho(this,(function(w){switch(w.label)
{case 0:return this._collectionInMemoryIndex.clear(),
[4,this.storage.getAllKeys()];case 1:e=w.sent(),t=[],w.label=2;case
2:w.trys.push([2,12,13,14]),n=fo(e),r=n.next(),w.label=3;case 3:return r.done?
[3,11]:(i=r.value,o=po(i.split("::"),5),s=o[0],a=o[1],c=o[2],u=o[3],l=o[4],s!==ZA?
[3,10]:c!==JA?[3,9]:(h=void 0,void 0!==l?[3,7]:(d=u,f=this.getMonotonicFactory(a)
(),p=this.getLegacyKeyForItem(a,d),g=this.getKeyForItem(a,d,f),
[4,this.storage.getItem(p)])));case 4:return m=w.sent(),
[4,this.storage.setItem(g,m)];case 5:return w.sent(),
[4,this.storage.removeItem(p)];case 6:return w.sent(),h=f,[3,8];case
7:h=u,w.label=8;case 8:return this.getCollectionIndex(a).set(l,h),[3,10];case
9:"Collection"===c&&t.push(i),w.label=10;case 10:return r=n.next(),[3,3];case
11:return[3,14];case 12:return v=w.sent(),b={error:v},[3,14];case 13:try{r&&!
r.done&&(y=n.return)&&y.call(n)}finally{if(b)throw b.error}return[7];case 14:return
t.length>0?[4,this.storage.multiRemove(t)]:[3,16];case 15:w.sent(),w.label=16;case
16:return[2]}}))}))},e.prototype.save=function(e,t,n,r){var i,o;return lo(this,void
0,void 0,(function(){var s,a,c;return ho(this,(function(u){switch(u.label){case
0:return s=xS(n),a=(null===(i=this.getCollectionIndex(t))||void 0===i?void
0:i.get(s))||this.getMonotonicFactory(t)
(),c=this.getKeyForItem(t,r,a),null===(o=this.getCollectionIndex(t))||void 0===o||
o.set(r,a),[4,this.storage.setItem(c,JSON.stringify(e))];case
1:return u.sent(),[2]}}))}))},e.prototype.batchSave=function(e,t,n){return
lo(this,void 0,void 0,(function(){var
r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S=this;return ho(this,(function(T)
{switch(T.label){case 0:if(0===t.length)return[2,
[]];r=[],i=this.getCollectionIndex(e),o=new Set,s=new Set,a=[],c={},u=function(t)
{var r=n.map((function(e){return t[e]})),u=t._deleted,h=i.get(r.join(ME))||
l.getMonotonicFactory(e)
(),d=l.getKeyForItem(e,r.join(ME),h);a.push(d),c[d]={ulid:h,model:t},u?
o.add(d):s.add(d)},l=this;try{for(h=fo(t),d=h.next();!
d.done;d=h.next())f=d.value,u(f)}catch(e){y={error:e}}finally{try{d&&!
d.done&&(w=h.return)&&w.call(h)}finally{if(y)throw
y.error}}return[4,this.storage.multiGet(a)];case 1:return
p=T.sent(),g=p.filter((function(e){return!!po(e,2)[1]})).reduce((function(e,t){var
n=po(t,1)[0];return e.add(n)}),new Set),[4,new Promise((function(e,t){if(0!
==o.size){var r=Array.from(o);r.forEach((function(e){var t=n.map((function(t)
{return c[e].model[t]})).join(ME);i.delete(t)})),S.storage.multiRemove(r,
(function(n){n&&n.length>0?t(n):e()}))}else e()}))];case 2:return T.sent(),[4,new
Promise((function(e,t){if(0!==s.size){var r=Array.from(s).map((function(e)
{return[e,JSON.stringify(c[e].model)]}));s.forEach((function(e){var
t=c[e],r=t.model,o=t.ulid,s=n.map((function(e){return
r[e]})).join(ME);i.set(s,o)})),S.storage.multiSet(r,(function(n){n&&n.length>0?
t(n):e()}))}else e()}))];case 3:T.sent();try{for(m=fo(a),v=m.next();!
v.done;v=m.next())b=v.value,o.has(b)&&g.has(b)?
r.push([c[b].model,oS.DELETE]):s.has(b)&&r.push([c[b].model,g.has(b)?
oS.UPDATE:oS.INSERT])}catch(e){_={error:e}}finally{try{v&&!
v.done&&(E=m.return)&&E.call(m)}finally{if(_)throw
_.error}}return[2,r]}}))}))},e.prototype.get=function(e,t){return lo(this,void
0,void 0,(function(){var n,r,i;return ho(this,(function(o){switch(o.label){case
0:return n=this.getCollectionIndex(t).get(e),r=this.getKeyForItem(t,e,n),
[4,this.storage.getItem(r)];case 1:return[2,
(i=o.sent())&&JSON.parse(i)]}}))}))},e.prototype.getOne=function(e,t){return
lo(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return ho(this,(function(u)
{switch(u.label){case 0:return n=this.getCollectionIndex(t),r=po(e===sS.FIRST?
function(){var e,t,r,i,o;try{for(var s=fo(n),a=s.next();!a.done;a=s.next())
{i=(r=po(a.value,2))[0],o=r[1];break}}catch(t){e={error:t}}finally{try{a&&!
a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return[i,o]}
():function(){var e,t,r,i,o;try{for(var s=fo(n),a=s.next();!
a.done;a=s.next())i=(r=po(a.value,2))[0],o=r[1]}catch(t)
{e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw
e.error}}return[i,o]}(),2),i=r[0],o=r[1],s=this.getKeyForItem(t,i,o),(c=s)?
[4,this.storage.getItem(s)]:[3,2];case 1:c=u.sent(),u.label=2;case 2:return[2,
(a=c)&&JSON.parse(a)||void 0]}}))}))},e.prototype.getAll=function(e,t){return
lo(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w;return
ho(this,(function(_){switch(_.label){case 0:n=this.getCollectionIndex(e),i=(r=t||
{}).page,o=void 0===i?0:i,s=r.limit,a=void 0===s?0:s,c=Math.max(0,o*a)||0,u=a>0?
c+a:void 0,l=[],h=0;try{for(d=fo(n),f=d.next();!
f.done&&(p=po(f.value,2),g=p[0],m=p[1],++h<=c||
(l.push(this.getKeyForItem(e,g,m)),h!==u));f=d.next());}catch(e)
{y={error:e}}finally{try{f&&!f.done&&(w=d.return)&&w.call(d)}finally{if(y)throw
y.error}}return[4,this.storage.multiGet(l)];case 1:return
v=_.sent(),b=v.filter((function(e){return po(e,2)[1]})).map((function(e){var
t=po(e,2)[1];return JSON.parse(t)})),[2,b]}}))}))},e.prototype.delete=function(e,t)
{return lo(this,void 0,void 0,(function(){var n,r;return ho(this,(function(i)
{switch(i.label){case 0:return
n=this.getCollectionIndex(t).get(e),r=this.getKeyForItem(t,e,n),this.getCollectionI
ndex(t).delete(e),[4,this.storage.removeItem(r)];case 1:return i.sent(),
[2]}}))}))},e.prototype.clear=function(){return lo(this,void 0,void 0,(function()
{var e,t;return ho(this,(function(n){switch(n.label){case
0:return[4,this.storage.getAllKeys()];case 1:return
e=n.sent(),t=e.filter((function(e){return e.startsWith(ZA)})),
[4,this.storage.multiRemove(t)];case 2:return
n.sent(),this._collectionInMemoryIndex.clear(),
[2]}}))}))},e.prototype.getKeyForItem=function(e,t,n){return
this.getKeyPrefixForStoreItems(e)
+"::"+n+"::"+t},e.prototype.getLegacyKeyForItem=function(e,t){return
this.getKeyPrefixForStoreItems(e)
+"::"+t},e.prototype.getKeyPrefixForStoreItems=function(e){return
ZA+"::"+e+"::"+JA},e}();const nC=tC;var rC=function(e){function t(){return null!
==e&&e.apply(this,arguments)||this}return
Rr(t,e),t.prototype.preSetUpChecks=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e)
{return[2]}))}))},t.prototype.preOpCheck=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e)
{return[2]}))}))},t.prototype.initDb=function(){return lo(this,void 0,void 0,
(function(){var e;return ho(this,(function(t){switch(t.label){case 0:return[4,
(e=new nC).init()];case 1:return t.sent(),
[2,e]}}))}))},t.prototype.clear=function(){return lo(this,void 0,void 0,(function()
{return ho(this,(function(e){switch(e.label){case 0:return[4,this.db.clear()];case
1:return e.sent(),this.db=void 0,this.initPromise=void 0,
[2]}}))}))},t.prototype.batchSave=function(e,t){return lo(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p=this;return ho(this,(function(g)
{switch(g.label){case 0:if(0===t.length)return[2,
[]];n=e.name,r=this.namespaceResolver(e),i=SS(r,n),o=PS(this.schema.namespaces[r],n
),s=[],a=function(t){var
i=c.modelInstanceCreator(e,t),o=KE(n,i,c.schema.namespaces[r],c.modelInstanceCreato
r,c.getModelConstructorByModelName),a=c.getIndexKeyValuesPath(i),u=o.find((function
(e){var t=e.instance,n=p.getIndexKeyValuesPath(t);return IS([n],
[a])})).instance;s.push(u)},c=this;try{for(u=fo(t),l=u.next();!
l.done;l=u.next())h=l.value,a(h)}catch(e){d={error:e}}finally{try{l&&!
l.done&&(f=u.return)&&f.call(u)}finally{if(d)throw
d.error}}return[4,this.db.batchSave(i,s,o)];case
1:return[2,g.sent()]}}))}))},t.prototype._get=function(e,t){return lo(this,void
0,void 0,(function(){var n;return ho(this,(function(r){switch(r.label){case
0:return n=t.join(ME),[4,this.db.get(n,e)];case
1:return[2,r.sent()]}}))}))},t.prototype.save=function(e,t){var n,r;return
lo(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w;return
ho(this,(function(_){switch(_.label){case 0:return
i=this.saveMetadata(e),o=i.storeName,s=i.connectionStoreNames,a=i.modelKeyValues,
[4,this._get(o,a)];case
1:c=_.sent(),this.validateSaveCondition(t,c),u=[],_.label=2;case
2:_.trys.push([2,9,10,15]),l=vo(s),_.label=3;case 3:return[4,l.next()];case
4:return(h=_.sent()).done?[3,8]:
(d=h.value,f=d.storeName,p=d.item,g=d.instance,m=d.keys,v=m.map((function(e){return
p[e]})),[4,this._get(f,v)]);case 5:return b=_.sent(),y=b?
oS.UPDATE:oS.INSERT,IS(v,a)||y===oS.INSERT?[4,this.db.save(p,f,m,v.join(ME))]:
[3,7];case 6:_.sent(),u.push([g,y]),_.label=7;case 7:return[3,3];case
8:return[3,15];case 9:return w=_.sent(),n={error:w},[3,15];case 10:return
_.trys.push([10,,13,14]),h&&!h.done&&(r=l.return)?[4,r.call(l)]:[3,12];case
11:_.sent(),_.label=12;case 12:return[3,14];case 13:if(n)throw
n.error;return[7];case 14:return[7];case
15:return[2,u]}}))}))},t.prototype.query=function(e,t,n){return lo(this,void 0,void
0,(function(){var r,i,o,s,a,c,u,l,h=this;return ho(this,(function(d)
{switch(d.label){case 0:return
r=this.queryMetadata(e,t,n),i=r.storeName,o=r.namespaceName,s=r.queryByKey,a=r.pred
icates,c=r.hasSort,u=r.hasPagination,[4,lo(h,void 0,void 0,(function(){var
e,t,r,o;return ho(this,(function(l){switch(l.label){case 0:return s?(e=s.join(ME),
[4,this.getByKey(i,e)]):[3,2];case 1:return[2,(t=l.sent())?[t]:[]];case 2:return a?
[4,this.filterOnPredicate(i,a)]:[3,4];case 3:return r=l.sent(),
[2,this.inMemoryPagination(r,n)];case 4:return c||u?[4,this.getAll(i)]:[3,6];case
5:return o=l.sent(),[2,this.inMemoryPagination(o,n)];case
6:return[2,this.getAll(i)]}}))}))];case 1:return l=d.sent(),
[4,this.load(o,e.name,l)];case
2:return[2,d.sent()]}}))}))},t.prototype.getByKey=function(e,t){return lo(this,void
0,void 0,(function(){return ho(this,(function(n){switch(n.label){case
0:return[4,this.db.get(t,e)];case
1:return[2,n.sent()]}}))}))},t.prototype.getAll=function(e){return lo(this,void
0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return[4,this.db.getAll(e)];case
1:return[2,t.sent()]}}))}))},t.prototype.filterOnPredicate=function(e,t){return
lo(this,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s)
{switch(s.label){case 0:return n=t.predicates,r=t.type,[4,this.getAll(e)];case
1:return i=s.sent(),o=n?i.filter((function(e){return HE(e,r,n)})):i,
[2,o]}}))}))},t.prototype.inMemoryPagination=function(e,t){return
JE(e,t)},t.prototype.queryOne=function(e,t){return void
0===t&&(t=sS.FIRST),lo(this,void 0,void 0,(function(){var n,r;return ho(this,
(function(i){switch(i.label){case 0:return n=this.getStorenameForModel(e),
[4,this.db.getOne(t,n)];case 1:return[2,
(r=i.sent())&&this.modelInstanceCreator(e,r)]}}))}))},t.prototype.deleteItem=functi
on(e){var t,n,r,i;return lo(this,void 0,void 0,(function(){var
o,s,a,c,u,l,h,d,f,p,g;return ho(this,(function(m){switch(m.label){case
0:m.trys.push([0,17,18,23]),o=vo(e),m.label=1;case 1:return[4,o.next()];case
2:if((s=m.sent()).done)return[3,16];a=s.value,c=a.storeName,u=a.items,m.label=3;cas
e 3:m.trys.push([3,9,10,15]),l=vo(u),m.label=4;case 4:return[4,l.next()];case
5:return(h=m.sent()).done?[3,8]:(d=h.value)?"object"!=typeof d?[3,7]:
(f=this.getIndexKeyValuesPath(d),[4,this.db.delete(f,c)]):[3,7];case
6:m.sent(),m.label=7;case 7:return[3,4];case 8:return[3,15];case 9:return
p=m.sent(),r={error:p},[3,15];case 10:return m.trys.push([10,,13,14]),h&&!
h.done&&(i=l.return)?[4,i.call(l)]:[3,12];case 11:m.sent(),m.label=12;case
12:return[3,14];case 13:if(r)throw r.error;return[7];case 14:return[7];case
15:return[3,1];case 16:return[3,23];case
17:return g=m.sent(),t={error:g},[3,23];case 18:return
m.trys.push([18,,21,22]),s&&!s.done&&(n=o.return)?[4,n.call(o)]:[3,20];case
19:m.sent(),m.label=20;case 20:return[3,22];case 21:if(t)throw
t.error;return[7];case 22:return[7];case
23:return[2]}}))}))},t.prototype.getIndexKeyValuesPath=function(e){return
this.getIndexKeyValuesFromModel(e).join(ME)},t}(KA);const iC=new rC;var oC=new
h("DataStore"),sC=function(){function e(e,t,n,r,i,o)
{this.schema=e,this.namespaceResolver=t,this.getModelConstructorByModelName=n,this.
modelInstanceCreator=r,this.adapter=i,this.sessionId=o,this.adapter=this.adapter||
(We().isBrowser&&window.indexedDB||Ve()&&self.indexedDB?
QA:iC),this.pushStream=new(uA())}return e.getNamespace=function()
{return{name:BE,relationships:{},enums:{},models:{},nonModels:
{}}},e.prototype.init=function(){return lo(this,void 0,void 0,(function(){var
e,t;return ho(this,(function(n){switch(n.label){case 0:return void
0===this.initialized?[3,2]:[4,this.initialized];case 1:case 3:return n.sent(),
[2];case 2:return oC.debug("Starting Storage"),this.initialized=new
Promise((function(n,r)
{e=n,t=r})),this.adapter.setUp(this.schema,this.namespaceResolver,this.modelInstanc
eCreator,this.getModelConstructorByModelName,this.sessionId).then(e,t),
[4,this.initialized]}}))}))},e.prototype.save=function(e,t,n,r){return lo(this,void
0,void 0,(function(){var i,o=this;return ho(this,(function(s){switch(s.label){case
0:return[4,this.init()];case 1:if(s.sent(),!this.adapter)throw new Error("Storage
adapter is missing");return[4,this.adapter.save(e,t)];case
2:return(i=s.sent()).forEach((function(s){var a,c=po(s,2),u=c[0],l=c[1],h=!!
n;if((l===oS.UPDATE||l===oS.INSERT)&&!
h&&null===(a=o.getChangedFieldsInput(e,u,r)))return i;var d=a||
u,f=Object.getPrototypeOf(u).constructor;o.pushStream.next({model:f,opType:l,elemen
t:d,mutator:n,condition:t&&rA.getPredicates(t,!1)||null,savedElement:u})})),
[2,i]}}))}))},e.prototype.delete=function(e,t,n){return lo(this,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l=this;return ho(this,(function(h){switch(h.label)
{case 0:return[4,this.init()];case 1:if(h.sent(),!this.adapter)throw new
Error("Storage adapter is missing");return[4,this.adapter.delete(e,t)];case
2:return u=po.apply(void 0,[h.sent(),2]),r=u[0],i=u[1],o=zE(e)?
e:Object.getPrototypeOf(e||
{}).constructor,s=this.namespaceResolver(o),a=this.schema.namespaces[s].models[o.na
me],c=new Set(r.map((function(e){return TA(a,e)}))),zE(e)||Array.isArray(i)||
(i=[i]),i.forEach((function(r){var i,o=Object.getPrototypeOf(r).constructor;if(!
zE(e)){var s=TA(a,r);i=c.has(s)?rA.getPredicates(t,!1):void
0}l.pushStream.next({model:o,opType:oS.DELETE,element:r,mutator:n,condition:i||
null})})),[2,[r,i]]}}))}))},e.prototype.query=function(e,t,n){return lo(this,void
0,void 0,(function(){return ho(this,(function(r){switch(r.label){case
0:return[4,this.init()];case 1:if(r.sent(),!this.adapter)throw new Error("Storage
adapter is missing");return[4,this.adapter.query(e,t,n)];case
2:return[2,r.sent()]}}))}))},e.prototype.queryOne=function(e,t){return void
0===t&&(t=sS.FIRST),lo(this,void 0,void 0,(function(){return ho(this,(function(n)
{switch(n.label){case 0:return[4,this.init()];case 1:if(n.sent(),!
this.adapter)throw new Error("Storage adapter is
missing");return[4,this.adapter.queryOne(e,t)];case
2:return[2,n.sent()]}}))}))},e.prototype.observe=function(e,t,n){var r=!
e,i=t&&rA.getPredicates(t,!1)||
{},o=i.predicates,s=i.type,a=this.pushStream.observable.filter((function(e){var
t=e.mutator;return!n||t!==n})).map((function(e){return e.mutator,uo(e,
["mutator"])}));return r||(a=a.filter((function(t){var n=t.model,r=t.element;return
e===n&&(!o||!s||HE(r,s,o))}))),a},e.prototype.clear=function(e){return void
0===e&&(e=!0),lo(this,void 0,void 0,(function(){return ho(this,(function(t)
{switch(t.label){case 0:if(this.initialized=void 0,!this.adapter)throw new
Error("Storage adapter is missing");return[4,this.adapter.clear()];case 1:return
t.sent(),e&&this.pushStream.complete(),
[2]}}))}))},e.prototype.batchSave=function(e,t,n){return lo(this,void 0,void 0,
(function(){var r,i=this;return ho(this,(function(o){switch(o.label){case
0:return[4,this.init()];case 1:if(o.sent(),!this.adapter)throw new Error("Storage
adapter is missing");return[4,this.adapter.batchSave(e,t)];case
2:return(r=o.sent()).forEach((function(t){var
r=po(t,2),o=r[0],s=r[1];i.pushStream.next({model:e,opType:s,element:o,mutator:n,con
dition:null})})),[2,r]}}))}))},e.prototype.getChangedFieldsInput=function(e,t,n)
{var r,i,o;if(!n||!n.length)return null;var
s=po(n,2),a=s[0],c=s[1],u={},l=a.map((function(e){return
e.path&&e.path[0]})),h=Object.getPrototypeOf(e).constructor,d=this.namespaceResolve
r(h),f=this.schema.namespaces[d].models[h.name].fields,p=(null===(o=this.schema.nam
espaces[d].keys)||void 0===o?void 0:o[h.name])||
{},g=p.primaryKey,m=p.compositeKeys,v=void 0===m?[]:m;if(l.forEach((function(e){var
n,r,i,o,s,a,l,h,d,p,g,m=kS(null===(g=f[e])||void 0===g?void
0:g.association);if(Array.isArray(m))try{for(var b=fo(m),y=b.next();!
y.done;y=b.next()){var w=y.value;if(!ZE(c[w],t[w])){u[w]=void 0===t[w]?
null:t[w];try{for(var _=(i=void 0,fo(v)),E=_.next();!
E.done;E=_.next())if((I=E.value).has(w))try{for(var S=(s=void 0,fo(I)),T=S.next();!
T.done;T=S.next()){var A=T.value;u[A]=t[A]}}catch(e){s={error:e}}finally{try{T&&!
T.done&&(a=S.return)&&a.call(S)}finally{if(s)throw s.error}}}catch(e)
{i={error:e}}finally{try{E&&!E.done&&(o=_.return)&&o.call(_)}finally{if(i)throw
i.error}}}}}catch(e){n={error:e}}finally{try{y&&!
y.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else{var C=m||e;if(!
ZE(c[C],t[C])){u[C]=void 0===t[C]?null:t[C];try{for(var O=fo(v),x=O.next();!
x.done;x=O.next()){var I;if((I=x.value).has(C))try{for(var P=(d=void
0,fo(I)),D=P.next();!D.done;D=P.next())A=D.value,u[A]=t[A]}catch(e)
{d={error:e}}finally{try{D&&!D.done&&(p=P.return)&&p.call(P)}finally{if(d)throw
d.error}}}}catch(e){l={error:e}}finally{try{x&&!
x.done&&(h=O.return)&&h.call(O)}finally{if(l)throw
l.error}}}}})),0===Object.keys(u).length)return null;if(g&&g.length)try{for(var
b=fo(g),y=b.next();!y.done;y=b.next()){var w=y.value;u[w]=t[w]}}catch(e)
{r={error:e}}finally{try{y&&!y.done&&(i=b.return)&&i.call(b)}finally{if(r)throw
r.error}}var _=t.id,E=t._version,S=t._lastChangedAt,T=t._deleted;return
co(co({},u),{id:_,_version:E,_lastChangedAt:S,_deleted:T})},e}(),aC=function()
{function e(e,t,n,r,i,o){this.mutex=new oA,this.storage=new sC(e,t,n,r,i,o)}return
e.prototype.runExclusive=function(e){return
this.mutex.runExclusive(e.bind(this,this.storage))},e.prototype.save=function(e,t,n
,r){return lo(this,void 0,void 0,(function(){return ho(this,(function(i)
{return[2,this.runExclusive((function(i){return
i.save(e,t,n,r)}))]}))}))},e.prototype.delete=function(e,t,n){return lo(this,void
0,void 0,(function(){return ho(this,(function(r)
{return[2,this.runExclusive((function(r){if(zE(e)){var i=e;return
r.delete(i,t,n)}var o=e;return
r.delete(o,t,n)}))]}))}))},e.prototype.query=function(e,t,n){return lo(this,void
0,void 0,(function(){return ho(this,(function(r)
{return[2,this.runExclusive((function(r){return
r.query(e,t,n)}))]}))}))},e.prototype.queryOne=function(e,t){return void
0===t&&(t=sS.FIRST),lo(this,void 0,void 0,(function(){return ho(this,(function(n)
{return[2,this.runExclusive((function(n){return
n.queryOne(e,t)}))]}))}))},e.getNamespace=function(){return
sC.getNamespace()},e.prototype.observe=function(e,t,n){return
this.storage.observe(e,t,n)},e.prototype.clear=function(){return lo(this,void
0,void 0,(function(){return ho(this,(function(e){switch(e.label){case
0:return[4,this.runExclusive((function(e){return e.clear()}))];case 1:return
e.sent(),[2]}}))}))},e.prototype.batchSave=function(e,t){return
this.storage.batchSave(e,t)},e.prototype.init=function(){return lo(this,void 0,void
0,(function(){return ho(this,(function(e){return[2,this.storage.init()]}))}))},e}
(),cC=(new wy).networkMonitor(),uC=(new h("DataStore"),function(){function e()
{this.connectionStatus={online:!1}}return e.prototype.status=function(){var
e=this;if(this.observer)throw new Error("Subscriber already exists");return new
iy((function(t){return e.observer=t,e.subscription=cC.subscribe((function(n){var
r=n.online;e.connectionStatus.online=r;var
i=co({},e.connectionStatus);t.next(i)})),function()
{clearTimeout(e.timeout),e.unsubscribe()}}))},e.prototype.unsubscribe=function()
{this.subscription&&(clearTimeout(this.timeout),this.subscription.unsubscribe())},e
.prototype.stop=function(){return lo(this,void 0,void 0,(function(){return ho(this,
(function(e){return this.unsubscribe(),
[2]}))}))},e.prototype.socketDisconnected=function(){var
e=this;this.observer&&"function"==typeof
this.observer.next&&(this.observer.next({online:!
1}),this.timeout=setTimeout((function(){var
t=co({},e.connectionStatus);e.observer.next(t)}),5e3))},e}());const lC=uC;var
hC=function(){function e(e,t){this.outbox=e,this.ownSymbol=t}return
e.prototype.merge=function(e,t,n){return lo(this,void 0,void 0,(function(){var
r,i,o,s,a;return ho(this,(function(c){switch(c.label){case
0:return[4,this.outbox.getForModel(e,t,n)];case 1:return i=c.sent(),o=t._deleted,0!
==i.length?[3,5]:o?(r=oS.DELETE,[4,e.delete(t,void 0,this.ownSymbol)]):[3,3];case
2:return c.sent(),[3,5];case 3:return[4,e.save(t,void 0,this.ownSymbol)];case
4:s=po.apply(void 0,[c.sent(),1]),a=po(s[0],2),r=a[1],c.label=5;case
5:return[2,r]}}))}))},e.prototype.mergePage=function(e,t,n,r){return lo(this,void
0,void 0,(function(){var i,o,s,a,c,u,l,h;return ho(this,(function(d)
{switch(d.label){case 0:i=new Map;try{for(o=fo(n),s=o.next();!
s.done;s=o.next())a=s.value,c=TA(r,a),i.set(c,a)}catch(e)
{l={error:e}}finally{try{s&&!s.done&&(h=o.return)&&h.call(o)}finally{if(l)throw
l.error}}return u=go(i.values()),[4,e.batchSave(t,u,this.ownSymbol)];case
1:return[2,d.sent()]}}))}))},e}(),dC=function(){function e(e,t,n,r)
{this.schema=e,this.MutationEvent=t,this.modelInstanceCreator=n,this.ownSymbol=r}re
turn
e.prototype.enqueue=function(e,t){return lo(this,void 0,void 0,(function(){var
n=this;return ho(this,(function(r){switch(r.label){case
0:return[4,e.runExclusive((function(e){return lo(n,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case 0:return
n=this.schema.namespaces[jE].models.MutationEvent,r=rA.createFromAST(n,{and:
[{modelId:{eq:t.modelId}},{id:{ne:this.inProgressMutationEventId}}]}),
[4,e.query(this.MutationEvent,r)];case 1:return i=po.apply(void 0,
[h.sent(),1]),void 0!==(o=i[0])?[3,3]:[4,e.save(t,void 0,this.ownSymbol)];case
2:return h.sent(),[2];case 3:return s=t.operation,o.operation!==aA.CREATE?[3,8]:s!
==aA.DELETE?[3,5]:[4,e.delete(this.MutationEvent,r)];case 4:return h.sent(),
[3,7];case 5:return a=this.mergeUserFields(o,t),
[4,e.save(this.MutationEvent.copyOf(o,(function(e){e.data=a.data})),void
0,this.ownSymbol)];case 6:h.sent(),h.label=7;case 7:return[3,12];case 8:return
c=t.condition,u=JSON.parse(c),l=void 0,0!==Object.keys(u).length?[3,10]:
(l=this.mergeUserFields(o,t),[4,e.delete(this.MutationEvent,r)]);case
9:h.sent(),h.label=10;case 10:return l=l||t,[4,e.save(l,void
0,this.ownSymbol)];case 11:h.sent(),h.label=12;case 12:return[2]}}))}))}))];case
1:return r.sent(),[2]}}))}))},e.prototype.dequeue=function(e,t,n){return
lo(this,void 0,void 0,(function(){var r;return ho(this,(function(i){switch(i.label)
{case 0:return[4,this.peek(e)];case 1:return r=i.sent(),t?
[4,this.syncOutboxVersionsOnDequeue(e,t,r,n)]:[3,3];case 2:i.sent(),i.label=3;case
3:return[4,e.delete(r)];case 4:return i.sent(),this.inProgressMutationEventId=void
0,[2,r]}}))}))},e.prototype.peek=function(e){return lo(this,void 0,void 0,
(function(){var t;return ho(this,(function(n){switch(n.label){case
0:return[4,e.queryOne(this.MutationEvent,sS.FIRST)];case 1:return
t=n.sent(),this.inProgressMutationEventId=t?t.id:void 0,
[2,t]}}))}))},e.prototype.getForModel=function(e,t,n){return lo(this,void 0,void 0,
(function(){var r,i;return ho(this,(function(o){switch(o.label){case 0:return
r=this.schema.namespaces[jE].models.MutationEvent,i=TA(n,t),
[4,e.query(this.MutationEvent,rA.createFromAST(r,{and:{modelId:{eq:i}}}))];case
1:return[2,o.sent()]}}))}))},e.prototype.getModelIds=function(e){return
lo(this,void 0,void 0,(function(){var t,n;return ho(this,(function(r)
{switch(r.label){case 0:return[4,e.query(this.MutationEvent)];case 1:return
t=r.sent(),n=new Set,t.forEach((function(e){var t=e.modelId;return n.add(t)})),
[2,n]}}))}))},e.prototype.syncOutboxVersionsOnDequeue=function(e,t,n,r){return
lo(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,h,d,f,p,g,m,v=this;return
ho(this,(function(b){switch(b.label){case 0:return n.operation!==r?[2]:
(i=t._version,o=t._lastChangedAt,t._deleted,s=uo(t,
["_version","_lastChangedAt","_deleted"]),a=this.removeTimestampFields(n.model,s),
(c=JSON.parse(n.data))?(c._version,c._lastChangedAt,c._deleted,u=uo(c,
["_version","_lastChangedAt","_deleted"]),l=this.removeTimestampFields(n.model,u),Z
E(a,l,!0)?
(h=this.schema.namespaces[jE].models.MutationEvent,d=this.schema.namespaces.user.mo
dels[n.model],f=TA(d,t),p=rA.createFromAST(h,{and:[{modelId:{eq:f}},{id:
{ne:this.inProgressMutationEventId}}]}),[4,e.query(this.MutationEvent,p)]):[2]):
[2]);case 1:return(g=b.sent()).length?(m=g.map((function(e){var
t=JSON.parse(e.data),n=co(co({},t),{_version:i,_lastChangedAt:o});return
v.MutationEvent.copyOf(e,(function(e){e.data=JSON.stringify(n)}))})),
[4,e.delete(this.MutationEvent,p)]):[2];case 2:return b.sent(),
[4,Promise.all(m.map((function(t){return lo(v,void 0,void 0,(function(){return
ho(this,(function(n){switch(n.label){case 0:return[4,e.save(t,void
0,this.ownSymbol)];case 1:return[2,n.sent()]}}))}))})))];case 3:return b.sent(),
[2]}}))}))},e.prototype.mergeUserFields=function(e,t){var
n=JSON.parse(e.data),r=n._version,i=n._lastChangedAt,o=n._deleted,s=uo(n,
["_version","_lastChangedAt","_deleted"]),a=JSON.parse(t.data),c=(a._version,a._las
tChangedAt,a._deleted,uo(a,
["_version","_lastChangedAt","_deleted"])),u=JSON.stringify(co(co({_version:r,_last
ChangedAt:i,_deleted:o},s),c));return
this.modelInstanceCreator(this.MutationEvent,co(co({},t),
{data:u}))},e.prototype.removeTimestampFields=function(e,t){var
n,r,i="createdAt",o="updatedAt",s=i,a=o,c=null===(n=this.schema.namespaces[FE].mode
ls[e].attributes)||void 0===n?void 0:n.find((function(e)
{return"model"===e.type})),u=null===(r=null==c?void 0:c.properties)||void 0===r?
void 0:r.timestamps;return u&&(s=u[i],a=u[o]),delete t[s],delete t[a],t},e}
(),fC=function(e){return/^Connection failed: Connection
Timeout/.test(e.message)},pC=function(e){return/^Error: Request failed with status
code 5\d\d/.test(e.message)},gC={BadModel:function(){return!
1},BadRecord:function(e){var t=e.message;return/^Cannot return \w+ for [\w-_]+
type/.test(t)||/^Variable '.+' has coerced Null value for NonNull
type/.test(t)},ConfigError:function(){return!1},Transient:function(e){return
fC(e)||pC(e)},Unauthorized:function(e){return"Unauthorized"===e.message||/^Request
failed with status code 401/.test(e.message)}},mC={BadModel:function(){return!
1},BadRecord:function(){return!1},ConfigError:function(){return!
1},Transient:function(e){var t=bC(e);return fC(t)||pC(t)},Unauthorized:function(e)
{var t=bC(e);return/Connection failed.
+Unauthorized/.test(t.message)}},vC={BadModel:function(){return!
1},BadRecord:function(e){return/^Cannot return \w+ for [\w-_]+
type/.test(e.message)},ConfigError:function(){return!1},Transient:function(e)
{return fC(e)||pC(e)},Unauthorized:function(e)
{return"Unauthorized"===e.errorType}};function bC(e){var t=e.error;return po((void
0===t?{errors:[]}:t).errors,1)[0]}function yC(e){return _C(gC,e)}function wC(e)
{return _C(vC,e)}function _C(e,t){var n,r,i=go(Object.keys(e));try{for(var
o=fo(i),s=o.next();!s.done;s=o.next()){var a=s.value,c=e[a];if(null==c?void
0:c(t))return a}}catch(e){n={error:e}}finally{try{s&&!
s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return"Unknown"}var
EC,SC,TC=new h("DataStore"),AC=function(){function e(e,t,n,r,i,o,s,a,c,u,l){void
0===s&&(s={}),this.schema=e,this.storage=t,this.userClasses=n,this.outbox=r,this.mo
delInstanceCreator=i,this.MutationEvent=o,this.amplifyConfig=s,this.authModeStrateg
y=a,this.errorHandler=c,this.conflictHandler=u,this.amplifyContext=l,this.typeQuery
=new WeakMap,this.processing=!1,this.runningProcesses=new
$S,this.amplifyContext.InternalAPI=this.amplifyContext.InternalAPI||
hE,this.generateQueries()}return e.prototype.generateQueries=function(){var
e=this;Object.values(this.schema.namespaces).forEach((function(t)
{Object.values(t.models).filter((function(e){return
e.syncable})).forEach((function(n){var r=po(mA(t,n,"CREATE"),1)
[0],i=po(mA(t,n,"UPDATE"),1)[0],o=po(mA(t,n,"DELETE"),1)[0];e.typeQuery.set(n,
[r,i,o])}))}))},e.prototype.isReady=function(){return void 0!
==this.observer},e.prototype.start=function(){var e=this;return
this.runningProcesses=new $S,new iy((function(t)
{e.observer=t;try{e.resume()}catch(e){throw TC.error("mutations processor start
error",e),e}return e.runningProcesses.addCleaner((function(){return lo(e,void
0,void 0,(function(){return ho(this,(function(e){return
this.removeObserver(),this.pause(),[2]}))}))}))}))},e.prototype.stop=function()
{return lo(this,void 0,void 0,(function(){return ho(this,(function(e)
{switch(e.label){case 0:return this.removeObserver(),
[4,this.runningProcesses.close()];case 1:return e.sent(),
[4,this.runningProcesses.open()];case 2:return e.sent(),
[2]}}))}))},e.prototype.removeObserver=function(){var
e,t;null===(t=null===(e=this.observer)||void 0===e?void 0:e.complete)||void 0===t||
t.call(e),this.observer=void 0},e.prototype.resume=function(){return lo(this,void
0,void 0,(function(){var e=this;return ho(this,(function(t){switch(t.label){case
0:return[4,this.runningProcesses.isOpen&&this.runningProcesses.add((function(t)
{return lo(e,void 0,void 0,(function(){var e,n,r,i,o,s,a=this;return ho(this,
(function(c){switch(c.label){case 0:if(this.processing||!this.isReady()||!
this.runningProcesses.isOpen)return[2];this.processing=!0,n=FE,r=function(){var
r,o,c,u,l,h,d,f,p,g,m,v,b,y,w,_;return ho(this,(function(E){switch(E.label){case
0:r=e.model,o=e.operation,c=e.data,u=e.condition,l=i.userClasses[r],h=void 0,d=void
0,f=void 0,E.label=1;case 1:return E.trys.push([1,4,,5]),
[4,wA({authModeStrategy:i.authModeStrategy,defaultAuthMode:i.amplifyConfig.aws_apps
ync_authenticationType,modelName:r,schema:i.schema})];case 2:return
p=E.sent(),g=p[o.toUpperCase()],m=0,v=function(){return lo(a,void 0,void 0,
(function(){var i,s,a;return ho(this,(function(h){switch(h.label){case 0:return
h.trys.push([0,2,,9]),TC.debug("Attempting mutation with authMode: "+g[m]),
[4,this.jitteredRetry(n,r,o,c,u,l,this.MutationEvent,e,g[m],t)];case 1:return
i=h.sent(),TC.debug("Mutation sent successfully with authMode: "+g[m]),[2,i];case
2:if(s=h.sent(),!(++m>=g.length))return[3,7];TC.debug("Mutation failed with
authMode: "+g[m-1]),h.label=3;case 3:return h.trys.push([3,5,,6]),
[4,this.errorHandler({recoverySuggestion:"Ensure app code is up to date, auth
directives exist and are correct on each model, and that server-side data has not
been invalidated by a schema change. If the problem persists, search for or create
an issue:
https://github.com/aws-amplify/amplify-js/issues",localModel:null,message:s.message
,model:l.name,operation:d,errorType:yC(s),process:lS.sync,remoteModel:null,cause:s}
)];case 4:return h.sent(),[3,6];case 5:return a=h.sent(),TC.error("Mutation error
handler failed with:",a),[3,6];case 6:throw s;case 7:return TC.debug("Mutation
failed with authMode: "+g[m-1]+". Retrying with authMode: "+g[m]),[4,v()];case
8:return[2,h.sent()];case 9:return[2]}}))}))},[4,v()];case 3:return _=po.apply(void
0,[E.sent(),3]),h=_[0],d=_[1],f=_[2],[3,5];case
4:return"Offline"===(b=E.sent()).message||"RetryMutation"===b.message?
[2,"continue"]:[3,5];case 5:return void 0!==h?[3,7]:(TC.debug("done retrying"),
[4,i.storage.runExclusive((function(e){return
lo(a,void 0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return[4,this.outbox.dequeue(e)];case 1:return t.sent(),[2]}}))}))}))]);case
6:return E.sent(),[2,"continue"];case 7:return y=h.data[d],w=!1,
[4,i.storage.runExclusive((function(e){return lo(a,void 0,void 0,(function(){return
ho(this,(function(t){switch(t.label){case
0:return[4,this.outbox.dequeue(e,y,o)];case 1:return t.sent(),
[4,this.outbox.peek(e)];case 2:return w=void 0!==t.sent(),[2]}}))}))}))];case
8:return E.sent(),null===(s=null===(E=i.observer)||void 0===E?void 0:E.next)||void
0===s||s.call(E,{operation:o,modelDefinition:f,model:y,hasMore:w}),
[2]}}))},i=this,c.label=1;case
1:return(o=this.processing&&this.runningProcesses.isOpen)?
[4,this.outbox.peek(this.storage)]:[3,3];case 2:o=void 0!
==(e=c.sent()),c.label=3;case 3:return o?[5,r()]:[3,5];case 4:return c.sent(),
[3,1];case 5:return this.pause(),[2]}}))}))}),"mutation resume loop")];case
1:return t.sent(),
[2]}}))}))},e.prototype.jitteredRetry=function(e,t,n,r,i,o,s,a,c,u){return
lo(this,void 0,void 0,(function(){var l=this;return ho(this,(function(h)
{switch(h.label){case 0:return[4,rt((function(t,n,r,i,o,s,a){return lo(l,void
0,void 0,(function(){var
u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C,O,x,I,P,D,k,R,M,N;return ho(this,(function(L)
{switch(L.label){case 0:return
u=po(this.createQueryVariables(e,t,n,r,i),5),l=u[0],h=u[1],d=u[2],f=u[3],p=u[4],
[4,SA(c,this.amplifyConfig)];case
1:g=L.sent(),m={query:l,variables:h,authMode:c,authToken:g},v=0,b=this.opTypeFromTr
ansformerOperation(n),y={category:Y.DataStore,action:Z.GraphQl},L.label=2;case
2:return L.trys.push([2,4,,17]),[4,this.amplifyContext.InternalAPI.graphql(m,void
0,y)];case 3:return[2,[L.sent(),f,p]];case 4:if(!
((w=L.sent()).errors&&w.errors.length>0))return[3,15];if(_=po(w.errors,1),E=_[0],S=
E.originalError,T=(void 0===S?{}:S).code,A=void 0===T?
null:T,"Unauthorized"===E.errorType)throw new tt("Unauthorized");if("Network
Error"===E.message||"ECONNABORTED"===A){if(!this.processing)throw new
tt("Offline");throw new Error("Network Error")}return"ConflictUnhandled"!
==E.errorType?[3,13]:(v++,C=void 0,v>10?(C=zS,[3,8]):[3,5]);case 5:return
L.trys.push([5,7,,8]),
[4,this.conflictHandler({modelConstructor:o,localModel:this.modelInstanceCreator(o,
h.input),remoteModel:this.modelInstanceCreator(o,E.data),operation:b,attempts:v})];
case 6:return C=L.sent(),[3,8];case 7:return O=L.sent(),TC.warn("conflict
trycatch",O),[3,17];case 8:return C!==zS?[3,11]:
(x=po(mA(this.schema.namespaces[e],p,"GET"),1),I=po(x[0],3),P=I[1],D=I[2],
[4,SA(c,this.amplifyConfig)]);case 9:return k=L.sent(),
[4,this.amplifyContext.InternalAPI.graphql({query:D,variables:
{id:h.input.id},authMode:c,authToken:k},void 0,y)];case 10:return[2,
[L.sent(),P,p]];case 11:return
R=this.schema.namespaces[e],M=vA(R.relationships,p,b,o,C,d,s,this.modelInstanceCrea
tor,a.id),[4,this.storage.save(M)];case 12:throw L.sent(),new
tt("RetryMutation");case 13:try{this.errorHandler({recoverySuggestion:"Ensure app
code is up to date, auth directives exist and are correct on each model, and that
server-side data has not been invalidated by a schema change. If the problem
persists, search for or create an issue: https://github.com/aws-amplify/amplify-
js/issues",localModel:h.input,message:E.message,operation:n,errorType:yC(E),errorIn
fo:E.errorInfo,process:lS.mutate,cause:E,remoteModel:E.data?
this.modelInstanceCreator(o,E.data):null})}catch(e){TC.warn("Mutation error handler
failed with:",e)}finally{return[2,E.data?[{data:(N={},N[f]=E.data,N)},f,p]:
[]]}L.label=14;case 14:return[3,16];case 15:throw new tt(w);case
16:return[3,17];case 17:if(m)return[3,2];L.label=18;case 18:return[2]}}))}))}),
[t,n,r,i,o,s,a],xC,u)];case
1:return[2,h.sent()]}}))}))},e.prototype.createQueryVariables=function(e,t,n,r,i)
{var
o,s,a,c,u,l,h,d,f,p,g=this.schema.namespaces[e].models[t],m=this.schema.namespaces[
e].keys[t].primaryKey,v=null===(h=g.attributes)||void 0===h?void
0:h.find((function(e){return"auth"===e.type})),b=(null===(d=null==v?void
0:v.properties)||void 0===d?void 0:d.rules.map((function(e){return
e.ownerField})).filter((function(e){return e})))||
["owner"],y=po(this.typeQuery.get(g).find((function(e){return po(e,1)
[0]===n})),3),w=y[1],_=y[2],E=JSON.parse(r),S=E._version,T=uo(E,
["_version"]),A={};if(null==m?void 0:m.length)try{for(var C=fo(m),O=C.next();!
O.done;O=C.next()){var x=O.value;A[x]=T[x]}}catch(e){o={error:e}}finally{try{O&&!
O.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}else
A[RE]=T.id;if(n===aA.DELETE)f=A;else{f={};var I=Object.values(g.fields);try{for(var
P=fo(I),D=P.next();!D.done;D=P.next()){var
k=D.value,R=k.name,M=k.type,N=k.association;if(!(k.isReadOnly||
b.includes(R)&&null===T[R]))if((p=M)&&p.model)
{if(kS(N)&&"BELONGS_TO"===N.connectionType){var L=OS(N);if(L)try{for(var F=(u=void
0,fo(L)),j=F.next();!j.done;j=F.next()){var B=j.value;f[B]=T[B]}}catch(e)
{u={error:e}}finally{try{j&&!j.done&&(l=F.return)&&l.call(F)}finally{if(u)throw
u.error}}}}else(n!==aA.UPDATE||T.hasOwnProperty(R))&&(f[R]=T[R])}}catch(e)
{a={error:e}}finally{try{D&&!D.done&&(c=P.return)&&c.call(P)}finally{if(a)throw
a.error}}}var U=co(co({},f),
{_version:S}),H=JSON.parse(i);return[_,co({input:U},n===aA.CREATE?{}:
{condition:Object.keys(H).length>0?
H:null}),H,w,g]},e.prototype.opTypeFromTransformerOperation=function(e){switch(e)
{case aA.CREATE:return oS.INSERT;case aA.DELETE:return oS.DELETE;case
aA.UPDATE:return oS.UPDATE;case aA.GET:break;default:throw new Error("Invalid
operation "+e)}},e.prototype.pause=function(){this.processing=!1},e}
(),CC=3e5,OC=ot(CC),xC=function(e,t,n){var r=OC(e);return!1===r&&"Network
Error"===(null==n?void 0:n.message)?CC:r},IC=new h("DataStore");!function(e)
{e.CONNECTED="CONNECTED"}(EC||(EC={})),function(e)
{e[e.none=0]="none",e[e.unauth=1]="unauth",e[e.auth=2]="auth"}(SC||(SC={}));var
PC,DC=function(){function e(e,t,n,r,i,o){void 0===n&&(n={}),void
0===o&&(o={Auth:Gp,InternalAPI:hE,Cache:W}),this.schema=e,this.syncPredicates=t,thi
s.amplifyConfig=n,this.authModeStrategy=r,this.errorHandler=i,this.amplifyContext=o
,this.typeQuery=new WeakMap,this.buffer=[],this.runningProcesses=new $S}return
e.prototype.buildSubscription=function(e,t,n,r,i,o,s,a){void 0===a&&(a=!1);var
c=this.amplifyConfig.aws_appsync_authenticationType,u=this.getAuthorizationInfo(t,r
,c,i,o,s)||{},l=u.isOwner,h=u.ownerField,d=u.ownerValue,f=po(function(e,t,n,r,i,o)
{void 0===o&&(o=!1);var s=fA(e,t),a=t.name,c="on"+n+a,u=[],l=[];return
o&&(u.push("$filter: ModelSubscription"+a+"FilterInput"),l.push("filter:
$filter")),r&&(u.push("$"+i+": String!"),l.push(i+": $"+i)),[n,c,"subscription
operation"+(u.length?"("+u.join(",")+")":"")+"{\n\t\t\t"+c+
(l.length?"("+l.join(",")+")":"")+"{\n\t\t\t\t"+s+"\n\t\t\t}\n\t\t}"]}
(e,t,n,l,h,a),3);return{authMode:s,opType:f[0],opName:f[1],query:f[2],isOwner:l,own
erField:h,ownerValue:d}},e.prototype.getAuthorizationInfo=function(e,t,n,r,i,o)
{void 0===r&&(r={}),void 0===i&&(i={});var
s=gA(e);if(o===of.AWS_IAM&&s.find((function(e)
{return"private"===e.authStrategy&&"iam"===e.provider}))&&t===SC.unauth)return
null;var a,c=s.filter((function(e)
{return"groups"===e.authStrategy&&["userPools","oidc"].includes(e.provider)}));retu
rn o!==of.AMAZON_COGNITO_USER_POOLS&&o!==of.OPENID_CONNECT||!c.find((function(e)
{return go(yA(r,e),yA(i,e)).find((function(t){return e.groups.find((function(e)
{return e===t}))}))}))?((o===of.AMAZON_COGNITO_USER_POOLS?s.filter((function(e)
{return"owner"===e.authStrategy&&"userPools"===e.provider})):
[]).forEach((function(t){var n,i=r[t.identityClaim],o=!0!
==(null===(n=e.fields[t.ownerField])||void 0===n?void 0:n.isArray)&&!
t.areSubscriptionsPublic;i&&(a={authMode:of.AMAZON_COGNITO_USER_POOLS,isOwner:o,own
erField:t.ownerField,ownerValue:i})})),a||((o===of.OPENID_CONNECT?
s.filter((function(e){return"owner"===e.authStrategy&&"oidc"===e.provider})):
[]).forEach((function(t){var n,r=i[t.identityClaim],o=!0!
==(null===(n=e.fields[t.ownerField])||void 0===n?void 0:n.isArray)&&!
t.areSubscriptionsPublic;r&&(a={authMode:of.OPENID_CONNECT,isOwner:o,ownerField:t.o
wnerField,ownerValue:r})})),a||{authMode:o||n,isOwner:!1})):{authMode:o,isOwner:!
1}},e.prototype.hubQueryCompletionListener=function(e,t)
{t.payload.event===oy.SUBSCRIPTION_ACK&&e()},e.prototype.start=function(){var
e=this;this.runningProcesses=this.runningProcesses||new $S;var t=new
iy((function(t){var n,r,i=[],o={},s=SC.none;return
e.runningProcesses.add((function(){return lo(e,void 0,void 0,(function(){var
e,a,c,u,l,h,d,f,p,g,m=this;return ho(this,(function(v){switch(v.label){case
0:return v.trys.push([0,2,,3]),
[4,this.amplifyContext.Auth.currentCredentials()];case 1:return
e=v.sent(),s=e.authenticated?SC.auth:SC.unauth,[3,3];case 2:return v.sent(),
[3,3];case 3:return v.trys.push([3,5,,6]),
[4,this.amplifyContext.Auth.currentSession()];case 4:return
a=v.sent(),n=a.getIdToken().decodePayload(),[3,6];case 5:return v.sent(),[3,6];case
6:if(v.trys.push([6,11,,12]),c=this.amplifyConfig,u=c.aws_cognito_region,l=c.Auth,!
u||l&&!l.region)throw"Auth is not configured";return h=void 0,
[4,this.amplifyContext.Cache.getItem("federatedInfo")];case 7:return(d=v.sent())?
(h=d.token,[3,10]):[3,8];case
8:return[4,this.amplifyContext.Auth.currentAuthenticatedUser()];case 9:
(f=v.sent())&&(h=f.token),v.label=10;case 10:return h&&(p=h.split(".")
[1],r=JSON.parse(Buffer.from(p,"base64").toString("utf8"))),[3,12];case 11:return
g=v.sent(),IC.debug("error getting OIDC JWT",g),[3,12];case 12:return
Object.values(this.schema.namespaces).forEach((function(e)
{Object.values(e.models).filter((function(e){return
e.syncable})).forEach((function(a){return
m.runningProcesses.isOpen&&m.runningProcesses.add((function(){return lo(m,void
0,void 0,(function(){var c,u,l,h,d,f,p,g,m,v,b=this;return ho(this,(function(y)
{switch(y.label){case
0:return[4,wA({authModeStrategy:this.authModeStrategy,defaultAuthMode:this.amplifyC
onfig.aws_appsync_authenticationType,modelName:a.name,schema:this.schema})];case
1:return c=y.sent(),u=c.READ,o=co(co({},o),((g={})[a.name]=((m={})
[aA.CREATE]=[],m[aA.UPDATE]=[],m[aA.DELETE]=[],m),g)),l=[aA.CREATE,aA.UPDATE,aA.DEL
ETE],(v={})
[aA.CREATE]=0,v[aA.UPDATE]=0,v[aA.DELETE]=0,h=v,d=rA.getPredicates(this.syncPredica
tes.get(a),!1),f=void 0!==d,p=function(c,l){return void 0===l&&(l=f),lo(b,void
0,void 0,(function(){var f,g,m,v,b,y,w,_,E,S,T,A,C,O=this;return ho(this,
(function(I){switch(I.label){case 0:return
f=this.buildSubscription(e,a,c,s,n,r,u[h[c]],l),g=f.opType,m=f.opName,v=f.query,b=f
.isOwner,y=f.ownerField,w=f.ownerValue,[4,SA(_=f.authMode,this.amplifyConfig)];case
1:if(E=I.sent(),S={},T={category:Y.DataStore,action:Z.Subscribe},l&&d&&(S.filter=bA
(d)),b){if(!w)return t.error("Owner field required, sign in is needed in order to
perform this operation"),[2];S[y]=w}return IC.debug("Attempting "+c+" subscription
with authMode:
"+u[h[c]]),A=this.amplifyContext.InternalAPI.graphql(co(co({query:v,variables:S},
{authMode:_}),{authToken:E}),void 0,T),o[a.name][g].push(A.map((function(e){return
e.value})).subscribe({next:function(e){var
t=e.data,n=e.errors;if(Array.isArray(n)&&n.length>0){var r=n.map((function(e)
{return e.message}));return IC.warn("Skipping incoming subscription. Messages:
"+r.join("\n")),void O.drainBuffer()}var
i=rA.getPredicates(O.syncPredicates.get(a),!
1),o=t[m];O.passesPredicateValidation(o,i)&&O.pushToBuffer(g,a,o),O.drainBuffer()},
error:function(e){return lo(O,void 0,void 0,(function(){var n,r,i,s,f,m;return
ho(this,(function(v){switch(v.label){case 0:if(n=e.error,r=po((void 0===n?{errors:
[]}:n).errors,1),i=r[0],s=(void 0===i?{}:i).message,f=void
0===s?"":s,l&&this.catchRTFError(f,a,d))return o[a.name][g].forEach((function(e)
{return e.unsubscribe()})),o[a.name][g]=[],p(c,!1),
[2];if(f.includes(oy.REALTIME_SUBSCRIPTION_INIT_ERROR)||
f.includes(oy.CONNECTION_FAILED)){if(o[a.name][g].forEach((function(e){return
e.unsubscribe()})),o[a.name][g]=[],h[c]++,!(h[c]>=u.length))return IC.debug(c+"
subscription failed with authMode: "+u[h[c]-1]+". Retrying with authMode:
"+u[h[c]]),p(c),[2];IC.debug(c+" subscription failed with authMode: "+u[h[c]-
1])}IC.warn("subscriptionError",f),v.label=1;case 1:return v.trys.push([1,3,,4]),
[4,this.errorHandler({recoverySuggestion:"Ensure app code is up to date, auth
directives exist and are correct on each model, and that server-side data has not
been invalidated by a schema change. If the problem persists, search for or create
an issue:
https://github.com/aws-amplify/amplify-js/issues",localModel:null,message:f,model:a
.name,operation:c,errorType:
(b=e,_C(mC,b)),process:lS.subscribe,remoteModel:null,cause:e})];case 2:return
v.sent(),[3,4];case 3:return m=v.sent(),IC.error("Subscription error handler failed
with:",m),[3,4];case 4:return"function"==typeof
C&&C(),f.includes('"errorType":"Unauthorized"')||
f.includes('"errorType":"OperationDisabled"')||t.error(f),[2]}var
b}))}))}})),i.push(lo(O,void 0,void 0,(function(){var e,t=this;return ho(this,
(function(n){switch(n.label){case 0:return[4,new Promise((function(n)
{C=n,e=t.hubQueryCompletionListener.bind(t,n),x.listen("api",e)}))];case 1:return
n.sent(),x.remove("api",e),[2]}}))}))),[2]}}))}))},l.forEach((function(e){return
p(e)})),
[2]}}))}))}))}))})),this.runningProcesses.isOpen&&this.runningProcesses.add((functi
on(){return Promise.all(i).then((function(){t.next(EC.CONNECTED)}))})),
[2]}}))}))}),"subscription processor new
subscriber"),e.runningProcesses.addCleaner((function(){return lo(e,void 0,void 0,
(function(){return ho(this,(function(e){return Object.keys(o).forEach((function(e)
{o[e][aA.CREATE].forEach((function(e){return e.unsubscribe()})),o[e]
[aA.UPDATE].forEach((function(e){return e.unsubscribe()})),o[e]
[aA.DELETE].forEach((function(e){return e.unsubscribe()}))})),
[2]}))}))}))}));return[t,new iy((function(t){return
e.dataObserver=t,e.drainBuffer(),e.runningProcesses.addCleaner((function(){return
lo(e,void 0,void 0,(function(){return ho(this,(function(e){return
this.dataObserver=null,[2]}))}))}))}))]},e.prototype.stop=function(){return
lo(this,void 0,void 0,(function(){return ho(this,(function(e){switch(e.label){case
0:return[4,this.runningProcesses.close()];case 1:return e.sent(),
[4,this.runningProcesses.open()];case 2:return e.sent(),
[2]}}))}))},e.prototype.passesPredicateValidation=function(e,t){if(!t)return!0;var
n=t.predicates,r=t.type;return HE(e,r,n)},e.prototype.pushToBuffer=function(e,t,n)
{this.buffer.push([e,t,n])},e.prototype.drainBuffer=function(){var
e=this;this.dataObserver&&(this.buffer.forEach((function(t){return
e.dataObserver.next(t)})),this.buffer=[])},e.prototype.catchRTFError=function(e,t,n
){var r={"UnknownArgument: Unknown field argument filter":hA.UnknownField,"Filters
exceed maximum attributes limit":hA.MaxAttributes,"Filters combination exceed
maximum limit":hA.MaxCombinations,"filter uses same fieldName multiple
time":hA.RepeatedFieldname,"The variables input contains a field name
'not'":hA.NotGroup,"The variables input contains a field that is not defined for
input object type":hA.FieldNotInType},i=po(Object.entries(r).find((function(t){var
n=po(t,1)[0];return e.includes(n)}))||[],2),o=(i[0],i[1]);if(void 0!==o){var
s=function(e,t,n){var r=function(e){var t=new Set;if(!e||!
Array.isArray(e.predicates))return t;for(var n=go(e.predicates);n.length>0;){var
r=n.pop();BS(r)?t.add(r.field):US(r)&&n.push.apply(n,go(r.predicates))}return t}
(n),i=go(r).join(", "),o=function(e){var t,n,r=gA(e),i=new Set;try{for(var
o=fo(r),s=o.next();!s.done;s=o.next()){var a=s.value;a.groupsField&&!
a.groups.length?i.add(a.groupsField):a.ownerField&&i.add(a.ownerField)}}catch(e)
{t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw
t.error}}return i}(t),s=go(o).join(", "),a=function(e){if(!e||!
Array.isArray(e.predicates))return 0;for(var t=0,n=[e];n.length>0;){var
r=n.pop();if(US(r)){var
i=r.predicates;"or"===r.type&&i.length>1&&(t+=i.length),n.push.apply(n,go(i))}}retu
rn t||1}(n),c=function(e){if(!e||!Array.isArray(e.predicates))return null;for(var
t=[bA(e)],n=function(e){var t,n,r={};try{for(var i=fo(e),o=i.next();!
o.done;o=i.next()){var s=o.value,a=po(Object.keys(s),1)[0];if(r[a])return a;r[a]=!
0}}catch(e){t={error:e}}finally{try{o&&!
o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return
null};t.length>0;){var r=t.pop(),i=po(Object.keys(r),1)[0],o=r[i];if(!
Array.isArray(o))return null;var s=o.filter((function(e){return!
Array.isArray(Object.values(e)[0])})),a=o.filter((function(e){return
Array.isArray(Object.values(e)[0])}));if("and"===i){var c=n(s);if(c)return
c}t.push.apply(t,go(a))}return null}(n);switch(e){case hA.UnknownField:return"Your
API was generated with an older version of the CLI that doesn't support backend
subscription filtering.To enable backend subscription filtering, upgrade your
Amplify CLI to the latest version and push your app by running `amplify upgrade`
followed by `amplify push`";case hA.MaxAttributes:var u="Your selective sync
expression for "+t.name+" contains "+r.size+" different model fields: "+i+".\n\
n";return o.size>0&&(u+="Note: the number of fields you can use with selective sync
is affected by @auth rules configured on the model.\n\nDynamic auth modes, such as
owner auth and dynamic group auth each utilize 1 field.\nYou currently have
"+o.size+" dynamic auth mode(s) configured on this model: "+s+"."),u;case
hA.MaxCombinations:return u="Your selective sync expression for "+t.name+" contains
"+a+" field combinations (total number of predicates in an OR expression).\n\
n",o.size>0&&(u+="Note: the number of fields you can use with selective sync is
affected by @auth rules configured on the model.\n\nDynamic auth modes, such as
owner auth and dynamic group auth factor in to the number of combinations you're
using.\nYou currently have "+o.size+" dynamic auth mode(s) configured on this
model: "+s+"."),u;case hA.RepeatedFieldname:return"Your selective sync expression
for "+t.name+" contains multiple entries for "+c+" in the same AND group.";case
hA.NotGroup:return"Your selective sync expression for "+t.name+" uses a `not`
group. If you'd like to filter subscriptions in the backend, rewrite your
expression using `ne` or `notContains` operators.";case
hA.FieldNotInType:return""}}(o,t,n);return IC.warn("Backend subscriptions filtering
error.\nSubscriptions filtering will be applied clientside.\n\n"+e+"\n"+s),!
0}return!1},e}(),kC={items:[],nextToken:null,startedAt:null},RC=new
h("DataStore"),MC=function(){function e(e,t,n,r,i,o){void
0===n&&(n={}),this.schema=e,this.syncPredicates=t,this.amplifyConfig=n,this.authMod
eStrategy=r,this.errorHandler=i,this.amplifyContext=o,this.typeQuery=new
WeakMap,this.runningProcesses=new $S,o.InternalAPI=o.InternalAPI||
hE,this.generateQueries()}return e.prototype.generateQueries=function(){var
e=this;Object.values(this.schema.namespaces).forEach((function(t)
{Object.values(t.models).filter((function(e){return
e.syncable})).forEach((function(n){var
r=po(mA(t,n,"LIST"),1),i=po(r[0]).slice(1);e.typeQuery.set(n,i)}))}))},e.prototype.
graphqlFilterFromPredicate=function(e){if(!this.syncPredicates)return null;var
t=rA.getPredicates(this.syncPredicates.get(e),!1);return t?
bA(t):null},e.prototype.retrievePage=function(e,t,n,r,i,o){return void
0===r&&(r=null),lo(this,void 0,void 0,(function(){var
s,a,c,u,l,h,d,f,p,g,m,v,b,y=this;return ho(this,(function(w){switch(w.label){case
0:return
s=po(this.typeQuery.get(e),2),a=s[0],c=s[1],u={limit:r,nextToken:n,lastSync:t,filte
r:i},
[4,wA({authModeStrategy:this.authModeStrategy,defaultAuthMode:this.amplifyConfig.aw
s_appsync_authenticationType,modelName:e.name,schema:this.schema})];case 1:return
l=w.sent(),h=l.READ,d=0,f=function(){return lo(y,void 0,void 0,(function(){var
t,n,r,i;return ho(this,(function(s){switch(s.label){case 0:if(!
this.runningProcesses.isOpen)throw new Error("sync.retreievePage termination was
requested. Exiting.");s.label=1;case 1:return
s.trys.push([1,3,,5]),RC.debug("Attempting
sync with authMode: "+h[d]),
[4,this.jitteredRetry({query:c,variables:u,opName:a,modelDefinition:e,authMode:h[d]
,onTerminate:o})];case 2:return t=s.sent(),RC.debug("Sync successful with authMode:
"+h[d]),[2,t];case 3:if(n=s.sent(),++d>=h.length){if(r=h[d-1],RC.debug("Sync failed
with authMode: "+r,n),EA(n)||_A(n))return RC.warn("User is unauthorized to query
"+a+" with auth mode "+r+". No data could be returned."),[2,{data:
(i={},i[a]=kC,i)}];throw n}return RC.debug("Sync failed with authMode: "+h[d-1]+".
Retrying with authMode: "+h[d]),[4,f()];case 4:return[2,s.sent()];case
5:return[2]}}))}))},[4,f()];case 2:return
p=w.sent().data,g=p[a],m=g.items,v=g.nextToken,b=g.startedAt,[2,
{nextToken:v,startedAt:b,items:m}]}}))}))},e.prototype.jitteredRetry=function(e)
{var
t=e.query,n=e.variables,r=e.opName,i=e.modelDefinition,o=e.authMode,s=e.onTerminate
;return lo(this,void 0,void 0,(function(){var e=this;return ho(this,(function(a)
{switch(a.label){case 0:return[4,at((function(t,n){return lo(e,void 0,void 0,
(function(){var e,s,a,c,u,l,h,d,f,p,g,m,v=this;return ho(this,(function(b)
{switch(b.label){case 0:return b.trys.push([0,3,,6]),
[4,SA(o,this.amplifyConfig)];case 1:return
e=b.sent(),s={category:Y.DataStore,action:Z.GraphQl},
[4,this.amplifyContext.InternalAPI.graphql({query:t,variables:n,authMode:o,authToke
n:e},void 0,s)];case 2:return[2,b.sent()];case 3:if(a=b.sent(),c=EA(a)||_A(a))throw
RC.error("Sync processor retry error:",a),new tt(c);return
u=Boolean(null===(p=null===(f=null==a?void 0:a.data)||void 0===f?void 0:f[r])||void
0===p?void 0:p.items),l=(null==a?void 0:a.errors)&&a.errors.some((function(e)
{return"Unauthorized"===e.errorType})),h=(null==a?void
0:a.errors)&&a.errors.filter((function(e){return"Unauthorized"!
==e.errorType})),d=a,u&&(d.data[r].items=d.data[r].items.filter((function(e){return
null!==e}))),u&&(null==h?void 0:h.length)?[4,Promise.all(h.map((function(e){return
lo(v,void 0,void 0,(function(){var t;return ho(this,(function(n){switch(n.label)
{case 0:return n.trys.push([0,2,,3]),
[4,this.errorHandler({recoverySuggestion:"Ensure app code is up to date, auth
directives exist and are correct on each model, and that server-side data has not
been invalidated by a schema change. If the problem persists, search for or create
an issue:
https://github.com/aws-amplify/amplify-js/issues",localModel:null,message:e.message
,model:i.name,operation:r,errorType:wC(e),process:lS.sync,remoteModel:null,cause:e}
)];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),RC.error("Sync error
handler failed with:",t),[3,3];case 3:return[2]}}))}))})))]:[3,5];case
4:b.sent(),x.dispatch("datastore",{event:"nonApplicableDataReceived",data:
{errors:h,modelName:i.name}}),b.label=5;case 5:if(l)throw
this.errorHandler({recoverySuggestion:"Ensure app code is up to date, auth
directives exist and are correct on each model, and that server-side data has not
been invalidated by a schema change. If the problem persists, search for or create
an issue:
https://github.com/aws-amplify/amplify-js/issues",localModel:null,message:a.message
,model:i.name,operation:r,errorType:wC(a.errors[0]),process:lS.sync,remoteModel:nul
l,cause:a}),new tt(a);if(null===(m=null===(g=d.data)||void 0===g?void
0:g[r].items)||void 0===m?void 0:m.length)return[2,d];throw a;case
6:return[2]}}))}))}),[t,n],void 0,s)];case
1:return[2,a.sent()]}}))}))},e.prototype.start=function(e){var
t=this,n=this.amplifyConfig,r=n.maxRecordsToSync,i=n.syncPageSize,o=new Map,s=new
iy((function(n){var s=Object.values(t.schema.namespaces).reduce((function(t,n){var
r,i;try{for(var o=fo(Array.from(n.modelTopologicalOrdering.keys())),s=o.next();!
s.done;s=o.next()){var
a=s.value,c=e.get(n.models[a]);t.set(n.models[a],c)}}catch(e)
{r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw
r.error}}return t}),new Map),a=Array.from(s.entries()).filter((function(e){return
po(e,1)[0].syncable})).map((function(e){var
s=po(e,2),a=s[0],c=po(s[1],2),u=c[0],l=c[1];return
t.runningProcesses.isOpen&&t.runningProcesses.add((function(e){return lo(t,void
0,void 0,(function(){var t,s,c,h,d,f,p,g,m,v=this;return ho(this,(function(b)
{switch(b.label){case 0:return t=!
1,s=null,c=null,h=null,d=0,f=this.graphqlFilterFromPredicate(a),p=this.schema.names
paces[u].modelTopologicalOrdering.get(a.name),g=p.map((function(e){return
o.get(u+"_"+e)})),m=new Promise((function(o){return lo(v,void 0,void 0,(function()
{var p,m,v,b;return ho(this,(function(y){switch(y.label){case
0:return[4,Promise.all(g)];case 1:y.sent(),y.label=2;case 2:if(!
this.runningProcesses.isOpen)return RC.debug("Sync processor has been stopped,
terminating sync for "+a.name),[2,o()];p=Math.min(r-d,i),y.label=3;case 3:return
y.trys.push([3,5,,10]),[4,this.retrievePage(a,l,s,p,f,e)];case 4:return
b=y.sent(),h=b.items,s=b.nextToken,c=b.startedAt,[3,10];case
5:m=y.sent(),y.label=6;case 6:return y.trys.push([6,8,,9]),
[4,this.errorHandler({recoverySuggestion:"Ensure app code is up to date, auth
directives exist and are correct on each model, and that server-side data has not
been invalidated by a schema change. If the problem persists, search for or create
an issue:
https://github.com/aws-amplify/amplify-js/issues",localModel:null,message:m.message
,model:a.name,operation:null,errorType:wC(m),process:lS.sync,remoteModel:null,cause
:m})];case 7:return y.sent(),[3,9];case 8:return v=y.sent(),RC.error("Sync error
handler failed with:",v),[3,9];case 9:return t=!0,h=[],[3,10];case
10:d+=h.length,t=null===s||
d>=r,n.next({namespace:u,modelDefinition:a,items:h,done:t,startedAt:c,isFullSync:!
l}),y.label=11;case 11:if(!t)return[3,2];y.label=12;case 12:return o(),
[2]}}))}))})),o.set(u+"_"+a.name,m),[4,m];case 1:return b.sent(),
[2]}}))}))}),"adding model "+a.name)}));Promise.all(a).then((function()
{n.complete()}))}));return s},e.prototype.stop=function(){return lo(this,void
0,void 0,(function(){return ho(this,(function(e){switch(e.label){case 0:return
RC.debug("stopping sync processor"),[4,this.runningProcesses.close()];case 1:return
e.sent(),[4,this.runningProcesses.open()];case 2:return e.sent(),RC.debug("sync
processor stopped"),[2]}}))}))},e}(),NC=We().isNode,LC=new
h("DataStore"),FC=Symbol("sync");!function(e)
{e.SYNC_ENGINE_STORAGE_SUBSCRIBED="storageSubscribed",e.SYNC_ENGINE_SUBSCRIPTIONS_E
STABLISHED="subscriptionsEstablished",e.SYNC_ENGINE_SYNC_QUERIES_STARTED="syncQueri
esStarted",e.SYNC_ENGINE_SYNC_QUERIES_READY="syncQueriesReady",e.SYNC_ENGINE_MODEL_
SYNCED="modelSynced",e.SYNC_ENGINE_OUTBOX_MUTATION_ENQUEUED="outboxMutationEnqueued
",e.SYNC_ENGINE_OUTBOX_MUTATION_PROCESSED="outboxMutationProcessed",e.SYNC_ENGINE_O
UTBOX_STATUS="outboxStatus",e.SYNC_ENGINE_NETWORK_STATUS="networkStatus",e.SYNC_ENG
INE_READY="ready"}(PC||(PC={}));var jC,BC=function(){function
e(e,t,n,r,i,o,s,a,c,u,l,h,d){var f=this;void
0===u&&(u={}),this.schema=e,this.namespaceResolver=t,this.modelClasses=n,this.userM
odelClasses=r,this.storage=i,this.modelInstanceCreator=o,this.syncPredicates=c,this
.amplifyConfig=u,this.authModeStrategy=l,this.amplifyContext=h,this.connectivityMon
itor=d,this.online=!1,this.modelSyncedStatus=new WeakMap,this.connectionDisrupted=!
1,this.runningProcesses=new $S,this.waitForSleepState=new Promise((function(e)
{f.syncQueriesObservableStartSleeping=e}));var
p=this.modelClasses.MutationEvent;this.outbox=new
dC(this.schema,p,o,FC),this.modelMerger=new
hC(this.outbox,FC),this.syncQueriesProcessor=new
MC(this.schema,this.syncPredicates,this.amplifyConfig,this.authModeStrategy,a,this.
amplifyContext),this.subscriptionsProcessor=new
DC(this.schema,this.syncPredicates,this.amplifyConfig,this.authModeStrategy,a,this.
amplifyContext),this.mutationsProcessor=new
AC(this.schema,this.storage,this.userModelClasses,this.outbox,this.modelInstanceCre
ator,p,this.amplifyConfig,this.authModeStrategy,a,s,this.amplifyContext),this.datas
toreConnectivity=this.connectivityMonitor||new lC}return
e.prototype.getModelSyncedStatus=function(e){return
this.modelSyncedStatus.get(e)},e.prototype.start=function(e){var t=this;return new
iy((function(n){LC.log("starting sync engine...");var
r=[];t.runningProcesses.add((function(){return lo(t,void 0,void 0,(function(){var
t,i,o,s=this;return ho(this,(function(a){switch(a.label){case 0:return
a.trys.push([0,2,,3]),[4,this.setupModels(e)];case 1:return a.sent(),[3,3];case
2:return t=a.sent(),n.error(t),[2];case 3:return i=new Promise((function(e,t)
{s.datastoreConnectivity.status().subscribe((function(i){var o=i.online;return
lo(s,void 0,void 0,(function(){var i=this;return ho(this,(function(s)
{return[2,this.runningProcesses.isOpen&&this.runningProcesses.add((function(s)
{return lo(i,void 0,void 0,(function(){var i,a,c,u,l,h=this;return ho(this,
(function(d){switch(d.label){case 0:return!o||this.online?[3,10]:
(this.online=o,n.next({type:PC.SYNC_ENGINE_NETWORK_STATUS,data:
{active:this.online}}),a=void 0,NC?(LC.warn("Realtime disabled when in a server-
side environment"),[3,6]):[3,1]);case
1:this.stopDisruptionListener=this.startDisruptionListener(),l=po(this.subscription
sProcessor.start(),2),i=l[0],a=l[1],d.label=2;case 2:return d.trys.push([2,4,,5]),
[4,new Promise((function(e,t){s.then(t);var n=i.subscribe({next:function(t)
{t===EC.CONNECTED&&e()},error:function(e){t(e),h.disconnectionHandler()
(e)}});r.push(n)}))];case 3:return d.sent(),[3,5];case 4:return
c=d.sent(),n.error(c),t(),[2];case 5:LC.log("Realtime
ready"),n.next({type:PC.SYNC_ENGINE_SUBSCRIPTIONS_ESTABLISHED}),d.label=6;case
6:return d.trys.push([6,8,,9]),[4,new Promise((function(e,t){var
i=h.syncQueriesObservable().subscribe({next:function(t)
{t.type===PC.SYNC_ENGINE_SYNC_QUERIES_READY&&e(),n.next(t)},complete:function()
{e()},error:function(e){t(e)}});i&&r.push(i)}))];case 7:return d.sent(),[3,9];case
8:return u=d.sent(),n.error(u),t(),[2];case 9:return
r.push(this.mutationsProcessor.start().subscribe((function(e){var
t=e.modelDefinition,r=e.model,i=e.hasMore;return h.runningProcesses.add((function()
{return
lo(h,void 0,void 0,(function(){var e,o,s=this;return ho(this,(function(a)
{switch(a.label){case 0:return
e=this.userModelClasses[t.name],o=this.modelInstanceCreator(e,r),
[4,this.storage.runExclusive((function(e){return
s.modelMerger.merge(e,o,t)}))];case 1:return
a.sent(),n.next({type:PC.SYNC_ENGINE_OUTBOX_MUTATION_PROCESSED,data:
{model:e,element:o}}),n.next({type:PC.SYNC_ENGINE_OUTBOX_STATUS,data:{isEmpty:!
i}}),[2]}}))}))}),"mutation processor event")}))),NC||
r.push(a.subscribe((function(e){var t=po(e,3),n=(t[0],t[1]),r=t[2];return
h.runningProcesses.add((function(){return lo(h,void 0,void 0,(function(){var
e,t,i=this;return ho(this,(function(o){switch(o.label){case 0:return
e=this.userModelClasses[n.name],t=this.modelInstanceCreator(e,r),
[4,this.storage.runExclusive((function(e){return
i.modelMerger.merge(e,t,n)}))];case 1:return o.sent(),[2]}}))}))}),"subscription
dataSubsObservable event")}))),[3,11];case 10:o||
(this.online=o,n.next({type:PC.SYNC_ENGINE_NETWORK_STATUS,data:
{active:this.online}}),r.forEach((function(e){return
e.unsubscribe()})),r=[]),d.label=11;case 11:return e(),[2]}}))}))}),"datastore
connectivity
event")]}))}))}))})),this.storage.observe(null,null,FC).filter((function(e){var
t=e.model;return!
0===s.getModelDefinition(t).syncable})).subscribe({next:function(e){var
t=e.opType,r=e.model,o=e.element,a=e.condition;return lo(s,void 0,void 0,
(function(){var e=this;return ho(this,(function(s)
{return[2,this.runningProcesses.add((function(){return lo(e,void 0,void 0,
(function(){var e,s,c,u,l;return ho(this,(function(h){switch(h.label){case 0:return
e=this.schema.namespaces[this.namespaceResolver(r)],s=this.modelClasses.MutationEve
nt,c=this.getModelDefinition(r),u=function(e,t){return
e&&Array.isArray(e.predicates)?bA(e,TS(t)):{}}
(a,c),l=vA(e.relationships,this.getModelDefinition(r),t,r,o,u,s,this.modelInstanceC
reator),[4,this.outbox.enqueue(this.storage,l)];case 1:return
h.sent(),n.next({type:PC.SYNC_ENGINE_OUTBOX_MUTATION_ENQUEUED,data:
{model:r,element:o}}),n.next({type:PC.SYNC_ENGINE_OUTBOX_STATUS,data:{isEmpty:!
1}}),[4,i];case 2:return h.sent(),this.online&&this.mutationsProcessor.resume(),
[2]}}))}))}),"storage
event")]}))}))}}),n.next({type:PC.SYNC_ENGINE_STORAGE_SUBSCRIBED}),
[4,this.outbox.peek(this.storage)];case 4:return o=void
0===a.sent(),n.next({type:PC.SYNC_ENGINE_OUTBOX_STATUS,data:{isEmpty:o}}),
[4,i];case 5:return a.sent(),n.next({type:PC.SYNC_ENGINE_READY}),[2]}}))}))}),"sync
start")}))},e.prototype.getModelsMetadataWithNextFullSync=function(e){return
lo(this,void 0,void 0,(function(){var t,n=this;return ho(this,(function(r)
{switch(r.label){case 0:return t=Map.bind,[4,this.runningProcesses.add((function()
{return n.getModelsMetadata()}),"sync/index
getModelsMetadataWithNextFullSync")];case 1:return[2,new(t.apply(Map,[void
0,r.sent().map((function(t){var
r=t.namespace,i=t.model,o=t.lastSync,s=t.lastFullSync,a=t.fullSyncInterval,c=(t.las
tSyncPredicate,!s||s+a<e?0:o);return[n.schema.namespaces[r].models[i],
[r,c]]}))]))]}}))}))},e.prototype.syncQueriesObservable=function(){var
e=this;return this.online?new iy((function(t){var
n;e.runningProcesses.isOpen&&e.runningProcesses.add((function(r){return lo(e,void
0,void 0,(function(){var e,i,o,s=this;return ho(this,(function(a){switch(a.label)
{case 0:e=!1,i=function(){var i,a,c,u,l,h,d,f,p;return ho(this,(function(g)
{switch(g.label){case 0:return i=new WeakMap,
[4,o.getModelsMetadataWithNextFullSync(Date.now())];case 1:return a=g.sent(),c=new
Set(a.keys()),[4,new Promise((function(e,o){s.runningProcesses.isOpen||
e(),r.then((function(){return
e()})),n=s.syncQueriesProcessor.start(a).subscribe({next:function(r){var
o=r.namespace,a=r.modelDefinition,p=r.items,g=r.done,m=r.startedAt,v=r.isFullSync;r
eturn lo(s,void 0,void 0,(function(){var r,s,b,y,w,_,E=this;return ho(this,
(function(S){switch(S.label){case 0:return
r=this.userModelClasses[a.name],i.has(r)||(i.set(r,
{new:0,updated:0,deleted:0}),h=QE(),f=void 0===f?m:Math.max(f,m)),
[4,this.storage.runExclusive((function(e){return lo(E,void 0,void 0,(function(){var
t,n,o,s,c,u,l,h,d,f,g,m,v,b,y;return ho(this,(function(w){switch(w.label){case
0:return[4,this.outbox.getModelIds(e)];case
1:t=w.sent(),n=[],o=p.filter((function(e){var r=TA(a,e);return!t.has(r)||
(n.push(e),!1)})),s=[],w.label=2;case
2:w.trys.push([2,7,8,9]),c=fo(n),u=c.next(),w.label=3;case 3:return u.done?[3,6]:
(l=u.value,[4,this.modelMerger.merge(e,l,a)]);case 4:void 0!
==(h=w.sent())&&s.push([l,h]),w.label=5;case 5:return u=c.next(),[3,3];case
6:return[3,9];case 7:return d=w.sent(),b={error:d},[3,9];case 8:try{u&&!
u.done&&(y=c.return)&&y.call(c)}finally{if(b)throw b.error}return[7];case 9:return
g=(f=s.push).apply,m=[s],[4,this.modelMerger.mergePage(e,r,o,a)];case 10:return
g.apply(f,m.concat([go.apply(void 0,
[w.sent()])])),v=i.get(r),s.forEach((function(e){var t=po(e,2)[1];switch(t){case
oS.INSERT:v.new++;break;case oS.UPDATE:v.updated++;break;case oS.DELETE:v.deleted+
+;break;default:throw new Error("Invalid opType "+t)}})),[2]}}))}))}))];case
1:return S.sent(),g?(s=a.name,[4,this.getModelMetadata(o,s)]):[3,4];case 2:return
b=S.sent(),y=b.lastFullSync,w=b.fullSyncInterval,l=w,u=void 0===u?y:Math.max(u,v?
m:y),b=this.modelClasses.ModelMetadata.copyOf(b,(function(e)
{e.lastSync=m,e.lastFullSync=v?m:b.lastFullSync})),[4,this.storage.save(b,void
0,FC)];case 3:S.sent(),_=i.get(r),this.modelSyncedStatus.set(r,!
0),t.next({type:PC.SYNC_ENGINE_MODEL_SYNCED,data:
{model:r,isFullSync:v,isDeltaSync:!v,counts:_}}),c.delete(a),0===c.size&&(d=QE()-
h,e(),t.next({type:PC.SYNC_ENGINE_SYNC_QUERIES_READY}),n.unsubscribe()),S.label=4;c
ase 4:return[2]}}))}))},error:function(e)
{t.error(e)}}),t.next({type:PC.SYNC_ENGINE_SYNC_QUERIES_STARTED,data:
{models:Array.from(c).map((function(e){return e.name}))}})}))];case 2:return
g.sent(),p=u?u+l-(f+d):l-d,LC.debug("Next fullSync in "+p/1e3+" seconds. ("+new
Date(Date.now()+p)+")"),[4,o.runningProcesses.add((function(t){return lo(s,void
0,void 0,(function(){var n,r,i=this;return ho(this,(function(o){return r=new
Promise((function(e){n=e,setTimeout(n,p)})),t.then((function(){e=!
0,i.syncQueriesObservableStartSleeping(),n()})),this.unsleepSyncQueriesObservable=n
,this.syncQueriesObservableStartSleeping(),[2,r]}))}))}),"syncQueriesObservable
sleep")];case 3:return
g.sent(),o.unsleepSyncQueriesObservable=null,o.waitForSleepState=new
Promise((function(e){s.syncQueriesObservableStartSleeping=e})),
[2]}}))},o=this,a.label=1;case 1:return t.closed||e?[3,3]:[5,i()];case 2:return
a.sent(),[3,1];case 3:return[2]}}))}))}),"syncQueriesObservable
main")})):iy.of()},e.prototype.disconnectionHandler=function(){var e=this;return
function(t){oy.CONNECTION_CLOSED!==t&&oy.TIMEOUT_DISCONNECT!==t||
e.datastoreConnectivity.socketDisconnected()}},e.prototype.unsubscribeConnectivity=
function(){this.datastoreConnectivity.unsubscribe()},e.prototype.stop=function()
{return lo(this,void 0,void 0,(function(){return ho(this,(function(e)
{switch(e.label){case 0:return LC.debug("stopping sync
engine"),this.unsubscribeConnectivity(),this.stopDisruptionListener&&this.stopDisru
ptionListener(),[4,this.mutationsProcessor.stop()];case 1:return e.sent(),
[4,this.subscriptionsProcessor.stop()];case 2:return e.sent(),
[4,this.datastoreConnectivity.stop()];case 3:return e.sent(),
[4,this.syncQueriesProcessor.stop()];case 4:return e.sent(),
[4,this.runningProcesses.close()];case 5:return e.sent(),
[4,this.runningProcesses.open()];case 6:return e.sent(),LC.debug("sync engine
stopped and ready to restart"),[2]}}))}))},e.prototype.setupModels=function(e)
{return lo(this,void 0,void 0,(function(){var
t,n,r,i,o,s,a,c,u,l,h,d,f,p=this;return ho(this,(function(g){switch(g.label){case
0:t=e.fullSyncInterval,n=this.modelClasses.ModelMetadata,r=[],Object.values(this.sc
hema.namespaces).forEach((function(e){Object.values(e.models).filter((function(e)
{return e.syncable})).forEach((function(t){if(r.push([e.name,t]),e.name===FE){var
n=p.userModelClasses[t.name];p.modelSyncedStatus.set(n,!
1)}}))})),o=r.map((function(e){var r=po(e,2),o=r[0],s=r[1];return lo(p,void 0,void
0,(function(){var e,r,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label)
{case 0:return[4,this.getModelMetadata(o,s.name)];case 1:return
e=p.sent(),r=rA.getPredicates(this.syncPredicates.get(s),!1),a=r?
JSON.stringify(r):null,void 0!==e?[3,3]:
[4,this.storage.save(this.modelInstanceCreator(n,
{model:s.name,namespace:o,lastSync:null,fullSyncInterval:t,lastFullSync:null,lastSy
ncPredicate:a}),void 0,FC)];case 2:return l=po.apply(void 0,
[p.sent(),1]),h=po(l[0],1),i=h[0],[3,5];case 3:return c=e.lastSyncPredicate?
e.lastSyncPredicate:null,u=c!==a,[4,this.storage.save(n.copyOf(e,(function(e)
{e.fullSyncInterval=t,u&&(e.lastSync=null,e.lastFullSync=null,e.lastSyncPredicate=a
)})))];case 4:d=po.apply(void 0,[p.sent(),1]),f=po(d[0],1),i=f[0],p.label=5;case
5:return[2,i]}}))}))})),s={},g.label=1;case 1:return g.trys.push([1,6,7,8]),
[4,Promise.all(o)];case 2:a=fo.apply(void 0,[g.sent()]),c=a.next(),g.label=3;case
3:if(c.done)return[3,5];u=c.value,l=u.model,s[l]=u,g.label=4;case 4:return
c=a.next(),[3,3];case 5:return[3,8];case 6:return h=g.sent(),d={error:h},[3,8];case
7:try{c&&!c.done&&(f=a.return)&&f.call(a)}finally{if(d)throw d.error}return[7];case
8:return[2,s]}}))}))},e.prototype.getModelsMetadata=function(){return lo(this,void
0,void 0,(function(){var e;return ho(this,(function(t){switch(t.label){case
0:return e=this.modelClasses.ModelMetadata,[4,this.storage.query(e)];case
1:return[2,t.sent()]}}))}))},e.prototype.getModelMetadata=function(e,t){return
lo(this,void 0,void 0,(function(){var n,r;return ho(this,(function(i)
{switch(i.label){case 0:return
n=this.modelClasses.ModelMetadata,r=rA.createFromAST(this.schema.namespaces[jE].mod
els[n.name],{and:[{namespace:{eq:e}},{model:{eq:t}}]}),[4,this.storage.query(n,r,
{page:0,limit:1})];case 1:return[2,po.apply(void 0,[i.sent(),1])
[0]]}}))}))},e.prototype.getModelDefinition=function(e){var
t=this.namespaceResolver(e);return
this.schema.namespaces[t].models[e.name]},e.getNamespace=function()
{return{name:jE,relationships:{},enums:{OperationType:{name:"OperationType",values:
["CREATE","UPDATE","DELETE"]}},nonModels:{},models:{MutationEvent:
{name:"MutationEvent",pluralName:"MutationEvents",syncable:!1,fields:{id:
{name:"id",type:"ID",isRequired:!0,isArray:!1},model:
{name:"model",type:"String",isRequired:!0,isArray:!1},data:
{name:"data",type:"String",isRequired:!0,isArray:!1},modelId:
{name:"modelId",type:"String",isRequired:!0,isArray:!1},operation:
{name:"operation",type:{enum:"Operationtype"},isArray:!1,isRequired:!0},condition:
{name:"condition",type:"String",isArray:!1,isRequired:!0}}},ModelMetadata:
{name:"ModelMetadata",pluralName:"ModelsMetadata",syncable:!1,fields:{id:
{name:"id",type:"ID",isRequired:!0,isArray:!1},namespace:
{name:"namespace",type:"String",isRequired:!0,isArray:!1},model:
{name:"model",type:"String",isRequired:!0,isArray:!1},lastSync:
{name:"lastSync",type:"Int",isRequired:!1,isArray:!1},lastFullSync:
{name:"lastFullSync",type:"Int",isRequired:!1,isArray:!1},fullSyncInterval:
{name:"fullSyncInterval",type:"Int",isRequired:!0,isArray:!1},lastSyncPredicate:
{name:"lastSyncPredicate",type:"String",isRequired:!1,isArray:!
1}}}}}},e.prototype.startDisruptionListener=function(){var e=this;return
x.listen("api",(function(t)
{if("PubSub"===t.source&&t.payload.event===gy)switch(t.payload.data.connectionState
){case sy.ConnectionDisrupted:e.connectionDisrupted=!0;break;case
sy.Connected:e.connectionDisrupted&&e.scheduleSync(),e.connectionDisrupted=!
1}}))},e.prototype.scheduleSync=function(){var e=this;return
this.runningProcesses.isOpen&&this.runningProcesses.add((function(){return
e.waitForSleepState.then((function(){e.unsleepSyncQueriesObservable()}))}))},e}
(),UC=go(eA),HC=new Map,GC=function(e,t){var n=t||new WS;return
HC.set(n,e),n},zC=function(e){if(!HC.has(e))throw new Error("Invalid predicate.
Terminate your predicate with a valid condition (e.g., `p => p.field.eq('value')`)
or pass `Predicates.ALL`.");return
HC.get(e)},VC={and:"or",or:"and",not:"and",eq:"ne",ne:"eq",gt:"le",ge:"lt",lt:"ge",
le:"gt",contains:"notContains",notContains:"contains"},WC=function(){function
e(e,t,n){this.field=e,this.operator=t,this.operands=n,this.validate()}return
e.prototype.copy=function(t){return[new
e(this.field,this.operator,go(this.operands)),void 0]},e.prototype.toAST=function()
{var e,t;return(e={})[this.field]=((t={})[this.operator]="between"===this.operator?
[this.operands[0],this.operands[1]]:this.operands[0],t),e},e.prototype.negated=func
tion(t){return"between"===this.operator?new KC(t,void 0,void 0,"or",[new
e(this.field,"lt",[this.operands[0]]),new e(this.field,"gt",
[this.operands[1]])]):"beginsWith"===this.operator?new KC(t,void 0,void 0,"not",
[new e(this.field,"beginsWith",[this.operands[0]])]):new
e(this.field,VC[this.operator],this.operands)},e.prototype.fetch=function(e){return
lo(this,void 0,void 0,(function(){return ho(this,(function(e)
{return[2,Promise.reject("No implementation needed
[yet].")]}))}))},e.prototype.matches=function(e){return lo(this,void 0,void 0,
(function(){var t,n,r=this;return ho(this,(function(i)
{if(t=e[this.field],n={eq:function(){return t===r.operands[0]},ne:function(){return
t!==r.operands[0]},gt:function(){return t>r.operands[0]},ge:function(){return
t>=r.operands[0]},lt:function(){return t<r.operands[0]},le:function(){return
t<=r.operands[0]},contains:function(){return(null==t?void
0:t.indexOf(r.operands[0]))>-1},notContains:function(){return!t||-
1===t.indexOf(r.operands[0])},beginsWith:function(){return null==t?void
0:t.startsWith(r.operands[0])},between:function(){return
t>=r.operands[0]&&t<=r.operands[1]}}[this.operator])return[2,n()];throw new
Error("Invalid operator given:
"+this.operator)}))}))},e.prototype.validate=function(){var e=this,t=function(t)
{var n=1===t?"argument is":"arguments are";return function(){if(e.operands.length!
==t)return"Exactly "+t+" "+n+"
required."}},n={eq:t(1),ne:t(1),gt:t(1),ge:t(1),lt:t(1),le:t(1),contains:t(1),notCo
ntains:t(1),beginsWith:t(1),between:function(){return t(2)()||
(e.operands[0]>e.operands[1]?"The first argument must be less than or equal to the
second argument.":null)}}[this.operator];if(!n)throw new Error("Non-existent
operator: `"+this.operator+"()`");var r=n();if("string"==typeof r)throw new
Error("Incorrect usage of `"+this.operator+"()`: "+r)},e}(),qC=(jC=1,function()
{return"group_"+jC++}),KC=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!
1),this.model=e,this.field=t,this.relationshipType=n,this.operator=r,this.operands=
i,this.isOptimized=o,this.groupId=qC()}return e.prototype.copy=function(t){var
n=new e(this.model,this.field,this.relationshipType,this.operator,[]),r=t===this?
n:void 0;return this.operands.forEach((function(e){var
i=po(e.copy(t),2),o=i[0],s=i[1];n.operands.push(o),r=r||s})),
[n,r]},e.prototype.withFieldConditionsOnly=function(t){var n=this,r=t!
==("not"===this.operator);return new e(this.model,void 0,void 0,t?
VC[this.operator]:this.operator,this.operands.filter((function(e){return e
instanceof WC})).map((function(e){return r?
e.negated(n.model):e})))},e.prototype.optimized=function(t){var n=this;void
0===t&&(t=!0);var r=this.operands.map((function(t){return t instanceof e?
t.optimized("not"===n.operator):t}));if(!t&&["and","or"].includes(this.operator)&&!
this.field&&1===r.length){var i=r[0];if(!(i instanceof WC))return i;if("between"!
==i.operator)return i}return new
e(this.model,this.field,this.relationshipType,this.operator,r,!
0)},e.prototype.fetch=function(t,n,r){return void 0===n&&(n=[]),void 0===r&&(r=!
1),lo(this,void 0,void 0,(function(){var
i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A,C,O,x,I,P,D,k,R,M,N,L,F,j,B,U,H,G,z,V,W
,q,K,Y,$,Q,X,Z,J,ee,te=this;return ho(this,(function(ne){switch(ne.label){case
0:if(!this.isOptimized)return[2,this.optimized().fetch(t)];i=[],o=r?
VC[this.operator]:this.operator,s=r!
==("not"===this.operator),a=this.operands.filter((function(t){return t instanceof
e})),c=this.operands.filter((function(e){return e instanceof WC})),ne.label=1;case
1:ne.trys.push([1,10,11,12]),u=fo(a),l=u.next(),ne.label=2;case 2:return l.done?
[3,9]:[4,(h=l.value).fetch(t,go(n,[this.groupId]),s)];case
3:if(0===(d=ne.sent()).length)return"and"===o?[2,[]]:(i.push([]),[3,8]);if(!
h.field)return[3,7];if(!
(f=VA.from(this.model,h.field)))return[3,5];p=[];try{for(V=void
0,g=fo(d),m=g.next();!m.done;m=g.next())
{for(v=m.value,b=[],y=0;y<f.localJoinFields.length;y++)b.push(((q={})
[f.localJoinFields[y]]={eq:v[f.remoteJoinFields[y]]},q));p.push({and:b})}}catch(e)
{V={error:e}}finally{try{m&&!m.done&&(W=g.return)&&W.call(g)}finally{if(V)throw
V.error}}return S=rA.createFromAST(this.model.schema,{or:p}),_=(w=i).push,
[4,t.query(this.model.builder,S)];case 4:return _.apply(w,[ne.sent()]),[3,6];case
5:throw new Error("Missing field metadata.");case 6:return[3,8];case
7:i.push(d),ne.label=8;case 8:return l=u.next(),[3,2];case 9:return[3,12];case
10:return E=ne.sent(),G={error:E},[3,12];case 11:try{l&&!
l.done&&(z=u.return)&&z.call(u)}finally{if(G)throw G.error}return[7];case 12:return
c.length>0?(S=this.withFieldConditionsOnly(s).toStoragePredicate(),A=(T=i).push,
[4,t.query(this.model.builder,S)]):[3,14];case 13:return A.apply(T,[ne.sent()]),
[3,16];case 14:return 0!==c.length||0!==i.length?[3,16]:(O=(C=i).push,
[4,t.query(this.model.builder)]);case 15:O.apply(C,[ne.sent()]),ne.label=16;case
16:if(x=function(e){return JSON.stringify(te.model.pkField.map((function(t){return
e[t]})))},"and"===o){if(0===i.length)return[2,[]];try{for(P=fo(i),D=P.next();!
D.done;D=P.next())if(j=D.value,void 0===I)I=new Map(j.map((function(e)
{return[x(e),e]})));else{k=new Map(j.map((function(e)
{return[x(e),e]})));try{for($=void 0,R=fo(I.keys()),M=R.next();!
M.done;M=R.next())N=M.value,k.has(N)||I.delete(N)}catch(e)
{$={error:e}}finally{try{M&&!M.done&&(Q=R.return)&&Q.call(R)}finally{if($)throw
$.error}}}}catch(e){K={error:e}}finally{try{D&&!
D.done&&(Y=P.return)&&Y.call(P)}finally{if(K)throw K.error}}}else
if("or"===o||"not"===o){I=new Map;try{for(L=fo(i),F=L.next();!F.done;F=L.next())
{j=F.value;try{for(J=void 0,B=fo(j),U=B.next();!
U.done;U=B.next())H=U.value,I.set(x(H),H)}catch(e){J={error:e}}finally{try{U&&!
U.done&&(ee=B.return)&&ee.call(B)}finally{if(J)throw J.error}}}}catch(e)
{X={error:e}}finally{try{F&&!F.done&&(Z=L.return)&&Z.call(L)}finally{if(X)throw
X.error}}}return[2,Array.from((null==I?void 0:I.values())||
[])]}}))}))},e.prototype.matches=function(e,t){var n,r;return void 0===t&&(t=!
1),lo(this,void 0,void 0,(function(){var i,o,s,a,c,u;return ho(this,(function(l)
{switch(l.label){case 0:return!this.field||t?[3,2]:[4,e[this.field]];case 1:return
o=l.sent(),[3,3];case 2:o=e,l.label=3;case 3:if(!(i=o))return[2,!1];if("HAS_MANY"!
==this.relationshipType||"function"!=typeof
i[Symbol.asyncIterator])return[3,17];l.label=4;case
4:l.trys.push([4,10,11,16]),s=vo(i),l.label=5;case 5:return[4,s.next()];case
6:return(a=l.sent()).done?[3,9]:(c=a.value,[4,this.matches(c,!0)]);case
7:if(l.sent())return[2,!0];l.label=8;case 8:return[3,5];case 9:return[3,16];case
10:return u=l.sent(),n={error:u},[3,16];case 11:return
l.trys.push([11,,14,15]),a&&!a.done&&(r=s.return)?[4,r.call(s)]:[3,13];case
12:l.sent(),l.label=13;case 13:return[3,15];case 14:if(n)throw
n.error;return[7];case 15:return[7];case 16:return[2,!1];case 17:return"or"!
==this.operator?[3,18]:[2,eS(this.operands,(function(e){return
e.matches(i)}))];case 18:return"and"!==this.operator?[3,19]:[2,tS(this.operands,
(function(e){return e.matches(i)}))];case 19:if("not"!
==this.operator)return[3,21];if(1!==this.operands.length)throw new Error("Invalid
arguments! `not()` accepts exactly one predicate
expression.");return[4,this.operands[0].matches(i)];case 20:return[2,!
l.sent()];case 21:throw new Error("Invalid group
operator!")}}))}))},e.prototype.toAST=function(){var e;if(this.field)throw new
Error("Nested type conditions are not supported!");return(e={})
[this.operator]=this.operands.map((function(e){return
e.toAST()})),e},e.prototype.toStoragePredicate=function(){return
rA.createFromAST(this.model.schema,this.toAST())},e.prototype.toJSON=function()
{return co(co({},this),{model:this.model.schema.name})},e}();function YC(e,t,n,r,i)
{void 0===t&&(t=!0);var o=new KC(e,n,void 0,"and",[]),s=r&&i?r:o,a=r&&i?
i:o,c={};GC(s,c);var u=function(){var
n=po(s.copy(a),2),r=n[0],i=n[1];return{query:r,newTail:i,newLink:YC(e,t,void
0,r,i)}};["and","or"].forEach((function(r){c[r]=function(i){var
o=u(),s=o.query,a=o.newTail,c=i(YC(e,t));if(!Array.isArray(c))throw new
Error("Invalid predicate. `"+r+"` groups must return an array of child
conditions.");return null==a||a.operands.push(new KC(e,n,void
0,r,c.map((function(e){return zC(e)})))),GC(s)}})),c.not=function(r){var
i=u(),o=i.query,s=i.newTail;return null==s||s.operands.push(new KC(e,n,void
0,"not",[zC(r(YC(e,t)))])),GC(o)};var l=function(n){Object.defineProperty(c,n,
{enumerable:!0,get:function(){var r=e.schema.allFields[n];if(r.association){if(t)
{if("BELONGS_TO"===r.association.connectionType||"HAS_ONE"===r.association.connecti
onType||"HAS_MANY"===r.association.connectionType){var
i=r.type.modelConstructor;if(!i)throw new Error("Related model metadata is missing.
This is a bug! Please report it.");var o=po(s.copy(a),2),c=o[0],l=o[1],h=new
KC(i,n,r.association.connectionType,"and",[]);return l.operands.push(h),YC(i,t,void
0,c,h)}throw new Error("Related model definition doesn't have a typedef. This is a
bug! Please report it.")}throw new Error("Predication on releated models is not
supported in this context.")}return UC.reduce((function(e,t){var r;return
co(co({},e),((r={})[t]=function(){for(var e=[],r=0;r<arguments.length;r+
+)e[r]=arguments[r];var i=u(),o=i.query,s=i.newTail,a=e.map((function(e){return
void 0===e?null:e}));return null==s||s.operands.push(new WC(n,t,a)),GC(o)},r))}),
{})}})};for(var h in e.schema.allFields)l(h);return c}function $C(e){return YC(e,!
1)}KT(!0),function(){function e(t){if(!JS(t))return t;if(Array.isArray(t))return
t.map(e);if(oT(t))return new Map(Array.from(t.entries()).map((function(t)
{return[t[0],e(t[1])]})));if(sT(t))return new Set(Array.from(t).map(e));var
n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return
nT(t,FT)&&(n[FT]=t[FT]),n}function t(t){return ZS(t)?e(t):t}var n="add";!
function(e,t){GT[e]||(GT[e]=t)}("Patches",{$:function(t,r){return
r.forEach((function(r){for(var i=r.path,o=r.op,s=t,a=0;a<i.length-1;a++){var
c=tT(s),u=""+i[a];0!==c&&1!==c||"__proto__"!==u&&"constructor"!==u||
XS(24),"function"==typeof s&&"prototype"===u&&XS(24),"object"!
=typeof(s=rT(s,u))&&XS(15,i.join("/"))}var l=tT(s),h=e(r.value),d=i[i.length-
1];switch(o){case"replace":switch(l){case 2:return s.set(d,h);case
3:XS(16);default:return s[d]=h}case n:switch(l){case 1:return s.splice(d,0,h);case
2:return s.set(d,h);case 3:return s.add(h);default:return
s[d]=h}case"remove":switch(l){case 1:return s.splice(d,1);case 2:return
s.delete(d);case 3:return s.delete(r.value);default:return delete
s[d]}default:XS(17,o)}})),t},R:function(e,r,i,o){switch(e.i){case 0:case 4:case
2:return function(e,r,i,o){var s=e.t,a=e.o;eT(e.D,(function(e,c){var
u=rT(s,e),l=rT(a,e),h=c?nT(s,e)?"replace":n:"remove";if(u!==l||"replace"!==h){var
d=r.concat(e);i.push("remove"===h?{op:h,path:d}:
{op:h,path:d,value:l}),o.push(h===n?{op:"remove",path:d}:"remove"===h?
{op:n,path:d,value:t(u)}:{op:"replace",path:d,value:t(u)})}}))}(e,r,i,o);case
5:case 1:return function(e,r,i,o){var s=e.t,a=e.D,c=e.o;if(c.length<s.length){var
u=[c,s];s=u[0],c=u[1];var l=[o,i];i=l[0],o=l[1]}for(var h=0;h<s.length;h+
+)if(a[h]&&c[h]!==s[h]){var
d=r.concat([h]);i.push({op:"replace",path:d,value:t(c[h])}),o.push({op:"replace",pa
th:d,value:t(s[h])})}for(var f=s.length;f<c.length;f++){var
p=r.concat([f]);i.push({op:n,path:p,value:t(c[f])})}s.length<c.length&&o.push({op:"
replace",path:r.concat(["length"]),value:s.length})}(e,r,i,o);case 3:return
function(e,t,r,i){var o=e.t,s=e.o,a=0;o.forEach((function(e){if(!s.has(e)){var
o=t.concat([a]);r.push({op:"remove",path:o,value:e}),i.unshift({op:n,path:o,value:e
})}a++})),a=0,s.forEach((function(e){if(!o.has(e)){var
s=t.concat([a]);r.push({op:n,path:s,value:e}),i.unshift({op:"remove",path:s,value:e
})}a++}))}(e,r,i,o)}},M:function(e,t,n,r){n.push({op:"replace",path:
[],value:t===LT?void 0:t}),r.push({op:"replace",path:[],value:e.t})}})}();var
QC,XC,ZC,JC,eO,tO=new
h("DataStore"),nO=($E(Date.now()),We().isNode),rO="schemaVersion",iO=new
WeakMap,oO=new WeakMap,sO=function(e){var t=iO.get(e);return t?
QC.namespaces[t].models[e.name]:void 0},aO=function(e){return
zE(e)&&iO.has(e)},cO=function(e){var t=iO.get(e);if(!t)throw new Error("Namespace
Resolver for '"+e.name+"' not found! This is probably a bug in
'@amplify-js/datastore'.");return t},uO=function(e){if(!e)throw new Error("Missing
modelConstructor");var t=sO(e);if(!t)throw new Error("Missing modelSchema");var
n=TS(t);if(!n)throw new Error("Could not determine PK");return
YC({builder:e,schema:t,pkField:n})};new WeakMap,function(e)
{e.Detached="Detached",e.DataStore="DataStore",e.API="API"}(eO||(eO={}));var lO=new
WeakMap;function hO(e,t){return Array.isArray(e)?e.map((function(e){return
hO(e,t)})):e&&lO.set(e,t),e}var dO=function(){var e="Schema is not initialized.
DataStore will not function as expected. This could happen if you have multiple
versions of DataStore installed. Please see
https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js/#check-for-
duplicate-versions";throw tO.error(e),new Error(e)},fO=new WeakSet;function pO(e,t)
{return fO.add(t),new e(t)}var gO,mO,vO,bO=new WeakMap;function yO(e)
{return"string"==typeof e}function wO(e){var
t=e.localModel,n=e.modelConstructor,r=e.remoteModel._version;return
pO(n,co(co({},t),{_version:r}))}function _O(e){tO.warn(e)}function EO(e,t){var
n;switch(e){case LE:n=JC[t];break;case FE:n=ZC[t];break;case jE:n=XC[t];break;case
BE:n=undefined[t];break;default:throw new Error("Invalid namespace:
"+e)}if(aO(n))return n;var r="Model name is not valid for namespace. modelName:
"+t+", namespace: "+e;throw tO.error(r),new Error(r)}function SO(e,t){return
lo(this,void 0,void 0,(function(){var n,r,i=this;return ho(this,(function(o)
{switch(o.label){case 0:return n=JC.Setting,r=QC.namespaces[LE].models.Setting,
[4,e.runExclusive((function(e){return lo(i,void 0,void 0,(function(){var i,o;return
ho(this,(function(s){switch(s.label){case 0:return[4,e.query(n,rA.createFromAST(r,
{and:{key:{eq:rO}}}),{page:0,limit:1})];case 1:return i=po.apply(void 0,
[s.sent(),1]),void 0===(o=i[0])||void 0===o.value?[3,4]:JSON.parse(o.value)===t?
[3,3]:[4,e.clear(!1)];case 2:s.sent(),s.label=3;case 3:return[3,6];case
4:return[4,e.save(pO(n,{key:rO,value:JSON.stringify(t)}))];case
5:s.sent(),s.label=6;case 6:return[2]}}))}))}))];case 1:return o.sent(),
[2]}}))}))}Rr((function(){return null!==vO&&vO.apply(this,arguments)||
this}),vO=Promise),function(){function e(e)
{this.values=e}e.prototype[Symbol.asyncIterator]=function(){var
e,t=this,n=0;return{next:function(){return lo(t,void 0,void 0,(function(){var
t;return ho(this,(function(r){switch(r.label){case 0:return e?[3,2]:
[4,this.values];case 1:e=r.sent(),r.label=2;case 2:return n<e.length?
(t={value:e[n],done:!1},n++,[2,t]):[2,{value:null,done:!
0}]}}))}))}}},e.prototype.toArray=function(e){var t,n,r=(void 0===e?
{}:e).max,i=void 0===r?Number.MAX_SAFE_INTEGER:r;return lo(this,void 0,void 0,
(function(){var e,r,o,s,a,c;return ho(this,(function(u){switch(u.label){case
0:e=[],r=0,u.label=1;case 1:u.trys.push([1,6,7,12]),o=vo(this),u.label=2;case
2:return[4,o.next()];case 3:if((s=u.sent()).done)return[3,5];if(a=s.value,!
(r<i))return[3,5];e.push(a),r++,u.label=4;case 4:return[3,2];case
5:return[3,12];case 6:return c=u.sent(),t={error:c},[3,12];case 7:return
u.trys.push([7,,10,11]),s&&!s.done&&(n=o.return)?[4,n.call(o)]:[3,9];case
8:u.sent(),u.label=9;case 9:return[3,11];case 10:if(t)throw t.error;return[7];case
11:return[7];case 12:return[2,e]}}))}))}}(),function(e){e.NotRunning="Not
Running",e.Starting="Starting",e.Running="Running",e.Stopping="Stopping",e.Clearing
="Clearing"}(mO||(mO={}));var TO=function(){function e(){var
e=this;this.Auth=Gp,this.InternalAPI=hE,this.Cache=W,this.amplifyConfig={},this.syn
cPredicates=new
WeakMap,this.amplifyContext={Auth:this.Auth,InternalAPI:this.InternalAPI,Cache:this
.Cache},this.runningProcesses=new $S,this.state=mO.NotRunning,this.start=function()
{return lo(e,void 0,void 0,(function(){var e=this;return ho(this,(function(t)
{return[2,this.runningProcesses.add((function(){return lo(e,void 0,void 0,
(function(){var e,t,n,r=this;return ho(this,(function(i){switch(i.label){case
0:return this.state=mO.Starting,void 0!==this.initialized?[3,1]:(tO.debug("Starting
DataStore"),this.initialized=new Promise((function(e,t)
{r.initResolve=e,r.initReject=t})),[3,3]);case 1:return[4,this.initialized];case
2:return i.sent(),[2];case 3:return this.storage=new
aC(QC,cO,EO,pO,this.storageAdapter,this.sessionId),[4,this.storage.init()];case
4:return i.sent(),dO(),[4,SO(this.storage,QC.version)];case 5:return i.sent(),
(e=this.amplifyConfig.aws_appsync_graphqlEndpoint)?(tO.debug("GraphQL endpoint
available",e),t=this,[4,this.processSyncExpressions()]):[3,7];case 6:return
t.syncPredicates=i.sent(),this.sync=new
BC(QC,cO,XC,ZC,this.storage,pO,this.conflictHandler,this.errorHandler,this.syncPred
icates,this.amplifyConfig,this.authModeStrategy,this.amplifyContext,this.connectivi
tyMonitor),n=1e3*this.fullSyncInterval*60,gO=this.sync.start({fullSyncInterval:n}).
subscribe({next:function(e){var t=e.type,n=e.data;t===(nO?
PC.SYNC_ENGINE_SYNC_QUERIES_READY:PC.SYNC_ENGINE_STORAGE_SUBSCRIBED)&&r.initResolve
(),x.dispatch("datastore",{event:t,data:n})},error:function(e){tO.warn("Sync
error",e),r.initReject()}}),[3,8];case 7:tO.warn("Data won't be synchronized. No
GraphQL endpoint configured. Did you forget `Amplify.configure(awsconfig)`?",
{config:this.amplifyConfig}),this.initResolve(),i.label=8;case
8:return[4,this.initialized];case 9:return i.sent(),this.state=mO.Running,
[2]}}))}))}),"datastore
start").catch(this.handleAddProcError("DataStore.start()"))]}))}))},this.query=func
tion(t,n,r){return lo(e,void 0,void 0,(function(){var e=this;return ho(this,
(function(i){return[2,this.runningProcesses.add((function(){return lo(e,void 0,void
0,(function(){var e,i,o,s,a,c,u,l,h;return ho(this,(function(d){switch(d.label)
{case 0:return[4,this.start()];case 1:if(d.sent(),!this.storage)throw new Error("No
storage to query");if(!aO(t))throw a="Constructor is not for a valid
model",tO.error(a,{modelConstructor:t}),new Error(a);if("string"==typeof n&&void 0!
==r&&tO.warn("Pagination is ignored when querying by id"),!(i=sO(t)))throw new
Error("Invalid model definition
provided!");if(o=this.processPagination(i,r),s=TS(i),!
yO(n))return[3,3];if(s.length>1)throw a="Models with composite primary keys cannot
be queried by a single key value. Use object literal syntax for composite keys
instead: https://docs.amplify.aws/lib/datastore/advanced-workflows/q/platform/js/
#querying-records-with-custom-primary-keys",tO.error(a,{keyFields:s}),new
Error(a);return u=rA.createFromFlatEqualities(i,((l={})[s[0]]=n,l)),
[4,this.storage.query(t,u,o)];case 2:return e=d.sent(),[3,9];case 3:return jS(n,i)?
(u=rA.createForPk(i,n),[4,this.storage.query(t,u,o)]):[3,5];case 4:return
e=d.sent(),[3,9];case 5:return n&&!ZT(n)?[3,7]:[4,null===(h=this.storage)||void
0===h?void 0:h.query(t,void 0,o)];case 6:return e=d.sent(),[3,9];case 7:return
c=YC({builder:t,schema:i,pkField:TS(i)}),[4,(u=zC(n(c))).fetch(this.storage)];case
8:e=JE(e=d.sent(),o),d.label=9;case 9:return[2,hO(yO(n)||jS(n,i)?
e[0]:e,eO.DataStore)]}}))}))}),"datastore
query").catch(this.handleAddProcError("DataStore.query()"))]}))}))},this.save=funct
ion(t,n){return lo(e,void 0,void 0,(function(){var e=this;return ho(this,
(function(r){return[2,this.runningProcesses.add((function(){return lo(e,void 0,void
0,(function(){var e,r,i,o,s,a,c,u,l=this;return ho(this,(function(h)
{switch(h.label){case 0:return[4,this.start()];case 1:if(h.sent(),!
this.storage)throw new Error("No storage to save to");if(e=oO.get(t),r=bO.has(t)?
[bO.get(t),{}]:void 0,i=e||r,o=t?t.constructor:void 0,!aO(o))throw s="Object is not
an instance of a valid model",tO.error(s,{model:t}),new Error(s);if(!
(a=sO(o)))throw new Error("Model Definition could not be found for model");return
c={builder:o,schema:a,pkField:TS(a)},[4,this.storage.runExclusive((function(e)
{return lo(l,void 0,void 0,(function(){var n,r,i,o,s,u,l,h,d;return ho(this,
(function(f){switch(f.label){case 0:n=VA.allFrom(c).filter((function(e)
{return"BELONGS_TO"===e.type})),f.label=1;case
1:f.trys.push([1,6,7,8]),r=fo(n),i=r.next(),f.label=2;case 2:return i.done?[3,5]:
(o=i.value,null===(s=o.createRemoteQueryObject(t))?[3,4]:
[4,e.query(o.remoteModelConstructor,rA.createFromFlatEqualities(o.remoteDefinition,
s))]);case 3:if(0===f.sent().length)throw new Error(["Data integrity error. You
tried to save a "+a.name+" ("+JSON.stringify(t)+")",'but the instance assigned to
the "'+o.field+'" property',"does not exist in the local database. If you're trying
to create the related",'"'+(null===(d=o.remoteDefinition)||void 0===d?void
0:d.name)+'", you must save it independently first.'].join(" "));f.label=4;case
4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return u=f.sent(),l={error:u},
[3,8];case 7:try{i&&!i.done&&(h=r.return)&&h.call(r)}finally{if(l)throw
l.error}return[7];case 8:return[2]}}))}))}))];case 2:return h.sent(),u=n?
zC(n($C(c))).toStoragePredicate():void 0,[4,this.storage.runExclusive((function(e)
{return lo(l,void 0,void 0,(function(){return ho(this,(function(n){switch(n.label)
{case 0:return[4,e.save(t,u,void 0,i)];case 1:return n.sent(),
[2,e.query(o,rA.createForPk(a,t))]}}))}))}))];case 3:return[2,hO(po.apply(void 0,
[h.sent(),1])[0],eO.DataStore)]}}))}))}),"datastore
save").catch(this.handleAddProcError("DataStore.save()"))]}))}))},this.setConflictH
andler=function(t){var n=t.DataStore;return n&&n.conflictHandler?
n.conflictHandler:e.conflictHandler===wO&&t.conflictHandler?
t.conflictHandler:e.conflictHandler||wO},this.setErrorHandler=function(t){var
n=t.DataStore;return n&&n.errorHandler?
n.errorHandler:e.errorHandler===_O&&t.errorHandler?t.errorHandler:e.errorHandler||
_O},this.delete=function(t,n){return lo(e,void 0,void 0,(function(){var
e=this;return ho(this,(function(r){return[2,this.runningProcesses.add((function()
{return lo(e,void 0,void 0,(function(){var e,r,i,o,s,a,c,u,l;return ho(this,
(function(h){switch(h.label){case 0:return[4,this.start()];case 1:if(h.sent(),!
this.storage)throw new Error("No storage to delete from");if(!t)throw c="Model or
Model Constructor required",tO.error(c,{modelOrConstructor:t}),new Error(c);if(!
aO(t))return[3,3];if(o=t,!n)throw c="Id to delete or criteria required. Do you want
to delete all? Pass Predicates.ALL",tO.error(c,{identifierOrCriteria:n}),new
Error(c);if(!(s=sO(o)))throw new Error("Could not find model definition for
modelConstructor.");if("string"==typeof n){if((r=TS(s)).length>1)throw c="Models
with composite primary keys cannot be deleted by a single key value, unless using a
predicate. Use object literal syntax for composite keys instead:
https://docs.amplify.aws/lib/datastore/advanced-workflows/q/platform/js/#querying-
records-with-custom-primary-keys",tO.error(c,{keyFields:r}),new
Error(c);e=rA.createFromFlatEqualities(s,((l={})[r[0]]=n,l))}else if(!(e=jS(n,s)?
rA.createForPk(s,n):zC(n($C({builder:o,schema:s,pkField:TS(s)}))).toStoragePredicat
e())||!rA.isValidPredicate(e))throw c="Criteria required. Do you want to delete
all? Pass Predicates.ALL",tO.error(c,{condition:e}),new
Error(c);return[4,this.storage.delete(o,e)];case 2:return[2,hO(po.apply(void 0,
[h.sent(),1])[0],eO.DataStore)];case 3:if(i=t,o=Object.getPrototypeOf(i||
{}).constructor,!aO(o))throw c="Object is not an instance of a valid
model",tO.error(c,{model:i}),new Error(c);if(!(s=sO(o)))throw new Error("Could not
find model definition for modelConstructor.");if(a=rA.createForPk(s,i),n)
{if("function"!=typeof n)throw c="Invalid criteria",tO.error(c,
{identifierOrCriteria:n}),new
Error(c);e=zC(n($C({builder:o,schema:s,pkField:TS(s)}))).toStoragePredicate()}else
e=a;return[4,this.storage.delete(i,e)];case 4:return u=po.apply(void 0,
[h.sent(),1]),[2,hO(po(u[0],1)[0],eO.DataStore)]}}))}))}),"datastore
delete").catch(this.handleAddProcError("DataStore.delete()"))]}))}))},this.observe=
function(t,n){var r,i=t&&aO(t)?t:void 0;if(t&&void 0===i){var
o=t,s=o&&Object.getPrototypeOf(o).constructor;if(aO(s))return
n&&tO.warn("idOrCriteria is ignored when using a model instance",
{model:o,identifierOrCriteria:n}),e.observe(s,o.id);var a="The model is not an
instance of a PersistentModelConstructor";throw tO.error(a,{model:o}),new
Error(a)}if(n&&i&&jS(n,sO(i)))throw a="Object literal syntax cannot be used with
observe. Use a predicate instead: https://docs.amplify.aws/lib/datastore/data-
access/q/platform/js/#predicates",tO.error(a,{objectLiteral:n}),new
Error(a);if(void 0!==n&&void 0===i)throw a="Cannot provide criteria without a
modelConstructor",tO.error(a,n),new Error(a);if(i&&!aO(i))throw a="Constructor is
not for a valid model",tO.error(a,{modelConstructor:i}),new Error(a);return
i&&"string"==typeof n?r=zC(function(e){return e.id.eq(n)}
(uO(i))):i&&"function"==typeof n&&(r=zC(n(uO(i)))),new iy((function(t){var n;return
e.runningProcesses.add((function(){return lo(e,void 0,void 0,(function(){var
e=this;return ho(this,(function(o){switch(o.label){case
0:return[4,this.start()];case 1:return
o.sent(),n=this.storage.observe(i).filter((function(e){var t=e.model;return
cO(t)===FE})).subscribe({next:function(n){return
e.runningProcesses.isOpen&&e.runningProcesses.add((function(){return lo(e,void
0,void 0,(function(){var e,i,o,s,a,c;return ho(this,(function(u){switch(u.label)
{case 0:return e=n,"DELETE"===n.opType?[3,2]:(i=sO(n.model),o=TS(i),s=function(e,t)
{var n={};return t.forEach((function(t){return n[t]=e[t]})),n}(n.element,o),
[4,this.query(n.model,s)]);case 1:a=u.sent(),e=co(co({},e),
{element:a}),u.label=2;case 2:return(c=!r)?[3,4]:[4,r.matches(e.element)];case
3:c=u.sent(),u.label=4;case 4:return c&&t.next(e),[2]}}))}))}),"datastore observe
message handler")},error:function(e){return t.error(e)},complete:function(){return
t.complete()}}),[2]}}))}))}),"datastore observe observable
initialization").catch(e.handleAddProcError("DataStore.observe()")).catch((function
(e){t.error(e)})),e.runningProcesses.addCleaner((function(){return lo(e,void 0,void
0,(function(){return ho(this,(function(e){return n&&n.unsubscribe(),
[2]}))}))}),"DataStore.observe() cleanup")}))},this.observeQuery=function(t,n,r)
{return new iy((function(i){var o,s,a=new Map,c=new Map,u=[],l=function(){var
e=p();g(e)},h=new ES({callback:l,errorHandler:i.error,maxInterval:2e3}),d=(r||
{}).sort,f=d?{sort:d}:void 0;if(!sO(t))throw new Error("Could not find model
definition.");t&&"function"==typeof n?s=zC(n(uO(t))):ZT(n)&&(s=void
0),e.runningProcesses.add((function(){return lo(e,void 0,void 0,(function(){var
e,r=this;return ho(this,(function(d){switch(d.label){case 0:return
d.trys.push([0,2,,3]),[4,this.query(t,n,f)];case 1:return
d.sent().forEach((function(e){var
n=TA(sO(t),e);a.set(n,e)})),o=this.observe(t).subscribe((function(e){var
t=e.element,n=e.model,i=e.opType;return
r.runningProcesses.isOpen&&r.runningProcesses.add((function(){return lo(r,void
0,void 0,(function(){var e,r,o,l,d,f;return ho(this,(function(p){switch(p.label)
{case 0:return e=sO(n),r=TA(e,t),(o=s)?[4,s.matches(t)]:[3,2];case 1:o=!
p.sent(),p.label=2;case 2:if(o){if("UPDATE"!==i||!a.has(r)&&!
c.has(r))return[2];u.push(r)}return"DELETE"===i?u.push(r):c.set(r,t),l=null!
==(f=null===(d=this.sync)||void 0===d?void 0:d.getModelSyncedStatus(n))&&void 0!
==f&&f,(c.size-u.length>=this.syncPageSize||l)&&h.resolve(),h.start(),
[2]}}))}))}),"handle observeQuery observed
event")})),l(),[3,3];case 2:return e=d.sent(),i.error(e),[3,3];case
3:return[2]}}))}))}),"datastore observequery
startup").catch(e.handleAddProcError("DataStore.observeQuery()")).catch((function(e
){i.error(e)}));var p=function(){var n,i,o=null!==(i=null===(n=e.sync)||void 0===n?
void 0:n.getModelSyncedStatus(t))&&void 0!
==i&&i,s=go(Array.from(a.values()),Array.from(c.values()));a.clear(),s.forEach((fun
ction(e){var n=TA(sO(t),e);a.set(n,e)})),u.forEach((function(e){return
a.delete(e)}));var l=Array.from(a.values());return(null==r?void 0:r.sort)&&m(l),
{items:l,isSynced:o}},g=function(e){i.next(e),c.clear(),u=[]},m=function(n){var
i=sO(t),o=e.processPagination(i,r),s=kE.getPredicates(o.sort);if(s.length){var
a=XE(s);n.sort(a)}},v=function(e){var
n,r=e.payload,i=r.event,o=r.data;i===PC.SYNC_ENGINE_MODEL_SYNCED&&(null===(n=null==
o?void 0:o.model)||void 0===n?void
0:n.name)===t.name&&(l(),x.remove("datastore",v))};return
x.listen("datastore",v),e.runningProcesses.addCleaner((function(){return lo(e,void
0,void 0,(function(){return ho(this,(function(e){return o&&o.unsubscribe(),
[2]}))}))}),"datastore observequery cleaner")}))},this.configure=function(t){void
0===t&&(t={}),e.amplifyContext.Auth=e.Auth,e.amplifyContext.InternalAPI=e.InternalA
PI,e.amplifyContext.Cache=e.Cache;var
n,r=t.DataStore,i=t.authModeStrategyType,o=(t.conflictHandler,t.errorHandler,t.maxR
ecordsToSync),s=t.syncPageSize,a=t.fullSyncInterval,c=t.syncExpressions,u=t.authPro
viders,l=t.storageAdapter,h=uo(t,
["DataStore","authModeStrategyType","conflictHandler","errorHandler","maxRecordsToS
ync","syncPageSize","fullSyncInterval","syncExpressions","authProviders","storageAd
apter"]);switch(e.amplifyConfig=co(co({},h),e.amplifyConfig),e.conflictHandler=e.se
tConflictHandler(t),e.errorHandler=e.setErrorHandler(t),r&&r.authModeStrategyType||
i||cS.DEFAULT){case
cS.MULTI_AUTH:e.authModeStrategy=(n=e.amplifyContext,function(e){var
t=e.schema,r=e.modelName;return lo(void 0,void 0,void 0,(function(){var
e,i,o,s,a;return ho(this,(function(c){switch(c.label){case 0:n.Auth=n.Auth||
Gp,c.label=1;case 1:return c.trys.push([1,3,,4]),
[4,n.Auth.currentAuthenticatedUser()];case 2:return e=c.sent(),[3,4];case 3:return
c.sent(),[3,4];case
4:return(i=t.namespaces.user.models[r].attributes)&&(o=i.find((function(e)
{return"auth"===e.type})),null===(a=null==o?void 0:o.properties)||void 0===a?void
0:a.rules)?
(u=o.properties.rules,l=[nS.CUSTOM,nS.OWNER,nS.GROUPS,nS.PRIVATE,nS.PUBLIC],h=[rS.F
UNCTION,rS.USER_POOLS,rS.OIDC,rS.IAM,rS.API_KEY],s=go(u).sort((function(e,t){return
e.allow===t.allow?h.indexOf(YT(e))-h.indexOf(YT(t)):l.indexOf(e.allow)-
l.indexOf(t.allow)})),[2,$T({currentUser:e,rules:s})]):[2,[]]}var
u,l,h}))}))});break;case
cS.DEFAULT:default:e.authModeStrategy=QT}e.amplifyConfig.authProviders=r&&r.authPro
viders||u,e.syncExpressions=r&&r.syncExpressions||c||
e.syncExpressions,e.maxRecordsToSync=r&&r.maxRecordsToSync||o||e.maxRecordsToSync||
1e4,e.amplifyConfig.maxRecordsToSync=e.maxRecordsToSync,e.syncPageSize=r&&r.syncPag
eSize||s||e.syncPageSize||
1e3,e.amplifyConfig.syncPageSize=e.syncPageSize,e.fullSyncInterval=r&&r.fullSyncInt
erval||a||e.fullSyncInterval||1440,e.storageAdapter=r&&r.storageAdapter||l||
e.storageAdapter||void 0,e.sessionId=e.retrieveSessionId()}}return
e.prototype.getModuleName=function()
{return"DataStore"},e.prototype.handleAddProcError=function(e){var t=this;return
function(n){throw n.message.startsWith("BackgroundManagerNotOpenError")?new
Error(["DataStoreStateError: Tried to execute `"+e+'` while DataStore was
"'+t.state+'".','This can only be done while DataStore is "Started" or "Stopped".
To remedy:',"Ensure all calls to `stop()` and `clear()` have completed first.","If
this is not possible, retry the operation until it succeeds."].join("\
n")):n}},e.prototype.clear=function(){return lo(this,void 0,void 0,(function()
{return ho(this,(function(e){switch(e.label){case 0:return
dO(),this.state=mO.Clearing,[4,this.runningProcesses.close()];case 1:return
e.sent(),void 0!==this.storage?[3,3]:(this.storage=new
aC(QC,cO,EO,pO,this.storageAdapter,this.sessionId),[4,this.storage.init()]);case
2:e.sent(),e.label=3;case 3:return gO&&!gO.closed&&gO.unsubscribe(),this.sync?
[4,this.sync.stop()]:[3,5];case 4:e.sent(),e.label=5;case
5:return[4,this.storage.clear()];case 6:return e.sent(),this.initialized=void
0,this.storage=void 0,this.sync=void 0,this.syncPredicates=new WeakMap,
[4,this.runningProcesses.open()];case 7:return e.sent(),this.state=mO.NotRunning,
[2]}}))}))},e.prototype.stop=function(){return lo(this,void 0,void 0,(function()
{return ho(this,(function(e){switch(e.label){case 0:return this.state=mO.Stopping,
[4,this.runningProcesses.close()];case 1:return e.sent(),gO&&!
gO.closed&&gO.unsubscribe(),this.sync?[4,this.sync.stop()]:[3,3];case
2:e.sent(),e.label=3;case 3:return this.initialized=void 0,this.sync=void 0,
[4,this.runningProcesses.open()];case 4:return e.sent(),this.state=mO.NotRunning,
[2]}}))}))},e.prototype.processPagination=function(e,t){var n,r=t||
{},i=r.limit,o=r.page,s=r.sort;if(void 0!==i||void 0!==o||void 0!==s){if(void 0!
==o&&void 0===i)throw new Error("Limit is required when requesting a page");if(void
0!==o){if("number"!=typeof o)throw new Error("Page should be a
number");if(o<0)throw new Error("Page can't be negative")}if(void 0!==i)
{if("number"!=typeof i)throw new Error("Limit should be a number");if(i<0)throw new
Error("Limit can't be negative")}return s&&(n=kE.createFromExisting(e,s)),
{limit:i,page:o,sort:n}}},e.prototype.processSyncExpressions=function(){return
lo(this,void 0,void 0,(function(){var e,t=this;return ho(this,(function(n)
{switch(n.label){case 0:return this.syncExpressions&&this.syncExpressions.length?
[4,Promise.all(this.syncExpressions.map((function(e){return lo(t,void 0,void 0,
(function(){var t,n,r,i,o,s;return ho(this,(function(a){switch(a.label){case
0:return[4,e];case 1:return
t=a.sent(),n=t.modelConstructor,r=t.conditionProducer,i=sO(n),
[4,this.unwrapPromise(r)];case 2:return ZT(o=a.sent())?[2,[i,null]]:
(s=zC(o($C({builder:n,schema:i,pkField:TS(i)}))).toStoragePredicate(),[2,
[i,s]])}}))}))})))]:[2,new WeakMap];case 1:return e=n.sent(),
[2,this.weakMapFromEntries(e)]}}))}))},e.prototype.unwrapPromise=function(e){return
lo(this,void 0,void 0,(function(){var t;return ho(this,(function(n){switch(n.label)
{case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()||e];case
2:if((t=n.sent())instanceof TypeError)return[2,e];throw t;case
3:return[2]}}))}))},e.prototype.weakMapFromEntries=function(e){return
e.reduce((function(e,t){var n=po(t,2),r=n[0],i=n[1];if(e.has(r)){var
o=r.name;return tO.warn("You can only utilize one Sync Expression per model.\n
Subsequent sync expressions for the "+o+" model will be ignored."),e}return
i&&e.set(r,i),e}),new WeakMap)},e.prototype.retrieveSessionId=function(){try{var
e=sessionStorage.getItem("datastoreSessionId");if(e)return
e+"-"+po(this.amplifyConfig.aws_appsync_graphqlEndpoint.split("/")[2].split("."),1)
[0]}catch(e){}},e}(),AO=new TO;p.register(AO);var CO=new(function(e){function t()
{return null!==e&&e.apply(this,arguments)||this}return
Jb(t,e),t.prototype.getModuleName=function()
{return"PubSub"},t.prototype.subscribe=function(t,n){return
e.prototype.subscribe.call(this,t,n)},t}(Ry));p.register(CO);var OO=function(e,t)
{return OO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t)
{e.__proto__=t}||function(e,t){for(var n in
t)t.hasOwnProperty(n)&&(e[n]=t[n])},OO(e,t)},xO=function(){return
xO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},xO.apply(this,arguments)};function IO(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function PO(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}var DO,kO=new
h("AbstractInteractionsProvider"),RO=function(){function e(e){void
0===e&&(e={}),this._config=e}return e.prototype.configure=function(e){return void
0===e&&(e={}),this._config=xO(xO({},this._config),e),kO.debug("configure
"+this.getProviderName(),this._config),this.options},e.prototype.getCategory=functi
on(){return"Interactions"},Object.defineProperty(e.prototype,"options",
{get:function(){return xO({},this._config)},enumerable:!0,configurable:!0}),e}();!
function(e){e.ENV="env",e.CONFIG="shared config entry"}(DO||(DO={}));var
MO,NO=function(e){if("function"==typeof e)return e;var t=Promise.resolve(e);return
function(){return t}},LO=function(e){return"string"==typeof
e&&(e.startsWith("fips-")||e.endsWith("-fips"))},FO=function(e){return LO(e)?
["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|
prod-)?|-fips/,""):e},jO=function(e,t){var
n;void 0===e&&(e=[]);var r=t.useFipsEndpoint,i=t.useDualstackEndpoint;return
null===(n=e.find((function(e){var t=e.tags;return
r===t.includes("fips")&&i===t.includes("dualstack")})))||void 0===n?void
0:n.hostname},BO=function(e,t){var n,r,i,o,s,a,c=t.useFipsEndpoint,u=void 0!
==c&&c,l=t.useDualstackEndpoint,h=void 0!
==l&&l,d=t.signingService,f=t.regionHash,p=t.partitionHash,g=function(e,t){var
n,r=t.partitionHash;return null!==(n=Object.keys(r||{}).find((function(t){return
r[t].regions.includes(e)})))&&void 0!==n?n:"aws"}(e,{partitionHash:p}),m=e in f?
e:null!==(r=null===(n=p[g])||void 0===n?void 0:n.endpoint)&&void 0!==r?
r:e,v={useFipsEndpoint:u,useDualstackEndpoint:h},b=function(e,t){var
n=t.partitionHostname;return t.regionHostname||(n?n.replace("{region}",e):void 0)}
(m,{regionHostname:jO(null===(i=f[m])||void 0===i?void
0:i.variants,v),partitionHostname:jO(null===(o=p[g])||void 0===o?void
0:o.variants,v)});if(void 0===b)throw new Error("Endpoint resolution failed for:
".concat({resolvedRegion:m,useFipsEndpoint:u,useDualstackEndpoint:h}));var
y=function(e,t){var n=t.signingRegion;if(n)return n;if(t.useFipsEndpoint){var
r=t.regionRegex.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/
g,"\\."),i=e.match(r);if(i)return i[0].slice(1,-1)}}(b,
{signingRegion:null===(s=f[m])||void 0===s?void
0:s.signingRegion,regionRegex:p[g].regionRegex,useFipsEndpoint:u});return
co(co({partition:g,signingService:d,hostname:b},y&&{signingRegion:y}),
(null===(a=f[m])||void 0===a?void
0:a.signingService)&&{signingService:f[m].signingService})},UO=function(){function
e(e)
{this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port
,this.query=e.query||{},this.headers=e.headers||
{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-
1)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!
==e.path.charAt(0)?"/".concat(e.path):e.path:"/"}return e.isInstance=function(e)
{if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in
t&&"path"in t&&"object"==typeof t.query&&"object"==typeof
t.headers},e.prototype.clone=function(){var t,n=new e(co(co({},this),
{headers:co({},this.headers)}));return
n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var
r,i=t[n];return co(co({},e),((r={})[n]=Array.isArray(i)?mo([],po(i),!1):i,r))}),
{}))),n},e}(),HO=function(){function e(e)
{this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return
e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof
t.statusCode&&"object"==typeof t.headers},e}(),GO="content-
length",zO={step:"build",tags:
["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!
0},VO={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},WO={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},qO="X-Amzn-Trace-
Id",KO={step:"build",tags:
["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!
0,priority:"low"};!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(MO||
(MO={}));var YO,
$O=MO.STANDARD,QO=["AuthFailure","InvalidSignatureException","RequestExpired","Requ
estInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],XO=["BandwidthLimit
Exceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete
","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled
","RequestThrottledException","SlowDown","ThrottledException","Throttling","Throttl
ingException","TooManyRequestsException","TransactionInProgressException"],ZO=["Abo
rtError","TimeoutError","RequestTimeout","RequestTimeoutException"],JO=[500,502,503
,504],ex=["ECONNRESET","EPIPE","ETIMEDOUT"],tx=function(e){var t,n;return
429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||
XO.includes(e.name)||1==(null===(n=e.$retryable)||void 0===n?void
0:n.throttling)},nx=function(){function e(e){var
t,n,r,i,o;this.currentCapacity=0,this.enabled=!
1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0
,this.timeWindow=0,this.beta=null!==(t=null==e?void 0:e.beta)&&void 0!==t?
t:.7,this.minCapacity=null!==(n=null==e?void 0:e.minCapacity)&&void 0!==n?
n:1,this.minFillRate=null!==(r=null==e?void 0:e.minFillRate)&&void 0!==r?
r:.5,this.scaleConstant=null!==(i=null==e?void 0:e.scaleConstant)&&void 0!==i?
i:.4,this.smooth=null!==(o=null==e?void 0:e.smooth)&&void 0!==o?o:.8;var
s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math
.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapac
ity=this.minCapacity}return e.prototype.getCurrentTimeInSeconds=function(){return
Date.now()/1e3},e.prototype.getSendToken=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e)
{return[2,this.acquireTokenBucket(1)]}))}))},e.prototype.acquireTokenBucket=functio
n(e){return lo(this,void 0,void 0,(function(){var t;return ho(this,(function(n)
{switch(n.label){case 0:return this.enabled?
(this.refillTokenBucket(),e>this.currentCapacity?(t=(e-this.currentCapacity)/
this.fillRate*1e3,[4,new Promise((function(e){return setTimeout(e,t)}))]):[3,2]):
[2];case 1:n.sent(),n.label=2;case 2:return
this.currentCapacity=this.currentCapacity-e,
[2]}}))}))},e.prototype.refillTokenBucket=function(){var
e=this.getCurrentTimeInSeconds();if(this.lastTimestamp){var t=(e-
this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,th
is.currentCapacity+t),this.lastTimestamp=e}else
this.lastTimestamp=e},e.prototype.updateClientSendingRate=function(e){var
t;if(this.updateMeasuredRate(),tx(e)){var n=this.enabled?
Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=n,
this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=t
his.cubicThrottle(n),this.enableTokenBucket()}else
this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());var
r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)},e.prototype.calc
ulateTimeWindow=function()
{this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/
this.scaleConstant,1/3))},e.prototype.cubicThrottle=function(e){return
this.getPrecise(e*this.beta)},e.prototype.cubicSuccess=function(e){return
this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-
this.timeWindow,3)+this.lastMaxRate)},e.prototype.enableTokenBucket=function()
{this.enabled=!0},e.prototype.updateTokenBucketRate=function(e)
{this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapaci
ty=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,
this.maxCapacity)},e.prototype.updateMeasuredRate=function(){var
e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount+
+,t>this.lastTxRateBucket){var n=this.requestCount/(t-
this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measu
redTxRate*(1-
this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}},e.prototype.getPrecise=
function(e){return parseFloat(e.toFixed(8))},e}(),rx=new Uint8Array(16);function
ix(){if(!YO&&!(YO="undefined"!=typeof
crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!
=typeof msCrypto&&"function"==typeof
msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new
Error("crypto.getRandomValues() not supported. See
https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return YO(rx)}const
ox=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|
00000000-0000-0000-0000-000000000000)$/i;for(var sx=[],ax=0;ax<256;+
+ax)sx.push((ax+256).toString(16).substr(1));const cx=function(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(sx[e[t+0]]+sx[e[t+1]]
+sx[e[t+2]]+sx[e[t+3]]+"-"+sx[e[t+4]]+sx[e[t+5]]+"-"+sx[e[t+6]]+sx[e[t+7]]
+"-"+sx[e[t+8]]+sx[e[t+9]]+"-"+sx[e[t+10]]+sx[e[t+11]]+sx[e[t+12]]+sx[e[t+13]]
+sx[e[t+14]]+sx[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof
e&&ox.test(e)}(n))throw TypeError("Stringified UUID is invalid");return
n},ux=function(e,t,n){var r=(e=e||{}).random||(e.rng||ix)();if(r[6]=15&r[6]|
64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return
cx(r)};var lx=function(e,t){return
Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},hx=function(e){return!!
e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return
QO.includes(e.name)}(e)||tx(e)||function(e){var t;return ZO.includes(e.name)||
ex.includes((null==e?void 0:e.code)||"")||JO.includes((null===(t=e.$metadata)||void
0===t?void 0:t.httpStatusCode)||0)}(e))},dx=function(){function e(e,t){var
n,r,i,o,s,a,c,u,l;this.maxAttemptsProvider=e,this.mode=MO.STANDARD,this.retryDecide
r=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:hx,this.delayDecider=null!
==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:lx,this.retryQuota=null!
==(i=null==t?void 0:t.retryQuota)&&void 0!==i?i:(o=1,s=5,a=10,c=500,u=function(e)
{return"TimeoutError"===e.name?a:s},l=function(e){return
u(e)<=c},Object.freeze({hasRetryTokens:l,retrieveRetryTokens:function(e){if(!
l(e))throw new Error("No retry token available");var t=u(e);return c-
=t,t},releaseRetryTokens:function(e){c+=null!=e?e:o,c=Math.min(c,500)}}))}return
e.prototype.shouldRetry=function(e,t,n){return
t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAtt
empts=function(){return lo(this,void 0,void 0,(function(){var e;return ho(this,
(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),
[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return
t.sent(),e=3,[3,3];case 3:return[2,e]}}))}))},e.prototype.retry=function(e,t,n)
{return lo(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l;return ho(this,
(function(h){switch(h.label){case 0:return i=0,o=0,[4,this.getMaxAttempts()];case
1:s=h.sent(),a=t.request,UO.isInstance(a)&&(a.headers["amz-sdk-invocation-
id"]=ux()),c=function(){var c,l,h,d,f,p,g,m;return
ho(this,(function(v){switch(v.label){case 0:return
v.trys.push([0,4,,7]),UO.isInstance(a)&&(a.headers["amz-sdk-
request"]="attempt=".concat(i+1,"; max=").concat(s)),(null==n?void
0:n.beforeRequest)?[4,n.beforeRequest()]:[3,2];case 1:v.sent(),v.label=2;case
2:return[4,e(t)];case 3:return c=v.sent(),l=c.response,h=c.output,(null==n?void
0:n.afterRequest)&&n.afterRequest(l),u.retryQuota.releaseRetryTokens(r),h.
$metadata.attempts=i+1,h.$metadata.totalRetryDelay=o,[2,{value:
{response:l,output:h}}];case 4:return d=v.sent(),f=px(d),i++,u.shouldRetry(f,i,s)?
(r=u.retryQuota.retrieveRetryTokens(f),p=u.delayDecider(tx(f)?500:100,i),g=fx(f.
$response),m=Math.max(g||0,p),o+=m,[4,new Promise((function(e){return
setTimeout(e,m)}))]):[3,6];case 5:return v.sent(),[2,"continue"];case 6:throw f.
$metadata||(f.$metadata={}),f.$metadata.attempts=i,f.
$metadata.totalRetryDelay=o,f;case 7:return[2]}}))},u=this,h.label=2;case
2:return[5,c()];case 3:return"object"==typeof(l=h.sent())?[2,l.value]:[3,2];case
4:return[2]}}))}))},e}(),fx=function(e){if(HO.isInstance(e)){var
t=Object.keys(e.headers).find((function(e){return"retry-
after"===e.toLowerCase()}));if(t){var n=e.headers[t],r=Number(n);return
Number.isNaN(r)?new Date(n).getTime()-Date.now():1e3*r}}},px=function(e){return e
instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof
e?new Error(e):new Error("AWS SDK error wrapper for ".concat(e))},gx=function(e)
{function t(t,n){var r=this,i=null!=n?n:{},o=i.rateLimiter,s=uo(i,
["rateLimiter"]);return(r=e.call(this,t,s)||this).rateLimiter=null!=o?o:new
nx,r.mode=MO.ADAPTIVE,r}return Rr(t,e),t.prototype.retry=function(t,n){return
lo(this,void 0,void 0,(function(){var r=this;return ho(this,(function(i)
{return[2,e.prototype.retry.call(this,t,n,{beforeRequest:function(){return
lo(r,void 0,void 0,(function(){return ho(this,(function(e)
{return[2,this.rateLimiter.getSendToken()]}))}))},afterRequest:function(e)
{r.rateLimiter.updateClientSendingRate(e)}})]}))}))},t}
(dx),mx={name:"retryMiddleware",tags:
["RETRY"],step:"finalizeRequest",priority:"high",override:!0},vx=function(e)
{function t(n,r){void 0===r&&(r=!0);var i=e.call(this,n)||this;return
i.tryNextLink=r,i.name="ProviderError",Object.setPrototypeOf(i,t.prototype),i}retur
n Rr(t,e),t.from=function(e,t){return void 0===t&&(t=!0),Object.assign(new
this(e.message,t),e)},t}(Error);(function(e){Rr((function t(n,r){void 0===r&&(r=!
0);var i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="CredentialsProviderError",Object.setPrototypeOf(i,t.prototy
pe),i}),e)})(vx),function(e){Rr((function t(n,r){void 0===r&&(r=!0);var
i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="TokenProviderError",Object.setPrototypeOf(i,t.prototype),i}
),e)}(vx);for(var bx={},yx={},wx=0;wx<256;wx++){var
_x=wx.toString(16).toLowerCase();1===_x.length&&(_x="0".concat(_x)),bx[wx]=_x,yx[_x
]=wx}function Ex(e){for(var t="",n=0;n<e.byteLength;n++)t+=bx[e[n]];return t}var
Sx="X-Amz-Date",Tx="X-Amz-Signature",Ax="X-Amz-Security-
Token",Cx="authorization",Ox=Sx.toLowerCase(),xx=[Cx,Ox,"date"],Ix=Tx.toLowerCase()
,Px="x-amz-content-sha256",Dx=Ax.toLowerCase(),kx={authorization:!0,"cache-
control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!
0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-
agent":!0,"x-amzn-trace-id":!0},Rx=/^proxy-/,Mx=/^sec-/,Nx="AWS4-HMAC-
SHA256",Lx="AWS4-HMAC-SHA256-
PAYLOAD",Fx="aws4_request",jx={},Bx=[],Ux=function(e,t,n)
{return"".concat(e,"/").concat(t,"/").concat(n,"/").concat(Fx)},Hx=function(e,t,n)
{var r=new e(t);return r.update(n),r.digest()},Gx=function(e,t,n){var
r,i,o=e.headers,s={};try{for(var a=fo(Object.keys(o).sort()),c=a.next();!
c.done;c=a.next()){var u=c.value;if(null!=o[u]){var l=u.toLowerCase();(l in kx||
(null==t?void 0:t.has(l))||Rx.test(l)||Mx.test(l))&&(!n||n&&!n.has(l))||
(s[l]=o[u].trim().replace(/\s+/g," "))}}}catch(e){r={error:e}}finally{try{c&&!
c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return
s},zx=function(e){return
encodeURIComponent(e).replace(/[!'()*]/g,Vx)},Vx=function(e)
{return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())},Wx=function(e,t){var
n=e.headers,r=e.body;return lo(void 0,void 0,void 0,(function(){var
e,i,o,s,a,c,u;return ho(this,(function(l){switch(l.label){case
0:try{for(e=fo(Object.keys(n)),i=e.next();!
i.done;i=e.next())if((o=i.value).toLowerCase()===Px)return[2,n[o]]}catch(e)
{c={error:e}}finally{try{i&&!i.done&&(u=e.return)&&u.call(e)}finally{if(c)throw
c.error}}return null!=r?[3,1]:
[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case
1:return"string"==typeof r||ArrayBuffer.isView(r)||(h=r,"function"==typeof
ArrayBuffer&&h instanceof ArrayBuffer||"[object
ArrayBuffer]"===Object.prototype.toString.call(h))?((s=new t).update(r),a=Ex,
[4,s.digest()]):[3,3];case 2:return[2,a.apply(void 0,[l.sent()])];case
3:return[2,"UNSIGNED-PAYLOAD"]}var h}))}))},qx=function(e){var
t=e.headers,n=e.query,r=uo(e,["headers","query"]);return co(co({},r),
{headers:co({},t),query:n?Kx(n):void 0})},Kx=function(e){return
Object.keys(e).reduce((function(t,n){var r,i=e[n];return co(co({},t),((r={})
[n]=Array.isArray(i)?mo([],po(i),!1):i,r))}),{})},Yx=function(e){var
t,n;e="function"==typeof e.clone?e.clone():qx(e);try{for(var
r=fo(Object.keys(e.headers)),i=r.next();!i.done;i=r.next()){var
o=i.value;xx.indexOf(o.toLowerCase())>-1&&delete e.headers[o]}}catch(e)
{t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw
t.error}}return e},$x=function(){function e(e){var
t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,s=e.uriEscapePa
th,a=void 0===s||
s;this.service=i,this.sha256=o,this.uriEscapePath=a,this.applyChecksum="boolean"!
=typeof t||t,this.regionProvider=NO(r),this.credentialProvider=NO(n)}return
e.prototype.presign=function(e,t){return void 0===t&&(t={}),lo(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A;return ho(this,
(function(C){switch(C.label){case 0:return n=t.signingDate,r=void 0===n?new
Date:n,i=t.expiresIn,o=void 0===i?
3600:i,s=t.unsignableHeaders,a=t.unhoistableHeaders,c=t.signableHeaders,u=t.signing
Region,l=t.signingService,[4,this.credentialProvider()];case 1:return
h=C.sent(),this.validateResolvedCredentials(h),null==u?[3,2]:(f=u,[3,4]);case
2:return[4,this.regionProvider()];case 3:f=C.sent(),C.label=4;case 4:return
d=f,p=Qx(r),g=p.longDate,m=p.shortDate,o>604800?[2,Promise.reject("Signature
version 4 presigned URLs must have an expiration date less than one week in the
future")]:(v=Ux(m,d,null!=l?l:this.service),b=function(e,t){var n,r,i;void
0===t&&(t={});var o="function"==typeof e.clone?
e.clone():qx(e),s=o.headers,a=o.query,c=void 0===a?{}:a;try{for(var
u=fo(Object.keys(s)),l=u.next();!l.done;l=u.next()){var
h=l.value,d=h.toLowerCase();"x-amz-"!==d.slice(0,6)||
(null===(i=t.unhoistableHeaders)||void 0===i?void 0:i.has(d))||(c[h]=s[h],delete
s[h])}}catch(e){n={error:e}}finally{try{l&&!
l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return co(co({},e),
{headers:s,query:c})}(Yx(e),
{unhoistableHeaders:a}),h.sessionToken&&(b.query[Ax]=h.sessionToken),b.query["X-
Amz-Algorithm"]=Nx,b.query["X-Amz-
Credential"]="".concat(h.accessKeyId,"/").concat(v),b.query[Sx]=g,b.query["X-Amz-
Expires"]=o.toString(10),y=Gx(b,s,c),b.query["X-Amz-
SignedHeaders"]=Xx(y),w=b.query,_=Tx,E=this.getSignature,S=[g,v,this.getSigningKey(
h,d,m,l)],T=this.createCanonicalRequest,A=[b,y],[4,Wx(e,this.sha256)]);case
5:return[4,E.apply(this,S.concat([T.apply(this,A.concat([C.sent()]))]))];case
6:return w[_]=C.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return
lo(this,void 0,void 0,(function(){return ho(this,(function(n)
{return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?
[2,this.signEvent(e,t)]:
[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var
n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new
Date:i,s=t.priorSignature,a=t.signingRegion,c=t.signingService;return lo(this,void
0,void 0,(function(){var e,t,i,u,l,h,d,f,p,g,m;return ho(this,(function(v)
{switch(v.label){case 0:return null==a?[3,1]:(t=a,[3,3]);case
1:return[4,this.regionProvider()];case 2:t=v.sent(),v.label=3;case 3:return
e=t,i=Qx(o),u=i.shortDate,l=i.longDate,h=Ux(u,e,null!=c?c:this.service),
[4,Wx({headers:{},body:r},this.sha256)];case 4:return d=v.sent(),(f=new
this.sha256).update(n),g=Ex,[4,f.digest()];case 5:return p=g.apply(void 0,
[v.sent()]),m=[Lx,l,h,s,p,d].join("\n"),[2,this.signString(m,
{signingDate:o,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=f
unction(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new
Date:r,o=n.signingRegion,s=n.signingService;return lo(this,void 0,void 0,
(function(){var t,n,r,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case
0:return[4,this.credentialProvider()];case 1:return
t=d.sent(),this.validateResolvedCredentials(t),null==o?[3,2]:(r=o,[3,4]);case
2:return[4,this.regionProvider()];case 3:r=d.sent(),d.label=4;case 4:return
n=r,a=Qx(i).shortDate,l=(u=this.sha256).bind,[4,this.getSigningKey(t,n,a,s)];case
5:return(c=new(l.apply(u,[void 0,d.sent()]))).update(e),h=Ex,[4,c.digest()];case
6:return[2,h.apply(void 0,
[d.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?
{}:t,r=n.signingDate,i=void 0===r?new
Date:r,o=n.signableHeaders,s=n.unsignableHeaders,a=n.signingRegion,c=n.signingServi
ce;return lo(this,void 0,void 0,(function(){var t,n,r,u,l,h,d,f,p,g,m;return
ho(this,(function(v){switch(v.label){case
0:return[4,this.credentialProvider()];case 1:return
t=v.sent(),this.validateResolvedCredentials(t),null==a?[3,2]:(r=a,[3,4]);case
2:return[4,this.regionProvider()];case 3:r=v.sent(),v.label=4;case 4:return
n=r,u=Yx(e),l=Qx(i),h=l.longDate,d=l.shortDate,f=Ux(d,n,null!=c?
c:this.service),u.headers[Ox]=h,t.sessionToken&&(u.headers[Dx]=t.sessionToken),
[4,Wx(u,this.sha256)];case 5:return p=v.sent(),!function(e,t){var
n,r;e=e.toLowerCase();try{for(var
i=fo(Object.keys(t)),o=i.next();!
o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e)
{n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw
n.error}}return!1}
(Px,u.headers)&&this.applyChecksum&&(u.headers[Px]=p),g=Gx(u,s,o),
[4,this.getSignature(h,f,this.getSigningKey(t,n,d,c),this.createCanonicalRequest(u,
g,p))];case 6:return m=v.sent(),u.headers[Cx]="".concat(Nx," ")
+"Credential=".concat(t.accessKeyId,"/").concat(f,", ")
+"SignedHeaders=".concat(Xx(g),", ")+"Signature=".concat(m),
[2,u]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var
r=Object.keys(t).sort();return"".concat(e.method,"\
n").concat(this.getCanonicalPath(e),"\n").concat(function(e){var
t,n,r=e.query,i=void 0===r?{}:r,o=[],s={},a=function(e)
{if(e.toLowerCase()===Ix)return"continue";o.push(e);var t=i[e];"string"==typeof t?
s[e]="".concat(zx(e),"=").concat(zx(t)):Array.isArray(t)&&(s[e]=t.slice(0).sort().r
educe((function(t,n){return t.concat(["".concat(zx(e),"=").concat(zx(n))])}),
[]).join("&"))};try{for(var c=fo(Object.keys(i).sort()),u=c.next();!
u.done;u=c.next())a(u.value)}catch(e){t={error:e}}finally{try{u&&!
u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return
o.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e),"\
n").concat(r.map((function(e){return"".concat(e,":").concat(t[e])})).join("\n"),"\
n\n").concat(r.join(";"),"\
n").concat(n)},e.prototype.createStringToSign=function(e,t,n){return lo(this,void
0,void 0,(function(){var r,i;return ho(this,(function(o){switch(o.label){case
0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),
[2,"".concat(Nx,"\n").concat(e,"\n").concat(t,"\
n").concat(Ex(i))]}}))}))},e.prototype.getCanonicalPath=function(e){var
t,n,r=e.path;if(this.uriEscapePath){var i=[];try{for(var
o=fo(r.split("/")),s=o.next();!s.done;s=o.next()){var a=s.value;0!==(null==a?void
0:a.length)&&"."!==a&&(".."===a?i.pop():i.push(a))}}catch(e)
{t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw
t.error}}var c="".concat((null==r?void
0:r.startsWith("/"))?"/":"").concat(i.join("/")).concat(i.length>0&&(null==r?void
0:r.endsWith("/"))?"/":"");return encodeURIComponent(c).replace(/%2F/g,"/")}return
r},e.prototype.getSignature=function(e,t,n,r){return lo(this,void 0,void 0,
(function(){var i,o,s,a,c;return ho(this,(function(u){switch(u.label){case
0:return[4,this.createStringToSign(e,t,r)];case 1:return
i=u.sent(),a=(s=this.sha256).bind,[4,n];case 2:return(o=new(a.apply(s,[void
0,u.sent()]))).update(i),c=Ex,[4,o.digest()];case 3:return[2,c.apply(void 0,
[u.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return
function(e,t,n,r,i){return lo(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label){case
0:return[4,Hx(e,t.secretAccessKey,t.accessKeyId)];case 1:if(o=p.sent(),
(s="".concat(n,":").concat(r,":").concat(i,":").concat(Ex(o),":").concat(t.sessionT
oken))in jx)return[2,jx[s]];for(Bx.push(s);Bx.length>50;)delete
jx[Bx.shift()];a="AWS4".concat(t.secretAccessKey),p.label=2;case
2:p.trys.push([2,7,8,9]),c=fo([n,r,i,Fx]),u=c.next(),p.label=3;case 3:return
u.done?[3,6]:(l=u.value,[4,Hx(e,a,l)]);case 4:a=p.sent(),p.label=5;case 5:return
u=c.next(),[3,3];case 6:return[3,9];case 7:return h=p.sent(),d={error:h},[3,9];case
8:try{u&&!u.done&&(f=c.return)&&f.call(c)}finally{if(d)throw d.error}return[7];case
9:return[2,jx[s]=a]}}))}))}(this.sha256,e,n,t,r||
this.service)},e.prototype.validateResolvedCredentials=function(e){if("object"!
=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw
new Error("Resolved credential object is not valid")},e}(),Qx=function(e){var
t,n=(t=e,function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?
Number(e)?new Date(1e3*Number(e)):new Date(e):e}(t).toISOString().replace(/\.\
d{3}Z$/,"Z")).replace(/[\-:]/
g,"");return{longDate:n,shortDate:n.slice(0,8)}},Xx=function(e){return
Object.keys(e).sort().join(";")},Zx=function(e){return new Date(Date.now()
+e)},Jx=function(e,t){var n=Date.parse(e);return function(e,t){return
Math.abs(Zx(t).getTime()-e)>=3e5}(n,t)?n-Date.now():t},eI=function(e){var
t,n,r;return HO.isInstance(e)?null!==(n=null===(t=e.headers)||void 0===t?void
0:t.date)&&void 0!==n?n:null===(r=e.headers)||void 0===r?void 0:r.Date:void
0},tI={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},nI="user-agent",rI="x-amz-user-agent",iI=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\
w]/g,oI=function(e){var
t=po(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(iI,"_")})).join("/")},sI={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},aI=function(){var
e=[],t=[],n=new Set,r=function(n){return e.forEach((function(e)
{n.add(e.middleware,co({},e))})),t.forEach((function(e)
{n.addRelativeTo(e.middleware,co({},e))})),n},i=function(e){var t=[];return
e.before.forEach((function(e){0===e.before.length&&0===e.after.length?
t.push(e):t.push.apply(t,mo([],po(i(e)),!
1))})),t.push(e),e.after.reverse().forEach((function(e)
{0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,mo([],po(i(e)),!
1))})),t},o=function(n){void 0===n&&(n=!1);var
r=[],o=[],s={};e.forEach((function(e){var t=co(co({},e),{before:[],after:
[]});t.name&&(s[t.name]=t),r.push(t)})),t.forEach((function(e){var t=co(co({},e),
{before:[],after:[]});t.name&&(s[t.name]=t),o.push(t)})),o.forEach((function(e)
{if(e.toMiddleware){var t=s[e.toMiddleware];if(void 0===t){if(n)return;throw new
Error("".concat(e.toMiddleware," is not found when adding
").concat(e.name||"anonymous"," middleware ").concat(e.relation,"
").concat(e.toMiddleware))}"after"===e.relation&&t.after.push(e),"before"===e.relat
ion&&t.before.push(e)}}));var a,c=(a=r,a.sort((function(e,t){return cI[t.step]-
cI[e.step]||uI[t.priority||"normal"]-
uI[e.priority||"normal"]}))).map(i).reduce((function(e,t){return
e.push.apply(e,mo([],po(t),!1)),e}),[]);return c},s={add:function(t,r){void
0===r&&(r={});var
i=r.name,o=r.override,s=co({step:"initialize",priority:"normal",middleware:t},r);if
(i){if(n.has(i)){if(!o)throw new Error("Duplicate middleware name
'".concat(i,"'"));var a=e.findIndex((function(e){return
e.name===i})),c=e[a];if(c.step!==s.step||c.priority!==s.priority)throw new
Error('"'.concat(i,'" middleware with ').concat(c.priority," priority in
").concat(c.step," step cannot be ")+"overridden by same-name middleware with
".concat(s.priority," priority in ").concat(s.step,"
step."));e.splice(a,1)}n.add(i)}e.push(s)},addRelativeTo:function(e,r){var
i=r.name,o=r.override,s=co({middleware:e},r);if(i){if(n.has(i)){if(!o)throw new
Error("Duplicate middleware name '".concat(i,"'"));var a=t.findIndex((function(e)
{return e.name===i})),c=t[a];if(c.toMiddleware!==s.toMiddleware||c.relation!
==s.relation)throw new Error('"'.concat(i,'" middleware ').concat(c.relation,'
"').concat(c.toMiddleware,'" middleware cannot be overridden ')+"by same-name
middleware ".concat(s.relation,' "').concat(s.toMiddleware,'"
middleware.'));t.splice(a,1)}n.add(i)}t.push(s)},clone:function(){return
r(aI())},use:function(e){e.applyToStack(s)},remove:function(r)
{return"string"==typeof r?function(r){var i=!1,o=function(e){return!e.name||e.name!
==r||(i=!0,n.delete(r),!1)};return e=e.filter(o),t=t.filter(o),i}(r):function(r)
{var i=!1,o=function(e){return e.middleware!==r||(i=!0,e.name&&n.delete(e.name),!
1)};return e=e.filter(o),t=t.filter(o),i}(r)},removeByTag:function(r){var i=!
1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(r)||(o&&n.delete(o),i=!
0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var
t=r(aI());return t.use(e),t},applyToStack:r,identify:function(){return o(!
0).map((function(e){return e.name+": "+(e.tags||
[]).join(",")}))},resolve:function(e,t){var n,r;try{for(var
i=fo(o().map((function(e){return e.middleware})).reverse()),s=i.next();!
s.done;s=i.next())e=(0,s.value)(e,t)}catch(e){n={error:e}}finally{try{s&&!
s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e}};return
s},cI={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},uI={high:3
,normal:2,low:1},lI=function(){function e(e)
{this.middlewareStack=aI(),this.config=e}return e.prototype.send=function(e,t,n)
{var r="function"!=typeof t?t:void 0,i="function"==typeof t?
t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return
o(e).then((function(e){return e.output}));o(e).then((function(e){return
i(null,e.output)}),(function(e){return i(e)})).catch((function()
{}))},e.prototype.destroy=function()
{this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}
(),hI=function()
{this.middlewareStack=aI()},dI="***SensitiveInformation***",fI=(Math.ceil(Math.pow(
2,127)*(2-Math.pow(2,-23))),function(e){if(null!=e){if(Number.isInteger(e)&&!
Number.isNaN(e))return e;throw new TypeError("Expected integer, got ".concat(typeof
e,": ").concat(e))}}),pI=function(e){return gI(e,32)},gI=function(e,t){var
n=fI(e);if(void 0!==n&&mI(n,t)!==n)throw new TypeError("Expected ".concat(t,"-bit
integer, got ").concat(e));return n},mI=function(e,t){switch(t){case 32:return
Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return
Int8Array.of(e)[0]}},vI=function(e,t){if(null==e){if(t)throw new
TypeError("Expected a non-null value for ".concat(t));throw new TypeError("Expected
a non-null value")}return e},bI=function(e){if(null!=e){if("object"==typeof e&&!
Array.isArray(e))return e;var t=Array.isArray(e)?"array":typeof e;throw new
TypeError("Expected object, got ".concat(t,": ").concat(e))}},yI=function(e)
{if(null!=e){if("string"==typeof e)return
e;if(["boolean","number","bigint"].includes(typeof e))return SI.warn(EI("Expected
string,
got ".concat(typeof e,": ").concat(e))),String(e);throw new TypeError("Expected
string, got ".concat(typeof e,": ").concat(e))}},wI=function(e)
{return"string"==typeof e?_I(e):function(e){if(null!=e){if("string"==typeof e){var
t=parseFloat(e);if(!Number.isNaN(t))return String(t)!
==String(e)&&SI.warn(EI("Expected number but observed string:
".concat(e))),t}if("number"==typeof e)return e;throw new TypeError("Expected
number, got ".concat(typeof e,": ").concat(e))}}(e)},_I=function(e){switch(e)
{case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-
1/0;default:throw new Error("Unable to parse float value:
".concat(e))}},EI=function(e){return String(new TypeError(e).stack||e).split("\
n").slice(0,5).filter((function(e){return!
e.includes("stackTraceWarning")})).join("\
n")},SI={warn:console.warn},TI=function(e){function t(n){var
r=e.call(this,n.message)||this;return
Object.setPrototypeOf(r,t.prototype),r.name=n.name,r.$fault=n.$fault,r.$metadata=n.
$metadata,r}return Rr(t,e),t}(Error),AI=function(e,t){void
0===t&&(t={}),Object.entries(t).filter((function(e){return void 0!==po(e,2)
[1]})).forEach((function(t){var n=po(t,2),r=n[0],i=n[1];null!=e[r]&&""!==e[r]||
(e[r]=i)}));var n=e.message||e.Message||"UnknownError";return e.message=n,delete
e.Message,e},CI=function(e){var
t=e.output,n=e.parsedBody,r=e.exceptionCtor,i=e.errorCode,o=OI(t),s=o.httpStatusCod
e?o.httpStatusCode+"":void 0,a=new r({name:n.code||n.Code||i||s||"UnknowError",
$fault:"client",$metadata:o});throw AI(a,n)},OI=function(e){var
t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-
requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},xI=function(e){switch(e){case"standard":case"cross-
region":return{retryMode:"standard",connectionTimeout:3100};case"in-
region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{ret
ryMode:"standard",connectionTimeout:3e4};default:return{}}},II=function(){var
e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,mo([null
],po(arguments),!1)));return
Object.setPrototypeOf(t,e.prototype),t};II.prototype=Object.create(String.prototype
,{constructor:{value:II,enumerable:!1,writable:!0,configurable:!
0}}),Object.setPrototypeOf(II,String);var PI=function(e){function t(){return null!
==e&&e.apply(this,arguments)||this}return
Rr(t,e),t.prototype.deserializeJSON=function(){return
JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return
e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?
e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))},t}
(II);function DI(e,t,n){var r,i,o,s;if(void 0===t&&void
0===n)o={},s=e;else{if(o=e,"function"==typeof t)return kI(o,t,s=n);s=t}try{for(var
a=fo(Object.keys(s)),c=a.next();!c.done;c=a.next()){var
u=c.value;if(Array.isArray(s[u])){var
l=po(s[u],2),h=l[0],d=l[1];if("function"==typeof d){var f=void 0,p=void
0===h&&null!=(f=d()),g="function"==typeof h&&!!h(void 0)||"function"!=typeof h&&!!
h;p?o[u]=f:g&&(o[u]=d())}else p=void 0===h&&null!=d,g="function"==typeof h&&!!
h(d)||"function"!=typeof h&&!!h,(p||g)&&(o[u]=d)}else o[u]=s[u]}}catch(e)
{r={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw
r.error}}return o}var kI=function(e,t,n){return
DI(e,Object.entries(n).reduce((function(e,n){var r=po(n,2),i=r[0],o=r[1];return
Array.isArray(o)?e[i]=o:e[i]="function"==typeof o?[t,o()]:[t,o],e}),{}))};function
RI(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e)
{return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}var
MI=function(e,t,n,r,i,o){if(null==t||void 0===t[n])throw new Error("No value
provided for input HTTP label: "+n+".");var s=r();if(s.length<=0)throw new
Error("Empty value provided for input HTTP label: "+n+".");return e.replace(i,o?
s.split("/").map((function(e){return RI(e)})).join("/"):RI(s))};for(var
NI=n(79258),LI=function(){function e(e){"function"==typeof e?
this.configProvider=e().then((function(e){return e||{}})):(this.config=null!=e?e:
{},this.configProvider=Promise.resolve(this.config))}return
e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void
0===t?{}:t).abortSignal;return lo(this,void 0,void 0,(function(){var
t,r,i,o,s,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label){case 0:return
this.config?[3,2]:(t=this,[4,this.configProvider]);case
1:t.config=p.sent(),p.label=2;case 2:return r=this.config.requestTimeout,(null==n?
void 0:n.aborted)?((i=new Error("Request aborted")).name="AbortError",
[2,Promise.reject(i)]):(o=e.path,e.query&&(s=function(e){var t,n,r=[];try{for(var
i=fo(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var
s=o.value,a=e[s];if(s=zx(s),Array.isArray(a))for(var c=0,u=a.length;c<u;c+
+)r.push("".concat(s,"=").concat(zx(a[c])));else{var l=s;(a||"string"==typeof
a)&&(l+="=".concat(zx(a))),r.push(l)}}}catch(e){t={error:e}}finally{try{o&&!
o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r.join("&")}
(e.query),s&&(o+="?".concat(s))),a=e.port,c=e.method,u="".concat(e.protocol,"//").c
oncat(e.hostname).concat(a?":".concat(a):"").concat(o),l="GET"===c||"HEAD"===c?void
0:e.body,h={body:l,headers:new Headers(e.headers),method:c},"undefined"!=typeof
AbortController&&(h.signal=n),d=new Request(u,h),f=[fetch(d).then((function(e){var
t,n,r=e.headers,i={};try{for(var o=fo(r.entries()),s=o.next();!s.done;s=o.next())
{var a=s.value;i[a[0]]=a[1]}}catch(e){t={error:e}}finally{try{s&&!
s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return void 0!==e.body?
{response:new
HO({headers:i,statusCode:e.status,body:e.body})}:e.blob().then((function(t)
{return{response:new HO({headers:i,statusCode:e.status,body:t})}}))})),(g=r,void
0===g&&(g=0),new Promise((function(e,t){g&&setTimeout((function(){var e=new
Error("Request did not complete within ".concat(g,"
ms"));e.name="TimeoutError",t(e)}),g)})))],n&&f.push(new Promise((function(e,t)
{n.onabort=function(){var e=new Error("Request
aborted");e.name="AbortError",t(e)}}))),[2,Promise.race(f)])}var g}))}))},e}
(),FI={},jI=new
Array(64),BI=0,UI="A".charCodeAt(0),HI="Z".charCodeAt(0);BI+UI<=HI;BI++){var
GI=String.fromCharCode(BI+UI);FI[GI]=BI,jI[BI]=GI}for(BI=0,UI="a".charCodeAt(0),HI=
"z".charCodeAt(0);BI+UI<=HI;BI++){GI=String.fromCharCode(BI+UI);var
zI=BI+26;FI[GI]=zI,jI[zI]=GI}for(BI=0;BI<10;BI+
+)FI[BI.toString(10)]=BI+52,GI=BI.toString(10),zI=BI+52,FI[GI]=zI,jI[zI]=GI;FI["+"]
=62,jI[62]="+",FI["/"]=63,jI[63]="/";function VI(e){var
t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;for(var n=new
ArrayBuffer(t),r=new DataView(n),i=0;i<e.length;i+=4){for(var
o=0,s=0,a=i,c=i+3;a<=c;a++)if("="!==e[a]){if(!(e[a]in FI))throw new
TypeError("Invalid character ".concat(e[a]," in base64 string."));o|
=FI[e[a]]<<6*(c-a),s+=6}else o>>=6;var u=i/4*3;o>>=s%8;for(var
l=Math.floor(s/8),h=0;h<l;h++){var d=8*(l-h-1);r.setUint8(u+h,
(o&255<<d)>>d)}}return new Uint8Array(n)}function WI(e){for(var
t="",n=0;n<e.length;n+=3){for(var r=0,i=0,o=n,s=Math.min(n+3,e.length);o<s;o++)r|
=e[o]<<8*(s-o-1),i+=8;var a=Math.ceil(i/6);r<<=6*a-i;for(var c=1;c<=a;c++){var
u=6*(a-c);t+=jI[(r&63<<u)>>u]}t+="==".slice(0,4-a)}return t}var qI=function(e)
{return"function"==typeof Blob&&e instanceof Blob?function(e){return lo(this,void
0,void 0,(function(){var t,n;return ho(this,(function(r){switch(r.label){case
0:return[4,KI(e)];case 1:return t=r.sent(),n=VI(t),[2,new Uint8Array(n)]}}))}))}
(e):function(e){return lo(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return
ho(this,(function(c){switch(c.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!
1,c.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=c.sent(),o=i.done,
(s=i.value)&&(a=t,(t=new
Uint8Array(a.length+s.length)).set(a),t.set(s,a.length)),r=o,[3,1];case
3:return[2,t]}}))}))}(e)};function KI(e){return new Promise((function(t,n){var
r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new
Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?
e:"",o=i.indexOf(","),s=o>-1?o+1:i.length;t(i.substring(s))},r.onabort=function()
{return n(new Error("Read aborted"))},r.onerror=function(){return
n(r.error)},r.readAsDataURL(e)}))}var YI=function(e){if("string"==typeof e){for(var
t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t+
+:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}if("number"==typeof
e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new
Error("Body Length computation failed for ".concat(e))},$I=function(e){var
t=e.serviceId,n=e.clientVersion;return function(){return lo(void 0,void 0,void 0,
(function(){var e,r,i,o,s,a,c,u,l;return ho(this,(function(h){return e="undefined"!
=typeof window&&(null===(i=null===window||void 0===window?void
0:window.navigator)||void 0===i?void 0:i.userAgent)?
Oa().parse(window.navigator.userAgent):void 0,r=[["aws-sdk-js",n],
["os/".concat((null===(o=null==e?void 0:e.os)||void 0===o?void
0:o.name)||"other"),null===(s=null==e?void 0:e.os)||void 0===s?void 0:s.version],
["lang/js"],["md/browser","".concat(null!==(c=null===(a=null==e?void 0:e.browser)||
void 0===a?void 0:a.name)&&void 0!==c?c:"unknown","_").concat(null!
==(l=null===(u=null==e?void 0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?
l:"unknown")]],t&&r.push(["api/".concat(t),n]),
[2,r]}))}))}},QI=n(47408),XI=function(e){if("string"==typeof e)return XI(new
URL(e));var t,n=e,r=n.hostname,i=n.pathname,o=n.port,s=n.protocol,a=n.search;return
a&&(t=function(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var
i=fo(e.split("&")),o=i.next();!o.done;o=i.next()){var
s=po(o.value.split("="),2),a=s[0],c=s[1],u=void 0===c?
null:c;a=decodeURIComponent(a),u&&(u=decodeURIComponent(u)),a in r?
Array.isArray(r[a])?r[a].push(u):r[a]=[r[a],u]:r[a]=u}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return
r}(a)),{hostname:r,port:o?parseInt(o):void 0,protocol:s,path:i,query:t}},ZI={"us-
east-1":{variants:[{hostname:"runtime-fips.lex.us-east-1.amazonaws.com",tags:
["fips"]}]},"us-gov-west-1":{variants:[{hostname:"runtime-fips.lex.us-gov-west-
1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"runtime-
fips.lex.us-west-2.amazonaws.com",tags:["fips"]}]}},JI={aws:{regions:["af-south-
1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-
southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-
north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-central-1","me-south-
1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-west-1","us-west-
2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:
[{hostname:"runtime.lex.{region}.amazonaws.com",tags:[]},{hostname:"runtime-
fips.lex.{region}.amazonaws.com",tags:["fips"]},{hostname:"runtime.lex-fips.
{region}.api.aws",tags:["dualstack","fips"]},{hostname:"runtime.lex.
{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-
northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"runtime.lex.
{region}.amazonaws.com.cn",tags:[]},{hostname:"runtime.lex-fips.
{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"runtime.lex-fips.
{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},
{hostname:"runtime.lex.{region}.api.amazonwebservices.com.cn",tags:
["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-
1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"runtime.lex.
{region}.c2s.ic.gov",tags:[]},{hostname:"runtime.lex-fips.
{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-
1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"runtime.lex.
{region}.sc2s.sgov.gov",tags:[]},{hostname:"runtime.lex-fips.
{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-
1","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+
$",variants:[{hostname:"runtime.lex.{region}.amazonaws.com",tags:[]},
{hostname:"runtime-fips.lex.{region}.amazonaws.com",tags:["fips"]},
{hostname:"runtime.lex-fips.{region}.api.aws",tags:["dualstack","fips"]},
{hostname:"runtime.lex.{region}.api.aws",tags:["dualstack"]}]}},eP=function(e,t)
{return lo(void 0,void 0,void 0,(function(){return ho(this,(function(n)
{return[2,BO(e,co(co({},t),
{signingService:"lex",regionHash:ZI,partitionHash:JI}))]}))}))},tP=function(e)
{function t(n,r){void 0===r&&(r=!0);var i=e.call(this,n)||this;return
i.tryNextLink=r,i.name="ProviderError",Object.setPrototypeOf(i,t.prototype),i}retur
n Rr(t,e),t.from=function(e,t){return void 0===t&&(t=!0),Object.assign(new
this(e.message,t),e)},t}(Error);(function(e){Rr((function t(n,r){void 0===r&&(r=!
0);var i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="CredentialsProviderError",Object.setPrototypeOf(i,t.prototy
pe),i}),e)})(tP),function(e){Rr((function t(n,r){void 0===r&&(r=!0);var
i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="TokenProviderError",Object.setPrototypeOf(i,t.prototype),i}
),e)}(tP);var nP=["in-region","cross-
region","mobile","standard","legacy"],rP=function(e){var t,n,r,i,o,s=(void 0===e?
{}:e).defaultsMode;return t=function(){return lo(void 0,void 0,void 0,(function()
{var e,t;return ho(this,(function(n){switch(n.label){case 0:return"function"!
=typeof s?[3,2]:[4,s()];case 1:return t=n.sent(),[3,3];case 2:t=s,n.label=3;case
3:switch(null==(e=t)?void 0:e.toLowerCase())
{case"auto":return[2,Promise.resolve(iP()?"mobile":"standard")];case"mobile":case"i
n-region":case"cross-
region":case"standard":case"legacy":return[2,Promise.resolve(null==e?void
0:e.toLocaleLowerCase())];case void
0:return[2,Promise.resolve("legacy")];default:throw new Error('Invalid parameter
for "defaultsMode", expect '.concat(nP.join(", "),", got
").concat(e))}return[2]}}))}))},!1,o=function(){return lo(void 0,void 0,void 0,
(function(){return ho(this,(function(e){switch(e.label){case 0:r||
(r=t()),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,r];case 2:return
n=e.sent(),i=!0,!1,[3,4];case 3:return r=void 0,[7];case
4:return[2,n]}}))}))},function(e){return lo(void 0,void 0,void 0,(function(){return
ho(this,(function(t){switch(t.label){case 0:return i&&!(null==e?void
0:e.forceRefresh)?[3,2]:[4,o()];case 1:n=t.sent(),t.label=2;case
2:return[2,n]}}))}))}},iP=function(){var e,t,n="undefined"!=typeof
window&&(null===(e=null===window||void 0===window?void 0:window.navigator)||void
0===e?void 0:e.userAgent)?Oa().parse(window.navigator.userAgent):void
0,r=null===(t=null==n?void 0:n.platform)||void 0===t?void
0:t.type;return"tablet"===r||"mobile"===r},oP=function(e){function t(t){var
n,r,i,o=this,s=function(e){var t=e.region,n=e.useFipsEndpoint;if(!t)throw new
Error("Region is missing");return co(co({},e),{region:function(){return lo(void
0,void 0,void 0,(function(){var e;return ho(this,(function(n){switch(n.label){case
0:return"string"==typeof t?[2,FO(t)]:[4,t()];case 1:return e=n.sent(),
[2,FO(e)]}}))}))},useFipsEndpoint:function(){return lo(void 0,void 0,void 0,
(function(){var e;return ho(this,(function(r){switch(r.label){case
0:return"string"!=typeof t?[3,1]:(e=t,[3,3]);case 1:return[4,t()];case
2:e=r.sent(),r.label=3;case 3:return LO(e)?[2,!0]:[2,"boolean"==typeof n?
Promise.resolve(n):n()]}}))}))}})}(function(e){var
t,n,r,i,o,s,a,c,u,l,h,d,f,p,g,m=rP(e),v=function(){return
m().then(xI)},b=function(e){var t,n,r,i,o;return{apiVersion:"2016-11-
28",disableHostPrefix:null!==(t=null==e?void 0:e.disableHostPrefix)&&void 0!
==t&&t,logger:null!==(n=null==e?void 0:e.logger)&&void 0!==n?n:
{},regionInfoProvider:null!==(r=null==e?void 0:e.regionInfoProvider)&&void 0!==r?
r:eP,serviceId:null!==(i=null==e?void 0:e.serviceId)&&void 0!==i?i:"Lex Runtime
Service",urlParser:null!==(o=null==e?void 0:e.urlParser)&&void 0!==o?o:XI}}
(e);return co(co(co({},b),e),{runtime:"browser",defaultsMode:m,base64Decoder:null!
==(t=null==e?void 0:e.base64Decoder)&&void 0!==t?t:VI,base64Encoder:null!
==(n=null==e?void 0:e.base64Encoder)&&void 0!==n?n:WI,bodyLengthChecker:null!
==(r=null==e?void 0:e.bodyLengthChecker)&&void 0!==r?
r:YI,credentialDefaultProvider:null!==(i=null==e?void
0:e.credentialDefaultProvider)&&void 0!==i?i:function(e){return function(){return
Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:null!
==(o=null==e?void 0:e.defaultUserAgentProvider)&&void 0!==o?o:
$I({serviceId:b.serviceId,clientVersion:"3.186.3"}),maxAttempts:null!==(s=null==e?
void 0:e.maxAttempts)&&void 0!==s?s:3,region:null!==(a=null==e?void
0:e.region)&&void 0!==a?a:function(){return Promise.reject("Region is
missing")},requestHandler:null!==(c=null==e?void 0:e.requestHandler)&&void 0!==c?
c:new LI(v),retryMode:null!==(u=null==e?void 0:e.retryMode)&&void 0!==u?
u:function(){return lo(void 0,void 0,void 0,(function(){return ho(this,(function(e)
{switch(e.label){case 0:return[4,v()];case 1:return[2,e.sent().retryMode||
$O]}}))}))},sha256:null!==(l=null==e?void 0:e.sha256)&&void 0!==l?
l:NI.Sha256,streamCollector:null!==(h=null==e?void 0:e.streamCollector)&&void 0!
==h?h:qI,useDualstackEndpoint:null!==(d=null==e?void
0:e.useDualstackEndpoint)&&void 0!==d?d:function(){return Promise.resolve(!
1)},useFipsEndpoint:null!==(f=null==e?void 0:e.useFipsEndpoint)&&void 0!==f?
f:function(){return Promise.resolve(!1)},utf8Decoder:null!==(p=null==e?void
0:e.utf8Decoder)&&void 0!==p?p:QI.fromUtf8,utf8Encoder:null!==(g=null==e?void
0:e.utf8Encoder)&&void 0!==g?g:QI.toUtf8})}(t)),a=function(e){var t,n=NO(null!
==(t=e.maxAttempts)&&void 0!==t?t:3);return co(co({},e),
{maxAttempts:n,retryStrategy:function(){return lo(void 0,void 0,void 0,(function()
{return ho(this,(function(t){switch(t.label){case 0:return e.retryStrategy?
[2,e.retryStrategy]:[4,NO(e.retryMode)()];case 1:return t.sent()===MO.ADAPTIVE?
[2,new gx(n)]:[2,new dx(n)]}}))}))}})}(function(e){var
t,n=NO(e.useDualstackEndpoint),r=e.endpoint,i=e.useFipsEndpoint,o=e.urlParser;retur
n co(co({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:r?NO("string"==typeof
r?o(r):r):function(){return function(e){return lo(void 0,void 0,void 0,(function()
{var t,n,r,i,o,s,a;return ho(this,(function(c){switch(c.label){case 0:return
t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=c.sent(),!new RegExp(/^([a-zA-
Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid
region in client config");return[4,e.useDualstackEndpoint()];case 2:return
i=c.sent(),[4,e.useFipsEndpoint()];case 3:return o=c.sent(),
[4,e.regionInfoProvider(r,{useDualstackEndpoint:i,useFipsEndpoint:o})];case 4:if(!
(s=(null!==(a=c.sent())&&void 0!==a?a:{}).hostname))throw new Error("Cannot resolve
hostname from client
config");return[2,e.urlParser("".concat(n?"https:":"http:","//").concat(s))]}}))}))
}(co(co({},e),{useDualstackEndpoint:n,useFipsEndpoint:i}))},isCustomEndpoint:!!
r,useDualstackEndpoint:n})}(s)),c=function(e){var
t,n,r,i,o,s,a,c,u,l,h=e.credentials?"function"==typeof(n=e.credentials)?
(r=n,o=function(e){return void 0!==e.expiration},u=!1,l=function(){return lo(void
0,void 0,void 0,(function(){return ho(this,(function(e){switch(e.label){case 0:a||
(a=r()),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,a];case 2:return
s=e.sent(),c=!0,u=!1,[3,4];case 3:return a=void 0,[7];case
4:return[2,s]}}))}))},void 0===(i=function(e){return void 0!
==e.expiration&&e.expiration.getTime()-Date.now()<3e5})?function(e){return lo(void
0,void 0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return c&&!(null==e?void 0:e.forceRefresh)?[3,2]:[4,l()];case
1:s=t.sent(),t.label=2;case 2:return[2,s]}}))}))}:function(e){return lo(void 0,void
0,void 0,(function(){return ho(this,(function(t){switch(t.label){case 0:return c&&!
(null==e?void 0:e.forceRefresh)?[3,2]:[4,l()];case 1:s=t.sent(),t.label=2;case
2:return u?[2,s]:o&&!o(s)?(u=!0,[2,s]):i(s)?[4,l()]:[3,4];case 3:return t.sent(),
[2,s];case
4:return[2,s]}}))}))}):NO(n):e.credentialDefaultProvider(e),d=e.signingEscapePath,f
=void
0===d||d,p=e.systemClockOffset,g=void 0===p?e.systemClockOffset||
0:p,m=e.sha256;return t=e.signer?NO(e.signer):e.regionInfoProvider?function()
{return NO(e.region)().then((function(t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o;return ho(this,(function(s){switch(s.label){case 0:return
r=(n=e).regionInfoProvider,i=[t],o={},[4,e.useFipsEndpoint()];case 1:return
o.useFipsEndpoint=s.sent(),[4,e.useDualstackEndpoint()];case
2:return[4,r.apply(n,i.concat([(o.useDualstackEndpoint=s.sent(),o)]))];case
3:return[2,[s.sent()||{},t]]}}))}))})).then((function(t){var
n=po(t,2),r=n[0],i=n[1],o=r.signingRegion,s=r.signingService;e.signingRegion=e.sign
ingRegion||o||i,e.signingName=e.signingName||s||e.serviceId;var a=co(co({},e),
{credentials:h,region:e.signingRegion,service:e.signingName,sha256:m,uriEscapePath:
f});return new(e.signerConstructor||$x)(a)}))}:function(t){return lo(void 0,void
0,void 0,(function(){var n,r,i;return ho(this,(function(o){if(!t)throw new
Error("Unexpected empty auth scheme config");return
n=t.signingScope,r=t.signingName,e.signingRegion=e.signingRegion||
n,e.signingName=e.signingName||r||e.serviceId,i=co(co({},e),
{credentials:h,region:e.signingRegion,service:e.signingName,sha256:m,uriEscapePath:
f}),[2,new(e.signerConstructor||$x)(i)]}))}))},co(co({},e),
{systemClockOffset:g,signingEscapePath:f,credentials:h,signer:t})}
(a),u=co(co({},n=c),{customUserAgent:"string"==typeof n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent});return(o=e.call(this,u)||
this).config=u,o.middlewareStack.use((i=o.config,{applyToStack:function(e)
{e.add(function(e){return function(t,n){return function(r){return lo(void 0,void
0,void 0,(function(){var i;return ho(this,(function(o){switch(o.label){case
0:return[4,e.retryStrategy()];case 1:return(null==(i=o.sent())?void
0:i.mode)&&(n.userAgent=mo(mo([],po(n.userAgent||[]),!1),[["cfg/retry-
mode",i.mode]],!1)),[2,i.retry(t,r)]}}))}))}}}
(i),mx)}})),o.middlewareStack.use(function(e){return{applyToStack:function(t)
{t.add(function(e){var t=this;return function(n){return function(r){return
lo(t,void 0,void 0,(function(){var t,i,o,s,a;return ho(this,(function(c)
{if(t=r.request,UO.isInstance(t)&&(i=t.body,o=t.headers,i&&-
1===Object.keys(o).map((function(e){return
e.toLowerCase()})).indexOf(GO)))try{s=e(i),t.headers=co(co({},t.headers),((a={})
[GO]=String(s),a))}catch(e){}return[2,n(co(co({},r),{request:t}))]}))}))}}}
(e.bodyLengthChecker),zO)}}}(o.config)),o.middlewareStack.use(function(e)
{return{applyToStack:function(t){t.add(function(e){return function(t){return
function(n){return lo(void 0,void 0,void 0,(function(){var r,i;return ho(this,
(function(o){return UO.isInstance(n.request)?(r=n.request,(void
0===(i=(e.requestHandler.metadata||{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!
r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),VO)}}}
(o.config)),o.middlewareStack.use((o.config,{applyToStack:function(e)
{e.add((function(e,t){return function(n){return lo(void 0,void 0,void 0,(function()
{var r,i,o,s,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=uo(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}),WO)}})),o.middlewareStack.use(function(e)
{return{applyToStack:function(t){t.add(function(e){return function(t){return
function(n){return lo(void 0,void 0,void 0,(function(){var r,i,o,s;return ho(this,
(function(a){return r=n.request,!UO.isInstance(r)||"node"!==e.runtime||
r.headers.hasOwnProperty(qO)?[2,t(n)]:
(i=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID,
(s=function(e){return"string"==typeof e&&e.length>0})(i)&&s(o)&&(r.headers[qO]=o),
[2,t(co(co({},n),{request:r}))])}))}))}}}(e),KO)}}}
(o.config)),o.middlewareStack.use(function(e){return{applyToStack:function(t)
{t.addRelativeTo(function(e){return function(t,n){return function(r){var
i,o,s;return lo(this,void 0,void 0,(function(){var a,c,u,l,h,d,f;return ho(this,
(function(p){switch(p.label){case 0:return UO.isInstance(r.request)?
(a=null===(s=null===(o=null===(i=n.endpointV2)||void 0===i?void 0:i.properties)||
void 0===o?void 0:o.authSchemes)||void 0===s?void 0:s[0],[4,e.signer(a)]):
[2,t(r)];case 1:return c=p.sent(),l=t,h=[co({},r)],f={},[4,c.sign(r.request,
{signingDate:Zx(e.systemClockOffset),signingRegion:n.signing_region,signingService:
n.signing_service})];case 2:return[4,l.apply(void 0,[co.apply(void
0,h.concat([(f.request=p.sent(),f)]))]).catch((function(t){var n,r=null!
==(n=t.ServerTime)&&void 0!==n?n:eI(t.$response);throw
r&&(e.systemClockOffset=Jx(r,e.systemClockOffset)),t}))];case 3:return u=p.sent(),
(d=eI(u.response))&&(e.systemClockOffset=Jx(d,e.systemClockOffset)),[2,u]}}))}))}}}
(e),tI)}}}(o.config)),o.middlewareStack.use((r=o.config,{applyToStack:function(e)
{var t;e.add((t=r,function(e,n){return function(r){return lo(void 0,void 0,void 0,
(function(){var i,o,s,a,c,u,l,h,d;return ho(this,(function(f){switch(f.label){case
0:return i=r.request,UO.isInstance(i)?(o=i.headers,s=(null===(h=null==n?void
0:n.userAgent)||void 0===h?void 0:h.map(oI))||[],[4,t.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=f.sent().map(oI),c=(null===(d=null==t?void
0:t.customUserAgent)||void 0===d?void 0:d.map(oI))||[],u=mo(mo(mo([],po(a),!
1),po(s),!1),po(c),!1).join(" "),l=mo(mo([],po(a.filter((function(e){return
e.startsWith("aws-sdk-")}))),!1),po(c),!1).join(" "),"browser"!==t.runtime?
(l&&(o[rI]=o[rI]?"".concat(o[nI]," ").concat(l):l),o[nI]=u):o[rI]=u,
[2,e(co(co({},r),{request:i}))]}}))}))}}),sI)}})),o}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(lI),sP={name:"deserializerMiddleware",step:"deserialize",tags:
["DESERIALIZER"],override:!
0},aP={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!
0};function cP(e,t,n){return{applyToStack:function(r){r.add(function(e,t){return
function(n,r){return function(r){return lo(void 0,void 0,void 0,(function(){var
i,o,s;return ho(this,(function(a){switch(a.label){case 0:return[4,n(r)];case
1:i=a.sent().response,a.label=2;case 2:return a.trys.push([2,4,,5]),[4,t(i,e)];case
3:return o=a.sent(),[2,{response:i,output:o}];case 4:throw
s=a.sent(),Object.defineProperty(s,"$response",{value:i}),s;case
5:return[2]}}))}))}}}(e,n),sP),r.add(function(e,t){return function(n,r){return
function(i){return lo(void 0,void 0,void 0,(function(){var o,s,a;return ho(this,
(function(c){switch(c.label){case 0:if(!(o=(null===(a=r.endpointV2)||void 0===a?
void 0:a.url)&&e.urlParser?function(){return lo(void 0,void 0,void 0,(function()
{return ho(this,(function(t)
{return[2,e.urlParser(r.endpointV2.url)]}))}))}:e.endpoint))throw new Error("No
valid endpoint provider available.");return[4,t(i.input,co(co({},e),
{endpoint:o}))];case 1:return s=c.sent(),[2,n(co(co({},i),{request:s}))]}}))}))}}}
(e,t),aP)}}}var uP,lP,hP,dP,fP=function(e){function t(n){var r=e.call(this,n)||
this;return Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}
(TI),pP=function(e){function t(n){var r=e.call(this,co({name:"BadRequestException",
$fault:"client"},n))||this;return r.name="BadRequestException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}
(fP),gP=function(e){function t(n){var r=e.call(this,co({name:"ConflictException",
$fault:"client"},n))||this;return r.name="ConflictException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}
(fP),mP=function(e){function t(n){var
r=e.call(this,co({name:"InternalFailureException",$fault:"server"},n))||this;return
r.name="InternalFailureException",r.
$fault="server",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}
(fP),vP=function(e){function t(n){var
r=e.call(this,co({name:"LimitExceededException",$fault:"client"},n))||this;return
r.name="LimitExceededException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.retryAfterSeconds=n.retryAft
erSeconds,r}return Rr(t,e),t}(fP),bP=function(e){function t(n){var
r=e.call(this,co({name:"NotFoundException",$fault:"client"},n))||this;return
r.name="NotFoundException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}(fP);!
function(e)
{e.FAILED="Failed",e.FULFILLED="Fulfilled",e.READY_FOR_FULFILLMENT="ReadyForFulfill
ment"}(uP||(uP={})),function(e)
{e.COMPOSITE="Composite",e.CUSTOM_PAYLOAD="CustomPayload",e.PLAIN_TEXT="PlainText",
e.SSML="SSML"}(lP||(lP={})),function(e)
{e.CLOSE="Close",e.CONFIRM_INTENT="ConfirmIntent",e.DELEGATE="Delegate",e.ELICIT_IN
TENT="ElicitIntent",e.ELICIT_SLOT="ElicitSlot"}(hP||(hP={})),function(e)
{e.CONFIRMED="Confirmed",e.DENIED="Denied",e.NONE="None"}(dP||(dP={}));var
yP,wP=function(e){function t(n){var r=e.call(this,co({name:"BadGatewayException",
$fault:"server"},n))||this;return r.name="BadGatewayException",r.
$fault="server",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(fP),_P=function(e){function t(n){var
r=e.call(this,co({name:"DependencyFailedException",$fault:"client"},n))||
this;return r.name="DependencyFailedException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(fP),EP=function(e){function t(n){var
r=e.call(this,co({name:"LoopDetectedException",$fault:"server"},n))||this;return
r.name="LoopDetectedException",r.
$fault="server",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(fP),SP=function(e){function t(n){var
r=e.call(this,co({name:"NotAcceptableException",$fault:"client"},n))||this;return
r.name="NotAcceptableException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}(fP);!
function(e)
{e.CONFIRM_INTENT="ConfirmIntent",e.ELICIT_INTENT="ElicitIntent",e.ELICIT_SLOT="Eli
citSlot",e.FAILED="Failed",e.FULFILLED="Fulfilled",e.READY_FOR_FULFILLMENT="ReadyFo
rFulfillment"}(yP||(yP={}));var
TP,AP=function(e){function t(n){var
r=e.call(this,co({name:"RequestTimeoutException",$fault:"client"},n))||this;return
r.name="RequestTimeoutException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}
(fP),CP=function(e){function t(n){var
r=e.call(this,co({name:"UnsupportedMediaTypeException",$fault:"client"},n))||
this;return r.name="UnsupportedMediaTypeException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}(fP);!
function(e){e.GENERIC="application/vnd.amazonaws.card.generic"}(TP||(TP={}));var
OP=function(e){return
co(co(co(co({},e),e.sessionAttributes&&{sessionAttributes:dI}),e.requestAttributes&
&{requestAttributes:dI}),e.activeContexts&&{activeContexts:dI})},xP=function(e)
{return
co(co(co(co(co({},e),e.message&&{message:dI}),e.encodedMessage&&{encodedMessage:dI}
),e.encodedInputTranscript&&{encodedInputTranscript:dI}),e.activeContexts&&{activeC
ontexts:dI})},IP=function(e){return
co(co(co(co(co({},e),e.sessionAttributes&&{sessionAttributes:dI}),e.requestAttribut
es&&{requestAttributes:dI}),e.inputText&&{inputText:dI}),e.activeContexts&&{activeC
ontexts:dI})},PP=function(e){return
co(co(co(co(co(co({},e),e.alternativeIntents&&{alternativeIntents:e.alternativeInte
nts.map((function(e){return function(e){return co(co({},e),e.slots&&{slots:dI})}
(e)}))}),e.slots&&{slots:dI}),e.sessionAttributes&&{sessionAttributes:dI}),e.messag
e&&{message:dI}),e.activeContexts&&{activeContexts:dI})},DP=function(e,t){return
lo(void 0,void 0,void 0,(function(){var n,r,i,o,s;return ho(this,(function(a)
{switch(a.label){case 0:return r=[co({},e)],s={},[4,oD(e.body,t)];case
1:switch(n=co.apply(void 0,r.concat([(s.body=a.sent(),s)])),i=sD(e,n.body))
{case"BadGatewayException":case"com.amazonaws.lexruntimeservice#BadGatewayException
":return[3,2];case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadReq
uestException":return[3,4];case"ConflictException":case"com.amazonaws.lexruntimeser
vice#ConflictException":return[3,6];case"DependencyFailedException":case"com.amazon
aws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureEx
ception":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10
];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededEx
ception":return[3,12];case"LoopDetectedException":case"com.amazonaws.lexruntimeserv
ice#LoopDetectedException":return[3,14];case"NotAcceptableException":case"com.amazo
naws.lexruntimeservice#NotAcceptableException":return[3,16];case"NotFoundException"
:case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,18];case"RequestT
imeoutException":case"com.amazonaws.lexruntimeservice#RequestTimeoutException":retu
rn[3,20];case"UnsupportedMediaTypeException":case"com.amazonaws.lexruntimeservice#U
nsupportedMediaTypeException":return[3,22]}return[3,24];case
2:return[4,MP(n,t)];case 3:throw a.sent();case 4:return[4,NP(n,t)];case 5:throw
a.sent();case 6:return[4,LP(n,t)];case 7:throw a.sent();case
8:return[4,FP(n,t)];case 9:throw a.sent();case 10:return[4,jP(n,t)];case 11:throw
a.sent();case 12:return[4,BP(n,t)];case 13:throw a.sent();case
14:return[4,UP(n,t)];case 15:throw a.sent();case 16:return[4,HP(n,t)];case 17:throw
a.sent();case 18:return[4,GP(n,t)];case 19:throw a.sent();case
20:return[4,zP(n,t)];case 21:throw a.sent();case 22:return[4,VP(n,t)];case 23:throw
a.sent();case
24:o=n.body,CI({output:e,parsedBody:o,exceptionCtor:fP,errorCode:i}),a.label=25;cas
e 25:return[2]}}))}))},kP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,oD(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=sD(e,n.body))
{case"BadGatewayException":case"com.amazonaws.lexruntimeservice#BadGatewayException
":return[3,2];case"BadRequestException":case"com.amazonaws.lexruntimeservice#BadReq
uestException":return[3,4];case"ConflictException":case"com.amazonaws.lexruntimeser
vice#ConflictException":return[3,6];case"DependencyFailedException":case"com.amazon
aws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureEx
ception":case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10
];case"LimitExceededException":case"com.amazonaws.lexruntimeservice#LimitExceededEx
ception":return[3,12];case"LoopDetectedException":case"com.amazonaws.lexruntimeserv
ice#LoopDetectedException":return[3,14];case"NotFoundException":case"com.amazonaws.
lexruntimeservice#NotFoundException":return[3,16]}return[3,18];case
2:return[4,MP(n,t)];case 3:throw a.sent();case 4:return[4,NP(n,t)];case 5:throw
a.sent();case 6:return[4,LP(n,t)];case 7:throw a.sent();case
8:return[4,FP(n,t)];case 9:throw a.sent();case 10:return[4,jP(n,t)];case 11:throw
a.sent();case 12:return[4,BP(n,t)];case 13:throw a.sent();case
14:return[4,UP(n,t)];case 15:throw a.sent();case 16:return[4,GP(n,t)];case 17:throw
a.sent();case
18:o=n.body,CI({output:e,parsedBody:o,exceptionCtor:fP,errorCode:i}),a.label=19;cas
e 19:return[2]}}))}))},RP=DI,MP=function(e,t){return lo(void 0,void 0,void 0,
(function(){var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).Message&&(t.Message=yI(n.Message)),r=new wP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},NP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new pP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},LP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new gP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},FP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).Message&&(t.Message=yI(n.Message)),r=new _P(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},jP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new mP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},BP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({retryAfterSeconds:
[,e.headers["retry-after"]]}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new vP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},UP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).Message&&(t.Message=yI(n.Message)),r=new EP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},HP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new SP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},GP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new bP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},zP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new AP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},VP=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=RP({}),null!
=(n=e.body).message&&(t.message=yI(n.message)),r=new CP(co({$metadata:nD(e)},t)),
[2,AI(r,e.body)]}))}))},WP=function(e,t){return
Object.entries(e).reduce((function(e,t){var n,r=po(t,2),i=r[0],o=r[1];return
null===o?e:co(co({},e),((n={})[i]=o,n))}),{})},qP=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return function(e,t)
{return co(co(co({},null!=e.name&&{name:e.name}),null!
=e.parameters&&{parameters:WP(e.parameters)}),null!
=e.timeToLive&&{timeToLive:KP(e.timeToLive,t)})}(e,t)}))},KP=function(e,t){return
co(co({},null!
=e.timeToLiveInSeconds&&{timeToLiveInSeconds:e.timeToLiveInSeconds}),null!
=e.turnsToLive&&{turnsToLive:e.turnsToLive})},YP=function(e,t){return
Object.entries(e).reduce((function(e,t){var n,r=po(t,2),i=r[0],o=r[1];return
null===o?e:co(co({},e),((n={})[i]=o,n))}),{})},$P=function(e,t){return
Object.entries(e).reduce((function(e,t){var n,r=po(t,2),i=r[0],o=r[1];return
null===o?e:co(co({},e),((n={})[i]=yI(o),n))}),{})},QP=function(e,t)
{return{timeToLiveInSeconds:pI(e.timeToLiveInSeconds),turnsToLive:pI(e.turnsToLive)
}},XP=function(e,t){var n=(e||[]).filter((function(e){return null!
=e})).map((function(e){return null===e?null:function(e,t)
{return{attachmentLinkUrl:yI(e.attachmentLinkUrl),buttons:null!=e.buttons?
JP(e.buttons,t):void
0,imageUrl:yI(e.imageUrl),subTitle:yI(e.subTitle),title:yI(e.title)}}
(e,t)}));return n},ZP=function(e,t){return{score:wI(e.score)}},JP=function(e,t)
{return(e||[]).filter((function(e){return null!=e})).map((function(e){return
null===e?null:function(e,t){return{text:yI(e.text),value:yI(e.value)}}
(e)}))},eD=function(e,t)
{return{intentName:yI(e.intentName),nluIntentConfidence:null!
=e.nluIntentConfidence?ZP(e.nluIntentConfidence):void 0,slots:null!=e.slots?
tD(e.slots,t):void 0}},tD=function(e,t){return
Object.entries(e).reduce((function(e,t){var n,r=po(t,2),i=r[0],o=r[1];return
null===o?e:co(co({},e),((n={})[i]=yI(o),n))}),{})},nD=function(e){var
t,n;return{httpStatusCode:e.statusCode,requestId:null!==(n=null!==(t=e.headers["x-
amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"])&&void 0!==n?
n:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-
2"],cfId:e.headers["x-amz-cf-id"]}},rD=function(e){return!(null==e||""===e||
Object.getOwnPropertyNames(e).includes("length")&&0==e.length||
Object.getOwnPropertyNames(e).includes("size")&&0==e.size)},iD=function(e,t){return
function(e,t){return function(e,t){return void 0===e&&(e=new Uint8Array),e
instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new
Uint8Array)}(e,t).then((function(e){return t.utf8Encoder(e)}))}
(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},oD=function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r;return ho(this,(function(i)
{switch(i.label){case 0:return[4,iD(e,t)];case 1:return(n=i.sent()).message=null!
==(r=n.message)&&void 0!==r?r:n.Message,[2,n]}}))}))},sD=function(e,t){var
n,r=function(e){var t=e;return"number"==typeof
t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")
[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")
[1]),t},i=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((function(e){return
e.toLowerCase()==="x-amzn-errortype".toLowerCase()})));return void 0!==i?
r(e.headers[i]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void
0},aD=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(cP(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LexRuntimeServiceCl
ient",commandName:"PostTextCommand",inputFilterSensitiveLog:IP,outputFilterSensitiv
eLog:PP},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return n=h.sent(),r=n.hostname,i=n.protocol,o=void
0===i?"https":i,s=n.port,a=n.path,c={"content-type":"application/json"},u="".concat
((null==a?void
0:a.endsWith("/"))?a.slice(0,-1):a||"")+"/bot/{botName}/alias/{botAlias}/user/
{userId}/text",u=MI(u,e,"botName",(function(){return e.botName}),"{botName}",!
1),u=MI(u,e,"botAlias",(function(){return e.botAlias}),"{botAlias}",!
1),u=MI(u,e,"userId",(function(){return e.userId}),"{userId}",!
1),l=JSON.stringify(co(co(co(co({},null!
=e.activeContexts&&{activeContexts:qP(e.activeContexts,t)}),null!
=e.inputText&&{inputText:e.inputText}),null!
=e.requestAttributes&&{requestAttributes:YP(e.requestAttributes)}),null!
=e.sessionAttributes&&{sessionAttributes:YP(e.sessionAttributes)})),[2,new
UO({protocol:o,hostname:r,port:s,method:"POST",headers:c,path:u,body:l})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,kP(e,t)]:
(n=RP({$metadata:nD(e)}),i=vI,o=bI,[4,iD(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).activeContexts&&(n.activeContexts=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{name:yI(e.name),parameters:null!=e.parameters?
$P(e.parameters):void 0,timeToLive:null!=e.timeToLive?QP(e.timeToLive,t):void 0}}
(e,t)}));return n}(r.activeContexts,t)),null!
=r.alternativeIntents&&(n.alternativeIntents=function(e,t){return(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:eD(e,t)}))}(r.alternativeIntents,t)),null!
=r.botVersion&&(n.botVersion=yI(r.botVersion)),null!
=r.dialogState&&(n.dialogState=yI(r.dialogState)),null!
=r.intentName&&(n.intentName=yI(r.intentName)),null!
=r.message&&(n.message=yI(r.message)),null!
=r.messageFormat&&(n.messageFormat=yI(r.messageFormat)),null!
=r.nluIntentConfidence&&(n.nluIntentConfidence=ZP(r.nluIntentConfidence)),null!
=r.responseCard&&(n.responseCard=function(e,t)
{return{contentType:yI(e.contentType),genericAttachments:null!
=e.genericAttachments?XP(e.genericAttachments,t):void 0,version:yI(e.version)}}
(r.responseCard,t)),null!=r.sentimentResponse&&(n.sentimentResponse=function(e,t)
{return{sentimentLabel:yI(e.sentimentLabel),sentimentScore:yI(e.sentimentScore)}}
(r.sentimentResponse)),null!
=r.sessionAttributes&&(n.sessionAttributes=tD(r.sessionAttributes,t)),null!
=r.sessionId&&(n.sessionId=yI(r.sessionId)),null!
=r.slotToElicit&&(n.slotToElicit=yI(r.slotToElicit)),null!
=r.slots&&(n.slots=tD(r.slots,t)),[2,n]}}))}))}(e,t)},t}(hI),cD=function(e)
{function t(t){var n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(cP(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LexRuntimeServiceCl
ient",commandName:"PostContentCommand",inputFilterSensitiveLog:OP,outputFilterSensi
tiveLog:xP},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return n=h.sent(),r=n.hostname,i=n.protocol,o=void
0===i?"https":i,s=n.port,a=n.path,c=RP({},rD,{"x-amz-content-sha256":"UNSIGNED-
PAYLOAD","content-type":e.contentType||"application/octet-stream","x-amz-lex-
session-attributes":[function(){return rD(e.sessionAttributes)},function(){return
t.base64Encoder(Buffer.from(PI.fromObject(e.sessionAttributes)))}],"x-amz-lex-
request-attributes":[function(){return rD(e.requestAttributes)},function(){return
t.base64Encoder(Buffer.from(PI.fromObject(e.requestAttributes)))}],accept:e.accept,
"x-amz-lex-active-contexts":[function(){return rD(e.activeContexts)},function()
{return
t.base64Encoder(Buffer.from(PI.fromObject(e.activeContexts)))}]}),u="".concat((null
==a?void 0:a.endsWith("/"))?a.slice(0,-1):a||"")+"/bot/{botName}/alias/{botAlias}/
user/{userId}/content",u=MI(u,e,"botName",(function(){return
e.botName}),"{botName}",!1),u=MI(u,e,"botAlias",(function(){return
e.botAlias}),"{botAlias}",!1),u=MI(u,e,"userId",(function(){return
e.userId}),"{userId}",!1),void 0!==e.inputStream&&(l=e.inputStream),[2,new
UO({protocol:o,hostname:r,port:s,method:"POST",headers:c,path:u,body:l})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return 200!
==e.statusCode&&e.statusCode>=300?[2,DP(e,t)]:(n=RP({$metadata:nD(e),contentType:
[,e.headers["content-type"]],intentName:[,e.headers["x-amz-lex-intent-
name"]],nluIntentConfidence:[function(){return void 0!==e.headers["x-amz-lex-nlu-
intent-confidence"]},function(){return new
PI(Buffer.from(t.base64Decoder(e.headers["x-amz-lex-nlu-intent-
confidence"])).toString("utf8"))}],alternativeIntents:[function(){return void 0!
==e.headers["x-amz-lex-alternative-intents"]},function(){return new
PI(Buffer.from(t.base64Decoder(e.headers["x-amz-lex-alternative-
intents"])).toString("utf8"))}],slots:[function(){return void 0!==e.headers["x-amz-
lex-slots"]},function(){return new PI(Buffer.from(t.base64Decoder(e.headers["x-amz-
lex-slots"])).toString("utf8"))}],sessionAttributes:[function(){return void 0!
==e.headers["x-amz-lex-session-attributes"]},function(){return new
PI(Buffer.from(t.base64Decoder(e.headers["x-amz-lex-session-
attributes"])).toString("utf8"))}],sentimentResponse:[,e.headers["x-amz-lex-
sentiment"]],message:[,e.headers["x-amz-lex-message"]],encodedMessage:
[,e.headers["x-amz-lex-encoded-message"]],messageFormat:[,e.headers["x-amz-lex-
message-format"]],dialogState:[,e.headers["x-amz-lex-dialog-state"]],slotToElicit:
[,e.headers["x-amz-lex-slot-to-elicit"]],inputTranscript:[,e.headers["x-amz-lex-
input-transcript"]],encodedInputTranscript:[,e.headers["x-amz-lex-encoded-input-
transcript"]],botVersion:[,e.headers["x-amz-lex-bot-version"]],sessionId:
[,e.headers["x-amz-lex-session-id"]],activeContexts:[function(){return void 0!
==e.headers["x-amz-lex-active-contexts"]},function(){return new
PI(Buffer.from(t.base64Decoder(e.headers["x-amz-lex-active-
contexts"])).toString("utf8"))}]}),r=e.body,n.audioStream=r,[2,n])}))}))}(e,t)},t}
(hI),uD=function(e){return IO(void 0,void 0,void 0,(function(){return PO(this,
(function(t){return e instanceof Blob||e instanceof ReadableStream?[2,new
Response(e).arrayBuffer().then((function(e){return new Uint8Array(e)}))]:
[2,Promise.reject("Invalid content type")]}))}))},lD=new
h("AWSLexProvider"),hD=function(e){function t(t){void 0===t&&(t={});var
n=e.call(this,t)||this;return n._botsCompleteCallback={},n}return function(e,t)
{function n(){this.constructor=e}OO(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}(t,e),t.prototype.getProviderName=function()
{return"AWSLexProvider"},t.prototype.configure=function(t){void 0===t&&(t={});var
n=["name","alias","region"];return Object.keys(t).forEach((function(e){var
r=t[e];if(!n.every((function(e){return e in r})))throw new Error("invalid bot
configuration")})),e.prototype.configure.call(this,t)},t.prototype.reportBotStatus=
function(e,t){var n=this;lD.debug("postContent
state",e.dialogState),"ReadyForFulfillment"!==e.dialogState&&"Fulfilled"!
==e.dialogState||("function"==typeof
this._botsCompleteCallback[t]&&setTimeout((function(){return
n._botsCompleteCallback[t](null,e)}),0),this._config&&"function"==typeof
this._config[t].onComplete&&setTimeout((function(){return
n._config[t].onComplete(null,e)}),0)),"Failed"===e.dialogState&&("function"==typeof
this._botsCompleteCallback[t]&&setTimeout((function(){return
n._botsCompleteCallback[t]("Bot conversation
failed")}),0),this._config&&"function"==typeof
this._config[t].onComplete&&setTimeout((function(){return
n._config[t].onComplete("Bot conversation
failed")}),0))},t.prototype.sendMessage=function(e,t){return IO(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p;return PO(this,(function(g)
{switch(g.label){case 0:if(!this._config[e])return[2,Promise.reject("Bot "+e+" does
not exist")];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Tn.get()];case
2:return n=g.sent(),[3,4];case 3:return g.sent(),[2,Promise.reject("No
credentials")];case 4:if(this.lexRuntimeServiceClient=new
oP({region:this._config[e].region,credentials:n,customUserAgent:cn()}),"string"!
=typeof
t)return[3,9];r={botAlias:this._config[e].alias,botName:e,inputText:t,userId:n.iden
tityId},lD.debug("postText to lex",t),g.label=5;case 5:return
g.trys.push([5,7,,8]),i=new aD(r),[4,this.lexRuntimeServiceClient.send(i)];case
6:return l=g.sent(),this.reportBotStatus(l,e),[2,l];case 7:return o=g.sent(),
[2,Promise.reject(o)];case 8:return[3,21];case 9:return s=t.content,"voice"!
==t.options.messageType?[3,13]:"object"!=typeof s?[2,Promise.reject("invalid
content type")]:s instanceof Uint8Array?(c=s,[3,12]):[3,10];case
10:return[4,uD(s)];case 11:c=g.sent(),g.label=12;case 12:return
a=c,r={botAlias:this._config[e].alias,botName:e,contentType:"audio/x-l16; sample-
rate=16000;
channel-count=1",userId:n.identityId,accept:"audio/mpeg",inputStream:a},[3,14];case
13:if("string"!=typeof s)return[2,Promise.reject("invalid content
type")];r={botAlias:this._config[e].alias,botName:e,contentType:"text/plain;
charset=utf-8",inputStream:s,userId:n.identityId,accept:"audio/mpeg"},g.label=14;ca
se 14:lD.debug("postContent to lex",t),g.label=15;case 15:return
g.trys.push([15,20,,21]),u=new cD(r),[4,this.lexRuntimeServiceClient.send(u)];case
16:return(l=g.sent()).audioStream?[4,uD(l.audioStream)]:[3,18];case 17:return
d=g.sent(),[3,19];case 18:d=void 0,g.label=19;case 19:return h=d,f=xO(xO({},l),
{audioStream:h}),this.reportBotStatus(f,e),[2,f];case 20:return p=g.sent(),
[2,Promise.reject(p)];case
21:return[2]}}))}))},t.prototype.onComplete=function(e,t){if(!this._config[e])throw
new Error("Bot "+e+" does not exist");this._botsCompleteCallback[e]=t},t}
(RO),dD=new h("Interactions"),fD=function(){function e(e){void
0===e&&(e={}),this._options=e,dD.debug("Interactions
Options",this._options),this._pluggables={}}return
e.prototype.getModuleName=function()
{return"Interactions"},e.prototype.configure=function(e){var t=this,n=e?
e.Interactions||e:{};dD.debug("configure Interactions",
{opt:n}),this._options=xO(xO({bots:{}},n),n.Interactions);var
r=this._options.aws_bots_config,i=this._options.bots;return!
Object.keys(i).length&&r&&Array.isArray(r)&&r.forEach((function(e)
{t._options.bots[e.name]=e})),Object.keys(i).forEach((function(e){var
n,r=i[e],o=r.providerName||"AWSLexProvider";t._pluggables.AWSLexProvider||"AWSLexPr
ovider"!==o||(t._pluggables.AWSLexProvider=new hD),t._pluggables[o]?
t._pluggables[o].configure(((n={})[r.name]=r,n)):dD.debug("bot "+r.name+" was not
configured as "+o+" provider was not
found")})),this._options},e.prototype.addPluggable=function(e){var
t=this;if(e&&"Interactions"===e.getCategory())
{if(this._pluggables[e.getProviderName()])throw new Error("Pluggable
"+e.getProviderName()+" already plugged");return
Object.keys(this._options.bots).filter((function(n){return
t._options.bots[n].providerName===e.getProviderName()})).forEach((function(n){var
r,i=t._options.bots[n];e.configure(((r={})
[i.name]=i,r))})),void(this._pluggables[e.getProviderName()]=e)}},e.prototype.send=
function(e,t){return IO(this,void 0,void 0,(function(){var n;return PO(this,
(function(r){switch(r.label){case 0:return
this._options.bots&&this._options.bots[e]?
(n=this._options.bots[e].providerName||"AWSLexProvider",this._pluggables[n]?
[4,this._pluggables[n].sendMessage(e,t)]:[2,Promise.reject("Bot "+n+" does not have
valid pluggin did you try addPluggable first?")]):[2,Promise.reject("Bot "+e+" does
not exist")];case 1:return[2,r.sent()]}}))}))},e.prototype.onComplete=function(e,t)
{if(!this._options.bots||!this._options.bots[e])throw new Error("Bot "+e+" does not
exist");var n=this._options.bots[e].providerName||"AWSLexProvider";if(!
this._pluggables[n])throw new Error("Bot "+n+" does not have valid pluggin did you
try addPluggable first?");this._pluggables[n].onComplete(e,t)},e}(),pD=new
fD;p.register(pD);var gD=n(35676),mD=n.n(gD),vD={},bD=function(e){for(var
t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];null===(t=vD[e])||void
0===t||t.forEach((function(e){e.handleEvent.apply(e,go(n))}))},yD=function(e,t)
{vD[e]||(vD[e]=new Set);var n={handleEvent:t,remove:function()
{vD[e].delete(n)}};return vD[e].add(n),n},wD=gn(xn,(function(e,t){var
n=e.ApplicationId,r=e.EndpointId,i=new URL(t.url);return
i.pathname="v1/apps/".concat(In(n),"/endpoints/").concat(In(r),"/inappmessages"),
{method:"GET",headers:{"content-type":"application/json"},url:i}}),(function(e)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}}(this,(function(t){switch(t.label){case 0:return
e.statusCode>=300?[4,Nt(e)]:[3,2];case 1:throw t.sent();case 2:return[4,Lt(e)];case
3:return[2,{InAppMessagesResponse:
{InAppMessageCampaigns:t.sent().InAppMessageCampaigns},
$metadata:Dt(e)}]}}))}))}),Dn),_D=n(60407),ED=function(){function e(e){var
t,n=this;this.config={},this.endpointInitialized=!1,this.initialized=!
1,this.identifyUser=function(e,t){return lo(n,void 0,void 0,(function(){var
n;return ho(this,(function(r){switch(r.label){case 0:return this.initialized?[3,2]:
[4,this.init()];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),
[4,this.updateEndpoint(e,t)];case 3:return r.sent(),[3,5];case 4:throw
n=r.sent(),this.logger.error("Error identifying user",n),n;case
5:return[2]}}))}))},this.init=function(){return lo(n,void 0,void 0,(function(){var
e,t,n,r,i,o;return ho(this,(function(s){switch(s.label){case
0:e=this.config,t=e.endpointId,n=e.storage,r=this.getProviderName(),s.label=1;case
1:return s.trys.push([1,6,,7]),"function"!=typeof n.sync?[3,3]:[4,n.sync()];case
2:s.sent(),s.label=3;case 3:return t?[3,5]:(i=this.config,
[4,this.getEndpointId()]);case 4:i.endpointId=s.sent(),s.label=5;case 5:return
this.initialized=!0,[3,7];case 6:return o=s.sent(),this.logger.error("Failed to
initialize "+r,o),[3,7];case 7:return[2]}}))}))},this.getUserAgentValue=function()
{var e;return e="PushNotification"===n.getSubCategory()?
{category:Y.PushNotification,action:ie.None}:
{category:Y.InAppMessaging,action:ee.None},un(e)},this.recordAnalyticsEvent=functio
n(e){return lo(n,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return ho(this,
(function(h){switch(h.label){case 0:return t=this.config,
[4,this.getCredentials()];case
1:t.credentials=h.sent(),this.assertNotEmptyConfiguration(),n=this.config,r=n.appId
,i=n.credentials,o=n.endpointId,s=n.region,h.label=2;case 2:return
h.trys.push([2,4,,5]),a={ApplicationId:r,EventsRequest:{BatchItem:
(u={},u[o]={Endpoint:{},Events:(l={},l[(0,_D.v4)
()]=e,l)},u)}},this.logger.debug("recording analytics event"),
[4,kn({credentials:i,region:s,userAgentValue:this.getUserAgentValue()},a)];case
3:return h.sent(),[3,5];case 4:throw c=h.sent(),this.logger.error("Error recording
analytics event",c),c;case 5:return[2]}}))}))},this.updateEndpoint=function(e,t)
{return void 0===e&&(e=null),void 0===t&&(t=null),lo(n,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A=this;return ho(this,
(function(C){switch(C.label){case 0:return[4,this.getCredentials()];case
1:if(n=C.sent(),r=!this.config.credentials||Object.keys(n).some((function(e){return
n[e]!==A.config.credentials[e]})),this.endpointInitialized&&!r&&!e&&!
t)return[2];this.config.credentials=n,this.assertNotEmptyConfiguration(),i=this.con
fig,o=i.appId,s=i.endpointId,a=i.endpointInfo,c=void 0===a?
{}:a,u=i.region,C.label=2;case 2:return C.trys.push([2,4,,5]),h=(l=null!=t?t:
{}).address,d=l.attributes,f=l.demographic,p=l.location,g=l.metrics,m=l.optOut,v=th
is.clientInfo,b=v.appVersion,y=v.make,w=v.model,_=v.platform,E=v.version,S={Applica
tionId:o,EndpointId:s,EndpointRequest:{RequestId:(0,_D.v4)(),EffectiveDate:(new
Date).toISOString(),ChannelType:c.channelType,Address:null!=h?
h:c.address,Attributes:co(co({},c.attributes),d),Demographic:co({AppVersion:b,Make:
y,Model:w,ModelVersion:E,Platform:_},Ke(co(co({},c.demographic),f))),Location:Ke(co
(co({},c.location),p)),Metrics:co(co({},c.metrics),g),OptOut:null!=m?
m:c.optOut,User:{UserId:null!==(T=null!=e?e:c.userId)&&void 0!==T?
T:n.identityId,UserAttributes:null!=d?
d:c.userAttributes}}},this.logger.debug("updating endpoint"),
[4,Rn({credentials:n,region:u,userAgentValue:this.getUserAgentValue()},S)];case
3:return C.sent(),this.endpointInitialized=!0,[3,5];case 4:throw C.sent();case
5:return[2]}}))}))},this.getEndpointId=function(){return lo(n,void 0,void 0,
(function(){var e,t,n,r,i;return ho(this,(function(o){switch(o.label){case 0:return
e=this.config.appId,t="PushNotification"===this.getSubCategory()?
this.getProviderName()+"_"+e:this.getSubCategory()+":"+this.getProviderName()
+":"+e,[4,W.getItem(t)];case 1:return(n=o.sent())?[2,n]:(r=(0,_D.v4)(),i=(new
Date).getTime()+31536e8,W.setItem(t,r,{expires:i,priority:1}),
[2,r])}}))}))},this.getCredentials=function(){return lo(n,void 0,void 0,(function()
{var e,t;return ho(this,(function(n){switch(n.label){case 0:return
n.trys.push([0,2,,3]),[4,Tn.get()];case 1:return(e=n.sent())?[2,Tn.shear(e)]:
(this.logger.debug("no credentials found"),[2,null]);case 2:return
t=n.sent(),this.logger.error("Error getting credentials:",t),[2,null];case
3:return[2]}}))}))},this.assertNotEmptyConfiguration=function(){var
e=n.config,t=e.appId,r=e.credentials,i=e.region;if(!t||!r||!i)throw new Error("One
or more of credentials, appId or region is not configured")},this.config={storage:
(new N).getStorage()},this.clientInfo=null!==(t=se.clientInfo())&&void 0!==t?t:
{},this.logger=e}return e.prototype.getCategory=function(){return
e.category},e.prototype.getProviderName=function(){return
e.providerName},e.prototype.configure=function(e){return void
0===e&&(e={}),this.config=co(co({},this.config),e),this.logger.debug("configure
"+this.getProviderName()+this.getSubCategory()
+"Provider",this.config),this.config},e.category="Notifications",e.providerName="AW
SPinpoint",e}();const SD=ED;var
TD,AD,CD=n(34291),OD=n.n(CD),xD=We().isBrowser;xD&&document&&(void 0!
==document.hidden?(TD="hidden",AD="visibilitychange"):void 0!==document.msHidden?
(TD="msHidden",AD="msvisibilitychange"):void 0!
==document.webkitHidden&&(TD="webkitHidden",AD="webkitvisibilitychange"));var
ID=new h("InAppMessagingSessionTracker");const PD=function(e){var t=this;void
0===e&&(e=OD()),this.start=function(){return xD&&(null===document||void
0===document||
document.addEventListener(AD,t.visibilityChangeHandler)),t.getSessionState()},this.
end=function(){return xD&&(null===document||void 0===document||
document.removeEventListener(AD,t.visibilityChangeHandler)),t.getSessionState()},th
is.getSessionState=function(){return xD&&document&&!
document[TD]?"started":"ended"},this.visibilityChangeHandler=function()
{xD&&document&&(document[TD]?(ID.debug("App is now
hidden"),t.sessionStateChangeHandler("ended")):(ID.debug("App is now
visible"),t.sessionStateChangeHandler("started")))},this.sessionStateChangeHandler=
e};var DD,kD;!function(e)
{e.MESSAGE_RECEIVED="MESSAGE_RECEIVED_EVENT",e.MESSAGE_DISPLAYED="MESSAGE_DISPLAYED
_EVENT",e.MESSAGE_DISMISSED="MESSAGE_DISMISSED_EVENT",e.MESSAGE_ACTION_TAKEN="MESSA
GE_ACTION_TAKEN_EVENT"}(DD||(DD={})),function(e)
{e.MESSAGE_DISPLAYED="_inapp.message_displayed",e.MESSAGE_DISMISSED="_inapp.message
_dismissed",e.MESSAGE_ACTION_TAKEN="_inapp.message_clicked"}(kD||(kD={}));var
RD="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?
Symbol.for("amplify_default"):"@@amplify_default",MD={},ND={},LD={},FD=new
h("InAppMessaging.AWSPinpointProvider"),jD=function(e,t,n)
{x.dispatch("inAppMessaging",
{event:e,data:t,message:n},"InAppMessaging",RD)},BD=function(){var e=new
Date;return e.setHours(0,0,0,0),e.toISOString()},UD=function(e){var
t,n,r=e.InAppMessage;return null!==(n=null===(t=null==r?void 0:r.Content)||void
0===t?void 0:t.map((function(e){var
t=e.BackgroundColor,n=e.BodyConfig,r=e.HeaderConfig,i=e.ImageUrl,o=e.PrimaryBtn,s=e
.SecondaryBtn,a=null==o?void 0:o.DefaultConfig,c=null==s?void
0:s.DefaultConfig,u={};return t&&(u.container={style:
{backgroundColor:t}}),r&&(u.header={content:r.Header,style:
{color:r.TextColor,textAlign:r.Alignment.toLowerCase()}}),n&&(u.body={content:n.Bod
y,style:
{color:n.TextColor,textAlign:n.Alignment.toLowerCase()}}),i&&(u.image={src:i}),a&&(
u.primaryButton={title:a.Text,action:a.ButtonAction,url:a.Link,style:
{backgroundColor:a.BackgroundColor,borderRadius:a.BorderRadius,color:a.TextColor}})
,c&&(u.secondaryButton={title:c.Text,action:c.ButtonAction,url:c.Link,style:
{backgroundColor:c.BackgroundColor,borderRadius:c.BorderRadius,color:c.TextColor}})
,u})))&&void 0!==n?n:[]},HD=function(e){var
t=e.InAppMessage,n=e.Priority,r=e.Schedule,i=e.TreatmentId;return{customData:null==
t?void 0:t.CustomConfig,endDate:null==r?void
0:r.EndDate,priority:n,treatmentId:i}},GD="pinpointProvider_inAppMessages_dailyCoun
t",zD="pinpointProvider_inAppMessages_totalCount",VD=function(e){function t(){var
t=e.call(this,FD)||this;return t.configured=!1,t.configure=function(n){return void
0===n&&(n={}),t.config=co(co({},e.prototype.configure.call(t,n)),{endpointInfo:
{channelType:"IN_APP"}}),t.configured||(t.sessionTracker=new
PD(t.sessionStateChangeHandler),t.sessionTracker.start(),yD(DD.MESSAGE_DISPLAYED,
(function(e)
{t.recordMessageEvent(e,kD.MESSAGE_DISPLAYED)})),yD(DD.MESSAGE_DISMISSED,
(function(e)
{t.recordMessageEvent(e,kD.MESSAGE_DISMISSED)})),yD(DD.MESSAGE_ACTION_TAKEN,
(function(e){t.recordMessageEvent(e,kD.MESSAGE_ACTION_TAKEN)}))),t.configured=!
0,jD("pinpointProvider_configured",null),t.config},t.getInAppMessages=function()
{return lo(t,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,c;return ho(this,
(function(u){switch(u.label){case 0:return this.initialized?[3,2]:
[4,this.init()];case 1:u.sent(),u.label=2;case 2:MD={},ND={},LD={},u.label=3;case
3:return u.trys.push([3,6,,7]),[4,this.updateEndpoint()];case 4:return
u.sent(),e=this.config,t=e.appId,n=e.credentials,r=e.endpointId,i=e.region,o={Appli
cationId:t,EndpointId:r},this.logger.debug("getting in-app messages"),
[4,wD({credentials:n,region:i},o)];case 5:return
s=u.sent(),a=s.InAppMessagesResponse.InAppMessageCampaigns,jD("getInAppMessages",a)
,[2,a];case 6:throw c=u.sent(),this.logger.error("Error getting in-app
messages",c),c;case 7:return[2]}}))}))},t.processInAppMessages=function(e,n){return
lo(t,void 0,void 0,(function(){var t,r=this;return ho(this,(function(i)
{switch(i.label){case 0:return this.initialized?[3,2]:[4,this.init()];case
1:i.sent(),i.label=2;case 2:return[2,this.normalizeMessages(e.reduce((function(e,i)
{var o=function(e,t){var
n,r=e.CampaignId,i=e.Schedule,o=t.name,s=(null===(n=null==i?void 0:i.EventFilter)||
void 0===n?void 0:n.Dimensions).EventType,a=r+":"+o;return MD.hasOwnProperty(a)||
(MD[a]=!!(null==s?void 0:s.Values.includes(o))),MD[a]}(i,n)&&function(e,t){var
n,r=e.CampaignId,i=e.Schedule,o=t.attributes,s=(null===(n=null==i?void
0:i.EventFilter)||void 0===n?void 0:n.Dimensions).Attributes;if(zd()(s))return!
0;if(zd()(o))return!1;var a=r+":"+JSON.stringify(o);return ND.hasOwnProperty(a)||
(ND[a]=Object.entries(s).every((function(e){var t=po(e,2),n=t[0];return
t[1].Values.includes(o[n])}))),ND[a]}(i,n)&&function(e,t){var
n,r=e.CampaignId,i=e.Schedule,o=t.metrics,s=(null===(n=null==i?void
0:i.EventFilter)||void 0===n?void 0:n.Dimensions).Metrics;if(zd()(s))return!
0;if(zd()(o))return!1;var a=r+":"+JSON.stringify(o);return LD.hasOwnProperty(a)||
(LD[a]=Object.entries(s).every((function(e){var
t=po(e,2),n=t[0],r=t[1],i=r.ComparisonOperator,s=r.Value,a=function(e){switch(e)
{case"EQUAL":return function(e,t){return e===t};case"GREATER_THAN":return
function(e,t){return e<t};case"GREATER_THAN_OR_EQUAL":return function(e,t){return
e<=t};case"LESS_THAN":return function(e,t){return
e>t};case"LESS_THAN_OR_EQUAL":return function(e,t){return e>=t};default:return
null}}(i);return!!a&&a(s,o[n])}))),LD[a]}(i,n)&&function(e){var
t=e.Schedule;return!(null==t?void 0:t.EndDate)||new Date<new Date(t.EndDate)}
(i)&&r.isBelowCap(i);if(o)if(t){if(i.Priority){if(i.Priority<t)return t=i.Priority,
[i];i.Priority===t&&e.push(i)}}else{if(i.Priority)return t=i.Priority,
[i];e.push(i)}return e}),[]))]}}))}))},t.sessionStateChangeHandler=function(e)
{"started"===e&&(t.sessionMessageCountMap={})},t.isBelowCap=function(e){var
n=e.CampaignId,r=e.SessionCap,i=e.DailyCap,o=e.TotalCap,s=t.getMessageCounts(n),a=s
.sessionCount,c=s.dailyCount,u=s.totalCount;return(!r||a<r)&&(!i||c<i)&&(!o||
u<o)},t.getSessionCount=function(e){return t.sessionMessageCountMap[e]||
0},t.getDailyCount=function(){var e=t.config.storage,n=BD(),r=e.getItem(GD),i=r?
JSON.parse(r):{count:0,lastCountTimestamp:n};return i.lastCountTimestamp===n?
i.count:0},t.getTotalCountMap=function(){var e=t.config.storage.getItem(zD);return
e?JSON.parse(e):{}},t.getTotalCount=function(e){return t.getTotalCountMap()[e]||
0},t.getMessageCounts=function(e)
{try{return{sessionCount:t.getSessionCount(e),dailyCount:t.getDailyCount(),totalCou
nt:t.getTotalCount(e)}}catch(e){t.logger.error("Failed to get message counts from
storage",e)}},t.setSessionCount=function(e,n)
{t.sessionMessageCountMap[e]=n},t.setDailyCount=function(e){var
n=t.config.storage,r={count:e,lastCountTimestamp:BD()};try{n.setItem(GD,JSON.string
ify(r))}catch(e){t.logger.error("Failed to save daily message count to
storage",e)}},t.setTotalCountMap=function(e){var
n=t.config.storage;try{n.setItem(zD,JSON.stringify(e))}catch(e)
{t.logger.error("Failed to save total count to
storage",e)}},t.setTotalCount=function(e,n){var r,i=co(co({},t.getTotalCountMap()),
((r={})[e]=n,r));t.setTotalCountMap(i)},t.incrementCounts=function(e){return
lo(t,void 0,void 0,(function(){var t,n,r,i;return ho(this,(function(o){return
t=this.getMessageCounts(e),n=t.sessionCount,r=t.dailyCount,i=t.totalCount,this.setS
essionCount(e,n+1),this.setDailyCount(r+1),this.setTotalCount(e,i+1),
[2]}))}))},t.normalizeMessages=function(e){return e.map((function(e){var
t,n=e.CampaignId,r=e.InAppMessage;return{id:n,content:UD(e),layout:
(t=r.Layout,"MOBILE_FEED"===t?"MODAL":"OVERLAYS"===t?"FULL_SCREEN":t),metadata:HD(e
)}}))},t.recordMessageEvent=function(e,n){return lo(t,void 0,void 0,(function()
{return ho(this,(function(t){switch(t.label){case 0:return this.initialized?[3,2]:
[4,this.init()];case 1:t.sent(),t.label=2;case 2:return function(e,t)
{if(p.Analytics&&"function"==typeof p.Analytics.record){var
n=t.id,r=t.metadata;p.Analytics.record({name:e,attributes:
{campaign_id:n,delivery_type:"IN_APP_MESSAGE",treatment_id:null==r?void
0:r.treatmentId}})}else FD.debug("Analytics module is not registered into
Amplify")}(n,e),n!==kD.MESSAGE_DISPLAYED?[3,4]:[4,this.incrementCounts(e.id)];case
3:t.sent(),t.label=4;case 4:return[2]}}))}))},t.sessionMessageCountMap={},t}return
Rr(t,e),t.prototype.getSubCategory=function(){return
t.subCategory},t.subCategory="InAppMessaging",t}(SD);const WD=VD;var
qD="_inAppMessages",KD=new h("Notifications.InAppMessaging"),YD=function(){function
e(){var e=this;this.config={},this.listeningForAnalyticEvents=!
1,this.pluggables=[],this.storageSynced=!1,this.configure=function(t){void
0===t&&(t={});var n=t.listenForAnalyticsEvents,r=void 0===n||n,i=uo(t,
["listenForAnalyticsEvents"]);return
e.config=co(co({},e.config),i),KD.debug("configure
InAppMessaging",e.config),e.pluggables.forEach((function(t)
{t.configure(e.config[t.getProviderName()])})),0===e.pluggables.length&&e.addPlugga
ble(new WD),r&&!
e.listeningForAnalyticEvents&&(x.listen("analytics",e.analyticsListener),e.listenin
gForAnalyticEvents=!0),e.config},this.getPluggable=function(t){var n,r=null!
==(n=e.pluggables.find((function(e){return e.getProviderName()===t})))&&void 0!==n?
n:null;return r||KD.debug("No plugin found with name
"+t),r},this.addPluggable=function(t)
{if(t&&"Notifications"===t.getCategory()&&"InAppMessaging"===t.getSubCategory())
{if(e.getPluggable(t.getProviderName()))throw new Error("Pluggable
"+t.getProviderName()+" has already been
added.");e.pluggables.push(t),t.configure(e.config[t.getProviderName()])}},this.rem
ovePluggable=function(t){var n=e.pluggables.findIndex((function(e){return
e.getProviderName()===t}));-1===n?KD.debug("No plugin found with name
"+t):e.pluggables.splice(n,1)},this.syncMessages=function(){return
Promise.all(e.pluggables.map((function(t){return lo(e,void 0,void 0,(function(){var
e,n,r;return ho(this,(function(i){switch(i.label){case 0:return
i.trys.push([0,3,,4]),[4,t.getInAppMessages()];case 1:return
e=i.sent(),n=""+t.getProviderName()+qD,[4,this.setMessages(n,e)];case 2:return
i.sent(),[3,4];case 3:throw r=i.sent(),KD.error("Failed to sync messages",r),r;case
4:return[2]}}))}))})))},this.clearMessages=function(){return
Promise.all(e.pluggables.map((function(t){return lo(e,void 0,void 0,(function(){var
e;return ho(this,(function(n){switch(n.label){case 0:return
e=""+t.getProviderName()+qD,[4,this.removeMessages(e)];case 1:return n.sent(),
[2]}}))}))})))},this.dispatchEvent=function(t){return lo(e,void 0,void 0,
(function(){var e,n,r=this;return ho(this,(function(i){switch(i.label){case
0:return[4,Promise.all(this.pluggables.map((function(e){return lo(r,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){switch(i.label){case 0:return
n=""+e.getProviderName()+qD,[4,this.getMessages(n)];case 1:return r=i.sent(),
[2,e.processInAppMessages(r,t)]}}))}))})))];case 1:return e=i.sent(),(n=mD()
(e)).length&&bD(DD.MESSAGE_RECEIVED,this.conflictHandler(n)),
[2]}}))}))},this.identifyUser=function(t,n){return
Promise.all(e.pluggables.map((function(r){return lo(e,void 0,void 0,(function(){var
e;return ho(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),
[4,r.identifyUser(t,n)];case 1:return i.sent(),[3,3];case 2:throw
e=i.sent(),KD.error("Failed to identify user",e),e;case
3:return[2]}}))}))})))},this.onMessageReceived=function(e){return
yD(DD.MESSAGE_RECEIVED,e)},this.onMessageDisplayed=function(e){return
yD(DD.MESSAGE_DISPLAYED,e)},this.onMessageDismissed=function(e){return
yD(DD.MESSAGE_DISMISSED,e)},this.onMessageActionTaken=function(e){return
yD(DD.MESSAGE_ACTION_TAKEN,e)},this.notifyMessageInteraction=function(e,t)
{bD(t,e)},this.setConflictHandler=function(t)
{e.conflictHandler=t},this.analyticsListener=function(t){var
n=t.payload,r=n.event,i=n.data;"record"===r&&e.dispatchEvent(i)},this.syncStorage=f
unction(){return lo(e,void 0,void 0,(function(){var e,t;return ho(this,(function(n)
{switch(n.label){case 0:e=this.config.storage,n.label=1;case 1:return
n.trys.push([1,4,,5]),"function"!=typeof e.sync?[3,3]:[4,e.sync()];case
2:n.sent(),n.label=3;case 3:return this.storageSynced=!0,[3,5];case 4:return
t=n.sent(),KD.error("Failed to sync storage",t),[3,5];case
5:return[2]}}))}))},this.getMessages=function(t){return lo(e,void 0,void 0,
(function(){var e,n,r;return ho(this,(function(i){switch(i.label){case 0:return
i.trys.push([0,3,,4]),this.storageSynced?[3,2]:[4,this.syncStorage()];case
1:i.sent(),i.label=2;case 2:return e=this.config.storage,[2,(n=e.getItem(t))?
JSON.parse(n):[]];case 3:return r=i.sent(),KD.error("Failed to retrieve in-app
messages from storage",r),[3,4];case
4:return[2]}}))}))},this.setMessages=function(t,n){return lo(e,void 0,void 0,
(function(){var e;return ho(this,(function(r){switch(r.label){case 0:if(!
n)return[2];r.label=1;case 1:return r.trys.push([1,4,,5]),this.storageSynced?[3,3]:
[4,this.syncStorage()];case 2:r.sent(),r.label=3;case 3:return
this.config.storage.setItem(t,JSON.stringify(n)),[3,5];case 4:return
e=r.sent(),KD.error("Failed to store in-app messages",e),[3,5];case
5:return[2]}}))}))},this.removeMessages=function(t){return lo(e,void 0,void 0,
(function(){var e;return ho(this,(function(n){switch(n.label){case 0:return
n.trys.push([0,3,,4]),this.storageSynced?[3,2]:[4,this.syncStorage()];case
1:n.sent(),n.label=2;case 2:return this.config.storage.removeItem(t),[3,4];case
3:return e=n.sent(),KD.error("Failed to remove in-app messages from storage",e),
[3,4];case 4:return[2]}}))}))},this.defaultConflictHandler=function(e){var
t=e.sort((function(e,t){var n,r,i=null===(n=e.metadata)||void 0===n?void
0:n.endDate,o=null===(r=t.metadata)||void 0===r?void 0:r.endDate;return i===o?
0:i&&!o?-1:!i&&o?1:new Date(i)<new Date(o)?-1:1}));return
t[0]},this.config={storage:(new
N).getStorage()},this.setConflictHandler(this.defaultConflictHandler)}return
e.prototype.getModuleName=function(){return"InAppMessaging"},e}();const
$D=YD,QD=function(e){function t(){var t=e.call(this,"Function not supported on
current platform")||this;return t.name="PlatformNotSupportedError",t}return
Rr(t,e),t}(Error);var XD=function(){function e(){var
e=this;this.configure=function(e){throw void 0===e&&(e={}),new
QD},this.getPluggable=function(e){throw new QD},this.addPluggable=function(e){throw
new QD},this.removePluggable=function(){throw new QD},this.enable=function(){throw
new QD},this.identifyUser=function(){throw new
QD},this.getLaunchNotification=function(){return lo(e,void 0,void 0,(function()
{return ho(this,(function(e){throw new QD}))}))},this.getBadgeCount=function()
{return lo(e,void 0,void 0,(function(){return ho(this,(function(e){throw new
QD}))}))},this.setBadgeCount=function(e){throw new
QD},this.getPermissionStatus=function(){return lo(e,void 0,void 0,(function()
{return ho(this,(function(e){throw new
QD}))}))},this.requestPermissions=function(t){return lo(e,void 0,void 0,(function()
{return ho(this,(function(e){throw new
QD}))}))},this.onNotificationReceivedInBackground=function(e){throw new
QD},this.onNotificationReceivedInForeground=function(e){throw new
QD},this.onTokenReceived=function(e){throw new
QD},this.onNotificationOpened=function(e){throw new QD}}return
e.prototype.getModuleName=function(){throw new QD},e}();const ZD=XD;var JD=new
h("Notifications"),ek=function(){function e(){var
e=this;this.config={},this.configure=function(t){var n=(void 0===t?
{}:t).Notifications;if(e.config=co(co({},e.config),n),JD.debug("configure
Notifications",n),e.inAppMessaging.configure(e.config.InAppMessaging),e.config.Push
)try{e.pushNotification||(e.pushNotification=new
ZD),e.pushNotification.configure(e.config.Push)}catch(e){JD.error(e)}return
e.config},this.identifyUser=function(t,n){var r=[];return
e.inAppMessaging&&r.push(e.inAppMessaging.identifyUser),e.pushNotification&&r.push(
e.pushNotification.identifyUser),Promise.all(r.map((function(r){return lo(e,void
0,void 0,(function(){var e;return ho(this,(function(i){switch(i.label){case
0:return i.trys.push([0,2,,3]),[4,r(t,n)];case 1:return i.sent(),[3,3];case 2:throw
e=i.sent(),JD.error("Failed to identify user",e),e;case
3:return[2]}}))}))})))},this.inAppMessaging=new $D}return
e.prototype.getModuleName=function()
{return"Notifications"},Object.defineProperty(e.prototype,"InAppMessaging",
{get:function(){return this.inAppMessaging},enumerable:!0,configurable:!
0}),Object.defineProperty(e.prototype,"Push",{get:function(){var e;return null!
==(e=this.pushNotification)&&void 0!==e?e:{}},enumerable:!0,configurable:!0}),e}
(),tk=new ek;const nk=tk;p.register(tk);var rk=function(){return rk=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},rk.apply(this,arguments)};function ik(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function ok(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(ik(arguments[t]));return e}var sk=new
h("Predictions"),ak=new(function(){function e(e)
{this._options=e,this._convertPluggables=[],this._identifyPluggables=[],this._inter
pretPluggables=[]}return e.prototype.getModuleName=function()
{return"Predictions"},e.prototype.addPluggable=function(e)
{if(this.getPluggable(e.getProviderName()))throw new Error("Pluggable with name
"+e.getProviderName()+" has already been added.");var t=!
1;this.implementsConvertPluggable(e)&&(this._convertPluggables.push(e),t=!
0),this.implementsIdentifyPluggable(e)&&(this._identifyPluggables.push(e),t=!
0),this.implementsInterpretPluggable(e)&&(this._interpretPluggables.push(e),t=!
0),t&&this.configurePluggable(e)},e.prototype.getPluggable=function(e){var
t=this.getAllProviders().find((function(t){return t.getProviderName()===e}));return
void 0===t?(sk.debug("No plugin found with
providerName=>",e),null):t},e.prototype.removePluggable=function(e)
{this._convertPluggables=this._convertPluggables.filter((function(t){return
t.getProviderName()!
==e})),this._identifyPluggables=this._identifyPluggables.filter((function(t){return
t.getProviderName()!
==e})),this._interpretPluggables=this._interpretPluggables.filter((function(t)
{return
t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this,n=e?
e.predictions||e:
{};n=rk(rk({},n),e),this._options=Object.assign({},this._options,n),sk.debug("confi
gure Predictions",this._options),this.getAllProviders().forEach((function(e){return
t.configurePluggable(e)}))},e.prototype.interpret=function(e,t){return
this.getPluggableToExecute(this._interpretPluggables,t).interpret(e)},e.prototype.c
onvert=function(e,t){return
this.getPluggableToExecute(this._convertPluggables,t).convert(e)},e.prototype.ident
ify=function(e,t){return
this.getPluggableToExecute(this._identifyPluggables,t).identify(e)},e.prototype.get
PluggableToExecute=function(e,t){if(t&&t.providerName)return
ok(e).find((function(e){return
e.getProviderName()===t.providerName}));if(1===e.length)return e[0];throw new
Error("More than one or no providers are configured, Either specify a provider name
or configure exactly one provider")},e.prototype.getAllProviders=function(){return
ok(this._convertPluggables,this._identifyPluggables,this._interpretPluggables)},e.p
rototype.configurePluggable=function(e){var
t=Object.assign({},this._options.predictions,this._options[e.getCategory().toLowerC
ase()]);e.configure(t)},e.prototype.implementsConvertPluggable=function(e){return
e&&"function"==typeof
e.convert},e.prototype.implementsIdentifyPluggable=function(e){return
e&&"function"==typeof
e.identify},e.prototype.implementsInterpretPluggable=function(e){return
e&&"function"==typeof e.interpret},e}())({});p.register(ak);var ck=function()
{return ck=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n+
+)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},ck.apply(this,arguments)},uk=new h("I18n"),lk=function(){function e(e)
{this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e)
,this._lang=this._options.language,!this._lang&&"undefined"!=typeof
window&&window&&window.navigator&&(this._lang=window.navigator.language),uk.debug(t
his._lang)}return e.prototype.setLanguage=function(e)
{this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!
this._lang)return void 0!==t?t:e;var n=this._lang,r=this.getByLanguage(e,n);return
r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||(void 0!==t?
t:e))},e.prototype.getByLanguage=function(e,t,n){if(void 0===n&&(n=null),!t)return
n;var r=this._dict[t];return r?
r[e]:n},e.prototype.putVocabulariesForLanguage=function(e,t){var
n=this._dict[e];n||
(n=this._dict[e]={}),this._dict[e]=ck(ck({},n),t)},e.prototype.putVocabularies=func
tion(e){var t=this;Object.keys(e).map((function(n)
{t.putVocabulariesForLanguage(n,e[n])}))},e}(),hk=new
h("I18n"),dk=null,fk=null,pk=function(){function e(){}return
e.configure=function(t){return hk.debug("configure I18n"),t?
(dk=Object.assign({},dk,t.I18n||
t),e.createInstance(),dk):dk},e.getModuleName=function()
{return"I18n"},e.createInstance=function(){hk.debug("create I18n instance"),fk||
(fk=new lk(dk))},e.setLanguage=function(t){return
e.checkConfig(),fk.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?
fk.get(t,n):void 0===n?t:n},e.putVocabulariesForLanguage=function(t,n){return
e.checkConfig(),fk.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t)
{return e.checkConfig(),fk.putVocabularies(t)},e.checkConfig=function(){return fk||
(fk=new lk(dk)),!0},e}();p.register(pk);var
gk,mk,vk,bk,yk,wk,_k,Ek,Sk,Tk,Ak,Ck,Ok,xk,Ik,Pk,Dk,kk,Rk,Mk,Nk,Lk,Fk,jk,Bk,Uk,Hk,Gk
,zk,Vk,Wk,qk,Kk,Yk,
$k,Qk,Xk,Zk,Jk,eR,tR,nR,rR,iR,oR,sR,aR,cR,uR,lR,hR,dR,fR,pR,gR,mR,vR,bR,yR,wR,_R,ER
,SR,TR,AR,CR,OR,xR,IR,PR,DR,kR,RR,MR,NR,LR,FR,jR,BR,UR,HR,GR,zR,VR,WR,qR,KR,YR,
$R,QR,XR,ZR,JR,eM,tM,nM,rM,iM,oM,sM,aM,cM,uM,lM,hM=function(){function e()
{this._logger=new h("ServiceWorker")}return
Object.defineProperty(e.prototype,"serviceWorker",{get:function(){return
this._serviceWorker},enumerable:!1,configurable:!
0}),e.prototype.register=function(e,t){var n=this;return void 0===e&&(e="/service-
worker.js"),void 0===t&&(t="/"),this._logger.debug("registering
".concat(e)),this._logger.debug("registering service worker with scope
".concat(t)),new Promise((function(r,i){if(!navigator||!("serviceWorker"in
navigator))return i(new Error("Service Worker not
available"));navigator.serviceWorker.register(e,{scope:t}).then((function(e){return
e.installing?n._serviceWorker=e.installing:e.waiting?
n._serviceWorker=e.waiting:e.active&&(n._serviceWorker=e.active),n._registration=e,
n._setupListeners(),n._logger.debug("Service Worker Registration Success:
".concat(e)),r(e)})).catch((function(e){return n._logger.debug("Service Worker
Registration Failed ".concat(e)),i(e)}))}))},e.prototype.enablePush=function(e){var
t=this;if(!this._registration)throw new Error("Service Worker not
registered");return this._publicKey=e,new Promise((function(n,r){if(!
We().isBrowser)return r(new Error("Service Worker not
available"));t._registration.pushManager.getSubscription().then((function(r){if(!
r)return t._logger.debug("User is NOT subscribed to
push"),t._registration.pushManager.subscribe({userVisibleOnly:!
0,applicationServerKey:t._urlB64ToUint8Array(e)}).then((function(e)
{t._subscription=e,t._logger.debug("User subscribed:
".concat(JSON.stringify(e))),n(e)})).catch((function(e)
{t._logger.error(e)}));t._subscription=r,t._logger.debug("User is subscribed to
push:
".concat(JSON.stringify(r))),n(r)}))}))},e.prototype._urlB64ToUint8Array=function(e
){for(var
t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.at
ob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return
r},e.prototype.send=function(e)
{this._serviceWorker&&this._serviceWorker.postMessage("object"==typeof e?
JSON.stringify(e):e)},e.prototype._setupListeners=function(){var
e=this;this._serviceWorker.addEventListener("statechange",(function(t){var
n=e._serviceWorker.state;e._logger.debug("ServiceWorker statechange:
".concat(n)),p.Analytics&&"function"==typeof
p.Analytics.record&&p.Analytics.record({name:"ServiceWorker",attributes:
{state:n}})})),this._serviceWorker.addEventListener("message",(function(t)
{e._logger.debug("ServiceWorker message event: ".concat(t))}))},e}();!function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(gk||(gk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(mk||(mk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(vk||(vk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(bk||(bk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(yk||(yk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(wk||(wk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(_k||(_k={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ek||(Ek={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Sk||(Sk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Tk||(Tk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ak||(Ak={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ck||(Ck={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ok||(Ok={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(xk||(xk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Ik||(Ik={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Pk||(Pk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Dk||(Dk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(kk||(kk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Rk||(Rk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Mk||(Mk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Nk||(Nk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Lk||(Lk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Fk||(Fk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(jk||(jk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Bk||(Bk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Uk||(Uk={})),function(e)
{e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING="PENDI
NG",e.PENDING_CANCEL="PENDING_CANCEL",e.RUNNING="RUNNING"}(Hk||(Hk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Gk||(Gk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(zk||(zk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Vk||(Vk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Wk||(Wk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(qk||(qk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Kk||(Kk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(Yk||(Yk={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}($k||($k={})),function(e)
{e.LastEventTime="LastEventTime",e.LogStreamName="LogStreamName"}(Qk||
(Qk={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Xk||
(Xk={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Zk||
(Zk={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(Jk||
(Jk={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(eR||
(eR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(tR||
(tR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(nR||
(nR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(rR||
(rR={})),function(e)
{e.Cancelled="Cancelled",e.Complete="Complete",e.Failed="Failed",e.Running="Running
",e.Scheduled="Scheduled"}(iR||(iR={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(oR||(oR={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(sR||(sR={})),function(e)
{e.filterSensitiveLog=function(e){return co({},e)}}(aR||(aR={})),function(e)
{e.filterSensitiveLog=function(e){return
co({},e)}}(cR||(cR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(uR||(uR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(lR||(lR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(hR||(hR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(dR||(dR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(fR||(fR={})),function(e){e.filterSensitiveLog=function(e){return
co({},e)}}(pR||(pR={})),function(e){e.ByLogStream="ByLogStream",e.Random="Random"}
(gR||(gR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(mR||
(mR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(vR||
(vR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(bR||
(bR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(yR||
(yR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(wR||
(wR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(_R||
(_R={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ER||
(ER={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(SR||
(SR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(TR||
(TR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(AR||
(AR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(CR||
(CR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(OR||
(OR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(xR||
(xR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(IR||
(IR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(PR||
(PR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(DR||
(DR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(kR||
(kR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(RR||
(RR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(MR||
(MR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(NR||
(NR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(LR||
(LR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(FR||
(FR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(jR||
(jR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(BR||
(BR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(UR||
(UR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(HR||
(HR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(GR||
(GR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(zR||
(zR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(VR||
(VR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(WR||
(WR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(qR||
(qR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(KR||
(KR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(YR||
(YR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}($R||
($R={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(QR||
(QR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(XR||
(XR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(ZR||
(ZR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(JR||
(JR={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(eM||
(eM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(tM||
(tM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(nM||
(nM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(rM||
(rM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(iM||
(iM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(oM||
(oM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(sM||
(sM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(aM||
(aM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(cM||
(cM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(uM||
(uM={})),function(e){e.filterSensitiveLog=function(e){return co({},e)}}(lM||
(lM={}));var dM=function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label){case 0:return
r=[co({},e)],f={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(f.body=p.sent(),f)])),o="UnknownError",o=qM(e,n.body))
{case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameter
Exception":return[3,2];case"LimitExceededException":case"com.amazonaws.cloudwatchlo
gs#LimitExceededException":return[3,4];case"OperationAbortedException":case"com.ama
zonaws.cloudwatchlogs#OperationAbortedException":return[3,6];case"ResourceAlreadyEx
istsException":case"com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":re
turn[3,8];case"ServiceUnavailableException":case"com.amazonaws.cloudwatchlogs#Servi
ceUnavailableException":return[3,10]}return[3,12];case 2:return s=[{}],
[4,yM(n,t)];case 3:return i=co.apply(void 0,[co.apply(void 0,s.concat([p.sent()])),
{name:o,$metadata:GM(e)}]),[3,13];case 4:return a=[{}],[4,_M(n,t)];case 5:return
i=co.apply(void 0,[co.apply(void 0,a.concat([p.sent()])),{name:o,
$metadata:GM(e)}]),[3,13];case 6:return c=[{}],[4,EM(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([p.sent()])),{name:o,
$metadata:GM(e)}]),[3,13];case 8:return u=[{}],[4,SM(n,t)];case 9:return
i=co.apply(void 0,[co.apply(void 0,u.concat([p.sent()])),{name:o,
$metadata:GM(e)}]),[3,13];case 10:return l=[{}],[4,AM(n,t)];case 11:return
i=co.apply(void 0,[co.apply(void 0,l.concat([p.sent()])),{name:o,
$metadata:GM(e)}]),[3,13];case 12:h=n.body,o=h.code||h.Code||o,i=co(co({},h),
{name:""+o,message:h.message||h.Message||o,$fault:"client",
$metadata:GM(e)}),p.label=13;case 13:return d=i.message||i.Message||
o,i.message=d,delete i.Message,[2,Promise.reject(Object.assign(new
Error(d),i))]}}))}))},fM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h,d;return ho(this,(function(f){switch(f.label){case
0:return r=[co({},e)],d={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(d.body=f.sent(),d)])),o="UnknownError",o=qM(e,n.body))
{case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameter
Exception":return[3,2];case"ResourceAlreadyExistsException":case"com.amazonaws.clou
dwatchlogs#ResourceAlreadyExistsException":return[3,4];case"ResourceNotFoundExcepti
on":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundException":return[3,6];case"S
erviceUnavailableException":case"com.amazonaws.cloudwatchlogs#ServiceUnavailableExc
eption":return[3,8]}return[3,10];case 2:return s=[{}],[4,yM(n,t)];case 3:return
i=co.apply(void 0,[co.apply(void 0,s.concat([f.sent()])),{name:o,
$metadata:GM(e)}]),[3,11];case 4:return a=[{}],[4,SM(n,t)];case 5:return
i=co.apply(void 0,[co.apply(void 0,a.concat([f.sent()])),{name:o,
$metadata:GM(e)}]),[3,11];case 6:return c=[{}],[4,TM(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([f.sent()])),{name:o,
$metadata:GM(e)}]),[3,11];case 8:return u=[{}],[4,AM(n,t)];case 9:return
i=co.apply(void 0,[co.apply(void 0,u.concat([f.sent()])),{name:o,
$metadata:GM(e)}]),[3,11];case 10:l=n.body,o=l.code||l.Code||o,i=co(co({},l),
{name:""+o,message:l.message||l.Message||o,$fault:"client",
$metadata:GM(e)}),f.label=11;case 11:return h=i.message||i.Message||
o,i.message=h,delete i.Message,[2,Promise.reject(Object.assign(new
Error(h),i))]}}))}))},pM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case 0:return
r=[co({},e)],l={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(l.body=h.sent(),l)])),o="UnknownError",o=qM(e,n.body))
{case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameter
Exception":return[3,2];case"ServiceUnavailableException":case"com.amazonaws.cloudwa
tchlogs#ServiceUnavailableException":return[3,4]}return[3,6];case 2:return s=[{}],
[4,yM(n,t)];case 3:return i=co.apply(void 0,[co.apply(void 0,s.concat([h.sent()])),
{name:o,$metadata:GM(e)}]),[3,7];case 4:return a=[{}],[4,AM(n,t)];case 5:return
i=co.apply(void 0,[co.apply(void 0,a.concat([h.sent()])),{name:o,
$metadata:GM(e)}]),[3,7];case 6:c=n.body,o=c.code||c.Code||o,i=co(co({},c),
{name:""+o,message:c.message||c.Message||o,$fault:"client",
$metadata:GM(e)}),h.label=7;case 7:return u=i.message||i.Message||
o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new
Error(u),i))]}}))}))},gM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case 0:return
r=[co({},e)],h={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(h.body=d.sent(),h)])),o="UnknownError",o=qM(e,n.body))
{case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameter
Exception":return[3,2];case"ResourceNotFoundException":case"com.amazonaws.cloudwatc
hlogs#ResourceNotFoundException":return[3,4];case"ServiceUnavailableException":case
"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":return[3,6]}return[3,8];
case 2:return s=[{}],[4,yM(n,t)];case 3:return i=co.apply(void 0,[co.apply(void
0,s.concat([d.sent()])),{name:o,$metadata:GM(e)}]),[3,9];case 4:return a=[{}],
[4,TM(n,t)];case 5:return i=co.apply(void 0,[co.apply(void 0,a.concat([d.sent()])),
{name:o,$metadata:GM(e)}]),[3,9];case 6:return c=[{}],[4,AM(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([d.sent()])),{name:o,
$metadata:GM(e)}]),[3,9];case 8:u=n.body,o=u.code||u.Code||o,i=co(co({},u),
{name:""+o,message:u.message||u.Message||o,$fault:"client",
$metadata:GM(e)}),d.label=9;case 9:return l=i.message||i.Message||
o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new
Error(l),i))]}}))}))},mM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case 0:return
r=[co({},e)],h={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(h.body=d.sent(),h)])),o="UnknownError",o=qM(e,n.body))
{case"InvalidParameterException":case"com.amazonaws.cloudwatchlogs#InvalidParameter
Exception":return[3,2];case"ResourceNotFoundException":case"com.amazonaws.cloudwatc
hlogs#ResourceNotFoundException":return[3,4];case"ServiceUnavailableException":case
"com.amazonaws.cloudwatchlogs#ServiceUnavailableException":return[3,6]}return[3,8];
case 2:return s=[{}],[4,yM(n,t)];case 3:return i=co.apply(void 0,[co.apply(void
0,s.concat([d.sent()])),{name:o,$metadata:GM(e)}]),[3,9];case 4:return a=[{}],
[4,TM(n,t)];case 5:return i=co.apply(void 0,[co.apply(void 0,a.concat([d.sent()])),
{name:o,$metadata:GM(e)}]),[3,9];case 6:return c=[{}],[4,AM(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([d.sent()])),{name:o,
$metadata:GM(e)}]),[3,9];case 8:u=n.body,o=u.code||u.Code||o,i=co(co({},u),
{name:""+o,message:u.message||u.Message||o,$fault:"client",
$metadata:GM(e)}),d.label=9;case 9:return l=i.message||i.Message||
o,i.message=l,delete i.Message,[2,Promise.reject(Object.assign(new
Error(l),i))]}}))}))},vM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s,a,c,u,l,h,d,f,p;return ho(this,(function(g){switch(g.label){case
0:return r=[co({},e)],p={},[4,WM(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(p.body=g.sent(),p)])),o="UnknownError",o=qM(e,n.body))
{case"DataAlreadyAcceptedException":case"com.amazonaws.cloudwatchlogs#DataAlreadyAc
ceptedException":return[3,2];case"InvalidParameterException":case"com.amazonaws.clo
udwatchlogs#InvalidParameterException":return[3,4];case"InvalidSequenceTokenExcepti
on":case"com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":return[3,6];ca
se"ResourceNotFoundException":case"com.amazonaws.cloudwatchlogs#ResourceNotFoundExc
eption":return[3,8];case"ServiceUnavailableException":case"com.amazonaws.cloudwatch
logs#ServiceUnavailableException":return[3,10];case"UnrecognizedClientException":ca
se"com.amazonaws.cloudwatchlogs#UnrecognizedClientException":return[3,12]}return[3,
14];case 2:return s=[{}],[4,bM(n,t)];case 3:return i=co.apply(void 0,[co.apply(void
0,s.concat([g.sent()])),{name:o,$metadata:GM(e)}]),[3,15];case 4:return a=[{}],
[4,yM(n,t)];case 5:return i=co.apply(void 0,[co.apply(void 0,a.concat([g.sent()])),
{name:o,$metadata:GM(e)}]),[3,15];case 6:return c=[{}],[4,wM(n,t)];case 7:return
i=co.apply(void 0,[co.apply(void 0,c.concat([g.sent()])),{name:o,
$metadata:GM(e)}]),[3,15];case 8:return u=[{}],[4,TM(n,t)];case 9:return
i=co.apply(void 0,[co.apply(void 0,u.concat([g.sent()])),{name:o,
$metadata:GM(e)}]),[3,15];case 10:return l=[{}],[4,AM(n,t)];case 11:return
i=co.apply(void 0,[co.apply(void 0,l.concat([g.sent()])),{name:o,
$metadata:GM(e)}]),[3,15];case 12:return h=[{}],[4,CM(n,t)];case 13:return
i=co.apply(void 0,[co.apply(void 0,h.concat([g.sent()])),{name:o,
$metadata:GM(e)}]),[3,15];case 14:d=n.body,o=d.code||d.Code||o,i=co(co({},d),
{name:""+o,message:d.message||d.Message||o,$fault:"client",
$metadata:GM(e)}),g.label=15;case 15:return f=i.message||i.Message||
o,i.message=f,delete i.Message,[2,Promise.reject(Object.assign(new
Error(f),i))]}}))}))},bM=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r;return ho(this,(function(i){return n=e.body,r=IM(n,t),
[2,co({name:"DataAlreadyAcceptedException",$fault:"client",
$metadata:GM(e)},r)]}))}))},yM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=PM(n,t),
[2,co({name:"InvalidParameterException",$fault:"client",
$metadata:GM(e)},r)]}))}))},wM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=DM(n,t),
[2,co({name:"InvalidSequenceTokenException",$fault:"client",
$metadata:GM(e)},r)]}))}))},_M=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=kM(n,t),
[2,co({name:"LimitExceededException",$fault:"client",
$metadata:GM(e)},r)]}))}))},EM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=NM(n,t),
[2,co({name:"OperationAbortedException",$fault:"client",
$metadata:GM(e)},r)]}))}))},SM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=jM(n,t),
[2,co({name:"ResourceAlreadyExistsException",$fault:"client",
$metadata:GM(e)},r)]}))}))},TM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=BM(n,t),
[2,co({name:"ResourceNotFoundException",$fault:"client",
$metadata:GM(e)},r)]}))}))},AM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=UM(n,t),
[2,co({name:"ServiceUnavailableException",$fault:"server",
$metadata:GM(e)},r)]}))}))},CM=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){return n=e.body,r=HM(n,t),
[2,co({name:"UnrecognizedClientException",$fault:"client",
$metadata:GM(e)},r)]}))}))},OM=function(e,t){return e.filter((function(e){return
null!=e})).map((function(e){return null===e?null:function(e,t){return co(co({},void
0!==e.message&&null!==e.message&&{message:e.message}),void 0!==e.timestamp&&null!
==e.timestamp&&{timestamp:e.timestamp})}(e)}))},xM=function(e,t){return
Object.entries(e).reduce((function(e,t){var n,r=po(t,2),i=r[0],o=r[1];return
null===o?e:co(co({},e),((n={})[i]=o,n))}),{})},IM=function(e,t)
{return{expectedSequenceToken:void 0!==e.expectedSequenceToken&&null!
==e.expectedSequenceToken?e.expectedSequenceToken:void 0,message:void 0!
==e.message&&null!==e.message?e.message:void 0}},PM=function(e,t)
{return{message:void 0!==e.message&&null!==e.message?e.message:void
0}},DM=function(e,t){return{expectedSequenceToken:void 0!
==e.expectedSequenceToken&&null!==e.expectedSequenceToken?
e.expectedSequenceToken:void 0,message:void 0!==e.message&&null!==e.message?
e.message:void 0}},kM=function(e,t){return{message:void 0!==e.message&&null!
==e.message?e.message:void 0}},RM=function(e,t){return(e||[]).filter((function(e)
{return null!=e})).map((function(e){return null===e?null:function(e,t)
{return{arn:void 0!==e.arn&&null!==e.arn?e.arn:void 0,creationTime:void 0!
==e.creationTime&&null!==e.creationTime?e.creationTime:void 0,kmsKeyId:void 0!
==e.kmsKeyId&&null!==e.kmsKeyId?e.kmsKeyId:void 0,logGroupName:void 0!
==e.logGroupName&&null!==e.logGroupName?e.logGroupName:void
0,metricFilterCount:void 0!==e.metricFilterCount&&null!==e.metricFilterCount?
e.metricFilterCount:void 0,retentionInDays:void 0!==e.retentionInDays&&null!
==e.retentionInDays?e.retentionInDays:void 0,storedBytes:void 0!
==e.storedBytes&&null!==e.storedBytes?e.storedBytes:void 0}}
(e)}))},MM=function(e,t){return(e||[]).filter((function(e){return null!
=e})).map((function(e){return null===e?null:function(e,t){return{arn:void 0!
==e.arn&&null!==e.arn?e.arn:void 0,creationTime:void 0!==e.creationTime&&null!
==e.creationTime?e.creationTime:void 0,firstEventTimestamp:void 0!
==e.firstEventTimestamp&&null!==e.firstEventTimestamp?e.firstEventTimestamp:void
0,lastEventTimestamp:void 0!==e.lastEventTimestamp&&null!==e.lastEventTimestamp?
e.lastEventTimestamp:void 0,lastIngestionTime:void 0!==e.lastIngestionTime&&null!
==e.lastIngestionTime?e.lastIngestionTime:void 0,logStreamName:void 0!
==e.logStreamName&&null!==e.logStreamName?e.logStreamName:void 0,storedBytes:void
0!==e.storedBytes&&null!==e.storedBytes?e.storedBytes:void
0,uploadSequenceToken:void 0!==e.uploadSequenceToken&&null!==e.uploadSequenceToken?
e.uploadSequenceToken:void 0}}(e)}))},NM=function(e,t){return{message:void 0!
==e.message&&null!==e.message?e.message:void 0}},LM=function(e,t){return(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{ingestionTime:void 0!==e.ingestionTime&&null!
==e.ingestionTime?e.ingestionTime:void 0,message:void 0!==e.message&&null!
==e.message?e.message:void 0,timestamp:void 0!==e.timestamp&&null!==e.timestamp?
e.timestamp:void 0}}(e)}))},FM=function(e,t){return{expiredLogEventEndIndex:void 0!
==e.expiredLogEventEndIndex&&null!==e.expiredLogEventEndIndex?
e.expiredLogEventEndIndex:void 0,tooNewLogEventStartIndex:void 0!
==e.tooNewLogEventStartIndex&&null!==e.tooNewLogEventStartIndex?
e.tooNewLogEventStartIndex:void 0,tooOldLogEventEndIndex:void 0!
==e.tooOldLogEventEndIndex&&null!==e.tooOldLogEventEndIndex?
e.tooOldLogEventEndIndex:void 0}},jM=function(e,t){return{message:void 0!
==e.message&&null!==e.message?e.message:void 0}},BM=function(e,t)
{return{message:void 0!==e.message&&null!==e.message?e.message:void
0}},UM=function(e,t){return{message:void 0!==e.message&&null!==e.message?
e.message:void 0}},HM=function(e,t){return{message:void 0!==e.message&&null!
==e.message?e.message:void 0}},GM=function(e){var
t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-
requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},zM=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof
Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new
Uint8Array)},VM=function(e,t,n,r,i){return lo(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,e.endpoint()];case 1:return o=h.sent(),s=o.hostname,a=o.protocol,c=void
0===a?"https":a,u=o.port,l={protocol:c,hostname:s,port:u,method:"POST",path:n,heade
rs:t},void 0!==r&&(l.hostname=r),void 0!==i&&(l.body=i),[2,new
_o(l)]}}))}))},WM=function(e,t){return function(e,t){return
zM(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return
e.length?JSON.parse(e):{}}))},qM=function(e,t){var n,r=function(e){var
t=e;return t.indexOf(":")>=0&&(t=t.split(":")
[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},i=(n=e.headers,"x-amzn-
errortype",Object.keys(n).find((function(e){return e.toLowerCase()==="x-amzn-
errortype".toLowerCase()})));return void 0!==i?r(e.headers[i]):void 0!==t.code?
r(t.code):void 0!==t.__type?r(t.__type):""},KM=function(e){function t(t){var
n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"CreateLogGroupCommand",inputFilterSensitiveLog:Ck.filterSensitiveLo
g,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.CreateLogGroup"},r=JSON.stringify(function(e,t){return
co(co(co({},void 0!==e.kmsKeyId&&null!==e.kmsKeyId&&{kmsKeyId:e.kmsKeyId}),void 0!
==e.logGroupName&&null!==e.logGroupName&&{logGroupName:e.logGroupName}),void 0!
==e.tags&&null!==e.tags&&{tags:xM(e.tags,t)})}(e,t)),[2,VM(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n;return ho(this,(function(r)
{switch(r.label){case 0:return e.statusCode>=300?[2,dM(e,t)]:[4,zM(e.body,t)];case
1:return r.sent(),n={$metadata:GM(e)},[2,Promise.resolve(n)]}}))}))}(e,t)},t}
(ss),YM=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"DescribeLogGroupsCommand",inputFilterSensitiveLog:Kk.filterSensitiv
eLog,outputFilterSensitiveLog:$k.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.DescribeLogGroups"},r=JSON.stringify(function(e,t){return
co(co(co({},void 0!==e.limit&&null!==e.limit&&{limit:e.limit}),void 0!
==e.logGroupNamePrefix&&null!
==e.logGroupNamePrefix&&{logGroupNamePrefix:e.logGroupNamePrefix}),void 0!
==e.nextToken&&null!==e.nextToken&&{nextToken:e.nextToken})}(e)),[2,VM(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r,i;return ho(this,(function(o)
{switch(o.label){case 0:return e.statusCode>=300?[2,pM(e,t)]:[4,WM(e.body,t)];case
1:return n=o.sent(),r=function(e,t){return{logGroups:void 0!==e.logGroups&&null!
==e.logGroups?RM(e.logGroups,t):void 0,nextToken:void 0!==e.nextToken&&null!
==e.nextToken?e.nextToken:void 0}}(n,t),i=co({$metadata:GM(e)},r),
[2,Promise.resolve(i)]}}))}))}(e,t)},t}(ss),$M=function(e){function t(t){var
n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"CreateLogStreamCommand",inputFilterSensitiveLog:Ok.filterSensitiveL
og,outputFilterSensitiveLog:function(e){return e}},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.CreateLogStream"},r=JSON.stringify(function(e,t){return
co(co({},void 0!==e.logGroupName&&null!
==e.logGroupName&&{logGroupName:e.logGroupName}),void 0!==e.logStreamName&&null!
==e.logStreamName&&{logStreamName:e.logStreamName})}(e)),[2,VM(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n;return ho(this,(function(r)
{switch(r.label){case 0:return e.statusCode>=300?[2,fM(e,t)]:[4,zM(e.body,t)];case
1:return r.sent(),n={$metadata:GM(e)},[2,Promise.resolve(n)]}}))}))}(e,t)},t}
(ss),QM=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"DescribeLogStreamsCommand",inputFilterSensitiveLog:Xk.filterSensiti
veLog,outputFilterSensitiveLog:Jk.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.DescribeLogStreams"},r=JSON.stringify(function(e,t){return
co(co(co(co(co(co({},void 0!==e.descending&&null!
==e.descending&&{descending:e.descending}),void 0!==e.limit&&null!
==e.limit&&{limit:e.limit}),void 0!==e.logGroupName&&null!
==e.logGroupName&&{logGroupName:e.logGroupName}),void 0!
==e.logStreamNamePrefix&&null!
==e.logStreamNamePrefix&&{logStreamNamePrefix:e.logStreamNamePrefix}),void 0!
==e.nextToken&&null!==e.nextToken&&{nextToken:e.nextToken}),void 0!
==e.orderBy&&null!==e.orderBy&&{orderBy:e.orderBy})}(e)),[2,VM(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r,i;return ho(this,(function(o)
{switch(o.label){case 0:return e.statusCode>=300?[2,gM(e,t)]:[4,WM(e.body,t)];case
1:return n=o.sent(),r=function(e,t){return{logStreams:void 0!==e.logStreams&&null!
==e.logStreams?MM(e.logStreams,t):void 0,nextToken:void 0!==e.nextToken&&null!
==e.nextToken?e.nextToken:void 0}}(n,t),i=co({$metadata:GM(e)},r),
[2,Promise.resolve(i)]}}))}))}(e,t)},t}(ss),XM=function(e){function t(t){var
n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"GetLogEventsCommand",inputFilterSensitiveLog:SR.filterSensitiveLog,
outputFilterSensitiveLog:AR.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.GetLogEvents"},r=JSON.stringify(function(e,t){return
co(co(co(co(co(co(co({},void 0!==e.endTime&&null!
==e.endTime&&{endTime:e.endTime}),void 0!==e.limit&&null!
==e.limit&&{limit:e.limit}),void 0!==e.logGroupName&&null!
==e.logGroupName&&{logGroupName:e.logGroupName}),void 0!==e.logStreamName&&null!
==e.logStreamName&&{logStreamName:e.logStreamName}),void 0!==e.nextToken&&null!
==e.nextToken&&{nextToken:e.nextToken}),void 0!==e.startFromHead&&null!
==e.startFromHead&&{startFromHead:e.startFromHead}),void 0!==e.startTime&&null!
==e.startTime&&{startTime:e.startTime})}(e)),[2,VM(t,n,"/",void 0,r)]}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i;return ho(this,(function(o){switch(o.label)
{case 0:return e.statusCode>=300?[2,mM(e,t)]:[4,WM(e.body,t)];case 1:return
n=o.sent(),r=function(e,t){return{events:void 0!==e.events&&null!==e.events?
LM(e.events,t):void 0,nextBackwardToken:void 0!==e.nextBackwardToken&&null!
==e.nextBackwardToken?e.nextBackwardToken:void 0,nextForwardToken:void 0!
==e.nextForwardToken&&null!==e.nextForwardToken?e.nextForwardToken:void 0}}
(n,t),i=co({$metadata:GM(e)},r),[2,Promise.resolve(i)]}}))}))}(e,t)},t}
(ss),ZM=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(Zo(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CloudWatchLogsClien
t",commandName:"PutLogEventsCommand",inputFilterSensitiveLog:GR.filterSensitiveLog,
outputFilterSensitiveLog:VR.filterSensitiveLog},o=t.requestHandler;return
r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r;return ho(this,(function(i){return n={"content-
type":"application/x-amz-json-1.1","x-amz-
target":"Logs_20140328.PutLogEvents"},r=JSON.stringify(function(e,t){return
co(co(co(co({},void 0!==e.logEvents&&null!
==e.logEvents&&{logEvents:OM(e.logEvents)}),void 0!==e.logGroupName&&null!
==e.logGroupName&&{logGroupName:e.logGroupName}),void 0!==e.logStreamName&&null!
==e.logStreamName&&{logStreamName:e.logStreamName}),void 0!==e.sequenceToken&&null!
==e.sequenceToken&&{sequenceToken:e.sequenceToken})}(e)),[2,VM(t,n,"/",void
0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r,i;return ho(this,(function(o)
{switch(o.label){case 0:return e.statusCode>=300?[2,vM(e,t)]:[4,WM(e.body,t)];case
1:return n=o.sent(),r=function(e,t){return{nextSequenceToken:void 0!
==e.nextSequenceToken&&null!==e.nextSequenceToken?e.nextSequenceToken:void
0,rejectedLogEventsInfo:void 0!==e.rejectedLogEventsInfo&&null!
==e.rejectedLogEventsInfo?FM(e.rejectedLogEventsInfo,t):void 0}}
(n,t),i=co({$metadata:GM(e)},r),[2,Promise.resolve(i)]}}))}))}(e,t)},t}
(ss),JM=n(38296);var
eN=n(85065),tN="logs.{region}.amazonaws.com",nN=new Set(["af-south-1","ap-east-
1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-
2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-
2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-
west-2"]),rN=new Set(["cn-north-1","cn-northwest-1"]),iN=new Set(["us-iso-east-
1"]),oN=new Set(["us-isob-east-1"]),sN=new Set(["us-gov-east-1","us-gov-west-
1"]),aN={apiVersion:"2014-03-28",disableHostPrefix:!1,logger:
{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-
1":n={hostname:"logs.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-
1":n={hostname:"logs.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-
northeast-1":n={hostname:"logs.ap-northeast-
1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"logs.ap-
northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-
1":n={hostname:"logs.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-
southeast-1":n={hostname:"logs.ap-southeast-
1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"logs.ap-
southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-
1":n={hostname:"logs.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-
north-1":n={hostname:"logs.cn-north-1.amazonaws.com.cn",partition:"aws-
cn"};break;case"cn-northwest-1":n={hostname:"logs.cn-northwest-
1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-
1":n={hostname:"logs.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-
north-1":n={hostname:"logs.eu-north-
1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"logs.eu-
south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"logs.eu-
west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"logs.eu-
west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"logs.eu-
west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-
1":n={hostname:"logs-fips.us-east-
1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-
east-2":n={hostname:"logs-fips.us-east-
2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-
west-1":n={hostname:"logs-fips.us-west-
1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"fips-us-
west-2":n={hostname:"logs-fips.us-west-
2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"me-south-
1":n={hostname:"logs.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-
1":n={hostname:"logs.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-
1":n={hostname:"logs.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-
2":n={hostname:"logs.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-
east-1":n={hostname:"logs.us-gov-east-1.amazonaws.com",partition:"aws-us-
gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"logs.us-
gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-
1"};break;case"us-iso-east-1":n={hostname:"logs.us-iso-east-
1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"logs.us-
isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-
1":n={hostname:"logs.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-
2":n={hostname:"logs.us-west-
2.amazonaws.com",partition:"aws"};break;default:nN.has(e)&&(n={hostname:tN.replace(
"{region}",e),partition:"aws"}),rN.has(e)&&(n={hostname:"logs.
{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-
cn"}),iN.has(e)&&(n={hostname:"logs.
{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-
iso"}),oN.has(e)&&(n={hostname:"logs.
{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-
b"}),sN.has(e)&&(n={hostname:"logs.
{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void
0===n&&(n={hostname:tN.replace("{region}",e),partition:"aws"})}return
Promise.resolve(co({signingService:"logs"},n))},serviceId:"CloudWatch
Logs",urlParser:Ba},cN=co(co({},aN),
{runtime:"browser",base64Decoder:ra,base64Encoder:ia,bodyLengthChecker:Aa,credentia
lDefaultProvider:function(e){return function(){return Promise.reject(new
Error("Credential is missing"))}},defaultUserAgentProvider:function(e){var
t=e.serviceId,n=e.clientVersion;return function(){return function(e,t,n,r){return
new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var e,r,i,o,s,a,c,u,l;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(h){return
e=(null===(i=null===window||void 0===window?void 0:window.navigator)||void 0===i?
void 0:i.userAgent)?Oa().parse(window.navigator.userAgent):void 0,r=[["aws-sdk-
js",n],["os/"+((null===(o=null==e?void 0:e.os)||void 0===o?void
0:o.name)||"other"),null===(s=null==e?void 0:e.os)||void 0===s?void 0:s.version],
["lang/js"],["md/browser",(null!==(c=null===(a=null==e?void 0:e.browser)||void
0===a?void 0:a.name)&&void 0!==c?c:"unknown")+"_"+(null!==(l=null===(u=null==e?void
0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?
l:"unknown")]],t&&r.push(["api/"+t,n]),[2,r]}))}))}}
({serviceId:aN.serviceId,clientVersion:"3.6.1"}),maxAttempts:3,region:aa("Region is
missing"),requestHandler:new
$s,sha256:JM.Sha256,streamCollector:oa,utf8Decoder:eN.fromUtf8,utf8Encoder:eN.toUtf
8});var uN={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},lN=function(e){return{applyToStack:function(t)
{t.add(function(e){return function(t){return function(n){return function(e,t,n,r)
{return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e)
{o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?
i(e.value):(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i;return function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){return _o.isInstance(n.request)?
(r=n.request,(void 0===(i=(e.requestHandler.metadata||
{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),uN)}}};var hN=function()
{return function(e,t){return function(n){return function(e,t,n,r){return new(n||
(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function
a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,
(function(){var r,i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void
0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=function(e,t){var n={};for(var r in
e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!
=e&&"function"==typeof Object.getOwnPropertySymbols){var
i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i+
+)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e
[r[i]])}return n}(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}},dN={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},fN=function(){return fN=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},fN.apply(this,arguments)};function pN(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function gN(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function mN(e){if("object"==typeof e){var
t=Promise.resolve(e);return function(){return t}}return e}function vN(e){return
function(t,n){return function(r){return pN(this,void 0,void 0,(function(){var
i,o,s,a,c,u,l,h,d;return gN(this,(function(f){switch(f.label){case 0:return
_o.isInstance(r.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:
[2,t(r)];case 1:return o=f.sent(),[3,3];case 2:o=e.signer,f.label=3;case 3:return
i=o,a=t,c=[fN({},r)],d={},[4,i.sign(r.request,{signingDate:new Date(Date.now()
+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_servi
ce})];case 4:return[4,a.apply(void 0,[fN.apply(void
0,c.concat([(d.request=f.sent(),d)]))])];case 5:return
s=f.sent(),u=s.response.headers,(l=u&&(u.date||
u.Date))&&(p=h=Date.parse(l),g=e.systemClockOffset,Math.abs(function(e){return new
Date(Date.now()+e)}(g).getTime()-p)>=3e5&&(e.systemClockOffset=h-Date.now())),
[2,s]}var p,g}))}))}}}var bN={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},yN=function(){return yN=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},yN.apply(this,arguments)};function wN(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}function _N(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(wN(arguments[t]));return e}var EN="user-agent",SN=/[^\!\#\$\%\&\'\*\
+\-\.\^\_\`\|\~\d\w]/g,TN=function(e){var
t=wN(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(SN,"_")})).join("/")},AN={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},CN=function(e)
{return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(r)
{return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}(void 0,void
0,void 0,(function(){var i,o,s,a,c,u,l,h;return function(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}(this,(function(d){switch(d.label){case 0:return
i=r.request,_o.isInstance(i)?(o=i.headers,s=(null===(l=null==t?void
0:t.userAgent)||void 0===l?void 0:l.map(TN))||[],[4,n.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=d.sent().map(TN),c=(null===(h=null==n?void
0:n.customUserAgent)||void 0===h?void 0:h.map(TN))||[],o["x-amz-user-
agent"]=_N(a,s,c).join(" "),u=_N(a.filter((function(e){return e.startsWith("aws-
sdk-")})),c).join(" "),"browser"!==n.runtime&&u&&(o[EN]=o[EN]?o[EN]+" "+u:u),
[2,e(yN(yN({},r),{request:i}))]}}))}))}}),AN)}}},ON=function(e){function t(t){var
n,r,i=this,o=co(co({},cN),t),s=qa(o),a=function(e){var
t,n=this,r=mN(e.credentials||
e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||
i,s=e.systemClockOffset,a=void 0===s?e.systemClockOffset||0:s,c=e.sha256;return
t=e.signer?mN(e.signer):function(){return mN(e.region)().then((function(t){return
pN(n,void 0,void 0,(function(){return gN(this,(function(n){switch(n.label){case
0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||
{},t]]}}))}))})).then((function(t){var n=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}(t,2),i=n[0],s=n[1],a=i.signingRegion,u=i.signingService;return
e.signingRegion=e.signingRegion||a||s,e.signingName=e.signingName||u||
e.serviceId,new
Uc({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePa
th:o})}))},fN(fN({},e),
{systemClockOffset:a,signingEscapePath:o,credentials:r,signer:t})}
(za(s)),c=Sa(a),u=yN(yN({},n=c),{customUserAgent:"string"==typeof
n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent});return(i=e.call(this,u)||
this).config=u,i.middlewareStack.use((r=i.config,{applyToStack:function(e)
{e.addRelativeTo(vN(r),bN)}})),i.middlewareStack.use(fa(i.config)),i.middlewareStac
k.use(Za(i.config)),i.middlewareStack.use(lN(i.config)),i.middlewareStack.use((i.co
nfig,{applyToStack:function(e)
{e.add(hN(),dN)}})),i.middlewareStack.use(CN(i.config)),i}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(os),xN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e)
{try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e)
{o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new
n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||
[])).next())}))},IN=function(e,t){var n,r,i,o,s={label:0,sent:function()
{if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return
o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return
function(c){return function(a){if(n)throw new TypeError("Generator is already
executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?
r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return
i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return
s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case
7:a=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0]))
{s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3]))
{s.label=a[1];break}if(6===a[0]&&s.label<i[1])
{s.label=i[1],i=a;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(
e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?
a[1]:void 0,done:!0}}([a,c])}}},PN=function(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s},DN=function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i
in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},kN=new h("AWSCloudWatch"),RN=function(){function
e(e){this.configure(e),this._dataTracker={eventUploadInProgress:!1,logEvents:
[]},this._currentLogBatch=[],this._initiateLogPushInterval()}return
e.prototype.getProviderName=function(){return
e.PROVIDER_NAME},e.prototype.getCategoryName=function(){return
e.CATEGORY},e.prototype.getLogQueue=function(){return
this._dataTracker.logEvents},e.prototype.configure=function(e){if(!e)return
this._config||{};var t=Object.assign({},this._config,D(e).Logging,e);return
this._config=t,this._config},e.prototype.createLogGroup=function(e){return
xN(this,void 0,void 0,(function(){var t,n;return IN(this,(function(r)
{switch(r.label){case 0:kN.debug("creating new log group in CloudWatch -
",e.logGroupName),t=new KM(e),r.label=1;case 1:return r.trys.push([1,4,,5]),
[4,this._ensureCredentials()];case 2:if(!r.sent())throw new
Error(s);return[4,this._initCloudWatchLogs().send(t)];case
3:return[2,r.sent()];case 4:throw n=r.sent(),kN.error("error creating log group -
".concat(n)),n;case 5:return[2]}}))}))},e.prototype.getLogGroups=function(e){return
xN(this,void 0,void 0,(function(){var t,n;return IN(this,(function(r)
{switch(r.label){case 0:kN.debug("getting list of log groups"),t=new
YM(e),r.label=1;case 1:return r.trys.push([1,4,,5]),
[4,this._ensureCredentials()];case 2:if(!r.sent())throw new
Error(s);return[4,this._initCloudWatchLogs().send(t)];case
3:return[2,r.sent()];case 4:throw n=r.sent(),kN.error("error getting log group -
".concat(n)),n;case 5:return[2]}}))}))},e.prototype.createLogStream=function(e)
{return xN(this,void 0,void 0,(function(){var t,n;return IN(this,(function(r)
{switch(r.label){case 0:kN.debug("creating new log stream in CloudWatch -
",e.logStreamName),t=new $M(e),r.label=1;case 1:return r.trys.push([1,4,,5]),
[4,this._ensureCredentials()];case 2:if(!r.sent())throw new
Error(s);return[4,this._initCloudWatchLogs().send(t)];case
3:return[2,r.sent()];case 4:throw n=r.sent(),kN.error("error creating log stream -
".concat(n)),n;case 5:return[2]}}))}))},e.prototype.getLogStreams=function(e)
{return xN(this,void 0,void 0,(function(){var t,n;return IN(this,(function(r)
{switch(r.label){case 0:kN.debug("getting list of log streams"),t=new
QM(e),r.label=1;case 1:return r.trys.push([1,4,,5]),
[4,this._ensureCredentials()];case 2:if(!r.sent())throw new
Error(s);return[4,this._initCloudWatchLogs().send(t)];case
3:return[2,r.sent()];case 4:throw n=r.sent(),kN.error("error getting log stream -
".concat(n)),n;case 5:return[2]}}))}))},e.prototype.getLogEvents=function(e){return
xN(this,void 0,void 0,(function(){var t,n;return IN(this,(function(r)
{switch(r.label){case 0:kN.debug("getting log events from stream -
",e.logStreamName),t=new XM(e),r.label=1;case 1:return r.trys.push([1,4,,5]),
[4,this._ensureCredentials()];case 2:if(!r.sent())throw new
Error(s);return[4,this._initCloudWatchLogs().send(t)];case
3:return[2,r.sent()];case 4:throw n=r.sent(),kN.error("error getting log events -
".concat(n)),n;case 5:return[2]}}))}))},e.prototype.pushLogs=function(e)
{kN.debug("pushing log events to
Cloudwatch..."),this._dataTracker.logEvents=DN(DN([],PN(this._dataTracker.logEvents
),!1),PN(e),!1)},e.prototype._validateLogGroupExistsAndCreate=function(e){return
xN(this,void 0,void 0,(function(){var t,n,r,i;return IN(this,(function(o)
{switch(o.label){case
0:if(this._dataTracker.verifiedLogGroup)return[2,this._dataTracker.verifiedLogGroup
];o.label=1;case 1:return o.trys.push([1,5,,6]),[4,this._ensureCredentials()];case
2:if(!o.sent())throw new
Error(s);return[4,this.getLogGroups({logGroupNamePrefix:e})];case 3:return"string"!
=typeof(t=o.sent())&&t.logGroups&&(n=t.logGroups.filter((function(t){return
t.logGroupName===e}))).length>0?(this._dataTracker.verifiedLogGroup=n[0],[2,n[0]]):
[4,this.createLogGroup({logGroupName:e})];case 4:return o.sent(),[2,null];case
5:throw r=o.sent(),i="failure during log group search:
".concat(r),kN.error(i),r;case
6:return[2]}}))}))},e.prototype._validateLogStreamExists=function(e,t){return
xN(this,void 0,void 0,(function(){var n,r,i,o;return IN(this,(function(a)
{switch(a.label){case 0:return a.trys.push([0,4,,5]),
[4,this._ensureCredentials()];case 1:if(!a.sent())throw new
Error(s);return[4,this.getLogStreams({logGroupName:e,logStreamNamePrefix:t})];case
2:return(n=a.sent()).logStreams&&(r=n.logStreams.filter((function(e){return
e.logStreamName===t}))).length>0?(this._nextSequenceToken=r[0].uploadSequenceToken,
[2,r[0]]):[4,this.createLogStream({logGroupName:e,logStreamName:t})];case 3:return
a.sent(),[2,null];case 4:throw i=a.sent(),o="failure during log stream search:
".concat(i),kN.error(o),i;case
5:return[2]}}))}))},e.prototype._sendLogEvents=function(e){return xN(this,void
0,void 0,(function(){var t,n,r;return IN(this,(function(i){switch(i.label){case
0:return i.trys.push([0,3,,4]),[4,this._ensureCredentials()];case 1:if(!
i.sent())throw new Error(s);return kN.debug("sending log events to stream -
",e.logStreamName),t=new ZM(e),[4,this._initCloudWatchLogs().send(t)];case
2:return[2,i.sent()];case 3:return n=i.sent(),r="failure during log push:
".concat(n),kN.error(r),[3,4];case
4:return[2]}}))}))},e.prototype._initCloudWatchLogs=function(){return new
ON({region:this._config.region,credentials:this._config.credentials,customUserAgent
:cn(),endpoint:this._config.endpoint})},e.prototype._ensureCredentials=function()
{return xN(this,void 0,void 0,(function(){var e=this;return IN(this,(function(t)
{switch(t.label){case 0:return[4,Tn.get().then((function(t){if(!t)return!1;var
n=Tn.shear(t);return kN.debug("set credentials for
logging",n),e._config.credentials=n,!0})).catch((function(e){return kN.warn("ensure
credentials error",e),!1}))];case
1:return[2,t.sent()]}}))}))},e.prototype._getNextSequenceToken=function(){return
xN(this,void 0,void 0,(function(){var e,t;return IN(this,(function(n)
{switch(n.label){case
0:if(this._nextSequenceToken&&this._nextSequenceToken.length>0)return[2,this._nextS
equenceToken];n.label=1;case 1:return n.trys.push([1,4,,5]),
[4,this._validateLogGroupExistsAndCreate(this._config.logGroupName)];case 2:return
n.sent(),this._nextSequenceToken=void 0,
[4,this._validateLogStreamExists(this._config.logGroupName,this._config.logStreamNa
me)];case 3:return(e=n.sent())&&(this._nextSequenceToken=e.uploadSequenceToken),
[2,this._nextSequenceToken];case 4:throw t=n.sent(),kN.error("failure while getting
next sequence token: ".concat(t)),t;case
5:return[2]}}))}))},e.prototype._safeUploadLogEvents=function(){return xN(this,void
0,void 0,(function(){var e,t,n,r,i;return IN(this,(function(o){switch(o.label){case
0:return o.trys.push([0,3,,4]),[4,this._getNextSequenceToken()];case 1:return
e=o.sent(),t=0===this._currentLogBatch.length?
this._getBufferedBatchOfLogs():this._currentLogBatch,n={logGroupName:this._config.l
ogGroupName,logStreamName:this._config.logStreamName,logEvents:t,sequenceToken:e},t
his._dataTracker.eventUploadInProgress=!0,[4,this._sendLogEvents(n)];case 2:return
r=o.sent(),this._nextSequenceToken=r.nextSequenceToken,this._dataTracker.eventUploa
dInProgress=!1,this._currentLogBatch=[],[2,r];case 3:if(i=o.sent(),kN.error("error
during _safeUploadLogEvents: ".concat(i)),!a.includes(i.name))throw
this._dataTracker.eventUploadInProgress=!1,i;return
this._getNewSequenceTokenAndSubmit({logEvents:this._currentLogBatch,logGroupName:th
is._config.logGroupName,logStreamName:this._config.logStreamName}),[3,4];case
4:return[2]}}))}))},e.prototype._getBufferedBatchOfLogs=function(){for(var
e=0,t=0;e<this._dataTracker.logEvents.length;){var
n=this._dataTracker.logEvents[e],r=n?(new
TextEncoder).encode(n.message).length+26:0;if(r>256e3){var i="Log entry exceeds
maximum size for CloudWatch logs. Log size: ".concat(r,". Truncating log
message.");kN.warn(i),n.message=n.message.substring(0,r)}if(t+r>1048576)break;t+=r,
e++}return
this._currentLogBatch=this._dataTracker.logEvents.splice(0,e),this._currentLogBatch
},e.prototype._getNewSequenceTokenAndSubmit=function(e){return xN(this,void 0,void
0,(function(){var t,n,r;return IN(this,(function(i){switch(i.label){case 0:return
i.trys.push([0,3,,4]),this._nextSequenceToken=void
0,this._dataTracker.eventUploadInProgress=!0,[4,this._getNextSequenceToken()];case
1:return t=i.sent(),e.sequenceToken=t,[4,this._sendLogEvents(e)];case 2:return
n=i.sent(),this._dataTracker.eventUploadInProgress=!1,this._currentLogBatch=[],
[2,n];case 3:throw r=i.sent(),kN.error("error when retrying log submission with new
sequence token: ".concat(r)),this._dataTracker.eventUploadInProgress=!1,r;case
4:return[2]}}))}))},e.prototype._initiateLogPushInterval=function(){var
e=this;this._timer&&clearInterval(this._timer),this._timer=setInterval((function()
{return xN(e,void 0,void 0,(function(){var e;return IN(this,(function(t)
{switch(t.label){case 0:return
t.trys.push([0,3,,4]),this._getDocUploadPermissibility()?
[4,this._safeUploadLogEvents()]:[3,2];case 1:t.sent(),t.label=2;case
2:return[3,4];case 3:return e=t.sent(),kN.error("error when calling
_safeUploadLogEvents in the timer interval - ".concat(e)),[3,4];case
4:return[2]}}))}))}),2e3)},e.prototype._getDocUploadPermissibility=function()
{return(0!==this._dataTracker.logEvents.length||0!
==this._currentLogBatch.length)&&!
this._dataTracker.eventUploadInProgress},e.PROVIDER_NAME="AWSCloudWatch",e.CATEGORY
=o,e}(),MN=[Gp,Tn],NN=[fE,Gp,AO];function LN(e){void 0===e&&(e={});var
t=e.modules,n=void 0===t?NN:t,r=e.req;n.includes(AO)&&!
n.includes(hE)&&n.push(hE);var i=p.configure(),o=new f,s=new wf({req:r});return
MN.forEach((function(e){n.includes(e)||o.register(new
e.constructor)})),n.forEach((function(e){o.register(new
e.constructor)})),o.configure(co(co({},i),{storage:s})),o}var FN=function(){return
FN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},FN.apply(this,arguments)};function jN(e,t,n,r){return new(n||(n=Promise))
((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e)
{try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):
(t=e.value,t instanceof n?t:new n((function(e)
{e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function BN(e,t){var
n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:
[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof
Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return
function(a){return function(o){if(n)throw new TypeError("Generator is already
executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||
((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return
i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return
s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case
7:o=s.ops.pop(),s.trys.pop();continue;default:if(!
((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0]))
{s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3]))
{s.label=o[1];break}if(6===o[0]&&s.label<i[1])
{s.label=i[1],i=o;break}if(i&&s.label<i[2])
{s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(
e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?
o[1]:void 0,done:!0}}([o,a])}}}function UN(e,t){var n="function"==typeof
Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void
0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e)
{i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw
i.error}}return s}var HN=n(58580),GN=n.n(HN),zN=function(e){return"string"==typeof
e&&(e.startsWith("fips-")||e.endsWith("-fips"))},VN=function(e){return zN(e)?
["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|
prod-)?|-fips/,""):e},WN=function(e,t){var n;void 0===e&&(e=[]);var
r=t.useFipsEndpoint,i=t.useDualstackEndpoint;return null===(n=e.find((function(e)
{var t=e.tags;return r===t.includes("fips")&&i===t.includes("dualstack")})))||void
0===n?void 0:n.hostname},qN=function(e,t){var
n,r,i,o,s,a,c=t.useFipsEndpoint,u=void 0!==c&&c,l=t.useDualstackEndpoint,h=void 0!
==l&&l,d=t.signingService,f=t.regionHash,p=t.partitionHash,g=function(e,t){var
n,r=t.partitionHash;return null!==(n=Object.keys(r||{}).find((function(t){return
r[t].regions.includes(e)})))&&void 0!==n?n:"aws"}(e,{partitionHash:p}),m=e in f?
e:null!==(r=null===(n=p[g])||void 0===n?void 0:n.endpoint)&&void 0!==r?
r:e,v={useFipsEndpoint:u,useDualstackEndpoint:h},b=function(e,t){var
n=t.partitionHostname;return t.regionHostname||(n?n.replace("{region}",e):void 0)}
(m,{regionHostname:WN(null===(i=f[m])||void 0===i?void
0:i.variants,v),partitionHostname:WN(null===(o=p[g])||void 0===o?void
0:o.variants,v)});if(void 0===b)throw new Error("Endpoint resolution failed for:
".concat({resolvedRegion:m,useFipsEndpoint:u,useDualstackEndpoint:h}));var
y=function(e,t){var n=t.signingRegion;if(n)return n;if(t.useFipsEndpoint){var
r=t.regionRegex.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/
g,"\\."),i=e.match(r);if(i)return i[0].slice(1,-1)}}(b,
{signingRegion:null===(s=f[m])||void 0===s?void
0:s.signingRegion,regionRegex:p[g].regionRegex,useFipsEndpoint:u});return
co(co({partition:g,signingService:d,hostname:b},y&&{signingRegion:y}),
(null===(a=f[m])||void 0===a?void
0:a.signingService)&&{signingService:f[m].signingService})},KN=function(){function
e(e)
{this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port
,this.query=e.query||{},this.headers=e.headers||
{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-
1)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!
==e.path.charAt(0)?"/".concat(e.path):e.path:"/"}return e.isInstance=function(e)
{if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in
t&&"path"in t&&"object"==typeof t.query&&"object"==typeof
t.headers},e.prototype.clone=function(){var t,n=new e(co(co({},this),
{headers:co({},this.headers)}));return
n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var
r,i=t[n];return co(co({},e),((r={})[n]=Array.isArray(i)?mo([],po(i),!1):i,r))}),
{}))),n},e}(),YN=function(){function e(e)
{this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return
e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof
t.statusCode&&"object"==typeof t.headers},e}();function $N(e){return/^[a-z0-9][a-
z0-9\.\-]*[a-z0-9]$/.test(e)}var QN,XN="content-length",ZN={step:"build",tags:
["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!
0},JN={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:
["HOST"],override:!0},eL={name:"loggerMiddleware",tags:
["LOGGER"],step:"initialize",override:!0},tL="X-Amzn-Trace-
Id",nL={step:"build",tags:
["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!
0,priority:"low"};!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(QN||
(QN={}));var
rL=QN.STANDARD,iL=["AuthFailure","InvalidSignatureException","RequestExpired","Requ
estInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],oL=["BandwidthLimit
Exceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete
","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled
","RequestThrottledException","SlowDown","ThrottledException","Throttling","Throttl
ingException","TooManyRequestsException","TransactionInProgressException"],sL=["Abo
rtError","TimeoutError","RequestTimeout","RequestTimeoutException"],aL=[500,502,503
,504],cL=["ECONNRESET","EPIPE","ETIMEDOUT"],uL=function(e){var t,n;return
429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||
oL.includes(e.name)||1==(null===(n=e.$retryable)||void 0===n?void
0:n.throttling)},lL=function(){function e(e){var
t,n,r,i,o;this.currentCapacity=0,this.enabled=!
1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0
,this.timeWindow=0,this.beta=null!==(t=null==e?void 0:e.beta)&&void 0!==t?
t:.7,this.minCapacity=null!==(n=null==e?void 0:e.minCapacity)&&void 0!==n?
n:1,this.minFillRate=null!==(r=null==e?void 0:e.minFillRate)&&void 0!==r?
r:.5,this.scaleConstant=null!==(i=null==e?void 0:e.scaleConstant)&&void 0!==i?
i:.4,this.smooth=null!==(o=null==e?void 0:e.smooth)&&void 0!==o?o:.8;var
s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math
.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapac
ity=this.minCapacity}return e.prototype.getCurrentTimeInSeconds=function(){return
Date.now()/1e3},e.prototype.getSendToken=function(){return lo(this,void 0,void 0,
(function(){return ho(this,(function(e)
{return[2,this.acquireTokenBucket(1)]}))}))},e.prototype.acquireTokenBucket=functio
n(e){return lo(this,void 0,void 0,(function(){var t;return ho(this,(function(n)
{switch(n.label){case 0:return this.enabled?
(this.refillTokenBucket(),e>this.currentCapacity?(t=(e-this.currentCapacity)/
this.fillRate*1e3,[4,new Promise((function(e){return setTimeout(e,t)}))]):[3,2]):
[2];case 1:n.sent(),n.label=2;case 2:return
this.currentCapacity=this.currentCapacity-e,
[2]}}))}))},e.prototype.refillTokenBucket=function(){var
e=this.getCurrentTimeInSeconds();if(this.lastTimestamp){var t=(e-
this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,th
is.currentCapacity+t),this.lastTimestamp=e}else
this.lastTimestamp=e},e.prototype.updateClientSendingRate=function(e){var
t;if(this.updateMeasuredRate(),uL(e)){var n=this.enabled?
Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=n,
this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=t
his.cubicThrottle(n),this.enableTokenBucket()}else
this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());var
r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)},e.prototype.calc
ulateTimeWindow=function()
{this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/
this.scaleConstant,1/3))},e.prototype.cubicThrottle=function(e){return
this.getPrecise(e*this.beta)},e.prototype.cubicSuccess=function(e){return
this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-
this.timeWindow,3)+this.lastMaxRate)},e.prototype.enableTokenBucket=function()
{this.enabled=!0},e.prototype.updateTokenBucketRate=function(e)
{this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapaci
ty=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,
this.maxCapacity)},e.prototype.updateMeasuredRate=function(){var
e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount+
+,t>this.lastTxRateBucket){var n=this.requestCount/(t-
this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measu
redTxRate*(1-
this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}},e.prototype.getPrecise=
function(e){return parseFloat(e.toFixed(8))},e}(),hL=function(e,t){return
Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},dL=function(e){return!!
e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return
iL.includes(e.name)}(e)||uL(e)||function(e){var t;return sL.includes(e.name)||
cL.includes((null==e?void 0:e.code)||"")||aL.includes((null===(t=e.$metadata)||void
0===t?void 0:t.httpStatusCode)||0)}(e))},fL=function(){function e(e,t){var
n,r,i,o,s,a,c,u,l;this.maxAttemptsProvider=e,this.mode=QN.STANDARD,this.retryDecide
r=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:dL,this.delayDecider=null!
==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:hL,this.retryQuota=null!
==(i=null==t?void 0:t.retryQuota)&&void 0!==i?i:(o=1,s=5,a=10,c=500,u=function(e)
{return"TimeoutError"===e.name?a:s},l=function(e){return
u(e)<=c},Object.freeze({hasRetryTokens:l,retrieveRetryTokens:function(e){if(!
l(e))throw new Error("No
retry token available");var t=u(e);return c-=t,t},releaseRetryTokens:function(e)
{c+=null!=e?e:o,c=Math.min(c,500)}}))}return
e.prototype.shouldRetry=function(e,t,n){return
t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAtt
empts=function(){return lo(this,void 0,void 0,(function(){var e;return ho(this,
(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),
[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return
t.sent(),e=3,[3,3];case 3:return[2,e]}}))}))},e.prototype.retry=function(e,t,n)
{return lo(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l;return ho(this,
(function(h){switch(h.label){case 0:return i=0,o=0,[4,this.getMaxAttempts()];case
1:s=h.sent(),a=t.request,KN.isInstance(a)&&(a.headers["amz-sdk-invocation-
id"]=ux()),c=function(){var c,l,h,d,f,p,g,m;return ho(this,(function(v)
{switch(v.label){case 0:return
v.trys.push([0,4,,7]),KN.isInstance(a)&&(a.headers["amz-sdk-
request"]="attempt=".concat(i+1,"; max=").concat(s)),(null==n?void
0:n.beforeRequest)?[4,n.beforeRequest()]:[3,2];case 1:v.sent(),v.label=2;case
2:return[4,e(t)];case 3:return c=v.sent(),l=c.response,h=c.output,(null==n?void
0:n.afterRequest)&&n.afterRequest(l),u.retryQuota.releaseRetryTokens(r),h.
$metadata.attempts=i+1,h.$metadata.totalRetryDelay=o,[2,{value:
{response:l,output:h}}];case 4:return d=v.sent(),f=gL(d),i++,u.shouldRetry(f,i,s)?
(r=u.retryQuota.retrieveRetryTokens(f),p=u.delayDecider(uL(f)?500:100,i),g=pL(f.
$response),m=Math.max(g||0,p),o+=m,[4,new Promise((function(e){return
setTimeout(e,m)}))]):[3,6];case 5:return v.sent(),[2,"continue"];case 6:throw f.
$metadata||(f.$metadata={}),f.$metadata.attempts=i,f.
$metadata.totalRetryDelay=o,f;case 7:return[2]}}))},u=this,h.label=2;case
2:return[5,c()];case 3:return"object"==typeof(l=h.sent())?[2,l.value]:[3,2];case
4:return[2]}}))}))},e}(),pL=function(e){if(YN.isInstance(e)){var
t=Object.keys(e.headers).find((function(e){return"retry-
after"===e.toLowerCase()}));if(t){var n=e.headers[t],r=Number(n);return
Number.isNaN(r)?new Date(n).getTime()-Date.now():1e3*r}}},gL=function(e){return e
instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof
e?new Error(e):new Error("AWS SDK error wrapper for ".concat(e))},mL=function(e)
{function t(t,n){var r=this,i=null!=n?n:{},o=i.rateLimiter,s=uo(i,
["rateLimiter"]);return(r=e.call(this,t,s)||this).rateLimiter=null!=o?o:new
lL,r.mode=QN.ADAPTIVE,r}return Rr(t,e),t.prototype.retry=function(t,n){return
lo(this,void 0,void 0,(function(){var r=this;return ho(this,(function(i)
{return[2,e.prototype.retry.call(this,t,n,{beforeRequest:function(){return
lo(r,void 0,void 0,(function(){return ho(this,(function(e)
{return[2,this.rateLimiter.getSendToken()]}))}))},afterRequest:function(e)
{r.rateLimiter.updateClientSendingRate(e)}})]}))}))},t}
(fL),vL={name:"retryMiddleware",tags:
["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bL=function(e)
{function t(n,r){void 0===r&&(r=!0);var i=e.call(this,n)||this;return
i.tryNextLink=r,i.name="ProviderError",Object.setPrototypeOf(i,t.prototype),i}retur
n Rr(t,e),t.from=function(e,t){return void 0===t&&(t=!0),Object.assign(new
this(e.message,t),e)},t}(Error);(function(e){Rr((function t(n,r){void 0===r&&(r=!
0);var i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="CredentialsProviderError",Object.setPrototypeOf(i,t.prototy
pe),i}),e)})(bL),function(e){Rr((function t(n,r){void 0===r&&(r=!0);var
i=e.call(this,n,r)||this;return
i.tryNextLink=r,i.name="TokenProviderError",Object.setPrototypeOf(i,t.prototype),i}
),e)}(bL);var yL="X-Amz-Date",wL="X-Amz-Signature",_L="X-Amz-Security-
Token",EL="authorization",SL=yL.toLowerCase(),TL=[EL,SL,"date"],AL=wL.toLowerCase()
,CL="x-amz-content-sha256",OL=_L.toLowerCase(),xL={authorization:!0,"cache-
control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!
0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-
agent":!0,"x-amzn-trace-id":!0},IL=/^proxy-/,PL=/^sec-/,DL="AWS4-HMAC-
SHA256",kL="AWS4-HMAC-SHA256-
PAYLOAD",RL="aws4_request",ML={},NL=[],LL=function(e,t,n)
{return"".concat(e,"/").concat(t,"/").concat(n,"/").concat(RL)},FL=function(e,t,n)
{var r=new e(t);return r.update(n),r.digest()},jL=function(e,t,n){var
r,i,o=e.headers,s={};try{for(var a=fo(Object.keys(o).sort()),c=a.next();!
c.done;c=a.next()){var u=c.value;if(null!=o[u]){var l=u.toLowerCase();(l in xL||
(null==t?void 0:t.has(l))||IL.test(l)||PL.test(l))&&(!n||n&&!n.has(l))||
(s[l]=o[u].trim().replace(/\s+/g," "))}}}catch(e){r={error:e}}finally{try{c&&!
c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return
s},BL=function(e){return
encodeURIComponent(e).replace(/[!'()*]/g,UL)},UL=function(e)
{return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())},HL=function(e,t){var
n=e.headers,r=e.body;return lo(void 0,void 0,void 0,(function(){var
e,i,o,s,a,c,u;return ho(this,(function(l){switch(l.label){case
0:try{for(e=fo(Object.keys(n)),i=e.next();!
i.done;i=e.next())if((o=i.value).toLowerCase()===CL)return[2,n[o]]}catch(e)
{c={error:e}}finally{try{i&&!i.done&&(u=e.return)&&u.call(e)}finally{if(c)throw
c.error}}return null!=r?[3,1]:
[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case
1:return"string"==typeof r||ArrayBuffer.isView(r)||(h=r,"function"==typeof
ArrayBuffer&&h instanceof ArrayBuffer||"[object
ArrayBuffer]"===Object.prototype.toString.call(h))?((s=new t).update(r),a=Ex,
[4,s.digest()]):[3,3];case 2:return[2,a.apply(void 0,[l.sent()])];case
3:return[2,"UNSIGNED-PAYLOAD"]}var h}))}))},GL=function(e){var
t=e.headers,n=e.query,r=uo(e,["headers","query"]);return co(co({},r),
{headers:co({},t),query:n?zL(n):void 0})},zL=function(e){return
Object.keys(e).reduce((function(t,n){var r,i=e[n];return co(co({},t),((r={})
[n]=Array.isArray(i)?mo([],po(i),!1):i,r))}),{})},VL=function(e){var
t,n;e="function"==typeof e.clone?e.clone():GL(e);try{for(var
r=fo(Object.keys(e.headers)),i=r.next();!i.done;i=r.next()){var
o=i.value;TL.indexOf(o.toLowerCase())>-1&&delete e.headers[o]}}catch(e)
{t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw
t.error}}return e},WL=function(){function e(e){var
t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,s=e.uriEscapePa
th,a=void 0===s||
s;this.service=i,this.sha256=o,this.uriEscapePath=a,this.applyChecksum="boolean"!
=typeof t||t,this.regionProvider=NO(r),this.credentialProvider=NO(n)}return
e.prototype.presign=function(e,t){return void 0===t&&(t={}),lo(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_,E,S,T,A;return ho(this,
(function(C){switch(C.label){case 0:return n=t.signingDate,r=void 0===n?new
Date:n,i=t.expiresIn,o=void 0===i?
3600:i,s=t.unsignableHeaders,a=t.unhoistableHeaders,c=t.signableHeaders,u=t.signing
Region,l=t.signingService,[4,this.credentialProvider()];case 1:return
h=C.sent(),this.validateResolvedCredentials(h),null==u?[3,2]:(f=u,[3,4]);case
2:return[4,this.regionProvider()];case 3:f=C.sent(),C.label=4;case 4:return
d=f,p=qL(r),g=p.longDate,m=p.shortDate,o>604800?[2,Promise.reject("Signature
version 4 presigned URLs must have an expiration date less than one week in the
future")]:(v=LL(m,d,null!=l?l:this.service),b=function(e,t){var n,r,i;void
0===t&&(t={});var o="function"==typeof e.clone?
e.clone():GL(e),s=o.headers,a=o.query,c=void 0===a?{}:a;try{for(var
u=fo(Object.keys(s)),l=u.next();!l.done;l=u.next()){var
h=l.value,d=h.toLowerCase();"x-amz-"!==d.slice(0,6)||
(null===(i=t.unhoistableHeaders)||void 0===i?void 0:i.has(d))||(c[h]=s[h],delete
s[h])}}catch(e){n={error:e}}finally{try{l&&!
l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return co(co({},e),
{headers:s,query:c})}(VL(e),
{unhoistableHeaders:a}),h.sessionToken&&(b.query[_L]=h.sessionToken),b.query["X-
Amz-Algorithm"]=DL,b.query["X-Amz-
Credential"]="".concat(h.accessKeyId,"/").concat(v),b.query[yL]=g,b.query["X-Amz-
Expires"]=o.toString(10),y=jL(b,s,c),b.query["X-Amz-
SignedHeaders"]=KL(y),w=b.query,_=wL,E=this.getSignature,S=[g,v,this.getSigningKey(
h,d,m,l)],T=this.createCanonicalRequest,A=[b,y],[4,HL(e,this.sha256)]);case
5:return[4,E.apply(this,S.concat([T.apply(this,A.concat([C.sent()]))]))];case
6:return w[_]=C.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return
lo(this,void 0,void 0,(function(){return ho(this,(function(n)
{return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?
[2,this.signEvent(e,t)]:
[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var
n=e.headers,r=e.payload,i=t.signingDate,o=void 0===i?new
Date:i,s=t.priorSignature,a=t.signingRegion,c=t.signingService;return lo(this,void
0,void 0,(function(){var e,t,i,u,l,h,d,f,p,g,m;return ho(this,(function(v)
{switch(v.label){case 0:return null==a?[3,1]:(t=a,[3,3]);case
1:return[4,this.regionProvider()];case 2:t=v.sent(),v.label=3;case 3:return
e=t,i=qL(o),u=i.shortDate,l=i.longDate,h=LL(u,e,null!=c?c:this.service),
[4,HL({headers:{},body:r},this.sha256)];case 4:return d=v.sent(),(f=new
this.sha256).update(n),g=Ex,[4,f.digest()];case 5:return p=g.apply(void 0,
[v.sent()]),m=[kL,l,h,s,p,d].join("\n"),[2,this.signString(m,
{signingDate:o,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=f
unction(e,t){var n=void 0===t?{}:t,r=n.signingDate,i=void 0===r?new
Date:r,o=n.signingRegion,s=n.signingService;return lo(this,void 0,void 0,
(function(){var t,n,r,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case
0:return[4,this.credentialProvider()];case 1:return
t=d.sent(),this.validateResolvedCredentials(t),null==o?[3,2]:(r=o,[3,4]);case
2:return[4,this.regionProvider()];case 3:r=d.sent(),d.label=4;case 4:return
n=r,a=qL(i).shortDate,l=(u=this.sha256).bind,[4,this.getSigningKey(t,n,a,s)];case
5:return(c=new(l.apply(u,[void 0,d.sent()]))).update(e),h=Ex,[4,c.digest()];case
6:return[2,h.apply(void 0,
[d.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?
{}:t,r=n.signingDate,i=void
0===r?new
Date:r,o=n.signableHeaders,s=n.unsignableHeaders,a=n.signingRegion,c=n.signingServi
ce;return lo(this,void 0,void 0,(function(){var t,n,r,u,l,h,d,f,p,g,m;return
ho(this,(function(v){switch(v.label){case
0:return[4,this.credentialProvider()];case 1:return
t=v.sent(),this.validateResolvedCredentials(t),null==a?[3,2]:(r=a,[3,4]);case
2:return[4,this.regionProvider()];case 3:r=v.sent(),v.label=4;case 4:return
n=r,u=VL(e),l=qL(i),h=l.longDate,d=l.shortDate,f=LL(d,n,null!=c?
c:this.service),u.headers[SL]=h,t.sessionToken&&(u.headers[OL]=t.sessionToken),
[4,HL(u,this.sha256)];case 5:return p=v.sent(),!function(e,t){var
n,r;e=e.toLowerCase();try{for(var i=fo(Object.keys(t)),o=i.next();!
o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(e)
{n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw
n.error}}return!1}
(CL,u.headers)&&this.applyChecksum&&(u.headers[CL]=p),g=jL(u,s,o),
[4,this.getSignature(h,f,this.getSigningKey(t,n,d,c),this.createCanonicalRequest(u,
g,p))];case 6:return m=v.sent(),u.headers[EL]="".concat(DL," ")
+"Credential=".concat(t.accessKeyId,"/").concat(f,", ")
+"SignedHeaders=".concat(KL(g),", ")+"Signature=".concat(m),
[2,u]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var
r=Object.keys(t).sort();return"".concat(e.method,"\
n").concat(this.getCanonicalPath(e),"\n").concat(function(e){var
t,n,r=e.query,i=void 0===r?{}:r,o=[],s={},a=function(e)
{if(e.toLowerCase()===AL)return"continue";o.push(e);var t=i[e];"string"==typeof t?
s[e]="".concat(BL(e),"=").concat(BL(t)):Array.isArray(t)&&(s[e]=t.slice(0).sort().r
educe((function(t,n){return t.concat(["".concat(BL(e),"=").concat(BL(n))])}),
[]).join("&"))};try{for(var c=fo(Object.keys(i).sort()),u=c.next();!
u.done;u=c.next())a(u.value)}catch(e){t={error:e}}finally{try{u&&!
u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return
o.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e),"\
n").concat(r.map((function(e){return"".concat(e,":").concat(t[e])})).join("\n"),"\
n\n").concat(r.join(";"),"\
n").concat(n)},e.prototype.createStringToSign=function(e,t,n){return lo(this,void
0,void 0,(function(){var r,i;return ho(this,(function(o){switch(o.label){case
0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),
[2,"".concat(DL,"\n").concat(e,"\n").concat(t,"\
n").concat(Ex(i))]}}))}))},e.prototype.getCanonicalPath=function(e){var
t,n,r=e.path;if(this.uriEscapePath){var i=[];try{for(var
o=fo(r.split("/")),s=o.next();!s.done;s=o.next()){var a=s.value;0!==(null==a?void
0:a.length)&&"."!==a&&(".."===a?i.pop():i.push(a))}}catch(e)
{t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw
t.error}}var c="".concat((null==r?void
0:r.startsWith("/"))?"/":"").concat(i.join("/")).concat(i.length>0&&(null==r?void
0:r.endsWith("/"))?"/":"");return encodeURIComponent(c).replace(/%2F/g,"/")}return
r},e.prototype.getSignature=function(e,t,n,r){return lo(this,void 0,void 0,
(function(){var i,o,s,a,c;return ho(this,(function(u){switch(u.label){case
0:return[4,this.createStringToSign(e,t,r)];case 1:return
i=u.sent(),a=(s=this.sha256).bind,[4,n];case 2:return(o=new(a.apply(s,[void
0,u.sent()]))).update(i),c=Ex,[4,o.digest()];case 3:return[2,c.apply(void 0,
[u.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return
function(e,t,n,r,i){return lo(void 0,void 0,void 0,(function(){var
o,s,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label){case
0:return[4,FL(e,t.secretAccessKey,t.accessKeyId)];case 1:if(o=p.sent(),
(s="".concat(n,":").concat(r,":").concat(i,":").concat(Ex(o),":").concat(t.sessionT
oken))in ML)return[2,ML[s]];for(NL.push(s);NL.length>50;)delete
ML[NL.shift()];a="AWS4".concat(t.secretAccessKey),p.label=2;case
2:p.trys.push([2,7,8,9]),c=fo([n,r,i,RL]),u=c.next(),p.label=3;case 3:return
u.done?[3,6]:(l=u.value,[4,FL(e,a,l)]);case 4:a=p.sent(),p.label=5;case 5:return
u=c.next(),[3,3];case 6:return[3,9];case 7:return h=p.sent(),d={error:h},[3,9];case
8:try{u&&!u.done&&(f=c.return)&&f.call(c)}finally{if(d)throw d.error}return[7];case
9:return[2,ML[s]=a]}}))}))}(this.sha256,e,n,t,r||
this.service)},e.prototype.validateResolvedCredentials=function(e){if("object"!
=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw
new Error("Resolved credential object is not valid")},e}(),qL=function(e){var
t,n=(t=e,function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?
Number(e)?new Date(1e3*Number(e)):new Date(e):e}(t).toISOString().replace(/\.\
d{3}Z$/,"Z")).replace(/[\-:]/
g,"");return{longDate:n,shortDate:n.slice(0,8)}},KL=function(e){return
Object.keys(e).sort().join(";")},YL=function(e){return new Date(Date.now()+e)},
$L=function(e,t){var n=Date.parse(e);return function(e,t){return
Math.abs(YL(t).getTime()-e)>=3e5}(n,t)?n-Date.now():t},QL=function(e){var
t,n,r;return YN.isInstance(e)?null!==(n=null===(t=e.headers)||void 0===t?void
0:t.date)&&void 0!==n?n:null===(r=e.headers)||void 0===r?void 0:r.Date:void
0},XL={name:"awsAuthMiddleware",tags:
["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!
0},ZL="user-agent",JL="x-amz-user-agent",eF=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\
w]/g,tF=function(e){var
t=po(e,2),n=t[0],r=t[1],i=n.indexOf("/"),o=n.substring(0,i),s=n.substring(i+1);retu
rn"api"===o&&(s=s.toLowerCase()),[o,s,r].filter((function(e){return
e&&e.length>0})).map((function(e){return null==e?void
0:e.replace(eF,"_")})).join("/")},nF={name:"getUserAgentMiddleware",step:"build",pr
iority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},rF=function(){var
e=[],t=[],n=new Set,r=function(n){return e.forEach((function(e)
{n.add(e.middleware,co({},e))})),t.forEach((function(e)
{n.addRelativeTo(e.middleware,co({},e))})),n},i=function(e){var t=[];return
e.before.forEach((function(e){0===e.before.length&&0===e.after.length?
t.push(e):t.push.apply(t,mo([],po(i(e)),!
1))})),t.push(e),e.after.reverse().forEach((function(e)
{0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,mo([],po(i(e)),!
1))})),t},o=function(n){void 0===n&&(n=!1);var
r=[],o=[],s={};e.forEach((function(e){var t=co(co({},e),{before:[],after:
[]});t.name&&(s[t.name]=t),r.push(t)})),t.forEach((function(e){var t=co(co({},e),
{before:[],after:[]});t.name&&(s[t.name]=t),o.push(t)})),o.forEach((function(e)
{if(e.toMiddleware){var t=s[e.toMiddleware];if(void 0===t){if(n)return;throw new
Error("".concat(e.toMiddleware," is not found when adding
").concat(e.name||"anonymous"," middleware ").concat(e.relation,"
").concat(e.toMiddleware))}"after"===e.relation&&t.after.push(e),"before"===e.relat
ion&&t.before.push(e)}}));var a,c=(a=r,a.sort((function(e,t){return iF[t.step]-
iF[e.step]||oF[t.priority||"normal"]-
oF[e.priority||"normal"]}))).map(i).reduce((function(e,t){return
e.push.apply(e,mo([],po(t),!1)),e}),[]);return c},s={add:function(t,r){void
0===r&&(r={});var
i=r.name,o=r.override,s=co({step:"initialize",priority:"normal",middleware:t},r);if
(i){if(n.has(i)){if(!o)throw new Error("Duplicate middleware name
'".concat(i,"'"));var a=e.findIndex((function(e){return
e.name===i})),c=e[a];if(c.step!==s.step||c.priority!==s.priority)throw new
Error('"'.concat(i,'" middleware with ').concat(c.priority," priority in
").concat(c.step," step cannot be ")+"overridden by same-name middleware with
".concat(s.priority," priority in ").concat(s.step,"
step."));e.splice(a,1)}n.add(i)}e.push(s)},addRelativeTo:function(e,r){var
i=r.name,o=r.override,s=co({middleware:e},r);if(i){if(n.has(i)){if(!o)throw new
Error("Duplicate middleware name '".concat(i,"'"));var a=t.findIndex((function(e)
{return e.name===i})),c=t[a];if(c.toMiddleware!==s.toMiddleware||c.relation!
==s.relation)throw new Error('"'.concat(i,'" middleware ').concat(c.relation,'
"').concat(c.toMiddleware,'" middleware cannot be overridden ')+"by same-name
middleware ".concat(s.relation,' "').concat(s.toMiddleware,'"
middleware.'));t.splice(a,1)}n.add(i)}t.push(s)},clone:function(){return
r(rF())},use:function(e){e.applyToStack(s)},remove:function(r)
{return"string"==typeof r?function(r){var i=!1,o=function(e){return!e.name||e.name!
==r||(i=!0,n.delete(r),!1)};return e=e.filter(o),t=t.filter(o),i}(r):function(r)
{var i=!1,o=function(e){return e.middleware!==r||(i=!0,e.name&&n.delete(e.name),!
1)};return e=e.filter(o),t=t.filter(o),i}(r)},removeByTag:function(r){var i=!
1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(r)||(o&&n.delete(o),i=!
0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var
t=r(rF());return t.use(e),t},applyToStack:r,identify:function(){return o(!
0).map((function(e){return e.name+": "+(e.tags||
[]).join(",")}))},resolve:function(e,t){var n,r;try{for(var
i=fo(o().map((function(e){return e.middleware})).reverse()),s=i.next();!
s.done;s=i.next())e=(0,s.value)(e,t)}catch(e){n={error:e}}finally{try{s&&!
s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e}};return
s},iF={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},oF={high:3
,normal:2,low:1},sF=function(){function e(e)
{this.middlewareStack=rF(),this.config=e}return e.prototype.send=function(e,t,n)
{var r="function"!=typeof t?t:void 0,i="function"==typeof t?
t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return
o(e).then((function(e){return e.output}));o(e).then((function(e){return
i(null,e.output)}),(function(e){return i(e)})).catch((function()
{}))},e.prototype.destroy=function()
{this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}
(),aF=function()
{this.middlewareStack=rF()},cF="***SensitiveInformation***",uF=function(e){if(null!
=e){if("number"==typeof e){if(0!==e&&1!==e||SF.warn(EF("Expected boolean, got
".concat(typeof e,": ").concat(e))),0===e)return!1;if(1===e)return!
0}if("string"==typeof e){var t=e.toLowerCase();if("false"!==t&&"true"!==t||
SF.warn(EF("Expected boolean, got ".concat(typeof e,":
").concat(e))),"false"===t)return!1;if("true"===t)return!0}if("boolean"==typeof
e)return e;throw new TypeError("Expected boolean, got ".concat(typeof e,":
").concat(e))}},lF=function(e){if(null!=e){if("string"==typeof e){var
t=parseFloat(e);if(!Number.isNaN(t))return String(t)!
==String(e)&&SF.warn(EF("Expected number but observed string:
".concat(e))),t}if("number"==typeof e)return e;throw new TypeError("Expected
number, got ".concat(typeof e,": ").concat(e))}},hF=Math.ceil(Math.pow(2,127)*(2-
Math.pow(2,-23))),dF=function(e){return fF(e,32)},fF=function(e,t){var
n=function(e){if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw
new TypeError("Expected integer, got ".concat(typeof e,": ").concat(e))}}
(e);if(void 0!==n&&pF(n,t)!==n)throw new TypeError("Expected ".concat(t,"-bit
integer, got ").concat(e));return n},pF=function(e,t){switch(t){case 32:return
Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return
Int8Array.of(e)[0]}},gF=function(e,t){if(null==e){if(t)throw new
TypeError("Expected a non-null value for ".concat(t));throw new TypeError("Expected
a non-null value")}return e},mF=function(e){if(null!=e){if("object"==typeof e&&!
Array.isArray(e))return e;var t=Array.isArray(e)?"array":typeof e;throw new
TypeError("Expected object, got ".concat(t,": ").concat(e))}},vF=function(e)
{if(null!=e){if("string"==typeof e)return
e;if(["boolean","number","bigint"].includes(typeof e))return SF.warn(EF("Expected
string, got ".concat(typeof e,": ").concat(e))),String(e);throw new
TypeError("Expected string, got ".concat(typeof e,": ").concat(e))}},bF=/(-?(?:0|
[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,yF=function(e){var
t=e.match(bF);if(null===t||t[0].length!==e.length)throw new TypeError("Expected
real number, got implicit NaN");return parseFloat(e)},wF=function(e)
{return"string"==typeof e?_F(e):lF(e)},_F=function(e){switch(e){case"NaN":return
NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new
Error("Unable to parse float value: ".concat(e))}},EF=function(e){return String(new
TypeError(e).stack||e).split("\n").slice(0,5).filter((function(e){return!
e.includes("stackTraceWarning")})).join("\
n")},SF={warn:console.warn},TF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Se
p","Oct","Nov","Dec"],AF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\
d{2})(?:\.(\d+))?[zZ]$/),CF=function(e){if(null!=e){if("string"!=typeof e)throw new
TypeError("RFC-3339 date-times must be expressed as strings");var t=AF.exec(e);if(!
t)throw new TypeError("Invalid RFC-3339 date-time value");var
n=po(t,8),r=(n[0],n[1]),i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],l=function(e)
{return function(e){return fF(e,16)}("string"==typeof e?yF(e):e)}
(RF(r)),h=DF(i,"month",1,12),d=DF(o,"day",1,31);return OF(l,h,d,
{hours:s,minutes:a,seconds:c,fractionalMilliseconds:u})}},OF=function(e,t,n,r){var
i=t-1;return IF(e,i,n),new
Date(Date.UTC(e,i,n,DF(r.hours,"hour",0,23),DF(r.minutes,"minute",0,59),DF(r.second
s,"seconds",0,60),kF(r.fractionalMilliseconds)))},xF=[31,28,31,30,31,30,31,31,30,31
,30,31],IF=function(e,t,n){var r=xF[t];if(1===t&&PF(e)&&(r=29),n>r)throw new
TypeError("Invalid day for ".concat(TF[t]," in ").concat(e,":
").concat(n))},PF=function(e){return e%4==0&&(e%100!=0||e
%400==0)},DF=function(e,t,n,r){var i=function(e){return function(e){return fF(e,8)}
("string"==typeof e?yF(e):e)}(RF(e));if(i<n||i>r)throw new TypeError("".concat(t,"
must be between ").concat(n," and ").concat(r,", inclusive"));return
i},kF=function(e){return null==e?0:1e3*function(e){return function(e){var
t=lF(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>hF)throw
new TypeError("Expected 32-bit float, got ".concat(e));return t}("string"==typeof
e?yF(e):e)}("0."+e)},RF=function(e){for(var t=0;t<e.length-1&&"0"===e.charAt(t);)t+
+;return 0===t?e:e.slice(t)},MF=function(e){function t(n){var
r=e.call(this,n.message)||this;return
Object.setPrototypeOf(r,t.prototype),r.name=n.name,r.$fault=n.$fault,r.$metadata=n.
$metadata,r}return Rr(t,e),t}(Error),NF=function(e,t){void
0===t&&(t={}),Object.entries(t).filter((function(e){return void 0!==po(e,2)
[1]})).forEach((function(t){var n=po(t,2),r=n[0],i=n[1];null!=e[r]&&""!==e[r]||
(e[r]=i)}));var n=e.message||e.Message||"UnknownError";return e.message=n,delete
e.Message,e},LF=function(e){var
t=e.output,n=e.parsedBody,r=e.exceptionCtor,i=e.errorCode,o=FF(t),s=o.httpStatusCod
e?o.httpStatusCode+"":void 0,a=new r({name:n.code||n.Code||i||s||"UnknowError",
$fault:"client",$metadata:o});throw NF(a,n)},FF=function(e){var
t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-
requestid"])&&void 0!==t?t:e.headers["x-amzn-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},jF=function(e){switch(e){case"standard":case"cross-
region":return{retryMode:"standard",connectionTimeout:3100};case"in-
region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{ret
ryMode:"standard",connectionTimeout:3e4};default:return{}}},BF=function(){var
e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,mo([null
],po(arguments),!1)));return Object.setPrototypeOf(t,e.prototype),t};function
UF(e,t,n){var r,i,o,s;if(void 0===t&&void
0===n)o={},s=e;else{if(o=e,"function"==typeof t)return HF(o,t,s=n);s=t}try{for(var
a=fo(Object.keys(s)),c=a.next();!c.done;c=a.next()){var
u=c.value;if(Array.isArray(s[u])){var
l=po(s[u],2),h=l[0],d=l[1];if("function"==typeof d){var f=void 0,p=void
0===h&&null!=(f=d()),g="function"==typeof h&&!!h(void 0)||"function"!=typeof h&&!!
h;p?o[u]=f:g&&(o[u]=d())}else p=void 0===h&&null!=d,g="function"==typeof h&&!!
h(d)||"function"!=typeof h&&!!h,(p||g)&&(o[u]=d)}else o[u]=s[u]}}catch(e)
{r={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw
r.error}}return o}BF.prototype=Object.create(String.prototype,{constructor:
{value:BF,enumerable:!1,writable:!0,configurable:!
0}}),Object.setPrototypeOf(BF,String),function(e){function t(){return null!
==e&&e.apply(this,arguments)||this}Rr(t,e),t.prototype.deserializeJSON=function()
{return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function()
{return e.prototype.toString.call(this)},t.fromObject=function(e){return e
instanceof t?e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))}}
(BF);var HF=function(e,t,n){return UF(e,Object.entries(n).reduce((function(e,n){var
r=po(n,2),i=r[0],o=r[1];return Array.isArray(o)?e[i]=o:e[i]="function"==typeof o?
[t,o()]:[t,o],e}),{}))};function GF(e){return
encodeURIComponent(e).replace(/[!'()*]/g,(function(e)
{return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}var
zF=function(e,t,n,r,i,o){if(null==t||void 0===t[n])throw new Error("No value
provided for input HTTP label: "+n+".");var s=r();if(s.length<=0)throw new
Error("Empty value provided for input HTTP label: "+n+".");return e.replace(i,o?
s.split("/").map((function(e){return GF(e)})).join("/"):GF(s))},VF=function(e)
{if(e!=e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-
Infinity";default:return e}};for(var WF=n(5095),qF=function(){function e(e)
{"function"==typeof e?this.configProvider=e().then((function(e){return e||{}})):
(this.config=null!=e?e:{},this.configProvider=Promise.resolve(this.config))}return
e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void
0===t?{}:t).abortSignal;return lo(this,void 0,void 0,(function(){var
t,r,i,o,s,a,c,u,l,h,d,f;return ho(this,(function(p){switch(p.label){case 0:return
this.config?[3,2]:(t=this,[4,this.configProvider]);case
1:t.config=p.sent(),p.label=2;case 2:return r=this.config.requestTimeout,(null==n?
void 0:n.aborted)?((i=new Error("Request aborted")).name="AbortError",
[2,Promise.reject(i)]):(o=e.path,e.query&&(s=function(e){var t,n,r=[];try{for(var
i=fo(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var
s=o.value,a=e[s];if(s=BL(s),Array.isArray(a))for(var c=0,u=a.length;c<u;c+
+)r.push("".concat(s,"=").concat(BL(a[c])));else{var l=s;(a||"string"==typeof
a)&&(l+="=".concat(BL(a))),r.push(l)}}}catch(e){t={error:e}}finally{try{o&&!
o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r.join("&")}
(e.query),s&&(o+="?".concat(s))),a=e.port,c=e.method,u="".concat(e.protocol,"//").c
oncat(e.hostname).concat(a?":".concat(a):"").concat(o),l="GET"===c||"HEAD"===c?void
0:e.body,h={body:l,headers:new Headers(e.headers),method:c},"undefined"!=typeof
AbortController&&(h.signal=n),d=new Request(u,h),f=[fetch(d).then((function(e){var
t,n,r=e.headers,i={};try{for(var o=fo(r.entries()),s=o.next();!s.done;s=o.next())
{var a=s.value;i[a[0]]=a[1]}}catch(e){t={error:e}}finally{try{s&&!
s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return void 0!==e.body?
{response:new
YN({headers:i,statusCode:e.status,body:e.body})}:e.blob().then((function(t)
{return{response:new YN({headers:i,statusCode:e.status,body:t})}}))})),(g=r,void
0===g&&(g=0),new Promise((function(e,t){g&&setTimeout((function(){var e=new
Error("Request did not complete within ".concat(g,"
ms"));e.name="TimeoutError",t(e)}),g)})))],n&&f.push(new Promise((function(e,t)
{n.onabort=function(){var e=new Error("Request
aborted");e.name="AbortError",t(e)}}))),[2,Promise.race(f)])}var g}))}))},e}
(),KF={},YF=new Array(64),$F=0,QF="A".charCodeAt(0),XF="Z".charCodeAt(0);$F+QF<=XF;
$F++){var
ZF=String.fromCharCode($F+QF);KF[ZF]=$F,YF[$F]=ZF}for($F=0,QF="a".charCodeAt(0),XF=
"z".charCodeAt(0);$F+QF<=XF;$F++){ZF=String.fromCharCode($F+QF);var
JF=$F+26;KF[ZF]=JF,YF[JF]=ZF}for($F=0;$F<10;$F+
+)KF[$F.toString(10)]=$F+52,ZF=$F.toString(10),JF=$F+52,KF[ZF]=JF,YF[JF]=ZF;KF["+"]
=62,YF[62]="+",KF["/"]=63,YF[63]="/";function ej(e){var
t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;for(var n=new
ArrayBuffer(t),r=new DataView(n),i=0;i<e.length;i+=4){for(var
o=0,s=0,a=i,c=i+3;a<=c;a++)if("="!==e[a]){if(!(e[a]in KF))throw new
TypeError("Invalid character ".concat(e[a]," in base64 string."));o|
=KF[e[a]]<<6*(c-a),s+=6}else o>>=6;var u=i/4*3;o>>=s%8;for(var
l=Math.floor(s/8),h=0;h<l;h++){var d=8*(l-h-1);r.setUint8(u+h,
(o&255<<d)>>d)}}return new Uint8Array(n)}function tj(e){for(var
t="",n=0;n<e.length;n+=3){for(var r=0,i=0,o=n,s=Math.min(n+3,e.length);o<s;o++)r|
=e[o]<<8*(s-o-1),i+=8;var a=Math.ceil(i/6);r<<=6*a-i;for(var c=1;c<=a;c++){var
u=6*(a-c);t+=YF[(r&63<<u)>>u]}t+="==".slice(0,4-a)}return t}var nj=function(e)
{return"function"==typeof Blob&&e instanceof Blob?function(e){return lo(this,void
0,void 0,(function(){var t,n;return ho(this,(function(r){switch(r.label){case
0:return[4,rj(e)];case 1:return t=r.sent(),n=ej(t),[2,new Uint8Array(n)]}}))}))}
(e):function(e){return lo(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return
ho(this,(function(c){switch(c.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!
1,c.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return i=c.sent(),o=i.done,
(s=i.value)&&(a=t,(t=new
Uint8Array(a.length+s.length)).set(a),t.set(s,a.length)),r=o,[3,1];case
3:return[2,t]}}))}))}(e)};function rj(e){return new Promise((function(t,n){var
r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new
Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?
e:"",o=i.indexOf(","),s=o>-1?o+1:i.length;t(i.substring(s))},r.onabort=function()
{return n(new Error("Read aborted"))},r.onerror=function(){return
n(r.error)},r.readAsDataURL(e)}))}var ij=function(e){if("string"==typeof e){for(var
t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t+
+:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}if("number"==typeof
e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new
Error("Body Length computation failed for ".concat(e))},oj=function(e){var
t=e.serviceId,n=e.clientVersion;return function(){return lo(void 0,void 0,void 0,
(function(){var e,r,i,o,s,a,c,u,l;return ho(this,(function(h){return e="undefined"!
=typeof window&&(null===(i=null===window||void 0===window?void
0:window.navigator)||void 0===i?void 0:i.userAgent)?
Oa().parse(window.navigator.userAgent):void 0,r=[["aws-sdk-js",n],
["os/".concat((null===(o=null==e?void 0:e.os)||void 0===o?void
0:o.name)||"other"),null===(s=null==e?void 0:e.os)||void 0===s?void 0:s.version],
["lang/js"],["md/browser","".concat(null!==(c=null===(a=null==e?void 0:e.browser)||
void 0===a?void 0:a.name)&&void 0!==c?c:"unknown","_").concat(null!
==(l=null===(u=null==e?void 0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?
l:"unknown")]],t&&r.push(["api/".concat(t),n]),
[2,r]}))}))}},sj=n(40475),aj=function(e){if("string"==typeof e)return aj(new
URL(e));var t,n=e,r=n.hostname,i=n.pathname,o=n.port,s=n.protocol,a=n.search;return
a&&(t=function(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var
i=fo(e.split("&")),o=i.next();!o.done;o=i.next()){var
s=po(o.value.split("="),2),a=s[0],c=s[1],u=void 0===c?
null:c;a=decodeURIComponent(a),u&&(u=decodeURIComponent(u)),a in r?
Array.isArray(r[a])?r[a].push(u):r[a]=[r[a],u]:r[a]=u}}catch(e)
{t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw
t.error}}return r}(a)),{hostname:r,port:o?parseInt(o):void
0,protocol:s,path:i,query:t}},cj={},uj={aws:{regions:["af-south-1","ap-east-1","ap-
northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-
southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-
1","eu-west-1","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1","us-
east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|
af)\\-\\w+\\-\\d+$",variants:[{hostname:"geo.{region}.amazonaws.com",tags:[]},
{hostname:"geo-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"geo-fips.
{region}.api.aws",tags:["dualstack","fips"]},{hostname:"geo.{region}.api.aws",tags:
["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-
1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"geo.
{region}.amazonaws.com.cn",tags:[]},{hostname:"geo-fips.
{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"geo-fips.
{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"geo.
{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:
["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:
[{hostname:"geo.{region}.c2s.ic.gov",tags:[]},{hostname:"geo-fips.
{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-
1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"geo.
{region}.sc2s.sgov.gov",tags:[]},{hostname:"geo-fips.{region}.sc2s.sgov.gov",tags:
["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-
1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"geo.
{region}.amazonaws.com",tags:[]},{hostname:"geo-fips.{region}.amazonaws.com",tags:
["fips"]},{hostname:"geo-fips.{region}.api.aws",tags:["dualstack","fips"]},
{hostname:"geo.{region}.api.aws",tags:["dualstack"]}]}},lj=function(e,t){return
lo(void 0,void 0,void 0,(function(){return ho(this,(function(n)
{return[2,qN(e,co(co({},t),
{signingService:"geo",regionHash:cj,partitionHash:uj}))]}))}))},hj=function(e)
{function t(t){var n,r,i,o=this,s=function(e){var
t=e.region,n=e.useFipsEndpoint;if(!t)throw new Error("Region is missing");return
co(co({},e),{region:function(){return lo(void 0,void 0,void 0,(function(){var
e;return ho(this,(function(n){switch(n.label){case 0:return"string"==typeof t?
[2,VN(t)]:[4,t()];case 1:return e=n.sent(),
[2,VN(e)]}}))}))},useFipsEndpoint:function(){return lo(void 0,void 0,void 0,
(function(){var e;return ho(this,(function(r){switch(r.label){case
0:return"string"!=typeof t?[3,1]:(e=t,[3,3]);case 1:return[4,t()];case
2:e=r.sent(),r.label=3;case 3:return zN(e)?[2,!0]:[2,"boolean"==typeof n?
Promise.resolve(n):n()]}}))}))}})}(function(e){var
t,n,r,i,o,s,a,c,u,l,h,d,f,p,g,m=rP(e),v=function(){return
m().then(jF)},b=function(e){var t,n,r,i,o;return{apiVersion:"2020-11-
19",disableHostPrefix:null!==(t=null==e?void 0:e.disableHostPrefix)&&void 0!
==t&&t,logger:null!==(n=null==e?void 0:e.logger)&&void 0!==n?n:
{},regionInfoProvider:null!==(r=null==e?void 0:e.regionInfoProvider)&&void 0!==r?
r:lj,serviceId:null!==(i=null==e?void 0:e.serviceId)&&void 0!==i?
i:"Location",urlParser:null!==(o=null==e?void 0:e.urlParser)&&void 0!==o?o:aj}}
(e);return co(co(co({},b),e),{runtime:"browser",defaultsMode:m,base64Decoder:null!
==(t=null==e?void 0:e.base64Decoder)&&void 0!==t?t:ej,base64Encoder:null!
==(n=null==e?void 0:e.base64Encoder)&&void 0!==n?n:tj,bodyLengthChecker:null!
==(r=null==e?void 0:e.bodyLengthChecker)&&void 0!==r?
r:ij,credentialDefaultProvider:null!==(i=null==e?void
0:e.credentialDefaultProvider)&&void 0!==i?i:function(e){return function(){return
Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:null!
==(o=null==e?void 0:e.defaultUserAgentProvider)&&void 0!==o?
o:oj({serviceId:b.serviceId,clientVersion:"3.186.3"}),maxAttempts:null!
==(s=null==e?void 0:e.maxAttempts)&&void 0!==s?s:3,region:null!==(a=null==e?void
0:e.region)&&void 0!==a?a:function(){return Promise.reject("Region is
missing")},requestHandler:null!==(c=null==e?void 0:e.requestHandler)&&void 0!==c?
c:new qF(v),retryMode:null!==(u=null==e?void 0:e.retryMode)&&void 0!==u?
u:function(){return lo(void 0,void 0,void 0,(function(){return ho(this,(function(e)
{switch(e.label){case 0:return[4,v()];case 1:return[2,e.sent().retryMode||
rL]}}))}))},sha256:null!==(l=null==e?void 0:e.sha256)&&void 0!==l?
l:WF.Sha256,streamCollector:null!==(h=null==e?void 0:e.streamCollector)&&void 0!
==h?h:nj,useDualstackEndpoint:null!==(d=null==e?void
0:e.useDualstackEndpoint)&&void 0!==d?d:function(){return Promise.resolve(!
1)},useFipsEndpoint:null!==(f=null==e?void 0:e.useFipsEndpoint)&&void 0!==f?
f:function(){return Promise.resolve(!1)},utf8Decoder:null!==(p=null==e?void
0:e.utf8Decoder)&&void 0!==p?p:sj.fromUtf8,utf8Encoder:null!==(g=null==e?void
0:e.utf8Encoder)&&void 0!==g?g:sj.toUtf8})}(t)),a=function(e){var t,n=NO(null!
==(t=e.maxAttempts)&&void 0!==t?t:3);return co(co({},e),
{maxAttempts:n,retryStrategy:function(){return lo(void 0,void 0,void 0,(function()
{return ho(this,(function(t){switch(t.label){case 0:return e.retryStrategy?
[2,e.retryStrategy]:[4,NO(e.retryMode)()];case 1:return t.sent()===QN.ADAPTIVE?
[2,new mL(n)]:[2,new fL(n)]}}))}))}})}(function(e){var
t,n=NO(e.useDualstackEndpoint),r=e.endpoint,i=e.useFipsEndpoint,o=e.urlParser;retur
n co(co({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:r?NO("string"==typeof
r?o(r):r):function(){return function(e){return lo(void 0,void 0,void 0,(function()
{var t,n,r,i,o,s,a;return ho(this,(function(c){switch(c.label){case 0:return
t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=c.sent(),!new RegExp(/^([a-zA-
Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid
region in client config");return[4,e.useDualstackEndpoint()];case 2:return
i=c.sent(),[4,e.useFipsEndpoint()];case 3:return o=c.sent(),
[4,e.regionInfoProvider(r,{useDualstackEndpoint:i,useFipsEndpoint:o})];case 4:if(!
(s=(null!==(a=c.sent())&&void 0!==a?a:{}).hostname))throw new Error("Cannot resolve
hostname from client
config");return[2,e.urlParser("".concat(n?"https:":"http:","//").concat(s))]}}))}))
}(co(co({},e),{useDualstackEndpoint:n,useFipsEndpoint:i}))},isCustomEndpoint:!!
r,useDualstackEndpoint:n})}(s)),c=function(e){var
t,n,r,i,o,s,a,c,u,l,h=e.credentials?"function"==typeof(n=e.credentials)?
(r=n,o=function(e){return void 0!==e.expiration},u=!1,l=function(){return lo(void
0,void 0,void 0,(function(){return ho(this,(function(e){switch(e.label){case 0:a||
(a=r()),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,a];case 2:return
s=e.sent(),c=!0,u=!1,[3,4];case 3:return a=void 0,[7];case
4:return[2,s]}}))}))},void 0===(i=function(e){return void 0!
==e.expiration&&e.expiration.getTime()-Date.now()<3e5})?function(e){return lo(void
0,void 0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return c&&!(null==e?void 0:e.forceRefresh)?[3,2]:[4,l()];case
1:s=t.sent(),t.label=2;case 2:return[2,s]}}))}))}:function(e){return lo(void
0,void 0,void 0,(function(){return ho(this,(function(t){switch(t.label){case
0:return c&&!(null==e?void 0:e.forceRefresh)?[3,2]:[4,l()];case
1:s=t.sent(),t.label=2;case 2:return u?[2,s]:o&&!o(s)?(u=!0,[2,s]):i(s)?[4,l()]:
[3,4];case 3:return t.sent(),[2,s];case
4:return[2,s]}}))}))}):NO(n):e.credentialDefaultProvider(e),d=e.signingEscapePath,f
=void 0===d||d,p=e.systemClockOffset,g=void 0===p?e.systemClockOffset||
0:p,m=e.sha256;return t=e.signer?NO(e.signer):e.regionInfoProvider?function()
{return NO(e.region)().then((function(t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o;return ho(this,(function(s){switch(s.label){case 0:return
r=(n=e).regionInfoProvider,i=[t],o={},[4,e.useFipsEndpoint()];case 1:return
o.useFipsEndpoint=s.sent(),[4,e.useDualstackEndpoint()];case
2:return[4,r.apply(n,i.concat([(o.useDualstackEndpoint=s.sent(),o)]))];case
3:return[2,[s.sent()||{},t]]}}))}))})).then((function(t){var
n=po(t,2),r=n[0],i=n[1],o=r.signingRegion,s=r.signingService;e.signingRegion=e.sign
ingRegion||o||i,e.signingName=e.signingName||s||e.serviceId;var a=co(co({},e),
{credentials:h,region:e.signingRegion,service:e.signingName,sha256:m,uriEscapePath:
f});return new(e.signerConstructor||WL)(a)}))}:function(t){return lo(void 0,void
0,void 0,(function(){var n,r,i;return ho(this,(function(o){if(!t)throw new
Error("Unexpected empty auth scheme config");return
n=t.signingScope,r=t.signingName,e.signingRegion=e.signingRegion||
n,e.signingName=e.signingName||r||e.serviceId,i=co(co({},e),
{credentials:h,region:e.signingRegion,service:e.signingName,sha256:m,uriEscapePath:
f}),[2,new(e.signerConstructor||WL)(i)]}))}))},co(co({},e),
{systemClockOffset:g,signingEscapePath:f,credentials:h,signer:t})}
(a),u=co(co({},n=c),{customUserAgent:"string"==typeof n.customUserAgent?
[[n.customUserAgent]]:n.customUserAgent});return(o=e.call(this,u)||
this).config=u,o.middlewareStack.use((i=o.config,{applyToStack:function(e)
{e.add(function(e){return function(t,n){return function(r){return lo(void 0,void
0,void 0,(function(){var i;return ho(this,(function(o){switch(o.label){case
0:return[4,e.retryStrategy()];case 1:return(null==(i=o.sent())?void
0:i.mode)&&(n.userAgent=mo(mo([],po(n.userAgent||[]),!1),[["cfg/retry-
mode",i.mode]],!1)),[2,i.retry(t,r)]}}))}))}}}
(i),vL)}})),o.middlewareStack.use(function(e){return{applyToStack:function(t)
{t.add(function(e){var t=this;return function(n){return function(r){return
lo(t,void 0,void 0,(function(){var t,i,o,s,a;return ho(this,(function(c)
{if(t=r.request,KN.isInstance(t)&&(i=t.body,o=t.headers,i&&-
1===Object.keys(o).map((function(e){return
e.toLowerCase()})).indexOf(XN)))try{s=e(i),t.headers=co(co({},t.headers),((a={})
[XN]=String(s),a))}catch(e){}return[2,n(co(co({},r),{request:t}))]}))}))}}}
(e.bodyLengthChecker),ZN)}}}(o.config)),o.middlewareStack.use(function(e)
{return{applyToStack:function(t){t.add(function(e){return function(t){return
function(n){return lo(void 0,void 0,void 0,(function(){var r,i;return ho(this,
(function(o){return KN.isInstance(n.request)?(r=n.request,(void
0===(i=(e.requestHandler.metadata||{}).handlerProtocol)?"":i).indexOf("h2")>=0&&!
r.headers[":authority"]?(delete
r.headers.host,r.headers[":authority"]=""):r.headers.host||
(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),JN)}}}
(o.config)),o.middlewareStack.use((o.config,{applyToStack:function(e)
{e.add((function(e,t){return function(n){return lo(void 0,void 0,void 0,(function()
{var r,i,o,s,a,c,u,l,h;return ho(this,(function(d){switch(d.label){case 0:return
r=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,s=t.logger,a=t.outputFil
terSensitiveLog,[4,e(n)];case 1:return c=d.sent(),s?("function"==typeof
s.info&&(u=c.output,l=u.$metadata,h=uo(u,
["$metadata"]),s.info({clientName:r,commandName:i,input:o(n.input),output:a(h),meta
data:l})),[2,c]):[2,c]}}))}))}}),eL)}})),o.middlewareStack.use(function(e)
{return{applyToStack:function(t){t.add(function(e){return function(t){return
function(n){return lo(void 0,void 0,void 0,(function(){var r,i,o,s;return ho(this,
(function(a){return r=n.request,!KN.isInstance(r)||"node"!==e.runtime||
r.headers.hasOwnProperty(tL)?[2,t(n)]:
(i=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID,
(s=function(e){return"string"==typeof e&&e.length>0})(i)&&s(o)&&(r.headers[tL]=o),
[2,t(co(co({},n),{request:r}))])}))}))}}}(e),nL)}}}
(o.config)),o.middlewareStack.use(function(e){return{applyToStack:function(t)
{t.addRelativeTo(function(e){return function(t,n){return function(r){var
i,o,s;return lo(this,void 0,void 0,(function(){var a,c,u,l,h,d,f;return ho(this,
(function(p){switch(p.label){case 0:return KN.isInstance(r.request)?
(a=null===(s=null===(o=null===(i=n.endpointV2)||void 0===i?void 0:i.properties)||
void 0===o?void 0:o.authSchemes)||void 0===s?void 0:s[0],[4,e.signer(a)]):
[2,t(r)];case 1:return c=p.sent(),l=t,h=[co({},r)],f={},[4,c.sign(r.request,
{signingDate:YL(e.systemClockOffset),signingRegion:n.signing_region,signingService:
n.signing_service})];case 2:return[4,l.apply(void 0,[co.apply(void
0,h.concat([(f.request=p.sent(),f)]))]).catch((function(t){var n,r=null!
==(n=t.ServerTime)&&void 0!==n?n:QL(t.$response);throw
r&&(e.systemClockOffset=$L(r,e.systemClockOffset)),t}))];case 3:return u=p.sent(),
(d=QL(u.response))&&(e.systemClockOffset=$L(d,e.systemClockOffset)),[2,u]}}))}))}}}
(e),XL)}}}(o.config)),o.middlewareStack.use((r=o.config,{applyToStack:function(e)
{var t;e.add((t=r,function(e,n){return function(r){return lo(void 0,void 0,void 0,
(function(){var i,o,s,a,c,u,l,h,d;return ho(this,(function(f){switch(f.label){case
0:return i=r.request,KN.isInstance(i)?(o=i.headers,s=(null===(h=null==n?void
0:n.userAgent)||void 0===h?void 0:h.map(tF))||[],[4,t.defaultUserAgentProvider()]):
[2,e(r)];case 1:return a=f.sent().map(tF),c=(null===(d=null==t?void
0:t.customUserAgent)||void 0===d?void 0:d.map(tF))||[],u=mo(mo(mo([],po(a),!
1),po(s),!1),po(c),!1).join(" "),l=mo(mo([],po(a.filter((function(e){return
e.startsWith("aws-sdk-")}))),!1),po(c),!1).join(" "),"browser"!==t.runtime?
(l&&(o[JL]=o[JL]?"".concat(o[ZL]," ").concat(l):l),o[ZL]=u):o[JL]=u,
[2,e(co(co({},r),{request:i}))]}}))}))}}),nF)}})),o}return
Rr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}
(sF),dj={name:"deserializerMiddleware",step:"deserialize",tags:
["DESERIALIZER"],override:!
0},fj={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!
0};function pj(e,t,n){return{applyToStack:function(r){r.add(function(e,t){return
function(n,r){return function(r){return lo(void 0,void 0,void 0,(function(){var
i,o,s;return ho(this,(function(a){switch(a.label){case 0:return[4,n(r)];case
1:i=a.sent().response,a.label=2;case 2:return a.trys.push([2,4,,5]),[4,t(i,e)];case
3:return o=a.sent(),[2,{response:i,output:o}];case 4:throw
s=a.sent(),Object.defineProperty(s,"$response",{value:i}),s;case
5:return[2]}}))}))}}}(e,n),dj),r.add(function(e,t){return function(n,r){return
function(i){return lo(void 0,void 0,void 0,(function(){var o,s,a;return ho(this,
(function(c){switch(c.label){case 0:if(!(o=(null===(a=r.endpointV2)||void 0===a?
void 0:a.url)&&e.urlParser?function(){return lo(void 0,void 0,void 0,(function()
{return ho(this,(function(t)
{return[2,e.urlParser(r.endpointV2.url)]}))}))}:e.endpoint))throw new Error("No
valid endpoint provider available.");return[4,t(i.input,co(co({},e),
{endpoint:o}))];case 1:return s=c.sent(),[2,n(co(co({},i),{request:s}))]}}))}))}}}
(e,t),fj)}}}var gj=function(e){function t(n){var r=e.call(this,n)||this;return
Object.setPrototypeOf(r,t.prototype),r}return Rr(t,e),t}(MF),mj=function(e)
{function t(n){var r=e.call(this,co({name:"AccessDeniedException",
$fault:"client"},n))||this;return r.name="AccessDeniedException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(gj),vj=(function(e){Rr((function t(n){var
r=e.call(this,co({name:"ConflictException",$fault:"client"},n))||this;return
r.name="ConflictException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}),e)}
(gj),function(e){function t(n){var
r=e.call(this,co({name:"InternalServerException",$fault:"server"},n))||this;return
r.name="InternalServerException",r.$fault="server",r.
$retryable={},Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(gj)),bj=function(e){function t(n){var
r=e.call(this,co({name:"ResourceNotFoundException",$fault:"client"},n))||
this;return r.name="ResourceNotFoundException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(gj),yj=(function(e){Rr((function t(n){var
r=e.call(this,co({name:"ServiceQuotaExceededException",$fault:"client"},n))||
this;return r.name="ServiceQuotaExceededException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}),e)}
(gj),function(e){function t(n){var r=e.call(this,co({name:"ThrottlingException",
$fault:"client"},n))||this;return r.name="ThrottlingException",r.$fault="client",r.
$retryable={},Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r}return
Rr(t,e),t}(gj)),wj=function(e){function t(n){var
r=e.call(this,co({name:"ValidationException",$fault:"client"},n))||this;return
r.name="ValidationException",r.
$fault="client",Object.setPrototypeOf(r,t.prototype),r.Message=n.Message,r.Reason=n
.Reason,r.FieldList=n.FieldList,r}return Rr(t,e),t}(gj),_j=function(e){return
co({},e)},Ej=function(e){return co({},e)},Sj=function(e){return
co(co(co({},e),e.Polygon&&{Polygon:e.Polygon.map((function(e){return
cF}))}),e.Circle&&{Circle:cF})},Tj=function(e){return
co(co({},e),e.Entries&&{Entries:e.Entries.map((function(e){return function(e)
{return co(co({},e),e.Geometry&&{Geometry:Sj(e.Geometry)})}(e)}))})},Aj=function(e)
{return co({},e)},Cj=function(e){return co({},e)},Oj=function(e){return
co(co({},e),e.Geometry&&{Geometry:Sj(e.Geometry)})},xj=function(e){return
co({},e)},Ij=function(e){return
co(co({},e),e.Entries&&{Entries:e.Entries.map((function(e){return function(e)
{return co(co({},e),e.Geometry&&{Geometry:Sj(e.Geometry)})}(e)}))})},Pj=function(e)
{return co({},e)},Dj=function(e){return
co(co({},e),e.Point&&{Point:cF})},kj=function(e){return
co(co({},e),e.Geometry&&{Geometry:Dj(e.Geometry)})},Rj=function(e){return
co(co({},e),e.Place&&{Place:kj(e.Place)})},Mj=function(e){return
co(co({},e),e.Position&&{Position:cF})},Nj=function(e){return
co(co({},e),e.Position&&{Position:cF})},Lj=function(e){return
co(co(co({},e),e.Summary&&{Summary:Nj(e.Summary)}),e.Results&&{Results:e.Results.ma
p((function(e){return function(e){return co(co({},e),e.Place&&{Place:kj(e.Place)})}
(e)}))})},Fj=function(e){return
co(co(co(co({},e),e.Text&&{Text:cF}),e.BiasPosition&&{BiasPosition:cF}),e.FilterBBo
x&&{FilterBBox:cF})},jj=function(e){return
co(co(co(co({},e),e.Text&&{Text:cF}),e.BiasPosition&&{BiasPosition:cF}),e.FilterBBo
x&&{FilterBBox:cF})},Bj=function(e){return
co(co({},e),e.Summary&&{Summary:jj(e.Summary)})},Uj=function(e){return
co(co(co(co({},e),e.Text&&{Text:cF}),e.BiasPosition&&{BiasPosition:cF}),e.FilterBBo
x&&{FilterBBox:cF})},Hj=function(e){return
co(co(co(co(co({},e),e.Text&&{Text:cF}),e.BiasPosition&&{BiasPosition:cF}),e.Filter
BBox&&{FilterBBox:cF}),e.ResultBBox&&{ResultBBox:cF})},Gj=function(e){return
co(co(co({},e),e.Summary&&{Summary:Hj(e.Summary)}),e.Results&&{Results:e.Results.ma
p((function(e){return function(e){return co(co({},e),e.Place&&{Place:kj(e.Place)})}
(e)}))})},zj=function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Vj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Wj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},qj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Kj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Yj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},$j=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case 9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw
a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Qj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i,o,s;return ho(this,(function(a){switch(a.label){case 0:return
r=[co({},e)],s={},[4,TB(e.body,t)];case 1:switch(n=co.apply(void
0,r.concat([(s.body=a.sent(),s)])),i=AB(e,n.body))
{case"AccessDeniedException":case"com.amazonaws.location#AccessDeniedException":ret
urn[3,2];case"InternalServerException":case"com.amazonaws.location#InternalServerEx
ception":return[3,4];case"ResourceNotFoundException":case"com.amazonaws.location#Re
sourceNotFoundException":return[3,6];case"ThrottlingException":case"com.amazonaws.l
ocation#ThrottlingException":return[3,8];case"ValidationException":case"com.amazona
ws.location#ValidationException":return[3,10]}return[3,12];case
2:return[4,Zj(n,t)];case 3:throw a.sent();case 4:return[4,Jj(n,t)];case 5:throw
a.sent();case 6:return[4,eB(n,t)];case 7:throw a.sent();case
8:return[4,tB(n,t)];case
9:throw a.sent();case 10:return[4,nB(n,t)];case 11:throw a.sent();case
12:o=n.body,LF({output:e,parsedBody:o,exceptionCtor:gj,errorCode:i}),a.label=13;cas
e 13:return[2]}}))}))},Xj=UF,Zj=function(e,t){return lo(void 0,void 0,void 0,
(function(){var t,n,r;return ho(this,(function(i){return t=Xj({}),null!
=(n=e.body).message&&(t.Message=vF(n.message)),r=new mj(co({$metadata:EB(e)},t)),
[2,NF(r,e.body)]}))}))},Jj=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=Xj({}),null!
=(n=e.body).message&&(t.Message=vF(n.message)),r=new vj(co({$metadata:EB(e)},t)),
[2,NF(r,e.body)]}))}))},eB=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=Xj({}),null!
=(n=e.body).message&&(t.Message=vF(n.message)),r=new bj(co({$metadata:EB(e)},t)),
[2,NF(r,e.body)]}))}))},tB=function(e,t){return lo(void 0,void 0,void 0,(function()
{var t,n,r;return ho(this,(function(i){return t=Xj({}),null!
=(n=e.body).message&&(t.Message=vF(n.message)),r=new yj(co({$metadata:EB(e)},t)),
[2,NF(r,e.body)]}))}))},nB=function(e,t){return lo(void 0,void 0,void 0,(function()
{var n,r,i;return ho(this,(function(o){return n=Xj({}),null!
=(r=e.body).fieldList&&(n.FieldList=_B(r.fieldList,t)),null!
=r.message&&(n.Message=vF(r.message)),null!=r.reason&&(n.Reason=vF(r.reason)),i=new
wj(co({$metadata:EB(e)},n)),[2,NF(i,e.body)]}))}))},rB=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return function(e,t)
{return co(co({},null!=e.GeofenceId&&{GeofenceId:e.GeofenceId}),null!
=e.Geometry&&{Geometry:aB(e.Geometry,t)})}(e,t)}))},iB=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return
VF(e)}))},oB=function(e,t){return co(co({},null!
=e.Center&&{Center:lB(e.Center,t)}),null!
=e.Radius&&{Radius:VF(e.Radius)})},sB=function(e,t){return e.filter((function(e)
{return null!=e})).map((function(e){return e}))},aB=function(e,t){return
co(co({},null!=e.Circle&&{Circle:oB(e.Circle,t)}),null!
=e.Polygon&&{Polygon:uB(e.Polygon,t)})},cB=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return
e}))},uB=function(e,t){return e.filter((function(e){return null!
=e})).map((function(e){return function(e,t){return e.filter((function(e){return
null!=e})).map((function(e){return lB(e,t)}))}(e,t)}))},lB=function(e,t){return
e.filter((function(e){return null!=e})).map((function(e){return
VF(e)}))},hB=function(e,t)
{return{Code:vF(e.Code),Message:vF(e.Message)}},dB=function(e,t){return(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:wF(e)}))},fB=function(e,t){return{Center:null!=e.Center?yB(e.Center,t):void
0,Radius:wF(e.Radius)}},pB=function(e,t){return(e||[]).filter((function(e){return
null!=e})).map((function(e){return null===e?null:vF(e)}))},gB=function(e,t)
{return{Circle:null!=e.Circle?fB(e.Circle,t):void 0,Polygon:null!=e.Polygon?
mB(e.Polygon,t):void 0}},mB=function(e,t){var n=(e||[]).filter((function(e){return
null!=e})).map((function(e){return null===e?null:function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:yB(e,t)}));return n}(e,t)}));return n},vB=function(e,t)
{return{AddressNumber:vF(e.AddressNumber),Country:vF(e.Country),Geometry:null!
=e.Geometry?bB(e.Geometry,t):void
0,Interpolated:uF(e.Interpolated),Label:vF(e.Label),Municipality:vF(e.Municipality)
,Neighborhood:vF(e.Neighborhood),PostalCode:vF(e.PostalCode),Region:vF(e.Region),St
reet:vF(e.Street),SubRegion:vF(e.SubRegion),TimeZone:null!=e.TimeZone?
wB(e.TimeZone,t):void
0,UnitNumber:vF(e.UnitNumber),UnitType:vF(e.UnitType)}},bB=function(e,t)
{return{Point:null!=e.Point?yB(e.Point,t):void 0}},yB=function(e,t){return(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:wF(e)}))},wB=function(e,t)
{return{Name:vF(e.Name),Offset:dF(e.Offset)}},_B=function(e,t){return(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{Message:vF(e.message),Name:vF(e.name)}}
(e)}))},EB=function(e){var t,n;return{httpStatusCode:e.statusCode,requestId:null!
==(n=null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-
request-id"])&&void 0!==n?n:e.headers["x-amz-request-
id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-
id"]}},SB=function(e,t){return function(e,t){return function(e,t){return void
0===e&&(e=new Uint8Array),e instanceof Uint8Array?
Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)}
(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return
e.length?JSON.parse(e):{}}))},TB=function(e,t){return lo(void 0,void 0,void 0,
(function(){var n,r;return ho(this,(function(i){switch(i.label){case
0:return[4,SB(e,t)];case 1:return(n=i.sent()).message=null!==(r=n.message)&&void 0!
==r?r:n.Message,[2,n]}}))}))},AB=function(e,t){var n,r=function(e){var
t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")
[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")
[1]),t},i=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((function(e){return
e.toLowerCase()==="x-amzn-errortype".toLowerCase()})));return void 0!==i?
r(e.headers[i]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void
0},CB=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"SearchPlaceIndexForTextCommand",inputFilterSensitiveLog:Uj,outputFilterSe
nsitiveLog:Gj},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/places/v0/indexes/{IndexName}/search/
text",c=zF(c,e,"IndexName",(function(){return e.IndexName}),"{IndexName}",!
1),u=JSON.stringify(co(co(co(co(co(co({},null!
=e.BiasPosition&&{BiasPosition:lB(e.BiasPosition,t)}),null!
=e.FilterBBox&&{FilterBBox:iB(e.FilterBBox)}),null!
=e.FilterCountries&&{FilterCountries:sB(e.FilterCountries)}),null!
=e.Language&&{Language:e.Language}),null!
=e.MaxResults&&{MaxResults:e.MaxResults}),null!=e.Text&&{Text:e.Text})),
[4,t.endpoint()];case 2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!
$N(l="places."+l))throw new Error("ValidationError: prefixed hostname must be
hostname compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Qj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Results&&(n.Results=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{Distance:wF(e.Distance),Place:null!=e.Place?
vB(e.Place,t):void 0,PlaceId:vF(e.PlaceId),Relevance:wF(e.Relevance)}}
(e,t)}));return n}(r.Results,t)),null!=r.Summary&&(n.Summary=function(e,t)
{return{BiasPosition:null!=e.BiasPosition?yB(e.BiasPosition,t):void
0,DataSource:vF(e.DataSource),FilterBBox:null!=e.FilterBBox?dB(e.FilterBBox):void
0,FilterCountries:null!=e.FilterCountries?pB(e.FilterCountries):void
0,Language:vF(e.Language),MaxResults:dF(e.MaxResults),ResultBBox:null!
=e.ResultBBox?dB(e.ResultBBox):void 0,Text:vF(e.Text)}}(r.Summary,t)),[2,n]}}))}))}
(e,t)},t}(aF),OB=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"SearchPlaceIndexForSuggestionsCommand",inputFilterSensitiveLog:Fj,outputF
ilterSensitiveLog:Bj},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/places/v0/indexes/{IndexName}/search/
suggestions",c=zF(c,e,"IndexName",(function(){return e.IndexName}),"{IndexName}",!
1),u=JSON.stringify(co(co(co(co(co(co({},null!
=e.BiasPosition&&{BiasPosition:lB(e.BiasPosition,t)}),null!
=e.FilterBBox&&{FilterBBox:iB(e.FilterBBox)}),null!
=e.FilterCountries&&{FilterCountries:sB(e.FilterCountries)}),null!
=e.Language&&{Language:e.Language}),null!
=e.MaxResults&&{MaxResults:e.MaxResults}),null!=e.Text&&{Text:e.Text})),
[4,t.endpoint()];case 2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!
$N(l="places."+l))throw new Error("ValidationError: prefixed hostname must be
hostname compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$j(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Results&&(n.Results=function(e,t){return(e||
[]).filter((function(e){return
null!=e})).map((function(e){return null===e?null:function(e,t)
{return{PlaceId:vF(e.PlaceId),Text:vF(e.Text)}}(e)}))}(r.Results)),null!
=r.Summary&&(n.Summary=function(e,t){return{BiasPosition:null!=e.BiasPosition?
yB(e.BiasPosition,t):void 0,DataSource:vF(e.DataSource),FilterBBox:null!
=e.FilterBBox?dB(e.FilterBBox):void 0,FilterCountries:null!=e.FilterCountries?
pB(e.FilterCountries):void
0,Language:vF(e.Language),MaxResults:dF(e.MaxResults),Text:vF(e.Text)}}
(r.Summary,t)),[2,n]}}))}))}(e,t)},t}(aF),xB=function(e){function t(t){var
n=e.call(this)||this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"GetPlaceCommand",inputFilterSensitiveLog:Pj,outputFilterSensitiveLog:Rj},
o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l;return ho(this,(function(h)
{switch(h.label){case 0:return[4,t.endpoint()];case
1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={},c="".concat((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/places/v0/indexes/{IndexName}/places/
{PlaceId}",c=zF(c,e,"IndexName",(function(){return e.IndexName}),"{IndexName}",!
1),c=zF(c,e,"PlaceId",(function(){return e.PlaceId}),"{PlaceId}",!
1),u=Xj({language:[,e.Language]}),[4,t.endpoint()];case 2:if(l=h.sent().hostname,!
0!==t.disableHostPrefix&&!$N(l="places."+l))throw new Error("ValidationError:
prefixed hostname must be hostname compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"GET",headers:a,path:c,query:u,body:void
0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s)
{switch(s.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,qj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Place&&(n.Place=vB(r.Place,t)),[2,n]}}))}))}(e,t)},t}
(aF),IB=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"SearchPlaceIndexForPositionCommand",inputFilterSensitiveLog:Mj,outputFilt
erSensitiveLog:Lj},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/places/v0/indexes/{IndexName}/search/
position",c=zF(c,e,"IndexName",(function(){return e.IndexName}),"{IndexName}",!
1),u=JSON.stringify(co(co(co({},null!=e.Language&&{Language:e.Language}),null!
=e.MaxResults&&{MaxResults:e.MaxResults}),null!
=e.Position&&{Position:lB(e.Position,t)})),[4,t.endpoint()];case
2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!$N(l="places."+l))throw new
Error("ValidationError: prefixed hostname must be hostname
compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Yj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Results&&(n.Results=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{Distance:wF(e.Distance),Place:null!=e.Place?
vB(e.Place,t):void 0,PlaceId:vF(e.PlaceId)}}(e,t)}));return n}(r.Results,t)),null!
=r.Summary&&(n.Summary=function(e,t)
{return{DataSource:vF(e.DataSource),Language:vF(e.Language),MaxResults:dF(e.MaxResu
lts),Position:null!=e.Position?yB(e.Position,t):void 0}}(r.Summary,t)),
[2,n]}}))}))}(e,t)},t}(aF),PB=function(e){function t(t){var n=e.call(this)||
this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"GetGeofenceCommand",inputFilterSensitiveLog:Cj,outputFilterSensitiveLog:O
j},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o,s,a,c,u;return ho(this,(function(l)
{switch(l.label){case 0:return[4,t.endpoint()];case
1:return(n=l.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={},c="".concat((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/geofencing/v0/collections/
{CollectionName}/geofences/{GeofenceId}",c=zF(c,e,"CollectionName",(function()
{return e.CollectionName}),"{CollectionName}",!1),c=zF(c,e,"GeofenceId",(function()
{return e.GeofenceId}),"{GeofenceId}",!1),[4,t.endpoint()];case
2:if(u=l.sent().hostname,!0!==t.disableHostPrefix&&!$N(u="geofencing."+u))throw new
Error("ValidationError: prefixed hostname must be hostname
compatible.");return[2,new
KN({protocol:i,hostname:u,port:o,method:"GET",headers:a,path:c,body:void
0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t)
{return lo(void 0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s)
{switch(s.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Wj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).CreateTime&&(n.CreateTime=gF(CF(r.CreateTime))),null!
=r.GeofenceId&&(n.GeofenceId=vF(r.GeofenceId)),null!
=r.Geometry&&(n.Geometry=gB(r.Geometry,t)),null!
=r.Status&&(n.Status=vF(r.Status)),null!
=r.UpdateTime&&(n.UpdateTime=gF(CF(r.UpdateTime))),[2,n]}}))}))}(e,t)},t}
(aF),DB=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"ListGeofencesCommand",inputFilterSensitiveLog:xj,outputFilterSensitiveLog
:Ij},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||
{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l;return ho(this,(function(h)
{switch(h.label){case 0:return[4,t.endpoint()];case
1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/geofencing/v0/collections/
{CollectionName}/list-geofences",c=zF(c,e,"CollectionName",(function(){return
e.CollectionName}),"{CollectionName}",!1),u=JSON.stringify(co(co({},null!
=e.MaxResults&&{MaxResults:e.MaxResults}),null!
=e.NextToken&&{NextToken:e.NextToken})),[4,t.endpoint()];case
2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!$N(l="geofencing."+l))throw new
Error("ValidationError: prefixed hostname must be hostname
compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Kj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Entries&&(n.Entries=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{CreateTime:null!=e.CreateTime?gF(CF(e.CreateTime)):void
0,GeofenceId:vF(e.GeofenceId),Geometry:null!=e.Geometry?gB(e.Geometry,t):void
0,Status:vF(e.Status),UpdateTime:null!=e.UpdateTime?gF(CF(e.UpdateTime)):void 0}}
(e,t)}));return n}(r.Entries,t)),null!=r.NextToken&&(n.NextToken=vF(r.NextToken)),
[2,n]}}))}))}(e,t)},t}(aF),kB=function(e){function t(t){var n=e.call(this)||
this;return n.input=t,n}return
Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"BatchPutGeofenceCommand",inputFilterSensitiveLog:Tj,outputFilterSensitive
Log:Aj},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/geofencing/v0/collections/
{CollectionName}/put-geofences",c=zF(c,e,"CollectionName",(function(){return
e.CollectionName}),"{CollectionName}",!1),u=JSON.stringify(co({},null!
=e.Entries&&{Entries:rB(e.Entries,t)})),[4,t.endpoint()];case
2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!$N(l="geofencing."+l))throw new
Error("ValidationError: prefixed hostname must be hostname
compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Vj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Errors&&(n.Errors=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{Error:null!=e.Error?hB(e.Error,t):void
0,GeofenceId:vF(e.GeofenceId)}}(e,t)}));return n}(r.Errors,t)),null!
=r.Successes&&(n.Successes=function(e,t){return(e||[]).filter((function(e){return
null!=e})).map((function(e){return null===e?null:function(e,t)
{return{CreateTime:null!=e.CreateTime?gF(CF(e.CreateTime)):void
0,GeofenceId:vF(e.GeofenceId),UpdateTime:null!=e.UpdateTime?
gF(CF(e.UpdateTime)):void 0}}(e)}))}(r.Successes)),[2,n]}}))}))}(e,t)},t}
(aF),RB=function(e){function t(t){var n=e.call(this)||this;return
n.input=t,n}return Rr(t,e),t.prototype.resolveMiddleware=function(e,t,n)
{this.middlewareStack.use(pj(t,this.serialize,this.deserialize));var
r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"LocationClient",com
mandName:"BatchDeleteGeofenceCommand",inputFilterSensitiveLog:_j,outputFilterSensit
iveLog:Ej},o=t.requestHandler;return r.resolve((function(e){return
o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return
function(e,t){return lo(void 0,void 0,void 0,(function(){var
n,r,i,o,s,a,c,u,l;return ho(this,(function(h){switch(h.label){case
0:return[4,t.endpoint()];case 1:return(n=h.sent()).hostname,r=n.protocol,i=void
0===r?"https":r,o=n.port,s=n.path,a={"content-type":"application/json"},c="".concat
((null==s?void
0:s.endsWith("/"))?s.slice(0,-1):s||"")+"/geofencing/v0/collections/
{CollectionName}/delete-geofences",c=zF(c,e,"CollectionName",(function(){return
e.CollectionName}),"{CollectionName}",!1),u=JSON.stringify(co({},null!
=e.GeofenceIds&&{GeofenceIds:cB(e.GeofenceIds)})),[4,t.endpoint()];case
2:if(l=h.sent().hostname,!0!==t.disableHostPrefix&&!$N(l="geofencing."+l))throw new
Error("ValidationError: prefixed hostname must be hostname
compatible.");return[2,new
KN({protocol:i,hostname:l,port:o,method:"POST",headers:a,path:c,body:u})]}}))}))}
(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return lo(void
0,void 0,void 0,(function(){var n,r,i,o;return ho(this,(function(s){switch(s.label)
{case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,zj(e,t)]:
(n=Xj({$metadata:EB(e)}),i=gF,o=mF,[4,SB(e.body,t)]);case 1:return null!
=(r=i.apply(void 0,[o.apply(void 0,
[s.sent()]),"body"])).Errors&&(n.Errors=function(e,t){var n=(e||
[]).filter((function(e){return null!=e})).map((function(e){return null===e?
null:function(e,t){return{Error:null!=e.Error?hB(e.Error,t):void
0,GeofenceId:vF(e.GeofenceId)}}(e,t)}));return n}(r.Errors,t)),[2,n]}}))}))}
(e,t)},t}(aF);function MB(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))throw
new Error("Invalid coordinates: ["+e+","+t+"]");if(t<-90||90<t)throw new
Error("Latitude must be between -90 and 90 degrees inclusive.");if(e<-180||
180<e)throw new Error("Longitude must be between -180 and 180 degrees
inclusive.")}function NB(e){if(!/^[-._\p{L}\p{N}]+$/iu.test(e))throw new
Error("Invalid geofenceId: '"+e+"' - IDs can only contain alphanumeric characters,
hyphens, underscores and periods.")}function LB(e,t){var n=t?t+":
":"";if(e.length<4)throw new Error(n+"LinearRing must contain 4 or more
coordinates.");var r=[];if(e.forEach((function(e){try{MB(e[0],e[1])}catch(t)
{r.push({coordinates:e,error:t.message})}})),r.length>0)throw new Error(n+"One or
more of the coordinates in the Polygon LinearRing are not valid:
"+JSON.stringify(r));var i=UN(e[0],2),o=i[0],s=i[1],a=UN(e[e.length-
1],2),c=a[0],u=a[1];if(o!==c||s!==u)throw new Error(n+"LinearRing's first and last
coordinates are not the same");if(function(e){for(var t,n,r=function(e)
{if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return
e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new
Error("coords must be GeoJSON Feature, Geometry Object or an Array")}
(e),i=0,o=1;o<r.length;)t=n||r[0],i+=((n=r[o])[0]-t[0])*(n[1]+t[1]),o++;return i>0}
(e))throw new Error(n+"LinearRing coordinates must be wound
counterclockwise")}function FB(e,t){var
n=FN({},t);if(n.FilterCountries=e.countries,n.MaxResults=e.maxResults,e.searchIndex
Name&&(n.IndexName=e.searchIndexName),e.biasPosition&&e.searchAreaConstraints)throw
new Error("BiasPosition and SearchAreaConstraints are mutually exclusive, please
remove one or the other from the options object");return
e.biasPosition&&(n.BiasPosition=e.biasPosition),e.searchAreaConstraints&&(n.FilterB
Box=e.searchAreaConstraints),n}var jB=new
h("AmazonLocationServiceProvider"),BB=function(){function e(e){this._config=e||
{},jB.debug("Geo Options",this._config)}return e.prototype.getCategory=function()
{return e.CATEGORY},e.prototype.getProviderName=function(){return
e.PROVIDER_NAME},e.prototype.configure=function(e){return jB.debug("configure
Amazon Location Service Provider",e),e?
(this._config=Object.assign({},this._config,e),this._config):this._config},e.protot
ype.getAvailableMaps=function(){this._verifyMapResources();var
e=[],t=this._config.maps.items,n=this._config.region;for(var r in t){var
i=t[r].style;e.push({mapName:r,style:i,region:n})}return
e},e.prototype.getDefaultMap=function(){this._verifyMapResources();var
e=this._config.maps.default;return{mapName:e,style:this._config.maps.items[e].style
,region:this._config.region}},e.prototype.searchByText=function(e,t){return
jN(this,void 0,void 0,(function(){var n,r,i,o,s,a;return BN(this,(function(c)
{switch(c.label){case 0:return[4,this._ensureCredentials()];case 1:if(!
c.sent())throw new Error("No credentials");this._verifySearchIndex(null==t?void
0:t.searchIndexName),n={Text:e,IndexName:this._config.search_indices.default},t&&(n
=FN(FN({},n),FB(t,n))),r=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),i=new CB(n),c.label=2;case 2:return c.trys.push([2,4,,5]),
[4,r.send(i)];case 3:return o=c.sent(),[3,5];case 4:throw
s=c.sent(),jB.debug(s),s;case 5:return a=o.Results.map((function(e){return
e.Place})),[2,GN()(a,{deep:!
0})]}}))}))},e.prototype.searchForSuggestions=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i,o,s;return BN(this,(function(a){switch(a.label){case
0:return[4,this._ensureCredentials()];case 1:if(!a.sent())throw new Error("No
credentials");this._verifySearchIndex(null==t?void
0:t.searchIndexName),n={Text:e,IndexName:this._config.search_indices.default},t&&(n
=FN(FN({},n),FB(t,n))),r=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),i=new OB(n),a.label=2;case 2:return a.trys.push([2,4,,5]),
[4,r.send(i)];case 3:return o=a.sent(),[3,5];case 4:throw
s=a.sent(),jB.debug(s),s;case 5:return[2,o.Results.map((function(e)
{return{text:e.Text,placeId:e.PlaceId}}))]}}))}))},e.prototype._verifyPlaceId=funct
ion(e){if(0===e.length){var t="PlaceId cannot be an empty string.";throw
jB.debug(t),new Error(t)}},e.prototype.searchByPlaceId=function(e,t){return
jN(this,void 0,void 0,(function(){var n,r,i,o,s,a;return BN(this,(function(c)
{switch(c.label){case 0:return[4,this._ensureCredentials()];case 1:if(!
c.sent())throw new Error("No credentials");this._verifySearchIndex(null==t?void
0:t.searchIndexName),this._verifyPlaceId(e),n=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),r={PlaceId:e,IndexName:(null==t?void 0:t.searchIndexName)||
this._config.search_indices.default},i=new xB(r),c.label=2;case 2:return
c.trys.push([2,4,,5]),[4,n.send(i)];case 3:return o=c.sent(),[3,5];case 4:throw
s=c.sent(),jB.debug(s),s;case 5:return(a=o.Place)?[2,GN()(a,{deep:!0})]:
[2]}}))}))},e.prototype.searchByCoordinates=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i,o,s,a;return BN(this,(function(c){switch(c.label)
{case 0:return[4,this._ensureCredentials()];case 1:if(!c.sent())throw new Error("No
credentials");this._verifySearchIndex(null==t?void
0:t.searchIndexName),n={Position:e,IndexName:this._config.search_indices.default},t
&&(t.searchIndexName&&(n.IndexName=t.searchIndexName),n.MaxResults=t.maxResults),r=
new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),i=new IB(n),c.label=2;case 2:return c.trys.push([2,4,,5]),
[4,r.send(i)];case 3:return o=c.sent(),[3,5];case 4:throw
s=c.sent(),jB.debug(s),s;case 5:return a=o.Results.map((function(e){return
e.Place})),[2,GN()(a[0],{deep:!0})]}}))}))},e.prototype.saveGeofences=function(e,t)
{return jN(this,void 0,void 0,(function(){var n,r,i,o=this;return BN(this,
(function(s){switch(s.label){case 0:if(e.length<1)throw new Error("Geofence input
array is empty");return[4,this._ensureCredentials()];case 1:if(!s.sent())throw new
Error("No credentials");try{this._verifyGeofenceCollections(null==t?void
0:t.collectionName)}catch(e){throw jB.debug(e),e}for(function(e){var
t={};e.forEach((function(e){if(!e.geofenceId)throw new Error("Geofence '"+e+"' is
missing geofenceId");var n=e.geofenceId;if(NB(n),t[n])throw new Error("Duplicate
geofenceId: "+n);if(t[n]=!0,!e.geometry)throw new Error("Geofence '"+n+"' is
missing geometry");var r=e.geometry;if(!r.polygon)throw new Error("Geofence '"+n+"'
is missing geometry.polygon");var i=r.polygon;try{!function(e,t){var n=t?t+":
":"";if(!Array.isArray(e))throw new Error(n+"Polygon is of incorrect structure. It
should be an array of LinearRings");if(e.length<1)throw new Error(n+"Polygon must
have a single LinearRing array.");if(e.length>1)throw new Error(n+"Polygon must
have a single LinearRing array. Note: We do not currently support polygons with
holes, multipolygons,
polygons that are wound clockwise, or that cross the
antimeridian.");if(e.reduce((function(e,t){return e+t.length}),0)>1e3)throw new
Error(n+"Polygon has more than the maximum 1000 vertices.");e.forEach((function(e)
{LB(e,t)}))}(i,n)}catch(e){if(e.message.includes("Polygon has more than the maximum
1000 vertices."))throw new Error("Geofence '"+n+"' has more than the maximum of
1000 vertices")}LB(UN(i,1)[0],n)}))}(e),n=e.map((function(e)
{return{GeofenceId:e.geofenceId,Geometry:
{Polygon:e.geometry.polygon}}})),r={successes:[],errors:
[]},i=[];n.length>0;)i.push(n.splice(0,10));return[4,Promise.all(i.map((function(e)
{return jN(o,void 0,void 0,(function(){var n,i;return BN(this,(function(o)
{switch(o.label){case 0:return o.trys.push([0,2,,3]),
[4,this._AmazonLocationServiceBatchPutGeofenceCall(e,(null==t?void
0:t.collectionName)||this._config.geofenceCollections.default)];case 1:return
n=o.sent(),[3,3];case 2:return i=o.sent(),e.forEach((function(e)
{r.errors.push({geofenceId:e.GeofenceId,error:
{code:"APIConnectionError",message:i.message}})})),[2];case 3:return
n.Successes.forEach((function(e){var
t=e.GeofenceId,n=e.CreateTime,i=e.UpdateTime;r.successes.push({geofenceId:t,createT
ime:n,updateTime:i})})),n.Errors.forEach((function(e){var
t=e.Error,n=t.Code,i=t.Message,o=e.GeofenceId;r.errors.push({error:
{code:n,message:i},geofenceId:o})})),[2]}}))}))})))];case 2:return s.sent(),
[2,r]}}))}))},e.prototype.getGeofence=function(e,t){return jN(this,void 0,void 0,
(function(){var n,r,i,o,s,a,c,u,l,h;return BN(this,(function(d){switch(d.label)
{case 0:return[4,this._ensureCredentials()];case 1:if(!d.sent())throw new Error("No
credentials");try{this._verifyGeofenceCollections(null==t?void
0:t.collectionName)}catch(e){throw jB.debug(e),e}NB(e),n=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),r={GeofenceId:e,CollectionName:(null==t?void 0:t.collectionName)||
this._config.geofenceCollections.default},i=new PB(r),d.label=2;case 2:return
d.trys.push([2,4,,5]),[4,n.send(i)];case 3:return o=d.sent(),[3,5];case 4:throw
s=d.sent(),jB.debug(s),s;case 5:return
a=o.GeofenceId,c=o.CreateTime,u=o.UpdateTime,l=o.Status,h=o.Geometry,[2,
{createTime:c,geofenceId:a,geometry:
{polygon:h.Polygon},status:l,updateTime:u}]}}))}))},e.prototype.listGeofences=funct
ion(e){return jN(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c;return BN(this,
(function(u){switch(u.label){case 0:return[4,this._ensureCredentials()];case 1:if(!
u.sent())throw new Error("No
credentials");try{this._verifyGeofenceCollections(null==e?void
0:e.collectionName)}catch(e){throw jB.debug(e),e}t=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),n={NextToken:null==e?void 0:e.nextToken,CollectionName:(null==e?void
0:e.collectionName)||this._config.geofenceCollections.default},r=new
DB(n),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,t.send(r)];case 3:return
i=u.sent(),[3,5];case 4:throw o=u.sent(),jB.debug(o),o;case 5:return
s=i.NextToken,a=i.Entries,c={entries:a.map((function(e)
{return{geofenceId:e.GeofenceId,createTime:e.CreateTime,updateTime:e.UpdateTime,sta
tus:e.Status,geometry:{polygon:e.Geometry.Polygon}}})),nextToken:s},
[2,c]}}))}))},e.prototype.deleteGeofences=function(e,t){return jN(this,void 0,void
0,(function(){var n,r,i,o,s=this;return BN(this,(function(a){switch(a.label){case
0:if(e.length<1)throw new Error("GeofenceId input array is
empty");return[4,this._ensureCredentials()];case 1:if(!a.sent())throw new Error("No
credentials");if(this._verifyGeofenceCollections(null==t?void 0:t.collectionName),
(n=e.filter((function(e){try{NB(e)}catch(e){return!0}}))).length>0)throw new
Error("Invalid geofence ids: "+n.join(", "));for(r={successes:[],errors:
[]},i=[],o=0;o<e.length;)i.push(e.slice(o,o+=10));return[4,Promise.all(i.map((funct
ion(e){return jN(s,void 0,void 0,(function(){var n,i,o,s;return BN(this,
(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),
[4,this._AmazonLocationServiceBatchDeleteGeofenceCall(e,(null==t?void
0:t.collectionName)||this._config.geofenceCollections.default)];case 1:return
n=a.sent(),[3,3];case 2:return i=a.sent(),e.forEach((function(e){var
t={geofenceId:e,error:{code:i.message,message:i.message}};r.errors.push(t)})),
[2];case 3:return o=n.Errors.map((function(e){return e.geofenceId})),
(s=r.successes).push.apply(s,function(){for(var e=[],t=0;t<arguments.length;t+
+)e=e.concat(UN(arguments[t]));return e}(e.filter((function(e){return!
o.includes(e)})))),[2]}}))}))})))];case 2:return a.sent(),
[2,r]}}))}))},e.prototype._ensureCredentials=function(){return jN(this,void 0,void
0,(function(){var e,t,n;return BN(this,(function(r){switch(r.label){case 0:return
r.trys.push([0,2,,3]),[4,Tn.get()];case 1:return(e=r.sent())?
(t=Tn.shear(e),jB.debug("Set credentials for storage. Credentials
are:",t),this._config.credentials=t,[2,!0]):[2,!1];case 2:return
n=r.sent(),jB.debug("Ensure credentials error. Credentials are:",n),[2,!1];case
3:return[2]}}))}))},e.prototype._verifyMapResources=function(){if(!
this._config.maps){var e="No map resources found in amplify config, run 'amplify
add geo' to create one and run `amplify push` after";throw jB.debug(e),new
Error(e)}if(!this._config.maps.default)throw e="No default map resource found in
amplify config, run 'amplify add geo' to create one and run `amplify push`
after",jB.debug(e),new Error(e)},e.prototype._verifySearchIndex=function(e){if(!
(this._config.search_indices&&this._config.search_indices.default||e)){var t="No
Search Index found in amplify config, please run `amplify add geo` to create one
and run `amplify push` after.";throw jB.debug(t),new
Error(t)}},e.prototype._verifyGeofenceCollections=function(e){if(!
(this._config.geofenceCollections&&this._config.geofenceCollections.default||e))
{var t="No Geofence Collections found, please run `amplify add geo` to create one
and run `amplify push` after.";throw jB.debug(t),new
Error(t)}},e.prototype._AmazonLocationServiceBatchPutGeofenceCall=function(e,t)
{return jN(this,void 0,void 0,(function(){var n,r,i,o;return BN(this,(function(s)
{switch(s.label){case 0:n={Entries:e,CollectionName:t||
this._config.geofenceCollections.default},r=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),i=new kB(n),s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,r.send(i)];case 2:return o=s.sent(),[3,4];case 3:throw s.sent();case
4:return[2,o]}}))}))},e.prototype._AmazonLocationServiceBatchDeleteGeofenceCall=fun
ction(e,t){return jN(this,void 0,void 0,(function(){var n,r,i,o;return BN(this,
(function(s){switch(s.label){case 0:n={GeofenceIds:e,CollectionName:t||
this._config.geofenceCollections.default},r=new
hj({credentials:this._config.credentials,region:this._config.region,customUserAgent
:cn()}),i=new RB(n),s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,r.send(i)];case 2:return o=s.sent(),[3,4];case 3:throw s.sent();case
4:return[2,o]}}))}))},e.CATEGORY="Geo",e.PROVIDER_NAME="AmazonLocationService",e}
(),UB=new h("Geo"),HB="AmazonLocationService",GB=function(){function e()
{this._config={},this._pluggables=[],UB.debug("Geo Options",this._config)}return
e.prototype.getModuleName=function(){return
e.MODULE},e.prototype.addPluggable=function(e){if(e&&"Geo"===e.getCategory())return
this._pluggables.push(e),e.configure(this._config[e.getProviderName()])},e.prototyp
e.getPluggable=function(e){var t=this._pluggables.find((function(t){return
t.getProviderName()===e}));if(void 0===t)throw UB.debug("No plugin found with
providerName",e),new Error("No plugin found in Geo for the provider");return
t},e.prototype.removePluggable=function(e)
{this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!
==e}))},e.prototype.configure=function(e){var t=this;if(UB.debug("configure Geo"),!
e)return this._config;var n=D(e);return
this._config=Object.assign({},this._config,n.Geo,e),this._pluggables.forEach((funct
ion(e)
{e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.a
ddPluggable(new BB),this._config},e.prototype.getAvailableMaps=function(e){return
void
0===e&&(e=HB),this.getPluggable(e).getAvailableMaps()},e.prototype.getDefaultMap=fu
nction(e){return void
0===e&&(e=HB),this.getPluggable(e).getDefaultMap()},e.prototype.searchByText=functi
on(e,t){return jN(this,void 0,void 0,(function(){var n,r,i,o;return BN(this,
(function(s){switch(s.label){case 0:n=(t||{}).providerName,r=void 0===n?
HB:n,i=this.getPluggable(r),s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,i.searchByText(e,t)];case 2:return[2,s.sent()];case 3:throw
o=s.sent(),UB.debug(o),o;case
4:return[2]}}))}))},e.prototype.searchForSuggestions=function(e,t){return
jN(this,void 0,void 0,(function(){var n,r,i,o;return BN(this,(function(s)
{switch(s.label){case 0:n=(t||{}).providerName,r=void 0===n?
HB:n,i=this.getPluggable(r),s.label=1;case 1:return s.trys.push([1,3,,4]),
[4,i.searchForSuggestions(e,t)];case 2:return[2,s.sent()];case 3:throw
o=s.sent(),UB.debug(o),o;case
4:return[2]}}))}))},e.prototype.searchByPlaceId=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i;return BN(this,(function(o){switch(o.label){case
0:n=HB,r=this.getPluggable(n),o.label=1;case 1:return o.trys.push([1,3,,4]),
[4,r.searchByPlaceId(e,t)];case 2:return[2,o.sent()];case 3:throw
i=o.sent(),UB.debug(i),i;case
4:return[2]}}))}))},e.prototype.searchByCoordinates=function(e,t){return
jN(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return BN(this,(function(u)
{switch(u.label){case 0:n=(t||{}).providerName,r=void 0===n?
HB:n,i=this.getPluggable(r),o=UN(e,2),s=o[0],a=o[1],u.label=1;case 1:return
u.trys.push([1,3,,4]),MB(s,a),[4,i.searchByCoordinates(e,t)];case
2:return[2,u.sent()];case 3:throw c=u.sent(),UB.debug(c),c;case
4:return[2]}}))}))},e.prototype.saveGeofences=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i,o,s;return BN(this,(function(a){switch(a.label){case
0:n=(t||{}).providerName,r=void
0===n?HB:n,i=this.getPluggable(r),o=Array.isArray(e)?e:[e],a.label=1;case 1:return
a.trys.push([1,3,,4]),[4,i.saveGeofences(o,t)];case 2:return[2,a.sent()];case
3:throw s=a.sent(),UB.debug(s),s;case
4:return[2]}}))}))},e.prototype.getGeofence=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i,o;return BN(this,(function(s){switch(s.label){case
0:n=(t||{}).providerName,r=void 0===n?HB:n,i=this.getPluggable(r),s.label=1;case
1:return s.trys.push([1,3,,4]),[4,i.getGeofence(e,t)];case
2:return[2,s.sent()];case 3:throw o=s.sent(),UB.debug(o),o;case
4:return[2]}}))}))},e.prototype.listGeofences=function(e){return jN(this,void
0,void 0,(function(){var t,n,r,i;return BN(this,(function(o){switch(o.label){case
0:t=(e||{}).providerName,n=void 0===t?HB:t,r=this.getPluggable(n),o.label=1;case
1:return o.trys.push([1,3,,4]),[4,r.listGeofences(e)];case
2:return[2,o.sent()];case 3:throw i=o.sent(),UB.debug(i),i;case
4:return[2]}}))}))},e.prototype.deleteGeofences=function(e,t){return jN(this,void
0,void 0,(function(){var n,r,i,o,s;return BN(this,(function(a){switch(a.label){case
0:n=(t||{}).providerName,r=void 0===n?
HB:n,i=this.getPluggable(r),o=Array.isArray(e)?e:[e],a.label=1;case 1:return
a.trys.push([1,3,,4]),[4,i.deleteGeofences(o,t)];case 2:return[2,a.sent()];case
3:throw s=a.sent(),UB.debug(s),s;case 4:return[2]}}))}))},e.MODULE="Geo",e}
(),zB=new GB;p.register(zB)},95766:(e,t)=>{"use strict";t.byteLength=function(e)
{var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var
t,n,o=a(e),s=o[0],c=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}
(0,s,c)),l=0,h=c>0?s-4:s;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|
r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l+
+]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|
r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|
r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l+
+]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r
%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(c(e,a,a+s>u?u:a+s));return 1===i?(t=e[r-
1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-
1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var
n=[],r=[],i="undefined"!=typeof Uint8Array?
Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+
/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(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 c(e,t,r){for(var
i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+
(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o
]);return
s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},31365:e=>{e.exports={tr
ueFunc:function(){return!0},falseFunc:function(){return!1}}},77160:function(e)
{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var
i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!
0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||
Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!
=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,
{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!
0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof
e&&e&&e.__esModule)return e;var
r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!
0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return
e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function()
{return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t)
{return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}
({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var
r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var
n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var
n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n)
{if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e)
{case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT
5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT
6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT
10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var
t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||
0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow
Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case
9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case
12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case
15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var
t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||
0}));if(t.push(0),!(1===t[0]&&t[1]<5))return
1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===
t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]
&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly
Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0
]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e)
{return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!
1);var
i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),s=Math.max(i,o),a=0,c=e.map([
t,n],(function(t){var n=s-e.getVersionPrecision(t),r=t+new
Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-
e.length).join("0")+e})).reverse()}));for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;)
{if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else
if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var
n,r=[];if(Array.prototype.map)return
Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return
r},e.find=function(e,t){var n,r;if(Array.prototype.find)return
Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var
i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var
t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-
1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,
[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!
==e&&Object.keys(e).forEach((function(t)
{r[t]=e[t]}))};for(t=0,n=o.length;t<n;t+=1)a();return
e},e.getBrowserAlias=function(e){return
r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return
r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use
strict";t.__esModule=!
0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void
0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android
Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"ch
romium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Gen
eric:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet
Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ
Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera
Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"
qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for
Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing"
,Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS
Browser":"webos",WeChat:"wechat","Yandex
Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon
Silk",android:"Android
Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",el
ectron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Gene
ric",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet
Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ
Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera
Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ
Browser",qqlite:"QQ Browser
Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for
Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"
UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex
Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv
"},t.OS_MAP={WindowsPhone:"Windows
Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",Bl
ackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome
OS",PlayStation4:"PlayStation
4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",P
resto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use
strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:
{default:r},o=n(18);function s(e,t){for(var n=0;n<t.length;n++){var
r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!
0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){}var t,n;return
e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new
Error("UserAgent should be a string");return new
i.default(e,t)},e.parse=function(e){return new
i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return
o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},
{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function()
{return o.PLATFORMS_MAP}}],null&&s(t.prototype,null),n&&s(t,n),e}
();t.default=a,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!
0,t.default=void 0;var
r=c(n(92)),i=c(n(93)),o=c(n(94)),s=c(n(95)),a=c(n(17));function c(e){return
e&&e.__esModule?e:{default:e}}var u=function(){function
e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter
can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var
t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return
e.test(this._ua)},t.parseBrowser=function(){var
e=this;this.parsedResult.browser={};var t=a.default.find(r.default,(function(t)
{if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return
t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test
function is not valid")}));return
t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},
t.getBrowser=function(){return this.parsedResult.browser?
this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return
e?
String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getB
rowserVersion=function(){return this.getBrowser().version},t.getOS=function()
{return this.parsedResult.os?
this.parsedResult.os:this.parseOS()},t.parseOS=function(){var
e=this;this.parsedResult.os={};var t=a.default.find(i.default,(function(t)
{if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return
t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test
function is not valid")}));return
t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSNam
e=function(e){var t=this.getOS().name;return e?
String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return
this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?
this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void
0===e&&(e=!1);var t=this.getPlatform().type;return e?
String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var
e=this;this.parsedResult.platform={};var t=a.default.find(o.default,(function(t)
{if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return
t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test
function is not valid")}));return
t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform
},t.getEngine=function(){return this.parsedResult.engine?
this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?
String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseE
ngine=function(){var e=this;this.parsedResult.engine={};var
t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return
t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return
e.test(t)}));throw new Error("Browser's test function is not valid")}));return
t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.
parse=function(){return
this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.
getResult=function(){return
a.default.assign({},this.parsedResult)},t.satisfies=function(e){var
t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var
s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(n[t]=s,r+=1)})),r>0)
{var s=Object.keys(n),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var
u=this.satisfies(n[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(e)
{return t.isPlatform(e)}));if(l){var h=this.satisfies(n[l]);if(void 0!==h)return
h}}if(o>0){var d=Object.keys(i),f=a.default.find(d,(function(e){return
t.isBrowser(e,!0)}));if(void 0!==f)return
this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var
n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeB
yAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var
t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof
i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!
0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?
n=e.substr(1):"~"===e[0]&&(r=!
0,n=e.substr(1)),t.indexOf(a.default.compareVersions(i,n,r))>-1},t.isOS=function(e)
{return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e)
{return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e)
{return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return
void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||
this.isPlatform(e)},t.some=function(e){var t=this;return void
0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}
();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!
0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+
(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var
t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var
t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)
[\s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var
t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var
t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||
i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale
Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\
d+(?:\.\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ
Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var
t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var
t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera
Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+
(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var
t={name:"Opera
Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex
Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||
i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC
Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\
s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var
t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/
(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var
t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/
(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var
t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/
(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var
t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/
(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-
meleon/i],describe:function(e){var t={name:"K-
Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/]
(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var
t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)
+)/i,e)||i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var
t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ
Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)
+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|
trident/i],describe:function(e){var t={name:"Internet
Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft
Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var
t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)
+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var
t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var
t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/
i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var
t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/
i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var
t={name:"Amazon
Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var
t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/
i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var
t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/
i,e);return
n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function
(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||
i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var
t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||
i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var
t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var
t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)
+)/i,e)||i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var
t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/
i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|
iceweasel|fxios/i],describe:function(e){var
t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+
(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var
t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/
i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var
t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/
i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var
t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/
i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|
crios|crmo/i],describe:function(e){var
t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)
+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var
t={name:"Google
Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return
n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like
android/i),n=e.test(/android/i);return t&&n},describe:function(e){var
t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var
t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return
n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var
t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:
[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[
\t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.defaul
t.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,n){"use
strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:
{default:r},o=n(18),s=[{test:[/Roku\/DVP/],describe:function(e){var
t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,vers
ion:t}}},{test:[/windows phone/i],describe:function(e){var
t=i.default.getFirstMatch(/windows phone
(?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:
[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)(
\d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,
version:t,versionName:n}}},{test:[/Macintosh(.*?)
FxiOS(.*?)\//],describe:function(e){var
t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return
n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var
t=i.default.getFirstMatch(/mac os x
(\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={n
ame:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|
ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*)
like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},
{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return
t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\
d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t}
;return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var
t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.We
bOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\
stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\
d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||
i.default.getFirstMatch(/\bbb(\d+)/
i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/
i],describe:function(e){var
t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,versi
on:t}}},{test:[/tizen/i],describe:function(e){var
t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,
version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},
{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/
PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation
4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=
s,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!
0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:
[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/
huawei/i],describe:function(e){var
t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,ve
ndor:"Huawei"};return
t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function()
{return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/
i],describe:function()
{return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/
Macintosh(.*?) FxiOS(.*?)\//],describe:function()
{return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt
build/i],describe:function()
{return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},
{test:[/silk/i],describe:function()
{return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?!
pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e)
{var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!
n},describe:function(e){var
t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,ve
ndor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy
nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},
{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},
{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e)
{return"bada"===e.getBrowserName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows
phone"===e.getBrowserName()},describe:function()
{return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var
t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!
0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},
{test:function(e){return"android"===e.getOSName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e)
{return"macos"===e.getOSName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e)
{return"windows"===e.getOSName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e)
{return"linux"===e.getOSName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation
4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},
{test:function(e){return"roku"===e.getOSName(!0)},describe:function()
{return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,
t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?
r:{default:r},o=n(18),s=[{test:function(e){return"microsoft
edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{nam
e:o.ENGINE_MAP.Blink};var
t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.Edg
eHTML,version:t}}},{test:[/trident/i],describe:function(e){var
t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)
+)/i,e);return n&&(t.version=n),t}},{test:function(e){return
e.test(/presto/i)},describe:function(e){var
t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/
i,e);return n&&(t.version=n),t}},{test:function(e){var
t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var
t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/
i,e);return
n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function()
{return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e)
{var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)
+)/i,e);return n&&(t.version=n),t}}];t.default=s,e.exports=t.default}})},58580:
(e,t,n)=>{"use strict";const r=n(52060),i=n(78783),o=new(n(78674))
({maxSize:1e5}),s=e=>!("object"!=typeof e||null===e||e instanceof RegExp||e
instanceof Error||e instanceof Date),a=(e,t)=>{if(!s(e))return e;t={deep:!
1,pascalCase:!1,...t};const{exclude:n,pascalCase:a,stopPaths:c,deep:u}=t,l=new
Set(c),h=e=>(t,c)=>{if(u&&s(c)){const n=void 0===e?t:`${e}.${t}`;l.has(n)||
(c=r(c,h(n)))}if(!n||!((e,t)=>e.some((e=>"string"==typeof e?e===t:
(e.lastIndex=0,e.test(t)))))(n,t)){const e=a?`$
{t}_`:t;if(o.has(e))t=o.get(e);else{const n=i(t,
{pascalCase:a});t.length<100&&o.set(e,n),t=n}}return[t,c]};return r(e,h(void
0))};e.exports=(e,t)=>Array.isArray(e)?
Object.keys(e).map((n=>a(e[n],t))):a(e,t)},78783:e=>{"use strict";const
t=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected
the input to be `string | string[]`");return t=Object.assign({pascalCase:!
1},t),e=Array.isArray(e)?
e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim(),0===e.length?"":1===e
.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!
==e.toLowerCase()&&(e=(e=>{let t=!1,n=!1,r=!1;for(let i=0;i<e.length;i++){const
o=e[i];t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(e=e.slice(0,i)
+"-"+e.slice(i),t=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?
(e=e.slice(0,i-1)+"-"+e.slice(i-1),r=n,n=!1,t=!0):
(t=o.toLowerCase()===o&&o.toUpperCase()!
==o,r=n,n=o.toUpperCase()===o&&o.toLowerCase()!==o)}return
e})(e)),n=e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,
((e,t)=>t.toUpperCase())).replace(/\d+(\w|$)/g,(e=>e.toUpperCase())),t.pascalCase?
n.charAt(0).toUpperCase()+n.slice(1):n);var
n};e.exports=t,e.exports.default=t},36031:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.groupSelectors=t.getDocumentRoot=void 0;var
r=n(18402);t.getDocumentRoot=function(e){for(;e.parent;)e=e.parent;return
e},t.groupSelectors=function(e){for(var t=[],n=[],i=0,o=e;i<o.length;i++){var
s=o[i];s.some(r.isFilter)?t.push(s):n.push(s)}return[n,t]}},12142:function(e,t,n)
{"use strict";var r=this&&this.__assign||function(){return r=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return
o(t,e),t},a=this&&this.__spreadArray||function(e,t,n){if(n||
2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.select=t.filter=t.some=t.is=t.aliases=t.pseudos=t.filters=void 0;var
c=n(23658),u=n(38062),l=s(n(64622)),h=s(n(31365)),d=n(36031),f=n(18402),p=n(38062);
Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return
p.filters}}),Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return
p.pseudos}}),Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return
p.aliases}});var
g={type:c.SelectorType.Universal,namespace:null},m={type:c.SelectorType.Pseudo,name
:"scope",data:null};function v(e,t,n){if(void 0===n&&(n={}),"function"==typeof
t)return e.some(t);var r=(0,d.groupSelectors)((0,c.parse)(t)),i=r[0],o=r[1];return
i.length>0&&e.some((0,u._compileToken)(i,n))||o.some((function(t){return
y(t,e,n).length>0}))}function b(e,t,n){if(0===t.length)return[];var
r,i=(0,d.groupSelectors)(e),o=i[0],s=i[1];if(o.length){var
a=S(t,o,n);if(0===s.length)return a;a.length&&(r=new Set(a))}for(var
c=0;c<s.length&&(null==r?void 0:r.size)!==t.length;c++){var u=s[c];if(0===(r?
t.filter((function(e){return l.isTag(e)&&!
r.has(e)})):t).length)break;if((a=y(u,t,n)).length)if(r)a.forEach((function(e)
{return r.add(e)}));else{if(c===s.length-1)return a;r=new Set(a)}}return void 0!
==r?r.size===t.length?t:t.filter((function(e){return r.has(e)})):[]}function
y(e,t,n){var i;if(e.some(c.isTraversal)){var o=null!==(i=n.root)&&void 0!==i?i:
(0,d.getDocumentRoot)(t[0]),s=r(r({},n),{context:t,relativeSelector:!1});return
e.push(m),w(o,e,s,!0,t.length)}return w(t,e,n,!1,t.length)}function w(e,t,n,i,o)
{var s=t.findIndex(f.isFilter),a=t.slice(0,s),d=t[s],p=t.length-1===s?
o:1/0,m=(0,f.getLimit)(d.name,d.data,p);if(0===m)return[];var v=(0!==a.length||
Array.isArray(e)?0===a.length?(Array.isArray(e)?e:[e]).filter(l.isTag):i||
a.some(c.isTraversal)?_(e,[a],n,m):S(e,
[a],n):l.getChildren(e).filter(l.isTag)).slice(0,m),y=function(e,t,n,r){var
i="string"==typeof n?parseInt(n,10):NaN;switch(e){case"first":case"lt":return
t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return
isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return
isFinite(i)?t.slice(i+1):[];case"even":return t.filter((function(e,t){return t
%2==0}));case"odd":return t.filter((function(e,t){return t%2==1}));case"not":var
o=new Set(b(n,t,r));return t.filter((function(e){return!o.has(e)}))}}
(d.name,v,d.data,n);if(0===y.length||t.length===s+1)return y;var
E=t.slice(s+1),T=E.some(c.isTraversal);if(T){if((0,c.isTraversal)(E[0])){var
A=E[0].type;A!==c.SelectorType.Sibling&&A!==c.SelectorType.Adjacent||
(y=(0,u.prepareContext)(y,l,!0)),E.unshift(g)}n=r(r({},n),{relativeSelector:!
1,rootFunc:function(e){return y.includes(e)}})}else n.rootFunc&&n.rootFunc!
==h.trueFunc&&(n=r(r({},n),{rootFunc:h.trueFunc}));return E.some(f.isFilter)?
w(y,E,n,!1,o):T?_(y,[E],n,o):S(y,[E],n)}function _(e,t,n,r){return E(e,
(0,u._compileToken)(t,n,e),r)}function E(e,t,n){void 0===n&&(n=1/0);var
r=(0,u.prepareContext)(e,l,t.shouldTestNextSiblings);return l.find((function(e)
{return l.isTag(e)&&t(e)}),r,!0,n)}function S(e,t,n){var r=(Array.isArray(e)?e:
[e]).filter(l.isTag);if(0===r.length)return r;var i=(0,u._compileToken)(t,n);return
i===h.trueFunc?r:r.filter(i)}t.is=function(e,t,n){return void
0===n&&(n={}),v([e],t,n)},t.some=v,t.filter=function(e,t,n){return void
0===n&&(n={}),b((0,c.parse)(e),t,n)},t.select=function(e,t,n,r){if(void
0===n&&(n={}),void 0===r&&(r=1/0),"function"==typeof e)return E(t,e);var
i=(0,d.groupSelectors)((0,c.parse)(e)),o=i[0],s=i[1].map((function(e){return
w(t,e,n,!0,r)}));return o.length&&s.push(_(t,o,n,r)),0===s.length?[]:1===s.length?
s[0]:l.uniqueSort(s.reduce((function(e,t){return a(a([],e,!0),t,!0)})))}},18402:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.getLimit=t.isFilter=t.filterNames=void 0,t.filterNames=new
Set(["first","last","eq","gt","nth","lt","even","odd"]),t.isFilter=function e(n)
{return"pseudo"===n.type&&(!!t.filterNames.has(n.name)||!("not"!==n.name||!
Array.isArray(n.data))&&n.data.some((function(t){return
t.some(e)})))},t.getLimit=function(e,t,n){var r=null!=t?
parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return
isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?
Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return
2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}},79237:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.toggleClass=t.removeClass=t.addClass=t.hasClass=t.removeAttr=t.val=t.data=t.p
rop=t.attr=void 0;var
r=n(36630),i=n(89038),o=n(64622),s=Object.prototype.hasOwnProperty,a=/\
s+/,c="data-",u={null:null,true:!0,false:!1},l=/^(?:autofocus|autoplay|async|
checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|
selected)$/i,h=/^{[^]*}$|^\[[^]*]$/;function d(e,t,n){var o;if(e&&(0,i.isTag)
(e))return null!==(o=e.attribs)&&void 0!==o||(e.attribs={}),t?s.call(e.attribs,t)?!
n&&l.test(t)?t:e.attribs[t]:"option"===e.name&&"value"===t?(0,r.text)
(e.children):"input"!==e.name||"radio"!==e.attribs.type&&"checkbox"!
==e.attribs.type||"value"!==t?void 0:"on":e.attribs}function f(e,t,n){null===n?
b(e,t):e.attribs[t]="".concat(n)}function p(e,t,n){return t in e?e[t]:!
n&&l.test(t)?void 0!==d(e,t,!1):d(e,t,n)}function g(e,t,n,r){t in e?e[t]=n:f(e,t,!
r&&l.test(t)?n?"":null:"".concat(n))}function m(e,t,n){var r,i=e;null!
==(r=i.data)&&void 0!==r||(i.data={}),"object"==typeof t?
Object.assign(i.data,t):"string"==typeof t&&void 0!==n&&(i.data[t]=n)}function
v(e,t){var n,r,o;null==t?r=(n=Object.keys(e.attribs).filter((function(e){return
e.startsWith(c)}))).map((function(e){return(0,i.camelCase)(e.slice(5))})):
(n=[c+(0,i.cssCase)(t)],r=[t]);for(var a=0;a<n.length;++a){var
l=n[a],d=r[a];if(s.call(e.attribs,l)&&!s.call(e.data,d))
{if(o=e.attribs[l],s.call(u,o))o=u[o];else
if(o===String(Number(o)))o=Number(o);else if(h.test(o))try{o=JSON.parse(o)}catch(e)
{}e.data[d]=o}}return null==t?e.data:o}function b(e,t)
{e.attribs&&s.call(e.attribs,t)&&delete e.attribs[t]}function y(e){return e?
e.trim().split(a):[]}t.attr=function(e,t){if("object"==typeof e||void 0!==t)
{if("function"==typeof t){if("string"!=typeof e)throw new Error("Bad combination of
arguments.");return(0,i.domEach)(this,(function(n,r){(0,i.isTag)
(n)&&f(n,e,t.call(n,r,n.attribs[e]))}))}return(0,i.domEach)(this,(function(n)
{(0,i.isTag)(n)&&("object"==typeof e?Object.keys(e).forEach((function(t){var
r=e[t];f(n,t,r)})):f(n,e,t))}))}return arguments.length>1?
this:d(this[0],e,this.options.xmlMode)},t.prop=function(e,t){var
n,r=this;if("string"==typeof e&&void 0===t){var s=this[0];if(!s||!(0,i.isTag)
(s))return;switch(e){case"style":var a=this.css(),c=Object.keys(a);return
c.forEach((function(e,t)
{a[t]=e})),a.length=c.length,a;case"tagName":case"nodeName":return
s.name.toUpperCase();case"href":case"src":var u=null===(n=s.attribs)||void 0===n?
void 0:n[e];return"undefined"==typeof URL||("href"!==e||"a"!==s.tagName&&"link"!
==s.name)&&("src"!==e||"img"!==s.tagName&&"iframe"!==s.tagName&&"audio"!
==s.tagName&&"video"!==s.tagName&&"source"!==s.tagName)||void 0===u||!
this.options.baseURI?u:new
URL(u,this.options.baseURI).href;case"innerText":return(0,o.innerText)
(s);case"textContent":return(0,o.textContent)(s);case"outerHTML":return
this.clone().wrap("<container />").parent().html();case"innerHTML":return
this.html();default:return p(s,e,this.options.xmlMode)}}if("object"==typeof e||void
0!==t){if("function"==typeof t){if("object"==typeof e)throw new Error("Bad
combination of arguments.");return(0,i.domEach)(this,(function(n,o){(0,i.isTag)
(n)&&g(n,e,t.call(n,o,p(n,e,r.options.xmlMode)),r.options.xmlMode)}))}return(0,i.do
mEach)(this,(function(n){(0,i.isTag)(n)&&("object"==typeof e?
Object.keys(e).forEach((function(t){var
i=e[t];g(n,t,i,r.options.xmlMode)})):g(n,e,t,r.options.xmlMode))}))}},t.data=functi
on(e,t){var n,r=this[0];if(r&&(0,i.isTag)(r)){var o=r;return
null!==(n=o.data)&&void 0!==n||(o.data={}),e?"object"==typeof e||void 0!==t?
((0,i.domEach)(this,(function(n){(0,i.isTag)(n)&&("object"==typeof e?
m(n,e):m(n,e,t))})),this):s.call(o.data,e)?
o.data[e]:v(o,e):v(o)}},t.val=function(e){var t=0===arguments.length,n=this[0];if(!
n||!(0,i.isTag)(n))return t?void 0:this;switch(n.name){case"textarea":return
this.text(e);case"select":var o=this.find("option:selected");if(!t)
{if(null==this.attr("multiple")&&"object"==typeof e)return
this;this.find("option").removeAttr("selected");for(var s="object"!=typeof e?
[e]:e,a=0;a<s.length;a+
+)this.find('option[value="'.concat(s[a],'"]')).attr("selected","");return
this}return this.attr("multiple")?o.toArray().map((function(e){return(0,r.text)
(e.children)})):o.attr("value");case"input":case"option":return t?
this.attr("value"):this.attr("value",e)}},t.removeAttr=function(e){for(var
t=y(e),n=function(e){(0,i.domEach)(r,(function(n){(0,i.isTag)
(n)&&b(n,t[e])}))},r=this,o=0;o<t.length;o++)n(o);return
this},t.hasClass=function(e){return this.toArray().some((function(t){var
n=(0,i.isTag)(t)&&t.attribs.class,r=-1;if(n&&e.length)for(;(r=n.indexOf(e,r+1))>-
1;){var o=r+e.length;if((0===r||a.test(n[r-1]))&&(o===n.length||
a.test(n[o])))return!0}return!1}))},t.addClass=function e(t){if("function"==typeof
t)return(0,i.domEach)(this,(function(n,r){if((0,i.isTag)(n)){var
o=n.attribs.class||"";e.call([n],t.call(n,r,o))}}));if(!t||"string"!=typeof
t)return this;for(var n=t.split(a),r=this.length,o=0;o<r;o++){var
s=this[o];if((0,i.isTag)(s)){var c=d(s,"class",!1);if(c){for(var u=" ".concat(c,"
"),l=0;l<n.length;l++){var h="".concat(n[l]," ");u.includes(" ".concat(h))||
(u+=h)}f(s,"class",u.trim())}else f(s,"class",n.join(" ").trim())}}return
this},t.removeClass=function e(t){if("function"==typeof t)return(0,i.domEach)(this,
(function(n,r){(0,i.isTag)(n)&&e.call([n],t.call(n,r,n.attribs.class||""))}));var
n=y(t),r=n.length,o=0===arguments.length;return(0,i.domEach)(this,(function(e)
{if((0,i.isTag)(e))if(o)e.attribs.class="";else{for(var t=y(e.attribs.class),s=!
1,a=0;a<r;a++){var c=t.indexOf(n[a]);c>=0&&(t.splice(c,1),s=!
0,a--)}s&&(e.attribs.class=t.join(" "))}}))},t.toggleClass=function e(t,n)
{if("function"==typeof t)return(0,i.domEach)(this,(function(r,o){(0,i.isTag)
(r)&&e.call([r],t.call(r,o,r.attribs.class||"",n),n)}));if(!t||"string"!=typeof
t)return this;for(var r=t.split(a),o=r.length,s="boolean"==typeof n?n?1:-
1:0,c=this.length,u=0;u<c;u++){var l=this[u];if((0,i.isTag)(l)){for(var
h=y(l.attribs.class),d=0;d<o;d++){var f=h.indexOf(r[d]);s>=0&&f<0?
h.push(r[d]):s<=0&&f>=0&&h.splice(f,1)}l.attribs.class=h.join(" ")}}return
this}},26685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.css=void 0;var r=n(89038);function i(e,t,n,r){if("string"==typeof t){var
s=o(e),a="function"==typeof n?n.call(e,r,s[t]):n;""===a?delete s[t]:null!
=a&&(s[t]=a),e.attribs.style=(c=s,Object.keys(c).reduce((function(e,t)
{return"".concat(e).concat(e?" ":"").concat(t,":
").concat(c[t],";")}),""))}else"object"==typeof
t&&Object.keys(t).forEach((function(n,r){i(e,n,t[n],r)}));var c}function o(e,t)
{if(e&&(0,r.isTag)(e)){var n=function(e){if(!(e=(e||"").trim()))return{};for(var
t,n={},r=0,i=e.split(";");r<i.length;r++){var o=i[r],s=o.indexOf(":");if(s<1||
s===o.length-1){var a=o.trimEnd();a.length>0&&void 0!==t&&(n[t]
+=";".concat(a))}else n[t=o.slice(0,s).trim()]=o.slice(s+1).trim()}return n}
(e.attribs.style);if("string"==typeof t)return n[t];if(Array.isArray(t)){var
i={};return t.forEach((function(e){null!=n[e]&&(i[e]=n[e])})),i}return
n}}t.css=function(e,t){return null!=e&&null!=t||"object"==typeof e&&!
Array.isArray(e)?(0,r.domEach)(this,(function(n,o){(0,r.isTag)(n)&&i(n,e,t,o)})):0!
==this.length?o(this[0],e):void 0}},99274:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.serializeArray=t.serialize=void 0;var
r=n(89038),i="input,select,textarea,keygen",o=/%20/g,s=/\r?\n/g;t.serialize=functio
n(){return this.serializeArray().map((function(e)
{return"".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value)
)})).join("&").replace(o,"+")},t.serializeArray=function(){var e=this;return
this.map((function(t,n){var o=e._make(n);return(0,r.isTag)(n)&&"form"===n.name?
o.find(i).toArray():o.filter(i).toArray()})).filter('[name!
=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:
checkbox, :radio))').map((function(t,n){var r,i=e._make(n),o=i.attr("name"),a=null!
==(r=i.val())&&void 0!==r?r:"";return Array.isArray(a)?a.map((function(e)
{return{name:o,value:e.replace(s,"\r\n")}})):{name:o,value:a.replace(s,"\r\
n")}})).toArray()}},82147:function(e,t,n){"use strict";var
r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.clone=t.text=t.toString=t.html=t.empty=t.replaceWith=t.remove=t.insertBefore=
t.before=t.insertAfter=t.after=t.wrapAll=t.unwrap=t.wrapInner=t.wrap=t.prepend=t.ap
pend=t.prependTo=t.appendTo=t._makeDomArray=void 0;var
i=n(79959),o=n(48538),s=n(36630),a=n(89038),c=n(64622);function u(e){return
function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var
o=this.length-1;return(0,a.domEach)(this,(function(r,s){if((0,i.hasChildren)(r))
{var a="function"==typeof n[0]?
n[0].call(r,s,t._render(r.children)):n,c=t._makeDomArray(a,s<o);e(c,r.children,r)}}
))}}function l(e,t,n,i,o){for(var s,a,c=r([t,n],i,!0),u=0===t?null:e[t-
1],l=t+n>=e.length?null:e[t+n],h=0;h<i.length;++h){var d=i[h],f=d.parent;if(f){var
p=f.children.indexOf(d);p>-
1&&(f.children.splice(p,1),o===f&&t>p&&c[0]--)}d.parent=o,d.prev&&(d.prev.next=null
!==(s=d.next)&&void 0!==s?s:null),d.next&&(d.next.prev=null!==(a=d.prev)&&void 0!
==a?a:null),d.prev=0===h?u:i[h-1],d.next=h===i.length-1?l:i[h+1]}return
u&&(u.next=i[0]),l&&(l.prev=i[i.length-1]),e.splice.apply(e,c)}function h(e){return
function(t){for(var n=this.length-1,r=this.parents().last(),o=0;o<this.length;o++)
{var s=this[o],c="function"==typeof t?t.call(s,o,s):"string"!=typeof t||
(0,a.isHtml)(t)?t:r.find(t).clone(),u=this._makeDomArray(c,o<n)
[0];if(u&&(0,i.hasChildren)(u)){for(var l=u,h=0;h<l.children.length;){var
d=l.children[h];(0,a.isTag)(d)?(l=d,h=0):h++}e(s,l,[u])}}return
this}}t._makeDomArray=function(e,t){var n=this;return null==e?[]:(0,a.isCheerio)
(e)?t?(0,a.cloneDom)(e.get()):e.get():Array.isArray(e)?e.reduce((function(e,r)
{return e.concat(n._makeDomArray(r,t))}),[]):"string"==typeof e?
this._parse(e,this.options,!1,null).children:t?(0,a.cloneDom)([e]):
[e]},t.appendTo=function(e){return((0,a.isCheerio)(e)?
e:this._make(e)).append(this),this},t.prependTo=function(e){return((0,a.isCheerio)
(e)?e:this._make(e)).prepend(this),this},t.append=u((function(e,t,n)
{l(t,t.length,0,e,n)})),t.prepend=u((function(e,t,n)
{l(t,0,0,e,n)})),t.wrap=h((function(e,t,n){var r=e.parent;if(r){var
i=r.children,s=i.indexOf(e);(0,o.update)
([e],t),l(i,s,0,n,r)}})),t.wrapInner=h((function(e,t,n){(0,i.hasChildren)
(e)&&((0,o.update)(e.children,t),(0,o.update)(n,e))})),t.unwrap=function(e){var
t=this;return this.parent(e).not("body").each((function(e,n)
{t._make(n).replaceWith(n.children)})),this},t.wrapAll=function(e){var
t=this[0];if(t){for(var n=this._make("function"==typeof e?
e.call(t,0,t):e).insertBefore(t),r=void 0,i=0;i<n.length;i+
+)"tag"===n[i].type&&(r=n[i]);for(var o=0;r&&o<r.children.length;){var
s=r.children[o];"tag"===s.type?(r=s,o=0):o++}r&&this._make(r).append(this)}return
this},t.after=function(){for(var e=this,t=[],n=0;n<arguments.length;n+
+)t[n]=arguments[n];var r=this.length-1;return(0,a.domEach)(this,(function(n,o){var
s=n.parent;if((0,i.hasChildren)(n)&&s){var a=s.children,c=a.indexOf(n);if(!(c<0))
{var u="function"==typeof t[0]?
t[0].call(n,o,e._render(n.children)):t;l(a,c+1,0,e._makeDomArray(u,o<r),s)}}}))},t.
insertAfter=function(e){var t=this;"string"==typeof
e&&(e=this._make(e)),this.remove();var n=[];return
this._makeDomArray(e).forEach((function(e){var
r=t.clone().toArray(),i=e.parent;if(i){var o=i.children,s=o.indexOf(e);s<0||
(l(o,s+1,0,r,i),n.push.apply(n,r))}})),this._make(n)},t.before=function(){for(var
e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.length-
1;return(0,a.domEach)(this,(function(n,o){var s=n.parent;if((0,i.hasChildren)
(n)&&s){var a=s.children,c=a.indexOf(n);if(!(c<0)){var u="function"==typeof t[0]?
t[0].call(n,o,e._render(n.children)):t;l(a,c,0,e._makeDomArray(u,o<r),s)}}}))},t.in
sertBefore=function(e){var t=this,n=this._make(e);this.remove();var
r=[];return(0,a.domEach)(n,(function(e){var n=t.clone().toArray(),i=e.parent;if(i)
{var o=i.children,s=o.indexOf(e);s<0||
(l(o,s,0,n,i),r.push.apply(r,n))}})),this._make(r)},t.remove=function(e){var t=e?
this.filter(e):this;return(0,a.domEach)(t,(function(e){(0,c.removeElement)
(e),e.prev=e.next=e.parent=null})),this},t.replaceWith=function(e){var
t=this;return(0,a.domEach)(this,(function(n,r){var i=n.parent;if(i){var
s=i.children,a="function"==typeof e?e.call(n,r,n):e,c=t._makeDomArray(a);
(0,o.update)(c,null);var u=s.indexOf(n);l(s,u,1,c,i),c.includes(n)||
(n.parent=n.prev=n.next=null)}}))},t.empty=function(){return(0,a.domEach)(this,
(function(e){(0,i.hasChildren)(e)&&(e.children.forEach((function(e)
{e.next=e.prev=e.parent=null})),e.children.length=0)}))},t.html=function(e){var
t=this;if(void 0===e){var n=this[0];return n&&(0,i.hasChildren)(n)?
this._render(n.children):null}return(0,a.domEach)(this,(function(n)
{if((0,i.hasChildren)(n)){n.children.forEach((function(e)
{e.next=e.prev=e.parent=null}));var r=(0,a.isCheerio)(e)?
e.toArray():t._parse("".concat(e),t.options,!1,n).children;(0,o.update)
(r,n)}}))},t.toString=function(){return this._render(this)},t.text=function(e){var
t=this;return void 0===e?(0,s.text)(this):"function"==typeof e?(0,a.domEach)(this,
(function(n,r){return t._make(n).text(e.call(n,r,(0,s.text)([n])))})):(0,a.domEach)
(this,(function(t){if((0,i.hasChildren)(t)){t
.children.forEach((function(e){e.next=e.prev=e.parent=null}));var n=new
i.Text("".concat(e));(0,o.update)(n,t)}}))},t.clone=function(){return
this._make((0,a.cloneDom)(this.get()))}},56837:function(e,t,n){"use strict";var
r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void
0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},s=this&&this.__spreadArray||function(e,t,n){if(n||
2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.addBack=t.add=t.end=t.slice=t.index=t.toArray=t.get=t.eq=t.last=t.first=t.has
=t.not=t.is=t.filterArray=t.filter=t.map=t.each=t.contents=t.children=t.siblings=t.
prevUntil=t.prevAll=t.prev=t.nextUntil=t.nextAll=t.next=t.closest=t.parentsUntil=t.
parents=t.parent=t.find=void 0;var
a=n(79959),c=o(n(12142)),u=n(89038),l=n(36630),h=n(64622),d=/^\s*[~+]/;function
f(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-
1]=arguments[r];return function(r){var i,o=e(t,this);return
r&&(o=y(o,r,this.options.xmlMode,null===(i=this._root)||void 0===i?void
0:i[0])),this._make(this.length>1&&o.length>1?n.reduce((function(e,t){return
t(e)}),o):o)}}}t.find=function(e){var t;if(!e)return this._make([]);var
n=this.toArray();if("string"!=typeof e){var r=(0,u.isCheerio)(e)?e.toArray():
[e];return this._make(r.filter((function(e){return n.some((function(t)
{return(0,l.contains)(t,e)}))})))}var i=d.test(e)?
n:this.children().toArray(),o={context:n,root:null===(t=this._root)||void 0===t?
void
0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerC
aseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos
,quirksMode:this.options.quirksMode};return this._make(c.select(e,i,o))};var
p=f((function(e,t){for(var n,r=[],i=0;i<t.length;i++){var
o=e(t[i]);r.push(o)}return(n=new Array).concat.apply(n,r)})),g=f((function(e,t)
{for(var n=[],r=0;r<t.length;r++){var i=e(t[r]);null!==i&&n.push(i)}return
n}));function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var
r=null,i=f((function(e,t){var n=[];return(0,u.domEach)(t,(function(t){for(var i;
(i=e(t))&&!(null==r?void 0:r(i,n.length));t=i)n.push(i)})),n})).apply(void
0,s([e],t,!1));return function(e,t){var n=this;r="string"==typeof e?function(t)
{return c.is(t,e,n.options)}:e?b(e):null;var o=i.call(this,t);return
r=null,o}}function v(e){return Array.from(new Set(e))}function b(e)
{return"function"==typeof e?function(t,n){return e.call(t,n,t)}:(0,u.isCheerio)(e)?
function(t){return Array.prototype.includes.call(e,t)}:function(t){return
e===t}}function y(e,t,n,r){return"string"==typeof t?c.filter(t,e,
{xmlMode:n,root:r}):e.filter(b(t))}t.parent=g((function(e){var t=e.parent;return
t&&!(0,a.isDocument)(t)?t:null}),v),t.parents=p((function(e){for(var
t=[];e.parent&&!(0,a.isDocument)(e.parent);)t.push(e.parent),e=e.parent;return
t}),h.uniqueSort,(function(e){return e.reverse()})),t.parentsUntil=m((function(e)
{var t=e.parent;return t&&!(0,a.isDocument)(t)?t:null}),h.uniqueSort,(function(e)
{return e.reverse()})),t.closest=function(e){var t,n=[];if(!e)return
this._make(n);var r={xmlMode:this.options.xmlMode,root:null===(t=this._root)||void
0===t?void 0:t[0]},i="string"==typeof e?function(t){return
c.is(t,e,r)}:b(e);return(0,u.domEach)(this,(function(e){for(;e&&(0,u.isTag)(e);)
{if(i(e,0)){n.includes(e)||
n.push(e);break}e=e.parent}})),this._make(n)},t.next=g((function(e)
{return(0,h.nextElementSibling)(e)})),t.nextAll=p((function(e){for(var
t=[];e.next;)e=e.next,(0,u.isTag)(e)&&t.push(e);return
t}),v),t.nextUntil=m((function(e){return(0,h.nextElementSibling)
(e)}),v),t.prev=g((function(e){return(0,h.prevElementSibling)
(e)})),t.prevAll=p((function(e){for(var t=[];e.prev;)e=e.prev,(0,u.isTag)
(e)&&t.push(e);return t}),v),t.prevUntil=m((function(e)
{return(0,h.prevElementSibling)(e)}),v),t.siblings=p((function(e)
{return(0,h.getSiblings)(e).filter((function(t){return(0,u.isTag)(t)&&t!
==e}))}),h.uniqueSort),t.children=p((function(e){return(0,h.getChildren)
(e).filter(u.isTag)}),v),t.contents=function(){var
e=this.toArray().reduce((function(e,t){return(0,a.hasChildren)(t)?
e.concat(t.children):e}),[]);return this._make(e)},t.each=function(e){for(var
t=0,n=this.length;t<n&&!1!==e.call(this[t],t,this[t]);)++t;return
this},t.map=function(e){for(var t=[],n=0;n<this.length;n++){var
r=this[n],i=e.call(r,n,r);null!=i&&(t=t.concat(i))}return
this._make(t)},t.filter=function(e){var t;return
this._make(y(this.toArray(),e,this.options.xmlMode,null===(t=this._root)||void
0===t?void 0:t[0]))},t.filterArray=y,t.is=function(e){var
t=this.toArray();return"string"==typeof e?
c.some(t.filter(u.isTag),e,this.options):!!e&&t.some(b(e))},t.not=function(e){var
t=this.toArray();if("string"==typeof e){var n=new
Set(c.filter(e,t,this.options));t=t.filter((function(e){return!n.has(e)}))}else{var
r=b(e);t=t.filter((function(e,t){return!r(e,t)}))}return
this._make(t)},t.has=function(e){var t=this;return this.filter("string"==typeof
e?":has(".concat(e,")"):function(n,r){return
t._make(r).find(e).length>0})},t.first=function(){return this.length>1?
this._make(this[0]):this},t.last=function(){return this.length>0?
this._make(this[this.length-1]):this},t.eq=function(e){var t;return
0==(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this._make(null!
==(t=this[e])&&void 0!==t?t:[]))},t.get=function(e){return null==e?
this.toArray():this[e<0?this.length+e:e]},t.toArray=function(){return
Array.prototype.slice.call(this)},t.index=function(e){var t,n;return null==e?
(t=this.parent().children(),n=this[0]):"string"==typeof e?
(t=this._make(e),n=this[0]):(t=this,n=(0,u.isCheerio)(e)?
e[0]:e),Array.prototype.indexOf.call(t,n)},t.slice=function(e,t){return
this._make(Array.prototype.slice.call(this,e,t))},t.end=function(){var e;return
null!==(e=this.prevObject)&&void 0!==e?e:this._make([])},t.add=function(e,t){var
n=this._make(e,t),r=(0,h.uniqueSort)(s(s([],this.get(),!0),n.get(),!0));return
this._make(r)},t.addBack=function(e){return this.prevObject?this.add(e?
this.prevObject.filter(e):this.prevObject):this}},75834:function(e,t,n){"use
strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void
0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Cheerio=void 0;var
s=o(n(79237)),a=o(n(56837)),c=o(n(82147)),u=o(n(26685)),l=o(n(99274)),h=function(e,
t,n){if(this.length=0,this.options=n,this._root=t,e){for(var r=0;r<e.length;r+
+)this[r]=e[r];this.length=e.length}};t.Cheerio=h,h.prototype.cheerio="[cheerio
object]",h.prototype.splice=Array.prototype.splice,h.prototype[Symbol.iterator]=Arr
ay.prototype[Symbol.iterator],Object.assign(h.prototype,s,a,c,u,l)},62311:function(
e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t)
{for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||
r(t,e,n)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var
t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.root=t.parseHTML=t.merge=t.contains=t.text=t.xml=t.html=t.load=void
0,o(n(51291),t);var
c=n(21955),u=n(48538),l=n(68957),h=a(n(50606)),d=n(60883),f=(0,u.getParse)
((function(e,t,n,r){return t.xmlMode||t._useHtmlParser2?(0,d.parseDocument)(e,t):
(0,l.parseWithParse5)(e,t,n,r)}));t.load=(0,c.getLoad)(f,(function(e,t){return
t.xmlMode||t._useHtmlParser2?(0,h.default)(e,t):(0,l.renderWithParse5)
(e)})),t.default=(0,t.load)([]);var p=n(36630);Object.defineProperty(t,"html",
{enumerable:!0,get:function(){return p.html}}),Object.defineProperty(t,"xml",
{enumerable:!0,get:function(){return p.xml}}),Object.defineProperty(t,"text",
{enumerable:!0,get:function(){return p.text}});var
g=s(n(36630));t.contains=g.contains,t.merge=g.merge,t.parseHTML=g.parseHTML,t.root=
g.root},21955:function(e,t,n){"use strict";var r,i=this&&this.__extends||
(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t)
{if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value
"+String(t)+" is not a constructor
or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?
Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||
function(){return o=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return
a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getLoad=void 0;var
u=c(n(94657)),l=c(n(36630)),h=n(75834),d=n(89038);t.getLoad=function(e,t){return
function n(r,s,a){if(void 0===a&&(a=!0),null==r)throw new Error("cheerio.load()
expects a string");var c=o(o({},u.default),(0,u.flatten)
(s)),f=e(r,c,a,null),p=function(n){function r(){return null!
==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype._make=function(e,t)
{var n=g(e,t);return n.prevObject=this,n},r.prototype._parse=function(t,n,r,i)
{return e(t,n,r,i)},r.prototype._render=function(e){return t(e,this.options)},r}
(h.Cheerio);function g(t,n,r,i){if(void 0===r&&(r=f),t&&(0,d.isCheerio)(t))return
t;var s=o(o({},c),(0,u.flatten)(i)),a="string"==typeof r?[e(r,s,!
1,null)]:"length"in r?r:[r],l=(0,d.isCheerio)(a)?a:new p(a,null,s);if(l._root=l,!
t)return new p(void 0,l,s);var h,g="string"==typeof t&&(0,d.isHtml)(t)?e(t,s,!
1,null).children:(h=t).name||"root"===h.type||"text"===h.type||"comment"===h.type?
[t]:Array.isArray(t)?t:void 0,m=new p(g,l,s);if(g)return m;if("string"!=typeof
t)throw new Error("Unexpected type of selector");var v=t,b=n?"string"==typeof n?
(0,d.isHtml)(n)?new p([e(n,s,!1,null)],l,s):(v="".concat(n," ").concat(v),l):
(0,d.isCheerio)(n)?n:new p(Array.isArray(n)?n:[n],l,s):l;return b?
b.find(v):m}return Object.assign(g,l,
{load:n,_root:f,_options:c,fn:p.prototype,prototype:p.prototype}),g}}},94657:functi
on(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||
function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!
0}),t.flatten=void 0,t.default={xml:!1,decodeEntities:!0};var r={_useHtmlParser2:!
0,xmlMode:!0};t.flatten=function(e){return(null==e?void 0:e.xml)?"boolean"==typeof
e.xml?r:n(n({},r),e.xml):null!=e?e:void 0}},48538:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=t.getParse=void
0;var r=n(64622),i=n(79959);function o(e,t){var n=Array.isArray(e)?e:[e];t?
t.children=n:t=null;for(var i=0;i<n.length;i++){var
o=n[i];o.parent&&o.parent.children!==n&&(0,r.removeElement)(o),t?(o.prev=n[i-1]||
null,o.next=n[i+1]||null):o.prev=o.next=null,o.parent=t}return
t}t.getParse=function(e){return function(t,n,r,s){if("undefined"!=typeof
Buffer&&Buffer.isBuffer(t)&&(t=t.toString()),"string"==typeof t)return
e(t,n,r,s);var a=t;if(!Array.isArray(a)&&(0,i.isDocument)(a))return a;var c=new
i.Document([]);return o(a,c),c}},t.update=o},68957:function(e,t,n){"use strict";var
r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.renderWithParse5=t.parseWithParse5=void 0;var
i=n(79959),o=n(91740),s=n(74363);t.parseWithParse5=function(e,t,n,r){var
i={scriptingEnabled:"boolean"!=typeof t.scriptingEnabled||
t.scriptingEnabled,treeAdapter:s.adapter,sourceCodeLocationInfo:t.sourceCodeLocatio
nInfo};return n?(0,o.parse)(e,i):(0,o.parseFragment)(r,e,i)};var
a={treeAdapter:s.adapter};t.renderWithParse5=function(e){for(var t,n=("length"in e?
e:[e]),s=0;s<n.length;s+=1){var c=n[s];(0,i.isDocument)
(c)&&(t=Array.prototype.splice).call.apply(t,r([n,s,1],c.children,!1))}var
u="";for(s=0;s<n.length;s+=1)c=n[s],u+=(0,o.serializeOuter)(c,a);return
u}},36630:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return
r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return
o(t,e),t};Object.defineProperty(t,"__esModule",{value:!
0}),t.merge=t.contains=t.root=t.parseHTML=t.text=t.xml=t.html=void 0;var
a=n(64622),c=s(n(94657));function u(e,t,n){return e?e(null!=t?
t:e._root.children,null,void 0,n).toString():""}function l(e)
{if(Array.isArray(e))return!0;if("object"!=typeof e||!
Object.prototype.hasOwnProperty.call(e,"length")||"number"!=typeof e.length||
e.length<0)return!1;for(var t=0;t<e.length;t++)if(!(t in e))return!1;return!
0}t.html=function(e,t){return u(this,function(e,t){return"object"==typeof e&&null!
=e&&!("length"in e)&&!("type"in e)}(e)?void(t=e):e,r(r(r({},c.default),null==this?
void 0:this._options),(0,c.flatten)(null!=t?t:{})))},t.xml=function(e){return
u(this,e,r(r({},this._options),{xmlMode:!0}))},t.text=function(e){for(var t=e||
(this?this.root():[]),n="",r=0;r<t.length;r++)n+=(0,a.textContent)(t[r]);return
n},t.parseHTML=function(e,t,n){if(void 0===n&&(n="boolean"==typeof t&&t),!
e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t);var
r=this.load(e,c.default,!1);return n||r("script").remove(),r.root()
[0].children.slice()},t.root=function(){return
this(this._root)},t.contains=function(e,t){if(t===e)return!1;for(var n=t;n&&n!
==n.parent;)if((n=n.parent)===e)return!0;return!1},t.merge=function(e,t)
{if(l(e)&&l(t)){for(var n=e.length,r=+t.length,i=0;i<r;i++)e[n++]=t[i];return
e.length=n,e}}},51291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0})},89038:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!
0}),t.isHtml=t.cloneDom=t.domEach=t.cssCase=t.camelCase=t.isCheerio=t.isTag=void
0;var r,i=n(79959),o=n(79959);Object.defineProperty(t,"isTag",{enumerable:!
0,get:function(){return o.isTag}}),t.isCheerio=function(e){return null!
=e.cheerio},t.camelCase=function(e){return e.replace(/[_.-](\w|$)/g,(function(e,t)
{return t.toUpperCase()}))},t.cssCase=function(e){return e.replace(/[A-Z]/g,"-
$&").toLowerCase()},t.domEach=function(e,t){for(var n=e.length,r=0;r<n;r+
+)t(e[r],r);return e},t.cloneDom=function(e){var t="length"in e?
Array.prototype.map.call(e,(function(e){return(0,i.cloneNode)(e,!0)})):
[(0,i.cloneNode)(e,!0)],n=new i.Document(t);return t.forEach((function(e)
{e.parent=n})),t},function(e)
{e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.Upper
Z=90]="UpperZ",e[e.Exclamation=33]="Exclamation"}(r||(r={})),t.isHtml=function(e)
{var t=e.indexOf("<");if(t<0||t>e.length-3)return!1;var
n=e.charCodeAt(t+1);return(n>=r.LowerA&&n<=r.LowerZ||n>=r.UpperA&&n<=r.UpperZ||
n===r.Exclamation)&&e.includes(">",t+2)}},47841:e=>{var t;window,t=function()
{return function(){"use strict";var e={282:function(e,t,n)
{Object.defineProperty(t,"__esModule",{value:!
0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var
r=n(883);t.addChoice=function(e){var
t=e.value,n=e.label,i=e.id,o=e.groupId,s=e.disabled,a=e.elementId,c=e.customPropert
ies,u=e.placeholder,l=e.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:t,label
:n,id:i,groupId:o,disabled:s,elementId:a,customProperties:c,placeholder:u,keyCode:l
}},t.filterChoices=function(e)
{return{type:r.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e
){return void 0===e&&(e=!0),
{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function()
{return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,n)
{Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var
r=n(883);t.addGroup=function(e){var
t=e.value,n=e.id,i=e.active,o=e.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value
:t,id:n,active:i,disabled:o}}},464:function(e,t,n)
{Object.defineProperty(t,"__esModule",{value:!
0}),t.highlightItem=t.removeItem=t.addItem=void 0;var
r=n(883);t.addItem=function(e){var
t=e.value,n=e.label,i=e.id,o=e.choiceId,s=e.groupId,a=e.customProperties,c=e.placeh
older,u=e.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:i,choiceId
:o,groupId:s,customProperties:a,placeholder:c,keyCode:u}},t.removeItem=function(e,t
)
{return{type:r.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(
e,t)
{return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,n
){Object.defineProperty(t,"__esModule",{value:!
0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var r=n(883);t.clearAll=function()
{return{type:r.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e)
{return{type:r.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e)
{return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){var
r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return
e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var
o=i(n(996)),s=i(n(221)),a=n(282),c=n(783),u=n(464),l=n(137),h=n(520),d=n(883),f=n(7
89),p=n(799),g=n(655),m=i(n(744)),v=i(n(686)),b="-ms-scroll-limit"in
document.documentElement.style&&"-ms-ime-align"in
document.documentElement.style,y={},w=function(){function e(t,n){void
0===t&&(t="[data-choice]"),void 0===n&&(n={});var i=this;void
0===n.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false
in a future release. To render HTML in Choices, you will need to set it to true.
Setting allowHTML will suppress this
message."),this.config=o.default.all([f.DEFAULT_CONFIG,e.defaults.options,n],
{arrayMerge:function(e,t){return r([],t,!0)}});var s=(0,p.diff)
(this.config,f.DEFAULT_CONFIG);s.length&&console.warn("Unknown config option(s)
passed",s.join(", "));var a="string"==typeof t?document.querySelector(t):t;if(!(a
instanceof HTMLInputElement||a instanceof HTMLSelectElement))throw
TypeError("Expected one of the following types text|select-one|select-
multiple");if(this._isTextElement=a.type===d.TEXT_TYPE,this._isSelectOneElement=a.t
ype===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===d.SELECT_MULTIPLE_TY
PE,this._isSelectElement=this._isSelectOneElement||
this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleEleme
nt||this.config.searchEnabled,
["auto","always"].includes("".concat(this.config.renderSelectedChoices))||
(this.config.renderSelectedChoices="auto"),n.addItemFilter&&"function"!=typeof
n.addItemFilter){var c=n.addItemFilter instanceof RegExp?n.addItemFilter:new
RegExp(n.addItemFilter);this.config.addItemFilter=c.test.bind(c)}if(this._isTextEle
ment?this.passedElement=new
h.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.d
elimiter}):this.passedElement=new
h.WrappedSelect({element:a,classNames:this.config.classNames,template:function(e)
{return i._templates.option(e)}}),this.initialised=!1,this._store=new
m.default,this._initialState=g.defaultState,this._currentState=g.defaultState,this.
_prevState=g.defaultState,this._currentValue="",this._canSearch=!!
this.config.searchEnabled,this._isScrollingOnIe=!
1,this._highlightPosition=0,this._wasTap=!
0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,p.generat
eId)
(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!
this._direction){var
u=window.getComputedStyle(this.passedElement.element).direction;u!
==window.getComputedStyle(document.documentElement).direction&&(this._direction=u)}
if(this._idNames={itemChoice:"item-
choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups
,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.ch
oices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextEle
ment){var
l=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._pre
setItems.concat(l)}if(this.passedElement.options&&this.passedElement.options.forEac
h((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!
e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||
e.hasAttribute("placeholder"),customProperties:(0,p.parseCustomProperties)
(e.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocu
s=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this.
_onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._
onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=
this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._on
MouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(thi
s),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey
.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=thi
s._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.pa
ssedElement.isActive)return this.config.silent||console.warn("Trying to initialise
Choices on element already initialised",{element:t}),void(this.initialised=!
0);this.init()}return Object.defineProperty(e,"defaults",{get:function(){return
Object.preventExtensions({get options(){return y},get templates(){return
v.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!
this.initialised)
{this._createTemplates(),this._createElements(),this._createStructure(),this._store
.subscribe(this._render),this._render(),this._addEventListeners(),(!
this.config.addItems||
this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialis
ed=!0;var e=this.config.callbackOnInit;e&&"function"==typeof
e&&e.call(this)}},e.prototype.destroy=function()
{this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.c
ontainerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectEl
ement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,t
his.initialised=!1)},e.prototype.enable=function(){return
this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDi
sabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()
),this},e.prototype.disable=function(){return this.passedElement.isDisabled||
this.passedElement.disable(),this.containerOuter.isDisabled||
(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),t
his},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return
this;var n=e.id,r=e.groupId,i=void 0===r?-1:r,o=e.value,s=void
0===o?"":o,a=e.label,c=void 0===a?"":a,l=i>=0?
this._store.getGroupById(i):null;return this._store.dispatch((0,u.highlightItem)
(n,!0)),t&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,
{id:n,value:s,label:c,groupValue:l&&l.value?
l.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return
this;var t=e.id,n=e.groupId,r=void 0===n?-1:n,i=e.value,o=void
0===i?"":i,s=e.label,a=void 0===s?"":s,c=r>=0?
this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)
(t,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,
{id:t,value:o,label:a,groupValue:c&&c.value?
c.value:null}),this},e.prototype.highlightAll=function(){var e=this;return
this._store.items.forEach((function(t){return
e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return
this._store.items.forEach((function(t){return
e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var
t=this;return this._store.activeItems.filter((function(t){return
t.value===e})).forEach((function(e){return
t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var
t=this;return this._store.activeItems.filter((function(t){return t.id!
==e})).forEach((function(e){return
t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var
t=this;return void 0===e&&(e=!
1),this._store.highlightedActiveItems.forEach((function(n)
{t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=fu
nction(e){var t=this;return this.dropdown.isActive||
requestAnimationFrame((function()
{t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!
e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(d.EVENTS.showDropdown
,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return
this.dropdown.isActive?(requestAnimationFrame((function()
{t.dropdown.hide(),t.containerOuter.close(),!
e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.
triggerEvent(d.EVENTS.hideDropdown,
{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var
t=this._store.activeItems.reduce((function(t,n){var r=e?n.value:n;return
t.push(r),t}),[]);return this._isSelectOneElement?
t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?
(e.forEach((function(e){return
t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var
t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:
[e]).forEach((function(e){return
t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,r)
{var i=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void
0===n&&(n="label"),void 0===r&&(r=!1),!this.initialised)throw new
ReferenceError("setChoices was called on a non-initialized instance of
Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used
with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value
parameter must be a name of 'value' field in passed
objects");if(r&&this.clearChoices(),"function"==typeof e){var
o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new
Promise((function(e){return requestAnimationFrame(e)})).then((function(){return
i._handleLoadingState(!0)})).then((function(){return o})).then((function(e){return
i.setChoices(e,t,n,r)})).catch((function(e){i.config.silent||
console.error(e)})).then((function(){return i._handleLoadingState(!
1)})).then((function(){return i}));if(!Array.isArray(o))throw new
TypeError(".setChoices first argument function must return either array of choices
or Promise, got: ".concat(typeof o));return this.setChoices(o,t,n,!1)}if(!
Array.isArray(e))throw new TypeError(".setChoices must be called either with array
of choices with a function resulting into Promise of array of choices");return
this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e
){if(e.choices)i._addGroup({id:e.id?
parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var
r=e;i._addChoice({value:r[t],label:r[n],isSelected:!!r.selected,isDisabled:!!
r.disabled,placeholder:!!
r.placeholder,customProperties:r.customProperties})}})),this._stopLoa
ding(),this},e.prototype.clearChoices=function(){return
this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function()
{return this._store.dispatch((0,l.clearAll)
()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return
this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!
1,this._store.dispatch((0,a.activateChoices)(!
0))),this},e.prototype._render=function(){if(!this._store.isLoading())
{this._currentState=this._store.state;var e=this._currentState.choices!
==this._prevState.choices||this._currentState.groups!==this._prevState.groups||
this._currentState.items!
==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!
==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._p
revState=this._currentState)}},e.prototype._renderChoices=function(){var
e=this,t=this._store,n=t.activeGroups,r=t.activeChoices,i=document.createDocumentFr
agment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimati
onFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!
this._isSearching){var o=r.filter((function(e){return!0===e.placeholder&&-
1===e.groupId}));o.length>=1&&(i=this._createChoicesFragment(o,i)),i=this._createGr
oupsFragment(n,r,i)}else
r.length>=1&&(i=this._createChoicesFragment(r,i));if(i.childNodes&&i.childNodes.len
gth>0){var
s=this._store.activeItems,a=this._canAddItem(s,this.input.value);if(a.response)this
.choiceList.append(i),this._highlightChoice();else{var
c=this._getTemplate("notice",a.notice);this.choiceList.append(c)}}else{var u=void
0;c=void 0,this._isSearching?(c="function"==typeof this.config.noResultsText?
this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",
c,"no-results")):(c="function"==typeof this.config.noChoicesText?
this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",
c,"no-choices")),this.choiceList.append(u)}},e.prototype._renderItems=function()
{var e=this._store.activeItems||[];this.itemList.clear();var
t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._
createGroupsFragment=function(e,t,n){var r=this;return void
0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.co
nfig.sorter),e.forEach((function(e){var i=function(e){return t.filter((function(t)
{return r._isSelectOneElement?
t.groupId===e.id:t.groupId===e.id&&("always"===r.config.renderSelectedChoices||!
t.selected)}))}(e);if(i.length>=1){var
o=r._getTemplate("choiceGroup",e);n.appendChild(o),r._createChoicesFragment(i,n,!
0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var i=this;void
0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var
o=this.config,s=o.renderSelectedChoices,a=o.searchResultLimit,c=o.renderChoiceLimit
,u=this._isSearching?p.sortByScore:this.config.sorter,l=function(e){if("auto"!==s||
i._isSelectOneElement||!e.selected){var
n=i._getTemplate("choice",e,i.config.itemSelectText);t.appendChild(n)}},h=e;"auto"!
==s||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var
d=h.reduce((function(e,t){return t.placeholder?
e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:
[],normalChoices:[]}),f=d.placeholderChoices,g=d.normalChoices;
(this.config.shouldSort||this._isSearching)&&g.sort(u);var
m=h.length,v=this._isSelectOneElement?r(r([],f,!0),g,!0):g;this._isSearching?
m=a:c&&c>0&&!n&&(m=c);for(var b=0;b<m;b+=1)v[b]&&l(v[b]);return
t},e.prototype._createItemsFragment=function(e,t){var n=this;void
0===t&&(t=document.createDocumentFragment());var
r=this.config,i=r.shouldSortItems,o=r.sorter,s=r.removeItemButton;return i&&!
this._isSelectOneElement&&e.sort(o),this._isTextElement?
this.passedElement.value=e.map((function(e){return
e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((func
tion(e){var
r=n._getTemplate("item",e,s);t.appendChild(r)})),t},e.prototype._triggerChange=func
tion(e){null!=e&&this.passedElement.triggerEvent(d.EVENTS.change,
{value:e})},e.prototype._selectPlaceholderChoice=function(e)
{this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeho
lder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=
function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var
n=t.parentNode&&t.parentNode.dataset.id,r=n&&e.find((function(e){return
e.id===parseInt(n,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this.
_isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(t
his._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,n){var
r=this;if(void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!
this._isSelectOneElement){var i=t.dataset.id;e.forEach((function(e){e.id!
==parseInt("".concat(i),10)||e.highlighted?!
n&&e.highlighted&&r.unhighlightItem(e):r.highlightItem(e)})),this.input.focus()}},e
.prototype._handleChoiceAction=function(e,t){if(e&&t){var
n=t.dataset.id,r=n&&this._store.getChoiceById(n);if(r){var i=e[0]&&e[0].keyCode?
e[0].keyCode:void
0,o=this.dropdown.isActive;r.keyCode=i,this.passedElement.triggerEvent(d.EVENTS.cho
ice,{choice:r}),r.selected||r.disabled||
this._canAddItem(e,r.value).response&&(this._addItem({value:r.value,label:r.label,c
hoiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.pl
aceholder,keyCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),o&&th
is._isSelectOneElement&&(this.hideDropdown(!
0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e)
{if(this.config.removeItems&&e){var t=e[e.length-1],n=e.some((function(e){return
e.highlighted}));this.config.editItems&&!n&&t?
(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerCh
ange(t.value)):(n||this.highlightItem(t,!1),this.removeHighlightedItems(!
0))}},e.prototype._startLoading=function(){this._store.dispatch((0,l.setIsLoading)
(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,l.setIsLoading)
(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var
t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?
(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?
t.innerHTML=this.config.loadingText:
(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(
t):this.input.placeholder=this.config.loadingText):
(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?
t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholde
rValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var
t=this._store.choices,n=this.config,r=n.searchFloor,i=n.searchChoices,o=t.some((fun
ction(e){return!e.active}));if(null!=e&&e.length>=r){var s=i?
this._searchChoices(e):0;this.passedElement.triggerEvent(d.EVENTS.search,
{value:e,resultCount:s})}else o&&(this._isSearching=!
1,this._store.dispatch((0,a.activateChoices)(!
0)))}},e.prototype._canAddItem=function(e,t){var n=!0,r="function"==typeof
this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!
this._isSelectOneElement){var i=(0,p.existsInArray)
(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!
1,r="function"==typeof this.config.maxItemText?
this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!
this.config.duplicateItemsAllowed&&i&&n&&(n=!1,r="function"==typeof
this.config.uniqueItemText?
this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this
.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!
this.config.addItemFilter(t)&&(n=!1,r="function"==typeof
this.config.customAddItemText?
this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,n
otice:r}},e.prototype._searchChoices=function(e){var t="string"==typeof e?
e.trim():e,n="string"==typeof this._currentValue?
this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n,"
"))return 0;var
i=this._store.searchableChoices,o=t,c=Object.assign(this.config.fuseOptions,
{keys:r([],this.config.searchFields,!0),includeMatches:!0}),u=new
s.default(i,c).search(o);return
this._currentValue=t,this._highlightPosition=0,this._isSearching=!
0,this._store.dispatch((0,a.filterChoices)
(u)),u.length},e.prototype._addEventListeners=function(){var
e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!
0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!
0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!
0),e.addEventListener("click",this._onClick,{passive:!
0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!
0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!
0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus"
,this._onFocus,{passive:!
0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!
0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!
0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!
0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!
0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this.
_onFormReset,{passive:!
0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function()
{var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!
0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!
0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!
0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",t
his._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMou
seOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener(
"focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this.
_onBlur)),this.input.element.removeEventListener("keyu
p",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),thi
s.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&t
his.input.element.form.removeEventListener("reset",this._onFormReset),this.input.re
moveEventListeners()},e.prototype._onKeyDown=function(e){var
t=e.keyCode,n=this._store.activeItems,r=this.input.isFocussed,i=this.dropdown.isAct
ive,o=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[^\x00-\
x1F]/.test(s),c=d.KEY_CODES.BACK_KEY,u=d.KEY_CODES.DELETE_KEY,l=d.KEY_CODES.ENTER_K
EY,h=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,p=d.KEY_CODES.UP_KEY,g=d.KEY_CODES.DOW
N_KEY,m=d.KEY_CODES.PAGE_UP_KEY,v=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElem
ent||i||!a||(this.showDropdown(),this.input.isFocussed||
(this.input.value+=e.key.toLowerCase())),t){case h:return
this._onSelectKey(e,o);case l:return this._onEnterKey(e,n,i);case f:return
this._onEscapeKey(i);case p:case m:case g:case v:return
this._onDirectionKey(e,i);case u:case c:return
this._onDeleteKey(e,n,r)}},e.prototype._onKeyUp=function(e){var
t=e.target,n=e.keyCode,r=this.input.value,i=this._store.activeItems,o=this._canAddI
tem(i,r),s=d.KEY_CODES.BACK_KEY,c=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(
o.notice&&r){var
u=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=u.outerHTML,
this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(n===s||n===c)&&t&&!
t.value,h=!
this._isTextElement&&this._isSearching,f=this._canSearch&&o.response;l&&h?
(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!
0))):f&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchE
nabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,r=e.metaKey;(n||
r)&&t&&(this._canSearch=!1,this.config.removeItems&&!
this.input.value&&this.input.element===document.activeElement&&this.highlightAll())
},e.prototype._onEnterKey=function(e,t,n){var
r=e.target,i=d.KEY_CODES.ENTER_KEY,o=r&&r.hasAttribute("data-
button");if(this._isTextElement&&r&&r.value){var
s=this.input.value;this._canAddItem(t,s).response&&(this.hideDropdown(!
0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(o&&(this._
handleButtonAction(t,r),e.preventDefault()),n){var
a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(t
[0]&&(t[0].keyCode=i),this._handleChoiceAction(t,a)),e.preventDefault()}else
this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e.prototype._on
EscapeKey=function(e){e&&(this.hideDropdown(!
0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e,t){var
n=e.keyCode,r=e.metaKey,i=d.KEY_CODES.DOWN_KEY,o=d.KEY_CODES.PAGE_UP_KEY,s=d.KEY_CO
DES.PAGE_DOWN_KEY;if(t||this._isSelectOneElement)
{this.showDropdown(),this._canSearch=!1;var a=n===i||n===s?1:-1,c="[data-choice-
selectable]",u=void 0;if(r||n===s||n===o)u=a>0?
this.dropdown.element.querySelector("".concat(c,":last-of-
type")):this.dropdown.element.querySelector(c);else{var
l=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlighted
State));u=l?(0,p.getAdjacentEl)
(l,c,a):this.dropdown.element.querySelector(c)}u&&((0,p.isScrolledIntoView)
(u,this.choiceList.element,a)||
this.choiceList.scrollToChildElement(u,a),this._highlightChoice(u)),e.preventDefaul
t()}},e.prototype._onDeleteKey=function(e,t,n){var
r=e.target;this._isSelectOneElement||r.value||!n||
(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function()
{this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||
e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===t
his.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?
this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropag
ation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t
instanceof HTMLElement){if(b&&this.choiceList.element.contains(t)){var
n=this.choiceList.element.firstElementChild,r="ltr"===this._direction?
e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft;this._isScrollingOnIe=r}if(t!
==this.input.element){var i=t.closest("[data-button],[data-item],[data-
choice]");if(i instanceof HTMLElement){var
o=e.shiftKey,s=this._store.activeItems,a=i.dataset;"button"in a?
this._handleButtonAction(s,i):"item"in a?this._handleItemAction(s,i,o):"choice"in
a&&this._handleChoiceAction(s,i)}e.preventDefault()}}},e.prototype._onMouseOver=fun
ction(e){var t=e.target;t instanceof HTMLElement&&"choice"in
t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var
t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||
this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!
this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?
document.activeElement!==this.input.element&&this.input.focus():
(this.showDropdown(),this.containerOuter.focus()):
(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerO
uter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e)
{var t,n=this,r=e.target;r&&this.containerOuter.element.contains(r)&&((t={})
[d.TEXT_TYPE]=function()
{r===n.input.element&&n.containerOuter.addFocusState()},t[d.SELECT_ONE_TYPE]=functi
on(){n.containerOuter.addFocusState(),r===n.input.element&&n.showDropdown(!
0)},t[d.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.showDropdown(!
0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]
()},e.prototype._onBlur=function(e){var
t,n=this,r=e.target;if(r&&this.containerOuter.element.contains(r)&&!
this._isScrollingOnIe){var i=this._store.activeItems.some((function(e){return
e.highlighted}));((t={})[d.TEXT_TYPE]=function()
{r===n.input.element&&(n.containerOuter.removeFocusState(),i&&n.unhighlightAll(),n.
hideDropdown(!0))},t[d.SELECT_ONE_TYPE]=function()
{n.containerOuter.removeFocusState(),(r===n.input.element||
r===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!
0)},t[d.SELECT_MULTIPLE_TYPE]=function()
{r===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!
0),i&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else
this._isScrollingOnIe=!
1,this.input.element.focus()},e.prototype._onFormReset=function()
{this._store.dispatch((0,l.resetTo)
(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void
0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-
choice-selectable]"));if(n.length){var
r=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classN
ames.highlightedState))).forEach((function(e)
{e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-
selected","false")})),r?this._highlightPosition=n.indexOf(r):
(r=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||
(r=n[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("a
ria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,
{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containe
rOuter.setActiveDescendant(r.id))}},e.prototype._addItem=function(e){var
t=e.value,n=e.label,r=void 0===n?null:n,i=e.choiceId,o=void 0===i?-
1:i,s=e.groupId,a=void 0===s?-1:s,c=e.customProperties,l=void 0===c?
{}:c,h=e.placeholder,f=void 0!==h&&h,p=e.keyCode,g=void 0===p?-
1:p,m="string"==typeof t?t.trim():t,v=this._store.items,b=r||m,y=o||-1,w=a>=0?
this._store.getGroupById(a):null,_=v?
v.length+1:1;this.config.prependValue&&(m=this.config.prependValue+m.toString()),th
is.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch
((0,u.addItem)
({value:m,label:b,id:_,choiceId:y,groupId:a,customProperties:l,placeholder:f,keyCod
e:g})),this._isSelectOneElement&&this.removeActiveItems(_),this.passedElement.trigg
erEvent(d.EVENTS.addItem,
{id:_,value:m,label:b,customProperties:l,groupValue:w&&w.value?
w.value:null,keyCode:g})},e.prototype._removeItem=function(e){var
t=e.id,n=e.value,r=e.label,i=e.customProperties,o=e.choiceId,s=e.groupId,a=s&&s>=0?
this._store.getGroupById(s):null;t&&o&&(this._store.dispatch((0,u.removeItem)
(t,o)),this.passedElement.triggerEvent(d.EVENTS.removeItem,
{id:t,value:n,label:r,customProperties:i,groupValue:a&&a.value?
a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,r=void
0===n?null:n,i=e.isSelected,o=void 0!==i&&i,s=e.isDisabled,c=void 0!
==s&&s,u=e.groupId,l=void 0===u?-1:u,h=e.customProperties,d=void 0===h?
{}:h,f=e.placeholder,p=void 0!==f&&f,g=e.keyCode,m=void 0===g?-1:g;if(null!=t){var
v=this._store.choices,b=r||t,y=v?
v.length+1:1,w="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").con
cat(y);this._store.dispatch((0,a.addChoice)
({id:y,groupId:l,elementId:w,value:t,label:b,disabled:c,customProperties:d,placehol
der:p,keyCode:m})),o&&this._addItem({value:t,label:b,choiceId:y,customProperties:d,
placeholder:p,keyCode:m})}},e.prototype._addGroup=function(e){var
t=this,n=e.group,r=e.id,i=e.valueKey,o=void 0===i?"value":i,s=e.labelKey,a=void
0===s?"label":s,u=(0,p.isType)("Object",n)?
n.choices:Array.from(n.getElementsByTagName("OPTION")),l=r||Math.floor((new
Date).valueOf()*Math.random()),h=!!n.disabled&&n.disabled;u?
(this._store.dispatch((0,c.addGroup)({value:n.label,id:l,active:!
0,disabled:h})),u.forEach((function(e){var n=e.disabled||
e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[o],label:(0,p.isType)
("Object",e)?
e[a]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:l,customProperties:e.cu
stomProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,c.addGroup)
({value:n.label,id:n.id,active:!
1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var
t,n=[],i=1;i<arguments.length;i++)n[i-
1]=arguments[i];return(t=this._templates[e]).call.apply(t,r([this,this.config],n,!
1))},e.prototype._createTemplates=function(){var
e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof
e&&(t=e.call(this,p.strToEl)),this._templates=(0,o.default)
(v.default,t)},e.prototype._createElements=function(){this.containerOuter=new
h.Container({element:this._getTemplate("containerOuter",this._direction,this._isSel
ectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.el
ement.type,this.config.labelId),classNames:this.config.classNames,type:this.passedE
lement.element.type,position:this.config.position}),this.containerInner=new
h.Container({element:this._getTemplate("containerInner"),classNames:this.config.cla
ssNames,type:this.passedElement.element.type,position:this.config.position}),this.i
nput=new
h.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.
config.classNames,type:this.passedElement.element.type,preventPaste:!
this.config.paste}),this.choiceList=new
h.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.ite
mList=new
h.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropd
own=new
h.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames
,type:this.passedElement.element.type})},e.prototype._createStructure=function()
{this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),
this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?
this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValu
e&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.conta
inerOuter.element.appendChild(this.containerInner.element),this.containerOuter.elem
ent.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this
.itemList.element),this._isTextElement||
this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement
?
this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,th
is.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.
element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!
1,this._startLoading(),this._presetGroups.length?
this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._pres
etChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this.
_presetItems)},e.prototype._addPredefinedGroups=function(e){var
t=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentN
ode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected
,isDisabled:n.disabled,placeholder:!0}),e.forEach((function(e){return
t._addGroup({group:e,id:e.id||
null})}))},e.prototype._addPredefinedChoices=function(e){var
t=this;this.config.shouldSort&&e.sort(this.config.sorter);var n=e.some((function(e)
{return e.selected})),r=e.findIndex((function(e){return void 0===e.disabled||!
e.disabled}));e.forEach((function(e,i){var o=e.value,s=void
0===o?"":o,a=e.label,c=e.customProperties,u=e.placeholder;if(t._isSelectElement)if(
e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!
t._isSelectOneElement||n||i!==r)||
e.selected,h=e.disabled;t._addChoice({value:s,label:a,isSelected:!!l,isDisabled:!!
h,placeholder:!!u,customProperties:c})}else
t._addChoice({value:s,label:a,isSelected:!!e.selected,isDisabled:!!
e.disabled,placeholder:!!
e.placeholder,customProperties:c})}))},e.prototype._addPredefinedItems=function(e)
{var t=this;e.forEach((function(e){"object"==typeof
e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:
e.customProperties,placeholder:e.placeholder}),"string"==typeof
e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;
({object:function(){e.value&&(t._isTextElement?
t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProp
erties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSele
cted:!0,isDisabled:!
1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function
(){t._isTextElement?
t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!
1})}})[(0,p.getType)(e).toLowerCase()]
()},e.prototype._findAndSelectChoiceByValue=function(e){var
t=this,n=this._store.choices.find((function(n){return
t.config.valueComparer(n.value,e)}));n&&!
n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.grou
pId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode
})},e.prototype._generatePlaceholderValue=function()
{if(this._isSelectElement&&this.passedElement.placeholderOption){var
e=this.passedElement.placeholderOption;return e?e.text:null}var
t=this.config,n=t.placeholder,r=t.placeholderValue,i=this.passedElement.element.dat
aset;if(n){if(r)return r;if(i.placeholder)return i.placeholder}return null},e}
();t.default=w},613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!
0});var r=n(799),i=n(883),o=function(){function e(e){var
t=e.element,n=e.type,r=e.classNames,i=e.position;this.element=t,this.classNames=r,t
his.type=n,this.position=i,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!
1,this.isDisabled=!1,this.isLoading=!
1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}retur
n e.prototype.addEventListeners=function()
{this.element.addEventListener("focus",this._onFocus),this.element.addEventListener
("blur",this._onBlur)},e.prototype.removeEventListeners=function()
{this.element.removeEventListener("focus",this._onFocus),this.element.removeEventLi
stener("blur",this._onBlur)},e.prototype.shouldFlip=function(e){if("number"!=typeof
e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height:
".concat(e+1,"px)")).matches:"top"===this.position&&(t=!
0),t},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-
activedescendant",e)},e.prototype.removeActiveDescendant=function()
{this.element.removeAttribute("aria-
activedescendant")},e.prototype.open=function(e)
{this.element.classList.add(this.classNames.openState),this.element.setAttribute("a
ria-expanded","true"),this.isOpen=!
0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),thi
s.isFlipped=!0)},e.prototype.close=function()
{this.element.classList.remove(this.classNames.openState),this.element.setAttribute
("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!
1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this
.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||
this.element.focus()},e.prototype.addFocusState=function()
{this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusSta
te=function()
{this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=func
tion()
{this.element.classList.remove(this.classNames.disabledState),this.element.removeAt
tribute("aria-
disabled"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0")
,this.isDisabled=!1},e.prototype.disable=function()
{this.element.classList.add(this.classNames.disabledState),this.element.setAttribut
e("aria-
disabled","true"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabinde
x","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,r.wrap)
(e,this.element)},e.prototype.unwrap=function(e)
{this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),thi
s.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=functi
on()
{this.element.classList.add(this.classNames.loadingState),this.element.setAttribute
("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function()
{this.element.classList.remove(this.classNames.loadingState),this.element.removeAtt
ribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function()
{this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}
();t.default=o},217:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0});var n=function(){function e(e){var
t=e.element,n=e.type,r=e.classNames;this.element=t,this.classNames=r,this.type=n,th
is.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",
{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!
1,configurable:!0}),e.prototype.getChild=function(e){return
this.element.querySelector(e)},e.prototype.show=function(){return
this.element.classList.add(this.classNames.activeState),this.element.setAttribute("
aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return
this.element.classList.remove(this.classNames.activeState),this.element.setAttribut
e("aria-expanded","false"),this.isActive=!1,this},e}
();t.default=n},520:function(e,t,n){var r=this&&this.__importDefault||function(e)
{return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",
{value:!
0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var
i=r(n(217));t.Dropdown=i.default;var o=r(n(613));t.Container=o.default;var
s=r(n(11));t.Input=s.default;var a=r(n(624));t.List=a.default;var
c=r(n(541));t.WrappedInput=c.default;var
u=r(n(982));t.WrappedSelect=u.default},11:function(e,t,n)
{Object.defineProperty(t,"__esModule",{value:!0});var
r=n(799),i=n(883),o=function(){function e(e){var
t=e.element,n=e.type,r=e.classNames,i=e.preventPaste;this.element=t,this.type=n,thi
s.classNames=r,this.preventPaste=i,this.isFocussed=this.element.isEqualNode(documen
t.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),
this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this.
_onBlur=this._onBlur.bind(this)}return
Object.defineProperty(e.prototype,"placeholder",{set:function(e)
{this.element.placeholder=e},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,r.sanitise)
(this.element.value)},set:function(e){this.element.value=e},enumerable:!
1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function()
{return this.element.value},enumerable:!1,configurable:!
0}),e.prototype.addEventListeners=function(){this.element.addEventListener("past
e",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!
0}),this.element.addEventListener("focus",this._onFocus,{passive:!
0}),this.element.addEventListener("blur",this._onBlur,{passive:!
0})},e.prototype.removeEventListeners=function()
{this.element.removeEventListener("input",this._onInput),this.element.removeEventLi
stener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocu
s),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=functi
on(){this.element.removeAttribute("disabled"),this.isDisabled=!
1},e.prototype.disable=function()
{this.element.setAttribute("disabled",""),this.isDisabled=!
0},e.prototype.focus=function(){this.isFocussed||
this.element.focus()},e.prototype.blur=function()
{this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void
0===e&&(e=!
0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype
.setWidth=function(){var
e=this.element,t=e.style,n=e.value,r=e.placeholder;t.minWidth="".concat(r.length+1,
"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(
e){this.element.setAttribute("aria-
activedescendant",e)},e.prototype.removeActiveDescendant=function()
{this.element.removeAttribute("aria-
activedescendant")},e.prototype._onInput=function(){this.type!
==i.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e)
{this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function()
{this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}
();t.default=o},624:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!
0});var r=n(883),i=function(){function e(e){var
t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.e
lement.offsetHeight}return e.prototype.clear=function()
{this.element.innerHTML=""},e.prototype.append=function(e)
{this.element.appendChild(e)},e.prototype.getChild=function(e){return
this.element.querySelector(e)},e.prototype.hasChildren=function(){return
this.element.hasChildNodes()},e.prototype.scrollToTop=function()
{this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var
n=this;if(e){var
r=this.element.offsetHeight,i=this.element.scrollTop+r,o=e.offsetHeight,s=e.offsetT
op+o,a=t>0?this.element.scrollTop+s-i:e.offsetTop;requestAnimationFrame((function()
{n._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,n){var
r=(n-e)/t,i=r>1?
r:1;this.element.scrollTop=e+i},e.prototype._scrollUp=function(e,t,n){var
r=(e-n)/t,i=r>1?r:1;this.element.scrollTop=e-
i},e.prototype._animateScroll=function(e,t){var
n=this,i=r.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;t>0?
(this._scrollDown(o,i,e),o<e&&(s=!0)):(this._scrollUp(o,i,e),o>e&&(s=!
0)),s&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}
();t.default=i},730:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!
0});var r=n(799),i=function(){function e(e){var
t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof
HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid
element passed");this.isDisabled=!1}return
Object.defineProperty(e.prototype,"isActive",{get:function()
{return"active"===this.element.dataset.choice},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"dir",{get:function(){return
this.element.dir},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"value",{get:function(){return
this.element.value},set:function(e){this.element.value=e},enumerable:!
1,configurable:!0}),e.prototype.conceal=function()
{this.element.classList.add(this.classNames.input),this.element.hidden=!
0,this.element.tabIndex=-1;var
e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-
orig-style",e),this.element.setAttribute("data-
choice","active")},e.prototype.reveal=function()
{this.element.classList.remove(this.classNames.input),this.element.hidden=!
1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-
choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-
style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style")
,this.element.removeAttribute("data-
choice"),this.element.value=this.element.value},e.prototype.enable=function()
{this.element.removeAttribute("disabled"),this.element.disabled=!
1,this.isDisabled=!1},e.prototype.disable=function()
{this.element.setAttribute("disabled",""),this.element.disabled=!
0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,r.dispatchEvent)
(this.element,e,t)},e}();t.default=i},541:function(e,t,n){var
r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var
n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t)
{if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value
"+String(t)+" is not a constructor or null");function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return
e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var
s=function(e){function t(t){var
n=t.element,r=t.classNames,i=t.delimiter,o=e.call(this,{element:n,classNames:r})||
this;return o.delimiter=i,o}return
i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return
this.element.value},set:function(e)
{this.element.setAttribute("value",e),this.element.value=e},enumerable:!
1,configurable:!0}),t}(o(n(730)).default);t.default=s},982:function(e,t,n){var
r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var
n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t)
{if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value
"+String(t)+" is not a constructor or null");function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return
e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var
s=function(e){function t(t){var
n=t.element,r=t.classNames,i=t.template,o=e.call(this,{element:n,classNames:r})||
this;return o.template=i,o}return
i(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return
this.element.querySelector('option[value=""]')||
this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!
0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return
Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!
1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function()
{return Array.from(this.element.options)},set:function(e){var
t=this,n=document.createDocumentFragment();e.forEach((function(e){return
r=e,i=t.template(r),void n.appendChild(i);var
r,i})),this.appendDocFragment(n)},enumerable:!1,configurable:!
0}),t.prototype.appendDocFragment=function(e)
{this.element.innerHTML="",this.element.appendChild(e)},t}
(o(n(730)).default);t.default=s},883:function(e,t)
{Object.defineProperty(t,"__esModule",{value:!
0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CO
DES=t.ACTION_TYPES=t.EVENTS=void
0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change"
,choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highligh
tItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighligh
tItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACT
IVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP
",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLE
AR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES
={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,P
AGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-
one",t.SELECT_MULTIPLE_TYPE="select-
multiple",t.SCROLLING_SPEED=4},789:function(e,t,n)
{Object.defineProperty(t,"__esModule",{value:!
0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var
r=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__in
ner",input:"choices__input",inputCloned:"choices__input--
cloned",list:"choices__list",listItems:"choices__list--
multiple",listSingle:"choices__list--single",listDropdown:"choices__list--
dropdown",item:"choices__item",itemSelectable:"choices__item--
selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--
choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"cho
ices__heading",button:"choices__button",activeState:"is-active",focusState:"is-
focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-
highlighted",selectedState:"is-selected",flippedState:"is-
flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-
choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-
1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!
1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!
0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:
["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!
0,shouldSortItems:!1,sorter:r.sortByAlpha,placeholder:!
0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:n
ull,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results
found",noChoicesText:"No choices to choose from",itemSelectText:"Press to
select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only
values matching specific conditions can be added",addItemText:function(e)
{return'Press
Enter to add <b>"'.concat((0,r.sanitise)(e),'"</b>')},maxItemText:function(e)
{return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return
e===t},fuseOptions:{includeScore:!
0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAU
LT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},978:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},948:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},359:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},285:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},533:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},187:function(e,t,n){var r=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n
in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||
r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!
0}),i(n(18),t),i(n(978),t),i(n(948),t),i(n(359),t),i(n(285),t),i(n(533),t),i(n(287)
,t),i(n(132),t),i(n(837),t),i(n(598),t),i(n(369),t),i(n(37),t),i(n(47),t),i(n(923),
t),i(n(876),t)},287:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},132:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},837:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},598:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},37:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},369:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},47:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},923:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},876:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0})},799:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!
0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.
sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl
=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void
0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)
+e)},t.generateChars=function(e){return Array.from({length:e},(function()
{return(0,t.getRandomNumber)
(0,36).toString(36)})).join("")},t.generateId=function(e,n){var r=e.id||
e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)
(4);return
r=r.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(r)},t.getType=function(e)
{return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n)
{return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void
0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?
e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChi
ld(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var
r="".concat(n>0?"next":"previous","ElementSibling"),i=e[r];i;)
{if(i.matches(t))return i;i=i[r]}return i},t.isScrolledIntoView=function(e,t,n)
{return void 0===n&&(n=1),!!e&&(n>0?
t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t
.sanitise=function(e){return"string"!=typeof
e?e:e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/
g,""")},t.strToEl=(n=document.createElement("div"),function(e){var
t=e.trim();n.innerHTML=t;for(var
r=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return
r}),t.sortByAlpha=function(e,t){var n=e.value,r=e.label,i=void 0===r?
n:r,o=t.value,s=t.label,a=void 0===s?o:s;return i.localeCompare(a,[],
{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t)
{var n=e.score,r=void 0===n?0:n,i=t.score;return r-(void 0===i?
0:i)},t.dispatchEvent=function(e,t,n){void 0===n&&(n=null);var r=new CustomEvent(t,
{detail:n,bubbles:!0,cancelable:!0});return
e.dispatchEvent(r)},t.existsInArray=function(e,t,n){return void
0===n&&(n="value"),e.some((function(e){return"string"==typeof t?
e[n]===t.trim():e[n]===t}))},t.cloneObject=function(e){return
JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var
n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.filter((function(e){return
r.indexOf(e)<0}))},t.parseCustomProperties=function(e){if(void 0!==e)try{return
JSON.parse(e)}catch(t){return e}return{}}},273:function(e,t){var
n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void
0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var
i=r,o={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label|
|i.value,disabled:i.disabled||!1,selected:!1,active:!
0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!
1};return n(n([],e,!0),[o],!1);case"ADD_ITEM":var s=r;return s.choiceId>-1?
e.map((function(e){var t=e;return
t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!
0),t})):e;case"REMOVE_ITEM":var a=r;return a.choiceId&&a.choiceId>-1?
e.map((function(e){var t=e;return
t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!
1),t})):e;case"FILTER_CHOICES":var c=r;return e.map((function(e){var t=e;return
t.active=c.results.some((function(e){var n=e.item,r=e.score;return
n.id===t.id&&(t.score=r,!0)})),t}));case"ACTIVATE_CHOICES":var u=r;return
e.map((function(e){var t=e;return t.active=u.active,t}));case"CLEAR_CHOICES":return
t.defaultState;default:return e}}},871:function(e,t){var
n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void
0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var i=r;return
n(n([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!
1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,t,n){var
r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void
0;var
i=n(791),o=r(n(52)),s=r(n(871)),a=r(n(273)),c=r(n(502)),u=n(799);t.defaultState={gr
oups:[],items:[],choices:[],loading:!1};var l=(0,i.combineReducers)
({items:o.default,groups:s.default,choices:a.default,loading:c.default});t.default=
function(e,n){var r=e;if("CLEAR_ALL"===n.type)r=t.defaultState;else
if("RESET_TO"===n.type)return(0,u.cloneObject)(n.state);return
l(r,n)}},52:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||
2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!
0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void
0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var i=r;return
n(n([],e,!0),
[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:
!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!
1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!
1,t}));case"REMOVE_ITEM":return e.map((function(e){var t=e;return
t.id===r.id&&(t.active=!1),t}));case"HIGHLIGHT_ITEM":var o=r;return
e.map((function(e){var t=e;return
t.id===o.id&&(t.highlighted=o.highlighted),t}));default:return
e}}},502:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void
0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?
n.isLoading:e}},744:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n)
{if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return
e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var
o=n(791),s=i(n(655)),a=function(){function e(){this._store=(0,o.createStore)
(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__
())}return e.prototype.subscribe=function(e)
{this._store.subscribe(e)},e.prototype.dispatch=function(e)
{this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function()
{return this._store.getState()},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"items",{get:function(){return
this.state.items},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return
this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function()
{return this.items.filter((function(e){return
e.active&&e.highlighted}))},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"choices",{get:function(){return
this.state.choices},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return
this.choices.filter((function(e){return!0===e.active}))},enumerable:!
1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",
{get:function(){return this.choices.filter((function(e){return!0!
==e.disabled}))},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return
this.selectableChoices.filter((function(e){return!0!
==e.placeholder}))},enumerable:!1,configurable:!0}),Object
.defineProperty(e.prototype,"placeholderChoice",{get:function(){return
r([],this.choices,!0).reverse().find((function(e){return!
0===e.placeholder}))},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"groups",{get:function(){return
this.state.groups},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var
e=this.groups,t=this.choices;return e.filter((function(e){var n=!0===e.active&&!
1===e.disabled,r=t.some((function(e){return!0===e.active&&!1===e.disabled}));return
n&&r}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return
this.state.loading},e.prototype.getChoiceById=function(e){return
this.activeChoices.find((function(t){return
t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return
this.groups.find((function(t){return t.id===e}))},e}
();t.default=a},686:function(e,t){Object.defineProperty(t,"__esModule",{value:!
0});var n={containerOuter:function(e,t,n,r,i,o,s){var
a=e.classNames.containerOuter,c=Object.assign(document.createElement("div"),
{className:a});return
c.dataset.type=o,t&&(c.dir=t),r&&(c.tabIndex=0),n&&(c.setAttribute("role",i?"combob
ox":"listbox"),i&&c.setAttribute("aria-autocomplete","list")),c.setAttribute("aria-
haspopup","true"),c.setAttribute("aria-expanded","false"),s&&c.setAttribute("aria-
labelledby",s),c},containerInner:function(e){var
t=e.classNames.containerInner;return Object.assign(document.createElement("div"),
{className:t})},itemList:function(e,t){var
n=e.classNames,r=n.list,i=n.listSingle,o=n.listItems;return
Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(t?
i:o)})},placeholder:function(e,t){var
n,r=e.allowHTML,i=e.classNames.placeholder;return
Object.assign(document.createElement("div"),((n={className:i})
[r?"innerHTML":"innerText"]=t,n))},item:function(e,t,n){var
r,i,o=e.allowHTML,s=e.classNames,a=s.item,c=s.button,u=s.highlightedState,l=s.itemS
electable,h=s.placeholder,d=t.id,f=t.value,p=t.label,g=t.customProperties,m=t.activ
e,v=t.disabled,b=t.highlighted,y=t.placeholder,w=Object.assign(document.createEleme
nt("div"),((r={className:a})
[o?"innerHTML":"innerText"]=p,r));if(Object.assign(w.dataset,
{item:"",id:d,value:f,customProperties:g}),m&&w.setAttribute("aria-
selected","true"),v&&w.setAttribute("aria-
disabled","true"),y&&w.classList.add(h),w.classList.add(b?u:l),n)
{v&&w.classList.remove(l),w.dataset.deletable="";var _="Remove
item",E=Object.assign(document.createElement("button"),
((i={type:"button",className:c})
[o?"innerHTML":"innerText"]=_,i));E.setAttribute("aria-label","".concat(_,":
'").concat(f,"'")),E.dataset.button="",w.appendChild(E)}return
w},choiceList:function(e,t){var
n=e.classNames.list,r=Object.assign(document.createElement("div"),
{className:n});return t||r.setAttribute("aria-
multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(e
,t){var
n,r=e.allowHTML,i=e.classNames,o=i.group,s=i.groupHeading,a=i.itemDisabled,c=t.id,u
=t.value,l=t.disabled,h=Object.assign(document.createElement("div"),
{className:"".concat(o," ").concat(l?a:"")});return
h.setAttribute("role","group"),Object.assign(h.dataset,
{group:"",id:c,value:u}),l&&h.setAttribute("aria-
disabled","true"),h.appendChild(Object.assign(document.createElement("div"),
((n={className:s})[r?"innerHTML":"innerText"]=u,n))),h},choice:function(e,t,n){var
r,i=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,c=o.itemSelectable,u=o.selec
tedState,l=o.itemDisabled,h=o.placeholder,d=t.id,f=t.value,p=t.label,g=t.groupId,m=
t.elementId,v=t.disabled,b=t.selected,y=t.placeholder,w=Object.assign(document.crea
teElement("div"),((r={id:m})[i?"innerHTML":"innerText"]=p,r.className="".concat(s,"
").concat(a),r));return
b&&w.classList.add(u),y&&w.classList.add(h),w.setAttribute("role",g&&g>0?"treeitem"
:"option"),Object.assign(w.dataset,{choice:"",id:d,value:f,selectText:n}),v?
(w.classList.add(l),w.dataset.choiceDisabled="",w.setAttribute("aria-
disabled","true")):
(w.classList.add(c),w.dataset.choiceSelectable=""),w},input:function(e,t){var
n=e.classNames,r=n.input,i=n.inputCloned,o=Object.assign(document.createElement("in
put"),{type:"search",name:"search_terms",className:"".concat(r,"
").concat(i),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return
o.setAttribute("role","textbox"),o.setAttribute("aria-
autocomplete","list"),o.setAttribute("aria-label",t),o},dropdown:function(e){var
t=e.classNames,n=t.list,r=t.listDropdown,i=document.createElement("div");return
i.classList.add(n,r),i.setAttribute("aria-
expanded","false"),i},notice:function(e,t,n){var
r,i=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,c=o.noResults,u=o.noChoices;
void 0===n&&(n="");var l=[s,a];return"no-choices"===n?l.push(u):"no-
results"===n&&l.push(c),Object.assign(document.createElement("div"),((r={})
[i?"innerHTML":"innerText"]=t,r.className=l.join(" "),r))},option:function(e){var
t=e.label,n=e.value,r=e.customProperties,i=e.active,o=e.disabled,s=new Option(t,n,!
1,i);return r&&(s.dataset.customProperties="".concat(r)),s.disabled=!!
o,s}};t.default=n},996:function(e){var t=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===n}(e)}(e)},n="function"==typeof
Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!
==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var
n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function
o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?
Object.getOwnPropertySymbols(e).filter((function(t){return
e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e)
{return!1}}function a(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||
i,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var
u=Array.isArray(n);return u===Array.isArray(e)?u?
c.arrayMerge(e,n,c):function(e,t,n){var i={};return
n.isMergeableObject(e)&&o(e).forEach((function(t)
{i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!
(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||
(s(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return
a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,n)
(e[o],t[o],n):i[o]=r(t[o],n))})),i}(e,n,c):r(n,c)}a.all=function(e,t){if(!
Array.isArray(e))throw new Error("first argument should be an array");return
e.reduce((function(e,n){return a(e,n,t)}),{})};var
c=a;e.exports=c},221:function(e,t,n){function r(e){return Array.isArray?
Array.isArray(e):"[object Array]"===u(e)}n.r(t),n.d(t,{default:function(){return
G}});function i(e){return"string"==typeof e}function o(e){return"number"==typeof
e}function s(e){return"object"==typeof e}function a(e){return null!=e}function c(e)
{return!e.trim().length}function u(e){return null==e?void 0===e?"[object
Undefined]":"[object Null]":Object.prototype.toString.call(e)}const l=e=>`Missing $
{e} property in key`,h=e=>`Property 'weight' in key '${e}' must be a positive
integer`,d=Object.prototype.hasOwnProperty;class f{constructor(e)
{this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let
n=p(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._key
s.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return
this._keys}toJSON(){return JSON.stringify(this._keys)}}function p(e){let
t=null,n=null,o=null,s=1,a=null;if(i(e)||r(e))o=e,t=g(e),n=m(e);else{if(!
d.call(e,"name"))throw new Error(l("name"));const
r=e.name;if(o=r,d.call(e,"weight")&&(s=e.weight,s<=0))throw new
Error(h(r));t=g(r),n=m(r),a=e.getFn}return{path:t,id:n,weight:s,src:o,getFn:a}}func
tion g(e){return r(e)?e:e.split(".")}function m(e){return r(e)?e.join("."):e}var
v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:
(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!
1,findAllMatches:!
1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!
1,getFn:function(e,t){let n=[],c=!1;const l=(e,t,h)=>{if(a(e))if(t[h]){const
d=e[t[h]];if(!a(d))return;if(h===t.length-1&&(i(d)||o(d)||function(e){return!
0===e||!1===e||function(e){return s(e)&&null!==e}(e)&&"[object Boolean]"==u(e)}
(d)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return
e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(d));else if(r(d)){c=!0;for(let
e=0,n=d.length;e<n;e+=1)l(d[e],t,h+1)}else t.length&&l(d,t,h+1)}else
n.push(e)};return l(e,i(t)?t.split("."):t,0),c?n:n[0]},ignoreLocation:!
1,ignoreFieldNorm:!1,fieldNormWeight:1};const b=/[^ ]+/g;class
y{constructor({getFn:e=v.getFn,fieldNormWeight:t=v.fieldNormWeight}={})
{this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const
i=t.match(b).length;if(n.has(i))return n.get(i);const
o=1/Math.pow(i,.5*e),s=parseFloat(Math.round(o*r)/r);return n.set(i,s),s},clear()
{n.clear()}}}(t,3),this.getFn=e,this.isCreated=!
1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[])
{this.records=e}setKeys(e=[])
{this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create()
{!this.isCreated&&this.docs.length&&(this.isCreated=!0,i(this.docs[0])?
this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this.
_addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();i(e)?
this._addString(e,t):this._addObject(e,t)}removeAt(e)
{this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-
=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return
this.records.length}_addString(e,t){if(!a(e)||c(e))return;let
n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:
{}};this.keys.forEach(((t,o)=>{let s=t.getFn?
t.getFn(e):this.getFn(e,t.path);if(a(s))if(r(s)){let e=[];const
t=[{nestedArrIndex:-1,value:s}];for(;t.length;)
{const{nestedArrIndex:n,value:o}=t.pop();if(a(o))if(i(o)&&!c(o)){let
t={v:o,i:n,n:this.norm.get(o)};e.push(t)}else
r(o)&&o.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[o]=e}else
if(i(s)&&!c(s)){let e={v:s,n:this.norm.get(s)};n.$
[o]=e}})),this.records.push(n)}toJSON()
{return{keys:this.keys,records:this.records}}}function w(e,t,
{getFn:n=v.getFn,fieldNormWeight:r=v.fieldNormWeight}={}){const i=new
y({getFn:n,fieldNormWeight:r});return
i.setKeys(e.map(p)),i.setSources(t),i.create(),i}function _(e,
{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=v.distance,ignoreLo
cation:o=v.ignoreLocation}={}){const s=t/e.length;if(o)return s;const a=Math.abs(r-
n);return i?s+a/i:a?1:s}const E=32;function S(e){let t={};for(let
n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class
T{constructor(e,
{location:t=v.location,threshold:n=v.threshold,distance:r=v.distance,includeMatches
:i=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:s=v.minMat
chCharLength,isCaseSensitive:a=v.isCaseSensitive,ignoreLocation:c=v.ignoreLocation}
={})
{if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches
:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?
e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const
u=(e,t)=>{this.chunks.push({pattern:e,alphabet:S(e),startIndex:t})},l=this.pattern.
length;if(l>E){let e=0;const t=l%E,n=l-
t;for(;e<n;)u(this.pattern.substr(e,E),e),e+=E;if(t){const e=l-
E;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e)
{const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||
(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return
n&&(t.indices=[[0,e.length-
1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:
a,ignoreLocation:c}=this.options;let u=[],l=0,h=!
1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:f})=>{const{isMatch:p,scor
e:g,indices:m}=function(e,t,n,
{location:r=v.location,distance:i=v.distance,threshold:o=v.threshold,findAllMatches
:s=v.findAllMatches,minMatchCharLength:a=v.minMatchCharLength,includeMatches:c=v.in
cludeMatches,ignoreLocation:u=v.ignoreLocation}={}){if(t.length>E)throw new
Error("Pattern length exceeds max of 32.");const
l=t.length,h=e.length,d=Math.max(0,Math.min(r,h));let f=o,p=d;const g=a>1||c,m=g?
Array(h):[];let b;for(;(b=e.indexOf(t,p))>-1;){let e=_(t,
{currentLocation:b,expectedLocation:d,distance:i,ignoreLocation:u});if(f=Math.min(e
,f),p=b+l,g){let e=0;for(;e<l;)m[b+e]=1,e+=1}}p=-1;let y=[],w=1,S=l+h;const T=1<<l-
1;for(let r=0;r<l;r+=1){let o=0,a=S;for(;o<a;)_(t,
{errors:r,currentLocation:d+a,expectedLocation:d,distance:i,ignoreLocation:u})<=f?
o=a:S=a,a=Math.floor((S-o)/2+o);S=a;let c=Math.max(1,d-a+1),v=s?h:Math.min(d+a,h)
+l,b=Array(v+2);b[v+1]=(1<<r)-1;for(let o=v;o>=c;o-=1){let s=o-
1,a=n[e.charAt(s)];if(g&&(m[s]=+!!a),b[o]=(b[o+1]<<1|1)&a,r&&(b[o]|=(y[o+1]|
y[o])<<1|1|y[o+1]),b[o]&T&&(w=_(t,
{errors:r,currentLocation:s,expectedLocation:d,distance:i,ignoreLocation:u}),w<=f))
{if(f=w,p=s,p<=d)break;c=Math.max(1,2*d-p)}}if(_(t,
{errors:r+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:u})>f)br
eak;y=b}const A={isMatch:p>=0,score:Math.max(.001,w)};if(g){const
e=function(e=[],t=v.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let
s=e.length;o<s;o+=1){let s=e[o];s&&-1===r?r=o:s||-1===r||(i=o-1,i-
r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}
(m,a);e.length?c&&(A.indices=e):A.isMatch=!1}return A}(e,t,d,
{location:r+f,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,includeM
atches:n,ignoreLocation:c});p&&(h=!0),l+=g,p&&m&&(u=[...u,...m])}));let
d={isMatch:h,score:h?l/this.chunks.length:1};return h&&n&&(d.indices=u),d}}class
A{constructor(e){this.pattern=e}static isMultiMatch(e){return
C(e,this.multiRegex)}static isSingleMatch(e){return C(e,this.singleRegex)}search()
{}}function C(e,t){const n=e.match(t);return n?n[1]:null}class O extends
A{constructor(e,
{location:t=v.location,threshold:n=v.threshold,distance:r=v.distance,includeMatches
:i=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:s=v.minMat
chCharLength,isCaseSensitive:a=v.isCaseSensitive,ignoreLocation:c=v.ignoreLocation}
={}){super(e),this._bitapSearch=new T(e,
{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLe
ngth:s,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static
get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e)
{return this._bitapSearch.searchIn(e)}}class x extends A{constructor(e)
{super(e)}static get type(){return"include"}static get
multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e)
{let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-
1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?
0:1,indices:r}}}const I=[class extends A{constructor(e){super(e)}static get type()
{return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex()
{return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?
0:1,indices:[0,this.pattern.length-1]}}},x,class extends A{constructor(e)
{super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\
^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const
t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:
[0,this.pattern.length-1]}}},class extends A{constructor(e){super(e)}static get
type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\
^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!
e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-
1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-
suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex()
{return/^!(.*)\$$/}search(e){const t=!
e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-
1]}}},class extends A{constructor(e){super(e)}static get type(){return"suffix-
exact"}static get multiRegex(){return/^"(.*)"\$$/}static get
singleRegex(){return/^(.*)\$$/}search(e){const
t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-
this.pattern.length,e.length-1]}}},class extends A{constructor(e){super(e)}static
get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static
get singleRegex(){return/^!(.*)$/}search(e){const t=-
1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-
1]}}},O],P=I.length,D=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,k=new
Set([O.type,x.type]);const R=[];function M(e,t){for(let n=0,r=R.length;n<r;n+=1)
{let r=R[n];if(r.condition(e,t))return new r(e,t)}return new T(e,t)}const
N="$and",L="$path",F=e=>!(!e[N]&&!e.
$or),j=e=>({[N]:Object.keys(e).map((t=>({[t]:e[t]})))});function B(e,t,{auto:n=!
0}={}){const o=e=>{let a=Object.keys(e);const c=(e=>!!e[L])(e);if(!c&&a.length>1&&!
F(e))return o(j(e));if((e=>!r(e)&&s(e)&&!F(e))(e)){const r=c?e[L]:a[0],o=c?e.
$val:e[r];if(!i(o))throw new Error((e=>`Invalid value for key ${e}`)(r));const
s={keyId:m(r),pattern:o};return n&&(s.searcher=M(o,t)),s}let u={children:
[],operator:a[0]};return a.forEach((t=>{const
n=e[t];r(n)&&n.forEach((e=>{u.children.push(o(e))}))})),u};return F(e)||
(e=j(e)),o(e)}function U(e,t){const
n=e.matches;t.matches=[],a(n)&&n.forEach((e=>{if(!a(e.indices)||!
e.indices.length)return;const{indices:n,value:r}=e;let
i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-
1&&(i.refIndex=e.idx),t.matches.push(i)}))}function H(e,t){t.score=e.score}class
G{constructor(e,t={},n)
{this.options={...v,...t},this.options.useExtendedSearch,this._keyStore=new
f(this.options.keys),this.setCollection(e,n)}setCollection(e,t)
{if(this._docs=e,t&&!(t instanceof y))throw new Error("Incorrect 'index'
type");this._myIndex=t||w(this.options.keys,this._docs,
{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e)
{a(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const
t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const
i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e)
{this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return
this._myIndex}search(e,{limit:t=-1}={})
{const{includeMatches:n,includeScore:r,shouldSort:s,sortFn:a,ignoreFieldNorm:c}=thi
s.options;let u=i(e)?i(this._docs[0])?
this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return
function(e,{ignoreFieldNorm:t=v.ignoreFieldNorm}){e.forEach((e=>{let
n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?
e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?
1:r))})),e.score=n}))}(u,{ignoreFieldNorm:c}),s&&u.sort(a),o(t)&&t>-
1&&(u=u.slice(0,t)),function(e,t,
{includeMatches:n=v.includeMatches,includeScore:r=v.includeScore}={}){const
i=[];return
n&&i.push(U),r&&i.push(H),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return
i.length&&i.forEach((t=>{t(e,r)})),r}))}(u,this._docs,
{includeMatches:n,includeScore:r})}_searchStringList(e){const t=M(e,this.options),
{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!
a(e))return;const{isMatch:o,score:s,indices:c}=t.searchIn(e);o&&r.push({item:e,idx:
n,matches:[{score:s,value:e,norm:i,indices:c}]})})),r}_searchLogical(e){const
t=B(e,this.options),n=(e,t,r)=>{if(!e.children)
{const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:t
his._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?
[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,s=e.children.length;o<s;o+=1)
{const s=e.children[o],a=n(s,t,r);if(a.length)i.push(...a);else
if(e.operator===N)return[]}return i},r=this._myIndex.records,i={},o=[];return
r.forEach((({$:e,i:r})=>{if(a(e)){let s=n(t,e,r);s.length&&(i[r]||
(i[r]={idx:r,item:e,matches:
[]},o.push(i[r])),s.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_sea
rchObjectList(e){const t=M(e,this.options),
{keys:n,records:r}=this._myIndex,i=[];return
r.forEach((({$:e,i:r})=>{if(!a(e))return;let
o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))
})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,sea
rcher:n}){if(!a(t))return[];let i=[];if(r(t))t.forEach((({v:t,i:r,n:o})=>{if(!
a(t))return;const{isMatch:s,score:c,indices:u}=n.searchIn(t);s&&i.push({score:c,key
:e,value:t,idx:r,norm:o,indices:u})}));else{const{v:r,n:o}=t,
{isMatch:s,score:a,indices:c}=n.searchIn(r);s&&i.push({score:a,key:e,value:r,norm:o
,indices:c})}return i}}G.version="6.6.2",G.createIndex=w,G.parseIndex=function(e,
{getFn:t=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={})
{const{keys:r,records:i}=e,o=new y({getFn:t,fieldNormWeight:n});return
o.setKeys(r),o.setIndexRecords(i),o},G.config=v,G.parseQuery=B,function(...e)
{R.push(...e)}(class{constructor(e,
{isCaseSensitive:t=v.isCaseSensitive,includeMatches:n=v.includeMatches,minMatchChar
Length:r=v.minMatchCharLength,ignoreLocation:i=v.ignoreLocation,findAllMatches:o=v.
findAllMatches,location:s=v.location,threshold:a=v.threshold,distance:c=v.distance}
={})
{this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLengt
h:r,findAllMatches:o,ignoreLocation:i,location:s,threshold:a,distance:c},this.patte
rn=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let
n=e.trim().split(D).filter((e=>e&&!!e.trim())),r=[];for(let
e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,s=-1;for(;!o&&++s<P;){const
e=I[s];let n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(s=-1;++s<P;)
{const e=I[s];let n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return
r}))}(this.pattern,this.options)}static condition(e,t){return
t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!
1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?
e:e.toLowerCase();let i=0,o=[],s=0;for(let r=0,a=t.length;r<a;r+=1){const
a=t[r];o.length=0,i=0;for(let t=0,r=a.length;t<r;t+=1){const r=a[t],
{isMatch:c,indices:u,score:l}=r.search(e);if(!c)
{s=0,i=0,o.length=0;break}if(i+=1,s+=l,n){const e=r.constructor.type;k.has(e)?
o=[...o,...u]:o.push(u)}}if(i){let e={isMatch:!0,score:s/i};return
n&&(e.indices=o),e}}return{isMatch:!1,score:1}}})},791:function(e,t,n){function
r(e){return 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},r(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!
==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var
i=n.call(e,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive
must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?
t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!
0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var
n=Object.keys(e);if(Object.getOwnPropertySymbols){var
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return
n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?
arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t)
{i(e,t,n[t])})):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach
((function(t)
{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return
e}function a(e){return"Minified Redux error #"+e+"; visit
https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified
dev environment for full errors. "}n.r(t),n.d(t,
{__DO_NOT_USE__ActionTypes:function(){return l},applyMiddleware:function(){return
v},bindActionCreators:function(){return g},combineReducers:function(){return
f},compose:function(){return m},createStore:function(){return
h},legacy_createStore:function(){return d}});var c="function"==typeof
Symbol&&Symbol.observable||"@@observable",u=function(){return
Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/
INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function()
{return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function h(e,t,n){var
r;if("function"==typeof t&&"function"==typeof n||"function"==typeof
n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof
t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new
Error(a(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(a(2));var
i=e,o=t,s=[],u=s,d=!1;function f(){u===s&&(u=s.slice())}function p(){if(d)throw new
Error(a(3));return o}function g(e){if("function"!=typeof e)throw new
Error(a(4));if(d)throw new Error(a(5));var t=!0;return f(),u.push(e),function()
{if(t){if(d)throw new Error(a(6));t=!1,f();var
n=u.indexOf(e);u.splice(n,1),s=null}}}function m(e){if(!function(e){if("object"!
=typeof e||null===e)return!1;for(var t=e;null!
==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return
Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new
Error(a(8));if(d)throw new Error(a(9));try{d=!0,o=i(o,e)}finally{d=!1}for(var
t=s=u,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:l.INIT}),
(r={dispatch:m,subscribe:g,getState:p,replaceReducer:function(e){if("function"!
=typeof e)throw new Error(a(10));i=e,m({type:l.REPLACE})}})[c]=function(){var
e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new
Error(a(11));function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})
[c]=function(){return this},e},r}var d=h;function f(e){for(var
t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof
e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e)
{Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,
{type:l.INIT}))throw new Error(a(12));if(void 0===n(void 0,
{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){o=e}return
function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++)
{var u=s[c],l=n[u],h=e[u],d=l(h,t);if(void 0===d)throw t&&t.type,new
Error(a(14));i[u]=d,r=r||d!==h}return(r=r||s.length!==Object.keys(e).length)?
i:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function
g(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw
new Error(a(16));var n={};for(var r in e){var i=e[r];"function"==typeof
i&&(n[r]=p(i,t))}return n}function m(){for(var e=arguments.length,t=new
Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return
e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return
e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new
Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var
n=e.apply(void 0,arguments),r=function(){throw new
Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void
0,arguments)}},o=t.map((function(e){return e(i)}));return r=m.apply(void 0,o)
(n.dispatch),s(s({},n),{},{dispatch:r})}}}}},t={};function n(r){var i=t[r];if(void
0!==i)return i.exports;var o=t[r]={exports:{}};return
e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?
function(){return e.default}:function(){return e};return n.d(t,
{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!
n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t)
{return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!
=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,
{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var
r,i,o={};return
r=n(373),i=n.n(r),n(187),n(883),n(789),n(686),o.default=i(),o.default}
()},e.exports=t()},96279:(e,t,n)=>{var r="undefined"!=typeof
globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!
==n.g&&n.g,i=function(){function e(){this.fetch=!
1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!
function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!
==n&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in
n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}
(),s="FormData"in n,a="ArrayBuffer"in n;if(a)var c=["[object Int8Array]","[object
Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object
Uint16Array]","[object Int32Array]","[object Uint32Array]","[object
Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return
e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!
=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new
TypeError('Invalid character in header field name: "'+e+'"');return
e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function
d(e){var t={next:function(){var t=e.shift();return{done:void
0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function
f(e){this.map={},e instanceof f?e.forEach((function(e,t)
{this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e)
{this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(
t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return
Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return
new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function()
{n(e.error)}}))}function m(e){var t=new FileReader,n=g(t);return
t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new
Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b()
{return this.bodyUsed=!1,this._initBody=function(e){var
t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?
this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?
this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?
this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?
this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?
(this._bodyArrayBuf
fer=v(e.buffer),this._bodyInit=new
Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?
this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this.
_bodyText="",this.headers.get("content-type")||("string"==typeof e?
this.headers.set("content-type","text/plain;charset=UTF-
8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-
type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.head
ers.set("content-type","application/x-www-form-urlencoded;charset=UTF-
8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return
Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new
Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not
read FormData body as blob");return Promise.resolve(new
Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?
p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?
Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset
,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolv
e(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var
e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new
FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return
Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new
Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return
n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could
not read FormData body as text");return
Promise.resolve(this._bodyText)},s&&(this.formData=function(){return
this.text().then(_)}),this.json=function(){return
this.text().then(JSON.parse)},this}f.prototype.append=function(e,t)
{e=l(e),t=h(t);var n=this.map[e];this.map[e]=n?n+",
"+t:t},f.prototype.delete=function(e){delete
this.map[l(e)]},f.prototype.get=function(e){return e=l(e),this.has(e)?
this.map[e]:null},f.prototype.has=function(e){return
this.map.hasOwnProperty(l(e))},f.prototype.set=function(e,t)
{this.map[l(e)]=h(t)},f.prototype.forEach=function(e,t){for(var n in
this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys
=function(){var e=[];return this.forEach((function(t,n)
{e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return
this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var
e=[];return this.forEach((function(t,n)
{e.push([n,t])})),d(e)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var
y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this
instanceof w))throw new TypeError('Please use the "new" operator, this DOM object
constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e
instanceof w){if(e.bodyUsed)throw new TypeError("Already
read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new
f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||
null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else
this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-
origin",!t.headers&&this.headers||(this.headers=new
f(t.headers)),this.method=(r=(n=t.method||
this.method||"GET").toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||
this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,
("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not
allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!
==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache))
{var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new
Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new
Date).getTime()}}function _(e){var t=new FormData;return
e.trim().split("&").forEach((function(e){if(e){var
n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g,"
");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){if(!
(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM
object constructor cannot be called as a function.');t||
(t={}),this.type="default",this.status=void 0===t.status?
200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void
0===t.statusText?"":""+t.statusText,this.headers=new
f(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function()
{return new w(this,
{body:this._bodyInit})},b.call(w.prototype),b.call(E.prototype),E.prototype.clone=f
unction(){return new E(this._bodyInit,
{status:this.status,statusText:this.statusText,headers:new
f(this.headers),url:this.url})},E.error=function(){var e=new E(null,
{status:0,statusText:""});return e.type="error",e};var
S=[301,302,303,307,308];E.redirect=function(e,t){if(-1===S.indexOf(t))throw new
RangeError("Invalid status code");return new E(null,{status:t,headers:
{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e)
{t.DOMException=function(e,t){this.message=e,this.name=t;var
n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototy
pe),t.DOMException.prototype.constructor=t.DOMException}function T(e,r){return new
Promise((function(i,s){var c=new w(e,r);if(c.signal&&c.signal.aborted)return s(new
t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l()
{u.abort()}u.onload=function(){var
e,t,n={status:u.status,statusText:u.statusText,headers:
(e=u.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\
r").map((function(e){return 0===e.indexOf("\n")?
e.substr(1,e.length):e})).forEach((function(e){var
n=e.split(":"),r=n.shift().trim();if(r){var
i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in u?
u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?
u.response:u.responseText;setTimeout((function(){i(new
E(r,n))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network
request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new
TypeError("Network request failed"))}),0)},u.onabort=function()
{setTimeout((function(){s(new
t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e)
{try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(c.url),!
0),"include"===c.credentials?u.withCredentials=!
0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?
u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!
==c.headers.get("Content-Type").indexOf("application/octet-
stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers
instanceof f?c.headers.forEach((function(e,t)
{u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function
(e)
{u.setRequestHeader(e,h(r.headers[e]))})),c.signal&&(c.signal.addEventListener("abo
rt",l),u.onreadystatechange=function()
{4===u.readyState&&c.signal.removeEventListener("abort",l)}),u.send(void
0===c._bodyInit?null:c._bodyInit)}))}T.polyfill=!0,n.fetch||
(n.fetch=T,n.Headers=f,n.Request=w,n.Response=E),t.Headers=f,t.Request=w,t.Response
=E,t.fetch=T}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?
r:i;
(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request
,t.Response=o.Response,e.exports=t},77452:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],s=[],a=[],c=[],u=[],l=[],h=[],d=[],f=[];
!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var
n=0,r=0;for(t=0;t<256;t++){var
p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var
g=e[n],m=e[g],v=e[m],b=257*e[p]^16843008*p;s[n]=b<<24|b>>>8,a[n]=b<<16|
b>>>16,c[n]=b<<8|b>>>24,u[n]=b,b=16843009*v^65537*m^257*g^16843008*n,l[p]=b<<24|
b>>>8,h[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,f[p]=b,n?
(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var
p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!
this._nRounds||this._keyPriorReset!==this._key){for(var
e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1
),o=this._keySchedule=[],s=0;s<r;s++)s<n?o[s]=t[s]:(u=o[s-1],s%n?n>6&&s
%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|
u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[s/n|
0]<<24),o[s]=o[s-n]^u);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c
%4)var u=o[s];else u=o[s-4];a[c]=c<4||s<=4?
u:l[i[u>>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:functio
n(e,t)
{this._doCryptBlock(e,t,this._keySchedule,s,a,c,u,i)},decryptBlock:function(e,t)
{var
n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,h,d,f
,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,s,a)
{for(var
c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],h=e[t+2]^n[2],d=e[t+3]^n[3],f=4,p=1;p<c;p
++){var g=r[u>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&d]^n[f+
+],m=r[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^n[f+
+],v=r[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^n[f+
+],b=r[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^n[f+
+];u=g,l=m,h=v,d=b}g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|
a[255&d])^n[f++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^n[f+
+],v=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^n[f+
+],b=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[f+
+],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}
(),r.AES)},65466:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib.BlockCipher,n=e.algo;const
i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964
562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3
041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,310
1798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,
1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433
518,2069144605,3260701109,262044
6009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,182
2297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,285774120
4,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,208790
5683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,18
14351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236
,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,59619
6993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566
650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571
,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432
712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,145
5516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1
240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,254049503
7,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,3225484
59,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712
269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3
600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020
053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396
308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3
150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,258918924
1,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011
903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3
499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832
540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,233
2172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073
,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188
149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241
275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545
086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,45
8293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,
4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806
497,146425753,1854211946],
[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719
590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,382
6793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,129480931
8,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535
060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,23
90574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850
,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,93551689
2,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,10051
94799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613
907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223
,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,396747
8842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312
560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70
604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,
2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060
303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503
983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,39
38656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565
,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,39739247
25,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,358394
2155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,26
86675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,227119119
3,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747
414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395
535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,
3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053
890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,34
79347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,14524545
33,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,59136009
7,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,34639
18190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2
148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,173433509
7,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,38736
77099,3682840055],
[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,35673
86728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,321
3592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,
835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,17069026
6,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,30459
08486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3
996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,
1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492
359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,10
60185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3
838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,84510769
1,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106
946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,224307
6622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,14
14112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455
,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,370467
8404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3
642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,21500320
23,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,1112
62694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,364
1502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,404276851
8,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028
541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623
,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,20622
31137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3
104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,32916291
07,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,6779661
85,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233
230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,81
9756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,
3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,4488795
40,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,27266
30617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1
729034894,1080033504],
[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,257927
4686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,17
81952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,35810862
37,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676
643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581
,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,414940
9754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,26
54263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,291
8365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,390619252
5,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,35267
7332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,45714
1659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,67642
7537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,393
3900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,167902579
2,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,47191
0574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,316
5965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,293198005
9,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,8861
95818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488
651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,7918
57591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3
504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,114017772
2,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074
219,3265815641,314222801,3066103646,3808782860,282218597
,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491
691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,385
9509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2
224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677
493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,84
6861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941
,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,31242405
40,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,4241
98748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075
367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t)
{let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,s=e.sbox[0][n]+e.sbox[1][r];return
s^=e.sbox[2][i],s+=e.sbox[3][o],s}function u(e,t,n){let r,o=t,s=n;for(let t=0;t<i;+
+t)o^=e.pbox[t],s=c(e,o)^s,r=o,o=s,s=r;return
r=o,o=s,s=r,s^=e.pbox[i],o^=e.pbox[i+1],{left:o,right:s}}var
l=n.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var
e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;!function(e,t,n){for(let
t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let
r=0;for(let s=0;s<i+2;s++)e.pbox[s]=o[s]^t[r],r++,r>=n&&(r=0);let
a=0,c=0,l=0;for(let
t=0;t<i+2;t+=2)l=u(e,a,c),a=l.left,c=l.right,e.pbox[t]=a,e.pbox[t+1]=c;for(let
t=0;t<4;t++)for(let n=0;n<256;n+=2)l=u(e,a,c),a=l.left,c=l.right,e.sbox[t]
[n]=a,e.sbox[t][n+1]=c}(a,t,n)}},encryptBlock:function(e,t){var
n=u(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var
n=function(e,t,n){let r,o=t,s=n;for(let t=i+1;t>1;--
t)o^=e.pbox[t],s=c(e,o)^s,r=o,o=s,s=r;return r=o,o=s,s=r,s^=e.pbox[1],o^=e.pbox[0],
{left:o,right:s}}
(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blow
fish=t._createHelper(l)}(),r.Blowfish)},9951:function(e,t,n){var
r,i,o,s,a,c,u,l,h,d,f,p,g,m,v,b,y,w,_;e.exports=(r=n(57359),n(96844),void(r.lib.Cip
her||
(i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc,u.Utf8,l=u.B
ase64,h=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(
e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t)
{return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n)
{this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:func
tion(){c.reset.call(this),this._doReset()},process:function(e){return
this._append(e),this._process()},finalize:function(e){return
e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XF
ORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?
_:y}return function(t){return{encrypt:function(n,r,i){return
e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}
()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!
0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:functio
n(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return
this.Decryptor.create(e,t)},init:function(e,t)
{this._cipher=e,this._iv=t}}),g=f.CBC=function(){var e=p.extend();function t(e,t,n)
{var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o+
+)e[t+o]^=r[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var
r=this._cipher,i=r.blockSize;t.call(this,e,n,i),r.encryptBlock(e,n),this._prevBlock
=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var
r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);r.decryptBlock(e,n),t.call(this,e,n,i
),this._prevBlock=o}}),e}(),m=(i.pad={}).Pkcs7={pad:function(e,t){for(var
n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var
c=a.create(o,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-
1>>>2];e.sigBytes-
=t}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:g,padding:m}),reset:function()
{var e;d.reset.call(this);var
t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?
e=r.createEncryptor:
(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?
this._mode.init(this,n&&n.words):
(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:func
tion(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var
e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?
(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!
0),t.unpad(e)),e},blockSize:4}),v=o.CipherParams=s.extend({init:function(e)
{this.mixIn(e)},toString:function(e){return(e||
this.formatter).stringify(this)}}),b=(i.format={}).OpenSSL={stringify:function(e)
{var t=e.ciphertext,n=e.salt;return(n?
a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:functio
n(e){var t,n=l.parse(e),r=n.words;return
1398893684==r[0]&&1701076831==r[1]&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBy
tes-
=16),v.create({ciphertext:n,salt:t})}},y=o.SerializableCipher=s.extend({cfg:s.exten
d({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var
i=e.createEncryptor(n,r),o=i.finalize(t),s=i.cfg;return
v.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,bloc
kSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return
r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ci
phertext)},_parse:function(e,t){return"string"==typeof e?
t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||
(r=a.random(8)),i)o=h.create({keySize:t+n,hasher:i}).compute(e,r);else var
o=h.create({keySize:t+n}).compute(e,r);var s=a.create(o.words.slice(t),4*n);return
o.sigBytes=4*t,v.create({key:o,iv:s,salt:r})}},_=o.PasswordBasedCipher=y.extend({cf
g:y.cfg.extend({kdf:w}),encrypt:function(e,t,n,r){var
i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.i
v;var o=y.encrypt.call(this,e,t,i.key,r);return
o.mixIn(i),o},decrypt:function(e,t,n,r)
{r=this.cfg.extend(r),t=this._parse(t,r.format);var
i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return
r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}}))))},57359:function(e,t,n){var
r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof
window&&window.crypto&&(r=window.crypto),"undefined"!=typeof
self&&self.crypto&&(r=self.crypto),"undefined"!=typeof
globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof
window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!
==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50633)}catch(e){}var i=function()
{if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new
Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return
r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module
could not be used to get secure random number.")},o=Object.create||function()
{function e(){}return function(t){var n;return e.prototype=t,n=new
e,e.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var
t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||
(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.
$super=this,t},create:function(){var e=this.extend();return
e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in
e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=
e.toString)},clone:function(){return
this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t)
{e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e)
{return(e||h).stringify(this)},concat:function(e){var
t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var
o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var
a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var
t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/
4)},clone:function(){var e=c.clone.call(this);return
e.words=this.words.slice(0),e},random:function(e){for(var
t=[],n=0;n<e;n+=4)t.push(i());return new
u.init(t,e)}}),l=s.enc={},h=l.Hex={stringify:function(e){for(var
t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i
%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return
r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|
=parseInt(e.substr(r,2),16)<<24-r%8*4;return new
u.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var
t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i
%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e)
{for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r
%4*8;return new u.init(n,t)}},f=l.Utf8={stringify:function(e){try{return
decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-
8 data")}},parse:function(e){return
d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=c.extend({res
et:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e)
{"string"==typeof
e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:funct
ion(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?
e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,o);if(c){for(var
h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new
u.init(n,l)},clone:function(){var e=c.clone.call(this);return
e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=p.extend({cfg:c.extend
(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function()
{p.reset.call(this),this._doReset()},update:function(e){return
this._append(e),this._process(),this},finalize:function(e){return
e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e)
{return function(t,n){return new
e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return
new g.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}
(Math),r)},8139:function(e,t,n){var
r,i,o;e.exports=(r=n(57359),o=(i=r).lib.WordArray,i.enc.Base64={stringify:function(
e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var
i=[],o=0;o<n;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-
(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a+
+)i.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;i.length
%4;)i.push(c);return i.join("")},parse:function(e){var
t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var
i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var
a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,n){for(var r=[],i=0,s=0;s<t;s+
+)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|
=a<<24-i%4*8,i++}return o.create(r,i)}
(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
="},r.enc.Base64)},49950:function(e,t,n){var
r,i,o;e.exports=(r=n(57359),o=(i=r).lib.WordArray,i.enc.Base64url={stringify:functi
on(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?
this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<r;s+=3)for(var
a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-
(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)o.push(i.charAt(a>>>6*(3-c)&63));var
u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return
o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,r=t?
this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var
s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var
c=e.indexOf(a);-1!==c&&(n=c)}return function(e,t,n){for(var r=[],i=0,s=0;s<t;s+
+)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|
=a<<24-i%4*8,i++}return o.create(r,i)}
(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-
_"},r.enc.Base64url)},66164:function(e,t,n){var r;e.exports=(r=n(57359),function()
{var e=r,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|
e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var
t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i
%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e)
{for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return
t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var
t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var s=i(t[o>>>2]>>>16-o
%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e)
{for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return
t.create(r,2*n)}}}(),r.enc.Utf16)},96844:function(e,t,n){var
r,i,o,s,a,c,u,l;e.exports=(l=n(57359),n(81637),n(66423),o=(i=(r=l).lib).Base,s=i.Wo
rdArray,c=(a=r.algo).MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iter
ations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t)
{for(var
n,r=this.cfg,i=r.hasher.create(),o=s.create(),a=o.words,c=r.keySize,u=r.iterations;
a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var l=1;l<u;l+
+)n=i.finalize(n),i.reset();o.concat(n)}return
o.sigBytes=4*c,o}}),r.EvpKDF=function(e,t,n){return
u.create(n).compute(e,t)},l.EvpKDF)},87333:function(e,t,n){var
r,i,o,s;e.exports=(s=n(57359),n(9951),i=(r=s).lib.CipherParams,o=r.enc.Hex,r.format
.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var
t=o.parse(e);return i.create({ciphertext:t})}},s.format.Hex)},66423:function(e,t,n)
{var
r,i,o;e.exports=(i=(r=n(57359)).lib.Base,o=r.enc.Utf8,void(r.algo.HMAC=i.extend({in
it:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var
n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var
i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,u=0;u<n;u+
+)a[u]^=1549556828,c[u]^=909522486;i.sigBytes=s.sigBytes=r,this.reset()},reset:func
tion(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return
this._hasher.update(e),this},finalize:function(e){var
t=this._hasher,n=t.finalize(e);return
t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},36023:function(e,t,n){var
r;e.exports=(r=n(57359),n(66467),n(21816),n(66164),n(8139),n(49950),n(79174),n(8163
7),n(11093),n(83640),n(11834),n(91716),n(7140),n(25293),n(66423),n(89414),n(96844),
n(9951),n(23173),n(4782),n(28655),n(32957),n(32129),n(52994),n(49236),n(41476),n(27
921),n(50181),n(87333),n(77452),n(60567),n(10830),n(13480),n(94730),n(65466),r)},21
816:function(e,t,n){var r;e.exports=(r=n(57359),function(){if("function"==typeof
ArrayBuffer){var e=r.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof
ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof
Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e
instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e
instanceof Float32Array||e instanceof Float64Array)&&(e=new
Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var
n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else
t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},79174:function(e,t,n)
{var r;e.exports=(r=n(57359),function(e){var
t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=[];!function(){for(var t=0;t<64;t+
+)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=o.extend({_doReset:function()
{this._hash=new
i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t)
{for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|
4278255360&(i<<24|i>>>8)}var
o=this._hash.words,s=e[t+0],c=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b
=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],E=e[t+11],S=e[t+12],T=e[t+13],A=e[t+14],C=e[t+1
5],O=o[0],x=o[1],I=o[2],P=o[3];O=u(O,x,I,P,s,7,a[0]),P=u(P,O,x,I,c,12,a[1]),I=u(I,P
,O,x,f,17,a[2]),x=u(x,I,P,O,p,22,a[3]),O=u(O,x,I,P,g,7,a[4]),P=u(P,O,x,I,m,12,a[5])
,I=u(I,P,O,x,v,17,a[6]),x=u(x,I,P,O,b,22,a[7]),O=u(O,x,I,P,y,7,a[8]),P=u(P,O,x,I,w,
12,a[9]),I=u(I,P,O,x,_,17,a[10]),x=u(x,I,P,O,E,22,a[11]),O=u(O,x,I,P,S,7,a[12]),P=u
(P,O,x,I,T,12,a[13]),I=u(I,P,O,x,A,17,a[14]),O=l(O,x=u(x,I,P,O,C,22,a[15]),I,P,c,5,
a[16]),P=l(P,O,x,I,v,9,a[17]),I=l(I,P,O,x,E,14,a[18]),x=l(x,I,P,O,s,20,a[19]),O=l(O
,x,I,P,m,5,a[20]),P=l(P,O,x,I,_,9,a[21]),I=l(I,P,O,x,C,14,a[22]),x=l(x,I,P,O,g,20,a
[23]),O=l(O,x,I,P,w,5,a[24]),P=l(P,O,x,I,A,9,a[25]),I=l(I,P,O,x,p,14,a[26]),x=l(x,I
,P,O,y,20,a[27]),O=l(O,x,I,P,T,5,a[28]),P=l(P,O,x,I,f,9,a[29]),I=l(I,P,O,x,b,14,a[3
0]),O=h(O,x=l(x,I,P,O,S,20,a[31]),I,P,m,4,a[32]),P=h(P,O,x,I,y,11,a[33]),I=h(I,P,O,
x,E,16,a[34]),x=h(x,I,P,O,A,23,a[35]),O=h(O,x,I,P,c,4,a[36]),P=h(P,O,x,I,g,11,a[37]
),I=h(I,P,O,x,b,16,a[38]),x=h(x,I,P,O,_,23,a[39]),O=h(O,x,I,P,T,4,a[40]),P=h(P,O,x,
I,s,11,a[41]),I=h(I,P,O,x,p,16,a[42]),x=h(x,I,P,O,v,23,a[43]),O=h(O,x,I,P,w,4,a[44]
),P=h(P,O,x,I,S,11,a[45]),I=h(I,P,O,x,C,16,a[46]),O=d(O,x=h(x,I,P,O,f,23,a[47]),I,P
,s,6,a[48]),P=d(P,O,x,I,b,10,a[49]),I=d(I,P,O,x,A,15,a[50]),x=d(x,I,P,O,m,21,a[51])
,O=d(O,x,I,P,S,6,a[52]),P=d(P,O,x,I,p,10,a[53]),I=d(I,P,O,x,_,15,a[54]),x=d(x,I,P,O
,c,21,a[55]),O=d(O,x,I,P,y,6,a[56]),P=d(P,O,x,I,C,10,a[57]),I=d(I,P,O,x,v,15,a[58])
,x=d(x,I,P,O,T,21,a[59]),O=d(O,x,I,P,g,6,a[60]),P=d(P,O,x,I,E,10,a[61]),I=d(I,P,O,x
,f,15,a[62]),x=d(x,I,P,O,w,21,a[63]),o[0]=o[0]+O|0,o[1]=o[1]+x|0,o[2]=o[2]+I|
0,o[3]=o[3]+P|0},_doFinalize:function(){var
t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i
%32;var o=e.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|
4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|
4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var
a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|
4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=o.clone.call(this);return
e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,s){var a=e+(t&n|~t&r)
+i+s;return(a<<o|a>>>32-o)+t}function l(e,t,n,r,i,o,s){var a=e+(t&r|n&~r)
+i+s;return(a<<o|a>>>32-o)+t}function h(e,t,n,r,i,o,s){var a=e+(t^n^r)
+i+s;return(a<<o|a>>>32-o)+t}function d(e,t,n,r,i,o,s){var a=e+(n^(t|~r))
+i+s;return(a<<o|a>>>32-o)
+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}
(Math),r.MD5)},23173:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.mode.CFB=function(){var
e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?
(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var
s=0;s<n;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,n)
{var
r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}})
,e.Decryptor=e.extend({processBlock:function(e,n){var
r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=
o}}),e}(),r.mode.CFB)},28655:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.mode.CTRGladman=function(){var
e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var
t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):+
+t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var
n=e.Encryptor=e.extend({processBlock:function(e,n){var
r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice
(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var
a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)e[n+c]^=a[c]}});return
e.Decryptor=n,e}(),r.mode.CTRGladman)},4782:function(e,t,n){var
r,i,o;e.exports=(o=n(57359),n(9951),o.mode.CTR=(i=(r=o.lib.BlockCipherMode.extend()
).Encryptor=r.extend({processBlock:function(e,t){var
n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice
(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var
a=0;a<r;a++)e[t+a]^=s[a]}}),r.Decryptor=i,r),o.mode.CTR)},32129:function(e,t,n)
{var
r,i;e.exports=(i=n(57359),n(9951),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).En
cryptor=r.extend({processBlock:function(e,t)
{this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t)
{this._cipher.decryptBlock(e,t)}}),r),i.mode.ECB)},32957:function(e,t,n){var
r,i,o;e.exports=(o=n(57359),n(9951),o.mode.OFB=(i=(r=o.lib.BlockCipherMode.extend()
).Encryptor=r.extend({processBlock:function(e,t){var
n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.s
lice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s+
+)e[t+s]^=o[s]}}),r.Decryptor=i,r),o.mode.OFB)},52994:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.pad.AnsiX923={pad:function(e,t){var
n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o
%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-
1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},49236:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-
e.sigBytes%n;e.concat(r.lib.WordArray.random(i-
1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){var
t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-
=t}},r.pad.Iso10126)},41476:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.pad.Iso97971={pad:function(e,t)
{e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad
:function(e)
{r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},50181:function(e,t,n)
{var r;e.exports=(r=n(57359),n(9951),r.pad.NoPadding={pad:function()
{},unpad:function(){}},r.pad.NoPadding)},27921:function(e,t,n){var
r;e.exports=(r=n(57359),n(9951),r.pad.ZeroPadding={pad:function(e,t){var
n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var
t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255)
{e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},89414:function(e,t,n){var
r,i,o,s,a,c,u,l,h;e.exports=(h=n(57359),n(11093),n(66423),o=(i=(r=h).lib).Base,s=i.
WordArray,c=(a=r.algo).SHA256,u=a.HMAC,l=a.PBKDF2=o.extend({cfg:o.extend({keySize:4
,hasher:c,iterations:25e4}),init:function(e)
{this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var
n=this.cfg,r=u.create(n.hasher,e),i=s.create(),o=s.create([1]),a=i.words,c=o.words,
l=n.keySize,h=n.iterations;a.length<l;){var
d=r.update(t).finalize(o);r.reset();for(var f=d.words,p=f.length,g=d,m=1;m<h;m++)
{g=r.finalize(g),r.reset();for(var v=g.words,b=0;b<p;b+
+)f[b]^=v[b]}i.concat(d),c[0]++}return i.sigBytes=4*l,i}}),r.PBKDF2=function(e,t,n)
{return l.create(n).compute(e,t)},h.PBKDF2)},94730:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.RabbitLegacy=t.extend({_doRese
t:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|
e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|
e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|
e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|
65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var
i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var
o=t.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|
s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|
4294901760&l,d=l<<16|
65535&u;for(r[0]^=u,r[1]^=h,r[2]^=l,r[3]^=d,r[4]^=u,r[5]^=h,r[6]^=l,r[7]^=d,i=0;i<4
;i++)c.call(this)}},_doProcessBlock:function(e,t){var
n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[
2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r+
+)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|
i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var
e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|
0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+
(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|
0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+
(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|
0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?
1:0,n=0;n<8;n++){var r=e[n]
+t[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,u=((4294901760&r)*r|0)+
((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|
0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|
s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+
(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|
s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|
0}e.RabbitLegacy=t._createHelper(a)}(),r.RabbitLegacy)},13480:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.Rabbit=t.extend({_doReset:func
tion(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|
e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|
e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|
e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|
e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|
65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n+
+)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var
o=t.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|
s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|
4294901760&l,d=l<<16|
65535&u;for(i[0]^=u,i[1]^=h,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=l,i[7]^=d,n=0;n<4
;n++)c.call(this)}},_doProcessBlock:function(e,t){var
n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[
2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r+
+)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|
i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var
e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|
0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+
(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|
0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+
(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|
0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?
1:0,n=0;n<8;n++){var r=e[n]
+t[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,u=((4294901760&r)*r|0)+
((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|
0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|
s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+
(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|
s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|
0}e.Rabbit=t._createHelper(a)}(),r.Rabbit)},10830:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var
e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var
o=0;i<256;i++){var s=i%n,a=t[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var
c=r[i];r[i]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t)
{e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var
e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var
o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return
this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var
s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function()
{i._doReset.call(this);for(var
e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(s)}
(),r.RC4)},25293:function(e,t,n){var r;e.exports=(r=n(57359),function(e){var
t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11
,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11
,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13])
,c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,
9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,1
2,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,
6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12
,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,
6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,
7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,
12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,185977
5393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,205399421
7,0]),f=s.RIPEMD160=o.extend({_doReset:function()
{this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doP
rocessBlock:function(e,t){for(var n=0;n<16;n++){var
r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var
o,s,f,w,_,E,S,T,A,C,O,x=this._hash.words,I=h.words,P=d.words,D=a.words,k=c.words,R=
u.words,M=l.words;for(E=o=x[0],S=s=x[1],T=f=x[2],A=w=x[3],C=_=x[4],n=0;n<80;n+=1)O=
o+e[t+D[n]]|0,O+=n<16?p(s,f,w)+I[0]:n<32?g(s,f,w)+I[1]:n<48?m(s,f,w)+I[2]:n<64?
v(s,f,w)+I[3]:b(s,f,w)+I[4],O=(O=y(O|=0,R[n]))+_|
0,o=_,_=w,w=y(f,10),f=s,s=O,O=E+e[t+k[n]]|0,O+=n<16?b(S,T,A)+P[0]:n<32?v(S,T,A)
+P[1]:n<48?m(S,T,A)+P[2]:n<64?g(S,T,A)+P[3]:p(S,T,A)+P[4],O=(O=y(O|=0,M[n]))+C|
0,E=C,C=A,A=y(T,10),T=S,S=O;O=x[1]+f+A|0,x[1]=x[2]+w+C|0,x[2]=x[3]+_+E|
0,x[3]=x[4]+o+S|0,x[4]=x[0]+s+T|0,x[0]=O},_doFinalize:function(){var
e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r
%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|
n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var
i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|
4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=o.clone.call(this);return
e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function g(e,t,n)
{return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|
t&~n}function b(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-
t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}
(Math),r.RIPEMD160)},81637:function(e,t,n){var
r,i,o,s,a,c,u,l;e.exports=(i=(r=l=n(57359)).lib,o=i.WordArray,s=i.Hasher,a=r.algo,c
=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new
o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:fu
nction(e,t){for(var
n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=0;u<80;u++){if(u<16)c[u]=0|
e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var h=(r<<5|
r>>>27)+a+c[u];h+=u<20?1518500249+(i&o|~i&s):u<40?1859775393+(i^o^s):u<60?(i&o|i&s|
o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|
0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function()
{var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|
=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+
(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function()
{var e=s.clone.call(this);return
e._hash=this._hash.clone(),e}}),r.SHA1=s._createHelper(u),r.HmacSHA1=s._createHmacH
elper(u),l.SHA1)},83640:function(e,t,n){var
r,i,o,s,a,c;e.exports=(c=n(57359),n(11093),i=(r=c).lib.WordArray,o=r.algo,s=o.SHA25
6,a=o.SHA224=s.extend({_doReset:function(){this._hash=new
i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,
3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return
e.sigBytes-
=4,e}}),r.SHA224=s._createHelper(a),r.HmacSHA224=s._createHmacHelper(a),c.SHA224)},
11093:function(e,t,n){var r;e.exports=(r=n(57359),function(e){var
t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=[],c=[];!function(){function t(t)
{for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return
4294967296*(e-(0|e))|0}for(var
r=2,i=0;i<64;)t(r)&&(i<8&&(a[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}
();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new
i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var
n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],d=n[7],f=0;f<64
;f++){if(f<16)u[f]=0|e[t+f];else{var p=u[f-15],g=(p<<25|p>>>7)^(p<<14|
p>>>18)^p>>>3,m=u[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[f]=g+u[f-7]+v+u[f-
16]}var b=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((a<<26|
a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&h)+c[f]+u[f];d=h,h=l,l=a,a=s+w|
0,s=o,o=i,i=r,r=w+(y+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|
0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function()
{var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|
=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+
(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function()
{var e=o.clone.call(this);return
e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createH
macHelper(l)}(Math),r.SHA256)},7140:function(e,t,n){var
r;e.exports=(r=n(57359),n(66467),function(e){var
t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.x64.Word,a=t.algo,c=[],u=[],l=[];!
function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)
%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var
i=1,o=0;o<24;o++){for(var a=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?
h^=1<<f:a^=1<<f-32}128&i?i=i<<1^113:i<<=1}l[o]=s.create(a,h)}}();var h=[];!
function(){for(var e=0;e<25;e++)h[e]=s.create()}();var
d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var
e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-
2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var
n=this._state,r=this.blockSize/2,i=0;i<r;i++){var
o=e[t+2*i],s=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|
o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),
(x=n[i]).high^=s,x.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var
f=0,p=0,g=0;g<5;g++)f^=(x=n[d+5*g]).high,p^=x.low;var
m=h[d];m.high=f,m.low=p}for(d=0;d<5;d++){var
v=h[(d+4)%5],b=h[(d+1)%5],y=b.high,w=b.low;for(f=v.high^(y<<1|
w>>>31),p=v.low^(w<<1|y>>>31),g=0;g<5;g++)(x=n[d+5*g]).high^=f,x.low^=p}for(var
_=1;_<25;_++){var E=(x=n[_]).high,S=x.low,T=c[_];T<32?(f=E<<T|S>>>32-T,p=S<<T|
E>>>32-T):(f=S<<T-32|E>>>64-T,p=E<<T-32|S>>>64-T);var
A=h[u[_]];A.high=f,A.low=p}var
C=h[0],O=n[0];for(C.high=O.high,C.low=O.low,d=0;d<5;d++)for(g=0;g<5;g++){var
x=n[_=d+5*g],I=h[_],P=h[(d+1)%5+5*g],D=h[(d+2)%5+5*g];x.high=I.high^~P.high&D.high,
x.low=I.low^~P.low&D.low}x=n[0];var
k=l[a];x.high^=k.high,x.low^=k.low}},_doFinalize:function(){var
t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>
5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|
=128,t.sigBytes=4*n.length,this._process();for(var
s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var
h=s[l],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|
d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(d)}return
new i.init(u,a)},clone:function(){for(var
e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n+
+)t[n]=t[n].clone();return
e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}
(Math),r.SHA3)},91716:function(e,t,n){var
r,i,o,s,a,c,u,l;e.exports=(l=n(57359),n(66467),n(11834),i=(r=l).x64,o=i.Word,s=i.Wo
rdArray,a=r.algo,c=a.SHA512,u=a.SHA384=c.extend({_doReset:function(){this._hash=new
s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new
o.init(2438529370,812702999),new o.init(355462360,4144912697),new
o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new
o.init(3675008525,1694076839),new
o.init(1203062813,3204075428)])},_doFinalize:function(){var
e=c._doFinalize.call(this);return e.sigBytes-
=16,e}}),r.SHA384=c._createHelper(u),r.HmacSHA384=c._createHmacHelper(u),l.SHA384)}
,11834:function(e,t,n){var r;e.exports=(r=n(57359),n(66467),function(){var
e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,s=e.algo;function a(){return
i.create.apply(i,arguments)}var
c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921
009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,29
37671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542)
,a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(216207
8206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,26666
13458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(77
0255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,
2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,256659487
9),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113
926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,15460
45734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a
(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(27304859
21,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,10621
7008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(
275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,37
50685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),
a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(202410
4815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,5936
98344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a
(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(41186302
71,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,32039930
06),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036
298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,42345
09866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var
e=0;e<80;e++)u[e]=a()}();var l=s.SHA512=t.extend({_doReset:function()
{this._hash=new o.init([new i.init(1779033703,4089235720),new
i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new
i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new
i.init(2600822924,725511199),new i.init(528734635,4215389547),new
i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var
n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],d=n[7],f=r.high
,p=r.low,g=i.high,m=i.low,v=o.high,b=o.low,y=s.high,w=s.low,_=a.high,E=a.low,S=l.hi
gh,T=l.low,A=h.high,C=h.low,O=d.high,x=d.low,I=f,P=p,D=g,k=m,R=v,M=b,N=y,L=w,F=_,j=
E,B=S,U=T,H=A,G=C,z=O,V=x,W=0;W<80;W++){var q,K,Y=u[W];if(W<16)K=Y.high=0|
e[t+2*W],q=Y.low=0|e[t+2*W+1];else{var $=u[W-15],Q=$.high,X=$.low,Z=(Q>>>1|
X<<31)^(Q>>>8|X<<24)^Q>>>7,J=(X>>>1|Q<<31)^(X>>>8|Q<<24)^(X>>>7|Q<<25),ee=u[W-
2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|
te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=u[W-7],se=oe.high,ae=oe.low,ce=u[W-
16],ue=ce.high,le=ce.low;K=(K=(K=Z+se+((q=J+ae)>>>0<J>>>0?1:0))+re+
((q+=ie)>>>0<ie>>>0?1:0))+ue+((q+=le)>>>0<le>>>0?1:0),Y.high=K,Y.low=q}var
he,de=F&B^~F&H,fe=j&U^~j&G,pe=I&D^I&R^D&R,ge=P&k^P&M^k&M,me=(I>>>28|P<<4)^(I<<30|
P>>>2)^(I<<25|P>>>7),ve=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),be=(F>>>14|
j<<18)^(F>>>18|j<<14)^(F<<23|j>>>9),ye=(j>>>14|F<<18)^(j>>>18|F<<14)^(j<<23|
F>>>9),we=c[W],_e=we.high,Ee=we.low,Se=z+be+((he=V+ye)>>>0<V>>>0?
1:0),Te=ve+ge;z=H,V=G,H=B,G=U,B=F,U=j,F=N+(Se=(Se=(Se=Se+de+((he+=fe)>>>0<fe>>>0?
1:0))+_e+((he+=Ee)>>>0<Ee>>>0?1:0))+K+((he+=q)>>>0<q>>
>0?1:0))+((j=L+he|0)>>>0<L>>>0?1:0)|0,N=R,L=M,R=D,M=k,D=I,k=P,I=Se+(me+pe+
(Te>>>0<ve>>>0?1:0))+((P=he+Te|0)>>>0<he>>>0?1:0)|0}p=r.low=p+P,r.high=f+I+
(p>>>0<P>>>0?1:0),m=i.low=m+k,i.high=g+D+(m>>>0<k>>>0?1:0),b=o.low=b+M,o.high=v+R+
(b>>>0<M>>>0?1:0),w=s.low=w+L,s.high=y+N+(w>>>0<L>>>0?1:0),E=a.low=E+j,a.high=_+F+
(E>>>0<j>>>0?1:0),T=l.low=T+U,l.high=S+B+(T>>>0<U>>>0?1:0),C=h.low=C+G,h.high=A+H+
(C>>>0<G>>>0?1:0),x=d.low=x+V,d.high=O+z+(x>>>0<V>>>0?1:0)},_doFinalize:function()
{var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|
=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+
(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:
function(){var e=t.clone.call(this);return
e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA5
12=t._createHmacHelper(l)}(),r.SHA512)},60567:function(e,t,n){var
r;e.exports=(r=n(57359),n(8139),n(79174),n(96844),n(9951),function(){var
e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,4
2,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,
38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10
,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34
,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888
,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,16
10612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33
280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:
33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421
888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33
280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,38923
14112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:838860
8,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:
8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,34896
60929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671
088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,20132
65921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3
355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},
{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:107374184
0,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:
1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,23488
1024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,5872
0256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:
1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715
200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,28
5212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,3
52321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,43620
7616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:10
73741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:107426611
2,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:
1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440
:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},
{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291
456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,1153
4336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174
656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815
744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,131072
00:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17
825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,230686
72:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:6579
2,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864
,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,2359296
0:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67
108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},
{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:419
8400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,72
0896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2
147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:215168
2112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664
:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:41
94368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,
1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936
:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4
096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368
,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1
736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:419430
4,2064384:4198464},
{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,245
76:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:5539
10400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553
648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:
536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55
296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77
824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:5
53910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536
871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872
:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,1
04448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:5371
33056,129024:536871040},
{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:
2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,332
8:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,11
52:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:2684
43656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:2684436
48,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:2684354
64,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,
7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:26
8443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:
8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},
{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33
555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:
33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:3355443
2,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,
232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,33
6:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,4
64:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:3
3554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604
033,456:1049601,472:1024,488:33555456,504:1048577},
{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:13
4348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147
483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,21474836
52:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760
,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134
348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,
20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134
219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:204
8,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483
670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,214748
3674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,214
7483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,214748
3679],h=o.DES=i.extend({_doReset:function(){for(var
e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var
i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(n=0;n<24;n++)u[n/6|0]|
=t[(a[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(a[n+24]-1+l)%28]<<31-n
%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|
u[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-
n]},encryptBlock:function(e,t)
{this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t)
{this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n)
{this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,6553
5),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(v
ar r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|
=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var
h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f
.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4
,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2})
;function d(e,t){var
n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function
f(e,t){var
n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=i._cre
ateHelper(h);var p=o.TripleDES=i.extend({_doReset:function(){var
e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new
Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or
>192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?
e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(n.create(t)),this._des2=h.cr
eateEncryptor(n.create(r)),this._des3=h.createEncryptor(n.create(i))},encryptBlock:
function(e,t)
{this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(
e,t)},decryptBlock:function(e,t)
{this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(
e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}
(),r.TripleDES)},66467:function(e,t,n){var
r,i,o,s,a,c;e.exports=(r=n(57359),o=(i=r).lib,s=o.Base,a=o.WordArray,
(c=i.x64={}).Word=s.extend({init:function(e,t)
{this.high=e,this.low=t}}),c.WordArray=s.extend({init:function(e,t)
{e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var
e=this.words,t=e.length,n=[],r=0;r<t;r++){var
i=e[r];n.push(i.high),n.push(i.low)}return
a.create(n,this.sigBytes)},clone:function(){for(var
e=s.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r+
+)t[r]=t[r].clone();return e}}),r)},17377:(e,t,n)=>{"use strict";n.d(t,{Z:
()=>p});var r=n(39601),i=n.n(r),o=n(82609),s=n.n(o),a=n(78991),c=n.n(a),u=new
URL(n(43225),n.b),l=new URL(n(62886),n.b),h=s()(i()),d=c()(u),f=c()
(l);h.push([e.id,`/* ===============================\n= Choices
=\n=============================== */\n.choices {\n position: relative;\n
overflow: hidden;\n margin-bottom: 24px;\n font-size: 16px;\n}\n.choices:focus {\
n outline: none;\n}\n.choices:last-child {\n margin-bottom: 0;\n}\n.choices.is-
open {\n overflow: visible;\n}\n.choices.is-disabled .choices__inner,\
n.choices.is-disabled .choices__input {\n background-color: #eaeaea;\n cursor:
not-allowed;\n -webkit-user-select: none;\n user-select: none;\n}\
n.choices.is-disabled .choices__item {\n cursor: not-allowed;\n}\n.choices
[hidden] {\n display: none !important;\n}\n\n.choices[data-type*=select-one] {\n
cursor: pointer;\n}\n.choices[data-type*=select-one] .choices__inner {\n padding-
bottom: 7.5px;\n}\n.choices[data-type*=select-one] .choices__input {\n display:
block;\n width: 100%;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n
background-color: #fff;\n margin: 0;\n}\n.choices[data-type*=select-
one] .choices__button {\n background-image: url(${d});\n padding: 0;\n
background-size: 8px;\n position: absolute;\n top: 50%;\n right: 0;\n margin-
top: -10px;\n margin-right: 25px;\n height: 20px;\n width: 20px;\n border-
radius: 10em;\n opacity: 0.25;\n}\n.choices[data-type*=select-
one] .choices__button:hover, .choices[data-type*=select-one] .choices__button:focus
{\n opacity: 1;\n}\n.choices[data-type*=select-one] .choices__button:focus {\n
box-shadow: 0 0 0 2px #00bcd4;\n}\n.choices[data-type*=select-
one] .choices__item[data-value=""] .choices__button {\n display: none;\n}\
n.choices[data-type*=select-one]::after {\n content: "";\n height: 0;\n width:
0;\n border-style: solid;\n border-color: #333 transparent transparent
transparent;\n border-width: 5px;\n position: absolute;\n right: 11.5px;\n top:
50%;\n margin-top: -2.5px;\n pointer-events: none;\n}\n.choices[data-
type*=select-one].is-open::after {\n border-color: transparent transparent #333
transparent;\n margin-top: -7.5px;\n}\n.choices[data-type*=select-one]
[dir=rtl]::after {\n left: 11.5px;\n right: auto;\n}\n.choices[data-type*=select-
one][dir=rtl] .choices__button {\n right: auto;\n left: 0;\n margin-left: 25px;\
n margin-right: 0;\n}\n\n.choices[data-type*=select-multiple] .choices__inner,\
n.choices[data-type*=text] .choices__inner {\n cursor: text;\n}\n.choices[data-
type*=select-multiple] .choices__button,\n.choices[data-
type*=text] .choices__button {\n position: relative;\n display: inline-block;\n
margin-top: 0;\n margin-right: -4px;\n margin-bottom: 0;\n margin-left: 8px;\n
padding-left: 16px;\n border-left: 1px solid #008fa1;\n background-image: url($
{f});\n background-size: 8px;\n width: 8px;\n line-height: 1;\n opacity: 0.75;\
n border-radius: 0;\n}\n.choices[data-type*=select-
multiple] .choices__button:hover, .choices[data-type*=select-
multiple] .choices__button:focus,\n.choices[data-
type*=text] .choices__button:hover,\n.choices[data-
type*=text] .choices__button:focus {\n opacity: 1;\n}\n\n.choices__inner {\n
display: inline-block;\n vertical-align: top;\n width: 100%;\n background-color:
#f9f9f9;\n padding: 7.5px 7.5px 3.75px;\n border: 1px solid #ddd;\n border-
radius: 2.5px;\n font-size: 14px;\n min-height: 44px;\n overflow: hidden;\n}\
n.is-focused .choices__inner, .is-open .choices__inner {\n border-color: #b7b7b7;\
n}\n.is-open .choices__inner {\n border-radius: 2.5px 2.5px 0 0;\n}\n.is-
flipped.is-open .choices__inner {\n border-radius: 0 0 2.5px 2.5px;\n}\n\
n.choices__list {\n margin: 0;\n padding-left: 0;\n list-style: none;\n}\
n.choices__list--single {\n display: inline-block;\n padding: 4px 16px 4px 4px;\n
width: 100%;\n}\n[dir=rtl] .choices__list--single {\n padding-right: 4px;\n
padding-left: 16px;\n}\n.choices__list--single .choices__item {\n width: 100%;\n}\
n\n.choices__list--multiple {\n display: inline;\n}\n.choices__list--
multiple .choices__item {\n display: inline-block;\n vertical-align: middle;\n
border-radius: 20px;\n padding: 4px 10px;\n font-size: 12px;\n font-weight:
500;\n margin-right: 3.75px;\n margin-bottom: 3.75px;\n background-color:
#00bcd4;\n border: 1px solid #00a5bb;\n color: #fff;\n word-break: break-all;\n
box-sizing: border-box;\n}\n.choices__list--multiple .choices__item[data-deletable]
{\n padding-right: 5px;\n}\n[dir=rtl] .choices__list--multiple .choices__item {\n
margin-right: 0;\n margin-left: 3.75px;\n}\n.choices__list--
multiple .choices__item.is-highlighted {\n background-color: #00a5bb;\n border:
1px solid #008fa1;\n}\n.is-disabled .choices__list--multiple .choices__item {\n
background-color: #aaaaaa;\n border: 1px solid #919191;\n}\n\n.choices__list--
dropdown, .choices__list[aria-expanded] {\n visibility: hidden;\n z-index: 1;\n
position: absolute;\n width: 100%;\n background-color: #fff;\n border: 1px solid
#ddd;\n top: 100%;\n margin-top: -1px;\n border-bottom-left-radius: 2.5px;\n
border-bottom-right-radius: 2.5px;\n overflow: hidden;\n word-break: break-all;\n
will-change: visibility;\n}\n.is-active.choices__list--dropdown, .is-
active.choices__list[aria-expanded] {\n visibility: visible;\n}\n.is-
open .choices__list--dropdown, .is-open .choices__list[aria-expanded] {\n border-
color: #b7b7b7;\n}\n.is-flipped .choices__list--dropdown, .is-
flipped .choices__list[aria-expanded] {\n top: auto;\n bottom: 100%;\n margin-
top: 0;\n margin-bottom: -1px;\n border-radius: 0.25rem 0.25rem 0 0;\n}\
n.choices__list--dropdown .choices__list, .choices__list[aria-
expanded] .choices__list {\n position: relative;\n max-height: 300px;\n
overflow: auto;\n -webkit-overflow-scrolling: touch;\n will-change: scroll-
position;\n}\n.choices__list--dropdown .choices__item, .choices__list[aria-
expanded] .choices__item {\n position: relative;\n padding: 10px;\n font-size:
14px;\n}\n[dir=rtl] .choices__list--dropdown .choices__item,
[dir=rtl] .choices__list[aria-expanded] .choices__item {\n text-align: right;\n}\
n@media (min-width: 640px) {\n .choices__list--dropdown .choices__item--
selectable, .choices__list[aria-expanded] .choices__item--selectable {\n
padding-right: 100px;\n }\n .choices__list--dropdown .choices__item--
selectable::after, .choices__list[aria-expanded] .choices__item--selectable::after
{\n content: attr(data-select-text);\n font-size: 12px;\n opacity: 0;\n
position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-
50%);\n }\n [dir=rtl] .choices__list--dropdown .choices__item--selectable,
[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable {\n text-
align: right;\n padding-left: 100px;\n padding-right: 10px;\n }\n [dir=rtl]
.choices__list--dropdown .choices__item--selectable::after,
[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after {\n
right: auto;\n left: 10px;\n }\n}\n.choices__list--dropdown .choices__item--
selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--
selectable.is-highlighted {\n background-color: #f2f2f2;\n}\n.choices__list--
dropdown .choices__item--selectable.is-highlighted::after, .choices__list[aria-
expanded] .choices__item--selectable.is-highlighted::after {\n opacity: 0.5;\n}\n\
n.choices__item {\n cursor: default;\n}\n\n.choices__item--selectable {\n cursor:
pointer;\n}\n\n.choices__item--disabled {\n cursor: not-allowed;\n -webkit-user-
select: none;\n user-select: none;\n opacity: 0.5;\n}\n\
n.choices__heading {\n font-weight: 600;\n font-size: 12px;\n padding: 10px;\n
border-bottom: 1px solid #f7f7f7;\n color: gray;\n}\n\n.choices__button {\n text-
indent: -9999px;\n -webkit-appearance: none;\n appearance: none;\n
border: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n
background-position: center;\n cursor: pointer;\n}\n.choices__button:focus {\n
outline: none;\n}\n\n.choices__input {\n display: inline-block;\n
vertical-align: baseline;\n background-color: #f9f9f9;\n font-size: 14px;\n
margin-bottom: 5px;\n border: 0;\n border-radius: 0;\n max-width: 100%;\n
padding: 4px 0 4px 2px;\n}\n.choices__input:focus {\n outline: 0;\n}\
n.choices__input::-webkit-search-decoration, .choices__input::-webkit-search-
cancel-button, .choices__input::-webkit-search-results-button, .choices__input::-
webkit-search-results-decoration {\n display: none;\n}\n.choices__input::-ms-
clear, .choices__input::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\
n}\n[dir=rtl] .choices__input {\n padding-right: 2px;\n padding-left: 0;\n}\n\
n.choices__placeholder {\n opacity: 0.5;\n}\n\n/* ===== End of Choices ======
*/\n`,""]);const p=h},93727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var
r=n(39601),i=n.n(r),o=n(82609),s=n.n(o)()(i());s.push([e.id,".range-slider{touch-
action:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-
select:none;cursor:pointer;display:block;position:relative;width:100%;height:8px;ba
ckground:#ddd;border-radius:4px}.range-slider[data-vertical]
{height:100%;width:8px}.range-slider[data-disabled]{opacity:.5;cursor:not-
allowed}.range-slider .range-slider__thumb{position:absolute;z-
index:3;top:50%;width:24px;height:24px;transform:translate(-50%,-50%);border-
radius:50%;background:#2196f3}.range-slider .range-slider__thumb:focus-
visible{outline:0;box-shadow:0 0 0 6px rgba(33,150,243,.5)}.range-slider[data-
vertical] .range-slider__thumb{left:50%}.range-slider .range-slider__thumb[data-
disabled]{z-index:2}.range-slider .range-slider__range{position:absolute;z-
index:1;transform:translate(0,-
50%);top:50%;width:100%;height:100%;background:#51adf6}.range-slider[data-vertical]
.range-slider__range{left:50%;transform:translate(-50%,0)}.range-slider
input[type=range]{-webkit-appearance:none;pointer-events:none;position:absolute;z-
index:2;top:0;left:0;width:0;height:0;background-color:transparent}.range-slider
input[type=range]::-webkit-slider-thumb{-webkit-
appearance:none;appearance:none}.range-slider input[type=range]::-moz-range-
thumb{width:0;height:0;border:0}.range-slider
input[type=range]:focus{outline:0}",""]);const a=s},45917:(e,t,n)=>{"use
strict";n.d(t,{Z:()=>a});var r=n(39601),i=n.n(r),o=n(82609),s=n.n(o)()
(i());s.push([e.id,'.shepherd-button{background:#3288e6;border:0;border-
radius:3px;color:hsla(0,0%,100%,.75);cursor:pointer;margin-
right:.5rem;padding:.5rem 1.5rem;transition:all .5s ease}.shepherd-
button:not(:disabled):hover{background:#196fcc;color:hsla(0,0%,100%,.75)}.shepherd-
button.shepherd-button-
secondary{background:#f1f2f3;color:rgba(0,0,0,.75)}.shepherd-button.shepherd-
button-
secondary:not(:disabled):hover{background:#d6d9db;color:rgba(0,0,0,.75)}.shepherd-
button:disabled{cursor:not-allowed}\n.shepherd-footer{border-bottom-left-
radius:5px;border-bottom-right-radius:5px;display:flex;justify-content:flex-
end;padding:0 .75rem .75rem}.shepherd-footer .shepherd-button:last-child{margin-
right:0}\n.shepherd-cancel-
icon{background:transparent;border:none;color:hsla(0,0%,50%,.75);cursor:pointer;fon
t-size:2em;font-weight:400;margin:0;padding:0;transition:color .5s ease}.shepherd-
cancel-icon:hover{color:rgba(0,0,0,.75)}.shepherd-has-title .shepherd-
content .shepherd-cancel-icon{color:hsla(0,0%,50%,.75)}.shepherd-has-
title .shepherd-content .shepherd-cancel-icon:hover{color:rgba(0,0,0,.75)}\
n.shepherd-title{color:rgba(0,0,0,.75);display:flex;flex:1 0 auto;font-
size:1rem;font-weight:400;margin:0;padding:0}\n.shepherd-header{align-
items:center;border-top-left-radius:5px;border-top-right-
radius:5px;display:flex;justify-content:flex-end;line-
height:2em;padding:.75rem .75rem 0}.shepherd-has-title .shepherd-content .shepherd-
header{background:#e6e6e6;padding:1em}\n.shepherd-text{color:rgba(0,0,0,.75);font-
size:1rem;line-height:1.3em;padding:.75em}.shepherd-text p{margin-top:0}.shepherd-
text p:last-child{margin-bottom:0}\n.shepherd-content{border-
radius:5px;outline:none;padding:0}\n.shepherd-element{background:#fff;border-
radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.2);max-
width:400px;opacity:0;outline:none;transition:opacity .3s,visibility .3s;visibility
:hidden;width:100%;z-index:9999}.shepherd-enabled.shepherd-
element{opacity:1;visibility:visible}.shepherd-element[data-popper-reference-
hidden]:not(.shepherd-centered){opacity:0;pointer-
events:none;visibility:hidden}.shepherd-element,.shepherd-element *,.shepherd-
element :after,.shepherd-element :before{box-sizing:border-box}.shepherd-
arrow,.shepherd-arrow:before{height:16px;position:absolute;width:16px;z-index:-
1}.shepherd-
arrow:before{background:#fff;content:"";transform:rotate(45deg)}.shepherd-
element[data-popper-placement^=top]>.shepherd-arrow{bottom:-8px}.shepherd-
element[data-popper-placement^=bottom]>.shepherd-arrow{top:-8px}.shepherd-
element[data-popper-placement^=left]>.shepherd-arrow{right:-8px}.shepherd-
element[data-popper-placement^=right]>.shepherd-arrow{left:-8px}.shepherd-
element.shepherd-centered>.shepherd-arrow{opacity:0}.shepherd-element.shepherd-has-
title[data-popper-placement^=bottom]>.shepherd-arrow:before{background-
color:#e6e6e6}.shepherd-target-click-disabled.shepherd-enabled.shepherd-
target,.shepherd-target-click-disabled.shepherd-enabled.shepherd-target *{pointer-
events:none}\n.shepherd-modal-overlay-
container{height:0;left:0;opacity:0;overflow:hidden;pointer-
events:none;position:fixed;top:0;transition:all .3s ease-out,height 0ms .3s,opacity
.3s 0ms;width:100vw;z-index:9997}.shepherd-modal-overlay-container.shepherd-modal-
is-visible{height:100vh;opacity:.5;transform:translateZ(0);transition:all .3s ease-
out,height 0s 0s,opacity .3s 0s}.shepherd-modal-overlay-container.shepherd-modal-
is-visible path{pointer-events:all}',""]);const a=s},5948:(e,t,n)=>{"use
strict";n.d(t,{Z:()=>a});var r=n(39601),i=n.n(r),o=n(82609),s=n.n(o)()
(i());s.push([e.id,'.tabulator{position:relative;border:1px solid #333;font-
size:14px;text-align:left;overflow:hidden;-webkit-transform:translateZ(0);-moz-
transform:translateZ(0);-ms-transform:translateZ(0);-o-
transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-
layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-
width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-
block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-
header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid
#999;background-color:#333;color:#fff;font-weight:700;white-
space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-
user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-
hidden{display:none}.tabulator .tabulator-header .tabulator-header-
contents{position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-
header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-
header .tabulator-col{display:inline-flex;position:relative;box-sizing:border-
box;flex-direction:column;justify-content:flex-start;border-right:1px solid
#aaa;background:#333;text-align:left;vertical-
align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-
moving{position:absolute;border:1px solid #999;background:#1a1a1a;pointer-
events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-
sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-
header .tabulator-col .tabulator-col-content .tabulator-header-popup-
button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-
content .tabulator-header-popup-
button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-
col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator
.tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-
sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-
overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col
.tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-
space:normal;text-overflow:clip}.tabulator .tabulator-header .tabulator-
col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-
sizing:border-box;width:100%;border:1px solid
#999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-
col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-
button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header
.tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-
items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-
header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-
arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid
transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-
col.tabulator-col-group .tabulator-col-group-
cols{position:relative;display:flex;border-top:1px solid
#aaa;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-
col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-
top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-
col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-
header .tabulator-col .tabulator-header-filter svg{margin-
top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter
input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-
col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover)
and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-
sortable.tabulator-col-sorter-element:hover{cursor:pointer;background-
color:#1a1a1a}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-
sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media
(hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-
col.tabulator-sortable[aria-sort=none]
.tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-
element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid
#555}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-
sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-
top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-
col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-
sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-
header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-
content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-
arrow:hover{cursor:pointer;border-bottom:6px solid #555}}.tabulator .tabulator-
header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-
content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px
solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-
sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media
(hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-
col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-
sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-
top:6px solid #555}}.tabulator .tabulator-header .tabulator-col.tabulator-
sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-
sorter .tabulator-arrow{border-bottom:none;border-top:6px solid
#666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-
vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-
orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator
.tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip
.tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-
header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-
title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-
col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-
flip .tabulator-col-title{padding-right:0;padding-
bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-
vertical.tabulator-sortable .tabulator-col-sorter{justify-
content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-
header .tabulator-frozen{position:sticky;left:0;z-index:10}.tabulator .tabulator-
header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid
#888}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-
left:2px solid #888}.tabulator .tabulator-header .tabulator-calcs-holder{box-
sizing:border-box;background:#404040!important;border-top:1px solid #888;border-
bottom:1px solid #aaa}.tabulator .tabulator-header .tabulator-calcs-
holder .tabulator-row{background:#404040!important}.tabulator .tabulator-
header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-
handle,.tabulator .tabulator-header .tabulator-frozen-rows-
holder:empty{display:none}.tabulator .tabulator-
tableholder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-
overflow-scrolling:touch}.tabulator .tabulator-
tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-
placeholder{box-sizing:border-box;display:flex;align-items:center;justify-
content:center;width:100%}.tabulator .tabulator-tableholder .tabulator-
placeholder[tabulator-render-mode=virtual]{min-height:100%;min-
width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-
placeholder-contents{display:inline-block;text-
align:center;padding:10px;color:#ccc;font-weight:700;font-size:20px;white-
space:normal}.tabulator .tabulator-tableholder .tabulator-
table{position:relative;display:inline-block;background-color:#666;white-
space:nowrap;overflow:visible;color:#fff}.tabulator .tabulator-
tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-
weight:700;background:#373737!important}.tabulator .tabulator-
tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-
top{border-bottom:2px solid #888}.tabulator .tabulator-tableholder .tabulator-table
.tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid
#888}.tabulator .tabulator-footer{border-top:1px solid #999;background-
color:#333;color:#333;font-weight:700;white-space:nowrap;user-select:none;-moz-
user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-
select:none}.tabulator .tabulator-footer .tabulator-footer-
contents{display:flex;flex-direction:row;align-items:center;justify-content:space-
between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-
contents:empty{display:none}.tabulator .tabulator-footer .tabulator-calcs-
holder{box-sizing:border-box;width:100%;text-align:left;background:#404040!
important;border-bottom:1px solid #888;border-top:1px solid
#888;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-
holder .tabulator-row{display:inline-block;background:#404040!
important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-
row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-
footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-
bottom:none}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-
left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-
weight:400}.tabulator .tabulator-footer .tabulator-paginator{flex:1;text-
align:right;color:#333;font-family:inherit;font-weight:inherit;font-
size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-
block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-
radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0
7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0
2px;padding:2px 5px;border:1px solid #aaa;border-
radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-
page.active{color:#fff}.tabulator .tabulator-footer .tabulator-
page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine)
{.tabulator .tabulator-footer .tabulator-
page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}}.tab
ulator .tabulator-col-resize-handle{position:relative;display:inline-
block;width:6px;margin-left:-3px;margin-right:-3px;z-index:10;vertical-
align:middle}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-
resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-
of-type{width:3px;margin-right:0}.tabulator .tabulator-
alert{position:absolute;display:flex;align-items:center;top:0;left:0;z-
index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-
align:center}.tabulator .tabulator-alert .tabulator-alert-msg{display:inline-
block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-
weight:700;font-size:16px}.tabulator .tabulator-alert .tabulator-alert-
msg.tabulator-alert-state-msg{border:4px solid
#333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-
state-error{border:4px solid #d00;color:#590000}.tabulator-
row{position:relative;box-sizing:border-box;min-height:22px;background-
color:#666}.tabulator-row.tabulator-row-even{background-color:#444}@media
(hover:hover) and (pointer:fine){.tabulator-row.tabulator-
selectable:hover{background-color:#999;cursor:pointer}}.tabulator-row.tabulator-
selected{background-color:#000}@media (hover:hover) and (pointer:fine){.tabulator-
row.tabulator-selected:hover{background-color:#888;cursor:pointer}}.tabulator-
row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-
row.tabulator-moving{position:absolute;border-top:1px solid #888;border-bottom:1px
solid #888;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-
handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-
row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and
(pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-
resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-
box;padding:5px;border-top:1px solid #888;border-bottom:1px solid #888}.tabulator-
row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-
responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-
collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-
collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-
cell{display:inline-block;position:relative;box-sizing:border-
box;padding:4px;border-right:1px solid #888;vertical-align:middle;white-
space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-
cell.tabulator-frozen{display:inline-block;position:sticky;left:0;background-
color:inherit;z-index:10}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-
frozen-left{border-right:2px solid #888}.tabulator-row .tabulator-cell.tabulator-
frozen.tabulator-frozen-right{border-left:2px solid #888}.tabulator-row .tabulator-
cell.tabulator-editing{border:1px solid #999;outline:none;padding:0}.tabulator-
row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-
cell.tabulator-editing
select{border:1px;background:transparent;outline:none}.tabulator-row .tabulator-
cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-
cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-
validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-
row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-
items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-
webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-
cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-
row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-
handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row
.tabulator-cell .tabulator-data-tree-branch-empty{display:inline-
block;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-
branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-
9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid
#888;border-bottom:2px solid #888}.tabulator-row .tabulator-cell .tabulator-data-
tree-control{display:inline-flex;justify-content:center;align-
items:center;vertical-align:middle;height:11px;width:11px;margin-
right:5px;border:1px solid #fff;border-
radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and
(pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-
control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-row .tabulator-
cell .tabulator-data-tree-control .tabulator-data-tree-control-
collapse{display:inline-
block;position:relative;height:7px;width:1px;background:transparent}.tabulator-
row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-
collapse:after{position:absolute;content:"";left:-
3px;top:3px;height:1px;width:7px;background:#fff}.tabulator-row .tabulator-
cell .tabulator-data-tree-control .tabulator-data-tree-control-
expand{display:inline-
block;position:relative;height:7px;width:1px;background:#fff}.tabulator-
row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-
expand:after{position:absolute;content:"";left:-
3px;top:3px;height:1px;width:7px;background:#fff}.tabulator-row .tabulator-
cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-
items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-
webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-
radius:20px;background:#666;color:#666;font-weight:700;font-size:1.1em}@media
(hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-
responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-
row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-
responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-
cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-
toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-
collapse-toggle svg{stroke:#666}.tabulator-row .tabulator-cell .tabulator-
responsive-collapse-toggle .tabulator-responsive-collapse-toggle-
close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-
light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-
row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-
right:1px solid #888;border-top:1px solid #999;padding:5px 5px 5px
10px;background:#ccc;font-weight:700}.tabulator-row.tabulator-group.tabulator-
group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid
transparent;border-right:6px solid transparent;border-top:6px solid #666;border-
bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-
left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-
left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-
left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-
left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-
left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-
block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-
block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-
bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-
align:middle}.tabulator-row.tabulator-group span{margin-
left:10px;color:#d00}.tabulator-popup-container{position:absolute;display:inline-
block;box-sizing:border-box;background:#666;border:1px solid #888;box-shadow:0 0
5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-
scrolling:touch;z-index:10000}.tabulator-popup{padding:5px;border-
radius:3px}.tabulator-tooltip{max-width:Min(500px,100%);padding:3px 5px;border-
radius:2px;box-shadow:none;font-size:12px;pointer-events:none}.tabulator-
menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px
10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-
disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-
menu .tabulator-menu-item:not(.tabulator-menu-item-
disabled):hover{cursor:pointer;background:#444}}.tabulator-menu .tabulator-menu-
item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-
menu-item.tabulator-menu-item-submenu:after{display:inline-
block;position:absolute;top:calc(5px
+ .4em);right:10px;height:7px;width:7px;content:"";border-color:#888;border-
style:solid;border-width:1px 1px 0 0;vertical-
align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-
top:1px solid #888}.tabulator-edit-list{max-height:200px;font-size:14px;overflow-
y:auto;-webkit-overflow-scrolling:touch}.tabulator-edit-list .tabulator-edit-list-
item{padding:4px;color:#fff;outline:none}.tabulator-edit-list .tabulator-edit-list-
item.active{color:#666;background:#999}.tabulator-edit-list .tabulator-edit-list-
item.active.focused{outline:1px solid hsla(0,0%,40%,.5)}.tabulator-edit-
list .tabulator-edit-list-item.focused{outline:1px solid #999}@media (hover:hover)
and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-
item:hover{cursor:pointer;color:#666;background:#999}}.tabulator-edit-
list .tabulator-edit-list-placeholder{padding:4px;color:#fff;text-
align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px
solid #888;padding:6px 4px 4px;color:#fff;font-weight:700}.tabulator-edit-
list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-
list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-
left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-
group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-
group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-
group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-
item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-
list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-
list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-
left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-
align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-
col{text-align:initial;border-left:1px solid #aaa;border-
right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-
col-group .tabulator-col-group-cols{margin-right:0;margin-left:-
1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-
sortable .tabulator-col-title{padding-right:0;padding-
left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-
content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-
rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid
#888}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-
branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-
right-radius:1px;border-left:initial;border-right:2px solid
#888}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-
control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-
row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid
#888}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-
frozen.tabulator-frozen-right{border-right:2px solid #888}.tabulator.tabulator-
rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-
left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-
calcs-holder{text-align:initial}.tabulator-print-
fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-
index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen)
{display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-
print-table .tabulator-data-tree-branch{display:inline-block;vertical-
align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-
left-radius:1px;border-left:2px solid #888;border-bottom:2px solid #888}.tabulator-
print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px
solid #999;border-right:1px solid #888;border-top:1px solid #999;padding:5px 5px
5px 10px;background:#ccc;font-weight:700;min-width:100%}@media (hover:hover) and
(pointer:fine){.tabulator-print-table .tabulator-print-table-
group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}}.tabulator-print-
table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-
right:10px;border-left:6px solid transparent;border-right:6px solid
transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-
table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!
important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-
level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-
table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-
print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-
left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-
group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-
print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-
table .tabulator-print-table-group .tabulator-arrow{display:inline-
block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-
bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-
align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-
left:10px;color:#d00}.tabulator-print-table
.tabulator-data-tree-control{display:inline-flex;justify-content:center;align-
items:center;vertical-align:middle;height:11px;width:11px;margin-
right:5px;border:1px solid #fff;border-
radius:2px;background:rgba(0,0,0,.1);overflow:hidden}@media (hover:hover) and
(pointer:fine){.tabulator-print-table .tabulator-data-tree-
control:hover{cursor:pointer;background:rgba(0,0,0,.2)}}.tabulator-print-
table .tabulator-data-tree-control .tabulator-data-tree-control-
collapse{display:inline-
block;position:relative;height:7px;width:1px;background:transparent}.tabulator-
print-table .tabulator-data-tree-control .tabulator-data-tree-control-
collapse:after{position:absolute;content:"";left:-
3px;top:3px;height:1px;width:7px;background:#fff}.tabulator-print-table .tabulator-
data-tree-control .tabulator-data-tree-control-expand{display:inline-
block;position:relative;height:7px;width:1px;background:#fff}.tabulator-print-table
.tabulator-data-tree-control .tabulator-data-tree-control-
expand:after{position:absolute;content:"";left:-
3px;top:3px;height:1px;width:7px;background:#fff}.tabulator{background-
color:#222}.tabulator .tabulator-header .tabulator-col{background-
color:#333}.tabulator .tabulator-header .tabulator-col .tabulator-col-
content .tabulator-col-title .tabulator-title-
editor{color:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-header-
filter input,.tabulator .tabulator-header .tabulator-col .tabulator-header-filter
select{border:1px solid #999;background:#444;color:#fff}.tabulator .tabulator-
header .tabulator-calcs-holder,.tabulator .tabulator-header .tabulator-calcs-holder
.tabulator-row{background:#1a1a1a!important}.tabulator .tabulator-
footer .tabulator-calcs-holder,.tabulator .tabulator-footer .tabulator-calcs-holder
.tabulator-row{background:#262626!important}.tabulator .tabulator-
footer .tabulator-page-counter,.tabulator .tabulator-footer .tabulator-paginator
label{color:#fff}.tabulator .tabulator-footer .tabulator-page{color:#333;font-
family:inherit;font-weight:inherit;font-size:inherit}.tabulator-row.tabulator-
group{min-width:100%;color:#333}@media (hover:hover) and (pointer:fine){.tabulator-
row.tabulator-group:hover{cursor:pointer;background-
color:rgba(0,0,0,.1)}}.tabulator-row.tabulator-group span{color:#666}.tabulator-
edit-select-list{background:#fff}.tabulator-edit-select-list .tabulator-edit-
select-list-item{color:#666}.tabulator-edit-select-list .tabulator-edit-select-
list-item.active{color:#999;background:#444}.tabulator-edit-select-list .tabulator-
edit-select-list-item.active.focused{outline:1px solid
hsla(0,0%,60%,.5)}.tabulator-edit-select-list .tabulator-edit-select-list-
item.focused{outline:1px solid #444}@media (hover:hover) and (pointer:fine)
{.tabulator-edit-select-list .tabulator-edit-select-list-
item:hover{color:#999;background:#666}}.tabulator-print-table .tabulator-print-
table-group{color:#333}',""]);const a=s},82609:e=>{"use
strict";e.exports=function(e){var t=[];return t.toString=function(){return
this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports
(".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2],"
{")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):"","
{")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(
e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var
a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var
u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||
(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):"","
{").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2],"
{").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],")
{").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},78991:e=>{"use
strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?
e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \
t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/
g,"\\n"),'"'):e):e}},39601:e=>{"use strict";e.exports=function(e){return
e[1]}},18105:function(e,t,n){"use strict";var r=this&&this.__importDefault||
function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.attributeRules=void
0;var i=r(n(31365)),o=/[-[\]{}()*+?.,\\^$|#\s]/g;function s(e){return
e.replace(o,"\\$&")}var a=new Set(["accept","accept-
charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","c
olor","compact","declare","defer","dir","direction","disabled","enctype","face","fr
ame","hreflang","http-
equiv","lang","language","link","media","method","multiple","nohref","noresize","no
shade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shap
e","target","text","type","valign","valuetype","vlink"]);function c(e,t)
{return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!
t.quirksMode:!t.xmlMode&&a.has(e.name)}t.attributeRules={equals:function(e,t,n){var
r=n.adapter,i=t.name,o=t.value;return c(t,n)?(o=o.toLowerCase(),function(t){var
n=r.getAttributeValue(t,i);return null!
=n&&n.length===o.length&&n.toLowerCase()===o&&e(t)}):function(t){return
r.getAttributeValue(t,i)===o&&e(t)}},hyphen:function(e,t,n){var
r=n.adapter,i=t.name,o=t.value,s=o.length;return c(t,n)?
(o=o.toLowerCase(),function(t){var n=r.getAttributeValue(t,i);return null!
=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s).toLowerCase()===o&&e(t)}):func
tion(t){var n=r.getAttributeValue(t,i);return null!
=n&&(n.length===s||"-"===n.charAt(s))&&n.substr(0,s)===o&&e(t)}},element:function(e
,t,n){var r=n.adapter,o=t.name,a=t.value;if(/\s/.test(a))return
i.default.falseFunc;var u=new RegExp("(?:^|\\s)".concat(s(a),"(?:$|\\
s)"),c(t,n)?"i":"");return function(t){var n=r.getAttributeValue(t,o);return null!
=n&&n.length>=a.length&&u.test(n)&&e(t)}},exists:function(e,t,n){var
r=t.name,i=n.adapter;return function(t){return
i.hasAttrib(t,r)&&e(t)}},start:function(e,t,n){var
r=n.adapter,o=t.name,s=t.value,a=s.length;return 0===a?i.default.falseFunc:c(t,n)?
(s=s.toLowerCase(),function(t){var n=r.getAttributeValue(t,o);return null!
=n&&n.length>=a&&n.substr(0,a).toLowerCase()===s&&e(t)}):function(t){var n;return!!
(null===(n=r.getAttributeValue(t,o))||void 0===n?void
0:n.startsWith(s))&&e(t)}},end:function(e,t,n){var
r=n.adapter,o=t.name,s=t.value,a=-s.length;return 0===a?i.default.falseFunc:c(t,n)?
(s=s.toLowerCase(),function(t){var n;return(null===(n=r.getAttributeValue(t,o))||
void 0===n?void 0:n.substr(a).toLowerCase())===s&&e(t)}):function(t){var n;return!!
(null===(n=r.getAttributeValue(t,o))||void 0===n?void
0:n.endsWith(s))&&e(t)}},any:function(e,t,n){var
r=n.adapter,o=t.name,a=t.value;if(""===a)return i.default.falseFunc;if(c(t,n)){var
u=new RegExp(s(a),"i");return function(t){var n=r.getAttributeValue(t,o);return
null!=n&&n.length>=a.length&&u.test(n)&&e(t)}}return function(t){var n;return!!
(null===(n=r.getAttributeValue(t,o))||void 0===n?void
0:n.includes(a))&&e(t)}},not:function(e,t,n){var
r=n.adapter,i=t.name,o=t.value;return""===o?function(t){return!!
r.getAttributeValue(t,i)&&e(t)}:c(t,n)?(o=o.toLowerCase(),function(t){var
n=r.getAttributeValue(t,i);return(null==n||n.length!==o.length||n.toLowerCase()!
==o)&&e(t)}):function(t){return r.getAttributeValue(t,i)!
==o&&e(t)}}}},75716:function(e,t,n){"use strict";var r=this&&this.__createBinding||
(Object.create?function(e,t,n,r){void 0===r&&(r=n);var
i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||
i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.compileToken=t.compileUnsafe=t.compile=void 0;var
a=n(23658),c=s(n(31365)),u=o(n(23055)),l=n(49919),h=n(43973);function d(e,t,n)
{return v("string"==typeof e?(0,a.parse)(e):e,t,n)}function f(e){return
e.type===a.SelectorType.Pseudo&&("scope"===e.name||
Array.isArray(e.data)&&e.data.some((function(e){return
e.some(f)})))}t.compile=function(e,t,n){var r=d(e,t,n);return(0,h.ensureIsTag)
(r,t.adapter)},t.compileUnsafe=d;var
p={type:a.SelectorType.Descendant},g={type:"_flexibleDescendant"},m={type:a.Selecto
rType.Pseudo,name:"scope",data:null};function v(e,t,n){var
r;e.forEach(u.default),n=null!==(r=t.context)&&void 0!==r?r:n;var
i=Array.isArray(n),o=n&&(Array.isArray(n)?n:[n]);if(!1!==t.relativeSelector)!
function(e,t,n){for(var r=t.adapter,i=!!(null==n?void 0:n.every((function(e){var
t=r.isTag(e)&&r.getParent(e);return e===h.PLACEHOLDER_ELEMENT||
t&&r.isTag(t)}))),o=0,s=e;o<s.length;o++){var
c=s[o];if(c.length>0&&(0,u.isTraversal)(c[0])&&c[0].type!
==a.SelectorType.Descendant);else{if(!i||
c.some(f))continue;c.unshift(p)}c.unshift(m)}}(e,t,o);else if(e.some((function(e)
{return e.length>0&&(0,u.isTraversal)(e[0])})))throw new Error("Relative selectors
are not allowed when the `relativeSelector` option is disabled");var s=!
1,d=e.map((function(e){if(e.length>=2){var n=e[0],r=e[1];n.type!
==a.SelectorType.Pseudo||"scope"!==n.name||(i&&r.type===a.SelectorType.Descendant?
e[1]=g:r.type!==a.SelectorType.Adjacent&&r.type!==a.SelectorType.Sibling||(s=!
0))}return function(e,t,n){var r;return e.reduce((function(e,r){return
e===c.default.falseFunc?c.default.falseFunc:(0,l.compileGeneralSelector)
(e,r,t,n,v)}),null!==(r=t.rootFunc)&&void 0!==r?r:c.default.trueFunc)}
(e,t,o)})).reduce(b,c.default.falseFunc);return
d.shouldTestNextSiblings=s,d}function b(e,t){return t===c.default.falseFunc||
e===c.default.trueFunc?e:e===c.default.falseFunc||t===c.default.trueFunc?
t:function(n){return
e(n)||t(n)}}t.compileToken=v},49919:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.compileGeneralSelector=void 0;var r=n(18105),i=n(17466),o=n(23658);function
s(e,t){var n=t.getParent(e);return n&&t.isTag(n)?
n:null}t.compileGeneralSelector=function(e,t,n,a,c){var
u=n.adapter,l=n.equals;switch(t.type){case o.SelectorType.PseudoElement:throw new
Error("Pseudo-elements are not supported by css-select");case
o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet
supported by css-select");case o.SelectorType.Attribute:if(null!=t.namespace)throw
new Error("Namespaced attributes are not yet supported by css-select");return
n.xmlMode&&!n.lowerCaseAttributeNames||
(t.name=t.name.toLowerCase()),r.attributeRules[t.action](e,t,n);case
o.SelectorType.Pseudo:return(0,i.compilePseudoSelector)(e,t,n,a,c);case
o.SelectorType.Tag:if(null!=t.namespace)throw new Error("Namespaced tag names are
not yet supported by css-select");var h=t.name;return n.xmlMode&&!n.lowerCaseTags||
(h=h.toLowerCase()),function(t){return u.getName(t)===h&&e(t)};case
o.SelectorType.Descendant:if(!1===n.cacheResults||"undefined"==typeof
WeakSet)return function(t){for(var n=t;n=s(n,u);)if(e(n))return!0;return!1};var
d=new WeakSet;return function(t){for(var n=t;n=s(n,u);)if(!d.has(n))
{if(u.isTag(n)&&e(n))return!0;d.add(n)}return!1};case"_flexibleDescendant":return
function(t){var n=t;do{if(e(n))return!0}while(n=s(n,u));return!1};case
o.SelectorType.Parent:return function(t){return u.getChildren(t).some((function(t)
{return u.isTag(t)&&e(t)}))};case o.SelectorType.Child:return function(t){var
n=u.getParent(t);return null!=n&&u.isTag(n)&&e(n)};case
o.SelectorType.Sibling:return function(t){for(var
n=u.getSiblings(t),r=0;r<n.length;r++){var
i=n[r];if(l(t,i))break;if(u.isTag(i)&&e(i))return!0}return!1};case
o.SelectorType.Adjacent:return u.prevElementSibling?function(t){var
n=u.prevElementSibling(t);return null!=n&&e(n)}:function(t){for(var
n,r=u.getSiblings(t),i=0;i<r.length;i++){var
o=r[i];if(l(t,o))break;u.isTag(o)&&(n=o)}return!!n&&e(n)};case
o.SelectorType.Universal:if(null!=t.namespace&&"*"!==t.namespace)throw new
Error("Namespaced universal selectors are not yet supported by css-select");return
e}}},38062:function(e,t,n){"use strict";var r=this&&this.__createBinding||
(Object.create?function(e,t,n,r){void 0===r&&(r=n);var
i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||
i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.aliases=t.pseudos=t.filters=t.is=t.selectOne=t.selectAll=t.prepareContext=t._
compileToken=t._compileUnsafe=t.compile=void 0;var
a=o(n(64622)),c=s(n(31365)),u=n(75716),l=n(43973),h=function(e,t){return
e===t},d={adapter:a,equals:h};function f(e){var t,n,r,i,o=null!=e?e:d;return null!
==(t=o.adapter)&&void 0!==t||(o.adapter=a),null!==(n=o.equals)&&void 0!==n||
(o.equals=null!==(i=null===(r=o.adapter)||void 0===r?void 0:r.equals)&&void 0!==i?
i:h),o}function p(e){return function(t,n,r){var i=f(n);return e(t,i,r)}}function
g(e){return function(t,n,r){var i=f(r);"function"!=typeof t&&(t=(0,u.compileUnsafe)
(t,i,n));var o=m(n,i.adapter,t.shouldTestNextSiblings);return e(t,o,i)}}function
m(e,t,n){return void 0===n&&(n=!1),n&&(e=function(e,t){for(var n=Array.isArray(e)?
e.slice(0):[e],r=n.length,i=0;i<r;i++){var o=(0,l.getNextSiblings)
(n[i],t);n.push.apply(n,o)}return n}(e,t)),Array.isArray(e)?
t.removeSubsets(e):t.getChildren(e)}t.compile=p(u.compile),t._compileUnsafe=p(u.com
pileUnsafe),t._compileToken=p(u.compileToken),t.prepareContext=m,t.selectAll=g((fun
ction(e,t,n){return e!==c.default.falseFunc&&t&&0!==t.length?
n.adapter.findAll(e,t):[]})),t.selectOne=g((function(e,t,n){return e!
==c.default.falseFunc&&t&&0!==t.length?
n.adapter.findOne(e,t):null})),t.is=function(e,t,n){var
r=f(n);return("function"==typeof t?t:(0,u.compile)(t,r))
(e)},t.default=t.selectAll;var v=n(17466);Object.defineProperty(t,"filters",
{enumerable:!0,get:function(){return
v.filters}}),Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return
v.pseudos}}),Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return
v.aliases}})},34169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.aliases=void 0,t.aliases={"any-link":":is(a, area, link)
[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input,
select, textarea, optgroup, option)[disabled],\n optgroup[disabled] >
option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\
n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio],
input[type=checkbox])[checked], option:selected)",required:":is(input, select,
textarea)[required]",optional:":is(input, select,
textarea):not([required])",selected:"option:is([selected],
select:not([multiple]):not(:has(> option[selected])) > :first-of-
type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",rad
io:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",
parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button,
input[type=button])",input:":is(input, textarea, select,
button)",text:"input:is(:not([type!='']), [type=text])"}},74449:function(e,t,n)
{"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?
e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.filters=void
0;var i=r(n(7346)),o=r(n(31365));function s(e,t){return function(n){var
r=t.getParent(n);return null!=r&&t.isTag(r)&&e(n)}}function a(e){return
function(t,n,r){var i=r.adapter[e];return"function"!=typeof i?
o.default.falseFunc:function(e){return
i(e)&&t(e)}}}t.filters={contains:function(e,t,n){var r=n.adapter;return function(n)
{return e(n)&&r.getText(n).includes(t)}},icontains:function(e,t,n){var
r=n.adapter,i=t.toLowerCase();return function(t){return
e(t)&&r.getText(t).toLowerCase().includes(i)}},"nth-child":function(e,t,n){var
r=n.adapter,a=n.equals,c=(0,i.default)(t);return c===o.default.falseFunc?
o.default.falseFunc:c===o.default.trueFunc?s(e,r):function(t){for(var
n=r.getSiblings(t),i=0,o=0;o<n.length&&!a(t,n[o]);o++)r.isTag(n[o])&&i++;return
c(i)&&e(t)}},"nth-last-child":function(e,t,n){var
r=n.adapter,a=n.equals,c=(0,i.default)(t);return c===o.default.falseFunc?
o.default.falseFunc:c===o.default.trueFunc?s(e,r):function(t){for(var
n=r.getSiblings(t),i=0,o=n.length-1;o>=0&&!a(t,n[o]);o--)r.isTag(n[o])&&i++;return
c(i)&&e(t)}},"nth-of-type":function(e,t,n){var
r=n.adapter,a=n.equals,c=(0,i.default)(t);return c===o.default.falseFunc?
o.default.falseFunc:c===o.default.trueFunc?s(e,r):function(t){for(var
n=r.getSiblings(t),i=0,o=0;o<n.length;o++){var
s=n[o];if(a(t,s))break;r.isTag(s)&&r.getName(s)===r.getName(t)&&i++}return
c(i)&&e(t)}},"nth-last-of-type":function(e,t,n){var
r=n.adapter,a=n.equals,c=(0,i.default)(t);return c===o.default.falseFunc?
o.default.falseFunc:c===o.default.trueFunc?s(e,r):function(t){for(var
n=r.getSiblings(t),i=0,o=n.length-1;o>=0;o--){var
s=n[o];if(a(t,s))break;r.isTag(s)&&r.getName(s)===r.getName(t)&&i++}return
c(i)&&e(t)}},root:function(e,t,n){var r=n.adapter;return function(t){var
n=r.getParent(t);return(null==n||!r.isTag(n))&&e(t)}},scope:function(e,n,r,i){var
o=r.equals;return i&&0!==i.length?1===i.length?function(t){return
o(i[0],t)&&e(t)}:function(t){return
i.includes(t)&&e(t)}:t.filters.root(e,n,r)},hover:a("isHovered"),visited:a("isVisit
ed"),active:a("isActive")}},17466:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.compilePseudoSelector=t.aliases=t.pseudos=t.filters=void 0;var
r=n(23658),i=n(74449);Object.defineProperty(t,"filters",{enumerable:!
0,get:function(){return i.filters}});var
o=n(98702);Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return
o.pseudos}});var s=n(34169);Object.defineProperty(t,"aliases",{enumerable:!
0,get:function(){return s.aliases}});var
a=n(43973);t.compilePseudoSelector=function(e,t,n,c,u){var
l,h=t.name,d=t.data;if(Array.isArray(d)){if(!(h in a.subselects))throw new
Error("Unknown pseudo-class :".concat(h,"(").concat(d,")"));return a.subselects[h]
(e,d,n,c,u)}var f=null===(l=n.pseudos)||void 0===l?void 0:l[h],p="string"==typeof
f?f:s.aliases[h];if("string"==typeof p){if(null!=d)throw new Error("Pseudo
".concat(h," doesn't have any arguments"));var g=(0,r.parse)(p);return
a.subselects.is(e,g,n,c,u)}if("function"==typeof f)return(0,o.verifyPseudoArgs)
(f,h,d,1),function(t){return f(t,d)&&e(t)};if(h in i.filters)return i.filters[h]
(e,d,n,c);if(h in o.pseudos){var m=o.pseudos[h];return(0,o.verifyPseudoArgs)
(m,h,d,2),function(t){return m(t,n,d)&&e(t)}}throw new Error("Unknown pseudo-
class :".concat(h))}},98702:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.verifyPseudoArgs=t.pseudos=void 0,t.pseudos={empty:function(e,t){var
n=t.adapter;return!n.getChildren(e).some((function(e){return n.isTag(e)||""!
==n.getText(e)}))},"first-child":function(e,t){var
n=t.adapter,r=t.equals;if(n.prevElementSibling)return
null==n.prevElementSibling(e);var i=n.getSiblings(e).find((function(e){return
n.isTag(e)}));return null!=i&&r(e,i)},"last-child":function(e,t){for(var
n=t.adapter,r=t.equals,i=n.getSiblings(e),o=i.length-1;o>=0;o--)
{if(r(e,i[o]))return!0;if(n.isTag(i[o]))break}return!1},"first-of-
type":function(e,t){for(var
n=t.adapter,r=t.equals,i=n.getSiblings(e),o=n.getName(e),s=0;s<i.length;s++){var
a=i[s];if(r(e,a))return!0;if(n.isTag(a)&&n.getName(a)===o)break}return!1},"last-
of-type":function(e,t){for(var
n=t.adapter,r=t.equals,i=n.getSiblings(e),o=n.getName(e),s=i.length-1;s>=0;s--){var
a=i[s];if(r(e,a))return!0;if(n.isTag(a)&&n.getName(a)===o)break}return!1},"only-of-
type":function(e,t){var n=t.adapter,r=t.equals,i=n.getName(e);return
n.getSiblings(e).every((function(t){return r(e,t)||!n.isTag(t)||n.getName(t)!
==i}))},"only-child":function(e,t){var n=t.adapter,r=t.equals;return
n.getSiblings(e).every((function(t){return r(e,t)||!
n.isTag(t)}))}},t.verifyPseudoArgs=function(e,t,n,r){if(null===n)
{if(e.length>r)throw new Error("Pseudo-class :".concat(t," requires an
argument"))}else if(e.length===r)throw new Error("Pseudo-class :".concat(t,"
doesn't have any arguments"))}},43973:function(e,t,n){"use strict";var
r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var
r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||
(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||
Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return
e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.subselects=t.getNextSiblings=t.ensureIsTag=t.PLACEHOLDER_ELEMENT=void 0;var
o=i(n(31365)),s=n(23055);function a(e,t){return e===o.default.falseFunc?
o.default.falseFunc:function(n){return t.isTag(n)&&e(n)}}function c(e,t){var
n=t.getSiblings(e);if(n.length<=1)return[];var r=n.indexOf(e);return r<0||
r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function u(e){return{xmlMode:!!
e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!
e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!
e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}t.PLACEHOLDER_E
LEMENT={},t.ensureIsTag=a,t.getNextSiblings=c;var l=function(e,t,n,r,i){var
s=i(t,u(n),r);return s===o.default.trueFunc?e:s===o.default.falseFunc?
o.default.falseFunc:function(t){return
s(t)&&e(t)}};t.subselects={is:l,matches:l,where:l,not:function(e,t,n,r,i){var
s=i(t,u(n),r);return s===o.default.falseFunc?e:s===o.default.trueFunc?
o.default.falseFunc:function(t){return!s(t)&&e(t)}},has:function(e,n,i,l,h){var
d=i.adapter,f=u(i);f.relativeSelector=!0;var p=n.some((function(e){return
e.some(s.isTraversal)}))?[t.PLACEHOLDER_ELEMENT]:void
0,g=h(n,f,p);if(g===o.default.falseFunc)return o.default.falseFunc;var
m=a(g,d);if(p&&g!==o.default.trueFunc){var v=g.shouldTestNextSiblings,b=void 0!
==v&&v;return function(t){if(!e(t))return!1;p[0]=t;var n=d.getChildren(t),i=b?
r(r([],n,!0),c(t,d),!0):n;return d.existsOne(m,i)}}return function(t){return
e(t)&&d.existsOne(m,d.getChildren(t))}}}},23055:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=void 0;var
r=n(23658),i=new Map([[r.SelectorType.Universal,50],[r.SelectorType.Tag,30],
[r.SelectorType.Attribute,1],[r.SelectorType.Pseudo,0]]);t.isTraversal=function(e)
{return!i.has(e.type)};var o=new Map([[r.AttributeAction.Exists,10],
[r.AttributeAction.Equals,8],[r.AttributeAction.Not,7],[r.AttributeAction.Start,6],
[r.AttributeAction.End,6],[r.AttributeAction.Any,5]]);function s(e){var t,n,a=null!
==(t=i.get(e.type))&&void 0!==t?t:-1;return e.type===r.SelectorType.Attribute?
(a=null!==(n=o.get(e.action))&&void 0!==n?
n:4,e.action===r.AttributeAction.Equals&&"id"===e.name&&(a=9),e.ignoreCase&&(a>>=1)
):e.type===r.SelectorType.Pseudo&&(e.data?"has"===e.name||"contains"===e.name?
a=0:Array.isArray(e.data)?(a=Math.min.apply(Math,e.data.map((function(e){return
Math.min.apply(Math,e.map(s))}))))<0&&(a=0):a=2:a=3),a}t.default=function(e)
{for(var t=e.map(s),n=1;n<e.length;n++){var r=t[n];if(!(r<0))for(var i=n-
1;i>=0&&r<t[i];i--){var o=e[i+1];e[i+1]=e[i],e[i]=o,t[i+1]=t[i],t[i]=r}}}},23658:
(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AttributeAction:()=>o,IgnoreCaseMode:
()=>i,SelectorType:()=>r,isTraversal:()=>l,parse:()=>m,stringify:
()=>S}),function(e)
{e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-
element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",
e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator=
"column-combinator"}(r||(r={}));const
i={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var o;!
function(e)
{e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.
Hyphen="hyphen",e.Not="not",e.Start="start"}(o||(o={}));const s=/^[^\\#]?(?:\\(?:[\
da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,a=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,c=new
Map([[126,o.Element],[94,o.Start],[36,o.End],[42,o.Any],[33,o.Not],
[124,o.Hyphen]]),u=new Set(["has","not","matches","is","where","host","host-
context"]);function l(e){switch(e.type){case r.Adjacent:case r.Child:case
r.Descendant:case r.Parent:case r.Sibling:case r.ColumnCombinator:return!
0;default:return!1}}const h=new Set(["contains","icontains"]);function d(e,t,n)
{const r=parseInt(t,16)-65536;return r!=r||n?t:r<0?
String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function
f(e){return e.replace(a,d)}function p(e){return 39===e||34===e}function g(e){return
32===e||9===e||10===e||12===e||13===e}function m(e){const t=[],n=v(t,`$
{e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return
t}function v(e,t,n){let i=[];function a(e){const r=t.slice(n+e).match(s);if(!
r)throw new Error(`Expected name, found ${t.slice(n)}`);const[i]=r;return
n+=e+i.length,f(i)}function d(e){for(n+=e;n<t.length&&g(t.charCodeAt(n));)n+
+}function m(){const e=n+=1;let r=1;for(;r>0&&n<t.length;n++)40!==t.charCodeAt(n)||
b(n)?41!==t.charCodeAt(n)||b(n)||r--:r++;if(r)throw new Error("Parenthesis not
matched");return f(t.slice(e,n-1))}function b(e){let n=0;for(;92===t.charCodeAt(--
e);)n++;return 1==(1&n)}function y(){if(i.length>0&&l(i[i.length-1]))throw new
Error("Did not expect successive traversals.")}function w(e)
{i.length>0&&i[i.length-1].type===r.Descendant?i[i.length-1].type=e:
(y(),i.push({type:e}))}function _(e,t)
{i.push({type:r.Attribute,name:e,action:t,value:a(1),namespace:null,ignoreCase:"qui
rks"})}function E(){if(i.length&&i[i.length-
1].type===r.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-
selector");e.push(i)}if(d(0),t.length===n)return n;e:for(;n<t.length;){const
e=t.charCodeAt(n);switch(e){case 32:case 9:case 10:case 12:case 13:0!
==i.length&&i[0].type===r.Descendant||
(y(),i.push({type:r.Descendant})),d(1);break;case 62:w(r.Child),d(1);break;case
60:w(r.Parent),d(1);break;case 126:w(r.Sibling),d(1);break;case
43:w(r.Adjacent),d(1);break;case 46:_("class",o.Element);break;case
35:_("id",o.Equals);break;case 91:{let e;d(1);let s=null;124===t.charCodeAt(n)?
e=a(1):t.startsWith("*|",n)?(s="*",e=a(2)):(e=a(0),124===t.charCodeAt(n)&&61!
==t.charCodeAt(n+1)&&(s=e,e=a(1))),d(0);let u=o.Exists;const
l=c.get(t.charCodeAt(n));if(l){if(u=l,61!==t.charCodeAt(n+1))throw new
Error("Expected `=`");d(2)}else 61===t.charCodeAt(n)&&(u=o.Equals,d(1));let
h="",m=null;if("exists"!==u){if(p(t.charCodeAt(n))){const e=t.charCodeAt(n);let
r=n+1;for(;r<t.length&&(t.charCodeAt(r)!==e||b(r));)r+=1;if(t.charCodeAt(r)!
==e)throw new Error("Attribute value didn't
end");h=f(t.slice(n+1,r)),n=r+1}else{const e=n;for(;n<t.length&&(!
g(t.charCodeAt(n))&&93!==t.charCodeAt(n)||b(n));)n+=1;h=f(t.slice(e,n))}d(0);const
e=32|t.charCodeAt(n);115===e?(m=!1,d(1)):105===e&&(m=!0,d(1))}if(93!
==t.charCodeAt(n))throw new Error("Attribute selector didn't terminate");n+=1;const
v={type:r.Attribute,name:e,action:u,value:h,namespace:s,ignoreCase:m};i.push(v);bre
ak}case 58:{if(58===t.charCodeAt(n+1))
{i.push({type:r.PseudoElement,name:a(2).toLowerCase(),data:40===t.charCodeAt(n)?
m():null});continue}const e=a(1).toLowerCase();let
o=null;if(40===t.charCodeAt(n))if(u.has(e)){if(p(t.charCodeAt(n+1)))throw new
Error(`Pseudo-selector ${e} cannot be quoted`);if(o=[],n=v(o,t,n+1),41!
==t.charCodeAt(n))throw new Error(`Missing closing parenthesis in :${e} ($
{t})`);n+=1}else{if(o=m(),h.has(e)){const
e=o.charCodeAt(0);e===o.charCodeAt(o.length-1)&&p(e)&&(o=o.slice(1,-
1))}o=f(o)}i.push({type:r.Pseudo,name:e,data:o});break}case
44:E(),i=[],d(1);break;default:{if(t.startsWith("/*",n)){const
e=t.indexOf("*/",n+2);if(e<0)throw new Error("Comment was not
terminated");n=e+2,0===i.length&&d(0);break}let o,c=null;if(42===e)n+=1,o="*";else
if(124===e){if(o="",124===t.charCodeAt(n+1))
{w(r.ColumnCombinator),d(2);break}}else{if(!s.test(t.slice(n)))break
e;o=a(0)}124===t.charCodeAt(n)&&124!
==t.charCodeAt(n+1)&&(c=o,42===t.charCodeAt(n+1)?
(o="*",n+=2):o=a(1)),i.push("*"===o?{type:r.Universal,namespace:c}:
{type:r.Tag,name:o,namespace:c})}}}return E(),n}const
b=["\\",'"'],y=[...b,"(",")"],w=new Set(b.map((e=>e.charCodeAt(0)))),_=new
Set(y.map((e=>e.charCodeAt(0)))),E=new
Set([...y,"~","^","$","*","+","!","|",":","[","]","
","."].map((e=>e.charCodeAt(0))));function S(e){return
e.map((e=>e.map(T).join(""))).join(", ")}function T(e,t,n){switch(e.type){case
r.Child:return 0===t?"> ":" > ";case r.Parent:return 0===t?"< ":" < ";case
r.Sibling:return 0===t?"~ ":" ~ ";case r.Adjacent:return 0===t?"+ ":" + ";case
r.Descendant:return" ";case r.ColumnCombinator:return 0===t?"|| ":" || ";case
r.Universal:return"*"===e.namespace&&t+1<n.length&&"name"in n[t+1]?"":`$
{C(e.namespace)}*`;case r.Tag:return A(e);case r.PseudoElement:return`::$
{O(e.name,E)}${null===e.data?"":`(${O(e.data,_)})`}`;case r.Pseudo:return`:$
{O(e.name,E)}${null===e.data?"":`(${"string"==typeof e.data?
O(e.data,_):S(e.data)})`}`;case r.Attribute:
{if("id"===e.name&&e.action===o.Equals&&"quirks"===e.ignoreCase&&!
e.namespace)return`#$
{O(e.value,E)}`;if("class"===e.name&&e.action===o.Element&&"quirks"===e.ignoreCase&
&!e.namespace)return`.${O(e.value,E)}`;const t=A(e);return e.action===o.Exists?`[$
{t}]`:`[${t}${function(e){switch(e){case o.Equals:return"";case
o.Element:return"~";case o.Start:return"^";case o.End:return"$";case
o.Any:return"*";case o.Not:return"!";case o.Hyphen:return"|";case
o.Exists:throw new Error("Shouldn't be here")}}(e.action)}="${O(e.value,w)}"$
{null===e.ignoreCase?"":e.ignoreCase?" i":" s"}]`}}}function A(e){return`$
{C(e.namespace)}${O(e.name,E)}`}function C(e){return null!==e?`$
{"*"===e?"*":O(e,E)}|`:""}function O(e,t){let n=0,r="";for(let i=0;i<e.length;i+
+)t.has(e.charCodeAt(i))&&(r+=`${e.slice(n,i)}\\${e.charAt(i)}`,n=i+1);return
r.length>0?r+e.slice(n):e}},99798:e=>{"use strict";var t,n=function(){function
e(e,t){if("function"!=typeof e)throw new TypeError("DataLoader must be constructed
with a function which accepts Array<key> and returns Promise<Array<value>>, but
got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!
==e.batch))return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if("number"!
=typeof t||t<1)throw new TypeError("maxBatchSize must be a positive number:
"+t);return t}(t),this._batchScheduleFn=function(e){var
t=e&&e.batchScheduleFn;if(void 0===t)return r;if("function"!=typeof t)throw new
TypeError("batchScheduleFn must be a function: "+t);return t}
(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return
function(e){return e};if("function"!=typeof t)throw new TypeError("cacheKeyFn must
be a function: "+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!
==e.cache))return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!
==t){var n=["get","set","delete","clear"].filter((function(e){return t&&"function"!
=typeof t[e]}));if(0!==n.length)throw new TypeError("Custom cacheMap missing
methods: "+n.join(", "))}return t}(t),this._batch=null,this.name=function(e){return
e&&e.name?e.name:null}(t)}var t=e.prototype;return t.load=function(e)
{if(null==e)throw new TypeError("The loader.load() function must be called with a
value, but got: "+String(e)+".");var t=function(e){var t=e._batch;if(null!==t&&!
t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var n={hasDispatched:!
1,keys:[],callbacks:[]};return e._batch=n,e._batchScheduleFn((function(){!
function(e,t){if(t.hasDispatched=!0,0!==t.keys.length){var
n;try{n=e._batchLoadFn(t.keys)}catch(n){return i(e,t,new TypeError("DataLoader must
be constructed with a function which accepts Array<key> and returns
Promise<Array<value>>, but the function errored synchronously: "+String(n)
+"."))}if(!n||"function"!=typeof n.then)return i(e,t,new TypeError("DataLoader must
be constructed with a function which accepts Array<key> and returns
Promise<Array<value>>, but the function did not return a Promise: "+String(n)
+"."));n.then((function(e){if(!s(e))throw new TypeError("DataLoader must be
constructed with a function which accepts Array<key> and returns
Promise<Array<value>>, but the function did not return a Promise of an Array:
"+String(e)+".");if(e.length!==t.keys.length)throw new TypeError("DataLoader must
be constructed with a function which accepts Array<key> and returns
Promise<Array<value>>, but the function did not return a Promise of an Array of the
same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\
n"+String(e));o(t);for(var n=0;n<t.callbacks.length;n++){var r=e[n];r instanceof
Error?t.callbacks[n].reject(r):t.callbacks[n].resolve(r)}})).catch((function(n)
{i(e,t,n)}))}else o(t)}(e,n)})),n}
(this),n=this._cacheMap,r=this._cacheKeyFn(e);if(n){var a=n.get(r);if(a){var
c=t.cacheHits||(t.cacheHits=[]);return new Promise((function(e){c.push((function()
{e(a)}))}))}}t.keys.push(e);var u=new Promise((function(e,n)
{t.callbacks.push({resolve:e,reject:n})}));return
n&&n.set(r,u),u},t.loadMany=function(e){if(!s(e))throw new TypeError("The
loader.loadMany() function must be called with Array<key> but got: "+e+".");for(var
t=[],n=0;n<e.length;n++)t.push(this.load(e[n]).catch((function(e){return
e})));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var
n=this._cacheKeyFn(e);t.delete(n)}return this},t.clearAll=function(){var
e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var
n=this._cacheMap;if(n){var r,i=this._cacheKeyFn(e);void 0===n.get(i)&&(t instanceof
Error?(r=Promise.reject(t)).catch((function()
{})):r=Promise.resolve(t),n.set(i,r))}return this},e}(),r="object"==typeof
process&&"function"==typeof process.nextTick?function(e){t||
(t=Promise.resolve()),t.then((function(){process.nextTick(e)}))}:"function"==typeof
setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e)};function
i(e,t,n){o(t);for(var r=0;r<t.keys.length;r+
+)e.clear(t.keys[r]),t.callbacks[r].reject(n)}function o(e){if(e.cacheHits)for(var
t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function s(e){return"object"==typeof
e&&null!==e&&"number"==typeof e.length&&(0===e.length||
e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=n},88535:
(e,t)=>{"use strict";t.addLeadingZeros=function(e,t){return(e<0?"-":"")
+Math.abs(e).toString().padStart(t,"0")}},2015:(e,t,n)=>{"use
strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function()
{return r.enUS}});var r=n(21332)},92949:(e,t)=>{"use
strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e)
{n=e};let n={}},9351:(e,t,n)=>{"use strict";t.formatters=void 0;var
r=n(45741),i=n(69513),o=n(95303),s=n(32901),a=n(38180),c=n(88535),u=n(56808);functi
on l(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return
0===o?n+String(i):n+String(i)+t+(0,c.addLeadingZeros)(o,2)}function h(e,t){return e
%60==0?(e>0?"-":"+")+(0,c.addLeadingZeros)(Math.abs(e)/60,2):d(e,t)}function
d(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,c.addLeadingZeros)
(Math.trunc(r/60),2)+t+(0,c.addLeadingZeros)(r
%60,2)}t.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t)
{case"G":case"GG":case"GGG":return n.era(r,
{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return
n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const
t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return
u.lightFormatters.y(e,t)},Y:function(e,t,n,r){const i=(0,a.getWeekYear)(e,r),o=i>0?
i:1-i;if("YY"===t){const e=o%100;return(0,c.addLeadingZeros)(e,2)}return"Yo"===t?
n.ordinalNumber(o,{unit:"year"}):(0,c.addLeadingZeros)(o,t.length)},R:function(e,t)
{const n=(0,o.getISOWeekYear)(e);return(0,c.addLeadingZeros)
(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,c.addLeadingZeros)
(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t)
{case"Q":return String(r);case"QQ":return(0,c.addLeadingZeros)(r,2);case"Qo":return
n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,
{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,
{width:"narrow",context:"formatting"});default:return n.quarter(r,
{width:"wide",context:"formatting"})}},q:function(e,t,n){const
r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return
String(r);case"qq":return(0,c.addLeadingZeros)(r,2);case"qo":return
n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,
{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,
{width:"narrow",context:"standalone"});default:return n.quarter(r,
{width:"wide",context:"standalone"})}},M:function(e,t,n){const
r=e.getMonth();switch(t){case"M":case"MM":return
u.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,
{unit:"month"});case"MMM":return n.month(r,
{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,
{width:"narrow",context:"formatting"});default:return n.month(r,
{width:"wide",context:"formatting"})}},L:function(e,t,n){const
r=e.getMonth();switch(t){case"L":return
String(r+1);case"LL":return(0,c.addLeadingZeros)(r+1,2);case"Lo":return
n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,
{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,
{width:"narrow",context:"standalone"});default:return n.month(r,
{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=(0,s.getWeek)
(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,c.addLeadingZeros)
(i,t.length)},I:function(e,t,n){const r=(0,i.getISOWeek)(e);return"Io"===t?
n.ordinalNumber(r,{unit:"week"}):(0,c.addLeadingZeros)
(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),
{unit:"date"}):u.lightFormatters.d(e,t)},D:function(e,t,n){const
i=(0,r.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):
(0,c.addLeadingZeros)(i,t.length)},E:function(e,t,n){const r=e.getDay();switch(t)
{case"E":case"EE":case"EEE":return n.day(r,
{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,
{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,
{width:"short",context:"formatting"});default:return n.day(r,
{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-
r.weekStartsOn+8)%7||7;switch(t){case"e":return
String(o);case"ee":return(0,c.addLeadingZeros)(o,2);case"eo":return
n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,
{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,
{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,
{width:"short",context:"formatting"});default:return n.day(i,
{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-
r.weekStartsOn+8)%7||7;switch(t){case"c":return
String(o);case"cc":return(0,c.addLeadingZeros)(o,t.length);case"co":return
n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,
{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,
{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,
{width:"short",context:"standalone"});default:return n.day(i,
{width:"wide",context:"standalone"})}},i:function(e,t,n){const
r=e.getDay(),i=0===r?7:r;switch(t){case"i":return
String(i);case"ii":return(0,c.addLeadingZeros)(i,t.length);case"io":return
n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,
{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,
{width:"narrow",context:"formatting"});case"iiiiii":return
n.day(r,{width:"short",context:"formatting"});default:return n.day(r,
{width:"wide",context:"formatting"})}},a:function(e,t,n){const
r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,
{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,
{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return
n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,
{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let
i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t)
{case"b":case"bb":return n.dayPeriod(i,
{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,
{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return
n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,
{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let
i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t)
{case"B":case"BB":case"BBB":return n.dayPeriod(i,
{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,
{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,
{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let
t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return
u.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?
n.ordinalNumber(e.getHours(),
{unit:"hour"}):u.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()
%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.addLeadingZeros)
(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?
n.ordinalNumber(r,{unit:"hour"}):(0,c.addLeadingZeros)
(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),
{unit:"minute"}):u.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?
n.ordinalNumber(e.getSeconds(),
{unit:"second"}):u.lightFormatters.s(e,t)},S:function(e,t){return
u.lightFormatters.S(e,t)},X:function(e,t,n){const
r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return
h(r);case"XXXX":case"XX":return d(r);default:return d(r,":")}},x:function(e,t,n)
{const r=e.getTimezoneOffset();switch(t){case"x":return
h(r);case"xxxx":case"xx":return d(r);default:return d(r,":")}},O:function(e,t,n)
{const r=e.getTimezoneOffset();switch(t)
{case"O":case"OO":case"OOO":return"GMT"+l(r,":");default:return"GMT"+d(r,":")}},z:f
unction(e,t,n){const r=e.getTimezoneOffset();switch(t)
{case"z":case"zz":case"zzz":return"GMT"+l(r,":");default:return"GMT"+d(r,":")}},t:f
unction(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,c.addLeadingZeros)
(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,c.addLeadingZeros)
(r,t.length)}}},56808:(e,t,n)=>{"use strict";t.lightFormatters=void 0;var
r=n(88535);t.lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-
n;return(0,r.addLeadingZeros)("yy"===t?i%100:i,t.length)},M(e,t){const
n=e.getMonth();return"M"===t?String(n+1):(0,r.addLeadingZeros)(n+1,2)},d:
(e,t)=>(0,r.addLeadingZeros)(e.getDate(),t.length),a(e,t){const
n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return
n.toUpperCase();case"aaa":return n;case"aaaaa":return
n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.addLeadingZeros)
(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.addLeadingZeros)
(e.getHours(),t.length),m:(e,t)=>(0,r.addLeadingZeros)(e.getMinutes(),t.length),s:
(e,t)=>(0,r.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const
n=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,n-
3));return(0,r.addLeadingZeros)(o,t.length)}}},43191:(e,t)=>{"use
strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return
t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return
t.date({width:"long"});default:return t.date({width:"full"})}},r=(e,t)=>{switch(e)
{case"p":return t.time({width:"short"});case"pp":return
t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return
t.time({width:"full"})}};t.longFormatters={p:r,P:(e,t)=>{const i=e.match(/(P+)
(p+)?/)||[],o=i[1],s=i[2];if(!s)return n(e,t);let a;switch(o)
{case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"}
);break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"f
ull"})}return a.replace("{{date}}",n(o,t)).replace("{{time}}",r(s,t))}}},37814:
(e,t)=>{"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?
Math[e]:Math.trunc)(t);return 0===n?0:n}}},1527:(e,t,n)=>{"use
strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,r.toDate)(e),n=new
Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),
t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-
+n};var r=n(44724)},97963:(e,t)=>{"use
strict";t.isProtectedDayOfYearToken=function(e){return
n.test(e)},t.isProtectedWeekYearToken=function(e){return
r.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const r=function(e,t,n)
{const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\`
instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see:
https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}
(e,t,n);if(console.warn(r),i.includes(e))throw new RangeError(r)};const n=/^D+
$/,r=/^Y+$/,i=["D","DD","YY","YYYY"]},33857:(e,t,n)=>{"use
strict";t.add=function(e,t)
{const{years:n=0,months:a=0,weeks:c=0,days:u=0,hours:l=0,minutes:h=0,seconds:d=0}=t
,f=(0,s.toDate)(e),p=a||n?(0,i.addMonths)(f,a+12*n):f,g=u||c?(0,r.addDays)
(p,u+7*c):p,m=1e3*(d+60*(h+60*l));return(0,o.constructFrom)(e,g.getTime()+m)};var
r=n(83978),i=n(48991),o=n(4589),s=n(44724)},39225:(e,t,n)=>{"use
strict";t.addBusinessDays=function(e,t){const n=(0,a.toDate)(e),c=(0,s.isWeekend)
(n);if(isNaN(t))return(0,r.constructFrom)(e,NaN);const u=n.getHours(),l=t<0?-
1:1,h=Math.trunc(t/5);n.setDate(n.getDate()+7*h);let d=Math.abs(t
%5);for(;d>0;)n.setDate(n.getDate()+l),(0,s.isWeekend)(n)||(d-=1);return
c&&(0,s.isWeekend)(n)&&0!==t&&((0,i.isSaturday)(n)&&n.setDate(n.getDate()+(l<0?2:-
1)),(0,o.isSunday)(n)&&n.setDate(n.getDate()+(l<0?1:-2))),n.setHours(u),n};var
r=n(4589),i=n(52365),o=n(59136),s=n(60991),a=n(44724)},83978:(e,t,n)=>{"use
strict";t.addDays=function(e,t){const n=(0,r.toDate)(e);return isNaN(t)?
(0,i.constructFrom)(e,NaN):t?(n.setDate(n.getDate()+t),n):n};var
r=n(44724),i=n(4589)},41278:(e,t,n)=>{"use strict";t.addHours=function(e,t)
{return(0,r.addMilliseconds)(e,t*i.millisecondsInHour)};var
r=n(67106),i=n(53679)},77673:(e,t,n)=>{"use strict";t.addISOWeekYears=function(e,t)
{return(0,i.setISOWeekYear)(e,(0,r.getISOWeekYear)(e)+t)};var
r=n(95303),i=n(58985)},67106:(e,t,n)=>{"use strict";t.addMilliseconds=function(e,t)
{const n=+(0,r.toDate)(e);return(0,i.constructFrom)(e,n+t)};var
r=n(44724),i=n(4589)},5157:(e,t,n)=>{"use strict";t.addMinutes=function(e,t)
{return(0,r.addMilliseconds)(e,t*i.millisecondsInMinute)};var
r=n(67106),i=n(53679)},48991:(e,t,n)=>{"use strict";t.addMonths=function(e,t){const
n=(0,r.toDate)(e);if(isNaN(t))return(0,i.constructFrom)(e,NaN);if(!t)return n;const
o=n.getDate(),s=(0,i.constructFrom)(e,n.getTime());s.setMonth(n.getMonth()
+t+1,0);return o>=s.getDate()?s:
(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)};var r=n(44724),i=n(4589)},53893:
(e,t,n)=>{"use strict";t.addQuarters=function(e,t){const
n=3*t;return(0,r.addMonths)(e,n)};var r=n(48991)},41488:(e,t,n)=>{"use
strict";t.addSeconds=function(e,t){return(0,r.addMilliseconds)(e,1e3*t)};var
r=n(67106)},75978:(e,t,n)=>{"use strict";t.addWeeks=function(e,t){const
n=7*t;return(0,r.addDays)(e,n)};var r=n(83978)},83366:(e,t,n)=>{"use
strict";t.addYears=function(e,t){return(0,r.addMonths)(e,12*t)};var
r=n(48991)},45801:(e,t,n)=>{"use strict";t.areIntervalsOverlapping=function(e,t,n)
{const[i,o]=[+(0,r.toDate)(e.start),+(0,r.toDate)(e.end)].sort(((e,t)=>e-t)),
[s,a]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return
n?.inclusive?i<=a&&s<=o:i<a&&s<o};var r=n(44724)},73635:(e,t,n)=>{"use
strict";t.clamp=function(e,t){return(0,i.min)([(0,r.max)([e,t.start]),t.end])};var
r=n(25518),i=n(55463)},52649:(e,t,n)=>{"use strict";t.closestIndexTo=function(e,t)
{const n=(0,r.toDate)(e);if(isNaN(Number(n)))return NaN;const i=n.getTime();let
o,s;return t.forEach((function(e,t){const n=(0,r.toDate)
(e);if(isNaN(Number(n)))return o=NaN,void(s=NaN);const a=Math.abs(i-n.getTime());
(null==o||a<s)&&(o=t,s=a)})),o};var r=n(44724)},45099:(e,t,n)=>{"use
strict";t.closestTo=function(e,t){const n=(0,i.toDate)
(e);if(isNaN(Number(n)))return(0,r.constructFrom)(e,NaN);const o=n.getTime();let
s,a;return t.forEach((t=>{const n=(0,i.toDate)(t);if(isNaN(Number(n)))return
s=(0,r.constructFrom)(e,NaN),void(a=NaN);const c=Math.abs(o-n.getTime());(null==s||
c<a)&&(s=n,a=c)})),s};var r=n(4589),i=n(44724)},22835:(e,t,n)=>{"use
strict";t.compareAsc=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)
(t),o=n.getTime()-i.getTime();return o<0?-1:o>0?1:o};var r=n(44724)},32023:
(e,t,n)=>{"use strict";t.compareDesc=function(e,t){const n=(0,r.toDate)
(e),i=(0,r.toDate)(t),o=n.getTime()-i.getTime();return o>0?-1:o<0?1:o};var
r=n(44724)},53679:(e,t)=>{"use
strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secon
dsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsI
nQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=
t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsIn
Hour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void
0,t.daysInWeek=7;const
n=t.daysInYear=365.2425,r=t.maxTime=24*Math.pow(10,8)*60*60*1e3,i=(t.minTime=-
r,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,
t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minut
esInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.months
InYear=12,t.quartersInYear=4,t.secondsInHour=3600),o=(t.secondsInMinute=60,t.second
sInDay=24*i),s=
(t.secondsInWeek=7*o,t.secondsInYear=o*n),a=t.secondsInMonth=s/
12;t.secondsInQuarter=3*a},4589:(e,t)=>{"use strict";t.constructFrom=function(e,t)
{return e instanceof Date?new e.constructor(t):new Date(t)}},56675:(e,t,n)=>{"use
strict";t.daysToWeeks=function(e){const t=e/r.daysInWeek;return Math.trunc(t)};var
r=n(53679)},614:(e,t,n)=>{"use strict";t.differenceInBusinessDays=function(e,t)
{const n=(0,c.toDate)(e);let u=(0,c.toDate)(t);if(!(0,s.isValid)(n)||!(0,s.isValid)
(u))return NaN;const l=(0,i.differenceInCalendarDays)(n,u),h=l<0?-
1:1,d=Math.trunc(l/7);let f=5*d;for(u=(0,r.addDays)(u,7*d);!(0,o.isSameDay)
(n,u);)f+=(0,a.isWeekend)(u)?0:h,u=(0,r.addDays)(u,h);return 0===f?0:f};var
r=n(83978),i=n(45672),o=n(10098),s=n(74390),a=n(60991),c=n(44724)},45672:
(e,t,n)=>{"use strict";t.differenceInCalendarDays=function(e,t){const
n=(0,i.startOfDay)(e),s=(0,i.startOfDay)(t),a=+n-
(0,o.getTimezoneOffsetInMilliseconds)(n),c=+s-(0,o.getTimezoneOffsetInMilliseconds)
(s);return Math.round((a-c)/r.millisecondsInDay)};var
r=n(53679),i=n(72274),o=n(1527)},22375:(e,t,n)=>{"use
strict";t.differenceInCalendarISOWeekYears=function(e,t){return(0,r.getISOWeekYear)
(e)-(0,r.getISOWeekYear)(t)};var r=n(95303)},52087:(e,t,n)=>{"use
strict";t.differenceInCalendarISOWeeks=function(e,t){const n=(0,i.startOfISOWeek)
(e),s=(0,i.startOfISOWeek)(t),a=+n-(0,o.getTimezoneOffsetInMilliseconds)(n),c=+s-
(0,o.getTimezoneOffsetInMilliseconds)(s);return
Math.round((a-c)/r.millisecondsInWeek)};var r=n(53679),i=n(89301),o=n(1527)},96719:
(e,t,n)=>{"use strict";t.differenceInCalendarMonths=function(e,t){const
n=(0,r.toDate)(e),i=(0,r.toDate)(t);return 12*(n.getFullYear()-i.getFullYear())+
(n.getMonth()-i.getMonth())};var r=n(44724)},66393:(e,t,n)=>{"use
strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,i.toDate)
(e),o=(0,i.toDate)(t);return 4*(n.getFullYear()-o.getFullYear())+((0,r.getQuarter)
(n)-(0,r.getQuarter)(o))};var r=n(23350),i=n(44724)},25049:(e,t,n)=>{"use
strict";t.differenceInCalendarWeeks=function(e,t,n){const s=(0,i.startOfWeek)
(e,n),a=(0,i.startOfWeek)(t,n),c=+s-(0,o.getTimezoneOffsetInMilliseconds)(s),u=+a-
(0,o.getTimezoneOffsetInMilliseconds)(a);return
Math.round((c-u)/r.millisecondsInWeek)};var r=n(53679),i=n(83877),o=n(1527)},85878:
(e,t,n)=>{"use strict";t.differenceInCalendarYears=function(e,t){const
n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getFullYear()-i.getFullYear()};var
r=n(44724)},31581:(e,t,n)=>{"use strict";t.differenceInDays=function(e,t){const
n=(0,i.toDate)(e),s=(0,i.toDate)
(t),a=o(n,s),c=Math.abs((0,r.differenceInCalendarDays)(n,s));n.setDate(n.getDate()-
a*c);const u=a*(c-Number(o(n,s)===-a));return 0===u?0:u};var
r=n(45672),i=n(44724);function o(e,t){const n=e.getFullYear()-t.getFullYear()||
e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||
e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-
t.getMilliseconds();return n<0?-1:n>0?1:n}},39288:(e,t,n)=>{"use
strict";t.differenceInHours=function(e,t,n){const s=(0,o.differenceInMilliseconds)
(e,t)/i.millisecondsInHour;return(0,r.getRoundingMethod)(n?.roundingMethod)(s)};var
r=n(37814),i=n(53679),o=n(69737)},30870:(e,t,n)=>{"use
strict";t.differenceInISOWeekYears=function(e,t){let n=(0,s.toDate)(e);const
a=(0,s.toDate)(t),c=(0,r.compareAsc)
(n,a),u=Math.abs((0,i.differenceInCalendarISOWeekYears)
(n,a));n=(0,o.subISOWeekYears)(n,c*u);const l=c*(u-Number((0,r.compareAsc)(n,a)===-
c));return 0===l?0:l};var r=n(22835),i=n(22375),o=n(76081),s=n(44724)},69737:
(e,t,n)=>{"use strict";t.differenceInMilliseconds=function(e,t){return+(0,r.toDate)
(e)-+(0,r.toDate)(t)};var r=n(44724)},56034:(e,t,n)=>{"use
strict";t.differenceInMinutes=function(e,t,n){const
s=(0,o.differenceInMilliseconds)(e,t)/i.millisecondsInMinute;return(0,r.getRounding
Method)(n?.roundingMethod)(s)};var r=n(37814),i=n(53679),o=n(69737)},47555:
(e,t,n)=>{"use strict";t.differenceInMonths=function(e,t){const n=(0,s.toDate)
(e),a=(0,s.toDate)(t),c=(0,r.compareAsc)
(n,a),u=Math.abs((0,i.differenceInCalendarMonths)(n,a));let
l;if(u<1)l=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getM
onth()-c*u);let t=(0,r.compareAsc)(n,a)===-c;(0,o.isLastDayOfMonth)((0,s.toDate)
(e))&&1===u&&1===(0,r.compareAsc)(e,a)&&(t=!1),l=c*(u-Number(t))}return 0===l?
0:l};var r=n(22835),i=n(96719),o=n(47752),s=n(44724)},41591:(e,t,n)=>{"use
strict";t.differenceInQuarters=function(e,t,n){const o=(0,i.differenceInMonths)
(e,t)/3;return(0,r.getRoundingMethod)(n?.roundingMethod)(o)};var
r=n(37814),i=n(47555)},9480:(e,t,n)=>{"use
strict";t.differenceInSeconds=function(e,t,n){const
o=(0,i.differenceInMilliseconds)(e,t)/1e3;return(0,r.getRoundingMethod)
(n?.roundingMethod)(o)};var r=n(37814),i=n(69737)},46733:(e,t,n)=>{"use
strict";t.differenceInWeeks=function(e,t,n){const
o=(0,i.differenceInDays)(e,t)/7;return(0,r.getRoundingMethod)(n?.roundingMethod)
(o)};var r=n(37814),i=n(31581)},90103:(e,t,n)=>{"use
strict";t.differenceInYears=function(e,t){const n=(0,o.toDate)(e),s=(0,o.toDate)
(t),a=(0,r.compareAsc)(n,s),c=Math.abs((0,i.differenceInCalendarYears)
(n,s));n.setFullYear(1584),s.setFullYear(1584);const u=a*(c-+((0,r.compareAsc)
(n,s)===-a));return 0===u?0:u};var r=n(22835),i=n(85878),o=n(44724)},92453:
(e,t,n)=>{"use strict";t.eachDayOfInterval=function(e,t){const n=(0,r.toDate)
(e.start),i=(0,r.toDate)(e.end);let o=+n>+i;const s=o?+n:+i,a=o?
i:n;a.setHours(0,0,0,0);let c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const
u=[];for(;+a<=s;)u.push((0,r.toDate)(a)),a.setDate(a.getDate()
+c),a.setHours(0,0,0,0);return o?u.reverse():u};var r=n(44724)},19025:
(e,t,n)=>{"use strict";t.eachHourOfInterval=function(e,t){const n=(0,i.toDate)
(e.start),o=(0,i.toDate)(e.end);let s=+n>+o;const a=s?+n:+o;let c=s?
o:n;c.setMinutes(0,0,0);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);const
l=[];for(;+c<=a;)l.push((0,i.toDate)(c)),c=(0,r.addHours)(c,u);return s?
l.reverse():l};var r=n(41278),i=n(44724)},85522:(e,t,n)=>{"use
strict";t.eachMinuteOfInterval=function(e,t){const n=(0,i.startOfMinute)
((0,o.toDate)(e.start)),s=(0,o.toDate)(e.end);let a=+n>+s;const c=a?+n:+s;let u=a?
s:n,l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const h=[];for(;
+u<=c;)h.push((0,o.toDate)(u)),u=(0,r.addMinutes)(u,l);return a?h.reverse():h};var
r=n(5157),i=n(52881),o=n(44724)},76745:(e,t,n)=>{"use
strict";t.eachMonthOfInterval=function(e,t){const n=(0,r.toDate)
(e.start),i=(0,r.toDate)(e.end);let o=+n>+i;const s=o?+n:+i,a=o?
i:n;a.setHours(0,0,0,0),a.setDate(1);let c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!
o);const u=[];for(;+a<=s;)u.push((0,r.toDate)(a)),a.setMonth(a.getMonth()+c);return
o?u.reverse():u};var r=n(44724)},59190:(e,t,n)=>{"use
strict";t.eachQuarterOfInterval=function(e,t){const n=(0,o.toDate)
(e.start),s=(0,o.toDate)(e.end);let a=+n>+s;const c=a?+(0,i.startOfQuarter)(n):
+(0,i.startOfQuarter)(s);let u=a?(0,i.startOfQuarter)(s):(0,i.startOfQuarter)
(n),l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const h=[];for(;
+u<=c;)h.push((0,o.toDate)(u)),u=(0,r.addQuarters)(u,l);return a?h.reverse():h};var
r=n(53893),i=n(6831),o=n(44724)},34553:(e,t,n)=>{"use
strict";t.eachWeekOfInterval=function(e,t){const n=(0,o.toDate)
(e.start),s=(0,o.toDate)(e.end);let a=+n>+s;const c=a?(0,i.startOfWeek)(s,t):
(0,i.startOfWeek)(n,t),u=a?(0,i.startOfWeek)(n,t):(0,i.startOfWeek)
(s,t);c.setHours(15),u.setHours(15);const l=+u.getTime();let h=c,d=t?.step??1;if(!
d)return[];d<0&&(d=-d,a=!a);const f=[];for(;
+h<=l;)h.setHours(0),f.push((0,o.toDate)(h)),h=(0,r.addWeeks)
(h,d),h.setHours(15);return a?f.reverse():f};var
r=n(75978),i=n(83877),o=n(44724)},1161:(e,t,n)=>{"use
strict";t.eachWeekendOfInterval=function(e){const t=(0,r.eachDayOfInterval)
(e),n=[];let o=0;for(;o<t.length;){const e=t[o++];(0,i.isWeekend)
(e)&&n.push(e)}return n};var r=n(92453),i=n(60991)},78857:(e,t,n)=>{"use
strict";t.eachWeekendOfMonth=function(e){const t=(0,o.startOfMonth)
(e),n=(0,i.endOfMonth)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var
r=n(1161),i=n(92335),o=n(23266)},47150:(e,t,n)=>{"use
strict";t.eachWeekendOfYear=function(e){const t=(0,o.startOfYear)
(e),n=(0,i.endOfYear)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var
r=n(1161),i=n(53689),o=n(90821)},51885:(e,t,n)=>{"use
strict";t.eachYearOfInterval=function(e,t){const n=(0,r.toDate)
(e.start),i=(0,r.toDate)(e.end);let o=+n>+i;const s=o?+n:+i,a=o?
i:n;a.setHours(0,0,0,0),a.setMonth(0,1);let c=t?.step??1;if(!c)return[];c<0&&(c=-
c,o=!o);const u=[];for(;+a<=s;)u.push((0,r.toDate)
(a)),a.setFullYear(a.getFullYear()+c);return o?u.reverse():u};var
r=n(44724)},48443:(e,t,n)=>{"use strict";t.endOfDay=function(e){const
t=(0,r.toDate)(e);return t.setHours(23,59,59,999),t};var r=n(44724)},22665:
(e,t,n)=>{"use strict";t.endOfDecade=function(e){const t=(0,r.toDate)
(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return
t.setFullYear(i,11,31),t.setHours(23,59,59,999),t};var r=n(44724)},59012:
(e,t,n)=>{"use strict";t.endOfHour=function(e){const t=(0,r.toDate)(e);return
t.setMinutes(59,59,999),t};var r=n(44724)},29403:(e,t,n)=>{"use
strict";t.endOfISOWeek=function(e){return(0,r.endOfWeek)(e,{weekStartsOn:1})};var
r=n(67786)},33367:(e,t,n)=>{"use strict";t.endOfISOWeekYear=function(e){const
t=(0,r.getISOWeekYear)(e),n=(0,o.constructFrom)
(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const s=(0,i.startOfISOWeek)
(n);return s.setMilliseconds(s.getMilliseconds()-1),s};var
r=n(95303),i=n(89301),o=n(4589)},75836:(e,t,n)=>{"use
strict";t.endOfMinute=function(e){const t=(0,r.toDate)(e);return
t.setSeconds(59,999),t};var r=n(44724)},92335:(e,t,n)=>{"use
strict";t.endOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return
t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var
r=n(44724)},87181:(e,t,n)=>{"use strict";t.endOfQuarter=function(e){const
t=(0,r.toDate)(e),n=t.getMonth(),i=n-n%3+3;return
t.setMonth(i,0),t.setHours(23,59,59,999),t};var r=n(44724)},50372:(e,t,n)=>{"use
strict";t.endOfSecond=function(e){const
t=(0,r.toDate)(e);return t.setMilliseconds(999),t};var r=n(44724)},59660:
(e,t,n)=>{"use strict";t.endOfToday=function(){return(0,r.endOfDay)
(Date.now())};var r=n(48443)},40776:(e,t)=>{"use strict";t.endOfTomorrow=function()
{const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),i=new
Date(0);return i.setFullYear(t,n,r+1),i.setHours(23,59,59,999),i}},67786:
(e,t,n)=>{"use strict";t.endOfWeek=function(e,t){const n=(0,i.getDefaultOptions)
(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??
n.locale?.options?.weekStartsOn??0,s=(0,r.toDate)(e),a=s.getDay(),c=6+(a<o?-7:0)-
(a-o);return s.setDate(s.getDate()+c),s.setHours(23,59,59,999),s};var
r=n(44724),i=n(92949)},53689:(e,t,n)=>{"use strict";t.endOfYear=function(e){const
t=(0,r.toDate)(e),n=t.getFullYear();return
t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var r=n(44724)},25268:
(e,t)=>{"use strict";t.endOfYesterday=function(){const e=new
Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),i=new Date(0);return
i.setFullYear(t,n,r-1),i.setHours(23,59,59,999),i}},24173:(e,t,n)=>{"use
strict";t.format=t.formatDate=function(e,t,n){const d=(0,i.getDefaultOptions)
(),f=n?.locale??d.locale??r.defaultLocale,m=n?.firstWeekContainsDate??
n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??
d.locale?.options?.firstWeekContainsDate??1,v=n?.weekStartsOn??
n?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??
0,b=(0,u.toDate)(e);if(!(0,c.isValid)(b))throw new RangeError("Invalid time
value");let y=t.match(h).map((e=>{const t=e[0];return"p"===t||"P"===t?
(0,s.longFormatters[t])
(e,f.formatLong):e})).join("").match(l).map((e=>{if("''"===e)return{isToken:!
1,value:"'"};const t=e[0];if("'"===t)return{isToken:!
1,value:g(e)};if(o.formatters[t])return{isToken:!0,value:e};if(t.match(p))throw new
RangeError("Format string contains an unescaped latin alphabet character
`"+t+"`");return{isToken:!
1,value:e}}));f.localize.preprocessor&&(y=f.localize.preprocessor(b,y));const
w={firstWeekContainsDate:m,weekStartsOn:v,locale:f};return y.map((r=>{if(!
r.isToken)return r.value;const i=r.value;return(!
n?.useAdditionalWeekYearTokens&&(0,a.isProtectedWeekYearToken)(i)||!
n?.useAdditionalDayOfYearTokens&&(0,a.isProtectedDayOfYearToken)
(i))&&(0,a.warnOrThrowProtectedError)(i,t,String(e)),(0,o.formatters[i[0]])
(b,i,f.localize,w)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!
0,get:function(){return o.formatters}}),Object.defineProperty(t,"longFormatters",
{enumerable:!0,get:function(){return s.longFormatters}});var
r=n(2015),i=n(92949),o=n(9351),s=n(43191),a=n(97963),c=n(74390),u=n(44724);const
l=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,h=/P+p+|P+|p+|''|'(''|
[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,p=/[a-zA-Z]/;function g(e){const
t=e.match(d);return t?t[1].replace(f,"'"):e}},4677:(e,t,n)=>{"use
strict";t.formatDistance=function(e,t,n){const h=(0,u.getDefaultOptions)
(),d=n?.locale??h.locale??c.defaultLocale,f=(0,r.compareAsc)(e,t);if(isNaN(f))throw
new RangeError("Invalid time value");const p=Object.assign({},n,
{addSuffix:n?.addSuffix,comparison:f});let g,m;f>0?(g=(0,a.toDate)
(t),m=(0,a.toDate)(e)):(g=(0,a.toDate)(e),m=(0,a.toDate)(t));const
v=(0,s.differenceInSeconds)(m,g),b=((0,l.getTimezoneOffsetInMilliseconds)(m)-
(0,l.getTimezoneOffsetInMilliseconds)(g))/1e3,y=Math.round((v-b)/60);let
w;if(y<2)return n?.includeSeconds?v<5?
d.formatDistance("lessThanXSeconds",5,p):v<10?
d.formatDistance("lessThanXSeconds",10,p):v<20?
d.formatDistance("lessThanXSeconds",20,p):v<40?
d.formatDistance("halfAMinute",0,p):v<60?
d.formatDistance("lessThanXMinutes",1,p):d.formatDistance("xMinutes",1,p):0===y?
d.formatDistance("lessThanXMinutes",1,p):d.formatDistance("xMinutes",y,p);if(y<45)r
eturn d.formatDistance("xMinutes",y,p);if(y<90)return
d.formatDistance("aboutXHours",1,p);if(y<i.minutesInDay){const
e=Math.round(y/60);return d.formatDistance("aboutXHours",e,p)}if(y<2520)return
d.formatDistance("xDays",1,p);if(y<i.minutesInMonth){const
e=Math.round(y/i.minutesInDay);return
d.formatDistance("xDays",e,p)}if(y<2*i.minutesInMonth)return
w=Math.round(y/i.minutesInMonth),d.formatDistance("aboutXMonths",w,p);if(w=(0,o.dif
ferenceInMonths)(m,g),w<12){const e=Math.round(y/i.minutesInMonth);return
d.formatDistance("xMonths",e,p)}{const e=w%12,t=Math.trunc(w/12);return e<3?
d.formatDistance("aboutXYears",t,p):e<9?
d.formatDistance("overXYears",t,p):d.formatDistance("almostXYears",t+1,p)}};var
r=n(22835),i=n(53679),o=n(47555),s=n(9480),a=n(44724),c=n(2015),u=n(92949),l=n(1527
)},64112:(e,t,n)=>{"use strict";t.formatDistanceStrict=function(e,t,n){const
l=(0,i.getDefaultOptions)(),h=n?.locale??l.locale??
r.defaultLocale,d=(0,a.compareAsc)(e,t);if(isNaN(d))throw new RangeError("Invalid
time value");const f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:d});let
p,g;d>0?(p=(0,u.toDate)(t),g=(0,u.toDate)(e)):(p=(0,u.toDate)(e),g=(0,u.toDate)
(t));const m=(0,o.getRoundingMethod)(n?.roundingMethod??"round"),v=g.getTime()-
p.getTime(),b=v/c.millisecondsInMinute,y=(v-((0,s.getTimezoneOffsetInMilliseconds)
(g)-(0,s.getTimezoneOffsetInMilliseconds)(p)))/c.millisecondsInMinute,w=n?.unit;let
_;if(_=w||
(b<1?"second":b<60?"minute":b<c.minutesInDay?"hour":y<c.minutesInMonth?"day":y<c.mi
nutesInYear?"month":"year"),"second"===_){const e=m(v/1e3);return
h.formatDistance("xSeconds",e,f)}if("minute"===_){const e=m(b);return
h.formatDistance("xMinutes",e,f)}if("hour"===_){const e=m(b/60);return
h.formatDistance("xHours",e,f)}if("day"===_){const e=m(y/c.minutesInDay);return
h.formatDistance("xDays",e,f)}if("month"===_){const e=m(y/c.minutesInMonth);return
12===e&&"month"!==w?h.formatDistance("xYears",1,f):h.formatDistance("xMonths",e,f)}
{const e=m(y/c.minutesInYear);return h.formatDistance("xYears",e,f)}};var
r=n(2015),i=n(92949),o=n(37814),s=n(1527),a=n(22835),c=n(53679),u=n(44724)},96276:
(e,t,n)=>{"use strict";t.formatDistanceToNow=function(e,t)
{return(0,r.formatDistance)(e,Date.now(),t)};var r=n(4677)},39865:(e,t,n)=>{"use
strict";t.formatDistanceToNowStrict=function(e,t){return(0,r.formatDistanceStrict)
(e,Date.now(),t)};var r=n(64112)},96408:(e,t,n)=>{"use
strict";t.formatDuration=function(e,t){const n=(0,i.getDefaultOptions)
(),s=t?.locale??n.locale??r.defaultLocale,a=t?.format??o,c=t?.zero??!
1,u=t?.delimiter??" ";return s.formatDistance?a.reduce(((t,n)=>{const r=`x$
{n.replace(/(^.)/,(e=>e.toUpperCase()))}`,i=e[n];return void 0!==i&&(c||e[n])?
t.concat(s.formatDistance(r,i)):t}),[]).join(u):""};var r=n(2015),i=n(92949);const
o=["years","months","weeks","days","hours","minutes","seconds"]},20519:
(e,t,n)=>{"use strict";t.formatISO=function(e,t){const n=(0,r.toDate)
(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const
o=t?.format??"extended",s=t?.representation??"complete";let a="",c="";const
u="extended"===o?"-":"",l="extended"===o?":":"";if("time"!==s){const
e=(0,i.addLeadingZeros)(n.getDate(),2),t=(0,i.addLeadingZeros)(n.getMonth()
+1,2);a=`${(0,i.addLeadingZeros)(n.getFullYear(),4)}${u}${t}${u}${e}`}if("date"!
==s){const e=n.getTimezoneOffset();if(0!==e){const t=Math.abs(e);c=`${e<0?"+":"-"}$
{(0,i.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,i.addLeadingZeros)(t%60,2)}`}else
c="Z";a=`${a}${""===a?"":"T"}${[(0,i.addLeadingZeros)(n.getHours(),2),
(0,i.addLeadingZeros)(n.getMinutes(),2),(0,i.addLeadingZeros)
(n.getSeconds(),2)].join(l)}${c}`}return a};var r=n(44724),i=n(88535)},72742:
(e,t,n)=>{"use strict";t.formatISO9075=function(e,t){const n=(0,i.toDate)(e);if(!
(0,r.isValid)(n))throw new RangeError("Invalid time value");const
s=t?.format??"extended",a=t?.representation??"complete";let c="";const
u="extended"===s?"-":"",l="extended"===s?":":"";if("time"!==a){const
e=(0,o.addLeadingZeros)(n.getDate(),2),t=(0,o.addLeadingZeros)(n.getMonth()
+1,2);c=`${(0,o.addLeadingZeros)(n.getFullYear(),4)}${u}${t}${u}${e}`}return"date"!
==a&&(c=`${c}${""===c?"":" "}${(0,o.addLeadingZeros)(n.getHours(),2)}${l}$
{(0,o.addLeadingZeros)(n.getMinutes(),2)}${l}${(0,o.addLeadingZeros)
(n.getSeconds(),2)}`),c};var r=n(74390),i=n(44724),o=n(88535)},50561:(e,t)=>{"use
strict";t.formatISODuration=function(e)
{const{years:t=0,months:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:s=0}=e;return`P$
{t}Y${n}M${r}DT${i}H${o}M${s}S`}},71931:(e,t,n)=>{"use
strict";t.formatRFC3339=function(e,t){const n=(0,i.toDate)(e);if(!(0,r.isValid)
(n))throw new RangeError("Invalid time value");const s=t?.fractionDigits??
0,a=(0,o.addLeadingZeros)(n.getDate(),2),c=(0,o.addLeadingZeros)(n.getMonth()
+1,2),u=n.getFullYear(),l=(0,o.addLeadingZeros)
(n.getHours(),2),h=(0,o.addLeadingZeros)(n.getMinutes(),2),d=(0,o.addLeadingZeros)
(n.getSeconds(),2);let f="";if(s>0){const
e=n.getMilliseconds(),t=Math.trunc(e*Math.pow(10,s-3));f="."+(0,o.addLeadingZeros)
(t,s)}let p="";const g=n.getTimezoneOffset();if(0!==g){const e=Math.abs(g);p=`$
{g<0?"+":"-"}${(0,o.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,o.addLeadingZeros)(e
%60,2)}`}else p="Z";return`${u}-${c}-${a}T${l}:${h}:${d}${f}${p}`};var
r=n(74390),i=n(44724),o=n(88535)},29813:(e,t,n)=>{"use
strict";t.formatRFC7231=function(e){const t=(0,i.toDate)(e);if(!(0,r.isValid)
(t))throw new RangeError("Invalid time value");return`${s[t.getUTCDay()]}, $
{(0,o.addLeadingZeros)(t.getUTCDate(),2)} ${a[t.getUTCMonth()]} $
{t.getUTCFullYear()} ${(0,o.addLeadingZeros)(t.getUTCHours(),2)}:$
{(0,o.addLeadingZeros)(t.getUTCMinutes(),2)}:${(0,o.addLeadingZeros)
(t.getUTCSeconds(),2)} GMT`};var r=n(74390),i=n(44724),o=n(88535);const
s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=["Jan","Feb","Mar","Apr","May","Jun
","Jul","Aug","Sep","Oct","Nov","Dec"]},99283:(e,t,n)=>{"use
strict";t.formatRelative=function(e,t,n){const c=(0,o.toDate)(e),u=(0,o.toDate)
(t),l=(0,a.getDefaultOptions)(),h=n?.locale??l.locale??
s.defaultLocale,d=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??
l.weekStartsOn??l.locale?.options?.weekStartsOn??0,f=(0,r.differenceInCalendarDays)
(c,u);if(isNaN(f))throw new RangeError("Invalid
time value");let p;p=f<-6?"other":f<-
1?"lastWeek":f<0?"yesterday":f<1?"today":f<2?"tomorrow":f<7?"nextWeek":"other";cons
t g=h.formatRelative(p,c,u,{locale:h,weekStartsOn:d});return(0,i.format)(c,g,
{locale:h,weekStartsOn:d})};var
r=n(45672),i=n(24173),o=n(44724),s=n(2015),a=n(92949)},86738:(e,t,n)=>{"use
strict";t.fromUnixTime=function(e){return(0,r.toDate)(1e3*e)};var
r=n(44724)},44172:(e,t,n)=>{"use strict";t.getDate=function(e){return(0,r.toDate)
(e).getDate()};var r=n(44724)},49288:(e,t,n)=>{"use strict";t.getDay=function(e)
{return(0,r.toDate)(e).getDay()};var r=n(44724)},45741:(e,t,n)=>{"use
strict";t.getDayOfYear=function(e){const t=(0,o.toDate)
(e);return(0,r.differenceInCalendarDays)(t,(0,i.startOfYear)(t))+1};var
r=n(45672),i=n(90821),o=n(44724)},74922:(e,t,n)=>{"use
strict";t.getDaysInMonth=function(e){const t=(0,r.toDate)
(e),n=t.getFullYear(),o=t.getMonth(),s=(0,i.constructFrom)(e,0);return
s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()};var
r=n(44724),i=n(4589)},40270:(e,t,n)=>{"use strict";t.getDaysInYear=function(e)
{const t=(0,i.toDate)(e);return"Invalid Date"===String(new Date(t))?NaN:
(0,r.isLeapYear)(t)?366:365};var r=n(7890),i=n(44724)},94462:(e,t,n)=>{"use
strict";t.getDecade=function(e){const t=(0,r.toDate)(e).getFullYear();return
10*Math.floor(t/10)};var r=n(44724)},63453:(e,t,n)=>{"use
strict";t.getDefaultOptions=function(){return Object.assign({},
(0,r.getDefaultOptions)())};var r=n(92949)},71544:(e,t,n)=>{"use
strict";t.getHours=function(e){return(0,r.toDate)(e).getHours()};var
r=n(44724)},29064:(e,t,n)=>{"use strict";t.getISODay=function(e){let t=(0,r.toDate)
(e).getDay();return 0===t&&(t=7),t};var r=n(44724)},69513:(e,t,n)=>{"use
strict";t.getISOWeek=function(e){const t=(0,s.toDate)(e),n=+(0,i.startOfISOWeek)
(t)-+(0,o.startOfISOWeekYear)(t);return Math.round(n/r.millisecondsInWeek)+1};var
r=n(53679),i=n(89301),o=n(85860),s=n(44724)},95303:(e,t,n)=>{"use
strict";t.getISOWeekYear=function(e){const t=(0,o.toDate)
(e),n=t.getFullYear(),s=(0,r.constructFrom)
(e,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const a=(0,i.startOfISOWeek)
(s),c=(0,r.constructFrom)(e,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const
u=(0,i.startOfISOWeek)(c);return t.getTime()>=a.getTime()?
n+1:t.getTime()>=u.getTime()?n:n-1};var r=n(4589),i=n(89301),o=n(44724)},82781:
(e,t,n)=>{"use strict";t.getISOWeeksInYear=function(e){const
t=(0,o.startOfISOWeekYear)(e),n=+(0,o.startOfISOWeekYear)((0,r.addWeeks)(t,60))-
+t;return Math.round(n/i.millisecondsInWeek)};var
r=n(75978),i=n(53679),o=n(85860)},26240:(e,t,n)=>{"use
strict";t.getMilliseconds=function(e){return(0,r.toDate)(e).getMilliseconds()};var
r=n(44724)},57552:(e,t,n)=>{"use strict";t.getMinutes=function(e)
{return(0,r.toDate)(e).getMinutes()};var r=n(44724)},98825:(e,t,n)=>{"use
strict";t.getMonth=function(e){return(0,r.toDate)(e).getMonth()};var
r=n(44724)},29112:(e,t,n)=>{"use
strict";t.getOverlappingDaysInIntervals=function(e,t){const[n,s]=[+(0,o.toDate)
(e.start),+(0,o.toDate)(e.end)].sort(((e,t)=>e-t)),[a,c]=[+(0,o.toDate)(t.start),
+(0,o.toDate)(t.end)].sort(((e,t)=>e-t));if(!(n<c&&a<s))return 0;const u=a<n?
n:a,l=u-(0,r.getTimezoneOffsetInMilliseconds)(u),h=c>s?s:c,d=h-
(0,r.getTimezoneOffsetInMilliseconds)(h);return
Math.ceil((d-l)/i.millisecondsInDay)};var r=n(1527),i=n(53679),o=n(44724)},23350:
(e,t,n)=>{"use strict";t.getQuarter=function(e){const t=(0,r.toDate)(e);return
Math.trunc(t.getMonth()/3)+1};var r=n(44724)},73701:(e,t,n)=>{"use
strict";t.getSeconds=function(e){return(0,r.toDate)(e).getSeconds()};var
r=n(44724)},97013:(e,t,n)=>{"use strict";t.getTime=function(e){return(0,r.toDate)
(e).getTime()};var r=n(44724)},14079:(e,t,n)=>{"use
strict";t.getUnixTime=function(e){return Math.trunc(+(0,r.toDate)(e)/1e3)};var
r=n(44724)},32901:(e,t,n)=>{"use strict";t.getWeek=function(e,t){const
n=(0,s.toDate)(e),a=+(0,i.startOfWeek)(n,t)-+(0,o.startOfWeekYear)(n,t);return
Math.round(a/r.millisecondsInWeek)+1};var
r=n(53679),i=n(83877),o=n(50237),s=n(44724)},73252:(e,t,n)=>{"use
strict";t.getWeekOfMonth=function(e,t){const n=(0,s.getDefaultOptions)
(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??
n.locale?.options?.weekStartsOn??0,c=(0,r.getDate)(e);if(isNaN(c))return NaN;let
u=a-(0,i.getDay)((0,o.startOfMonth)(e));u<=0&&(u+=7);const l=c-u;return
Math.ceil(l/7)+1};var r=n(44172),i=n(49288),o=n(23266),s=n(92949)},38180:
(e,t,n)=>{"use strict";t.getWeekYear=function(e,t){const n=(0,o.toDate)
(e),a=n.getFullYear(),c=(0,s.getDefaultOptions)(),u=t?.firstWeekContainsDate??
t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??
c.locale?.options?.firstWeekContainsDate??1,l=(0,r.constructFrom)
(e,0);l.setFullYear(a+1,0,u),l.setHours(0,0,0,0);const h=(0,i.startOfWeek)
(l,t),d=(0,r.constructFrom)(e,0);d.setFullYear(a,0,u),d.setHours(0,0,0,0);const
f=(0,i.startOfWeek)(d,t);return n.getTime()>=h.getTime()?
a+1:n.getTime()>=f.getTime()?a:a-1};var
r=n(4589),i=n(83877),o=n(44724),s=n(92949)},42078:(e,t,n)=>{"use
strict";t.getWeeksInMonth=function(e,t){return(0,r.differenceInCalendarWeeks)
((0,i.lastDayOfMonth)(e),(0,o.startOfMonth)(e),t)+1};var
r=n(25049),i=n(85226),o=n(23266)},50227:(e,t,n)=>{"use
strict";t.getYear=function(e){return(0,r.toDate)(e).getFullYear()};var
r=n(44724)},85150:(e,t,n)=>{"use strict";t.hoursToMilliseconds=function(e){return
Math.trunc(e*r.millisecondsInHour)};var r=n(53679)},3227:(e,t,n)=>{"use
strict";t.hoursToMinutes=function(e){return Math.trunc(e*r.minutesInHour)};var
r=n(53679)},24108:(e,t,n)=>{"use strict";t.hoursToSeconds=function(e){return
Math.trunc(e*r.secondsInHour)};var r=n(53679)},25155:(e,t,n)=>{"use strict";var
r=n(33857);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
r[e]}}))}));var i=n(39225);Object.keys(i).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return i[e]}}))}));var
o=n(83978);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
o[e]}}))}));var s=n(41278);Object.keys(s).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return s[e]}}))}));var
a=n(77673);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
a[e]}}))}));var c=n(67106);Object.keys(c).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return c[e]}}))}));var
u=n(5157);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
u[e]}}))}));var l=n(48991);Object.keys(l).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return l[e]}}))}));var
h=n(53893);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
h[e]}}))}));var d=n(41488);Object.keys(d).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return d[e]}}))}));var
f=n(75978);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
f[e]}}))}));var p=n(83366);Object.keys(p).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return p[e]}}))}));var
g=n(45801);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
g[e]}}))}));var m=n(73635);Object.keys(m).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return m[e]}}))}));var
v=n(52649);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
v[e]}}))}));var b=n(45099);Object.keys(b).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return b[e]}}))}));var
y=n(22835);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
y[e]}}))}));var w=n(32023);Object.keys(w).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return w[e]}}))}));var
_=n(4589);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
_[e]}}))}));var E=n(56675);Object.keys(E).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return E[e]}}))}));var
S=n(614);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in
t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
S[e]}}))}));var T=n(45672);Object.keys(T).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return T[e]}}))}));var
A=n(22375);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
A[e]}}))}));var C=n(52087);Object.keys(C).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return
C[e]}}))}));var O=n(96719);Object.keys(O).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return O[e]}}))}));var
x=n(66393);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
x[e]}}))}));var I=n(25049);Object.keys(I).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return I[e]}}))}));var
P=n(85878);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
P[e]}}))}));var D=n(31581);Object.keys(D).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return D[e]}}))}));var
k=n(39288);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
k[e]}}))}));var R=n(30870);Object.keys(R).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return R[e]}}))}));var
M=n(69737);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
M[e]}}))}));var N=n(56034);Object.keys(N).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return N[e]}}))}));var
L=n(47555);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
L[e]}}))}));var F=n(41591);Object.keys(F).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return F[e]}}))}));var
j=n(9480);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
j[e]}}))}));var B=n(46733);Object.keys(B).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return B[e]}}))}));var
U=n(90103);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===U[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
U[e]}}))}));var H=n(92453);Object.keys(H).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return H[e]}}))}));var
G=n(19025);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
G[e]}}))}));var z=n(85522);Object.keys(z).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return z[e]}}))}));var
V=n(76745);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
V[e]}}))}));var W=n(59190);Object.keys(W).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return W[e]}}))}));var
q=n(34553);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
q[e]}}))}));var K=n(1161);Object.keys(K).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return K[e]}}))}));var
Y=n(78857);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Y[e]}}))}));var $=n(47150);Object.keys($).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return $[e]}}))}));var
Q=n(51885);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Q[e]}}))}));var X=n(48443);Object.keys(X).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return X[e]}}))}));var
Z=n(22665);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Z[e]}}))}));var J=n(59012);Object.keys(J).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return J[e]}}))}));var
ee=n(29403);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ee[e]}}))}));var te=n(33367);Object.keys(te).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return te[e]}}))}));var
ne=n(75836);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ne[e]}}))}));var re=n(92335);Object.keys(re).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return re[e]}}))}));var
ie=n(87181);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ie[e]}}))}));var oe=n(50372);Object.keys(oe).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return oe[e]}}))}));var
se=n(59660);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return se[e]}}))}));var ae=n(40776);Object.keys(ae).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ae[e]}}))}));var
ce=n(67786);Object.keys(ce).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ce[e]}}))}));var ue=n(53689);Object.keys(ue).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ue[e]}}))}));var
le=n(25268);Object.keys(le).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return le[e]}}))}));var he=n(24173);Object.keys(he).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return he[e]}}))}));var
de=n(4677);Object.keys(de).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
de[e]}}))}));var fe=n(64112);Object.keys(fe).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return fe[e]}}))}));var
pe=n(96276);Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return pe[e]}}))}));var ge=n(39865);Object.keys(ge).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ge[e]}}))}));var
me=n(96408);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return me[e]}}))}));var ve=n(20519);Object.keys(ve).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ve[e]}}))}));var
be=n(72742);Object.keys(be).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return be[e]}}))}));var ye=n(50561);Object.keys(ye).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ye[e]}}))}));var
we=n(71931);Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return we[e]}}))}));var _e=n(29813);Object.keys(_e).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return _e[e]}}))}));var
Ee=n(99283);Object.keys(Ee).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ee[e]}}))}));var Se=n(86738);Object.keys(Se).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Se[e]}}))}));var
Te=n(44172);Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Te[e]}}))}));var Ae=n(49288);Object.keys(Ae).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ae[e]}}))}));var
Ce=n(45741);Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ce[e]}}))}));var Oe=n(74922);Object.keys(Oe).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Oe[e]}}))}));var xe=n(40270);Object.keys(xe).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return xe[e]}}))}));var
Ie=n(94462);Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ie[e]}}))}));var Pe=n(63453);Object.keys(Pe).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Pe[e]}}))}));var
De=n(71544);Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return De[e]}}))}));var ke=n(29064);Object.keys(ke).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ke[e]}}))}));var
Re=n(69513);Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Re[e]}}))}));var Me=n(95303);Object.keys(Me).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Me[e]}}))}));var
Ne=n(82781);Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ne[e]}}))}));var Le=n(26240);Object.keys(Le).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Le[e]}}))}));var
Fe=n(57552);Object.keys(Fe).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Fe[e]}}))}));var je=n(98825);Object.keys(je).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return je[e]}}))}));var
Be=n(29112);Object.keys(Be).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Be[e]}}))}));var Ue=n(23350);Object.keys(Ue).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ue[e]}}))}));var
He=n(73701);Object.keys(He).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return He[e]}}))}));var Ge=n(97013);Object.keys(Ge).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ge[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ge[e]}}))}));var
ze=n(14079);Object.keys(ze).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ze[e]}}))}));var Ve=n(32901);Object.keys(Ve).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ve[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ve[e]}}))}));var
We=n(73252);Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return We[e]}}))}));var qe=n(38180);Object.keys(qe).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return qe[e]}}))}));var
Ke=n(42078);Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ke[e]}}))}));var Ye=n(50227);Object.keys(Ye).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ye[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ye[e]}}))}));var
$e=n(85150);Object.keys($e).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return $e[e]}}))}));var Qe=n(3227);Object.keys(Qe).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Qe[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Qe[e]}}))}));var
Xe=n(24108);Object.keys(Xe).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Xe[e]}}))}));var Ze=n(91760);Object.keys(Ze).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ze[e]}}))}));var
Je=n(52201);Object.keys(Je).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Je[e]}}))}));var et=n(89620);Object.keys(et).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===et[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return et[e]}}))}));var
tt=n(91466);Object.keys(tt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return tt[e]}}))}));var nt=n(2129);Object.keys(nt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===nt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return nt[e]}}))}));var
rt=n(78);Object.keys(rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
rt[e]}}))}));var it=n(43215);Object.keys(it).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===it[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return it[e]}}))}));var
ot=n(13195);Object.keys(ot).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ot[e]}}))}));var st=n(67500);Object.keys(st).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===st[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return st[e]}}))}));var
at=n(11059);Object.keys(at).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===at[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return at[e]}}))}));var ct=n(41315);Object.keys(ct).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ct[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ct[e]}}))}));var
ut=n(87675);Object.keys(ut).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ut[e]}}))}));var lt=n(47752);Object.keys(lt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return lt[e]}}))}));var
ht=n(7890);Object.keys(ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
ht[e]}}))}));var dt=n(92609);Object.keys(dt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===dt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return dt[e]}}))}));var
ft=n(29019);Object.keys(ft).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ft[e]}}))}));var pt=n(29796);Object.keys(pt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return pt[e]}}))}));var
gt=n(10098);Object.keys(gt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return gt[e]}}))}));var mt=n(1421);Object.keys(mt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===mt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return mt[e]}}))}));var
vt=n(14792);Object.keys(vt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return vt[e]}}))}));var bt=n(76551);Object.keys(bt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return bt[e]}}))}));var
yt=n(4908);Object.keys(yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
yt[e]}}))}));var wt=n(29548);Object.keys(wt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===wt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return wt[e]}}))}));var
_t=n(45154);Object.keys(_t).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===_t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return _t[e]}}))}));var Et=n(81849);Object.keys(Et).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Et[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Et[e]}}))}));var
St=n(89439);Object.keys(St).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===St[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return St[e]}}))}));var Tt=n(55033);Object.keys(Tt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Tt[e]}}))}));var
At=n(52365);Object.keys(At).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===At[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return At[e]}}))}));var Ct=n(59136);Object.keys(Ct).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ct[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ct[e]}}))}));var
Ot=n(88910);Object.keys(Ot).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e
in t&&t[e]===Ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Ot[e]}}))}));var xt=n(22055);Object.keys(xt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===xt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return xt[e]}}))}));var
It=n(12172);Object.keys(It).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===It[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return It[e]}}))}));var Pt=n(83874);Object.keys(Pt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Pt[e]}}))}));var
Dt=n(27207);Object.keys(Dt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Dt[e]}}))}));var kt=n(84779);Object.keys(kt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return kt[e]}}))}));var
Rt=n(50450);Object.keys(Rt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Rt[e]}}))}));var Mt=n(2620);Object.keys(Mt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Mt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Mt[e]}}))}));var
Nt=n(61164);Object.keys(Nt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Nt[e]}}))}));var Lt=n(62172);Object.keys(Lt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Lt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Lt[e]}}))}));var
Ft=n(30620);Object.keys(Ft).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ft[e]}}))}));var jt=n(99971);Object.keys(jt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return jt[e]}}))}));var
Bt=n(74390);Object.keys(Bt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Bt[e]}}))}));var Ut=n(41185);Object.keys(Ut).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ut[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ut[e]}}))}));var
Ht=n(60991);Object.keys(Ht).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ht[e]}}))}));var Gt=n(18901);Object.keys(Gt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Gt[e]}}))}));var
zt=n(38956);Object.keys(zt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return zt[e]}}))}));var Vt=n(36542);Object.keys(Vt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Vt[e]}}))}));var
Wt=n(9816);Object.keys(Wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Wt[e]}}))}));var qt=n(50587);Object.keys(qt).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===qt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return qt[e]}}))}));var
Kt=n(85226);Object.keys(Kt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Kt[e]}}))}));var Yt=n(82013);Object.keys(Yt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Yt[e]}}))}));var
$t=n(17376);Object.keys($t).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===$t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return $t[e]}}))}));var Qt=n(66199);Object.keys(Qt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Qt[e]}}))}));var
Xt=n(10905);Object.keys(Xt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Xt[e]}}))}));var Zt=n(25518);Object.keys(Zt).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zt[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Zt[e]}}))}));var
Jt=n(37180);Object.keys(Jt).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Jt[e]}}))}));var en=n(29304);Object.keys(en).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===en[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return en[e]}}))}));var
tn=n(77114);Object.keys(tn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return tn[e]}}))}));var nn=n(30634);Object.keys(nn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return nn[e]}}))}));var
rn=n(55463);Object.keys(rn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return rn[e]}}))}));var on=n(82023);Object.keys(on).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===on[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return on[e]}}))}));var
sn=n(94621);Object.keys(sn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return sn[e]}}))}));var an=n(63667);Object.keys(an).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===an[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return an[e]}}))}));var
cn=n(22305);Object.keys(cn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return cn[e]}}))}));var un=n(14999);Object.keys(un).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===un[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return un[e]}}))}));var
ln=n(98495);Object.keys(ln).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ln[e]}}))}));var hn=n(93059);Object.keys(hn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return hn[e]}}))}));var
dn=n(50486);Object.keys(dn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return dn[e]}}))}));var fn=n(84623);Object.keys(fn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return fn[e]}}))}));var
pn=n(53847);Object.keys(pn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return pn[e]}}))}));var gn=n(19082);Object.keys(gn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return gn[e]}}))}));var
mn=n(46232);Object.keys(mn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return mn[e]}}))}));var vn=n(137);Object.keys(vn).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===vn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return vn[e]}}))}));var
bn=n(86103);Object.keys(bn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return bn[e]}}))}));var yn=n(14485);Object.keys(yn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return yn[e]}}))}));var
wn=n(77864);Object.keys(wn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return wn[e]}}))}));var _n=n(73189);Object.keys(_n).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_n[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return _n[e]}}))}));var
En=n(35420);Object.keys(En).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===En[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return En[e]}}))}));var Sn=n(65042);Object.keys(Sn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Sn[e]}}))}));var
Tn=n(73802);Object.keys(Tn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Tn[e]}}))}));var An=n(54215);Object.keys(An).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===An[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return An[e]}}))}));var
Cn=n(61663);Object.keys(Cn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Cn[e]}}))}));var On=n(42941);Object.keys(On).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===On[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return On[e]}}))}));var
xn=n(43529);Object.keys(xn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return xn[e]}}))}));var In=n(31078);Object.keys(In).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===In[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return In[e]}}))}));var
Pn=n(1890);Object.keys(Pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e
in t&&t[e]===Pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return
Pn[e]}}))}));var Dn=n(79122);Object.keys(Dn).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Dn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Dn[e]}}))}));var
kn=n(88634);Object.keys(kn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return kn[e]}}))}));var Rn=n(6179);Object.keys(Rn).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Rn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Rn[e]}}))}));var
Mn=n(59399);Object.keys(Mn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Mn[e]}}))}));var Nn=n(53304);Object.keys(Nn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Nn[e]}}))}));var
Ln=n(28296);Object.keys(Ln).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ln[e]}}))}));var Fn=n(4729);Object.keys(Fn).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Fn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Fn[e]}}))}));var
jn=n(47055);Object.keys(jn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return jn[e]}}))}));var Bn=n(96820);Object.keys(Bn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Bn[e]}}))}));var
Un=n(24269);Object.keys(Un).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Un[e]}}))}));var Hn=n(70337);Object.keys(Hn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Hn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Hn[e]}}))}));var
Gn=n(70596);Object.keys(Gn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Gn[e]}}))}));var zn=n(58985);Object.keys(zn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return zn[e]}}))}));var
Vn=n(85558);Object.keys(Vn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Vn[e]}}))}));var Wn=n(14728);Object.keys(Wn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Wn[e]}}))}));var
qn=n(82650);Object.keys(qn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return qn[e]}}))}));var Kn=n(3646);Object.keys(Kn).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Kn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Kn[e]}}))}));var
Yn=n(24562);Object.keys(Yn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Yn[e]}}))}));var $n=n(52561);Object.keys($n).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$n[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return $n[e]}}))}));var
Qn=n(86593);Object.keys(Qn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Qn[e]}}))}));var Xn=n(22490);Object.keys(Xn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Xn[e]}}))}));var
Zn=n(72274);Object.keys(Zn).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Zn[e]}}))}));var Jn=n(23114);Object.keys(Jn).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jn[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Jn[e]}}))}));var
er=n(25281);Object.keys(er).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return er[e]}}))}));var tr=n(89301);Object.keys(tr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return tr[e]}}))}));var
nr=n(85860);Object.keys(nr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===nr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return nr[e]}}))}));var rr=n(52881);Object.keys(rr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return rr[e]}}))}));var
ir=n(23266);Object.keys(ir).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return ir[e]}}))}));var or=n(6831);Object.keys(or).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===or[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return or[e]}}))}));var
sr=n(73320);Object.keys(sr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return sr[e]}}))}));var ar=n(48285);Object.keys(ar).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ar[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ar[e]}}))}));var
cr=n(75616);Object.keys(cr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return cr[e]}}))}));var ur=n(83877);Object.keys(ur).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ur[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return ur[e]}}))}));var
lr=n(50237);Object.keys(lr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===lr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return lr[e]}}))}));var hr=n(90821);Object.keys(hr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return hr[e]}}))}));var
dr=n(75747);Object.keys(dr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return dr[e]}}))}));var fr=n(47686);Object.keys(fr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return fr[e]}}))}));var
pr=n(94347);Object.keys(pr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return pr[e]}}))}));var gr=n(86584);Object.keys(gr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return gr[e]}}))}));var
mr=n(39169);Object.keys(mr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return mr[e]}}))}));var vr=n(76081);Object.keys(vr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return vr[e]}}))}));var
br=n(44566);Object.keys(br).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===br[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return br[e]}}))}));var yr=n(31160);Object.keys(yr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return yr[e]}}))}));var
wr=n(10260);Object.keys(wr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===wr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return wr[e]}}))}));var _r=n(4286);Object.keys(_r).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===_r[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return _r[e]}}))}));var
Er=n(35882);Object.keys(Er).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Er[e]}}))}));var Sr=n(35619);Object.keys(Sr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Sr[e]}}))}));var
Tr=n(26663);Object.keys(Tr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Tr[e]}}))}));var Ar=n(44724);Object.keys(Ar).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ar[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Ar[e]}}))}));var
Cr=n(46225);Object.keys(Cr).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Cr[e]}}))}));var Or=n(4388);Object.keys(Or).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===Or[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return
Or[e]}}))}));var xr=n(85345);Object.keys(xr).forEach((function(e){"default"!
==e&&"__esModule"!==e&&(e in t&&t[e]===xr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return xr[e]}}))}));var
Ir=n(99893);Object.keys(Ir).forEach((function(e){"default"!==e&&"__esModule"!
==e&&(e in t&&t[e]===Ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function()
{return Ir[e]}}))}));var Pr=n(32416);Object.keys(Pr).forEach((function(e)
{"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pr[e]||Object.defineProperty(t,e,
{enumerable:!0,get:function(){return Pr[e]}}))}))},91760:(e,t,n)=>{"use
strict";t.interval=function(e,t,n){const i=(0,r.toDate)(e);if(isNaN(+i))throw new
TypeError("Start date is invalid");const o=(0,r.toDate)(t);if(isNaN(+o))throw new
TypeError("End date is invalid");if(n?.assertPositive&&+i>+o)throw new
TypeError("End date must be after start date");return{start:i,end:o}};var
r=n(44724)},52201:(e,t,n)=>{"use strict";t.intervalToDuration=function(e){const
t=(0,l.toDate)(e.start),n=(0,l.toDate)(e.end),h={},d=(0,u.differenceInYears)
(n,t);d&&(h.years=d);const f=(0,r.add)(t,
{years:h.years}),p=(0,a.differenceInMonths)(n,f);p&&(h.months=p);const g=(0,r.add)
(f,{months:h.months}),m=(0,i.differenceInDays)(n,g);m&&(h.days=m);const v=(0,r.add)
(g,{days:h.days}),b=(0,o.differenceInHours)(n,v);b&&(h.hours=b);const y=(0,r.add)
(v,{hours:h.hours}),w=(0,s.differenceInMinutes)(n,y);w&&(h.minutes=w);const
_=(0,r.add)(y,{minutes:h.minutes}),E=(0,c.differenceInSeconds)(n,_);return
E&&(h.seconds=E),h};var
r=n(33857),i=n(31581),o=n(39288),s=n(56034),a=n(47555),c=n(9480),u=n(90103),l=n(447
24)},89620:(e,t,n)=>{"use strict";t.intlFormat=function(e,t,n){let i;var o;return
void 0===(o=t)||"locale"in o?n=t:i=t,new
Intl.DateTimeFormat(n?.locale,i).format((0,r.toDate)(e))};var r=n(44724)},91466:
(e,t,n)=>{"use strict";t.intlFormatDistance=function(e,t,n){let f,p=0;const
g=(0,d.toDate)(e),m=(0,d.toDate)(t);if(n?.unit)f=n?.unit,"second"===f?
p=(0,h.differenceInSeconds)(g,m):"minute"===f?p=(0,l.differenceInMinutes)
(g,m):"hour"===f?p=(0,u.differenceInHours)(g,m):"day"===f?
p=(0,i.differenceInCalendarDays)(g,m):"week"===f?p=(0,a.differenceInCalendarWeeks)
(g,m):"month"===f?p=(0,o.differenceInCalendarMonths)(g,m):"quarter"===f?
p=(0,s.differenceInCalendarQuarters)
(g,m):"year"===f&&(p=(0,c.differenceInCalendarYears)(g,m));else{const
e=(0,h.differenceInSeconds)(g,m);Math.abs(e)<r.secondsInMinute?
(p=(0,h.differenceInSeconds)(g,m),f="second"):Math.abs(e)<r.secondsInHour?
(p=(0,l.differenceInMinutes)
(g,m),f="minute"):Math.abs(e)<r.secondsInDay&&Math.abs((0,i.differenceInCalendarDay
s)(g,m))<1?(p=(0,u.differenceInHours)
(g,m),f="hour"):Math.abs(e)<r.secondsInWeek&&(p=(0,i.differenceInCalendarDays)
(g,m))&&Math.abs(p)<7?f="day":Math.abs(e)<r.secondsInMonth?
(p=(0,a.differenceInCalendarWeeks)(g,m),f="week"):Math.abs(e)<r.secondsInQuarter?
(p=(0,o.differenceInCalendarMonths)
(g,m),f="month"):Math.abs(e)<r.secondsInYear&&(0,s.differenceInCalendarQuarters)
(g,m)<4?(p=(0,s.differenceInCalendarQuarters)(g,m),f="quarter"):
(p=(0,c.differenceInCalendarYears)(g,m),f="year")}return new
Intl.RelativeTimeFormat(n?.locale,
{localeMatcher:n?.localeMatcher,numeric:n?.numeric||"auto",style:n?.style}).format(
p,f)};var
r=n(53679),i=n(45672),o=n(96719),s=n(66393),a=n(25049),c=n(85878),u=n(39288),l=n(56
034),h=n(9480),d=n(44724)},2129:(e,t,n)=>{"use strict";t.isAfter=function(e,t)
{const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getTime()>i.getTime()};var
r=n(44724)},78:(e,t,n)=>{"use strict";t.isBefore=function(e,t){return+(0,r.toDate)
(e)<+(0,r.toDate)(t)};var r=n(44724)},43215:(e,t)=>{"use
strict";t.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object
Date]"===Object.prototype.toString.call(e)}},13195:(e,t,n)=>{"use
strict";t.isEqual=function(e,t){return+(0,r.toDate)(e)==+(0,r.toDate)(t)};var
r=n(44724)},67500:(e,t)=>{"use strict";t.isExists=function(e,t,n){const r=new
Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}},11059:
(e,t,n)=>{"use strict";t.isFirstDayOfMonth=function(e){return 1===(0,r.toDate)
(e).getDate()};var r=n(44724)},41315:(e,t,n)=>{"use strict";t.isFriday=function(e)
{return 5===(0,r.toDate)(e).getDay()};var r=n(44724)},87675:(e,t,n)=>{"use
strict";t.isFuture=function(e){return+(0,r.toDate)(e)>Date.now()};var
r=n(44724)},47752:(e,t,n)=>{"use strict";t.isLastDayOfMonth=function(e){const
t=(0,o.toDate)(e);return+(0,r.endOfDay)(t)==+(0,i.endOfMonth)(t)};var
r=n(48443),i=n(92335),o=n(44724)},7890:(e,t,n)=>{"use
strict";t.isLeapYear=function(e){const t=(0,r.toDate)(e).getFullYear();return t
%400==0||t%4==0&&t%100!=0};var r=n(44724)},92609:(e,t,n)=>{"use
strict";t.isMatch=function(e,t,n){return(0,r.isValid)((0,i.parse)(e,t,new
Date,n))};var r=n(74390),i=n(86103)},29019:(e,t,n)=>{"use
strict";t.isMonday=function(e){return 1===(0,r.toDate)(e).getDay()};var
r=n(44724)},29796:(e,t,n)=>{"use strict";t.isPast=function(e){return+(0,r.toDate)
(e)<Date.now()};var r=n(44724)},10098:(e,t,n)=>{"use
strict";t.isSameDay=function(e,t){return+(0,r.startOfDay)(e)==+(0,r.startOfDay)
(t)};var r=n(72274)},1421:(e,t,n)=>{"use strict";t.isSameHour=function(e,t)
{return+(0,r.startOfHour)(e)==+(0,r.startOfHour)(t)};var r=n(25281)},14792:
(e,t,n)=>{"use strict";t.isSameISOWeek=function(e,t){return(0,r.isSameWeek)(e,t,
{weekStartsOn:1})};var r=n(89439)},76551:(e,t,n)=>{"use
strict";t.isSameISOWeekYear=function(e,t){return+(0,r.startOfISOWeekYear)
(e)==+(0,r.startOfISOWeekYear)(t)};var r=n(85860)},4908:(e,t,n)=>{"use
strict";t.isSameMinute=function(e,t){return+(0,r.startOfMinute)
(e)==+(0,r.startOfMinute)(t)};var r=n(52881)},29548:(e,t,n)=>{"use
strict";t.isSameMonth=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)
(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()};var
r=n(44724)},45154:(e,t,n)=>{"use strict";t.isSameQuarter=function(e,t)
{return+(0,r.startOfQuarter)(e)==+(0,r.startOfQuarter)(t)};var r=n(6831)},81849:
(e,t,n)=>{"use strict";t.isSameSecond=function(e,t){return+(0,r.startOfSecond)
(e)==+(0,r.startOfSecond)(t)};var r=n(73320)},89439:(e,t,n)=>{"use
strict";t.isSameWeek=function(e,t,n){return+(0,r.startOfWeek)
(e,n)==+(0,r.startOfWeek)(t,n)};var r=n(83877)},55033:(e,t,n)=>{"use
strict";t.isSameYear=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return
n.getFullYear()===i.getFullYear()};var r=n(44724)},52365:(e,t,n)=>{"use
strict";t.isSaturday=function(e){return 6===(0,r.toDate)(e).getDay()};var
r=n(44724)},59136:(e,t,n)=>{"use strict";t.isSunday=function(e){return
0===(0,r.toDate)(e).getDay()};var r=n(44724)},88910:(e,t,n)=>{"use
strict";t.isThisHour=function(e){return(0,r.isSameHour)(Date.now(),e)};var
r=n(1421)},22055:(e,t,n)=>{"use strict";t.isThisISOWeek=function(e)
{return(0,r.isSameISOWeek)(e,Date.now())};var r=n(14792)},12172:(e,t,n)=>{"use
strict";t.isThisMinute=function(e){return(0,r.isSameMinute)(Date.now(),e)};var
r=n(4908)},83874:(e,t,n)=>{"use strict";t.isThisMonth=function(e)
{return(0,r.isSameMonth)(Date.now(),e)};var r=n(29548)},27207:(e,t,n)=>{"use
strict";t.isThisQuarter=function(e){return(0,r.isSameQuarter)(Date.now(),e)};var
r=n(45154)},84779:(e,t,n)=>{"use strict";t.isThisSecond=function(e)
{return(0,r.isSameSecond)(Date.now(),e)};var r=n(81849)},50450:(e,t,n)=>{"use
strict";t.isThisWeek=function(e,t){return(0,r.isSameWeek)(e,Date.now(),t)};var
r=n(89439)},2620:(e,t,n)=>{"use strict";t.isThisYear=function(e)
{return(0,r.isSameYear)(e,Date.now())};var r=n(55033)},61164:(e,t,n)=>{"use
strict";t.isThursday=function(e){return 4===(0,r.toDate)(e).getDay()};var
r=n(44724)},62172:(e,t,n)=>{"use strict";t.isToday=function(e)
{return(0,r.isSameDay)(e,Date.now())};var r=n(10098)},30620:(e,t,n)=>{"use
strict";t.isTomorrow=function(e){return(0,i.isSameDay)(e,(0,r.addDays)
(Date.now(),1))};var r=n(83978),i=n(10098)},99971:(e,t,n)=>{"use
strict";t.isTuesday=function(e){return 2===(0,r.toDate)(e).getDay()};var
r=n(44724)},74390:(e,t,n)=>{"use strict";t.isValid=function(e){if(!(0,r.isDate)
(e)&&"number"!=typeof e)return!1;const t=(0,i.toDate)(e);return!
isNaN(Number(t))};var r=n(43215),i=n(44724)},41185:(e,t,n)=>{"use
strict";t.isWednesday=function(e){return 3===(0,r.toDate)(e).getDay()};var
r=n(44724)},60991:(e,t,n)=>{"use strict";t.isWeekend=function(e){const
t=(0,r.toDate)(e).getDay();return 0===t||6===t};var r=n(44724)},18901:
(e,t,n)=>{"use strict";t.isWithinInterval=function(e,t){const n=+(0,r.toDate)(e),
[i,o]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return
n>=i&&n<=o};var r=n(44724)},38956:(e,t,n)=>{"use strict";t.isYesterday=function(e)
{return(0,r.isSameDay)(e,(0,i.subDays)(Date.now(),1))};var
r=n(10098),i=n(86584)},36542:(e,t,n)=>{"use strict";t.lastDayOfDecade=function(e)
{const t=(0,r.toDate)(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return
t.setFullYear(i+1,0,0),t.setHours(0,0,0,0),t};var r=n(44724)},9816:(e,t,n)=>{"use
strict";t.lastDayOfISOWeek=function(e){return(0,r.lastDayOfWeek)(e,
{weekStartsOn:1})};var r=n(17376)},50587:(e,t,n)=>{"use
strict";t.lastDayOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)
(e),n=(0,o.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const
s=(0,i.startOfISOWeek)(n);return s.setDate(s.getDate()-1),s};var
r=n(95303),i=n(89301),o=n(4589)},85226:(e,t,n)=>{"use
strict";t.lastDayOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return
t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t};var r=n(44724)},82013:
(e,t,n)=>{"use strict";t.lastDayOfQuarter=function(e){const t=(0,r.toDate)
(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(0,0,0,0),t};var
r=n(44724)},17376:(e,t,n)=>{"use strict";t.lastDayOfWeek=function(e,t){const
n=(0,i.getDefaultOptions)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??
n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,r.toDate)
(e),a=s.getDay(),c=6+(a<o?-7:0)-(a-o);return
s.setHours(0,0,0,0),s.setDate(s.getDate()+c),s};var r=n(44724),i=n(92949)},66199:
(e,t,n)=>{"use strict";t.lastDayOfYear=function(e){const
t=(0,r.toDate)(e),n=t.getFullYear();return
t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t};var r=n(44724)},10905:(e,t,n)=>{"use
strict";t.lightFormat=function(e,t){const n=(0,i.toDate)(e);if(!(0,r.isValid)
(n))throw new RangeError("Invalid time value");const l=t.match(s);return l?
l.map((e=>{if("''"===e)return"'";const t=e[0];if("'"===t)return function(e){const
t=e.match(a);return t?t[1].replace(c,"'"):e}(e);const
r=o.lightFormatters[t];if(r)return r(n,e);if(t.match(u))throw new
RangeError("Format string contains an unescaped latin alphabet character
`"+t+"`");return e})).join(""):""},Object.defineProperty(t,"lightFormatters",
{enumerable:!0,get:function(){return o.lightFormatters}});var
r=n(74390),i=n(44724),o=n(56808);const
s=/(\w)\1*|''|'(''|[^'])+('|$)|./g,a=/^'([^]*?)'?$/,c=/''/g,u=/[a-zA-Z]/},36938:
(e,t)=>{"use strict";t.buildFormatLongFn=function(e){return(t={})=>{const
n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||
e.formats[e.defaultWidth]}}},60205:(e,t)=>{"use
strict";t.buildLocalizeFn=function(e){return(t,n)=>{let
r;if("formatting"===(n?.context?
String(n.context):"standalone")&&e.formattingValues){const
t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?
String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const
t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||
e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},68649:
(e,t)=>{"use strict";t.buildMatchFn=function(e){return(t,n={})=>{const
r=n.width,i=r&&e.matchPatterns[r]||
e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const
s=o[0],a=r&&e.parsePatterns[r]||
e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?function(e,t){for(let
t=0;t<e.length;t++)if(e[t].test(s))return t}(a):function(e,t){for(const t in
e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(a);let
u;return u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?
n.valueCallback(u):u,{value:u,rest:t.slice(s.length)}}}},5479:(e,t)=>{"use
strict";t.buildMatchPatternFn=function(e){return(t,n={})=>{const
r=t.match(e.matchPattern);if(!r)return null;const
i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?
e.valueCallback(o[0]):o[0];return s=n.valueCallback?n.valueCallback(s):s,
{value:s,rest:t.slice(i.length)}}}},21332:(e,t,n)=>{"use strict";t.enUS=void 0;var
r=n(57683),i=n(17682),o=n(86109),s=n(39028),a=n(85658);t.enUS={code:"en-
US",formatDistance:r.formatDistance,formatLong:i.formatLong,formatRelative:o.format
Relative,localize:s.localize,match:a.match,options:
{weekStartsOn:0,firstWeekContainsDate:1}}},57683:(e,t)=>{"use
strict";t.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a
second",other:"less than {{count}} seconds"},xSeconds:{one:"1
second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:
{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1
minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about
{{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1
day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}}
weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1
month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}}
months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:
{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over
{{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}}
years"}};t.formatDistance=(e,t,r)=>{let i;const o=n[e];return i="string"==typeof o?
o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?
r.comparison&&r.comparison>0?"in "+i:i+" ago":i}},17682:(e,t,n)=>{"use
strict";t.formatLong=void 0;var r=n(36938);t.formatLong={date:
(0,r.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do,
y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:
(0,r.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a
z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:
(0,r.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at'
{{time}}",medium:"{{date}}, {{time}}",short:"{{date}},
{{time}}"},defaultWidth:"full"})}},86109:(e,t)=>{"use strict";t.formatRelative=void
0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today
at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at'
p",other:"P"};t.formatRelative=(e,t,r,i)=>n[e]},39028:(e,t,n)=>{"use
strict";t.localize=void 0;var r=n(60205);t.localize={ordinalNumber:(e,t)=>{const
n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return
n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.buildLocalizeFn)({values:
{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno
Domini"]},defaultWidth:"wide"}),quarter:(0,r.buildLocalizeFn)({values:{narrow:
["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd
quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-
1}),month:(0,r.buildLocalizeFn)({values:{narrow:
["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:
["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:
["January","February","March","April","May","June","July","August","September","Oct
ober","November","December"]},defaultWidth:"wide"}),day:(0,r.buildLocalizeFn)
({values:{narrow:["S","M","T","W","T","F","S"],short:
["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:
["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:
["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWi
dth:"wide"}),dayPeriod:(0,r.buildLocalizeFn)({values:{narrow:
{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",eveni
ng:"evening",night:"night"},abbreviated:
{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"after
noon",evening:"evening",night:"night"},wide:
{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"a
fternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:
{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the
morning",afternoon:"in the afternoon",evening:"in the evening",night:"at
night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in
the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at
night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the
morning",afternoon:"in the afternoon",evening:"in the evening",night:"at
night"}},defaultFormattingWidth:"wide"})}},85658:(e,t,n)=>{"use
strict";t.match=void 0;var r=n(68649),i=n(5479);t.match={ordinalNumber:
(0,i.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/
i,valueCallback:e=>parseInt(e,10)}),era:(0,r.buildMatchFn)({matchPatterns:
{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?
e\.?)/i,wide:/^(before christ|before common era|anno domini|common
era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/
i]},defaultParseWidth:"any"}),quarter:(0,r.buildMatchFn)({matchPatterns:{narrow:/
^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)?
quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/
i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.buildMatchFn)
({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|
aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|
september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:
{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/
i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/
^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.buildMatchFn)({matchPatterns:
{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|
wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|
saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/
^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/
i]},defaultParseWidth:"any"}),dayPeriod:(0,r.buildMatchFn)({matchPatterns:
{narrow:/^(a|p|mi|n|(in the|at)
(morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|
at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:
{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/
afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},25518:
(e,t,n)=>{"use strict";t.max=function(e){let t;return e.forEach((function(e){const
n=(0,r.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new
Date(NaN)};var r=n(44724)},37180:(e,t,n)=>{"use
strict";t.milliseconds=function({years:e,months:t,weeks:n,days:i,hours:o,minutes:s,
seconds:a}){let
c=0;e&&(c+=e*r.daysInYear),t&&(c+=t*(r.daysInYear/12)),n&&(c+=7*n),i&&(c+=i);let
u=24*c*60*60;return o&&(u+=60*o*60),s&&(u+=60*s),a&&(u+=a),Math.trunc(1e3*u)};var
r=n(53679)},29304:(e,t,n)=>{"use strict";t.millisecondsToHours=function(e){const
t=e/r.millisecondsInHour;return Math.trunc(t)};var r=n(53679)},77114:(e,t,n)=>{"use
strict";t.millisecondsToMinutes=function(e){const t=e/r.millisecondsInMinute;return
Math.trunc(t)};var r=n(53679)},30634:(e,t,n)=>{"use
strict";t.millisecondsToSeconds=function(e){const t=e/r.millisecondsInSecond;return
Math.trunc(t)};var r=n(53679)},55463:(e,t,n)=>{"use strict";t.min=function(e){let
t;return e.forEach((e=>{const n=(0,r.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||
new Date(NaN)};var r=n(44724)},82023:(e,t,n)=>{"use
strict";t.minutesToHours=function(e){const t=e/r.minutesInHour;return
Math.trunc(t)};var r=n(53679)},94621:(e,t,n)=>{"use
strict";t.minutesToMilliseconds=function(e){return
Math.trunc(e*r.millisecondsInMinute)};var
r=n(53679)},63667:(e,t,n)=>{"use strict";t.minutesToSeconds=function(e){return
Math.trunc(e*r.secondsInMinute)};var r=n(53679)},22305:(e,t,n)=>{"use
strict";t.monthsToQuarters=function(e){const t=e/r.monthsInQuarter;return
Math.trunc(t)};var r=n(53679)},14999:(e,t,n)=>{"use
strict";t.monthsToYears=function(e){const t=e/r.monthsInYear;return
Math.trunc(t)};var r=n(53679)},98495:(e,t,n)=>{"use strict";t.nextDay=function(e,t)
{let n=t-(0,i.getDay)(e);return n<=0&&(n+=7),(0,r.addDays)(e,n)};var
r=n(83978),i=n(49288)},93059:(e,t,n)=>{"use strict";t.nextFriday=function(e)
{return(0,r.nextDay)(e,5)};var r=n(98495)},50486:(e,t,n)=>{"use
strict";t.nextMonday=function(e){return(0,r.nextDay)(e,1)};var r=n(98495)},84623:
(e,t,n)=>{"use strict";t.nextSaturday=function(e){return(0,r.nextDay)(e,6)};var
r=n(98495)},53847:(e,t,n)=>{"use strict";t.nextSunday=function(e)
{return(0,r.nextDay)(e,0)};var r=n(98495)},19082:(e,t,n)=>{"use
strict";t.nextThursday=function(e){return(0,r.nextDay)(e,4)};var r=n(98495)},46232:
(e,t,n)=>{"use strict";t.nextTuesday=function(e){return(0,r.nextDay)(e,2)};var
r=n(98495)},137:(e,t,n)=>{"use strict";t.nextWednesday=function(e)
{return(0,r.nextDay)(e,3)};var r=n(98495)},86103:(e,t,n)=>{"use
strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function()
{return a.longFormatters}}),t.parse=function(e,t,n,v){const
b=(0,i.getDefaultOptions)(),y=v?.locale??b.locale??
o.enUS,w=v?.firstWeekContainsDate??v?.locale?.options?.firstWeekContainsDate??
b.firstWeekContainsDate??b.locale?.options?.firstWeekContainsDate??
1,_=v?.weekStartsOn??v?.locale?.options?.weekStartsOn??b.weekStartsOn??
b.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,s.toDate)(n):
(0,r.constructFrom)(n,NaN);const
E={firstWeekContainsDate:w,weekStartsOn:_,locale:y},S=[new
l.DateToSystemTimezoneSetter],T=t.match(d).map((e=>{const t=e[0];return t in
a.longFormatters?(0,a.longFormatters[t])
(e,y.formatLong):e})).join("").match(h),A=[];for(let i of T){!
v?.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)
(i)&&(0,c.warnOrThrowProtectedError)(i,t,e),!
v?.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)
(i)&&(0,c.warnOrThrowProtectedError)(i,t,e);const o=i[0],s=u.parsers[o];if(s)
{const{incompatibleTokens:t}=s;if(Array.isArray(t)){const
e=A.find((e=>t.includes(e.token)||e.token===o));if(e)throw new RangeError(`The
format string mustn't contain \`${e.fullToken}\` and \`${i}\` at the same
time`)}else if("*"===s.incompatibleTokens&&A.length>0)throw new RangeError(`The
format string mustn't contain \`${i}\` and any other token at the same
time`);A.push({token:o,fullToken:i});const a=s.run(e,i,y.match,E);if(!
a)return(0,r.constructFrom)
(n,NaN);S.push(a.setter),e=a.rest}else{if(o.match(m))throw new RangeError("Format
string contains an unescaped latin alphabet character `"+o+"`");if("''"===i?
i="'":"'"===o&&(i=i.match(f)[1].replace(p,"'")),0!
==e.indexOf(i))return(0,r.constructFrom)
(n,NaN);e=e.slice(i.length)}}if(e.length>0&&g.test(e))return(0,r.constructFrom)
(n,NaN);const C=S.map((e=>e.priority)).sort(((e,t)=>t-
e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>S.filter((t=>t.priority===e)).sort(
((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let O=(0,s.toDate)
(n);if(isNaN(O.getTime()))return(0,r.constructFrom)(n,NaN);const x={};for(const e
of C){if(!e.validate(O,E))return(0,r.constructFrom)(n,NaN);const
t=e.set(O,x,E);Array.isArray(t)?
(O=t[0],Object.assign(x,t[1])):O=t}return(0,r.constructFrom)
(n,O)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return
u.parsers}});var
r=n(4589),i=n(63453),o=n(21332),s=n(44724),a=n(43191),c=n(97963),u=n(2158),l=n(9808
2);const h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|
p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,p=/''/g,g=/\S/,m=/[a-zA-Z]/},95245:
(e,t,n)=>{"use strict";t.Parser=void 0;var r=n(98082);t.Parser=class{run(e,t,n,i)
{const o=this.parse(e,t,n,i);return o?{setter:new
r.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o
.rest}:null}validate(e,t,n){return!0}}},98082:(e,t,n)=>{"use
strict";t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var
r=n(46225),i=n(4589);class o{subPriority=0;validate(e,t){return!
0}}t.Setter=o,t.ValueSetter=class extends o{constructor(e,t,n,r,i)
{super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this
.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n)
{return this.setValue(e,t,this.value,n)}},t.DateToSystemTimezoneSetter=class
extends o{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:
(0,i.constructFrom)(e,(0,r.transpose)(e,Date))}}},53322:(e,t)=>{"use
strict";t.timezonePatterns=t.numericPatterns=void
0,t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/
^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-
1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\
d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\
d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\
d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\
d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/
^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/
^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|
Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},2158:
(e,t,n)=>{"use strict";t.parsers=void 0;var
r=n(83921),i=n(60731),o=n(71708),s=n(37124),a=n(26387),c=n(54196),u=n(67864),l=n(29
795),h=n(81336),d=n(51348),f=n(77073),p=n(83197),g=n(4711),m=n(32001),v=n(26469),b=
n(11655),y=n(99838),w=n(49990),_=n(93953),E=n(14748),S=n(54864),T=n(98882),A=n(1667
7),C=n(75097),O=n(96734),x=n(95043),I=n(43588),P=n(73748),D=n(19205),k=n(40668),R=n
(34874);t.parsers={G:new r.EraParser,y:new i.YearParser,Y:new
o.LocalWeekYearParser,R:new s.ISOWeekYearParser,u:new a.ExtendedYearParser,Q:new
c.QuarterParser,q:new u.StandAloneQuarterParser,M:new l.MonthParser,L:new
h.StandAloneMonthParser,w:new d.LocalWeekParser,I:new f.ISOWeekParser,d:new
p.DateParser,D:new g.DayOfYearParser,E:new m.DayParser,e:new v.LocalDayParser,c:new
b.StandAloneLocalDayParser,i:new y.ISODayParser,a:new w.AMPMParser,b:new
_.AMPMMidnightParser,B:new E.DayPeriodParser,h:new S.Hour1to12Parser,H:new
T.Hour0to23Parser,K:new A.Hour0To11Parser,k:new C.Hour1To24Parser,m:new
O.MinuteParser,s:new x.SecondParser,S:new I.FractionOfSecondParser,X:new
P.ISOTimezoneWithZParser,x:new D.ISOTimezoneParser,t:new
k.TimestampSecondsParser,T:new R.TimestampMillisecondsParser}},93953:(e,t,n)=>{"use
strict";t.AMPMMidnightParser=void 0;var r=n(95245),i=n(26166);class o extends
r.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return
n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,
{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,
{width:"wide",context:"formatting"})||n.dayPeriod(e,
{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"})}}set(e,t,n){return
e.setHours((0,i.dayPeriodEnumToHours)
(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}t.AMPMMidnightParser=o},4
9990:(e,t,n)=>{"use strict";t.AMPMParser=void 0;var r=n(95245),i=n(26166);class o
extends r.Parser{priority=80;parse(e,t,n){switch(t)
{case"a":case"aa":case"aaa":return n.dayPeriod(e,
{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,
{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,
{width:"wide",context:"formatting"})||n.dayPeriod(e,
{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"})}}set(e,t,n){return
e.setHours((0,i.dayPeriodEnumToHours)
(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}t.AMPMParser=o},83197:
(e,t,n)=>{"use strict";t.DateParser=void 0;var
r=n(53322),i=n(95245),o=n(26166);const
s=[31,28,31,30,31,30,31,31,30,31,30,31],a=[31,29,31,30,31,30,31,31,30,31,30,31];cla
ss c extends i.Parser{priority=90;subPriority=1;parse(e,t,n){switch(t)
{case"d":return(0,o.parseNumericPattern)(r.numericPatterns.date,e);case"do":return
n.ordinalNumber(e,{unit:"date"});default:return(0,o.parseNDigits)
(t.length,e)}}validate(e,t){const n=e.getFullYear(),r=(0,o.isLeapYearIndex)
(n),i=e.getMonth();return r?t>=1&&t<=a[i]:t>=1&&t<=s[i]}set(e,t,n){return
e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D",
"i","e","c","t","T"]}t.DateParser=c},4711:(e,t,n)=>{"use
strict";t.DayOfYearParser=void 0;var r=n(53322),i=n(95245),o=n(26166);class s
extends i.Parser{priority=90;subpriority=1;parse(e,t,n){switch(t)
{case"D":case"DD":return(0,o.parseNumericPattern)
(r.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,
{unit:"date"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){const
n=e.getFullYear();return(0,o.isLeapYearIndex)(n)?
t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return
e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","
w","I","d","E","i","e","c","t","T"]}t.DayOfYearParser=s},32001:(e,t,n)=>{"use
strict";t.DayParser=void 0;var r=n(4729),i=n(95245);class o extends
i.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return
n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,
{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"});default:return n.day(e,
{width:"wide",context:"formatting"})||n.day(e,
{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"})}}validate(e,t){return
t>=0&&t<=6}set(e,t,n,i){return(e=(0,r.setDay)
(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}t.DayPars
er=o},14748:(e,t,n)=>{"use strict";t.DayPeriodParser=void 0;var
r=n(95245),i=n(26166);class o extends r.Parser{priority=80;parse(e,t,n){switch(t)
{case"B":case"BB":case"BBB":return n.dayPeriod(e,
{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,
{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,
{width:"wide",context:"formatting"})||n.dayPeriod(e,
{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,
{width:"narrow",context:"formatting"})}}set(e,t,n){return
e.setHours((0,i.dayPeriodEnumToHours)
(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}t.DayPeriodParser=o},83921:
(e,t,n)=>{"use strict";t.EraParser=void 0;var r=n(95245);class i extends
r.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return
n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return
n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,
{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return
t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t",
"T"]}t.EraParser=i},26387:(e,t,n)=>{"use strict";t.ExtendedYearParser=void 0;var
r=n(95245),i=n(26166);class o extends r.Parser{priority=130;parse(e,t)
{return"u"===t?(0,i.parseNDigitsSigned)(4,e):(0,i.parseNDigitsSigned)
(t.length,e)}set(e,t,n){return
e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w",
"I","i","e","c","t","T"]}t.ExtendedYearParser=o},43588:(e,t,n)=>{"use
strict";t.FractionOfSecondParser=void 0;var r=n(95245),i=n(26166);class o extends
r.Parser{priority=30;parse(e,t){return(0,i.mapValue)((0,i.parseNDigits)
(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return
e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}t.FractionOfSecondParser=o},166
77:(e,t,n)=>{"use strict";t.Hour0To11Parser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends i.Parser{priority=70;parse(e,t,n)
{switch(t){case"K":return(0,o.parseNumericPattern)
(r.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,
{unit:"hour"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?
e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T
"]}t.Hour0To11Parser=s},98882:(e,t,n)=>{"use strict";t.Hour0to23Parser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends i.Parser{priority=70;parse(e,t,n)
{switch(t){case"H":return(0,o.parseNumericPattern)
(r.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,
{unit:"hour"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=0&&t<=23}set(e,t,n){return
e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}t.Hour0to23P
arser=s},75097:(e,t,n)=>{"use strict";t.Hour1To24Parser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends i.Parser{priority=70;parse(e,t,n)
{switch(t){case"k":return(0,o.parseNumericPattern)
(r.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,
{unit:"hour"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return
e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}t.Hour1To24P
arser=s},54864:(e,t,n)=>{"use strict";t.Hour1to12Parser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends i.Parser{priority=70;parse(e,t,n)
{switch(t){case"h":return(0,o.parseNumericPattern)
(r.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,
{unit:"hour"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?
e.setHours(n+12,0,0,0):r||12!==n?
e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}
t.Hour1to12Parser=s},99838:(e,t,n)=>{"use strict";t.ISODayParser=void 0;var
r=n(70337),i=n(95245),o=n(26166);class s extends i.Parser{priority=90;parse(e,t,n)
{const r=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,o.parseNDigits)
(t.length,e);case"io":return n.ordinalNumber(e,
{unit:"day"});case"iii":return(0,o.mapValue)(n.day(e,
{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"}),r);case"iiiii":return(0,o.mapValue)(n.day(e,
{width:"narrow",context:"formatting"}),r);case"iiiiii":return(0,o.mapValue)
(n.day(e,{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"}),r);default:return(0,o.mapValue)(n.day(e,
{width:"wide",context:"formatting"})||n.day(e,
{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"}),r)}}validate(e,t){return
t>=1&&t<=7}set(e,t,n){return(e=(0,r.setISODay)
(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d",
"D","E","e","c","t","T"]}t.ISODayParser=s},19205:(e,t,n)=>{"use
strict";t.ISOTimezoneParser=void 0;var
r=n(4589),i=n(1527),o=n(53322),s=n(95245),a=n(26166);class c extends
s.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,a.parseTimezonePattern)
(o.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,a.parseTimezonePatter
n)(o.timezonePatterns.basic,e);case"xxxx":return(0,a.parseTimezonePattern)
(o.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,a.parseTimezonePat
tern)
(o.timezonePatterns.extendedOptionalSeconds,e);default:return(0,a.parseTimezonePatt
ern)(o.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:
(0,r.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-
n)}incompatibleTokens=["t","T","X"]}t.ISOTimezoneParser=c},73748:(e,t,n)=>{"use
strict";t.ISOTimezoneWithZParser=void 0;var
r=n(4589),i=n(1527),o=n(53322),s=n(95245),a=n(26166);class c extends
s.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,a.parseTimezonePattern)
(o.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,a.parseTimezonePatter
n)(o.timezonePatterns.basic,e);case"XXXX":return(0,a.parseTimezonePattern)
(o.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,a.parseTimezonePat
tern)
(o.timezonePatterns.extendedOptionalSeconds,e);default:return(0,a.parseTimezonePatt
ern)(o.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:
(0,r.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-
n)}incompatibleTokens=["t","T","x"]}t.ISOTimezoneWithZParser=c},77073:
(e,t,n)=>{"use strict";t.ISOWeekParser=void 0;var
r=n(70596),i=n(89301),o=n(53322),s=n(95245),a=n(26166);class c extends
s.Parser{priority=100;parse(e,t,n){switch(t)
{case"I":return(0,a.parseNumericPattern)(o.numericPatterns.week,e);case"Io":return
n.ordinalNumber(e,{unit:"week"});default:return(0,a.parseNDigits)
(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n)
{return(0,i.startOfISOWeek)((0,r.setISOWeek)
(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]
}t.ISOWeekParser=c},37124:(e,t,n)=>{"use strict";t.ISOWeekYearParser=void 0;var
r=n(89301),i=n(4589),o=n(95245),s=n(26166);class a extends
o.Parser{priority=130;parse(e,t){return"R"===t?(0,s.parseNDigitsSigned)(4,e):
(0,s.parseNDigitsSigned)(t.length,e)}set(e,t,n){const o=(0,i.constructFrom)
(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),(0,r.startOfISOWeek)
(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"
]}t.ISOWeekYearParser=a},26469:(e,t,n)=>{"use strict";t.LocalDayParser=void 0;var
r=n(4729),i=n(95245),o=n(26166);class s extends i.Parser{priority=90;parse(e,t,n,r)
{const i=e=>{const
t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t)
{case"e":case"ee":return(0,o.mapValue)((0,o.parseNDigits)
(t.length,e),i);case"eo":return(0,o.mapValue)(n.ordinalNumber(e,
{unit:"day"}),i);case"eee":return n.day(e,
{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,
{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"});default:return n.day(e,
{width:"wide",context:"formatting"})||n.day(e,
{width:"abbreviated",context:"formatting"})||n.day(e,
{width:"short",context:"formatting"})||n.day(e,
{width:"narrow",context:"formatting"})}}validate(e,t){return
t>=0&&t<=6}set(e,t,n,i){return(e=(0,r.setDay)
(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d
","D","E","i","c","t","T"]}t.LocalDayParser=s},51348:(e,t,n)=>{"use
strict";t.LocalWeekParser=void 0;var
r=n(52561),i=n(83877),o=n(53322),s=n(95245),a=n(26166);class c extends
s.Parser{priority=100;parse(e,t,n){switch(t)
{case"w":return(0,a.parseNumericPattern)(o.numericPatterns.week,e);case"wo":return
n.ordinalNumber(e,{unit:"week"});default:return(0,a.parseNDigits)
(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,o){return(0,i.startOfWeek)
((0,r.setWeek)
(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]
}t.LocalWeekParser=c},71708:(e,t,n)=>{"use strict";t.LocalWeekYearParser=void 0;var
r=n(38180),i=n(83877),o=n(95245),s=n(26166);class a extends
o.Parser{priority=130;parse(e,t,n){const
r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,s.mapValue)
((0,s.parseNDigits)(4,e),r);case"Yo":return(0,s.mapValue)(n.ordinalNumber(e,
{unit:"year"}),r);default:return(0,s.mapValue)((0,s.parseNDigits)
(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,o){const
a=(0,r.getWeekYear)(e,o);if(n.isTwoDigitYear){const t=(0,s.normalizeTwoDigitYear)
(n.year,a);return e.setFullYear(t,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),
(0,i.startOfWeek)(e,o)}const c="era"in t&&1!==t.era?1-n.year:n.year;return
e.setFullYear(c,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),(0,i.startOfWeek)
(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T
"]}t.LocalWeekYearParser=a},96734:(e,t,n)=>{"use strict";t.MinuteParser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends i.Parser{priority=60;parse(e,t,n)
{switch(t){case"m":return(0,o.parseNumericPattern)
(r.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,
{unit:"minute"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=0&&t<=59}set(e,t,n){return
e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}t.MinuteParser=s},29795:
(e,t,n)=>{"use strict";t.MonthParser=void 0;var
r=n(53322),i=n(95245),o=n(26166);class s extends
i.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];p
riority=110;parse(e,t,n){const i=e=>e-1;switch(t){case"M":return(0,o.mapValue)
((0,o.parseNumericPattern)
(r.numericPatterns.month,e),i);case"MM":return(0,o.mapValue)((0,o.parseNDigits)
(2,e),i);case"Mo":return(0,o.mapValue)(n.ordinalNumber(e,
{unit:"month"}),i);case"MMM":return n.month(e,
{width:"abbreviated",context:"formatting"})||n.month(e,
{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,
{width:"narrow",context:"formatting"});default:return n.month(e,
{width:"wide",context:"formatting"})||n.month(e,
{width:"abbreviated",context:"formatting"})||n.month(e,
{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n)
{return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=s},54196:
(e,t,n)=>{"use strict";t.QuarterParser=void 0;var r=n(95245),i=n(26166);class o
extends r.Parser{priority=120;parse(e,t,n){switch(t)
{case"Q":case"QQ":return(0,i.parseNDigits)(t.length,e);case"Qo":return
n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,
{width:"abbreviated",context:"formatting"})||n.quarter(e,
{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,
{width:"narrow",context:"formatting"});default:return n.quarter(e,
{width:"wide",context:"formatting"})||n.quarter(e,
{width:"abbreviated",context:"formatting"})||n.quarter(e,
{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n)
{return e.setMonth(3*(n-
1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D"
,"i","e","c","t","T"]}t.QuarterParser=o},95043:(e,t,n)=>{"use
strict";t.SecondParser=void 0;var r=n(53322),i=n(95245),o=n(26166);class s extends
i.Parser{priority=50;parse(e,t,n){switch(t){case"s":return(0,o.parseNumericPattern)
(r.numericPatterns.second,e);case"so":return n.ordinalNumber(e,
{unit:"second"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return
t>=0&&t<=59}set(e,t,n){return
e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}t.SecondParser=s},11655:
(e,t,n)=>{"use strict";t.StandAloneLocalDayParser=void 0;var
r=n(4729),i=n(95245),o=n(26166);class s extends i.Parser{priority=90;parse(e,t,n,r)
{const i=e=>{const
t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t)
{case"c":case"cc":return(0,o.mapValue)((0,o.parseNDigits)
(t.length,e),i);case"co":return(0,o.mapValue)(n.ordinalNumber(e,
{unit:"day"}),i);case"ccc":return n.day(e,
{width:"abbreviated",context:"standalone"})||n.day(e,
{width:"short",context:"standalone"})||n.day(e,
{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,
{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,
{width:"short",context:"standalone"})||n.day(e,
{width:"narrow",context:"standalone"});default:return n.day(e,
{width:"wide",context:"standalone"})||n.day(e,
{width:"abbreviated",context:"standalone"})||n.day(e,
{width:"short",context:"standalone"})||n.day(e,
{width:"narrow",context:"standalone"})}}validate(e,t){return
t>=0&&t<=6}set(e,t,n,i){return(e=(0,r.setDay)
(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d
","D","E","i","e","t","T"]}t.StandAloneLocalDayParser=s},81336:(e,t,n)=>{"use
strict";t.StandAloneMonthParser=void 0;var r=n(53322),i=n(95245),o=n(26166);class s
extends i.Parser{priority=110;parse(e,t,n){const i=e=>e-1;switch(t)
{case"L":return(0,o.mapValue)((0,o.parseNumericPattern)
(r.numericPatterns.month,e),i);case"LL":return(0,o.mapValue)((0,o.parseNDigits)
(2,e),i);case"Lo":return(0,o.mapValue)(n.ordinalNumber(e,
{unit:"month"}),i);case"LLL":return n.month(e,
{width:"abbreviated",context:"standalone"})||n.month(e,
{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,
{width:"narrow",context:"standalone"});default:return n.month(e,
{width:"wide",context:"standalone"})||n.month(e,
{width:"abbreviated",context:"standalone"})||n.month(e,
{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n)
{return
e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","
I","D","i","e","c","t","T"]}t.StandAloneMonthParser=s},67864:(e,t,n)=>{"use
strict";t.StandAloneQuarterParser=void 0;var r=n(95245),i=n(26166);class o extends
r.Parser{priority=120;parse(e,t,n){switch(t)
{case"q":case"qq":return(0,i.parseNDigits)(t.length,e);case"qo":return
n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,
{width:"abbreviated",context:"standalone"})||n.quarter(e,
{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,
{width:"narrow",context:"standalone"});default:return n.quarter(e,
{width:"wide",context:"standalone"})||n.quarter(e,
{width:"abbreviated",context:"standalone"})||n.quarter(e,
{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n)
{return e.setMonth(3*(n-
1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D"
,"i","e","c","t","T"]}t.StandAloneQuarterParser=o},34874:(e,t,n)=>{"use
strict";t.TimestampMillisecondsParser=void 0;var
r=n(4589),i=n(95245),o=n(26166);class s extends i.Parser{priority=20;parse(e)
{return(0,o.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,r.constructFrom)(e,n),
{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampMillisecondsParser=s},40668:
(e,t,n)=>{"use strict";t.TimestampSecondsParser=void 0;var
r=n(4589),i=n(95245),o=n(26166);class s extends i.Parser{priority=40;parse(e)
{return(0,o.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,r.constructFrom)
(e,1e3*n),{timestampIsSet:!
0}]}incompatibleTokens="*"}t.TimestampSecondsParser=s},60731:(e,t,n)=>{"use
strict";t.YearParser=void 0;var r=n(95245),i=n(26166);class o extends
r.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];
parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t)
{case"y":return(0,i.mapValue)((0,i.parseNDigits)
(4,e),r);case"yo":return(0,i.mapValue)(n.ordinalNumber(e,
{unit:"year"}),r);default:return(0,i.mapValue)((0,i.parseNDigits)
(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const
r=e.getFullYear();if(n.isTwoDigitYear){const t=(0,i.normalizeTwoDigitYear)
(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!
==t.era?1-n.year:n.year;return
e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}t.YearParser=o},26166:(e,t,n)=>{"use
strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return
4;case"evening":return 17;case"pm":case"noon":case"afternoon":return
12;default:return 0}},t.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!
=0},t.mapValue=function(e,t){return e?
{value:t(e.value),rest:e.rest}:e},t.normalizeTwoDigitYear=function(e,t){const
n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const
t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-
i},t.parseAnyDigitsSigned=function(e){return
o(i.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case
1:return o(i.numericPatterns.singleDigit,t);case 2:return
o(i.numericPatterns.twoDigits,t);case 3:return
o(i.numericPatterns.threeDigits,t);case 4:return
o(i.numericPatterns.fourDigits,t);default:return o(new RegExp("^\\
d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return
o(i.numericPatterns.singleDigitSigned,t);case 2:return
o(i.numericPatterns.twoDigitsSigned,t);case 3:return
o(i.numericPatterns.threeDigitsSigned,t);case 4:return
o(i.numericPatterns.fourDigitsSigned,t);default:return o(new RegExp("^-?\\
d{1,"+e+"}"),t)}},t.parseNumericPattern=o,t.parseTimezonePattern=function(e,t)
{const n=t.match(e);if(!n)return
null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const i="+"===n[1]?1:-1,o=n[2]?
parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,a=n[5]?
parseInt(n[5],10):0;return{value:i*(o*r.millisecondsInHour+s*r.millisecondsInMinute
+a*r.millisecondsInSecond),rest:t.slice(n[0].length)}};var
r=n(53679),i=n(53322);function o(e,t){const n=t.match(e);return n?
{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},14485:(e,t,n)=>{"use
strict";t.parseISO=function(e,t){const n=t?.additionalDigits??2,d=function(e){const
t={},n=e.split(i.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?
r=n[0]:
(t.date=n[0],r=n[1],i.timeZoneDelimiter.test(t.date)&&(t.date=e.split(i.timeZoneDel
imiter)[0],r=e.substr(t.date.length,e.length))),r){const e=i.timezone.exec(r);e?
(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let f;if(d.date)
{const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|
[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const
i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?
i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(d.date,n);f=function(e,t)
{if(null===t)return new Date(NaN);const n=e.match(o);if(!n)return new
Date(NaN);const r=!!n[4],i=c(n[1]),s=c(n[2])-1,a=c(n[3]),u=c(n[4]),d=c(n[5])-
1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,d)?
function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-
(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,u,d):new Date(NaN);
{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(l[t]||
(h(e)?29:28))}(t,s,a)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,i)?
(e.setUTCFullYear(t,s,Math.max(i,a)),e):new Date(NaN)}}
(e.restDateString,e.year)}if(!f||isNaN(f.getTime()))return new Date(NaN);const
p=f.getTime();let g,m=0;if(d.time&&(m=function(e){const t=e.match(s);if(!t)return
NaN;const n=u(t[1]),i=u(t[2]),o=u(t[3]);return function(e,t,n){return 24===e?
0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o)?
n*r.millisecondsInHour+i*r.millisecondsInMinute+1e3*o:NaN}(d.time),isNaN(m)))return
new Date(NaN);if(!d.timezone){const e=new Date(p+m),t=new Date(0);return
t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUT
CHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return
g=function(e){if("Z"===e)return 0;const t=e.match(a);if(!t)return 0;const
n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t)
{return t>=0&&t<=59}(0,o)?n*(i*r.millisecondsInHour+o*r.millisecondsInMinute):NaN}
(d.timezone),isNaN(g)?new Date(NaN):new Date(p+m+g)};var r=n(53679);const
i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},o=/^-?
(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)
(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,a=/^([+-])(\d{2})(?::?(\
d{2}))?$/;function c(e){return e?parseInt(e):1}function u(e){return
e&&parseFloat(e.replace(",","."))||0}const
l=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e
%100!=0}},77864:(e,t)=>{"use strict";t.parseJSON=function(e){const t=e.match(/(\
d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\
d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||
0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")
+"00").substring(0,3))):new Date(NaN)}},73189:(e,t,n)=>{"use
strict";t.previousDay=function(e,t){let n=(0,r.getDay)(e)-t;return n<=0&&(n+=7),
(0,i.subDays)(e,n)};var r=n(49288),i=n(86584)},35420:(e,t,n)=>{"use
strict";t.previousFriday=function(e){return(0,r.previousDay)(e,5)};var
r=n(73189)},65042:(e,t,n)=>{"use strict";t.previousMonday=function(e)
{return(0,r.previousDay)(e,1)};var r=n(73189)},73802:(e,t,n)=>{"use
strict";t.previousSaturday=function(e){return(0,r.previousDay)(e,6)};var
r=n(73189)},54215:(e,t,n)=>{"use strict";t.previousSunday=function(e)
{return(0,r.previousDay)(e,0)};var r=n(73189)},61663:(e,t,n)=>{"use
strict";t.previousThursday=function(e){return(0,r.previousDay)(e,4)};var
r=n(73189)},42941:(e,t,n)=>{"use strict";t.previousTuesday=function(e)
{return(0,r.previousDay)(e,2)};var r=n(73189)},43529:(e,t,n)=>{"use
strict";t.previousWednesday=function(e){return(0,r.previousDay)(e,3)};var
r=n(73189)},31078:(e,t,n)=>{"use strict";t.quartersToMonths=function(e){return
Math.trunc(e*r.monthsInQuarter)};var r=n(53679)},1890:(e,t,n)=>{"use
strict";t.quartersToYears=function(e){const t=e/r.quartersInYear;return
Math.trunc(t)};var r=n(53679)},79122:(e,t,n)=>{"use
strict";t.roundToNearestMinutes=function(e,t){const n=t?.nearestTo??1;if(n<1||
n>30)return(0,i.constructFrom)(e,NaN);const
s=(0,o.toDate)(e),a=s.getSeconds()/60,c=s.getMilliseconds()/1e3/60,u=s.getMinutes()
+a+c,l=t?.roundingMethod??"round",h=(0,r.getRoundingMethod)(l)(u/
n)*n,d=(0,i.constructFrom)(e,s);return d.setMinutes(h,0,0),d};var
r=n(37814),i=n(4589),o=n(44724)},88634:(e,t,n)=>{"use
strict";t.secondsToHours=function(e){const t=e/r.secondsInHour;return
Math.trunc(t)};var r=n(53679)},6179:(e,t,n)=>{"use
strict";t.secondsToMilliseconds=function(e){return e*r.millisecondsInSecond};var
r=n(53679)},59399:(e,t,n)=>{"use strict";t.secondsToMinutes=function(e){const
t=e/r.secondsInMinute;return Math.trunc(t)};var r=n(53679)},53304:(e,t,n)=>{"use
strict";t.set=function(e,t){let n=(0,o.toDate)(e);return isNaN(+n)?
(0,r.constructFrom)(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!
=t.month&&(n=(0,i.setMonth)(n,t.month)),null!=t.date&&n.setDate(t.date),null!
=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!
=t.seconds&&n.setSeconds(t.seconds),null!
=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)};var
r=n(4589),i=n(82650),o=n(44724)},28296:(e,t,n)=>{"use
strict";t.setDate=function(e,t){const n=(0,r.toDate)(e);return n.setDate(t),n};var
r=n(44724)},4729:(e,t,n)=>{"use strict";t.setDay=function(e,t,n){const
s=(0,o.getDefaultOptions)(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??
s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,i.toDate)
(e),u=c.getDay(),l=7-a,h=t<0||t>6?t-(u+l)%7:((t%7+7)%7+l)%7-(u+l)
%7;return(0,r.addDays)(c,h)};var r=n(83978),i=n(44724),o=n(92949)},47055:
(e,t,n)=>{"use strict";t.setDayOfYear=function(e,t){const n=(0,r.toDate)(e);return
n.setMonth(0),n.setDate(t),n};var r=n(44724)},96820:(e,t,n)=>{"use
strict";t.setDefaultOptions=function(e){const t={},n=(0,r.getDefaultOptions)
();for(const e in
n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(const n in
e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);
(0,r.setDefaultOptions)(t)};var r=n(92949)},24269:(e,t,n)=>{"use
strict";t.setHours=function(e,t){const n=(0,r.toDate)(e);return
n.setHours(t),n};var r=n(44724)},70337:(e,t,n)=>{"use
strict";t.setISODay=function(e,t){const n=(0,o.toDate)(e),s=t-(0,i.getISODay)
(n);return(0,r.addDays)(n,s)};var r=n(83978),i=n(29064),o=n(44724)},70596:
(e,t,n)=>{"use strict";t.setISOWeek=function(e,t){const n=(0,i.toDate)
(e),o=(0,r.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*o),n};var
r=n(69513),i=n(44724)},58985:(e,t,n)=>{"use strict";t.setISOWeekYear=function(e,t)
{let n=(0,s.toDate)(e);const a=(0,i.differenceInCalendarDays)(n,
(0,o.startOfISOWeekYear)(n)),c=(0,r.constructFrom)(e,0);return
c.setFullYear(t,0,4),c.setHours(0,0,0,0),n=(0,o.startOfISOWeekYear)
(c),n.setDate(n.getDate()+a),n};var
r=n(4589),i=n(45672),o=n(85860),s=n(44724)},85558:(e,t,n)=>{"use
strict";t.setMilliseconds=function(e,t){const n=(0,r.toDate)(e);return
n.setMilliseconds(t),n};var r=n(44724)},14728:(e,t,n)=>{"use
strict";t.setMinutes=function(e,t){const n=(0,r.toDate)(e);return
n.setMinutes(t),n};var r=n(44724)},82650:(e,t,n)=>{"use
strict";t.setMonth=function(e,t){const n=(0,o.toDate)
(e),s=n.getFullYear(),a=n.getDate(),c=(0,r.constructFrom)
(e,0);c.setFullYear(s,t,15),c.setHours(0,0,0,0);const u=(0,i.getDaysInMonth)
(c);return n.setMonth(t,Math.min(a,u)),n};var
r=n(4589),i=n(74922),o=n(44724)},3646:(e,t,n)=>{"use
strict";t.setQuarter=function(e,t){const n=(0,i.toDate)(e),o=t-
(Math.trunc(n.getMonth()/3)+1);return(0,r.setMonth)(n,n.getMonth()+3*o)};var
r=n(82650),i=n(44724)},24562:(e,t,n)=>{"use strict";t.setSeconds=function(e,t)
{const n=(0,r.toDate)(e);return n.setSeconds(t),n};var r=n(44724)},52561:
(e,t,n)=>{"use strict";t.setWeek=function(e,t,n){const o=(0,i.toDate)
(e),s=(0,r.getWeek)(o,n)-t;return o.setDate(o.getDate()-7*s),o};var
r=n(32901),i=n(44724)},86593:(e,t,n)=>{"use strict";t.setWeekYear=function(e,t,n)
{const c=(0,a.getDefaultOptions)(),u=n?.firstWeekContainsDate??
n?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??
c.locale?.options?.firstWeekContainsDate??1;let l=(0,s.toDate)(e);const
h=(0,i.differenceInCalendarDays)(l,(0,o.startOfWeekYear)
(l,n)),d=(0,r.constructFrom)(e,0);return
d.setFullYear(t,0,u),d.setHours(0,0,0,0),l=(0,o.startOfWeekYear)
(d,n),l.setDate(l.getDate()+h),l};var
r=n(4589),i=n(45672),o=n(50237),s=n(44724),a=n(92949)},22490:(e,t,n)=>{"use
strict";t.setYear=function(e,t){const n=(0,i.toDate)(e);return isNaN(+n)?
(0,r.constructFrom)(e,NaN):(n.setFullYear(t),n)};var r=n(4589),i=n(44724)},72274:
(e,t,n)=>{"use strict";t.startOfDay=function(e){const t=(0,r.toDate)(e);return
t.setHours(0,0,0,0),t};var r=n(44724)},23114:(e,t,n)=>{"use
strict";t.startOfDecade=function(e){const t=(0,r.toDate)
(e),n=t.getFullYear(),i=10*Math.floor(n/10);return
t.setFullYear(i,0,1),t.setHours(0,0,0,0),t};var r=n(44724)},25281:(e,t,n)=>{"use
strict";t.startOfHour=function(e){const t=(0,r.toDate)(e);return
t.setMinutes(0,0,0),t};var r=n(44724)},89301:(e,t,n)=>{"use
strict";t.startOfISOWeek=function(e){return(0,r.startOfWeek)(e,
{weekStartsOn:1})};var r=n(83877)},85860:(e,t,n)=>{"use
strict";t.startOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)
(e),n=(0,o.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),
(0,i.startOfISOWeek)(n)};var r=n(95303),i=n(89301),o=n(4589)},52881:(e,t,n)=>{"use
strict";t.startOfMinute=function(e){const t=(0,r.toDate)(e);return
t.setSeconds(0,0),t};var r=n(44724)},23266:(e,t,n)=>{"use
strict";t.startOfMonth=function(e){const t=(0,r.toDate)(e);return
t.setDate(1),t.setHours(0,0,0,0),t};var r=n(44724)},6831:(e,t,n)=>{"use
strict";t.startOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),i=n-n
%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t};var r=n(44724)},73320:
(e,t,n)=>{"use strict";t.startOfSecond=function(e){const t=(0,r.toDate)(e);return
t.setMilliseconds(0),t};var r=n(44724)},48285:(e,t,n)=>{"use
strict";t.startOfToday=function(){return(0,r.startOfDay)(Date.now())};var
r=n(72274)},75616:(e,t)=>{"use strict";t.startOfTomorrow=function(){const e=new
Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),i=new Date(0);return
i.setFullYear(t,n,r+1),i.setHours(0,0,0,0),i}},83877:(e,t,n)=>{"use
strict";t.startOfWeek=function(e,t){const n=(0,i.getDefaultOptions)
(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??
n.locale?.options?.weekStartsOn??0,s=(0,r.toDate)(e),a=s.getDay(),c=(a<o?7:0)+a-
o;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s};var
r=n(44724),i=n(92949)},50237:(e,t,n)=>{"use strict";t.startOfWeekYear=function(e,t)
{const n=(0,s.getDefaultOptions)(),a=t?.firstWeekContainsDate??
t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??
n.locale?.options?.firstWeekContainsDate??1,c=(0,i.getWeekYear)
(e,t),u=(0,r.constructFrom)(e,0);return u.setFullYear(c,0,a),u.setHours(0,0,0,0),
(0,o.startOfWeek)(u,t)};var r=n(4589),i=n(38180),o=n(83877),s=n(92949)},90821:
(e,t,n)=>{"use strict";t.startOfYear=function(e){const t=(0,r.toDate)
(e),n=(0,i.constructFrom)(e,0);return
n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var
r=n(44724),i=n(4589)},75747:(e,t)=>{"use
strict";t.startOfYesterday=function(){const e=new
Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),i=new Date(0);return
i.setFullYear(t,n,r-1),i.setHours(0,0,0,0),i}},47686:(e,t,n)=>{"use
strict";t.sub=function(e,t)
{const{years:n=0,months:s=0,weeks:a=0,days:c=0,hours:u=0,minutes:l=0,seconds:h=0}=t
,d=(0,i.subMonths)(e,s+12*n),f=(0,r.subDays)
(d,c+7*a),p=1e3*(h+60*(l+60*u));return(0,o.constructFrom)(e,f.getTime()-p)};var
r=n(86584),i=n(10260),o=n(4589)},94347:(e,t,n)=>{"use
strict";t.subBusinessDays=function(e,t){return(0,r.addBusinessDays)(e,-t)};var
r=n(39225)},86584:(e,t,n)=>{"use strict";t.subDays=function(e,t)
{return(0,r.addDays)(e,-t)};var r=n(83978)},39169:(e,t,n)=>{"use
strict";t.subHours=function(e,t){return(0,r.addHours)(e,-t)};var r=n(41278)},76081:
(e,t,n)=>{"use strict";t.subISOWeekYears=function(e,t){return(0,r.addISOWeekYears)
(e,-t)};var r=n(77673)},44566:(e,t,n)=>{"use
strict";t.subMilliseconds=function(e,t){return(0,r.addMilliseconds)(e,-t)};var
r=n(67106)},31160:(e,t,n)=>{"use strict";t.subMinutes=function(e,t)
{return(0,r.addMinutes)(e,-t)};var r=n(5157)},10260:(e,t,n)=>{"use
strict";t.subMonths=function(e,t){return(0,r.addMonths)(e,-t)};var
r=n(48991)},4286:(e,t,n)=>{"use strict";t.subQuarters=function(e,t)
{return(0,r.addQuarters)(e,-t)};var r=n(53893)},35882:(e,t,n)=>{"use
strict";t.subSeconds=function(e,t){return(0,r.addSeconds)(e,-t)};var
r=n(41488)},35619:(e,t,n)=>{"use strict";t.subWeeks=function(e,t)
{return(0,r.addWeeks)(e,-t)};var r=n(75978)},26663:(e,t,n)=>{"use
strict";t.subYears=function(e,t){return(0,r.addYears)(e,-t)};var r=n(83366)},44724:
(e,t)=>{"use strict";t.toDate=function(e){const
t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof
e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object
Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new
Date(NaN)}},46225:(e,t,n)=>{"use strict";t.transpose=function(e,t){const n=t
instanceof Date?(0,r.constructFrom)(t,0):new t(0);return
n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.g
etMinutes(),e.getSeconds(),e.getMilliseconds()),n};var r=n(4589)},4388:
(e,t,n)=>{"use strict";t.weeksToDays=function(e){return
Math.trunc(e*r.daysInWeek)};var r=n(53679)},85345:(e,t,n)=>{"use
strict";t.yearsToDays=function(e){return Math.trunc(e*r.daysInYear)};var
r=n(53679)},99893:(e,t,n)=>{"use strict";t.yearsToMonths=function(e){return
Math.trunc(e*r.monthsInYear)};var r=n(53679)},32416:(e,t,n)=>{"use
strict";t.yearsToQuarters=function(e){return Math.trunc(e*r.quartersInYear)};var
r=n(53679)},16594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new
Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animat
eTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite
","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDr
opShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feIma
ge","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLig
hting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGrad
ient","radialGradient","textPath"].map((function(e)
{return[e.toLowerCase(),e]}))),t.attributeNames=new
Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile",
"calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","g
radientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","ke
ySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits
","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternCo
ntentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","
preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","
repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExpo
nent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","sys
temLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget",
"xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e)
{return[e.toLowerCase(),e]})))},50606:function(e,t,n){"use strict";var
r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var
t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?
function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!
("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!
0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r)
{void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return
o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var
a=s(n(34821)),c=n(75924),u=n(16594),l=new
Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);
function h(e){return e.replace(/"/g,""")}var d=new
Set(["area","base","basefont","br","col","command","embed","frame","hr","img","inpu
t","isindex","keygen","link","meta","param","source","track","wbr"]);function
f(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i+
+)r+=p(n[i],t);return r}function p(e,t){switch(e.type){case a.Root:return
f(e.children,t);case a.Doctype:case a.Directive:return"<".concat(e.data,">");case
a.Comment:return"\x3c!--".concat(e.data,"--\x3e");case a.CDATA:return function(e)
{return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case a.Script:case
a.Style:case a.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!
==(n=u.elementNames.get(e.name))&&void 0!==n?
n:e.name,e.parent&&g.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!
t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var
i="<".concat(e.name),o=function(e,t){var n;if(e){var r=!1===(null!
==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?h:t.xmlMode||"utf8"!
==t.encodeEntities?c.encodeXML:c.escapeAttribute;return
Object.keys(e).map((function(n){var i,o,s=null!==(i=e[n])&&void 0!==i?
i:"";return"foreign"===t.xmlMode&&(n=null!==(o=u.attributeNames.get(n))&&void 0!
==o?o:n),t.emptyAttrs||t.xmlMode||""!
==s?"".concat(n,'="').concat(r(s),'"'):n})).join(" ")}}(e.attribs,t);return
o&&(i+=" ".concat(o)),0===e.children.length&&(t.xmlMode?!1!
==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(i+="
"),i+="/>"):(i+=">",e.children.length>0&&(i+=f(e.children,t)),!
t.xmlMode&&d.has(e.name)||(i+="</".concat(e.name,">"))),i}(e,t);case a.Text:return
function(e,t){var n,r=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!
==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&l.has(e.parent.name)||
(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,c.encodeXML)(r):(0,c.escapeText)(r)),r}
(e,t)}}t.render=f,t.default=f;var g=new
Set(["mi","mo","mn","ms","mtext","annotation-
xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},34821:(e,t)=>{"use
strict";var n;Object.defineProperty(t,"__esModule",{value:!
0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.
isTag=t.ElementType=void 0,function(e)
{e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="
script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}
(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||
e.type===n.Script||
e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.C
omment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Do
ctype},79959:function(e,t,n){"use strict";var r=this&&this.__createBinding||
(Object.create?function(e,t,n,r){void 0===r&&(r=n);var
i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||
i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in
e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||
r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var
o=n(34821),s=n(75538);i(n(75538),t);var a={withStartIndices:!1,withEndIndices:!
1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new
s.Document(this.dom),this.done=!
1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof
t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?
e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return
e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function()
{this.dom=[],this.root=new s.Document(this.dom),this.done=!
1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=
function(){this.done||(this.done=!
0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e)
{this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var
e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex
),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var
n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void
0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var
t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndInd
ices&&(t.endIndex=this.parser.endIndex);else{var n=new
s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e)
{if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e
;else{var
t=new
s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function()
{this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new
s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=fun
ction(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var
n=new
s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e
){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw
e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-
1],n=t.children[t.children.length-
1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.option
s.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n
,n.next=e),e.parent=t,this.lastNode=null},e}
();t.DomHandler=c,t.default=c},75538:function(e,t,n){"use strict";var
r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var
n in
t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t)
{if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value
"+String(t)+" is not a constructor or null");function n()
{this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return
o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in
t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return
e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!
0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isC
DATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstructio
n=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(34821),a=function(){function
e()
{this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=
null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return
this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return
this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!
0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return
this.next},set:function(e){this.next=e},enumerable:!1,configurable:!
0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}
();t.Node=a;var c=function(e){function t(t){var n=e.call(this)||this;return
n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",
{get:function(){return this.data},set:function(e){this.data=e},enumerable:!
1,configurable:!0}),t}(a);t.DataNode=c;var u=function(e){function t(){var t=null!
==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
3},enumerable:!1,configurable:!0}),t}(c);t.Text=u;var l=function(e){function t()
{var t=null!==e&&e.apply(this,arguments)||this;return
t.type=s.ElementType.Comment,t}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
8},enumerable:!1,configurable:!0}),t}(c);t.Comment=l;var h=function(e){function
t(t,n){var r=e.call(this,n)||this;return
r.name=t,r.type=s.ElementType.Directive,r}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
1},enumerable:!1,configurable:!0}),t}(c);t.ProcessingInstruction=h;var
d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return
i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return
null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!
0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return
this.children.length>0?this.children[this.children.length-1]:null},enumerable:!
1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function()
{return this.children},set:function(e){this.children=e},enumerable:!
1,configurable:!0}),t}(a);t.NodeWithChildren=d;var f=function(e){function t(){var
t=null!==e&&e.apply(this,arguments)||this;return
t.type=s.ElementType.CDATA,t}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var p=function(e){function t()
{var t=null!==e&&e.apply(this,arguments)||this;return
t.type=s.ElementType.Root,t}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
9},enumerable:!1,configurable:!0}),t}(d);t.Document=p;var g=function(e){function
t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?
s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var
o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return
i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return
1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",
{get:function(){return this.name},set:function(e){this.name=e},enumerable:!
1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function()
{var e=this;return Object.keys(this.attribs).map((function(t){var
n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||
void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void
0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function m(e){return(0,s.isTag)
(e)}function v(e){return e.type===s.ElementType.CDATA}function b(e){return
e.type===s.ElementType.Text}function y(e){return
e.type===s.ElementType.Comment}function w(e){return
e.type===s.ElementType.Directive}function _(e){return
e.type===s.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new
u(e.data);else if(y(e))n=new l(e.data);else if(m(e)){var r=t?S(e.children):[],i=new
g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!
=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-
attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-
attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(v(e)){r=t?S(e.children):
[];var s=new f(r);r.forEach((function(e){return e.parent=s})),n=s}else if(_(e))
{r=t?S(e.children):[];var a=new p(r);r.forEach((function(e){return
e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new
Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!
=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-
systemId"]=e["x-systemId"]),n=c}return
n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!
=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e)
{for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-
1],t[n-1].next=t[n];return
t}t.Element=g,t.isTag=m,t.isCDATA=v,t.isText=b,t.isComment=y,t.isDirective=w,t.isDo
cument=_,t.hasChildren=function(e){return
Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},57065:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.getFeed=void 0;var r=n(87559),i=n(65310);t.getFeed=function(e){var
t=c(h,e);return t?"feed"===t.name?function(e){var
t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)
("entry",n).map((function(e){var
t,n=e.children,r={media:a(n)};l(r,"id","id",n),l(r,"title","title",n);var
i=null===(t=c("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var
o=u("summary",n)||u("content",n);o&&(r.description=o);var s=u("updated",n);return
s&&(r.pubDate=new Date(s)),r}))};l(r,"id","id",n),l(r,"title","title",n);var
o=null===(t=c("link",n))||void 0===t?void
0:t.attribs.href;o&&(r.link=o),l(r,"description","subtitle",n);var
s=u("updated",n);return s&&(r.updated=new Date(s)),l(r,"author","email",n,!0),r}
(t):function(e){var t,n,r=null!==(n=null===(t=c("channel",e.children))||void 0===t?
void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:
(0,i.getElementsByTagName)("item",e.children).map((function(e){var
t=e.children,n={media:a(t)};l(n,"id","guid",t),l(n,"title","title",t),l(n,"link","l
ink",t),l(n,"description","description",t);var r=u("pubDate",t)||
u("dc:date",t);return r&&(n.pubDate=new
Date(r)),n}))};l(o,"title","title",r),l(o,"link","link",r),l(o,"description","descr
iption",r);var s=u("lastBuildDate",r);return s&&(o.updated=new
Date(s)),l(o,"author","managingEditor",r,!0),o}(t):null};var
o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channel
s","duration","height","width"];function a(e){return(0,i.getElementsByTagName)
("media:content",e).map((function(e){for(var
t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r<i.length;r+
+)t[u=i[r]]&&(n[u]=t[u]);for(var a=0,c=s;a<c.length;a++){var
u;t[u=c[a]]&&(n[u]=parseInt(t[u],10))}return
t.expression&&(n.expression=t.expression),n}))}function c(e,t)
{return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function u(e,t,n){return void
0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)
(e,t,n,1)).trim()}function l(e,t,n,r,i){void 0===i&&(i=!1);var
o=u(n,r,i);o&&(e[t]=o)}function h(e)
{return"rss"===e||"feed"===e||"rdf:RDF"===e}},42880:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void
0;var r,i=n(79959);function o(e,t){var n=[],o=[];if(e===t)return 0;for(var
s=(0,i.hasChildren)(e)?
e:e.parent;s;)n.unshift(s),s=s.parent;for(s=(0,i.hasChildren)(t)?
t:t.parent;s;)o.unshift(s),s=s.parent;for(var
a=Math.min(n.length,o.length),c=0;c<a&&n[c]===o[c];)c++;if(0===c)return
r.DISCONNECTED;var u=n[c-1],l=u.children,h=n[c],d=o[c];return
l.indexOf(h)>l.indexOf(d)?u===t?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:u===e?
r.PRECEDING|r.CONTAINS:r.PRECEDING}t.removeSubsets=function(e){for(var
t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else
for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return
e},function(e)
{e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="
FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}
(r=t.DocumentPosition||
(t.DocumentPosition={})),t.compareDocumentPosition=o,t.uniqueSort=function(e)
{return(e=e.filter((function(e,t,n){return!
n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return n&r.PRECEDING?-
1:n&r.FOLLOWING?1:0})),e}},64622:function(e,t,n){"use strict";var
r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void
0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in
e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||
r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!
0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void
0,i(n(87559),t),i(n(16304),t),i(n(57427),t),i(n(17853),t),i(n(65310),t),i(n(42880),
t),i(n(57065),t);var o=n(79959);Object.defineProperty(t,"isTag",{enumerable:!
0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!
0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!
0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",
{enumerable:!0,get:function(){return
o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function()
{return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!
0,get:function(){return o.hasChildren}})},65310:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.
testElement=void 0;var r=n(79959),i=n(17853),o={tag_name:function(e)
{return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?
r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e)
{return"function"==typeof e?function(t){return e(t.type)}:function(t){return
t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t)
{return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)
(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n)
{return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)
(n)&&n.attribs[e]===t}}function a(e,t){return function(n){return e(n)||
t(n)}}function c(e){var t=Object.keys(e).map((function(t){var n=e[t];return
Object.prototype.hasOwnProperty.call(o,t)?o[t](n):s(t,n)}));return 0===t.length?
null:t.reduce(a)}t.testElement=function(e,t){var n=c(e);return!n||
n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var o=c(e);return o?
(0,i.filter)(o,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!
0),Array.isArray(t)||(t=[t]),(0,i.findOne)
(s("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!
0),void 0===r&&(r=1/0),(0,i.filter)
(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void
0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_type(e),t,n,r)}},57427:
(e,t)=>{"use strict";function n(e)
{if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var
t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,
e.parent=null}Object.defineProperty(t,"__esModule",{value:!
0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElemen
t=void 0,t.removeElement=n,t.replaceElement=function(e,t){var
n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var
i=t.parent=e.parent;if(i){var
o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t)
{if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var
r=e.children[e.children.length-2];r.next=t,t.prev=r}else
t.prev=null},t.append=function(e,t){n(t);var
r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var
o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else
r&&r.children.push(t)},t.prependChild=function(e,t)
{if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var
r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t)
{n(t);var r=e.parent;if(r){var
i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e
.prev,t.next=e,e.prev=t}},17853:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var
r=n(79959);function i(e,t,n,i){for(var o=[],s=[t],a=[0];;)if(a[0]>=s[0].length)
{if(1===a.length)return o;s.shift(),a.shift()}else{var c=s[0][a[0]+
+];if(e(c)&&(o.push(c),--i<=0))return o;n&&(0,r.hasChildren)
(c)&&c.children.length>0&&(a.unshift(0),s.unshift(c.children))}}t.filter=function(e
,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i(e,Array.isArray(t)?t:
[t],n,r)},t.find=i,t.findOneChild=function(e,t){return
t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var
o=null,s=0;s<n.length&&!o;s++){var a=n[s];(0,r.isTag)(a)&&(t(a)?
o=a:i&&a.children.length>0&&(o=e(t,a.children,!0)))}return o},t.existsOne=function
e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||
e(t,n.children))}))},t.findAll=function(e,t){for(var
n=[],i=[t],o=[0];;)if(o[0]>=i[0].length){if(1===i.length)return
n;i.shift(),o.shift()}else{var s=i[0][o[0]++];(0,r.isTag)
(s)&&(e(s)&&n.push(s),s.children.length>0&&(o.unshift(0),i.unshift(s.children)))}}}
,87559:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e)
{return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",
{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void
0;var i=n(79959),o=r(n(50606)),s=n(34821);function a(e,t){return(0,o.default)
(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?
e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t)
{return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\
n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?
t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):
(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?
t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):
(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):
(0,i.isText)(t)?t.data:""}},16304:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeV
alue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(79959);function i(e)
{return(0,r.hasChildren)(e)?e.children:[]}function o(e){return e.parent||
null}t.getChildren=i,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!
=t)return i(t);for(var n=[e],r=e.prev,s=e.next;null!
=r;)n.unshift(r),r=r.prev;for(;null!=s;)n.push(s),s=s.next;return
n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?
void 0:n[t]},t.hasAttrib=function(e,t){return null!
=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!
=e.attribs[t]},t.getName=function(e){return
e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)
(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!
==t&&!(0,r.isTag)(t);)t=t.prev;return t}},73094:function(e,t,n){"use strict";var
r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void
0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBr
anch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoi
nt=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var
a=s(n(35537));t.htmlDecodeTree=a.default;var
c=s(n(57424));t.xmlDecodeTree=c.default;var
u=o(n(70105));t.decodeCodePoint=u.default;var l,h,d,f,p=n(70105);function g(e)
{return e>=l.ZERO&&e<=l.NINE}Object.defineProperty(t,"replaceCodePoint",
{enumerable:!0,get:function(){return
p.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!
0,get:function(){return p.fromCodePoint}}),function(e)
{e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",
e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_
X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=7
0]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(l||(l={})),function(e)
{e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[
e.JUMP_TABLE=127]="JUMP_TABLE"}(h=t.BinTrieFlags||(t.BinTrieFlags={})),function(e)
{e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDec
imal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEn
tity"}(d||(d={})),function(e)
{e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}
(f=t.DecodingMode||(t.DecodingMode={}));var m=function(){function e(e,t,n)
{this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=d.EntityStart,this
.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}r
eturn e.prototype.startEntity=function(e)
{this.decodeMode=e,this.state=d.EntityStart,this.result=0,this.treeIndex=0,this.exc
ess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case
d.EntityStart:return e.charCodeAt(t)===l.NUM?
(this.state=d.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):
(this.state=d.NamedEntity,this.stateNamedEntity(e,t));case d.NumericStart:return
this.stateNumericStart(e,t);case d.NumericDecimal:return
this.stateNumericDecimal(e,t);case d.NumericHex:return
this.stateNumericHex(e,t);case d.NamedEntity:return
this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return
t>=e.length?-1:(32|e.charCodeAt(t))===l.LOWER_X?
(this.state=d.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):
(this.state=d.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumer
icResult=function(e,t,n,r){if(t!==n){var i=n-
t;this.result=this.result*Math.pow(r,i)
+parseInt(e.substr(t,i),r),this.consumed+=i}},e.prototype.stateNumericHex=function(
e,t){for(var n,r=t;t<e.length;){var i=e.charCodeAt(t);if(!(g(i)||
(n=i,n>=l.UPPER_A&&n<=l.UPPER_F||n>=l.LOWER_A&&n<=l.LOWER_F)))return
this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return
this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t)
{for(var n=t;t<e.length;){var r=e.charCodeAt(t);if(!g(r))return
this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return
this.addToNumericResult(e,n,t,10),-1},e.prototype.emitNumericEntity=function(e,t)
{var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||
n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===l.SEMI)this.co
nsumed+=1;else if(this.decodeMode===f.Strict)return 0;return
this.emitCodePoint((0,u.replaceCodePoint)
(this.result),this.consumed),this.errors&&(e!
==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validat
eNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntit
y=function(e,t){for(var
n=this.decodeTree,r=n[this.treeIndex],i=(r&h.VALUE_LENGTH)>>14;t<e.length;t+
+,this.excess++){var
o=e.charCodeAt(t);if(this.treeIndex=b(n,r,this.treeIndex+Math.max(1,i),o),this.tree
Index<0)return 0===this.result||this.decodeMode===f.Attribute&&(0===i||
((s=o)===l.EQUALS||function(e){return e>=l.UPPER_A&&e<=l.UPPER_Z||
e>=l.LOWER_A&&e<=l.LOWER_Z||g(e)}(s)))?0:this.emitNotTerminatedNamedEntity();if(0!
=(i=((r=n[this.treeIndex])&h.VALUE_LENGTH)>>14)){if(o===l.SEMI)return
this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMod
e!
==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}
var s;return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var
e,t=this.result,n=(this.decodeTree[t]&h.VALUE_LENGTH)>>14;return
this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||
e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEnt
ityData=function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?
r[e]&~h.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n},e.prototype.e
nd=function(){var e;switch(this.state){case d.NamedEntity:return 0===this.result||
this.decodeMode===f.Attribute&&this.result!==this.treeIndex?
0:this.emitNotTerminatedNamedEntity();case d.NumericDecimal:return
this.emitNumericEntity(0,2);case d.NumericHex:return
this.emitNumericEntity(0,3);case d.NumericStart:return null===(e=this.errors)||void
0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case
d.EntityStart:return 0}},e}();function v(e){var t="",n=new m(e,(function(e){return
t+=(0,u.fromCodePoint)(e)}));return function(e,r){for(var i=0,o=0;
(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);var
s=n.write(e,o+1);if(s<0){i=o+n.end();break}i=o+s,o=0===s?i+1:i}var
a=t+e.slice(i);return t="",a}}function b(e,t,n,r){var
i=(t&h.BRANCH_LENGTH)>>7,o=t&h.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o)
{var s=r-o;return s<0||s>=i?-1:e[n+s]-1}for(var a=n,c=a+i-1;a<=c;){var
u=a+c>>>1,l=e[u];if(l<r)a=u+1;else{if(!(l>r))return e[u+i];c=u-1}}return-
1}t.EntityDecoder=m,t.determineBranch=b;var
y=v(a.default),w=v(c.default);t.decodeHTML=function(e,t){return void
0===t&&(t=f.Legacy),y(e,t)},t.decodeHTMLAttribute=function(e){return
y(e,f.Attribute)},t.decodeHTMLStrict=function(e){return
y(e,f.Strict)},t.decodeXML=function(e){return w(e,f.Strict)}},70105:(e,t)=>{"use
strict";var n;Object.defineProperty(t,"__esModule",{value:!
0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],
[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],
[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],
[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],
[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return
e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?
t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var
t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|
1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e)
{return(0,t.fromCodePoint)(i(e))}},41029:function(e,t,n){"use strict";var
r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=r(n(76437)),o=n(29970),s=/[\t\
n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a(e,t){for(var n,r="",s=0;null!
==(n=e.exec(t));){var a=n.index;r+=t.substring(s,a);var
c=t.charCodeAt(a),u=i.default.get(c);if("object"==typeof u){if(a+1<t.length){var
l=t.charCodeAt(a+1),h="number"==typeof u.n?u.n===l?u.o:void 0:u.n.get(l);if(void 0!
==h){r+=h,s=e.lastIndex+=1;continue}}u=u.v}if(void 0!==u)r+=u,s=a+1;else{var
d=(0,o.getCodePoint)
(t,a);r+="&#x".concat(d.toString(16),";"),s=e.lastIndex+=Number(d!==c)}}return
r+t.substr(s)}t.encodeHTML=function(e){return
a(s,e)},t.encodeNonAsciiHTML=function(e){return a(o.xmlReplacer,e)}},29970:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint
=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new
Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function
r(e){for(var r,i="",o=0;null!==(r=t.xmlReplacer.exec(e));){var
s=r.index,a=e.charCodeAt(s),c=n.get(a);void 0!==c?(i+=e.substring(o,s)+c,o=s+1):
(i+="".concat(e.substring(o,s),"&#x").concat((0,t.getCodePoint)
(e,s).toString(16),";"),o=t.xmlReplacer.lastIndex+=Number(55296==(64512&a)))}return
i+e.substr(o)}function i(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!
==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;ret
urn o+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?
function(e,t){return e.codePointAt(t)}:function(e,t){return
55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-
56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/
g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],
[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],
[62,">"],[160," "]]))},35537:(e,t)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new
Uint16Array('áµ<ÕıʊÒÕ»×ٵ۞ޢߖà ੊ઑඡà¹à¼‰à¼¦áƒŠáˆ¨á‹¡á•á’ᓃᓟᔥ\
0\0\0\0\0\0á•«á›á¦á°’á·á½¾â ↰âŠâ€â»â‘‚⠤⤒ⴈ⹈⿎〖
ãŠºã˜¹ãž¬ã£¾ã¨¨ã©±ã« ã¬®à €EMabcfglmnoprstu\\
bfms„‹Â•˜¦³¹ÈÃlig耻Æ䃆P耻&䀦cute耻Ãäƒreve;ä„‚Ä€iyx}rc耻Â䃂;ä
r;쀀ð”„rave耻À䃀pha;䎑acr;ä„€d;æ©“Ä€gp¡on;ä„„f;ì€
€ð”¸plyFunction;æ¡ing耻Å䃅Ācs¾Ãr;쀀ð’œign;æ
‰”ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或
Ŷöø;櫧ed;挆y;ä‘Æ€crtÄ…Ä‹Ä”ause;戵noullis;愬a;䎒r;쀀ð”…pf;ì€
€ð”¹eve;䋘còēmpeq;扎܀HOacdefhilorsuÅőŖƀƞÆ
¢ÆµÆ·ÆºÇœÈ•É³É¸É¾cy;ä§PY耻©䂩ƀcpyÅŢźute;䄆Ā;iŧŨ拒talDifferentialD;æ……
leys;æ„È€aeioƉƎƔƘron;ä„Œdil耻Ç䃇rc;䄈nint;戰ot;ä„ŠÄ€dnƧÆ-
illa;䂸terDot;䂷òſi;䎧rcleÈ€DMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oÄ€csÇ
¢Ç¸kwiseContourIntegral;戲eCurlyÄ€DQȃÈoubleQuote;æ€uote;怙ȀlnpuȞȨɇɕonÄ€;e
ȥȦ户;æ©´Æ€gitȯȶȺruent;æ‰
¡nt;戯ourIntegral;戮ĀfrɌɎ;æ„‚oduct;æˆnterClockwiseContourIntegral;戳oss;樯c
r;쀀ð’žpÄ€;CÊ„Ê…æ‹“ap;æ‰Ö€DJSZacefiosÊ Ê¬Ê°Ê´Ê¸Ë‹Ë—
ˡ˦̳ÒÄ€;oŹʥtrahd;椑cy;ä‚cy;ä…cy;äÆ€grsʿ˄ˇger;æ€
¡r;憡hv;櫤ĀayËË•ron;ä„Ž;ä”lÄ€;tË˞戇a;䎔r;쀀ð”‡Ä€af˫̧ĀcmË°Ì
¢riticalÈ€ADGT̖̜̀̆cute;ä‚´oÅ´Ì‹Ì;ä‹™bleAcute;ä‹rave;ä
ilde;ä‹œond;æ‹„ferentialD;慆Ѱ̽\0\0\0Í‚Í”\0Ð…f;쀀ð”»Æ€;DE͈͉Í䂨ot;惜qual;æ
‰bleÌ€CDLRUVͣͲ΂ÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»Í
‰nArrow;懓Āeo·ΤftÆ€ARTÎΖ
Ρrrow;æ‡ightArrow;懔eåˊngÄ€LRΫτeftÄ€ARγιrrow;柸ightArrow;柺ightArrow;柹
ightÄ€ATϘϞrrow;懒ee;抨pÉÏ©\
0\0ϯrrow;懑ownArrow;懕erticalBar;戥nÌ€ABLRTaВЪаўѿͼrrowÆ€;BUÐОÐ
¢æ†“ar;椓pArrow;懵reve;䌑eft˒к\0ц\
0ÑightVector;æ¥eeVector;楞ectorÄ€;Bљњ憽ar;楖ightǔѧ\
0ѱeeVector;楟ectorÄ€;BѺѻæ‡ar;楗eeÄ€;A҆҇护rrow;憧ĀctÒ’Ò—r;쀀ð’Ÿrok;ä„à
€NTacdfglmopqstuxÒ½Ó€Ó„Ó‹ÓžÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶Õ’ÕÕ Õ¥G;ä…ŠH耻Ãäƒcute耻É䃉ƀaiyÓ’Ó
—Óœron;ä„šrc耻Ê䃊;äot;ä„–r;쀀ð”ˆrave耻È䃈ement;戈ĀapÓºÓ¾cr;ä„’tyÉ“Ô†\
0\0Ô’mallSquare;æ—»erySmallSquare;æ–«Ä€gpÔ¦Ôªon;䄘f;쀀ð”¼silon;䎕uÄ€aiÔ¼Õ
‰lÄ€;TՂՃ橵ilde;扂librium;懌ĀciÕ—Õšr;æ„°m;橳a;䎗
ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosÖ…ÖˆÖֲ׌y;ä¤r;쀀ð”‰lledÉ“Ö—\
0\0Ö£mallSquare;æ—¼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;ì€
€ð”½All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ
Ø›Øأ٬ٲcy;äƒè€»>䀾mmaÄ€;d׷׸䎓;äœreve;䄞ƀeiy؇،Ødil;ä„¢rc;ä„œ;ä“ot;ä„
r;쀀ð”Š;æ‹™pf;쀀ð”¾eaterÌ€EFGLSTصلَٖٛ٦qualÄ€;Lؾؿ扥ess;æ‹›ullEqual;æ
‰§reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀ð’¢;扫ЀAacfiosuÚ…Ú‹Ú–
Ú›ÚžÚªÚ¾ÛŠRDcy;äªÄ€ctÚÚ”ek;䋇;äžirc;䄤r;æ„ŒlbertSpace;æ„‹Ç°Ú¯\
0Ú²f;æ„izontalLine;攀Āctۃۅòکrok;䄦mpÅ„ÛÛ˜ownHumðįqual;æ
‰Ü€EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދÞÞ•cy;ä•lig;䄲cy;äcute耻ÃäƒÄ€iyÜ“
ܘrc耻Î䃎;ä˜ot;ä„°r;æ„‘rave耻Ì䃌ƀ;apÜ
ܯܿĀcgÜ´Ü·r;䄪inaryI;æ…ˆlieóÏǴ݉\0Ý
¢Ä€;eÝݎ戬Āgrݓݘral;戫section;æ‹‚isibleÄ€CTݬݲomma;æ£imes;æ
¢Æ€gptÝ¿ÞƒÞˆon;ä„®f;쀀ð•€a;䎙cr;æ„ilde;䄨ǫޚ\
0Þžcy;ä†l耻ÃäƒÊ€cfosuެ޷޼߂ßÄ€iyÞ±Þµrc;ä„´;ä™r;쀀ð”pf;쀀ð•Ç£ß‡\
0ߌr;쀀ð’¥rcy;äˆkcy;ä„΀HJacfosß¤ß¨ß¬ß±ß½à ‚à
ˆcy;ä¥cy;äŒppa;䎚Āey߶߻dil;䄶;äšr;쀀ð”Žpf;쀀ð•‚cr;쀀ð’¦Ö€JTaceflmostà
¥à ©à ¬à¡à¡£à¦³à¦¸à§‡à§à¨·à©‡cy;ä‰è€»<䀼ʀcmnprà ·à
¼à¡à¡„à¡ute;䄹bda;䎛g;柪lacetrf;æ„’r;憞ƀaeyà¡—
࡜ࡡron;䄽dil;ä„»;ä›Ä€fsࡨ॰tÔ€ACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़Î४Ānrà
¢ƒà¢gleBracket;柨rowÆ€;BR࢙࢚࢞æ†ar;懤ightArrow;懆eiling;挈oǵࢷ\
0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;æ¥
¡ectorÄ€;Bࣛࣜ懃ar;楙loor;挊ightÄ€AV࣯ࣵrrow;憔ector;楎Āerà¤à¤—eÆ€;AVà¤
‰à¤Šà¤æŠ£rrow;憤ector;楚iangleÆ€;BEतथऩ抲ar;æ§qual;抴pÆ€DTVषà¥
‚ौownVector;楑eeVector;æ¥ ectorÄ€;Bॖॗ憿ar;楘ectorÄ€;Bà¥
¥à¥¦æ†¼ar;楒ightáΜsÌ€EFGLSTॾঋকà¦à¦¢à¦qualGreater;æ‹šullEqual;扦reater;æ
‰¶ess;檡lantEqual;橽ilde;扲r;쀀ð”Ä€;eঽা拘ftarrow;懚idot;ä„¿Æ€npw৔ਖ
ਛgÈ€LRlr৞৷ਂà¨eftÄ€AR০৬rrow;柵ightArrow;柷ightArrow;柶eftÄ€arγਊig
htáοightáϊf;쀀ð•ƒerÄ€LRà¨
¢à¨¬eftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;ä…;扪Ѐacefiosuà©šà©à©
੷੼અઋ઎p;椅y;äœÄ€dl੥੯iumSpace;æŸlintrf;愳r;쀀ð”nusPlus;戓pf;ì€
€ð•„cò੶;䎜ҀJacefostuણધàªà«€à¬”ଙඑ඗ඞcy;äŠcute;䅃ƀaeyàª
´àª¹àª¾ron;ä…
‡dil;ä……;äÆ€gswે૰଎ativeÆ€MTV૓૟૨ediumSpace;怋hiÄ€cn૦૘ë૙eryThiÃ
®à«™tedÄ€GL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀ð”‘È€Bnptà¬
¢à¬¨à¬·à¬ºreak;æ BreakingSpace;ä‚ f;æ„•Ú€;CDEGHLNPRSTVà•à–àªà-
¼à®¡à¯«à°„౞಄ದ೘ൡඅ櫬Āouà›à¤ngruent;扢pCap;æ‰-
oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualÄ€;Tà®’à®“æ‰ ilde;쀀â‰
‚̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀â
‰§Ì¸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀â
‰ŽÌ¸qual;쀀â‰Ì¸eÄ€fsà°Šà°§tTriangleÆ€;BEచఛడ拪ar;ì€
€â§Ì¸qual;括sÌ€;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀â
‰ªÌ¸lantEqual;쀀⩽̸ilde;扴estedÄ€GL౨౹reaterGreater;쀀⪢̸essLess;ì€
€âª¡Ì¸recedesÆ€;ESಒಓಛ技qual;쀀⪯̸lantEqual;æ‹
Ä€eiಫಹverseElement;戌ghtTriangleÆ€;BEೋೌ೒拫ar;쀀â§Ì¸qual;æ‹Ä€quà³à
´ŒuareSuÄ€bp೨೹setÄ€;E೰ೳ쀀âŠÌ¸qual;æ‹¢ersetÄ€;Eഃആì€
€âŠÌ¸qual;拣ƀbcpഓതൎsetÄ€;Eഛഞ쀀⊂⃒qual;抈ceedsÈ€;ESTലളà
´»àµ†æŠqual;쀀⪰̸lantEqual;æ‹¡ilde;쀀≿̸ersetÄ€;E൘൛쀀⊃⃒qual;æŠ
‰ildeÈ€;EFT൮൯൵ൿæ‰qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;ì€
€ð’©ilde耻Ñ䃑;äŽÜ€Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภà¸
¢à¸²à¸¿à¹„lig;ä…’cute耻Ó䃓Āiyà·Žà·“rc耻Ô䃔;äžblac;ä…r;ì€
€ð”’rave耻Ò䃒ƀaei෮ෲ෶cr;ä…Œga;䎩cron;䎟pf;ì€
€ð•†enCurlyÄ€DQฎบoubleQuote;怜uote;怘;橔Āclวฬr;ì€
€ð’ªash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erÄ€BP๋à¹
Ä€arà¹à¹“r;怾acÄ€ek๚๜;æžet;æŽ
´arenthesis;æœÒ€acfhilors๿ງຊàºàº’ດàºàº°à»¼rtialD;戂y;äŸr;ì€
€ð”“i;䎦;äŽ usMinus;䂱ĀipຢàºncareplanÃ¥Úf;愙Ȁ;eio຺ູà»
໤檻cedesÈ€;EST່້à»à»šæ‰ºqual;檯lantEqual;扼ilde;æ
‰¾me;怳Ādp໩໮uct;æˆortionÄ€;aȥ໹l;æˆÄ€cià¼à¼†r;쀀ð’«;䎨ȀUfos༑༖
༛༟OT耻"䀢r;쀀ð””pf;æ„šcr;쀀ð’¬Ø€BEacefhiorsu༾གྷཇའཱིྦྷྪà¾á‚–
ႩႴႾarr;æ¤G耻®䂮ƀcnrཎནབute;ä…”g;柫rÄ€;tཛྷà½æ† l;椖
Æ€aeyཧཬཱron;ä…˜dil;ä…–;ä
Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;
䎡ghtЀACDFTUVaà¿à¿«à¿³á€
¢á€¨á›á‚‡Ï˜Ä€nr࿆࿒gleBracket;柩rowÆ€;BLà¿œà¿à¿¡æ†’ar;懥eftArrow;懄eiling;æŒ
‰oǵ࿹\0စbleBracket;柧nǔည\
0နeeVector;æ¥ectorÄ€;Bá€á€žæ‡‚ar;楕loor;挋Āerá€áƒeÆ€;AVဵံြæŠ
¢rrow;憦ector;楛iangleÆ€;BEáá‘á•æŠ³ar;æ§qual;抵pÆ€DTVá£á®á¸ownVector;æ¥
eeVector;楜ectorÄ€;Bႂႃ憾ar;楔ectorÄ€;B႑႒懀ar;楓Āpuႛ႞f;æ„ndImplie
s;楰ightarrow;懛ĀchႹႼr;æ„›;憱leDelayed;æ§
´Ú€HOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡá…
§á†µá†»á†¿Ä€CcჩხHcy;ä©y;ä¨FTcy;ä¬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;ä…
dil;ä…žrc;ä…œ;ä¡r;쀀ð”–ortÈ€DLRUᄪᄴᄾᅉownArrow»ОeftArrow»à
¢šightArrow»à¿pArrow;憑gma;䎣allCircle;战pf;쀀ð•ŠÉ²á…\0\0á…
°t;戚areÈ€;ISUᅻᅼᆉᆯ斡ntersection;抓uÄ€bpá†á†žsetÄ€;Eᆗ
ᆘæŠqual;抑ersetÄ€;EᆨᆩæŠqual;抒nion;抔cr;쀀ð’®ar;拆Ȁbcmpᇈᇛáˆ
‰áˆ‹Ä€;sá‡á‡Žæ‹etÄ€;Eá‡á‡•qual;抆ĀchᇠህeedsÈ€;ESTá‡á‡®á‡´á‡¿æ
‰»qual;檰lantEqual;扽ilde;æ‰
¿Tháྌ;我ƀ;esሒሓሣ拑rsetÄ€;EሜáˆæŠƒqual;抇et»ሓրHRSacfhiorsሾቄá‰
‰á‰•á‰žá‰±á‰¶áŠŸá‹‚ወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;ä‹y;ä¦Ä€buቚቜ;ä€
‰;䎤ƀaeyብቪቯron;ä…¤dil;ä…¢;ä¢r;쀀ð”—Ä€eiቻ኉Dzኀ\0ኇefore;æˆ
´a;䎘Ācn኎ኘkSpace;쀀âŸâ€ŠSpace;怉ldeÈ€;EFTካኬኲኼ戼qual;扃ullEqual;æ
‰…ilde;扈pf;쀀ð•‹ipleDot;惛Āctá‹–á‹›r;쀀ð’¯rok;䅦ૡዷጎጚጦ\0ጬጱ\
0\0\0\0\0ጸጽá·áŽ…\0á¿á„áŠáÄ€crá‹»áŒute耻Ú䃚rÄ€;oጇገ憟cir;æ¥
‰rǣጓ\0጖y;äŽve;䅬Āiyጞጣrc耻Û䃛;ä£blac;ä…°r;쀀ð”˜rave耻Ù䃙acr;ä…
ªÄ€diáá©erÄ€BPáˆáÄ€aráár;äŸacÄ€eká—
á™;æŸet;掵arenthesis;æonÄ€;Pá°á±æ‹ƒlus;抎Āgpá»á¿on;ä…²f;ì€
€ð•ŒÐ€ADETadps᎕ᎮᎸá„Ϩá’á—á³rrowÆ€;BDá…ᎠᎤar;椒ownArrow;懅
ownArrow;憕quilibrium;楮eeÄ€;Aá‹áŒæŠ¥rrow;憥ownáϳerÄ€LRážá¨eftArrow;憖
ightArrow;憗iÄ€;lá¹áºä’on;䎥ing;ä…®cr;쀀ð’°ilde;ä…
¨ml耻Ü䃜ҀDbcdefosvá§á¬á°á³á¾á’…á’Šá’á’–
ash;披ar;æ««y;ä’ashÄ€;lá»á¼æŠ©;櫦Āerᑃᑅ;æ‹Æ€btyá‘Œá‘ᑺar;怖
Ä€;iá‘á‘•calÈ€BLSTᑡᑥᑪᑴar;戣ine;ä¼eparator;æ˜ilde;所ThinSpace;怊r;ì€
€ð”™pf;쀀ð•cr;쀀ð’±dash;抪ʀcefosᒧᒬᒱᒶᒼirc;ä…´dge;æ‹€r;쀀ð”špf;ì€
€ð•Žcr;쀀ð’²È€fiosá“‹á“ᓒᓘr;쀀ð”›;䎞pf;쀀ð•cr;ì€
€ð’³Ò€AIUacfosuᓱᓵᓹᓽᔄá”ᔔᔚá”
cy;ä¯cy;ä‡cy;ä®cute耻ÃäƒÄ€iyᔉá”rc;ä…¶;ä«r;쀀ð”œpf;쀀ð•cr;ì€
€ð’´ml;䅸ЀHacdefosᔵᔹᔿᕋá•á•á• ᕤcy;ä–cute;䅹Āayᕄᕉron;ä…½;ä—
ot;䅻Dzᕔ\0á•›oWidtè૙a;䎖r;愨pf;愤cr;쀀ð’µà¯¡á–ƒá–Šá–\0ᖰᖶᖿ\
0\0\0\0ᗆᗛᗫᙟá™\0ᚕ᚛ᚲᚹ\0áš¾cute耻á䃡reve;䄃̀;Ediuyá–œá–á–¡á–£á–
¨á–戾;쀀∾̳;房rc耻â䃢te肻´̆;ä°lig耻æ䃦Ā;r²ᖺ;쀀ð”žrave耻à äƒ
Ä€epá—Šá—–Ä€fpá—á—”sym;愵èᗓha;䎱Āapá—ŸcÄ€clᗤᗧr;ä„g;樿ɤᗰ\
0\0ᘊʀ;adsvᗺᗻá—
¿á˜á˜‡æˆ§nd;æ©•;æ©œlope;橘;橚΀;elmrszᘘᘙᘛᘞᘿá™á™™æˆ ;榤e»ᘙsdÄ€;aá˜
¥á˜¦æˆ¡Ñ¡á˜°á˜²á˜´á˜¶á˜¸á˜ºá˜¼á˜¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ€;vá™…
ᙆ戟bÄ€;dᙌá™æŠ¾;æ¦Ä€ptᙔᙗh;戢»¹arr;æ¼Ä€gpᙣᙧon;ä„…f;ì€
€ð•’΀;Eaeiopá‹á™»á™½áš‚ᚄᚇᚊ;æ©°cir;橯;扊d;æ
‰‹s;䀧roxÄ€;eá‹áš’ñᚃing耻å䃥ƀctyᚡᚦᚨr;ì€
€ð’¶;䀪mpÄ€;eá‹áš¯Ã±Êˆilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑à
€Nabcdefiklnoprsuá›á›±áœ°áœ¼áƒáˆá¸á½áŸ áŸ¦á ¹á¡áœá¤½á¥ˆá¥°ot;æ«-
Ä€crᛶ᜞kÈ€cepsᜀᜅáœáœ“ong;扌psilon;ä¶rime;怵imÄ€;e᜚᜛戽q;æ‹Å¶áœ
¢áœ¦ee;抽edÄ€;gᜬáœæŒ…e»áœ-
rkÄ€;táœáœ·brk;掶Āoyáœá;ä±quo;怞ʀcmprtá“á›á¡á¤á¨ausÄ€;eÄŠÄ
‰ptyv;榰séᜌnoõēƀahwá¯á±á³;䎲;愶een;扬r;ì€
€ð”Ÿg΀costuvwážážáž³áŸáŸ•áŸ›áŸžÆ€aiuáž”áž–ážšÃ°Ý rc;æ—¯p»á±Æ€dptឤឨáž-
ot;樀lus;æ¨imes;樂ɱឹ\0\0áž¾cup;樆ar;昅riangleÄ€duáŸáŸ’own;æ–½p;æ–
³plus;樄eåᑄåá’arow;æ¤Æ€akoáŸá ¦á µÄ€cnáŸ²á £kÆ€lst៺֫á
‚ozenge;槫riangleÈ€;dlrá ’á “á ˜á æ–´own;æ–¾eft;æ—‚ight;æ–¸k;æ£Æ±á «\0á ³Æ²á ¯\
0á ±;æ–’;æ–‘4;æ–“ck;斈Āeoá ¾á¡Ä€;qᡃᡆ쀀=⃥uiv;쀀â‰
¡âƒ¥t;æŒÈ€ptwxᡙᡞᡧᡬf;쀀ð•“Ä€;tá‹á¡£om»áŒtie;拈؀DHUVbdhmptuvᢅᢖá
¢ªá¢»á£—ᣛᣬ᣿ᤅᤊá¤á¤¡È€LRlrᢎá¢á¢’ᢔ;æ•—;æ•”;æ•–;æ•“Ê€;DUduᢡᢢᢤᢦá
¢¨æ•;敦;æ•©;敤;敧ȀLRlrᢳᢵᢷá
¢¹;æ•;æ•š;æ•œ;教΀;HLRhlrᣊᣋá£á£á£‘ᣓᣕ救;敬;æ•£;æ• ;æ•«;æ•¢;æ•Ÿox;æ§
‰È€LRlrá£
¤á£¦á£¨á£ª;æ••;æ•’;æ”;攌ʀ;DUduڽ᣷᣹᣻᣽;æ•¥;敨;攬;æ”´inus;抟lus;択imes;
æŠ È€LRlrᤙᤛá¤á¤Ÿ;æ•›;敘;攘;攔΀;HLRhlrᤰá¤
±á¤³á¤µá¤·á¤¹á¤»æ”‚;敪;æ•¡;æ•ž;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚá¥
r;쀀ð’·mi;æmÄ€;e᜚᜜lÆ€;bhᥨᥩᥫäœ;槅sub;柈Ŭᥴ᥾lÄ€;e᥹᥺æ€
¢t»᥺pÆ€;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷá©\0\0᪴\0\0á«\
0\0ᬡᬮáá’\0᯽\0ᰌƀcprá¦-
ᦲá§ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;æ©„rcup;æ©
‰Ä€auá§á§’p;æ©‹p;橇ot;æ©€;쀀∩︀Āeo᧢᧥t;æîړȀaeiu᧰᧻á¨á¨…ǰ᧵\
0᧸s;æ©on;ä„dil耻ç䃧rc;䄉psÄ€;sᨌá¨æ©Œm;æ©ot;ä„‹Æ€dmnᨛᨠᨦil肻¸Æ-
ptyv;榲t脀¢;eá¨á¨®ä‚¢räƲr;쀀ð”
Æ€ceiᨽᩀá©y;䑇ckÄ€;mᩇᩈ朓ark»ᩈ;ä‡r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮æ
—‹;槃ƀ;elᩩᩪá©ä‹†q;扗eÉ¡á©´\
0\0᪈rrowÄ€lr᩼áªeft;憺ight;憻ʀRSacd᪒᪔᪖
᪚᪟»ཇ;擈st;抛irc;抚ash;æŠnint;æ¨id;櫯cir;槂ubsÄ€;u᪻᪼晣it»᪼ˬá«
‡á«”᫺\0ᬊonÄ€;eá«á«Žä€ºÄ€;qÇÆÉá«™\
0\0á«¢aÄ€;t᫞᫟䀬;ä€Æ€;fl᫨᫩᫫æˆÃ®á… eÄ€mx᫱᫶ent»᫩eóÉǧ᫾\
0ᬇĀ;dኻᬂot;æ©nôɆƀfryá¬á¬”ᬗ;쀀ð•”oäɔ脀©;sÅ•á¬r;æ„—
Ä€aoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀ð’¸Ä€bpᬼá„Ä€;eáá‚æ«;æ«‘Ä€;eá‰á-
Šæ«;æ«’dot;拯΀delprvwá á¬á·á®‚ᮬᯔ᯹arrÄ€lrá¨áª;椸;椵ɰá²\0\0á-
µr;æ‹žc;æ‹ŸarrÄ€;pá¿á®€æ†¶;椽̀;bcdosá®á®á®–
ᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;æ©Šot;æŠr;æ©…;ì€
€âˆªï¸€È€alrv᮵ᮿᯞᯣrrÄ€;mᮼᮽ憷;椼yÆ€evwᯇᯔᯘqɰᯎ\0\0ᯒreãá³uãá-
µee;æ‹Žedge;æ‹en耻¤䂤earrowÄ€lrᯮ᯳eft»ᮀight»ᮽeäá¯Ä€ciá°á°‡oninÃ
´Ç·nt;戱lcty;æŒà¦€AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²Šá²žá²¬á²·á³»á³¿á
´áµ»á¶‘ᶫᶻ᷆á·ròÎar;楥Ȁglrs᱈á±á±’á±”ger;æ€
eth;愸òᄳhÄ€;vᱚᱛæ€Â»à¤ŠÅ«á±¡á±§arow;æ¤aã̕Āayᱮᱳron;ä„;ä
´Æ€;ao̲ᱼᲄĀgrÊ¿á²r;懊tseq;æ©·Æ€glmᲑᲔᲘ耻°䂰ta;äŽ
´ptyv;榱ĀirᲣᲨsht;楿;쀀ð”¡arÄ€lrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜á³
mÆ€;oș᳊᳔ndÄ€;ș᳑uit;晦amma;äin;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntime
s;拇nø᳷cy;ä‘’cɯᴆ\0\0á´Šrn;挞op;æŒÊ€lptuwá´˜á´á´¢áµ‰áµ•lar;䀤f;ì€
€ð••Ê€;empsÌ‹á´á´·á´½áµ‚qÄ€;dÍ’á´³ot;æ
‰‘inus;戸lus;戔quare;抡blebarwedgåúnÆ€adhá„®áµáµ§ownarrowóᲃarpoonÄ€lráµ²áµ
¶efôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\
0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryá¶á¶¡;쀀ð’¹;ä‘•l;槶rok;ä„‘Ä€drᶰá¶
´ot;拱iÄ€;fá¶ºá –æ–¿Ä€ah᷀᷃ròЩaòྦangle;榦Āciá·’á·•y;ä‘Ÿgrarr;柿à¤
€Dacdefglmnopqrstuxá¸á¸‰á¸™á¸¸Õ¸á¸¼á¹‰á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½„὎὚ĀDoḆá
´´oôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;ä„›rÄ€;cá¸á¸®æ‰–
耻ê䃪lon
;払;ä‘ot;ä„—Ä€Drá¹á¹…ot;扒;쀀ð”¢Æ€;rsá¹á¹‘ṗ檚ave耻è䃨Ā;dṜá¹æª–
ot;檘Ȁ;ilsṪṫṲṴ檙nters;æ§;æ„“Ä€;dṹṺ檕ot;檗ƀapsẅẉẗ
cr;ä„“tyÆ€;svẒẓẕ戅et»ẓpÄ€1;áºáº¤Ä³áº¡áº£;怄;怅怃ĀgsẪẬ;ä…‹p;æ€
‚Ä€gpẴẸon;ä„™f;쀀ð•–
Æ€alsỄỎỒrÄ€;sỊị拕l;槣us;橱iÆ€;lvỚớở䎵on»ớ;äµÈ€csuvỪỳἋ
ἣĀioữḱrc»Ḯɩỹ\0\0á»»ÃÕˆantÄ€glἂἆtr»á¹ess»Ṻƀaeiá¼’á¼–
Ἒls;䀽st;扟vÄ€;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiá¼¾á½á»¸r;愯oÃ
´Í’Ä€ahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬá½
´ctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0á¿“\0ῦῪ \
0 âšllingdotseñṄy;ä‘„male;晀ƀilrá¾á¾³á¿lig;耀ffiɩᾹ\0\0á¾½g;耀ffig;è€
€ï¬„;쀀ð”£lig;耀ï¬lig;쀀fjÆ€altῙ῜ῡt;æ™ig;耀flns;æ–±of;䆒ǰ΅\
0ῳf;쀀ð•—Ä€akÖ¿á¿·Ä€;vῼ´拔;æ«™artint;æ¨Ä€ao‌â•Ä€cs‑â’ႉ‸â…
âˆ\0âβ•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;æ…•;æ…™;慛Ƴ‴\0‶;æ…”;æ…–Ê
´â€¾â\0\0âƒè€»Â¾ä‚¾;æ…—;æ…œ5;慘ƶâŒ\0âŽ;æ…š;æ…8;æ…žl;æ„wn;挢cr;쀀ð’»à¢
€Eabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗
ℾ⅒↞Ā;lÙ₇;檌ƀcmpâ‚â‚•â‚ute;䇵maÄ€;dₜ᳚䎳;檆reve;ä„ŸÄ€iy₪₮rc;
ä„;ä³ot;ä„¡È€;lqsؾق₽⃉ƀ;qsؾٌ⃄lanÃ
´Ù¥È€;cdl٥⃒⃥⃕c;檩otÄ€;o⃜âƒæª€Ä€;l⃢⃣檂;檄Ā;e⃪âƒì€
€â‹›ï¸€s;檔r;ì€
€ð”¤Ä€;gٳ؛mel;æ„·cy;ä‘“È€;Eajٚℌℎâ„;檒;檥;檤ȀEaesâ„›â„â„©â„´;æ
‰©pÄ€;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀ð•˜Ä€ciâ…ƒâ…
†r;æ„ŠmÆ€;elÙ«â…Žâ…;檎;æªèŒ€>;cdlqr×®â… â…ªâ…®â…³â…¹Ä€ciⅥⅧ;檧r;橺ot;æ‹—
Par;榕uest;橼ʀadelsↄⅪâ†Ù–↛ǰ↉\0↎proø₞r;楸qÄ€lqؿ↖lesó₈iÃ-
Ù«Ä€en↣â†rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘âˆâˆ¯â‰¨â‰½ròÎ
È€ilmrâ‡â‡”⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;ä‘ŠÆ€;cwࣴ⇫⇯ir;楈;æ†-
ar;æ„irc;䄥ƀalrâˆâˆŽâˆ“rtsÄ€;u∉∊晥it»∊lip;怦con;抹r;ì€
€ð”¥sÄ€ew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kÄ€lr≉â
‰“eftarrow;憩ightarrow;憪f;쀀ð•™bar;怕ƀclt≯≴≸r;쀀ð’½asèâ‡
´rok;䄧Ābp⊂⊇ull;æƒhen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢â§â¢â¿\
0⎆⎪⎴cute耻Ãäƒ-
Æ€;iyݱ⊰⊵rc耻î䃮;ä¸Ä€cx⊼⊿y;äµcl耻¡䂡ĀfrΟ⋉;ì€
€ð”¦rave耻ì䃬Ȁ;inoܾâ‹â‹©â‹®Ä€in⋢⋦nt;樌t;æˆ-
fin;槜ta;æ„©lig;䄳ƀaop⋾⌚âŒÆ€cgt⌅⌈⌗r;ä„«Æ€elpÜŸâŒâŒ“inÃ¥ÞŽarôÜ
h;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽âare;æ„…inÄ€;t⌸⌹戞ie;æ§doô⌙ʀ;celpÝ—
âŒââ›â¡al;抺Āgrâ•â™eróᕣãâarhk;樗
rod;樼Ȁcgptâ¯â²â¶â»y;ä‘‘on;䄯f;쀀ð•ša;䎹uest耻¿䂿Āci⎊âŽr;ì€
€ð’¾nÊ€;EdsvӴ⎛âŽâŽ¡Ó³;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\
0⎼cy;ä‘–l耻ï䃯̀cfmosuâŒâ—âœâ¡â§âµÄ€iyâ‘â•rc;䄵;ä¹r;ì€
€ð”§ath;䈷pf;쀀ð•›Ç£â¬\0â±r;쀀ð’¿rcy;䑘kcy;䑔Ѐacfghjosâ‹â–â¢â§â-
â±âµâ»ppaÄ€;vâ“â”䎺;ä°Ä€eyâ›â dil;ä„·;äºr;쀀ð”¨reen;䄸cy;ä‘…
cy;ä‘œpf;쀀ð•œcr;쀀ð“€à®€ABEHabcdefghjlmnoprstuvâ‘°â’â’†â’⒑┎┽╚â–
€â™Žâ™žâ™¥â™¹â™½âššâš²â›˜ââ¨âž‹âŸ€â â
’Æ€art⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0â’ª\0â’±\
0\0\0\0\0⒵Ⓔ\0ⓆⓈâ“\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gÆ€;dlࢎâ“Ⓝ;榑åà
¢Ž;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;fà¢â“£s;椟s;æ¤Ã«â
‰’p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊æª;쀀âª-
︀ƀabr┕┙â”rr;椌rk;æ²Ä€ak┢┬cÄ€ek┨┪;ä»;ä›Ä€es┱┳;榋lÄ€du┹┻
;æ¦;æ¦È€aeuy╆╋╖╘ron;䄾Ādiâ•â•”il;䄼ìࢰâ┩;ä»È€cqrs╣╦â•-
╽a;椶uoÄ€;rนá†Ä€du╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿æ‰
¤tÊ€ahlrt▘▤▷◂◨rrowÄ€;t࢙□aé⓶arpoonÄ€duâ–¯â–
´own»њp»०eftarrows;懇ightÆ€ahsâ—â—–â—žrrowÄ€;sࣴà
¢§arpoonó྘quigarro÷⇰hreetimes;æ‹‹Æ€;qs▋ও◺lanÃ
´à¦¬Ê€;cdgsব☊â˜â˜â˜¨c;檨otÄ€;o☔☕橿Ā;r☚☛æª;檃Ā;e☢☥ì€
€â‹šï¸€s;檓ʀadegs☳☹☽♉♋pproøⓆot;æ‹–qÄ€gq♃♅ôউgtò⒌ôছiÃ-
লƀilr♕࣡♚sht;楼;쀀ð”©Ä€;Eজ♣;檑š♩♶rÄ€du▲♮Ā;là¥
¥â™³;楪lk;æ–„cy;䑙ʀ;achtੈ⚈⚋⚑⚖ròâ—orneòᴈard;楫ri;æ—
ºÄ€io⚟⚤dot;ä…€ustÄ€;a⚬âšæŽ°che»âšÈ€Eaes⚻⚽⛉⛔;扨pÄ€;p⛃⛄æª
‰rox»⛄Ā;q⛎â›æª‡Ä€;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯ââ‡âÄ€nr⛮⛱g
;柬r;懽rëà£gÆ€lmr⛿âœâœ”eftÄ€ar০✇ightá৲apsto;柼ightá৽parrowÄ€lr✥
✩efôâ“ight;憬ƀafl✶✹✽r;榅;쀀ð•us;æ¨imes;樴šâ‹âst;戗ááŽÆ€;efâ
—â˜á €æ—Šnge»â˜arÄ€;lâ¤â¥ä€¨t;榓ʀachmtâ³â¶â¼âž…➇ròà
¢¨orneòᶌarÄ€;d྘➃;æ¥;怎ri;抿̀achiqt➘âžà©€âž¢âž®âž»quo;怹r;ì€
€ð“mÆ€;egল➪➬;æª;æªÄ€bu┪➳oÄ€;rฟ➹;怚rok;ä…‚è€<;cdhilqrà
«âŸ’☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reÃ¥â—
²mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;efâ €à¤á ›æ—ƒrÄ€duâ ‡â
shar;楊har;楦Āenâ —â ¡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠â¢
¥â¢¨â£šâ£¢â£¤àªƒâ£³â¤‚Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āetâ¡—â¡™;時Ā;eâ¡žâ¡Ÿæœ
se»⡟Ā;sျ⡨toÈ€;dluျ⡳⡷⡻owîҌefôà¤Ã°á‘ker;斮Āoy⢇â
¢Œmma;権;ä¼ash;怔asuredangle»ᘦr;쀀ð”ªo;愧ƀcdn⢯⢴â£
‰ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;æ«°ot肻·ƵusÆ€;bd⣒ᤃ⣓戒Ā;uá
´¼â£˜;横ţ⣞⣡p;櫛ò−ðàªÄ€dp⣩⣮els;抧f;쀀ð•žÄ€ct⣸⣽r;ì€
€ð“‚pos»á–Æ€;lm⤉⤊â¤äŽ¼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾â¦
‰â¦˜â§šâ§©â¨•â¨šâ©˜â©âªƒâª•âª¤âª¨â¬„⬇â„â¿â®®â°´â±§â±¼â³©Ä€gt⥇⥋;ì€
€â‹™Ì¸Ä€;vâ¥à¯ì€€â‰«âƒ’Æ€elt⥚⥲⥶ftÄ€ar⥡⥧rrow;æ‡ightarrow;懎;ì€
€â‹˜Ì¸Ä€;v⥻ే쀀â
‰ªâƒ’ightarrow;æ‡Ä€Dd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;ä…„g;ì€
€âˆ ⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;ä…
‰roø඄urÄ€;a⧓⧔普lÄ€;s⧓ସdz⧟\0⧣p肻 ଷmpÄ€;e௹ఀʀaeouyâ§
´â§¾â¨ƒâ¨â¨“ǰ⧹\0⧻;橃on;ä…ˆdil;ä…†ngÄ€;dൾ⨊ot;쀀â©-
̸p;æ©‚;ä½ash;怓΀;Aadqsxஒ⨩â¨â¨»â©â©…â©rr;懗rÄ€hr⨳⨶k;æ¤
¤Ä€;oá²á°ot;쀀â‰Ì¸uiöà£Ä€eiâ©Šâ©Žar;椨Ã஘istÄ€;s஠டr;쀀ð”«È€Eest௅
⩦⩹⩼ƀ;qs஼â©à¯¡Æ€;qs஼௅⩴lanô௢iÃ௪Ā;rஶâªÂ»à®·Æ€Aap⪊âªâª‘ròâ¥
±rr;憮ar;櫲ƀ;svà¾âªœà¾ŒÄ€;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅
⫶⫹rò⥦;쀀≦̸rr;憚r;æ€
¥È€;fqs఻⫎⫣⫯tÄ€ar⫔⫙rro÷â«ightarro÷âªÆ€;qs఻⪺⫪lanÃ
´à±•Ä€;sౕ⫴»శiÃà±Ä€;rవ⫾iÄ€;eà°šà°¥iäà¶Ä€pt⬌⬑f;ì€
€ð•Ÿè†€Â¬;in⬙⬚⬶䂬nÈ€;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡà®
‰â¬³â¬µ;æ‹·;拶iÄ€;vಸ⬼ǡಸââƒ;拾;拽ƀaorâ‹â£â©rÈ€;astà»â•âšâŸlleìà»l;ì€
€â«½âƒ¥;쀀∂̸lint;樔ƀ;ceಒâ°â³uåಥĀ;cಘâ¸Ä€;eಒâ-
½Ã±à²˜È€Aait⮈⮋â®â®§rò⦈rrÆ€;cw⮔⮕⮙憛;쀀⤳̸;ì€
€â†Ì¸ghtarrow»⮕riÄ€;eೋೖ΀chimpqu⮽â¯â¯™â¬„à¸â¯¤â¯¯È€;cerല⯆ഷâ¯
‰uå൅;쀀ð“ƒortÉ⬅\0\0⯖aráâ–mÄ€;e൮⯟Ā;q൴൳suÄ€bp⯫â¯Ã¥à³¸Ã¥à
´‹Æ€bcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etÄ€;eഛⰋqÄ€;qണⰀcÄ€;eലⰗñà
´¸È€;EesⰢⰣൟⰧ抅;쀀⫆̸etÄ€;e൘ⰮqÄ€;qൠⰣȀgilrⰽⰿⱅⱇìௗ
lde耻ñ䃱çృiangleÄ€lrⱒⱜeftÄ€;eచⱚñదightÄ€;eೋⱥñ೗Ā;mⱬâ±-
䎽ƀ;esⱴⱵⱹ䀣ro;æ„–p;怇ҀDHadgilrsâ²â²”ⲙⲞⲣⲰⲶⳓⳣash;æŠarr;æ¤
„p;쀀â‰âƒ’ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetâ²½â³â³…rr;椂;쀀â‰
¤âƒ’Ä€;rⳊâ³ì€€<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;ì€
€âˆ¼âƒ’Æ€Aanâ³°â³´â´‚rr;懖rÄ€hr⳺⳽k;椣Ā;oá§á¥ear;椧ቓ᪕\
0\0\0\0\0\0\0\0\0\0\0\0\0â´\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0â¶â¶«\0ⷈⷎ\
0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrÄ€;c᪞ⵂ耻ô䃴;ä¾Ê€abiosáª
ⵒⵗLjⵚlac;ä…‘v;樸old;榼lig;ä…“Ä€cr⵩âµir;榿;쀀ð”¬Í¯âµ¹\0\0âµ¼\
0ⶂn;ä‹›ave耻ò䃲;æ§Ä€bmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āirâ¶â¶
r;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;ä…ga;ä‰Æ€cdnⷀⷅÇron;䎿;榶pf;쀀ð•
Æ€aelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈â¸â¸â¸–戨rò᪆Ȁ;efmⷷⷸ⸂⸅
æ©rÄ€;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;æ©–lope;æ©
—;橛ƀclo⸟⸡⸧òâ¸ash耻ø䃸l;折iŬⸯâ¸
´de耻õ䃵esÄ€;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0â¹½\0⺀âº\0⺢⺹\0\0⻋ຜ\
0⼓\0\0⼫⾼\0⿈rÈ€;astЃ⹧⹲຅脀¶;lâ¹â¹®ä‚¶leìЃɩ⹸\
0\0â¹»m;櫳;櫽y;ä¿rÊ€cimpt⺋âºâº“ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀ð”-
Æ€imo⺨⺰⺴Ā;vâºâº®ä†;ä•maô੶ne;明ƀ;tv⺿⻀⻈ä€chfork»´;ä–
Ä€auâ»â»ŸnÄ€ck⻕â»kÄ€;h⇴⻛;愎öâ‡
´sÒ€;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;æ¨
¢Ä€ouᵀ⼂;樥;橲n肻±àºim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;ì€
€ð•¡nd耻£䂣Ԁ;Eaceinosu່⼿â½â½„⽇â¾â¾
‰â¾’⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñà
»ŽÆ€aes⽯⽶⽺pprox;檹qq;檵im;拨iÃ-
ໟmeÄ€;s⾈ຮ怲ƀEas⽸â¾â½ºÃ°â½µÆ€dfp໬⾙⾯ƀalsâ¾
⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;ì€
€ð“…;äˆncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀ð”®pf;쀀ð•¢rime;æ—cr;ì€
€ð“†Æ€aeo⿸〉〓tÄ€ei⿾々rnionóڰnt;樖stÄ€;eã€ã€‘䀿ñἙÃ
´à¼”઀ABHabcdefhilmnoprstuxã€ã‘ã•ã™ãƒ ㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮ã
‰²ãŠãŠ°ãŠ·Æ€artã‡ãŠãŒròႳòÏail;検aròᱥar;æ¥
¤Î€cdenqrtã¨ãµã¸ã¿ã‚ゔヌĀeuãã±;쀀∽̱te;ä…•iãá…
®mptyv;榳gÈ€;del࿑らるã‚;榒;榥å࿑uo耻»䂻rÖ€;abcfhlpstw࿜ガクシスã‚
¼ã‚¾ãƒ€ãƒƒãƒ‡ãƒŠp;極Ā;fà¿ ã‚´s;æ¤ ;椳s;椞ëâ‰Ã°âœ®l;楅im;æ¥
´l;憣;æ†Ä€aiパフil;椚oÄ€;nホボ戶aló༞ƀabrョリヮrò៥rk;æ³Ä€akンヽ
cÄ€ekヹ・;ä½;äÄ€esã„‚ã„„;榌lÄ€duã„Šã„Œ;榎;æ¦È€aeuyㄗㄜㄧㄩron;ä…
™Ä€diã„¡ã„¥il;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽã…
„a;椷dhar;楩uoÄ€;rÈŽÈh;憳ƀacgㅎㅟངlÈ€;ipsླྀㅘㅛႜnåႻarôྩt;æ–-
Æ€ilrㅩဣㅮsht;楽;쀀ð”¯Ä€aoㅷㆆrÄ€duã…½ã…
¿Â»Ñ»Ä€;l႑ㆄ;楬Ā;vㆋㆌä;ä±Æ€gns㆕ㇹㇼhtÌ€ahlrstㆤㆰ㇂㇘㇤㇮rrowÄ
€;tà¿œã†aéトarpoonÄ€duㆻㆿowîã…
¾p»႒eftÄ€ah㇊ã‡rrowó࿪arpoonóՑightarrows;æ‡
‰quigarro÷ニhreetimes;æ‹Œg;ä‹šingdotseñἲƀahmãˆãˆãˆ“rò࿪aòՑ;æ€oustÄ€;aã
ˆžãˆŸæŽ±che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;æŸr;懾rëဃƀafl㉇㉊ã
‰Žr;榆;쀀ð•£us;樮imes;樵Āapã‰ã‰§rÄ€;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachqã
‰»ãŠ€á‚¼ãŠ…quo;怺r;쀀ð“‡Ä€bu・㊊oÄ€;rȔȓƀhir㊗㊛ãŠ
reåㇸmes;æ‹ŠiÈ€;efl㊪á™á ¡ãŠ«æ–¹tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸ã±\
0ãºãŽ¤\0\0ã¬ã°\0ã¨ã‘ˆã‘šã’㒱㓊㓱\0㘖\0\0㘳cute;ä…›quï➺Ԁ;Eaceinpsyá‡-
㋳㋵㋿㌂㌋ãŒãŒŸãŒ¦ãŒ©;檴ǰ㋺\0㋼;檸on;ä…¡uåᇾĀ;dᇳ㌇il;ä…Ÿrc;ä…
Æ€Eas㌖㌘㌛;檶p;檺im;æ‹©olint;樓iÃሄ;ä‘otÆ€;beãŒ
´áµ‡ãŒµæ‹…;橦΀Aacmstxã†ãŠã—ã›ãžã£ãrr;懘rÄ€hrãã’ë∨Ā;oਸ਼à¨
´t耻§䂧i;䀻war
;椩mÄ€inã©Ã°nuóñt;朶rÄ€;oã¶â•ì€€ð”°È€acoy㎂㎆㎑ãŽ
rp;景Āhy㎋ãŽcy;䑉;䑈rtÉ㎙\0\0㎜iäᑤaraì⹯耻Âä‚Ä€gm㎨ãŽ
´maÆ€;fv㎱㎲㎲äƒ;ä‚Ѐ;deglnprካã…ã‰ãŽã–
ãžã¡ã¦ot;橪Ā;q኱ኰĀ;Eã“ã”檞;æª Ä€;Eã›ãœæª;檟e;æ
‰†lus;樤arr;楲aròᄽȀaeitã¸ãˆãã—
Ä€lsã½ã„lsetméãªhp;樳parsl;槤Ādlá‘£ã”e;挣Ā;eãœã檪Ā;sã¢ã£æª¬;ì€
€âª¬ï¸€Æ€flpã®ã³ã‘‚tcy;䑌Ā;bã¸ã¹ä€¯Ä€;aã¾ã¿æ§„r;挿f;ì€
€ð•¤aÄ€drã‘ЂesÄ€;uã‘”ã‘•æ™ it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pÄ€;sᆈ㑫;ì€
€âŠ“︀pÄ€;sᆴ㑵;쀀⊔︀uÄ€bpã‘¿ã’Æ€;esᆗᆜ㒆etÄ€;eᆗã’ñá†Æ€;esᆨá†ã’–
etÄ€;eᆨã’ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;ì€
€ð“ˆtmîñiìã•aræᆾĀarã“Žã“•rÄ€;f㓔ឿ昆Āanã“šã“ightÄ€ep㓣㓪psiloîá»
hé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎ã”㔑㔕㔞㔣㔬㔱㔶抂;æ«…
ot;檽Ā;dᇚ㔚ot;櫃ult;æ«Ä€Ee㔨㔪;æ«‹;把lus;檿arr;楹ƀeiu㔽㕒㕕tÆ€;enã”
Žã•…ã•‹qÄ€;qᇚã”eqÄ€;q㔫㔨m;櫇Ābpã•šã•œ;æ«•;æ«“cÌ€;acensá‡-
㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗
g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨ã—-
耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;æ«„sÄ€ouã—ã—’l;æŸ
‰b;æ«—arr;楻ult;æ«‚Ä€Ee㗤㗦;æ«Œ;抋lus;櫀ƀeiu㗴㘉㘌tÆ€;enሜ㗼㘂qÄ€;qáˆ
¢ã–²eqÄ€;q㗧㗤m;櫈Ābp㘑㘓;æ«”;æ«–Æ€Aan㘜㘠ã˜-
rr;懙rÄ€hr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑ã™ã™ ዎ㙳㙹\0㙾㛂\
0\0\0\0\0㛛㜃\0㜉ã¬\0\0\0㞇ɲ㙖\0\0ã™›get;挖;ä„rë๟ƀaey㙦㙫㙰ron;ä…
¥dil;ä…£;ä‘‚lrec;挕r;쀀ð”±È€eiko㚆ãšãšµãš¼Ç²ãš‹\
0ãš‘eÄ€4fኄáŠaÆ€;sv㚘㚙㚛䎸ym;ä‘Ä€cnãš
¢ãš²kÄ€as㚨㚮pproøá‹im»ኬsðኞĀas㚺㚮ðá‹rn耻þ䃾Ǭ̟㛆⋧es膀Ã
—;bdã›ã›ã›˜äƒ—
Ä€;aá¤ã›•r;樱;樰ƀeps㛡㛣㜀áâ©È€;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼ì€
€ð•¥rk;櫚áã¢rime;怴ƀaipãœãœ’ã¤dåቈ΀adempst㜡ãã€ã‘ã—
ãœãŸngleÊ€;dlqr㜰㜱㜶ã€ã‚æ–µown»ᶻeftÄ€;e⠀㜾ñम;æ
‰œightÄ€;e㊪ã‹Ã±ášot;æ—¬inus;樺lus;樹b;æ§ime;樻ezium;æ
¢Æ€chtã²ã½ãžÄ€ryã·ã»;쀀ð“‰;䑆cy;ä‘›rok;䅧Āio㞋㞎xôá·headÄ€lrãž—ãž
eftarro÷à¡ightarrow»à½à¤€AHabcdfghlmoprstuwãŸãŸ“㟗㟤㟰㟼㠎㠜㠣ã
´ã¡‘ã¡ã¡«ã¢©ã£Œã£’㣪㣶ròÏar;楣Ācr㟜㟢ute耻ú䃺òá…rǣ㟪\0ãŸy;ä‘žve;ä…-
Ä€iy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròáŽlac;ä…±aòáƒÄ€irã “ã ˜sht;楾;ì€
€ð”²rave耻ù䃹š㠧㠱rÄ€lr㠬㠮»ॗ»ႃlk;斀Āctã ¹ã¡É¯ã ¿\0\0ã¡ŠrnÄ€;eã¡…
㡆挜r»㡆op;æŒri;旸Āalã¡–ã¡šcr;䅫肻¨͉Āgp㡢㡦on;ä…³f;ì€
€ð•¦Ì€adhlsuᅋ㡸㡽á²ã¢‘㢠ownáᎳarpoonÄ€lr㢈㢌efôã ighô㠯iÆ€;hl㢙㢚ã
¢œä…»áºon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0ã£rnÄ€;e㢼㢽æŒr»ã
¢½op;挎ng;ä…¯ri;æ—¹cr;쀀ð“ŠÆ€dir㣙ã£ã£¢ot;æ‹°lde;ä…©iÄ€;f㜰㣨»á
“Ä€am㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩ã¤-
㦵㦸㦽㧟㧤㧨㧳㧹㧽ã¨ã¨
ròϷarÄ€;v㤦㤧櫨;æ«©asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒ã¥ã¥¤ã¦–
appáâ•othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïã†Ä€iu㥩ã¥-
gmá㎳Ābp㥲㦄setneqÄ€;q㥽㦀쀀⊊︀;쀀⫋︀setneqÄ€;qã¦ã¦’쀀⊋︀;ì€
€â«Œï¸€Ä€hr㦛㦟etá㚜iangleÄ€lr㦪㦯eft»थight»á‘y;ä²ash»ံƀelr㧄㧒ã§
—Æ€;beⷪ㧋ã§ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀ð”³tré㦮suÄ€bp㧯㧱»à
´œÂ»àµ™pf;쀀ð•§roð໻tré㦴Ācu㨆㨋r;쀀ð“‹Ä€bpã¨ã¨˜nÄ€Ee㦀㨖
»㥾nÄ€Ee㦒㨞»ã¦igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;ä…
µÄ€di㩀㩑Ābg㩅㩉ar;æ©ŸeÄ€;qá—ºã©;扙erp;愘r;쀀ð”´pf;ì€
€ð•¨Ä€;eᑹ㩦atèᑹcr;쀀ð“Œà«£ážŽãª‡\0㪋\0ãªãª›\0\0ãªãª¨ãª«ãª¯\0\0㫃㫎\
0㫘ៜ៟tré៑r;쀀ð”µÄ€Aa㪔㪗
ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;ì€
€ð•©imåឲĀAa㫇㫊ròώròà¨Ä€cq㫒ីr;쀀ð“Ä€pt៖
ã«œré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cÄ€uy㫶㫻te耻ý䃽;ä‘Ä€iy㬂㬆rc;ä…
·;ä‘‹n耻¥䂥r;쀀ð”¶cy;ä‘—pf;쀀ð•ªcr;ì€
€ð“ŽÄ€cm㬦㬩y;ä‘Žl耻ÿ䃿Ԁacdefhioswã‚ãˆã”ã˜ã¤ã©ãã´ãºã®€cute;䅺Āayãã’ron;ä…
¾;ä·ot;䅼Āetãã¡træᕟa;䎶r;쀀ð”·cy;ä¶grarr;æ‡pf;쀀ð•«cr;쀀ð“Ä€jnã®…
㮇;æ€j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},57424:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new
Uint16Array("È€aglq\t###É#\0\0#p;䀦os;䀧t;䀾t;䀼uot;ä€
¢".split("").map((function(e){return e.charCodeAt(0)})))},76437:(e,t)=>{"use
strict";function n(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return
e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=new
Map(n([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],
[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],
[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],
[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],
[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],
[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,
{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],
[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],
[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],
[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],
[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],
[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],
[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],
[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],
[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],
[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],
[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],
[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],
[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],
[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],
[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],
[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],
[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],
[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],
[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],
[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],
[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],
[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],
[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],
[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],
[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],
[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],
[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],
[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],
[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],
[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],
[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],
[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],
[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],
[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],
[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],
[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],
[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],
[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],
[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],
[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],
[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],
[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],
[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],
[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],
[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],
[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],
[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],
[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],
[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],
[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],
[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],
[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],
[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],
[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],
[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],
[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],
[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],
[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],
[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],
[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],
[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],
[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],
[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],
[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],
[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],
[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],
[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],
[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],
[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],
[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,
"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],
[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],
[0," "],[0," "],[1," "],[0," "],[0," "],
[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],
[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],
[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],
[0,"”"],[0,"„"],[1,"†"],[0,"‡"],
[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],
[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],
[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],
[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],
[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],
[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],
[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],
[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],
[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],
[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],
[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],
[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],
[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],
[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],
[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],
[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],
[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],
[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],
[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,
{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],
[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],
[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],
[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],
[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],
[2,"↺"],[0,"↻"],[0,"↼"],
[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],
[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],
[0,"⇅"],[0,"⇆"],[0,"⇇"],
[0,"⇈"],[0,"⇉"],[0,"⇊"],
[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],
[0,"⇏"],[0,"⇐"],[0,"⇑"],
[0,"⇒"],[0,"⇓"],[0,"⇔"],
[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],
[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],
[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],
[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],
[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],
[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],
[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],
[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,
{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],
[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],
[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],
[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],
[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],
[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],
[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,
{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],
[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],
[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],
[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],
[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,
{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,
{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],
[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],
[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,
{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,
{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,
{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,
{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,
{v:"≪",n:new Map(n([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new
Map(n([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],
[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],
[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],
[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],
[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],
[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,
{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],
[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,
{v:"⊊",n:65024,o:"⊊︀"}],[0,
{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,
{v:"⊏",n:824,o:"⊏̸"}],[0,
{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,
{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],
[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],
[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],
[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],
[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],
[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],
[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],
[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,
{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],
[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],
[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],
[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],
[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],
[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],
[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],
[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,
{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,
{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],
[0,"⋠"],[0,"⋡"],
[0,"⋢"],[0,"⋣"],[2,"⋦"],
[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],
[0,"⋫"],[0,"⋬"],[0,"⋭"],
[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],
[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],
[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],
[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],
[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],
[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],
[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],
[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],
[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],
[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],
[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],
[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],
[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],
[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],
[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],
[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],
[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],
[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],
[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],
[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],
[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],
[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],
[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],
[1,"△"],[0,"▴"],[0,"▵"],
[2,"▸"],[0,"▹"],[3,"▽"],
[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],
[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],
[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],
[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],
[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],
[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],
[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],
[84,"⟈"],[0,"⟉"],[28,"⟦"],
[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],
[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],
[0,"⟷"]
,[0,"⟸"],[0,"⟹"],
[0,"⟺"],[1,"⟼"],[2,"⟿"],
[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],
[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],
[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],
[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],
[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],
[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,
{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],
[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],
[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],
[2,"⥎"],[0,"⥏"],[0,"⥐"],
[0,"⥑"],[0,"⥒"],[0,"⥓"],
[0,"⥔"],[0,"⥕"],[0,"⥖"],
[0,"⥗"],[0,"⥘"],[0,"⥙"],
[0,"⥚"],[0,"⥛"],[0,"⥜"],
[0,"⥝"],[0,"⥞"],[0,"⥟"],
[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],
[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],
[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],
[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],
[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],
[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],
[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],
[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],
[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],
[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],
[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],
[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],
[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],
[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],
[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],
[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],
[3,"⧍"],[0,"⧎"],[0,
{v:"⧏",n:824,o:"⧏̸"}],[0,
{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],
[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],
[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],
[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],
[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],
[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],
[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],
[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],
[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],
[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],
[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],
[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],
[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],
[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],
[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],
[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,
{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,
{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],
[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],
[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,
{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],
[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],
[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],
[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],
[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],
[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],
[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,
{v:"⪡",n:824,o:"⪡̸"}],[0,
{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],
[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],
[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,
{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,
{v:"⪯",n:824,o:"⪯̸"}],[0,
{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],
[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],
[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],
[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,
{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],
[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,
{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],
[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],
[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],
[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],
[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],
[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],
[44343,{n:new Map(n([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],
[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],
[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],
[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],
[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],
[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],
[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],
[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],
[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],
[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],
[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],
[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],
[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],
[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],
[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],
[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],
[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],
[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],
[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],
[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],
[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],
[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],
[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],
[0,"fl"],[0,"ffi"],[0,"ffl"]]))},75924:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decod
eHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.Decoding
Mode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=
t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeS
trict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var
r,i,o=n(73094),s=n(41029),a=n(29970);function c(e,t){if(void 0===t&&(t=r.XML),
("number"==typeof t?t:t.level)===r.HTML){var n="object"==typeof t?t.mode:void
0;return(0,o.decodeHTML)(e,n)}return(0,o.decodeXML)(e)}!function(e)
{e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r=t.EntityLevel||
(t.EntityLevel={})),function(e)
{e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute
=3]="Attribute",e[e.Text=4]="Text"}(i=t.EncodingMode||
(t.EncodingMode={})),t.decode=c,t.decodeStrict=function(e,t){var n;void
0===t&&(t=r.XML);var i="number"==typeof t?{level:t}:t;return null!
==(n=i.mode)&&void 0!==n||
(i.mode=o.DecodingMode.Strict),c(e,i)},t.encode=function(e,t){void
0===t&&(t=r.XML);var n="number"==typeof t?{level:t}:t;return n.mode===i.UTF8?
(0,a.escapeUTF8)(e):n.mode===i.Attribute?(0,a.escapeAttribute)(e):n.mode===i.Text?
(0,a.escapeText)(e):n.level===r.HTML?n.mode===i.ASCII?(0,s.encodeNonAsciiHTML)(e):
(0,s.encodeHTML)(e):(0,a.encodeXML)(e)};var
u=n(29970);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return
u.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function()
{return u.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!
0,get:function(){return u.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",
{enumerable:!0,get:function(){return
u.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!
0,get:function(){return u.escapeText}});var
l=n(41029);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function()
{return l.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!
0,get:function(){return
l.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!
0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",
{enumerable:!0,get:function(){return
l.encodeHTML}});var h=n(73094);Object.defineProperty(t,"EntityDecoder",
{enumerable:!0,get:function(){return
h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!
0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",
{enumerable:!0,get:function(){return
h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function()
{return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!
0,get:function(){return
h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!
0,get:function(){return
h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!
0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",
{enumerable:!0,get:function(){return
h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!
0,get:function(){return
h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!
0,get:function(){return
h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!
0,get:function(){return h.decodeXML}})},22699:e=>{"use strict";var
t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?
n.apply:function(e,t,n){return
Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?
n.ownKeys:Object.getOwnPropertySymbols?function(e){return
Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e)
{return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!
=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return
new Promise((function(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))}g(e,t,o,
{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,
{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void
0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function
a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be
of type Function. Received type '+typeof e)}function c(e){return void
0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var
i,o,s,u;if(a(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),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else
if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),
(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible
EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use
emitter.setMaxListeners() to increase
limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,
u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!
this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!
0,0===arguments.length?
this.listener.call(this.target):this.listener.apply(this.target,arguments)}function
h(e,t,n){var r={fired:!1,wrapFn:void
0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function
d(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):p(i,i.length)}function f(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 p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function
g(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(o,"defaultMaxLis
teners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof
e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of
range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function()
{void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||
(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._max
Listeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||
e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-
negative number. Received '+e+".");return
this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return
c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n+
+)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void
0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof
Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw
a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof
c)r(c,this,t);else{var u=c.length,l=p(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!
0},o.prototype.addListener=function(e,t){return u(this,e,t,!
1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t
){return u(this,e,t,!0)},o.prototype.once=function(e,t){return
a(t),this.on(e,h(this,e,t)),this},o.prototype.prependOnceListener=function(e,t)
{return
a(t),this.prependListener(e,h(this,e,t)),this},o.prototype.removeListener=function(
e,t){var n,r,i,o,s;if(a(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){s=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,s||t)}return
this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=fun
ction(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._ev
entsCount=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},o.prototype.listeners=function(e){return d(this,e,!
0)},o.prototype.rawListeners=function(e){return d(this,e,!
1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?
e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=
function(){return this._eventsCount>0?t(this._events):[]}},75233:function(e,t,n)
{"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r)
{void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var
s=o(n(59636)),a=n(73094),c=new
Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new
Set(["p"]),l=new Set(["thead","tbody"]),h=new Set(["dd","dt"]),d=new
Set(["rt","rp"]),f=new Map([["tr",new Set(["tr","th","td"])],["th",new
Set(["th"])],["td",new Set(["thead","th","td"])],["body",new
Set(["head","link","script"])],["li",new Set(["li"])],["p",u],["h1",u],["h2",u],
["h3",u],["h4",u],["h5",u],["h6",u],["select",c],["input",c],["output",c],
["button",c],["datalist",c],["textarea",c],["option",new Set(["option"])],
["optgroup",new Set(["optgroup","option"])],["dd",h],["dt",h],["address",u],
["article",u],["aside",u],["blockquote",u],["details",u],["div",u],["dl",u],
["fieldset",u],["figcaption",u],["figure",u],["footer",u],["form",u],["header",u],
["hr",u],["main",u],["nav",u],["ol",u],["pre",u],["section",u],["table",u],
["ul",u],["rt",d],["rp",d],["tbody",l],["tfoot",l]]),p=new
Set(["area","base","basefont","br","col","command","embed","frame","hr","img","inpu
t","isindex","keygen","link","meta","param","source","track","wbr"]),g=new
Set(["math","svg"]),m=new Set(["mi","mo","mn","ms","mtext","annotation-
xml","foreignobject","desc","title"]),v=/\s|\//,b=function(){function e(e,t){var
n,r,i,o,a;void
0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,
this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack
=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,th
is.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!
==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!
==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!
==(i=t.Tokenizer)&&void 0!==i?i:s.default)
(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||
a.call(o,this)}return e.prototype.ontext=function(e,t){var
n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void
0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var
t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-
1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,a.fromCodePoint)
(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!
this.options.xmlMode&&p.has(e)},e.prototype.onopentagname=function(e,t)
{this.endIndex=t;var
n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n
)},e.prototype.emitOpenTag=function(e){var
t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!
this.options.xmlMode&&f.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this
.stack.length-1]);){var s=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void
0===n||n.call(t,s,!0)}this.isVoidElement(e)||(this.stack.push(e),g.has(e)?
this.foreignContext.push(!0):m.has(e)&&this.foreignContext.push(!
1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||
i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(
e){var
t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopent
ag)||void 0===n||
n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.
isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!
0),this.tagname=""},e.prototype.onopentagend=function(e)
{this.endIndex=e,this.endOpenTag(!
1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var
n,r,i,o,s,a;this.endIndex=t;var
c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(g.has(c)||
m.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"b
r"!==c||(null===(r=(n=this.cbs).onopentagname)||void 0===r||
r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!
0),null===(a=(s=this.cbs).onclosetag)||void 0===a||a.call(s,"br",!1));else{var
u=this.stack.lastIndexOf(c);if(-1!==u)if(this.cbs.onclosetag)for(var
l=this.stack.length-u;l--;)this.cbs.onclosetag(this.stack.pop(),0!==l);else
this.stack.length=u;else this.options.xmlMode||"p"!==c||
(this.emitOpenTag("p"),this.closeCurrentTag(!
0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e)
{this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||
this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!
1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(
e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-
1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!
e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var
n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?
n.toLowerCase():n},e.prototype.onattribdata=function(e,t)
{this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e)
{this.attribvalue+=(0,a.fromCodePoint)(e)},e.prototype.onattribend=function(e,t)
{var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||
r.call(n,this.attribname,this.attribvalue,e===s.QuoteType.Double?'"':e===s.QuoteTyp
e.Single?"'":e===s.QuoteType.NoValue?void 0:null),this.attribs&&!
Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[t
his.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionNa
me=function(e){var t=e.search(v),n=t<0?e:e.substr(0,t);return
this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e
,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction)
{var
r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".con
cat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t)
{this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var
r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".con
cat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var
r,i,o,s;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||
i.call(r,this.getSlice(e,t-n)),null===(s=(o=this.cbs).oncommentend)||void 0===s||
s.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var
r,i,o,s,a,c,u,l,h,d;this.endIndex=t;var f=this.getSlice(e,t-
n);this.options.xmlMode||this.options.recognizeCDATA?
(null===(i=(r=this.cbs).oncdatastart)||void 0===i||
i.call(r),null===(s=(o=this.cbs).ontext)||void 0===s||
s.call(o,f),null===(c=(a=this.cbs).oncdataend)||void 0===c||c.call(a)):
(null===(l=(u=this.cbs).oncomment)||void 0===l||
l.call(u,"[CDATA[".concat(f,"]]")),null===(d=(h=this.cbs).oncommentend)||void
0===d||d.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var
e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var
n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!
0));}null===(t=(e=this.cbs).onend)||void 0===t||
t.call(e)},e.prototype.reset=function(){var
e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||
t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=nu
ll,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onp
arserinit)||void 0===r||
r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.end
ed=!1},e.prototype.parseComplete=function(e)
{this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-
this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var
n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-
this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].sli
ce(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function()
{this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},
e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||
void 0===n||n.call(t,new Error(".write() after done!")):
(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIn
dex++))},e.prototype.end=function(e){var t,n;this.ended?
null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after
done!")):(e&&this.write(e),this.ended=!
0,this.tokenizer.end())},e.prototype.pause=function()
{this.tokenizer.pause()},e.prototype.resume=function()
{for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.l
ength;)this.tokenizer.write(this.buffers[this.writeIndex+
+]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e)
{this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=b},59636:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.QuoteType=void 0;var r,i,o,s=n(73094);function a(e){return e===r.Space||
e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function c(e){return
e===r.Slash||e===r.Gt||a(e)}function u(e){return e>=r.Zero&&e<=r.Nine}!function(e)
{e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.Carriag
eReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="Exclama
tionMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuot
e",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.
Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]=
"Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[
e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=9
0]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBrac
ket=91]="OpeningSquareBracket"}(r||(r={})),function(e)
{e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagNam
e",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeCl
osingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]
="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttri
buteName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.B
eforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttrib
uteValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=
14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclar
ation=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction"
,e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.In
SpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.Bef
oreSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence
",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.Befor
eNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.
InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||
(i={})),function(e)
{e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Dou
ble=3]="Double"}(o=t.QuoteType||(t.QuoteType={}));var l={Cdata:new
Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new
Uint8Array([45,45,62]),ScriptEnd:new
Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new
Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new
Uint8Array([60,47,116,105,116,108,101])},h=function(){function e(e,t){var
n=e.xmlMode,r=void 0!==n&&n,o=e.decodeEntities,a=void 0===o||
o;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this
.baseState=i.Text,this.isSpecial=!1,this.running=!
0,this.offset=0,this.currentSequence=void
0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this
.entityExcess=0,this.xmlMode=r,this.decodeEntities=a,this.entityTrie=r?
s.xmlDecodeTree:s.htmlDecodeTree}return e.prototype.reset=function()
{this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i
.Text,this.currentSequence=void 0,this.running=!
0,this.offset=0},e.prototype.write=function(e)
{this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=functi
on(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!
1},e.prototype.resume=function(){this.running=!
0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.g
etIndex=function(){return this.index},e.prototype.getSectionStart=function(){return
this.sectionStart},e.prototype.stateText=function(e){e===r.Lt||!
this.decodeEntities&&this.fastForwardTo(r.Lt)?
(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.s
tate=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&
(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var
t=this.sequenceIndex===this.currentSequence.length;if(t?c(e):(32|
e)===this.currentSequence[this.sequenceIndex]){if(!t)return void
this.sequenceIndex++}else this.isSpecial=!
1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.s
tateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length)
{if(e===r.Gt||a(e)){var t=this.index-
this.currentSequence.length;if(this.sectionStart<t){var
n=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=n}return
this.isSpecial=!1,this.sectionStart=t+2,void
this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|
e)===this.currentSequence[this.sequenceIndex]?
this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===l.TitleEnd?
this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(r.Lt
)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===r.Lt)},e.prototype.stateCDA
TASequence=function(e){e===l.Cdata[this.sequenceIndex]?+
+this.sequenceIndex===l.Cdata.length&&(this.state=i.InCommentLike,this.currentSeque
nce=l.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):
(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},e.pro
totype.fastForwardTo=function(e){for(;+
+this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-
this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!
1},e.prototype.stateInCommentLike=function(e)
{e===this.currentSequence[this.sequenceIndex]?+
+this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===l.CdataE
nd?
this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionSta
rt,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.T
ext):0===this.sequenceIndex?
this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!
==this.currentSequence[this.sequenceIndex-
1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return
this.xmlMode?!c(e):function(e){return e>=r.LowerA&&e<=r.LowerZ||
e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t)
{this.isSpecial=!
0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.
prototype.stateBeforeTagName=function(e)
{if(e===r.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.ind
ex+1;else
if(e===r.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.i
ndex+1;else if(this.isTagStartChar(e)){var t=32|
e;this.sectionStart=this.index,this.xmlMode||t!==l.TitleEnd[2]?
this.state=this.xmlMode||t!==l.ScriptEnd[2]?
i.InTagName:i.BeforeSpecialS:this.startSpecial(l.TitleEnd,3)}else e===r.Slash?
this.state=i.BeforeClosingTagName:
(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e)
{c(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-
1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.s
tateBeforeClosingTagName=function(e){a(e)||(e===r.Gt?this.state=i.Text:
(this.state=this.isTagStartChar(e)?
i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.s
tateInClosingTagName=function(e){(e===r.Gt||
a(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-
1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.s
tateAfterClosingTagName=function(e){(e===r.Gt||
this.fastForwardTo(r.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionSta
rt=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?
(this.cbs.onopentagend(this.index),this.isSpecial?
(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=t
his.state,this.sectionStart=this.index+1):e===r.Slash?
this.state=i.InSelfClosingTag:a(e)||
(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSel
fClosingTag=function(e){e===r.Gt?
(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this
.sectionStart=this.index+1,this.isSpecial=!1):a(e)||
(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.st
ateInAttributeName=function(e){(e===r.Eq||
c(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-
1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.sta
teAfterAttributeName=function(e){e===r.Eq?
this.state=i.BeforeAttributeValue:e===r.Slash||e===r.Gt?
(this.cbs.onattribend(o.NoValue,this.index),this.state=i.BeforeAttributeName,this.s
tateBeforeAttributeName(e)):a(e)||
(this.cbs.onattribend(o.NoValue,this.index),this.state=i.InAttributeName,this.secti
onStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e)
{e===r.DoubleQuote?
(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?
(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):a(e)||
(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttribute
ValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!
this.decodeEntities&&this.fastForwardTo(t)?
(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-
1,this.cbs.onattribend(t===r.DoubleQuote?
o.Double:o.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities
&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.sta
teInAttributeValueDoubleQuotes=function(e)
{this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSin
gleQuotes=function(e)
{this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQ
uotes=function(e){a(e)||e===r.Gt?
(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-
1,this.cbs.onattribend(o.Unquoted,this.index),this.state=i.BeforeAttributeName,this
.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.
state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e)
{e===r.OpeningSquareBracket?
(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?
i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e)
{(e===r.Gt||
this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),th
is.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstr
uction=function(e){(e===r.Gt||
this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this
.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeC
omment=function(e){e===r.Dash?
(this.state=i.InCommentLike,this.currentSequence=l.CommentEnd,this.sequenceIndex=2,
this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpec
ialComment=function(e){(e===r.Gt||
this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this
.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=func
tion(e){var t=32|e;t===l.ScriptEnd[3]?
this.startSpecial(l.ScriptEnd,4):t===l.StyleEnd[3]?this.startSpecial(l.StyleEnd,4):
(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=func
tion(e){this.entityExcess=1,this.entityResult=0,e===r.Number?
this.state=i.BeforeNumericEntity:e===r.Amp||
(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,th
is.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e)
{if(this.entityExcess+=1,this.trieIndex=(0,s.determineBranch)
(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return
this.emitNamedEntity(),void
this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var
t=this.trieCurrent&s.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-
1;if(this.allowLegacyEntity()||e===r.Semi){var i=this.index-
this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this
.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStar
t=this.index+1,0===n&&this.emitNamedEntity()}else
this.trieIndex+=n}},e.prototype.emitNamedEntity=function()
{if(this.state=this.baseState,0!
==this.entityResult)switch((this.entityTrie[this.entityResult]&s.BinTrieFlags.VALUE
_LENGTH)>>14){case
1:this.emitCodePoint(this.entityTrie[this.entityResult]&~s.BinTrieFlags.VALUE_LENGT
H);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case
3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.
entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e)
{(32|e)===r.LowerX?(this.entityExcess++,this.state=i.InHexEntity):
(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumeri
cEntity=function(e){var t=this.index-this.entityExcess-
1;t+2+Number(this.state===i.InHexEntity)!
==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sect
ionStart=this.index+Number(e),this.emitCodePoint((0,s.replaceCodePoint)
(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=f
unction(e){e===r.Semi?this.emitNumericEntity(!0):u(e)?
(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):
(this.allowLegacyEntity()?this.emitNumericEntity(!
1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e
){e===r.Semi?this.emitNumericEntity(!0):u(e)?
(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):function(e)
{return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?
(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++):
(this.allowLegacyEntity()?this.emitNumericEntity(!
1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(
){return!this.xmlMode&&(this.baseSta
te===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function()
{this.running&&this.sectionStart!==this.index&&(this.state===i.Text||
this.state===i.InSpecialTag&&0===this.sequenceIndex?
(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.s
tate!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!
==i.InAttributeValueNq||
(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))
},e.prototype.shouldContinue=function(){return
this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function
(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-
this.offset);switch(this.state){case i.Text:this.stateText(e);break;case
i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case
i.InSpecialTag:this.stateInSpecialTag(e);break;case
i.CDATASequence:this.stateCDATASequence(e);break;case
i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case
i.InAttributeName:this.stateInAttributeName(e);break;case
i.InCommentLike:this.stateInCommentLike(e);break;case
i.InSpecialComment:this.stateInSpecialComment(e);break;case
i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case
i.InTagName:this.stateInTagName(e);break;case
i.InClosingTagName:this.stateInClosingTagName(e);break;case
i.BeforeTagName:this.stateBeforeTagName(e);break;case
i.AfterAttributeName:this.stateAfterAttributeName(e);break;case
i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case
i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case
i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case
i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case
i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case
i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case
i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case
i.InDeclaration:this.stateInDeclaration(e);break;case
i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case
i.BeforeComment:this.stateBeforeComment(e);break;case
i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case
i.InNamedEntity:this.stateInNamedEntity(e);break;case
i.BeforeEntity:this.stateBeforeEntity(e);break;case
i.InHexEntity:this.stateInHexEntity(e);break;case
i.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumeri
cEntity(e)}this.index++}this.cleanup()},e.prototype.finish=function()
{this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&
&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=functio
n(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?
this.currentSequence===l.CdataEnd?
this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):t
his.state===i.InNumericEntity&&this.allowLegacyEntity()||
this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!
1):this.state===i.InTagName||this.state===i.BeforeAttributeName||
this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||
this.state===i.InAttributeName||this.state===i.InAttributeValueSq||
this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||
this.state===i.InClosingTagName||
this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t)
{this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?
this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function
(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?
this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}
();t.default=h},60883:function(e,t,n){"use strict";var
r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void
0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!
t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return
t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void
0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?
function(e,t){Object.defineProperty(e,"default",{enumerable:!
0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e)
{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!
==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return
i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.
parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var
a=n(75233),c=n(75233);Object.defineProperty(t,"Parser",{enumerable:!
0,get:function(){return c.Parser}});var u=n(79959),l=n(79959);function h(e,t){var
n=new u.DomHandler(void 0,t);return new a.Parser(n,t).end(e),n.root}function d(e,t)
{return h(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!
0,get:function(){return l.DomHandler}}),Object.defineProperty(t,"DefaultHandler",
{enumerable:!0,get:function(){return
l.DomHandler}}),t.parseDocument=h,t.parseDOM=d,t.createDomStream=function(e,t,n)
{var r=new u.DomHandler(e,t,n);return new a.Parser(r,t)};var
f=n(59636);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return
s(f).default}}),t.ElementType=o(n(34821));var
p=n(64622),g=n(64622);Object.defineProperty(t,"getFeed",{enumerable:!
0,get:function(){return g.getFeed}});var m={xmlMode:!0};t.parseFeed=function(e,t)
{return void 0===t&&(t=m),(0,p.getFeed)(d(e,t))},t.DomUtils=o(n(64622))},35767:
(e,t,n)=>{"use strict";function r(e){return 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},r(e)}function i(e){var t=function(e,t)
{if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var
i=n.call(e,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive
must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?
t:t+""}function o(e,t){for(var n=0;n<t.length;n++){var
r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!
0),Object.defineProperty(e,i(r.key),r)}}n.r(t),n.d(t,{default:()=>l});var
s=[],a=s.forEach,c=s.slice;function u(e,t,n,r){var i=e.read.bind(e);if(2!
==i.length)i(t,n,r);else try{var o=i(t,n);o&&"function"==typeof o.then?
o.then((function(e){return r(null,e)})).catch(r):r(null,o)}catch(e){r(e)}}var
l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!
function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a
function")}
(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}var
t,n;return t=e,n=[{key:"init",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{};this.services=e,this.options=function(e){return a.call(c.call(arguments,1),
(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(n,this.options||
{},{handleEmptyResourcesAsFailed:!
0,cacheHitMode:"none"}),this.allOptions=r,this.options.backends&&this.options.backe
nds.forEach((function(n,i){var o;t.backends[i]=t.backends[i]||
((o=n)?"function"==typeof o?new
o:o:null),t.backends[i].init(e,t.options.backendOptions&&t.options.backendOptions[i
]||{},r)})),this.services&&this.options.reloadInterval&&setInterval((function()
{return t.reload()}),this.options.reloadInterval)}},
{key:"read",value:function(e,t,n){var r=this,i=this.backends.length,o=function
n(i,o){if(!(i<0)){var s=r.backends[i];s.save?(s.save(e,t,o),n(i-1,o)):n(i-1,o)}};!
function s(a){if(a>=i)return n(new Error("non of the backend loaded data",!0));var
c=a===i-1,l=r.options.handleEmptyResourcesAsFailed&&!c?0:-1,h=r.backends[a];h.read?
u(h,e,t,(function(i,c,d){if(!i&&c&&Object.keys(c).length>l){if(n(null,c,a),o(a-
1,c),h.save&&r.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(r.
options.cacheHitMode)>-1)
{if(d&&r.options.refreshExpirationTime&&d+r.options.refreshExpirationTime>Date.now(
))return;var f=r.backends[a+1];f&&f.read&&u(f,e,t,(function(n,i){n||
i&&(Object.keys(i).length<=l||
(o(a,i),"refreshAndUpdateStore"===r.options.cacheHitMode&&r.services&&r.services.re
sourceStore&&r.services.resourceStore.addResourceBundle(e,t,i)))}))}}else
s(a+1)})):s(a+1)}(0)}},{key:"create",value:function(e,t,n,r){var
i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function()
{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:
{};this.backends.forEach((function(s){if(s.create){var
a=s.create.bind(s);if(a.length<6)try{var c;(c=5===a.length?
a(e,t,n,r,o):a(e,t,n,r))&&"function"==typeof c.then?c.then((function(e){return
i(null,e)})).catch(i):i(null,c)}catch(e){i(e)}else a(e,t,n,r,i,o)}}))}},
{key:"reload",value:function(){var
e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.langua
ge;if(!o||"cimode"!==o.toLowerCase()){var s=[],a=function(e)
{r.toResolveHierarchy(e).forEach((function(e)
{s.indexOf(e)<0&&s.push(e)}))};a(o),this.allOptions.preload&&this.allOptions.preloa
d.forEach((function(e){return a(e)})),s.forEach((function(t)
{e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,o)
{r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!
r&&o&&i.log("loaded namespace ".concat(e," for language
").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)}))}))}))}}}],n&&o(t.protot
ype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}
();l.type="backend"},50356:e=>{"use strict";const t={type:"logger",log(e)
{this.output("log",e)},warn(e){this.output("warn",e)},error(e)
{this.output("error",e)},output(e,t)
{console&&console[e]&&console[e].apply(console,t)}};class n{constructor(e){let
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e)
{let
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};this.prefix=n.prefix||"i18next:",this.logger=e||
t,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,t=new
Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn()
{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return
this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new
Array(e),n=0;n<e;n++)t[n]=arguments[n];return
this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new
Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING
DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof
e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new
n(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e)
{return(e=e||this.options).prefix=e.prefix||this.prefix,new n(this.logger,e)}}var
r=new n;class i{constructor(){this.observers={}}on(e,t){return e.split("
").forEach((e=>{this.observers[e]=this.observers[e]||
[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?
this.observers[e]=this.observers[e].filter((e=>e!==t)):delete
this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-
1:0),r=1;r<t;r++)n[r-
1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((e=>{e(...n
)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((t=>{t.apply(t,
[e,...n])}))}}function o(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return
n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function a(e,t,n)
{function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i()
{return!e||"string"==typeof e}const o="string"!=typeof t?
[].concat(t):t.split(".");for(;o.length>1;){if(i())return{};const t=r(o.shift());!
e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return
i()?{}:{obj:e,k:r(o.shift())}}function c(e,t,n)
{const{obj:r,k:i}=a(e,t,Object);r[i]=n}function u(e,t)
{const{obj:n,k:r}=a(e,t);if(n)return n[r]}function l(e,t,n){for(const r in
t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof
String||"string"==typeof t[r]||t[r]instanceof String?
n&&(e[r]=t[r]):l(e[r],t[r],n):e[r]=t[r]);return e}function h(e){return
e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var
d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};functio
n f(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>d[e])):e}const p=["
",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let
i=e;for(let e=0;e<r.length;++e){if(!i)return;if("string"==typeof
i[r[e]]&&e+1<r.length)return;if(void 0===i[r[e]]){let
o=2,s=r.slice(e,e+o).join(n),a=i[s];for(;void 0===a&&r.length>e+o;)o+
+,s=r.slice(e,e+o).join(n),a=i[s];if(void 0===a)return;if(null===a)return
null;if(t.endsWith(s)){if("string"==typeof a)return a;if(s&&"string"==typeof
a[s])return a[s]}const c=r.slice(e+o).join(n);return c?g(a,c,n):void
0}i=i[r[e]]}return i}function m(e){return e&&e.indexOf("_")>0?
e.replace("_","-"):e}class v extends i{constructor(e){let
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:
["translation"],defaultNS:"translation"};super(),this.data=e||
{},this.options=t,void
0===this.options.keySeparator&&(this.options.keySeparator="."),void
0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!
0)}addNamespaces(e)
{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const
t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n)
{let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!
==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!
==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let
s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof
n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."));const
a=u(this.data,s);return a||!o||"string"!=typeof n?
a:g(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let
i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void
0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let
s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-
1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),c(this.data,s,r),i.silent||
this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!
==arguments[3]?arguments[3]:{silent:!1};for(const r in n)"string"!=typeof
n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||
this.addResource(e,t,r,n[r],{silent:!0});r.silent||
this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let
o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!
1},s=[e,t];e.indexOf(".")>-
1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=u(this.data,s)||
{};r?l(a,n,i):a={...a,...n},c(this.data,s,a),o.silent||
this.emit("added",e,t,n)}removeResourceBundle(e,t)
{this.hasResourceBundle(e,t)&&delete this.data[e]
[t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return
void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||
(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?
{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return
this.data[e]}hasLanguageSomeTranslations(e){const
t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||
[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var
b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i)
{return
e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};c
onst y={};class w extends i{constructor(e){let t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};var n,i;super(),n=e,i=this,
["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"
,"i18nFormat","utils"].forEach((e=>{n[e]&&(i[e]=n[e])})),this.options=t,void
0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=r.create
("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:
{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!
==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?
t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!
==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||
this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,s=!
(this.options.userDefinedKeySeparator||t.keySeparator||
this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n)
{t=t||"",n=n||"";const
r=p.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const
i=new RegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o)
{const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}
(e,n,r));if(o&&!s){const
t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces
:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-
1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),
{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof
t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslati
onOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||
(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!
==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!
==t.keySeparator?t.keySeparator:this.options.keySeparator,
{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],c=t.lng||
this.language,u=t.appendNamespaceToCIMode||
this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const
e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${a}${e}$
{o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a}:`${a}${e}${o}`}return r?
{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a}:o}const l=this.resolve(e,t);let
h=l&&l.res;const d=l&&l.usedKey||o,f=l&&l.exactUsedKey||
o,p=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?
t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||
this.i18nFormat.handleAsObject;if(m&&h&&"string"!=typeof h&&"boolean"!=typeof
h&&"number"!=typeof h&&["[object Number]","[object Function]","[object
RegExp]"].indexOf(p)<0&&("string"!=typeof g||"[object Array]"!==p)){if(!
t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||
this.logger.warn("accessing an object - but returnObjects options is not
enabled!");const e=this.options.returnedObjectHandler?
this.options.returnedObjectHandler(d,h,{...t,ns:s}):`key '${o} (${this.language})'
returned an object instead of string.`;return r?(l.res=e,l):e}if(i){const
e="[object Array]"===p,n=e?[]:{},r=e?f:d;for(const e in
h)if(Object.prototype.hasOwnProperty.call(h,e)){const o=`${r}${i}$
{e}`;n[e]=this.translate(o,{...t,joinArrays:!
1,ns:s}),n[e]===o&&(n[e]=h[e])}h=n}}else if(m&&"string"==typeof g&&"[object
Array]"===p)h=h.join(g),h&&(h=this.extendTranslation(h,e,t,n));else{let r=!1,s=!
1;const u=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),f=u?
this.pluralResolver.getSuffix(c,t.count,t):"",p=t.ordinal&&u?
this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||
t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(h)&&d&&(r=!
0,h=g),this.isValidLookup(h)||(s=!0,h=o);const
m=(t.missingKeyNoValueFallbackToKey||
this.options.missingKeyNoValueFallbackToKey)&&s?void 0:h,v=d&&g!
==h&&this.options.updateMissing;if(s||r||v)
{if(this.logger.log(v?"updateKey":"missingKey",c,a,o,v?g:h),i){const
e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the
loaded translations were in flat JSON format instead of nested. Either set
keySeparator: false on init or make sure your translations are published in nested
format.")}let e=[];const
n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||
this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let
t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?
e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||
this.language);const r=(e,n,r)=>{const i=d&&r!==h?
r:m;this.options.missingKeyHandler?
this.options.missingKeyHandler(e,a,n,i,v,t):this.backendConnector&&this.backendConn
ector.saveMissing&&this.backendConnector.saveMissing(e,a,n,i,v,t),this.emit("missin
gKey",e,a,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?
e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],o+n,t[`defau
ltValue${n}`]||
g)}))})):r(e,o,g))}h=this.extendTranslation(h,e,t,l,n),s&&h===o&&this.options.appen
dNamespaceToMissingKey&&(h=`${a}:${o}`),(s||
r)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?
this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:
${o}`:o,r?h:void 0):this.options.parseMissingKeyHandler(h))}return r?
(l.res=h,l):h}extendTranslation(e,t,n,r,i){var
o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,
{...this.options.interpolation.defaultVariables,...n},r.usedLng,r.usedNS,r.usedKey,
{resolved:r});else if(!n.skipInterpolation)
{n.interpolation&&this.interpolator.init({...n,interpolation:
{...this.options.interpolation,...n.interpolation}});const s="string"==typeof
e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?
n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let
a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let
c=n.replace&&"string"!=typeof n.replace?
n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.int
erpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||
this.language,n),s){const
t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!
n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!
==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new
Array(e),s=0;s<e;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?
(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: $
{t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()
}const s=n.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return
null!=e&&a&&a.length&&!1!
==n.applyPostProcessor&&(e=b.handle(a,e,t,this.options&&this.options.postProcessPas
sResolved?{i18nResolved:r,...n}:n,this)),e}resolve(e){let
t,n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return"string"==typeof
e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const
a=this.extractFromKey(e,s),c=a.key;n=c;let
u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const
l=void 0!==s.count&&"string"!=typeof s.count,h=l&&!
s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!
==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!
==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||
this.language,s.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!y[`$
{f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!
this.utils.hasLoadedNamespace(o)&&(y[`${f[0]}-${e}`]=!0,this.logger.warn(`key "$
{n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not
yet loaded`,"This means something IS WRONG in your setup. You access the t function
before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait
for the callback or Promise to resolve before accessing
it!!!")),f.forEach((n=>{if(this.isValidLookup(t))return;i=n;const
o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKe
ys(o,c,n,e,s);else{let e;l&&(e=this.pluralResolver.getSuffix(n,s.count,s));const
t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal$
{this.options.pluralSeparator}`;if(l&&(o.push(c+e),s.ordinal&&0===e.indexOf(r)&&o.p
ush(c+e.replace(r,this.options.pluralSeparator)),h&&o.push(c+t)),d){const n=`${c}$
{this.options.contextSeparator}$
{s.context}`;o.push(n),l&&(o.push(n+e),s.ordinal&&0===e.indexOf(r)&&o.push(n+e.repl
ace(r,this.options.pluralSeparator)),h&&o.push(n+t))}}let
a;for(;a=o.pop();)this.isValidLookup(t)||
(r=a,t=this.getResource(n,e,a,s))})))}))})),
{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void
0===e||!this.options.returnNull&&null===e||!
this.options.returnEmptyString&&""===e)}getResource(e,t,n){let
r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return
this.i18nFormat&&this.i18nFormat.getResource?
this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static
hasDefaultValue(e){for(const t in
e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&
&void 0!==e[t])return!0;return!1}}function _(e){return e.charAt(0).toUpperCase()
+e.slice(1)}class E{constructor(e)
{this.options=e,this.supportedLngs=this.options.supportedLngs||!
1,this.logger=r.create("languageUtils")}getScriptPartFromCode(e){if(!(e=m(e))||
e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:
(t.pop(),"x"===t[t.length-1].toLowerCase()?
null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!
(e=m(e))||e.indexOf("-")<0)return e;const t=e.split("-");return
this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof
e&&e.indexOf("-")>-1){const
t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return
this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?
(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-
1&&(n[1]=_(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].le
ngth&&(n[1]=n[1].toUpperCase()),"sgn"!
==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-
1&&(n[1]=_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-
1&&(n[2]=_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||
this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e)
{return("languageOnly"===this.options.load||
this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!
this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-
1}getBestMatchFromCodes(e){if(!e)return null;let t;return
e.forEach((e=>{if(t)return;const
n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||
(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const
n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return
t=n;t=this.options.supportedLngs.find((e=>e===n?
e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||
(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!
e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object
Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||
[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||
(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||
(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||
this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?
r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: $
{e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?
("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!
==this.options.load&&"currentOnly"!
==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!
==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof
e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLangua
geCode(e))})),r}}let S=[{lngs:
["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-
BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:
["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu",
"fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","m
ai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps"
,"pt-
PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:
[1,2],fc:2},{lngs:
["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su"
,"th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:
["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:
[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:
[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:
["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:
[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:
["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:
[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},
{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:
[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],T={1:function(e){return
Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return
0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e
%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e
%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?
1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?
1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e)
{return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?
3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?
2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return
Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?
2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e
%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?
1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e)
{return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e
%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?
0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?
2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||
e>10)&&e%10==0?2:3)}};const
A=["v1","v2","v3"],C=["v4"],O={zero:0,one:1,two:2,few:3,many:4,other:5};class
x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};this.languageUtils=e,this.options=t,this.logger=r.create("pluralResolver"),this.
options.compatibilityJSON&&!
C.includes(this.options.compatibilityJSON)||"undefined"!=typeof
Intl&&Intl.PluralRules||
(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not
to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the
compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return
S.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:T[t.fc]}}))})),e}
()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new
Intl.PluralRules(m(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return
this.rules[e]||
this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const
n=this.getRule(e,t);return this.shouldUseIntlApi()?
n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFor
msOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return
this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const
n=this.getRule(e,t);return n?this.shouldUseIntlApi()?
n.resolvedOptions().pluralCategories.sort(((e,t)=>O[e]-O[t])).map((e=>`$
{this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}$
{e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let
n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const
r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}$
{n.ordinal?`ordinal${this.options.prepend}`:""}$
{r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule
found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?
e.plurals(t):e.plurals(Math.abs(t));let
r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbe
rs[0]&&(2===r?r="plural":1===r&&(r=""));const
i=()=>this.options.prepend&&r.toString()?
this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibil
ityJSON?1===r?"":"number"==typeof r?`_plural_$
{r.toString()}`:i():"v2"===this.options.compatibilityJSON||
this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?
i():this.options.prepend&&n.toString()?
this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!
A.includes(this.options.compatibilityJSON)}}function I(e,t,n){let
r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!
(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const
r=u(e,n);return void 0!==r?r:u(t,n)}(e,t,n);return!o&&i&&"string"==typeof
n&&(o=g(e,n,r),void 0===o&&(o=g(t,n,r))),o}class P{constructor(){let
e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};this.logger=r.create("interpolator"),this.options=e,this.format=e.interpolation&
&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void
0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!
0});const t=e.interpolation;this.escape=void 0!==t.escape?
t.escape:f,this.escapeValue=void 0===t.escapeValue||
t.escapeValue,this.useRawValueToEscape=void 0!
==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?
h(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?
h(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?
t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.
unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||""
,this.nestingPrefix=t.nestingPrefix?h(t.nestingPrefix):t.nestingPrefixEscaped||
h("$t("),this.nestingSuffix=t.nestingSuffix?
h(t.nestingSuffix):t.nestingSuffixEscaped||
h(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?
t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxRepl
aces?t.maxReplaces:1e3,this.alwaysFormat=void 0!
==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset()
{this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)$
{this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}$
{this.unescapePrefix}(.+?)${this.unescapeSuffix}$
{this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}
(.+?)${this.nestingSuffix}`;this.nestingRegexp=new
RegExp(n,"g")}interpolate(e,t,n,r){let i,o,a;const
c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVaria
bles||{};function u(e){return e.replace(/\$/g,"$$$$")}const
l=e=>{if(e.indexOf(this.formatSeparator)<0){const
i=I(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return
this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const
i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).t
rim();return
this.format(I(t,c,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n
,{...r,...t,interpolationkey:o})};this.resetRegExp();const
h=r&&r.missingInterpolationHandler||
this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!
==r.interpolation.skipOnVariables?
r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{
regex:this.regexpUnescape,safeValue:e=>u(e)},
{regex:this.regexp,safeValue:e=>this.escapeValue?
u(this.escape(e)):u(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const
n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof h){const
t=h(e,i,r);o="string"==typeof t?t:""}else
if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d)
{o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for
interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||
(o=s(o));const c=t.safeValue(o);if(e=e.replace(i[0],c),d?
(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a+
+,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:{};function a(e,t){const
n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new
RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const
s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!
=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return
this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}$
{n}${o}`}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let
c=[];i={...o},i=i.replace&&"string"!=typeof i.replace?
i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!
==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const
e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),c=e,u=!
0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return
r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for
nesting ${e}`),r=""),u&&(r=c.reduce(((e,t)=>this.format(e,t,o.lng,
{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.la
stIndex=0}return e}}function D(e){const t={};return function(n,r,i){const
o=r+JSON.stringify(i);let s=t[o];return s||(s=e(r,i),t[o]=s),s(n)}}class
k{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};this.logger=r.create("formatter"),this.options=e,this.formats={number:D(((e,t)=>
{const n=new Intl.NumberFormat(e,{...t});return
e=>n.format(e)})),currency:D(((e,t)=>{const n=new Intl.NumberFormat(e,
{...t,style:"currency"});return e=>n.format(e)})),datetime:D(((e,t)=>{const n=new
Intl.DateTimeFormat(e,{...t});return
e=>n.format(e)})),relativetime:D(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,
{...t});return e=>n.format(e,t.range||"day")})),list:D(((e,t)=>{const n=new
Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const
t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:
{}}).interpolation;this.formatSeparator=t.formatSeparator?
t.formatSeparator:t.formatSeparator||","}add(e,t)
{this.formats[e.toLowerCase().trim()]=t}addCached(e,t)
{this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let
r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return
t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=f
unction(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const
r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-
1);"currency"===t&&i.indexOf(":")<0?n.currency||
(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||
(n.range=i.trim()):i.split(";").forEach((e=>{if(!
e)return;const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/
g,"");n[t.trim()]||(n[t.trim()]=i),"false"===i&&(n[t.trim()]=!
1),"true"===i&&(n[t.trim()]=!0),isNaN(i)||
(n[t.trim()]=parseInt(i,10))}))}return{formatName:t,formatOptions:n}}
(t);if(this.formats[i]){let t=e;try{const
s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||
r.locale||r.lng||n;t=this.formats[i](e,a,{...o,...r,...s})}catch(e)
{this.logger.warn(e)}return t}return this.logger.warn(`there was no format function
for ${i}`),e}),e)}}class R extends i{constructor(e,t,n){let
i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:
{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languag
eUtils,this.options=i,this.logger=r.create("backendConnector"),this.waitingReads=[]
,this.maxParallelReads=i.maxParallelReads||
10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?
i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?
i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&thi
s.backend.init(n,i.backend,i)}queueLoad(e,t,n,r){const i={},o={},s={},a={};return
e.forEach((e=>{let r=!0;t.forEach((t=>{const s=`${e}|${t}`;!
n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||
(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void
0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))})),r||
(s[e]=!0)})),(Object.keys(i).length||
Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).leng
th,loaded:{},errors:[],callback:r}),
{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoad
Namespaces:Object.keys(a)}}loaded(e,t,n){const
r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addR
esourceBundle(i,o,n),this.state[e]=t?-1:2;const s={};this.queue.forEach((n=>{!
function(e,t,n,r){const{obj:i,k:o}=a(e,t,Object);i[o]=i[o]||[],i[o].push(n)}
(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete
e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||
n.done||(Object.keys(n.loaded).forEach((e=>{s[e]||(s[e]={});const
t=n.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!
0)}))})),n.done=!0,n.errors.length?
n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.f
ilter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?
arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!
e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void
this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readin
gCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const
e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback
)}s&&a&&r<this.maxRetries?
setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(s,a)},a=this.backend[n
].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const
n=a(e,t);n&&"function"==typeof n.then?
n.then((e=>s(null,e))).catch(s):s(null,n)}catch(e){s(e)}}prepareLoading(e,t){let
n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?
arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added
via i18next.use. Will not load resources."),r&&r();"string"==typeof
e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const
i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||
r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n)
{this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!
0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void
0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r}
failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language $
{r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void
0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?
arguments[6]:
()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!
this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}"
as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your
setup. You access the t function before i18next.init / i18next.loadNamespace /
i18next.changeLanguage was done. Wait for the callback or Promise to resolve before
accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create)
{const
a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let
i;i=5===c.length?c(e,t,n,r,a):c(e,t,n,r),i&&"function"==typeof i.then?
i.then((e=>s(null,e))).catch(s):s(null,i)}catch(e){s(e)}else
c(e,t,n,r,s,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function M()
{return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:
["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!
1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!
0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partial
BundledLanguages:!1,saveMissing:!1,updateMissing:!
1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!
1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!
1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!
1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!
1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let
t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof
e[1]&&(t.defaultValue=e[1]),"string"==typeof
e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const
n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:
{escapeValue:!0,format:
(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nesting
Prefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVa
riables:!0}}}function N(e){return"string"==typeof
e.ns&&(e.ns=[e.ns]),"string"==typeof
e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof
e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexO
f("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L()
{}class F extends i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var
n;if(super(),this.options=N(e),this.services={},this.logger=r,this.modules={externa
l:
[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"funct
ion"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!
this.options.initImmediate)return
this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?
arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!
==t.defaultNS&&t.ns&&("string"==typeof t.ns?
t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const
i=M();function s(e){return e?"function"==typeof e?new
e:e:null}if(this.options={...i,...this.options,...N(t)},"v1"!
==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,..
.this.options.interpolation}),void 0!
==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!
==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!
this.options.isClone){let t;this.modules.logger?
r.init(s(this.modules.logger),this.options):r.init(null,this.options),this.modules.
formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=k);const n=new
E(this.options);this.store=new v(this.options.resources,this.options);const
o=this.services;o.logger=r,o.resourceStore=this.store,o.languageUtils=n,o.pluralRes
olver=new x(n,
{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJ
SON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||
this.options.interpolation.format&&this.options.interpolation.format!
==i.interpolation.format||
(o.formatter=s(t),o.formatter.init(o,this.options),this.options.interpolation.forma
t=o.formatter.format.bind(o.formatter)),o.interpolator=new
P(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.b
ackendConnector=new
R(s(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*"
,(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-
1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetecto
r=s(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init
(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=s(t
his.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator
=new w(this.services,this.options),this.translator.on("*",(function(t){for(var
n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-
1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init
(this)}))}if(this.format=this.options.interpolation.format,n||
(n=L),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng)
{const
e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0
&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||
this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is
defined"),
["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach
((t=>{this[t]=function(){return e.store[t](...arguments)}})),
["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((
t=>{this[t]=function(){return e.store[t](...arguments),e}}));const
a=o(),c=()=>{const e=(e,t)=>{this.isInitialized&&!
this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized.
You should call init just once!"),this.isInitialized=!0,this.options.isClone||
this.logger.log("initialized",this.options),this.emit("initialized",this.options),a
.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!
this.isInitialized)return
e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return
this.options.resources||!this.options.initImmediate?
c():setTimeout(c,0),a}loadResources(e){let t=arguments.length>1&&void
0!==arguments[1]?arguments[1]:L;const n="string"==typeof e?
e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||
this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return
t();const
e=[],r=t=>{t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{e.inde
xOf(t)<0&&e.push(t)}))};n?
r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach
((e=>r(e))),this.options.preload&&this.options.preload.forEach((e=>r(e))),this.serv
ices.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!
this.language||this.setResolvedLanguage(this.language),t(e)}))}else
t(null)}reloadResources(e,t,n){const r=o();return e||(e=this.languages),t||
(t=this.options.ns),n||(n=L),this.services.backendConnector.reload(e,t,
(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an
undefined module! Please check the object you are passing to i18next.use()");if(!
e.type)throw new Error("You are passing a wrong module! Please check the object you
are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),
("logger"===e.type||
e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this
.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"po
stProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.fo
rmatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLangu
age(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let
e=0;e<this.languages.length;e++){const t=this.languages[e];if(!
(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t))
{this.resolvedLanguage=t;break}}}changeLanguage(e,t){var
n=this;this.isLanguageChangingTo=e;const
r=o();this.emit("languageChanging",e);const
i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy
(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,o)=>{o?
(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void
0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLangu
ageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,
(function(){return n.t(...arguments)}))},a=t=>{e||t||!
this.services.languageDetector||(t=[]);const n="string"==typeof t?
t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||
i(n),this.translator.language||
this.translator.changeLanguage(n),this.services.languageDetector&&this.services.lan
guageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n
)),this.loadResources(n,(e=>{s(e,n)}))};return e||!this.services.languageDetector||
this.services.languageDetector.async?!
e&&this.services.languageDetector&&this.services.languageDetector.async?
0===this.services.languageDetector.detect.length?
this.services.languageDetector.detect().then(a):this.services.languageDetector.dete
ct(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var
r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var
s=arguments.length,a=new Array(s>2?s-2:0),c=2;c<s;c++)a[c-
2]=arguments[c];o=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else
o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||
i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const
u=r.options.keySeparator||".";let l;return l=o.keyPrefix&&Array.isArray(e)?
e.map((e=>`${o.keyPrefix}${u}${e}`)):o.keyPrefix?`${o.keyPrefix}${u}$
{e}`:e,r.t(l,o)};return"string"==typeof e?
i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return
this.translator&&this.translator.translate(...arguments)}exists(){return
this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e)
{this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};if(!this.isInitialized)return
this.logger.warn("hasLoadedNamespace: i18next was not
initialized",this.languages),!1;if(!this.languages||!this.languages.length)return
this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or
empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||
this.languages[0],r=!!
this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-
1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const
n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||
2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!
this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!
this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!
o(i,e)))}loadNamespaces(e,t){const n=o();return this.options.ns?("string"==typeof
e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),
this.loadResources((e=>{n.resolve(),t&&t(e)})),n):
(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=o();"string"==typeof
e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0));return
i.length?
(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n)
:(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||
(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!
e)return"rtl";const t=this.services&&this.services.languageUtils||new
E(M());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq
","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ar
s","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt"
,"pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","f
a","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>
-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return
new F(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?
arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:L;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const
r={...this.options,...e,isClone:!0},i=new F(r);return void 0===e.debug&&void
0===e.prefix||(i.logger=i.logger.clone(e)),
["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.se
rvices},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.st
ore=new v(this.store.data,r),i.services.resourceStore=i.store),i.translator=new
w(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new
Array(t>1?t-1:0),r=1;r<t;r++)n[r-
1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.b
ackendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}
toJSON()
{return{options:this.options,store:this.store,language:this.language,languages:this
.languages,resolvedLanguage:this.resolvedLanguage}}}const
j=F.createInstance();j.createInstance=F.createInstance,e.exports=j},62333:
(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,h=n?i-
1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=d,l-
=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+h],h+=d,l-=8);if(0===o)o=1-
u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-
1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-
1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||
0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):
(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+h>=1?
d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*c-
1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-
1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|
a,u+=i;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*g}},77906:e=>{var
t={}.toString;e.exports=Array.isArray||function(e){return"[object
Array]"==t.call(e)}},12405:(e,t,n)=>{e.exports=self.fetch||
(self.fetch=n(94677).default||n(94677))},75486:(e,t,n)=>{e.exports=function
e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var c=new
Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var
u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return i(t[s][1][e]||
e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s+
+)i(r[s]);return i}({1:[function(e,t,r){(function(e){"use strict";var
n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new
i(l),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function()
{a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in
e&&"onreadystatechange"in e.document.createElement("script")?function(){var
t=e.document.createElement("script");t.onreadystatechange=function()
{l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.docum
entElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new
e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var
u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]
();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!
==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},
{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var
o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function u(e){if("function"!
=typeof e)throw new TypeError("resolver must be a
function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function
l(e,t,n){this.promise=e,"function"==typeof
t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==type
of n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function
h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?
o.reject(e,new TypeError("Cannot resolve promise with
itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof
e||"function"==typeof e)&&"function"==typeof t)return function()
{t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!
0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=p((function()
{t(i,r)}));"error"===s.status&&r(s.value)}function p(e,t){var
n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return
n}t.exports=u,u.prototype.catch=function(e){return
this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof
e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new
this.constructor(i);return this.state!==c?h(n,this.state===a?
e:t,this.outcome):this.queue.push(new
l(n,e,t)),n},l.prototype.callFulfilled=function(e)
{o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e)
{h(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e)
{o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e)
{h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var
n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var
r=n.value;if(r)f(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;+
+i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t)
{e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;+
+n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e
instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new
this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!
==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an
array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new
Array(n),a=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i)
{t.resolve(e).then((function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(u,s))}),
(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object
Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must
be an array"));var n,r=e.length,s=!1;if(!r)return this.resolve([]);for(var a=-
1,c=new this(i);++a<r;)n=e[a],t.resolve(n).then((function(e){s||(s=!
0,o.resolve(c,e))}),(function(e){s||(s=!0,o.reject(c,e))}));return c}},{1:1}],3:
[function(e,t,r){(function(t){"use strict";"function"!=typeof
t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?
self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use
strict";var 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};var
i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!
=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof
mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return
OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}
();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i)
{if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?
BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof
MozBlobBuilder?
MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return
n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var s=Promise;function a(e,t)
{t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function c(e,t,n)
{"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e)
{return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a
string."),e=String(e)),e}function l(){if(arguments.length&&"function"==typeof
arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-
forage-detect-blob-support",d=void
0,f={},p=Object.prototype.toString,g="readonly",m="readwrite";function v(e){for(var
t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i+
+)r[i]=e.charCodeAt(i);return n}function b(e){return"boolean"==typeof d?
s.resolve(d):function(e){return new s((function(t){var
n=e.transaction(h,m),r=o([""]);n.objectStore(h).put(r,"key"),n.onabort=function(e)
{e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var
e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/
Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}
(e).then((function(e){return d=e}))}function y(e){var
t=f[e.name],n={};n.promise=new s((function(e,t)
{n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?
t.dbReady=t.dbReady.then((function(){return
n.promise})):t.dbReady=n.promise}function w(e){var
t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function
_(e,t){var n=f[e.name].deferredOperations.pop();if(n)return
n.reject(t),n.promise}function E(e,t){return new s((function(n,r)
{if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:
[]},e.db){if(!t)return n(e.db);y(e),e.db.close()}var
o=[e.name];t&&o.push(e.version);var
s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var
n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStor
e(h)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database
"'+e.name+'" has been upgraded from version '+t.oldVersion+" to version
"+t.newVersion+', but the storage "'+e.storeName+'" already
exists.')}}),s.onerror=function(e)
{e.preventDefault(),r(s.error)},s.onsuccess=function(){var
t=s.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}}))}function
S(e){return E(e,!1)}function T(e){return E(e,!0)}function A(e,t){if(!e.db)return!
0;var n=!
e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.
db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be
downgraded from version "+e.db.version+" to version
"+e.version+"."),e.version=e.db.version),i||n){if(n){var
o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function C(e){return
o([v(atob(e.data))],{type:e.type})}function O(e){return
e&&e.__local_forage_encoded_blob}function x(e){var
t=this,n=t._initReady().then((function(){var
e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(n,e,e),n}function
I(e,t,n,r){void 0===r&&(r=1);try{var
i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!
e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return
s.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!
e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return
e.db&&(e.version=e.db.version+1),T(e)})).then((function(){return function(e)
{y(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var
i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return
e.db=null,S(e).then((function(t){return e.db=t,A(e)?T(e):t})).then((function(r)
{e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t)
{throw _(e,t),t}))}(e).then((function(){I(e,t,n,r-1)}))})).catch(n);n(i)}}var
P={_driver:"asyncStorage",_initStorage:function(e){var
t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(i={forages:
[],db:null,dbReady:null,deferredOperations:
[]},f[n.name]=i),i.forages.push(t),t._initReady||
(t._initReady=t.ready,t.ready=x);var o=[];function a(){return s.resolve()}for(var
c=0;c<i.forages.length;c++){var u=i.forages[c];u!
==t&&o.push(u._initReady().catch(a))}var l=i.forages.slice(0);return
s.all(o).then((function(){return n.db=i.db,S(n)})).then((function(e){return
n.db=e,A(n,t._defaultConfig.version)?T(n):e})).then((function(e)
{n.db=i.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var o=l[r];o!
==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function()
{try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|
iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/
Chrome/.test(navigator.userAgent)&&!/
BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!
==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof
indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}
(),iterate:function(e,t){var n=this,r=new s((function(t,r)
{n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var
s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var
n=s.result;if(n){var r=n.value;O(r)&&(r=C(r));var i=e(r,n.key,a++);void 0!==i?
t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e)
{r(e)}}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var
n=this;e=u(e);var r=new s((function(t,r){n.ready().then((function(){I(n._dbInfo,g,
(function(i,o){if(i)return r(i);try{var
s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var
e=s.result;void 0===e&&(e=null),O(e)&&(e=C(e)),t(e)},s.onerror=function()
{r(s.error)}}catch(e){r(e)}}))})).catch(r)}));return
a(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new s((function(n,i){var
o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?
b(o.db).then((function(e){return e?t:(n=t,new s((function(e,t){var r=new
FileReader;r.onerror=t,r.onloadend=function(t){var
r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!
0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t)
{I(r._dbInfo,m,(function(o,s){if(o)return i(o);try{var
a=s.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var
c=a.put(t,e);s.oncomplete=function(){void
0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){var e=c.error?
c.error:c.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return
a(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new s((function(t,r)
{n.ready().then((function(){I(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var
s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function()
{t()},o.onerror=function(){r(s.error)},o.onabort=function(){var e=s.error?
s.error:s.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return
a(r,t),r},clear:function(e){var t=this,n=new s((function(e,n)
{t.ready().then((function(){I(t._dbInfo,m,(function(r,i){if(r)return
n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function()
{e()},i.onabort=i.onerror=function(){var e=o.error?
o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return
a(n,e),n},length:function(e){var t=this,n=new s((function(e,n)
{t.ready().then((function(){I(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var
o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function()
{e(o.result)},o.onerror=function(){n(o.error)}}catch(e)
{n(e)}}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new
s((function(t,r){e<0?t(null):n.ready().then((function(){I(n._dbInfo,g,
(function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName),a=!
1,c=s.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||a?t(n.key):
(a=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e)
{r(e)}}))})).catch(r)}));return a(r,t),r},keys:function(e){var t=this,n=new
s((function(e,n){t.ready().then((function(){I(t._dbInfo,g,(function(r,i)
{if(r)return n(r);try{var
o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];o.onsuccess=function()
{var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function()
{n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return
a(n,e),n},dropInstance:function(e,t){t=l.apply(this,arguments);var
n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||
r.name,e.storeName=e.storeName||r.storeName),e.name){var
o=e.name===r.name&&this._dbInfo.db?
s.resolve(this._dbInfo.db):S(e).then((function(t){var
n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return
t}));n=e.storeName?o.then((function(t){if(t.objectStoreNames.contains(e.storeName))
{var n=t.version+1;y(e);var r=f[e.name],o=r.forages;t.close();for(var
a=0;a<o.length;a++){var c=o[a];c._dbInfo.db=null,c._dbInfo.version=n}var u=new
s((function(t,r){var o=i.open(e.name,n);o.onerror=function(e)
{o.result.close(),r(e)},o.onupgradeneeded=function()
{o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var
e=o.result;e.close(),t(e)}}));return u.then((function(e){r.db=e;for(var
t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,w(n._dbInfo)}})).catch((function(t)
{throw(_(e,t)||s.resolve()).catch((function(){})),t}))}})):o.then((function(t)
{y(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o+
+)r[o]._dbInfo.db=null;var a=new s((function(t,n){var
r=i.deleteDatabase(e.name);r.onerror=function(){var
e=r.result;e&&e.close(),n(r.error)},r.onblocked=function()
{console.warn('dropInstance blocked for database "'+e.name+'" until all open
connections are closed')},r.onsuccess=function(){var
e=r.result;e&&e.close(),t(e)}}));return a.then((function(e){n.db=e;for(var
t=0;t<r.length;t++)w(r[t]._dbInfo)})).catch((function(t){throw(_(e,t)||
s.resolve()).catch((function(){})),t}))}))}else n=s.reject("Invalid
arguments");return a(n,t),n}};var
D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=/
^~~local_forage_type~([^~]
+)~/,R="__lfsc__:",M="arbf",N="blob",L="si08",F="ui08",j="uic8",B="si16",U="si32",H
="ur16",G="ui32",z="fl32",V="fl64",W=Object.prototype.toString;function q(e){var
t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-
2]&&s--);var u=new ArrayBuffer(s),l=new
Uint8Array(u);for(t=0;t<a;t+=4)n=D.indexOf(e[t]),r=D.indexOf(e[t+1]),i=D.indexOf(e[
t+2]),o=D.indexOf(e[t+3]),l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|
63&o;return u}function K(e){var t,n=new
Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=D[n[t]>>2],r+=D[(3&n[t])<<4|
n[t+1]>>4],r+=D[(15&n[t+1])<<2|n[t+2]>>6],r+=D[63&n[t+2]];return n.length%3==2?
r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-
2)+"=="),r}var Y={serialize:function(e,t){var n="";if(e&&(n=W.call(e)),e&&("[object
ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===W.call(e.buffer))){var
r,i=R;e instanceof ArrayBuffer?(r=e,i+=M):(r=e.buffer,"[object Int8Array]"===n?
i+=L:"[object Uint8Array]"===n?i+=F:"[object Uint8ClampedArray]"===n?i+=j:"[object
Int16Array]"===n?i+=B:"[object Uint16Array]"===n?i+=H:"[object Int32Array]"===n?
i+=U:"[object Uint32Array]"===n?i+=G:"[object Float32Array]"===n?i+=z:"[object
Float64Array]"===n?i+=V:t(new Error("Failed to get type for
BinaryArray"))),t(i+K(r))}else if("[object Blob]"===n){var o=new
FileReader;o.onload=function(){var
n="~~local_forage_type~"+e.type+"~"+K(this.result);t(R+N+n)},o.readAsArrayBuffer(e)
}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into
a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!
==R)return JSON.parse(e);var
t,n=e.substring(13),r=e.substring(9,13);if(r===N&&k.test(n)){var
i=n.match(k);t=i[1],n=n.substring(i[0].length)}var s=q(n);switch(r){case M:return
s;case N:return o([s],{type:t});case L:return new Int8Array(s);case F:return new
Uint8Array(s);case j:return new Uint8ClampedArray(s);case B:return new
Int16Array(s);case H:return new Uint16Array(s);case U:return new Int32Array(s);case
G:return new Uint32Array(s);case z:return new Float32Array(s);case V:return new
Float64Array(s);default:throw new Error("Unkown type:
"+r)}},stringToBuffer:q,bufferToString:K};function $(e,t,n,r){e.executeSql("CREATE
TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",
[],n,r)}function Q(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,s)
{s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE
type='table' AND name = ?",[t.storeName],(function(e,a){a.rows.length?o(e,s):$(e,t,
(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,s)}),o)}function X(e,t,n,r){var
i=this;e=u(e);var o=new s((function(o,s){i.ready().then((function(){void
0===t&&(t=null);var a=t,c=i._dbInfo;c.serializer.serialize(t,(function(t,u){u?
s(u):c.db.transaction((function(n){Q(n,c,"INSERT OR REPLACE INTO "+c.storeName+"
(key, value) VALUES (?, ?)",[e,t],(function(){o(a)}),(function(e,t){s(t)}))}),
(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(X.apply(i,[e,a,n,r-
1]));s(t)}}))}))})).catch(s)}));return a(o,n),o}var
Z={_driver:"webSQLStorage",_initStorage:function(e){var
t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?
e[r].toString():e[r];var i=new s((function(e,r)
{try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e)
{return r(e)}n.db.transaction((function(i){$(i,n,(function(){t._dbInfo=n,e()}),
(function(e,t){r(t)}))}),r)}));return n.serializer=Y,i},_support:"function"==typeof
openDatabase,iterate:function(e,t){var n=this,r=new s((function(t,r)
{n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n)
{Q(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var
o=r.rows,s=o.length,a=0;a<s;a++){var
c=o.item(a),u=c.value;if(u&&(u=i.serializer.deserialize(u)),void 0!
==(u=e(u,c.key,a+1)))return void t(u)}t()}),(function(e,t)
{r(t)}))}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var
n=this;e=u(e);var r=new s((function(t,r){n.ready().then((function(){var
i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"SELECT * FROM "+i.storeName+"
WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?
n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t)
{r(t)}))}))})).catch(r)}));return a(r,t),r},setItem:function(e,t,n){return
X.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new
s((function(t,r){n.ready().then((function(){var
i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"DELETE FROM "+i.storeName+" WHERE
key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return
a(r,t),r},clear:function(e){var t=this,n=new s((function(e,n)
{t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t)
{Q(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t)
{n(t)}))}))})).catch(n)}));return a(n,e),n},length:function(e){var t=this,n=new
s((function(e,n){t.ready().then((function(){var
r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"SELECT COUNT(key) as c FROM
"+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t)
{n(t)}))}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new
s((function(t,r){n.ready().then((function(){var
i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"SELECT key FROM "+i.storeName+"
WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?
n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return
a(r,t),r},keys:function(e){var t=this,n=new s((function(e,n)
{t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t)
{Q(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var
r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t)
{n(t)}))}))})).catch(n)}));return a(n,e),n},dropInstance:function(e,t)
{t=l.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||
{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var
r,i=this;return a(r=e.name?new s((function(t){var r;r=e.name===n.name?
i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:
[e.storeName]}):t(function(e){return new s((function(t,n)
{e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE
type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var
i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),
(function(e,t){n(t)}))}),(function(e){n(e)}))}))}(r))})).then((function(e){return
new s((function(t,n){e.db.transaction((function(r){function i(e){return new
s((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),
(function(e,t){n(t)}))}))}for(var o=[],a=0,c=e.storeNames.length;a<c;a+
+)o.push(i(e.storeNames[a]));s.all(o).then((function(){t()})).catch((function(e)
{n(e)}))}),(function(e){n(e)}))}))})):s.reject("Invalid arguments"),t),r}};function
J(e,t){var n=e.name+"/";return e.storeName!
==t.storeName&&(n+=e.storeName+"/"),n}function ee(){return!function(){var
e="_localforage_support_test";try{return
localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||
localStorage.length>0}var
te={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n
in e)t[n]=e[n];return t.keyPrefix=J(e,this._defaultConfig),ee()?
(this._dbInfo=t,t.serializer=Y,s.resolve()):s.reject()},_support:function()
{try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!
localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var
n=this,r=n.ready().then((function(){for(var
t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a<o;a++){var
c=localStorage.key(a);if(0===c.indexOf(r)){var
u=localStorage.getItem(c);if(u&&(u=t.serializer.deserialize(u)),void 0!
==(u=e(u,c.substring(i),s++)))return u}}}));return a(r,t),r},getItem:function(e,t)
{var n=this;e=u(e);var r=n.ready().then((function(){var
t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return
r&&(r=t.serializer.deserialize(r)),r}));return a(r,t),r},setItem:function(e,t,n)
{var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var
n=t;return new s((function(i,o){var s=r._dbInfo;s.serializer.serialize(t,
(function(t,r){if(r)o(r);else
try{localStorage.setItem(s.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!
==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return
a(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var
r=n.ready().then((function(){var
t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return
a(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var
e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var
r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return
a(n,e),n},length:function(e){var t=this.keys().then((function(e){return
e.length}));return a(t,e),t},key:function(e,t){var
n=this,r=n.ready().then((function(){var
t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return
t&&(t=t.substring(r.keyPrefix.length)),t}));return a(r,t),r},keys:function(e){var
t=this,n=t.ready().then((function(){for(var
e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var
o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.le
ngth))}return r}));return a(n,e),n},dropInstance:function(e,t)
{if(t=l.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var
n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var
r,i=this;return r=e.name?new s((function(t){e.storeName?
t(J(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var
t=localStorage.length-1;t>=0;t--){var
n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("In
valid arguments"),a(r,t),r}},ne=function(e,t){for(var n=e.length,r=0;r<n;)
{if((i=e[r])===(o=t)||"number"==typeof i&&"number"==typeof
o&&isNaN(i)&&isNaN(o))return!0;r++}var i,o;return!1},re=Array.isArray||function(e)
{return"[object
Array]"===Object.prototype.toString.call(e)},ie={},oe={},se={INDEXEDDB:P,WEBSQL:Z,L
OCALSTORAGE:te},ae=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver]
,ce=["dropInstance"],ue=["clear","getItem","iterate","key","keys","length","removeI
tem","setItem"].concat(ce),le={description:"",driver:ae.slice(),name:"localforage",
size:4980736,storeName:"keyvaluepairs",version:1};function he(e,t){e[t]=function()
{var n=arguments;return e.ready().then((function(){return
e[t].apply(e,n)}))}}function de(){for(var e=1;e<arguments.length;e++){var
t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(re(t[n])?arguments[0]
[n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var fe=function()
{function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new
TypeError("Cannot call a class as a function")}(this,e),se)if(se.hasOwnProperty(n))
{var r=se[n],i=r._driver;this[n]=i,ie[i]||
this.defineDriver(r)}this._defaultConfig=de({},le),this._config=de({},this._default
Config,t),this._driverSet=null,this._initDriver=null,this._ready=!
1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config
.driver).catch((function(){}))}return e.prototype.config=function(e)
{if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new
Error("Can't call config() after localforage has been used.");for(var t in e)
{if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof
e[t])return new Error("Database version must be a
number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||
this.setDriver(this._config.driver)}return"string"==typeof e?
this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new
s((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see
https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void
n(i);for(var o=ue.concat("_initStorage"),c=0,u=o.length;c<u;c++){var l=o[c];if((!
ne(ce,l)||e[l])&&"function"!=typeof e[l])return void n(i)}!function(){for(var
t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by
the current driver"),n=s.reject(t);return a(n,arguments[arguments.length-
1]),n}},n=0,r=ce.length;n<r;n++){var i=ce[n];e[i]||(e[i]=t(i))}}();var
h=function(n){ie[r]&&console.info("Redefining LocalForage driver:
"+r),ie[r]=e,oe[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?
e._support().then(h,n):h(!!e._support):h(!0)}catch(e){n(e)}}));return
c(r,t,n),r},e.prototype.driver=function(){return this._driver||
null},e.prototype.getDriver=function(e,t,n){var r=ie[e]?
s.resolve(ie[e]):s.reject(new Error("Driver not found."));return
c(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(Y);return
c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function()
{return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return
c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;re(e)||(e=[e]);var
i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function
a(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var
u=null!==this._driverSet?this._driverSet.catch((function(){return
s.resolve()})):s.resolve();return this._driverSet=u.then((function(){var
e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e)
{r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e)
{return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return
t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}o();var c=new
Error("No available storage method found.");return
r._driverSet=s.reject(c),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new
Error("No available storage method found.");return
r._driverSet=s.reject(e),r._driverSet})),c(this._driverSet,t,n),this._driverSet},e.
prototype.supports=function(e){return!!oe[e]},e.prototype._extend=function(e)
{de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var
t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return
t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var
e=0,t=ue.length;e<t;e++)he(this,ue[e])},e.prototype.createInstance=function(t)
{return new e(t)},e}(),pe=new fe;t.exports=pe},{3:3}]},{},[4])(4)},39515:
(e,t,n)=>{var r=n(38761)(n(37772),"DataView");e.exports=r},89612:(e,t,n)=>{var
r=n(52118),i=n(96909),o=n(98138),s=n(4174),a=n(7942);function c(e){var t=-
1,n=null==e?0:e.length;for(this.clear();++t<n;){var
r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.ge
t=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},80235:(e,t,n)=>{var
r=n(3945),i=n(21846),o=n(88028),s=n(72344),a=n(94769);function c(e){var t=-
1,n=null==e?0:e.length;for(this.clear();++t<n;){var
r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.ge
t=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},10326:(e,t,n)=>{var r=n(38761)
(n(37772),"Map");e.exports=r},96738:(e,t,n)=>{var
r=n(92411),i=n(36417),o=n(86928),s=n(79493),a=n(54552);function c(e){var t=-
1,n=null==e?0:e.length;for(this.clear();++t<n;){var
r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.ge
t=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},52760:(e,t,n)=>{var r=n(38761)
(n(37772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(38761)
(n(37772),"Set");e.exports=r},45386:(e,t,n)=>{var
r=n(96738),i=n(52842),o=n(52482);function s(e){var t=-1,n=null==e?
0:e.length;for(this.__data__=new r;+
+t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports
=s},86571:(e,t,n)=>{var
r=n(80235),i=n(15243),o=n(72858),s=n(4417),a=n(8605),c=n(71418);function u(e){var
t=this.__data__=new
r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.
prototype.has=a,u.prototype.set=c,e.exports=u},50857:(e,t,n)=>{var
r=n(37772).Symbol;e.exports=r},79162:(e,t,n)=>{var
r=n(37772).Uint8Array;e.exports=r},93215:(e,t,n)=>{var r=n(38761)
(n(37772),"WeakMap");e.exports=r},67552:e=>{e.exports=function(e,t){for(var n=-
1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return
o}},1634:(e,t,n)=>{var
r=n(36473),i=n(79631),o=n(86152),s=n(73226),a=n(39045),c=n(77598),u=Object.prototyp
e.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),h=!n&&!l&&s(e),d=!
n&&!l&&!h&&c(e),f=n||l||h||d,p=f?r(e.length,String):[],g=p.length;for(var m in e)!
t&&!u.call(e,m)||f&&("length"==m||h&&("offset"==m||"parent"==m)||
d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return
p}},50343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);
++n<r;)i[n]=t(e[n],n,e);return i}},65067:e=>{e.exports=function(e,t){for(var n=-
1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return
e}},87064:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;+
+n<r;)if(t(e[n],n,e))return!0;return!1}},22218:(e,t,n)=>{var
r=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return
n;return-1}},62034:(e,t,n)=>{var r=n(65067),i=n(95882);e.exports=function
e(t,n,o,s,a){var
c=-1,u=t.length;for(o||(o=i),a||(a=[]);++c<u;){var l=t[c];n>0&&o(l)?n>1?e(l,n-
1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},13324:(e,t,n)=>{var
r=n(17297),i=n(33812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!
=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},1897:(e,t,n)=>{var
r=n(65067),i=n(86152);e.exports=function(e,t,n){var o=t(e);return i(e)?
o:r(o,n(e))}},53366:(e,t,n)=>{var r=n(50857),i=n(62107),o=n(37157),s=r?
r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object
Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},15183:(e,t,n)=>{var
r=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object
Arguments]"==r(e)}},88746:(e,t,n)=>{var r=n(51952),i=n(15125);e.exports=function
e(t,n,o,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!
=n:r(t,n,o,s,e,a))}},51952:(e,t,n)=>{var
r=n(86571),i=n(74871),o=n(11491),s=n(17416),a=n(70940),c=n(86152),u=n(73226),l=n(77
598),h="[object Arguments]",d="[object Array]",f="[object
Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var
b=c(e),y=c(t),w=b?d:a(e),_=y?d:a(t),E=(w=w==h?f:w)==f,S=(_=_==h?
f:_)==f,T=w==_;if(T&&u(e)){if(!u(t))return!1;b=!0,E=!1}if(T&&!E)return v||(v=new
r),b||l(e)?i(e,t,n,g,m,v):o(e,t,w,n,g,m,v);if(!(1&n)){var
A=E&&p.call(e,"__wrapped__"),C=S&&p.call(t,"__wrapped__");if(A||C){var O=A?
e.value():e,x=C?t.value():t;return v||(v=new r),m(O,x,n,g,v)}}return!!T&&(v||(v=new
r),s(e,t,n,g,m,v))}},6840:(e,t,n)=>{var
r=n(61049),i=n(47394),o=n(29259),s=n(87035),a=/^\[object .+?Constructor\]
$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,d=RegExp
("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|
(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e)
{return!(!o(e)||i(e))&&(r(e)?d:a).test(s(e))}},35522:(e,t,n)=>{var
r=n(53366),i=n(61158),o=n(15125),s={};s["[object Float32Array]"]=s["[object
Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object
Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object
Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object
Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object
DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object
Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object
RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!
1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},86411:(e,t,n)=>{var
r=n(16001),i=n(54248),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!
r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!
=n&&t.push(n);return t}},36473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);
++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var
r=n(50857),i=n(50343),o=n(86152),s=n(4795),a=r?r.prototype:void 0,c=a?
a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return
t;if(o(t))return i(t,e)+"";if(s(t))return c?c.call(t):"";var
n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},47826:e=>{e.exports=function(e){return
function(t){return e(t)}}},59950:e=>{e.exports=function(e,t){return
e.has(t)}},17297:(e,t,n)=>{var
r=n(86152),i=n(21401),o=n(54452),s=n(66188);e.exports=function(e,t){return r(e)?
e:i(e,t)?[e]:o(s(e))}},24019:(e,t,n)=>{var r=n(37772)["__core-
js_shared__"];e.exports=r},74871:(e,t,n)=>{var
r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,s,a,c){var
u=1&n,l=e.length,h=t.length;if(l!=h&&!(u&&h>l))return!1;var
d=c.get(e),f=c.get(t);if(d&&f)return d==t&&f==e;var p=-1,g=!0,m=2&n?new r:void
0;for(c.set(e,t),c.set(t,e);++p<l;){var v=e[p],b=t[p];if(s)var y=u?
s(b,v,p,t,e,c):s(v,b,p,e,t,c);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!
i(t,(function(e,t){if(!o(m,t)&&(v===e||a(v,e,n,s,c)))return m.push(t)}))){g=!
1;break}}else if(v!==b&&!a(v,b,n,s,c)){g=!1;break}}return
c.delete(e),c.delete(t),g}},11491:(e,t,n)=>{var
r=n(50857),i=n(79162),o=n(41225),s=n(74871),a=n(75179),c=n(16909),u=r?
r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,h,d){switch(n)
{case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!
=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!
(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object
Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object
Error]":return e.name==t.name&&e.message==t.message;case"[object
RegExp]":case"[object String]":return e==t+"";case"[object Map]":var
f=a;case"[object Set]":var p=1&r;if(f||(f=c),e.size!=t.size&&!p)return!1;var
g=d.get(e);if(g)return g==t;r|=2,d.set(e,t);var m=s(f(e),f(t),r,u,h,d);return
d.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!
1}},17416:(e,t,n)=>{var
r=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var
c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var h=l;h--;){var
d=u[h];if(!(c?d in t:i.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return
f==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var m=c;++h<l;){var
v=e[d=u[h]],b=t[d];if(o)var y=c?o(b,v,d,t,e,a):o(v,b,d,e,t,a);if(!(void 0===y?
v===b||s(v,b,n,o,a):y)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var
w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in
t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||
(g=!1)}return a.delete(e),a.delete(t),g}},51242:(e,t,n)=>{var r="object"==typeof
n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},13483:(e,t,n)=>{var
r=n(1897),i=n(80633),o=n(90249);e.exports=function(e){return r(e,o,i)}},27937:
(e,t,n)=>{var r=n(98304);e.exports=function(e,t){var n=e.__data__;return r(t)?
n["string"==typeof t?"string":"hash"]:n.map}},38761:(e,t,n)=>{var
r=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void
0}},62107:(e,t,n)=>{var
r=n(50857),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?
r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void
0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},80633:
(e,t,n)=>{var
r=n(67552),i=n(30981),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnProper
tySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return
o.call(e,t)})))}:i;e.exports=a},70940:(e,t,n)=>{var
r=n(39515),i=n(10326),o=n(52760),s=n(2143),a=n(93215),c=n(53366),u=n(87035),l="[obj
ect Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object
DataView]",g=u(r),m=u(i),v=u(o),b=u(s),y=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!
=p||i&&w(new i)!=l||o&&w(o.resolve())!=h||s&&w(new s)!=d||a&&w(new a)!
=f)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?
u(n):"";if(r)switch(r){case g:return p;case m:return l;case v:return h;case
b:return d;case y:return f}return
t}),e.exports=w},98109:e=>{e.exports=function(e,t){return null==e?void
0:e[t]}},52118:(e,t,n)=>{var r=n(99191);e.exports=function(){this.__data__=r?
r(null):{},this.size=0}},96909:e=>{e.exports=function(e){var t=this.has(e)&&delete
this.__data__[e];return this.size-=t?1:0,t}},98138:(e,t,n)=>{var
r=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var
t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void
0:n}return i.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var
r=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var
t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var
r=n(99191);e.exports=function(e,t){var n=this.__data__;return
this.size+=this.has(e)?0:1,n[e]=r&&void
0===t?"__lodash_hash_undefined__":t,this}},95882:(e,t,n)=>{var
r=n(50857),i=n(79631),o=n(86152),s=r?r.isConcatSpreadable:void
0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},39045:e=>{var t=/^(?:0|
[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?
9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e
%1==0&&e<n}},21401:(e,t,n)=>{var r=n(86152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:
(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var
n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||
s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},98304:e=>{e.exports=function(e)
{var t=typeof
e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!
==e:null===e}},47394:(e,t,n)=>{var r,i=n(24019),o=(r=/[^.]+
$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e
){return!!o&&o in e}},16001:e=>{var t=Object.prototype;e.exports=function(e){var
n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||
t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},21846:
(e,t,n)=>{var r=n(22218),i=Array.prototype.splice;e.exports=function(e){var
t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--
this.size,0))}},88028:(e,t,n)=>{var r=n(22218);e.exports=function(e){var
t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},72344:(e,t,n)=>{var
r=n(22218);e.exports=function(e){return r(this.__data__,e)>-1}},94769:(e,t,n)=>{var
r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(+
+this.size,n.push([e,t])):n[i][1]=t,this}},92411:(e,t,n)=>{var
r=n(89612),i=n(80235),o=n(10326);e.exports=function()
{this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:
(e,t,n)=>{var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return
this.size-=t?1:0,t}},86928:(e,t,n)=>{var r=n(27937);e.exports=function(e){return
r(this,e).get(e)}},79493:(e,t,n)=>{var r=n(27937);e.exports=function(e){return
r(this,e).has(e)}},54552:(e,t,n)=>{var r=n(27937);e.exports=function(e,t){var
n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?
0:1,this}},75179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return
e.forEach((function(e,r){n[++t]=[r,e]})),n}},77777:(e,t,n)=>{var
r=n(30733);e.exports=function(e){var t=r(e,(function(e){return
500===n.size&&n.clear(),e})),n=t.cache;return t}},99191:(e,t,n)=>{var r=n(38761)
(Object,"create");e.exports=r},54248:(e,t,n)=>{var r=n(60241)
(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(51242),i=t&&!
t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function()
{try{return o&&o.require&&o.require("util").types||
s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},37157:e=>{var
t=Object.prototype.toString;e.exports=function(e){return
t.call(e)}},60241:e=>{e.exports=function(e,t){return function(n){return
e(t(n))}}},37772:(e,t,n)=>{var r=n(51242),i="object"==typeof
self&&self&&self.Object===Object&&self,o=r||i||Function("return this")
();e.exports=o},52842:e=>{e.exports=function(e){return
this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:e=>{e.exports=functio
n(e){return this.__data__.has(e)}},16909:e=>{e.exports=function(e){var t=-
1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},15243:(e,t,n)=>{var
r=n(80235);e.exports=function(){this.__data__=new
r,this.size=0}},72858:e=>{e.exports=function(e){var
t=this.__data__,n=t.delete(e);return
this.size=t.size,n}},4417:e=>{e.exports=function(e){return
this.__data__.get(e)}},8605:e=>{e.exports=function(e){return
this.__data__.has(e)}},71418:(e,t,n)=>{var
r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n
instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=+
+n.size,this;n=this.__data__=new o(s)}return
n.set(e,t),this.size=n.size,this}},54452:(e,t,n)=>{var r=n(77777),i=/[^.[\]]+|\[(?:
(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/
g,o=/\\(\\)?/g,s=r((function(e){var t=[];return
46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?
i.replace(o,"$1"):n||e)})),t}));e.exports=s},33812:(e,t,n)=>{var
r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var
t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},87035:e=>{var
t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return
t.call(e)}catch(e){}try{return e+""}catch(e)
{}}return""}},41225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:
(e,t,n)=>{var r=n(62034);e.exports=function(e){return null!=e&&e.length?r(e,1):
[]}},72579:(e,t,n)=>{var r=n(13324);e.exports=function(e,t,n){var i=null==e?void
0:r(e,t);return void 0===i?n:i}},79631:(e,t,n)=>{var
r=n(15183),i=n(15125),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerabl
e,c=r(function(){return arguments}())?r:function(e){return
i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},86152:e=>{var
t=Array.isArray;e.exports=t},63496:(e,t,n)=>{var
r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!
r(e)}},73226:(e,t,n)=>{e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!
t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,c=(a?
a.isBuffer:void 0)||i;e.exports=c},45455:(e,t,n)=>{var
r=n(86411),i=n(70940),o=n(79631),s=n(86152),a=n(63496),c=n(73226),u=n(16001),l=n(77
598),h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!
0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||
o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!
e.size;if(u(e))return!r(e).length;for(var n in e)if(h.call(e,n))return!1;return!
0}},18149:(e,t,n)=>{var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:
(e,t,n)=>{var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var
t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object
AsyncFunction]"==t||"[object Proxy]"==t}},61158:e=>{e.exports=function(e)
{return"number"==typeof e&&e>-1&&e
%1==0&&e<=9007199254740991}},29259:e=>{e.exports=function(e){var t=typeof e;return
null!=e&&("object"==t||"function"==t)}},15125:e=>{e.exports=function(e){return
null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var
r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||
i(e)&&"[object Symbol]"==r(e)}},77598:(e,t,n)=>{var
r=n(35522),i=n(47826),o=n(4146),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},90249:
(e,t,n)=>{var r=n(1634),i=n(86411),o=n(63496);e.exports=function(e){return o(e)?
r(e):i(e)}},30733:(e,t,n)=>{var r=n(96738);function i(e,t){if("function"!=typeof
e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var
n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return
o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return
n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},34291:e=>{e.exports=function()
{}},30981:e=>{e.exports=function(){return[]}},36330:e=>{e.exports=function()
{return!1}},66188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return
null==e?"":r(e)}},52060:e=>{"use strict";const t=e=>"object"==typeof e&&null!
==e,n=Symbol("skip"),r=e=>t(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e
instanceof Date),i=(e,t,o,s=new WeakMap)=>{if(o={deep:!1,target:
{},...o},s.has(e))return s.get(e);s.set(e,o.target);const{target:a}=o;delete
o.target;const c=e=>e.map((e=>r(e)?i(e,t,o,s):e));if(Array.isArray(e))return
c(e);for(const[u,l]of Object.entries(e)){const
h=t(u,l,e);if(h===n)continue;let[d,f,{shouldRecurse:p=!0}={}]=h;"__proto__"!
==d&&(o.deep&&p&&r(f)&&(f=Array.isArray(f)?c(f):i(f,t,o,s)),a[d]=f)}return
a};e.exports=(e,n,r)=>{if(!t(e))throw new TypeError(`Expected an object, got \`$
{e}\` (${typeof e})`);return
i(e,n,r)},e.exports.mapObjectSkip=n},84062:function(e,t,n){"use strict";var
r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:
{default:e}};Object.defineProperty(t,"__esModule",{value:!
0}),t.generate=t.compile=void 0;var i=r(n(31365));t.compile=function(e){var
t=e[0],n=e[1]-1;if(n<0&&t<=0)return i.default.falseFunc;if(-1===t)return
function(e){return e<=n};if(0===t)return function(e){return e===n};if(1===t)return
n<0?i.default.trueFunc:function(e){return e>=n};var r=Math.abs(t),o=(n%r+r)
%r;return t>1?function(e){return e>=n&&e%r===o}:function(e){return e<=n&&e
%r===o}},t.generate=function(e){var t=e[0],n=e[1]-1,r=0;if(t<0){var i=-t,o=(n%i+i)
%i;return function(){var e=o+i*r++;return e>n?null:e}}return 0===t?n<0?function()
{return null}:function(){return
0==r++?n:null}:(n<0&&(n+=t*Math.ceil(-n/t)),function(){return t*r+++n})}},7346:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.sequence=t.generate=t.compile=t.parse=void 0;var
r=n(63950);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return
r.parse}});var i=n(84062);Object.defineProperty(t,"compile",{enumerable:!
0,get:function(){return i.compile}}),Object.defineProperty(t,"generate",
{enumerable:!0,get:function(){return i.generate}}),t.default=function(e)
{return(0,i.compile)((0,r.parse)(e))},t.sequence=function(e){return(0,i.generate)
((0,r.parse)(e))}},63950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.parse=void 0;var n=new
Set([9,10,12,13,32]),r="0".charCodeAt(0),i="9".charCodeAt(0);t.parse=function(e)
{if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var
t=0,o=0,s=c(),a=u();if(t<e.length&&"n"===e.charAt(t)&&(t++,o=s*(null!=a?
a:1),l(),t<e.length?(s=c(),l(),a=u()):s=a=0),null===a||t<e.length)throw new
Error("n-th rule couldn't be parsed ('".concat(e,"')"));return[o,s*a];function c()
{return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function u(){for(var
n=t,o=0;t<e.length&&e.charCodeAt(t)>=r&&e.charCodeAt(t)<=i;)o=10*o+
(e.charCodeAt(t)-r),t++;return t===n?null:o}function l()
{for(;t<e.length&&n.has(e.charCodeAt(t));)t++}}},90286:function(e,t){var
n,r;n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!
=typeof window?window:void 0!==t?t:{},n=!t.document&&!!
t.postMessage,r=t.IS_PAPA_WORKER||!1,i={},o=0,s={parse:function(n,r){var a=(r=r||
{}).dynamicTyping||!
1;if(_(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!
_(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var c=function(){if(!
s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||
null,r=e.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["var global
= (function() { if (typeof self !== 'undefined') { return self; } if (typeof window
!== 'undefined') { return window; } if (typeof global !== 'undefined') { return
global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],
{type:"text/javascript"})))),c=new t.Worker(a);return c.onmessage=m,c.id=o+
+,i[c.id]=c}();return
c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error
,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),de
lete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var
f=null;return s.NODE_STREAM_INPUT,"string"==typeof n?(n=function(e){return
65279===e.charCodeAt(0)?e.slice(1):e}(n),f=r.download?new u(r):new h(r)):!
0===n.readable&&_(n.read)&&_(n.on)?f=new d(r):(t.File&&n instanceof File||n
instanceof Object)&&(f=new l(r)),f.stream(n)},unparse:function(e,t){var n=!1,r=!
0,i=",",o="\r\n",a='"',c=a+a,u=!1,l=null,h=!1;!function(){if("object"==typeof t)
{if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!
==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof
t.quotes||"function"==typeof t.quotes||
Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof
t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||
(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof
t.quoteChar&&(a=t.quoteChar),"boolean"==typeof
t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new
Error("Option columns is empty");l=t.columns}void 0!
==t.escapeChar&&(c=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||
t.escapeFormulae instanceof RegExp)&&(h=t.escapeFormulae instanceof RegExp?
t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new
RegExp(p(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!
e.length||Array.isArray(e[0]))return
f(null,e,u);if("object"==typeof e[0])return f(l||Object.keys(e[0]),e,u)}else
if("object"==typeof e)return"string"==typeof
e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||
(e.fields=e.meta&&e.meta.fields||l),e.fields||(e.fields=Array.isArray(e.data[0])?
e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):
[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||
(e.data=[e.data])),f(e.fields||[],e.data||[],u);throw new Error("Unable to
serialize unrecognized input");function f(e,t,n){var s="";"string"==typeof
e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var
a=Array.isArray(e)&&0<e.length,c=!Array.isArray(t[0]);if(a&&r){for(var
u=0;u<e.length;u++)0<u&&(s+=i),s+=g(e[u],u);0<t.length&&(s+=o)}for(var
l=0;l<t.length;l++){var h=a?e.length:t[l].length,d=!1,f=a?
0===Object.keys(t[l]).length:0===t[l].length;if(n&&!
a&&(d="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l]
[0].length),"greedy"===n&&a){for(var p=[],m=0;m<h;m++){var v=c?e[m]:m;p.push(t[l]
[v])}d=""===p.join("").trim()}if(!d){for(var b=0;b<h;b++){0<b&&!f&&(s+=i);var
y=a&&c?e[b]:b;s+=g(t[l][y],b)}l<t.length-1&&(!n||0<h&&!f)&&(s+=o)}}return
s}function g(e,t){if(null==e)return"";if(e.constructor===Date)return
JSON.stringify(e).slice(1,25);var r=!1;h&&"string"==typeof
e&&h.test(e)&&(e="'"+e,r=!0);var o=e.toString().replace(d,c);return(r=r||!
0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var
n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1}(o,s.BAD_DELIMITERS)||-
1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?
a+o+a:o}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(3
1),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\
n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!
t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,
s.DefaultDelimiter=",",s.Parser=g,s.ParserHandle=f,s.NetworkStreamer=u,s.FileStream
er=l,s.StringStreamer=h,s.ReadableStreamStreamer=d,t.jQuery){var
a=t.jQuery;a.fn.parse=function(e){var n=e.config||{},r=[];return
this.each((function(e){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!
==a(this).attr("type").toLowerCase()||!t.FileReader||!this.files||
0===this.files.length)return!0;for(var i=0;i<this.files.length;i+
+)r.push({file:this.files[i],inputElem:this,instanceConfig:a.extend({},n)})})),i(),
this;function i(){if(0!==r.length){var t,n,i,c=r[0];if(_(e.before)){var
u=e.before(c.file,c.inputElem);if("object"==typeof u)
{if("abort"===u.action)return"AbortError",t=c.file,n=c.inputElem,i=u.reason,void(_(
e.error)&&e.error({name:"AbortError"},t,n,i));if("skip"===u.action)return void
o();"object"==typeof
u.config&&(c.instanceConfig=a.extend(c.instanceConfig,u.config))}else
if("skip"===u)return void o()}var
l=c.instanceConfig.complete;c.instanceConfig.complete=function(e)
{_(l)&&l(e,c.file,c.inputElem),o()},s.parse(c.file,c.instanceConfig)}else
_(e.complete)&&e.complete()}function o(){r.splice(0,1),i()}}}function c(e)
{this._handle=null,this._finished=!1,this._completed=!1,this._halted=!
1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._st
art=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:
[],errors:[],meta:{}},function(e){var
t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||
(t.chunkSize=null),this._handle=new f(t),
(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n)
{if(this.isFirstChunk&&_(this._config.beforeFirstChunk)){var
i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!
1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var
a=this._handle.parse(o,this._baseIndex,!this._finished);if(!
this._handle.paused()&&!this._handle.aborted()){var
c=a.meta.cursor;this._finished||(this._partialLine=o.substring(c-
this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var
u=this._finished||
this._config.preview&&this._rowCount>=this._config.preview;if(r)t.postMessage({resu
lts:a,workerId:s.WORKER_ID,finished:u});else if(_(this._config.chunk)&&!n)
{if(this._config.chunk(a,this._handle),this._handle.paused()||
this._handle.aborted())return void(this._halted=!0);a=void
0,this._completeResults=void 0}return this._config.step||this._config.chunk||
(this._completeResults.data=this._completeResults.data.concat(a.data),this._complet
eResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults
.meta=a.meta),this._completed||!u||!_(this._config.complete)||a&&a.meta.aborted||
(this._config.complete(this._completeResults,this._input),this._completed=!0),u||
a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e)
{_(this._config.error)?
this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,er
ror:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||
(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function()
{this._readChunk(),this._chunkLoaded()}:function()
{this._readChunk()},this.stream=function(e)
{this._input=e,this._nextChunk()},this._readChunk=function()
{if(this._finished)this._chunkLoaded();else{if(t=new
XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCr
edentials),n||
(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this
._config.downloadRequestBody?"POST":"GET",this._input,!
n),this._config.downloadRequestHeaders){var
e=this._config.downloadRequestHeaders;for(var r in
e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var
i=this._start+this._config.chunkSize-
1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.do
wnloadRequestBody)}catch(e)
{this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoade
d=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():
(this._start+=this._config.chunkSize?
this._config.chunkSize:t.responseText.length,this._finished=!
this._config.chunkSize||this._start>=function(e){var
t=e.getResponseHeader("Content-Range");return null===t?-
1:parseInt(t.substring(t.lastIndexOf("/")+1))}
(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var
n=t.statusText||e;this._sendError(new Error(n))}}function l(e){var t,n;(e=e||
{}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var r="undefined"!
=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||
e.mozSlice,r?((t=new
FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=
new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||
this._config.preview&&!(this._rowCount<this._config.preview)||
this._readChunk()},this._readChunk=function(){var
e=this._input;if(this._config.chunkSize){var
i=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._st
art,i)}var o=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:
{result:o}})},this._chunkLoaded=function(e)
{this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||
this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=fu
nction(){this._sendError(t.error)}}function h(e){var t;c.call(this,e=e||
{}),this.stream=function(e){return
t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var
e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):
(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function d(e){c.call(this,e=e||
{});var t=[],n=!0,r=!1;this.pause=function()
{c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(
)
{c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=functio
n(e)
{this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._s
treamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function
(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function()
{this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!
0},this._streamData=w((function(e){try{t.push("string"==typeof e?
e:e.toString(this._config.encoding)),n&&(n=!
1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e)
{this._streamError(e)}}),this),this._streamError=w((function(e)
{this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function()
{this._streamCleanUp(),r=!
0,this._streamData("")}),this),this._streamCleanUp=w((function()
{this._input.removeListener("data",this._streamData),this._input.removeListener("en
d",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}f
unction f(e){var t,n,r,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE]
[-+]?\d+)?\s*$/,c=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\
d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|
Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))
$/,u=this,l=0,h=0,d=!1,f=!1,m=[],v={data:[],errors:[],meta:{}};if(_(e.step)){var
b=e.step;e.step=function(t)
{if(v=t,S())E();else{if(E(),0===v.data.length)return;l+=t.data.length,e.preview&&l>
e.preview?n.abort():(v.data=v.data[0],b(v,u))}}}function w(t)
{return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].le
ngth}function E(){return v&&r&&(A("Delimiter","UndetectableDelimiter","Unable to
auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!
1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!
w(e)}))),S()&&function(){if(v)if(Array.isArray(v.data[0])){for(var
t=0;S()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else
v.data.forEach(n);function n(t,n)
{_(e.transformHeader)&&(t=e.transformHeader(t,n)),m.push(t)}}(),function(){if(!v||!
e.header&&!e.dynamicTyping&&!e.transform)return v;function t(t,n){var r,i=e.header?
{}:[];for(r=0;r<t.length;r++){var
o=r,s=t[r];e.header&&(o=r>=m.length?"__parsed_extra":m[r]),e.transform&&(s=e.transf
orm(s,o)),s=T(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return
e.header&&(r>m.length?A("FieldMismatch","TooManyFields","Too many fields: expected
"+m.length+" fields but parsed
"+r,h+n):r<m.length&&A("FieldMismatch","TooFewFields","Too few fields: expected
"+m.length+" fields but parsed "+r,h+n)),i}var n=1;return!v.data.length||
Array.isArray(v.data[0])?
(v.data=v.data.map(t),n=v.data.length):v.data=t(v.data,0),e.header&&v.meta&&(v.meta
.fields=m),h+=n,v}()}function S(){return e.header&&0===m.length}function T(t,n)
{return r=t,e.dynamicTypingFunction&&void
0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!
0===(e.dynamicTyping[r]||e.dynamicTyping)?"true"===n||"TRUE"===n||"false"!
==n&&"FALSE"!==n&&(function(e){if(a.test(e)){var
t=parseFloat(e);if(o<t&&t<i)return!0}return!1}(n)?parseFloat(n):c.test(n)?new
Date(n):""===n?null:n):n;var r}function A(e,t,n,r){var
i={type:e,code:t,message:n};void 0!
==r&&(i.row=r),v.errors.push(i)}this.parse=function(i,o,a){var
c=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t)
{e=e.substring(0,1048576);var n=new RegExp(p(t)
+"([^]*?)"+p(t),"gm"),r=(e=e.replace(n,"")).split("\r"),i=e.split("\
n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var
s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}
(i,c)),r=!
1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimi
ter);else{var u=function(t,n,r,i,o){var a,c,u,l;o=o||[",","\
t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var h=0;h<o.length;h++){var
d=o[h],f=0,p=0,m=0;u=void 0;for(var v=new
g({comments:i,delimiter:d,newline:n,preview:10}).parse(t),b=0;b<v.data.length;b+
+)if(r&&w(v.data[b]))m++;else{var y=v.data[b].length;p+=y,void 0!==u?
0<y&&(f+=Math.abs(y-u),u=y):u=y}0<v.data.length&&(p/=v.data.length-m),(void 0===c||
f<=c)&&(void 0===l||l<p)&&1.99<p&&(c=f,a=d,l=p)}return{successful:!!
(e.delimiter=a),bestDelimiter:a}}
(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?
e.delimiter=u.bestDelimiter:(r=!
0,e.delimiter=s.DefaultDelimiter),v.meta.delimiter=e.delimiter}var l=y(e);return
e.preview&&e.header&&l.preview++,t=i,n=new g(l),v=n.parse(t,o,a),E(),d?{meta:
{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return
d},this.pause=function(){d=!
0,n.abort(),t=_(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function()
{u.streamer._halted?(d=!1,u.streamer.parseChunk(t,!
0)):setTimeout(u.resume,3)},this.aborted=function(){return f},this.abort=function()
{f=!0,n.abort(),v.meta.aborted=!0,_(e.complete)&&e.complete(v),t=""}}function p(e)
{return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t,n=(e=e||
{}).delimiter,r=e.newline,i=e.comments,o=e.step,a=e.preview,c=e.fastMode,u=t=void
0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!
==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||-
1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character
same as delimiter");!0===i?i="#":("string"!=typeof i||-
1<s.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var
l=0,h=!1;this.parse=function(s,d,f){if("string"!=typeof s)throw new Error("Input
must be a string");var
g=s.length,m=n.length,v=r.length,b=i.length,y=_(o),w=[],E=[],S=[],T=l=0;if(!
s)return q();if(e.header&&!d){var A=s.split(r)[0].split(n),C=[],O={},x=!1;for(var I
in A){var P=A[I];_(e.transformHeader)&&(P=e.transformHeader(P,I));var D=P,k=O[P]||
0;for(0<k&&(x=!0,D=P+"_"+k),O[P]=k+1;C.includes(D);)D=D+"_"+k;C.push(D)}if(x){var
R=s.split(r);R[0]=C.join(n),s=R.join(r)}}if(c||!1!==c&&-1===s.indexOf(t)){for(var
M=s.split(r),N=0;N<M.length;N++){if(S=M[N],l+=S.length,N!==M.length-
1)l+=r.length;else if(f)return q();if(!i||S.substring(0,b)!==i){if(y)
{if(w=[],G(S.split(n)),K(),h)return q()}else G(S.split(n));if(a&&a<=N)return
w=w.slice(0,a),q(!0)}}return q()}for(var L=s.indexOf(n,l),F=s.indexOf(r,l),j=new
RegExp(p(u)+p(t),"g"),B=s.indexOf(t,l);;)if(s[l]!
==t)if(i&&0===S.length&&s.substring(l,l+b)===i){if(-1===F)return
q();l=F+v,F=s.indexOf(r,l),L=s.indexOf(n,l)}else if(-1!==L&&(L<F||-
1===F))S.push(s.substring(l,L)),l=L+m,L=s.indexOf(n,l);else{if(-
1===F)break;if(S.push(s.substring(l,F)),W(F+v),y&&(K(),h))return
q();if(a&&w.length>=a)return q(!0)}else for(B=l,l++;;){if(-
1===(B=s.indexOf(t,B+1)))return f||
E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field
unterminated",row:w.length,index:l}),V();if(B===g-1)return
V(s.substring(l,B).replace(j,t));if(t!==u||s[B+1]!==u){if(t===u||0===B||s[B-1]!==u)
{-1!==L&&L<B+1&&(L=s.indexOf(n,B+1)),-1!==F&&F<B+1&&(F=s.indexOf(r,B+1));var U=z(-
1===F?L:Math.min(L,F));if(s.substr(B+1+U,m)===n)
{S.push(s.substring(l,B).replace(j,t)),s[l=B+1+U+m]!
==t&&(B=s.indexOf(t,l)),L=s.indexOf(n,l),F=s.indexOf(r,l);break}var
H=z(F);if(s.substring(B+1+H,B+1+H+v)===r)
{if(S.push(s.substring(l,B).replace(j,t)),W(B+1+H+v),L=s.indexOf(n,l),B=s.indexOf(t
,l),y&&(K(),h))return q();if(a&&w.length>=a)return q(!
0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on
quoted field is malformed",row:w.length,index:l}),B++}}else B++}return V();function
G(e){w.push(e),T=l}function z(e){var t=0;if(-1!==e){var
n=s.substring(B+1,e);n&&""===n.trim()&&(t=n.length)}return t}function V(e){return
f||(void 0===e&&(e=s.substring(l)),S.push(e),l=g,G(S),y&&K()),q()}function W(e)
{l=e,G(S),S=[],F=s.indexOf(r,l)}function q(e){return{data:w,errors:E,meta:
{delimiter:n,linebreak:r,aborted:h,truncated:!!e,cursor:T+(d||0)}}}function K()
{o(q()),w=[],E=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return
l}}function m(e){var t=e.data,n=i[t.workerId],r=!
1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var
o={abort:function(){r=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!
0}})},pause:b,resume:b};if(_(n.userStep)){for(var
s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.e
rrors,meta:t.results.meta},o),!r);s++);delete t.results}else
_(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!
r&&v(t.workerId,t.results)}function v(e,t){var
n=i[e];_(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function b()
{throw new Error("Not implemented.")}function y(e){if("object"!=typeof e||
null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=y(e[n]);return
t}function w(e,t){return function(){e.apply(t,arguments)}}function _(e)
{return"function"==typeof e}return r&&(t.onmessage=function(e){var n=e.data;if(void
0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof
n.input)t.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finis
hed:!0});else if(t.File&&n.input instanceof File||n.input instanceof Object){var
r=s.parse(n.input,n.config);r&&t.postMessage({workerId:s.WORKER_ID,results:r,finish
ed:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,
(l.prototype=Object.create(c.prototype)).constructor=l,
(h.prototype=Object.create(h.prototype)).constructor=h,
(d.prototype=Object.create(c.prototype)).constructor=d,s},void 0===(r=n.apply(t,
[]))||(e.exports=r)},92808:e=>{"use strict";function t(e,t){return
Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i)
{n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\
+/g;e=e.split(n);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var
c=e.length;a>0&&c>a&&(c=a);for(var u=0;u<c;++u){var
l,h,d,f,p=e[u].replace(s,"%20"),g=p.indexOf(r);g>=0?
(l=p.substr(0,g),h=p.substr(g+1)):
(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),t(o,d)?
Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},31368:e=>{"use
strict";var t=function(e){switch(typeof e){case"string":return
e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?
e:"";default:return""}};e.exports=function(e,n,r,i){return
n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?
Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return
Array.isArray(e[i])?e[i].map((function(e){return
o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?
encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},56642:(e,t,n)=>{"use
strict";t.decode=t.parse=n(92808),t.encode=t.stringify=n(31368)},78674:e=>{"use
strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new
TypeError("`maxSize` must be a number greater than
0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new
Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size+
+,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new
Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))
{const t=this.oldCache.get(e);return
this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?
this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||
this.oldCache.has(e)}peek(e){return this.cache.has(e)?
this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const
t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear()
{this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of
this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const
e of this.cache)yield e;for(const e of this.oldCache)
{const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of
this.oldCache.keys())this.cache.has(t)||e++;return
this._size+e}}e.exports=t},76093:function(e){var
t,n;e.exports=(t={138:e=>{e.exports=(e,t={})=>{const n=e=>!
isNaN(e)&&+e+""==e+"",r=(e=0,t=0)=>({min:e,max:t}),i=e=>{[B,U].forEach(e)},o=(e,t,n
)=>{if(e)return
t;n()},s=(e,t,n="")=>{e.setAttribute(t,n)},a=(e,t)=>{e.removeAttribute(t)},c=(e,t,n
,r=!0)=>{e.addEventListener(t,n,r?{passive:!1,capture:!0}:{})},u=(e,t,n,r=!
0)=>{e.removeEventListener(t,n,r?{passive:!1,capture:!0}:
{})},l=(e,n)=>{t[e]={}.hasOwnProperty.call(t,e)?t[e]:n},h=(e,n)=>t.orientation===G?
e:n,d=e=>1===e?Q.max:Q.min,f=()=>{let e=!1;n(t.min)&&n(t.max)||(e=!0),t.min=e?
1:+t.min,t.max=e?1:+t.max},p=()=>{t.thumbsDisabled
instanceof Array?(1===t.thumbsDisabled.length&&t.thumbsDisabled.push(!1),1!
==t.thumbsDisabled.length&&2!==t.thumbsDisabled.length&&(t.thumbsDisabled=[!1,!
1])):t.thumbsDisabled=[t.thumbsDisabled,t.thumbsDisabled],t.thumbsDisabled[0]=!!
t.thumbsDisabled[0],t.thumbsDisabled[1]=!!t.thumbsDisabled[1]},g=(e,n=!1,i=!0,o=!
0)=>{const c=r(ae[Q.min].value,ae[Q.max].value);e=e||
c,ae[Q.min].value=e.min,ae[Q.max].value=ie||n?e.max:e.min+ne,m(),
$.min>$.max&&(Q.min=+!Q.min,Q.max=+!
Q.max,a(ce[Q.min],W),a(ce[Q.max],V),s(ce[Q.min],V),s(ce[Q.max],W),ie&&(ie=ie===B?
U:B),m()),ee=n?$:e;let u=!1;(c.min!==ae[Q.min].value||n)&&(u=!0),(c.max!
==ae[Q.max].value||n)&&(u=!0),u&&(i&&t.onInput&&t.onInput([$.min,
$.max],o),C(),v(),b(),_())},m=()=>{i((e=>{$
[e]=+ae[Q[e]].value}))},v=()=>{i((e=>{ce[Q[e]].style[h("top","left")]=`calc(${($
[e]-t.min)/te*100}% + ${(.5-($[e]-t.min)/te)*h(Z,X)[e]}px)`}))},b=()=>{const
n=e.getBoundingClientRect(),r=(.5-($.min-t.min)/te)*h(Z,X).min/h(n.bottom-
n.top,n.right-n.left),i=(.5-($.max-t.min)/te)*h(Z,X).max/h(n.bottom-n.top,n.right-
n.left);se.style[h("top","left")]=100*(($.min-t.min)/te+r)
+"%",se.style[h("height","width")]=100*(($.max-t.min)/te-($.min-t.min)/te-r+i)
+"%"},y=()=>{i(((e,n)=>{J[e]=t.thumbsDisabled[n]?$
[e]:t[e]}))},w=()=>{i(((e,n)=>{t.disabled||t.thumbsDisabled[n]?
a(ce[d(n)],z):s(ce[d(n)],z,0)}))},_=()=>{i((e=>{s(ce[Q[e]],"aria-
valuemin",t.min),s(ce[Q[e]],"aria-valuemax",t.max),s(ce[Q[e]],"aria-valuenow",$
[e]),s(ce[Q[e]],"aria-valuetext",$[e])}))},E=()=>{t.disabled?
s(e,Y):a(e,Y)},S=()=>{t.thumbsDisabled.forEach(((e,t)=>{const n=d(t);e?
(s(ce[n],Y),s(ce[n],"aria-disabled",!0)):(a(ce[n],Y),s(ce[n],"aria-disabled",!
1))}))},T=(e,n=!1)=>{t[e]=n,f(),i((e=>{ae[0][e]=t[e],ae[1][e]=t[e]})),te=t.max-
t.min,g("",!0,!0,!1),y()},A=()=>{t.orientation===G?
s(e,K):a(e,K),se.style[h("left","top")]="",se.style[h("width","height")]="",ce[0].s
tyle[h("left","top")]="",ce[1].style[h("left","top")]=""},C=()=>{i((e=>{X[e]=F(j(ce
[Q[e]]).width),Z[e]=F(j(ce[Q[e]]).height)}))},O=(n,r)=>{const
i=e.getBoundingClientRect(),o=r.getBoundingClientRect(),s=(h(o.top-i.top,o.left-
i.left)+(n[`client${h("Y","X")}`]-r.getBoundingClientRect()[h("top","left")])-(ie?
(.5-($[ie]-t.min)/te)*h(Z,X)[ie]:0))/h(i.bottom-i.top,i.right-
i.left)*te+t.min;return s<t.min?t.min:s>t.max?t.max:s},x=(e,t)=>!
e.target.classList.contains(t),I=(e,n=!0)=>{let i=!1;if(!t.disabled&&(x(e,"range-
slider__thumb")&&x(e,"range-slider__range")||t.rangeSlideDisabled&&x(e,"range-
slider__thumb"))&&(i=!0),i&&t.thumbsDisabled[0]&&t.thumbsDisabled[1]&&(i=!1),i)
{const i=O(e,se),o=L($.min-i),s=L($.max-
i);if(t.thumbsDisabled[0])i>=$.min&&(g(r($.min,i),!0,!n),D(e,Q.max,ce[Q.max],!
n));else if(t.thumbsDisabled[1])i<=$.max&&(g(r(i,$.max),!0,!
n),D(e,Q.min,ce[Q.min],!n));else{let t=Q.max;o===s?g(r($.min,i),!0,!n):(g(r(o<s?i:
$.min,s<o?i:$.max),!0,!n),t=o<s?Q.min:Q.max),D(e,t,ce[t],!n)}n&&I(e,!
1)}},P=(e,t)=>{C(),s(t,q),oe=O(e,t),re=!0},D=(e,n,r,i=!0)=>{t.disabled||
t.thumbsDisabled[d(n)]||(P(e,r),ie=Q.min===n?
B:U,i&&t.onThumbDragStart&&t.onThumbDragStart())},k=e=>{if(re){const n=O(e,se),i=n-
oe;let o=$.min,s=$.max;const a=ie?J.min:t.min,c=ie?J.max:t.max;ie&&ie!==B||(o=ie?
n:ee.min+i),ie&&ie!==U||(s=ie?n:ee.max+i),o>=a&&o<=c&&s>=a&&s<=c?
(g({min:o,max:s}),oe=n):
(o>c&&ie&&(g(r(c,c)),oe=n),s<a&&ie&&(g(r(a,a)),oe=n),o<a&&(g(r(a,ie?$.max:$.max-
$.min+a)),oe=n),s>c&&(g(r(ie?$.min:$.min-$.max+c,c)),oe=n)),ie||
y()}},R=()=>{re&&(a(ce[0],q),a(ce[1],q),a(se,q),re=!1,ie?
t.onThumbDragEnd&&t.onThumbDragEnd():t.onRangeDragEnd&&t.onRangeDragEnd())},M=()=>{
C(),v(),b()},N=()=>{const e=F(ae[0].step);return ae[0].step===H?H:0===e||isNaN(e)?
1:e},L=Math.abs,F=parseFloat,j=window.getComputedStyle,B="min",U="max",H="any",G="v
ertical",z="tabindex",V="data-lower",W="data-upper",q="data-active",K="data-
vertical",Y="data-disabled",$=r(),Q=r(0,1),X=r(),Z=r(),J=r();let
ee=r(),te=0,ne=0,re=!1,ie=!1,oe=0;l("rangeSlideDisabled",!1),l("thumbsDisabled",[!
1,!1]),l("orientation","horizontal"),l("disabled",!1),l("onThumbDragStart",!
1),l("onRangeDragStart",!1),l("onThumbDragEnd",!1),l("onRangeDragEnd",!
1),l("onInput",!1),l("value",
[25,75]),l("step",1),l("min",0),l("max",100),f(),p(),e.innerHTML=`<input
type="range" min="${t.min}" max="${t.max}" step="${t.step}" value="${t.value[0]}"
disabled><input type="range" min="${t.min}" max="${t.max}" step="${t.step}"
value="${t.value[1]}" disabled><div role="slider" class="range-slider__thumb" $
{V}></div><div role="slider" class="range-slider__thumb" ${W}></div><div
class="range-slider__range"></div>`,e.classList.add("range-slider");const
se=e.querySelector(".range-
slider__range"),ae=e.querySelectorAll("input"),ce=e.querySelectorAll(".range-
slider__thumb");return te=t.max-t.min,g("",!0,!
1),y(),E(),S(),w(),A(),c(e,"pointerdown",
(e=>{I(e)})),Array.from(ce).forEach(((e,n)=>{c(e,"pointerdown",
(t=>{D(t,n,e)})),c(e,"keydown",(e=>{e.which>=37&&e.which<=40&&(e.preventDefault(),
((e,n)=>{const r=(37===n||40===n?-1:1)*h(-1,1);if(!t.disabled&&!
t.thumbsDisabled[d(e)]){let t=N();t=t===H?1:t;let n=$.min+t*(Q.min===e?
r:0),i=$.max+t*(Q.max===e?
r:0);n>J.max&&(n=J.max),i<J.min&&(i=J.min),g({min:n,max:i},!0)}})
(n,e.which))}))})),c(se,"pointerdown",(e=>{(e=>{t.disabled||t.rangeSlideDisabled||
(P(e,se),ne=$.max-$.min,ie=!1,t.onRangeDragStart&&t.onRangeDragStart())})
(e)})),c(document,"pointermove",k),c(document,"pointerup",R),c(window,"resize",M),
{min:(e=!1)=>o(!e&&0!==e,t.min,(()=>{T(B,e)})),max:(e=!1)=>o(!e&&0!==e,t.max,
(()=>{T(U,e)})),step:(e=!1)=>o(!e,N(),(()=>{ae[0].step=e,ae[1].step=e,g("",!0,!0,!
1)})),value:(e=!1)=>o(!e,[$.min,$.max],(()=>{g(r(e[0],e[1]),!0,!0,!
1),y()})),orientation:(e=!1)=>o(!e,t.orientation,(()=>{t.orientation=e,A(),g("",!
0,!0,!1)})),disabled:(e=!0)=>{t.disabled=!!e,E()},thumbsDisabled:(e=[!0,!
0])=>{t.thumbsDisabled=e,p(),y(),w(),S()},rangeSlideDisabled:(e=!
0)=>{t.rangeSlideDisabled=!!e},currentValueIndex:()=>ie?ie===B?0:1:-
1,removeGlobalEventListeners:
()=>{u(document,"pointermove",k),u(document,"pointerup",R),u(window,"resize",M)}}}}
},n={},function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:
{}};return t[r](o,o.exports,e),o.exports}(138))},57890:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{default:()=>Qt});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)},i="function"==typeof
Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!
==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var
n}function s(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function
a(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 c(e,t){try{return t in
e}catch(e){return!1}}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||
s,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var
i=Array.isArray(t);return i===Array.isArray(e)?i?
n.arrayMerge(e,t,n):function(e,t,n){var r={};return
n.isMergeableObject(e)&&a(e).forEach((function(t)
{r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return c(e,t)&&!
(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||
(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return
u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)
(e[i],t[i],n):r[i]=o(t[i],n))})),r}(e,t,n):o(t,n)}u.all=function(e,t){if(!
Array.isArray(e))throw new Error("first argument should be an array");return
e.reduce((function(e,n){return u(e,n,t)}),{})};var l=u;function h(e){return e
instanceof HTMLElement}function d(e){return"function"==typeof e}function f(e)
{return"string"==typeof e}function p(e){return void 0===e}class g{on(e,t,n,r)
{return void 0===r&&(r=!
1),p(this.bindings)&&(this.bindings={}),p(this.bindings[e])&&(this.bindings[e]=[]),
this.bindings[e].push({handler:t,ctx:n,once:r}),this}once(e,t,n){return
this.on(e,t,n,!0)}off(e,t){return p(this.bindings)||p(this.bindings[e])||(p(t)?
delete
this.bindings[e]:this.bindings[e].forEach(((n,r)=>{n.handler===t&&this.bindings[e].
splice(r,1)}))),this}trigger(e){for(var t=arguments.length,n=new Array(t>1?t-
1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!
p(this.bindings)&&this.bindings[e]&&this.bindings[e].forEach(((t,r)=>{const{ctx:i,h
andler:o,once:s}=t,a=i||
this;o.apply(a,n),s&&this.bindings[e].splice(r,1)})),this}}function m(e){const
t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++)
{const r=t[n],i=e[r];"constructor"!==r&&"function"==typeof
i&&(e[r]=i.bind(e))}return e}function v(e){return f(e)&&""!==e?"-"!
==e.charAt(e.length-1)?`${e}-`:e:""}function b(e){return null==e||!e.element||!
e.on}function y(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-
xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return
e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}function w(){return
w=Object.assign?Object.assign.bind():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},w.apply(this,arguments)}function _(e,t){if(null==e)return{};var
n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||
(i[n]=e[n]);return i}const
E=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSide
Direction","flipAlignment"],S=["mainAxis","crossAxis","limiter"];function T(e)
{return e.split("-")[1]}function A(e){return"y"===e?"height":"width"}function C(e)
{return e.split("-")[0]}function O(e)
{return["top","bottom"].includes(C(e))?"x":"y"}function x(e,t,n)
{let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-
i.height/2,a=O(t),c=A(a),u=r[c]/2-i[c]/2,l="x"===a;let h;switch(C(t))
{case"top":h={x:o,y:r.y-
i.height};break;case"bottom":h={x:o,y:r.y+r.height};break;case"right":h={x:r.x+r.wi
dth,y:s};break;case"left":h={x:r.x-i.width,y:s};break;defau
lt:h={x:r.x,y:r.y}}switch(T(t)){case"start":h[a]-=u*(n&&l?-
1:1);break;case"end":h[a]+=u*(n&&l?-1:1)}return h}function I(e){return"number"!
=typeof e?function(e){return w({top:0,right:0,bottom:0,left:0},e)}(e):
{top:e,right:e,bottom:e,left:e}}function P(e){return w({},e,
{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function D(e,t){var
n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,
{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:h="floatin
g",altBoundary:d=!
1,padding:f=0}=t,p=I(f),g=a[d?"floating"===h?"reference":"floating":h],m=P(await
o.getClippingRect({element:null==(n=await(null==o.isElement?void
0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void
0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),v="floa
ting"===h?w({},s.floating,{x:r,y:i}):s.reference,b=await(null==o.getOffsetParent?
void 0:o.getOffsetParent(a.floating)),y=await(null==o.isElement?void
0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||
{x:1,y:1},_=P(o.convertOffsetParentRelativeRectToViewportRelativeRect?await
o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,stra
tegy:c}):v);return{top:(m.top-_.top+p.top)/y.y,bottom:(_.bottom-
m.bottom+p.bottom)/y.y,left:(m.left-_.left+p.left)/y.x,right:(_.right-
m.right+p.right)/y.x}}const k=Math.min,R=Math.max;function M(e,t,n){return
R(e,k(t,n))}const N={left:"right",right:"left",bottom:"top",top:"bottom"};function
L(e){return e.replace(/left|right|bottom|top/g,(e=>N[e]))}const
F={start:"end",end:"start"};function j(e){return e.replace(/start|end/g,
(e=>F[e]))}function B(e){return"x"===e?"y":"x"}const U=function(e){return void
0===e&&(e={}),{options:e,fn(t)
{const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:c=!
0,crossAxis:u=!0}=e,l={x:n,y:r},h=O(i),d=B(h);let f=l[h],p=l[d];const
g="function"==typeof a?a(t):a,m="number"==typeof g?
{mainAxis:g,crossAxis:0}:w({mainAxis:0,crossAxis:0},g);if(c){const
e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]
+m.mainAxis,n=o.reference[h]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var
v,b;const
e="y"===h?"width":"height",t=["top","left"].includes(C(i)),n=o.reference[d]-
o.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?
0:m.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=s.offset)?void
0:b[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[d]:p}}}};function
H(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function
G(e){return H(e).getComputedStyle(e)}function z(e){return e instanceof
H(e).Node}function V(e){return z(e)?(e.nodeName||"").toLowerCase():""}let
W;function q(){if(W)return W;const e=navigator.userAgentData;return
e&&Array.isArray(e.brands)?(W=e.brands.map((e=>e.brand+"/"+e.version)).join("
"),W):navigator.userAgent}function K(e){return e instanceof
H(e).HTMLElement}function Y(e){return e instanceof H(e).Element}function $(e)
{return"undefined"!=typeof ShadowRoot&&(e instanceof H(e).ShadowRoot||e instanceof
ShadowRoot)}function Q(e)
{const{overflow:t,overflowX:n,overflowY:r,display:i}=G(e);return/auto|scroll|
overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function X(e)
{return["table","td","th"].includes(V(e))}function Z(e){const
t=/firefox/i.test(q()),n=G(e),r=n.backdropFilter||
n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!
r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||
["transform","perspective"].some((e=>n.willChange.includes(e)))||
["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!
=t&&t.includes(e)}))}function
J(){return/^((?!chrome|android).)*safari/i.test(q())}function ee(e)
{return["html","body","#document"].includes(V(e))}const
te=Math.min,ne=Math.max,re=Math.round;function ie(e){const t=G(e);let
n=parseFloat(t.width),r=parseFloat(t.height);const i=K(e),o=i?e.offsetWidth:n,s=i?
e.offsetHeight:r,a=re(n)!==o||re(r)!==s;return a&&(n=o,r=s),
{width:n,height:r,fallback:a}}function oe(e){return Y(e)?e:e.contextElement}const
se={x:1,y:1};function ae(e){const t=oe(e);if(!K(t))return se;const
n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=ie(t);let s=(o?
re(n.width):n.width)/r,a=(o?re(n.height):n.height)/i;return s&&Number.isFinite(s)||
(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function ce(e,t,n,r){var i,o;void
0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect(),a=oe(e);let
c=se;t&&(r?Y(r)&&(c=ae(r)):c=ae(e));const u=a?H(a):window,l=J()&&n;let h=(s.left+
(l&&(null==(i=u.visualViewport)?void 0:i.offsetLeft)||0))/c.x,d=(s.top+
(l&&(null==(o=u.visualViewport)?void
0:o.offsetTop)||0))/c.y,f=s.width/c.x,p=s.height/c.y;if(a){const e=H(a),t=r&&Y(r)?
H(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const
e=ae(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseF
loat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,h*=e.x,d*=
e.y,f*=e.x,p*=e.y,h+=t.x,d+=t.y,n=H(n).frameElement}}return
P({width:f,height:p,x:h,y:d})}function ue(e){return((z(e)?
e.ownerDocument:e.document)||window.document).documentElement}function le(e){return
Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:
{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function he(e){return
ce(ue(e)).left+le(e).scrollLeft}function de(e){if("html"===V(e))return e;const
t=e.assignedSlot||e.parentNode||$(e)&&e.host||ue(e);return $(t)?t.host:t}function
fe(e){const t=de(e);return ee(t)?t.ownerDocument.body:K(t)&&Q(t)?t:fe(t)}function
pe(e,t){var n;void 0===t&&(t=[]);const r=fe(e),i=r===(null==(n=e.ownerDocument)?
void 0:n.body),o=H(r);return i?t.concat(o,o.visualViewport||[],Q(r)?r:
[]):t.concat(r,pe(r))}function ge(e,t,n){let r;if("viewport"===t)r=function(e,t)
{const n=H(e),r=ue(e),i=n.visualViewport;let
o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const e=J();(!
e||
e&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a,y:c}}
(e,n);else if("document"===t)r=function(e){const
t=ue(e),n=le(e),r=e.ownerDocument.body,i=ne(t.scrollWidth,t.clientWidth,r.scrollWid
th,r.clientWidth),o=ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight)
;let s=-n.scrollLeft+he(e);const a=-
n.scrollTop;return"rtl"===G(r).direction&&(s+=ne(t.clientWidth,r.clientWidth)-i),
{width:i,height:o,x:s,y:a}}(ue(e));else if(Y(t))r=function(e,t){const n=ce(e,!
0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=K(e)?ae(e):
{x:1,y:1};return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}
}(t,n);else{const n=w({},t);if(J()){var i,o;const t=H(e);n.x-
=(null==(i=t.visualViewport)?void 0:i.offsetLeft)||0,n.y-
=(null==(o=t.visualViewport)?void 0:o.offsetTop)||0}r=n}return P(r)}function
me(e,t){return K(e)&&"fixed"!==G(e).position?t?t(e):e.offsetParent:null}function
ve(e,t){const n=H(e);if(!K(e))return n;let
r=me(e,t);for(;r&&X(r)&&"static"===G(r).position;)r=me(r,t);return
r&&("html"===V(r)||"body"===V(r)&&"static"===G(r).position&&!Z(r))?n:r||function(e)
{let t=de(e);for(;K(t)&&!ee(t);){if(Z(t))return t;t=de(t)}return null}(e)||
n}function be(e,t,n){const r=K(t),i=ue(t),o=ce(e,!0,"fixed"===n,t);let
s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!
==V(t)||Q(i))&&(s=le(t)),K(t)){const e=ce(t,!
0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else
i&&(a.x=he(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-
a.y,width:o.width,height:o.height}}const ye={getClippingRect:function(e)
{let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const
o="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let
r=pe(e).filter((e=>Y(e)&&"body"!==V(e))),i=null;const o="fixed"===G(e).position;let
s=o?de(e):e;for(;Y(s)&&!ee(s);){const e=G(s),t=Z(s);"fixed"===e.position?i=null:(o?
t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?
i=e:r=r.filter((e=>e!==s)),s=de(s)}return t.set(e,r),r}(t,this._c):
[].concat(n),s=[...o,r],a=s[0],c=s.reduce(((e,n)=>{const r=ge(t,n,i);return
e.top=ne(r.top,e.top),e.right=te(r.right,e.right),e.bottom=te(r.bottom,e.bottom),e.
left=ne(r.left,e.left),e}),ge(t,a,i));return{width:c.right-c.left,height:c.bottom-
c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:func
tion(e){let{rect:t,offsetParent:n,strategy:r}=e;const
i=K(n),o=ue(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const
c={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==V(n)||Q(o))&&(s=le(n)),K(n))){const
e=ce(n);a=ae(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,h
eight:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-
s.scrollTop*a.y+c.y}},isElement:Y,getDimensions:function(e){return
ie(e)},getOffsetParent:ve,getDocumentElement:ue,getScale:ae,async
getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const
i=this.getOffsetParent||ve,o=this.getDimensions;return{reference:be(t,await
i(n),r),floating:w({x:0,y:0},await
o(n))}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===G(e).dire
ction};function we(e){e.cleanup&&e.cleanup();const
t=e._getResolvedAttachToOptions();let n=t.element;const r=function(e,t){const
n={strategy:"absolute",middleware:[]},r=function(e){return!(!e.options.arrow||!
e.el)&&e.el.querySelector(".shepherd-arrow")}(t);return b(e)||
(n.middleware.push(function(e){return void 0===e&&(e={}),
{name:"flip",options:e,async fn(t){var
n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements
:c}=t,{mainAxis:u=!0,crossAxis:l=!
0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="no
ne",flipAlignment:p=!0}=e,g=_(e,E),m=C(r),v=C(s)===s,b=await(null==a.isRTL?void
0:a.isRTL(c.floating)),y=h||(v||!p?[L(s)]:function(e){const
t=L(e);return[j(e),t,j(t)]}(s));h||"none"===f||y.push(...function(e,t,n,r){const
i=T(e);let o=function(e,t,n){const
r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(
e){case"top":case"bottom":return
n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}
(C(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(j)))),o}
(s,p,f,b));const w=[s,...y],S=await D(t,g),x=[];let I=(null==(n=i.flip)?void
0:n.overflows)||[];if(u&&x.push(S[m]),l){const{main:e,cross:t}=function(e,t,n){void
0===n&&(n=!1);const r=T(e),i=O(e),o=A(i);let s="x"===i?
r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return
t.reference[o]>t.floating[o]&&(s=L(s)),{main:s,cross:L(s)}}
(r,o,b);x.push(S[e],S[t])}if(I=[...I,{placement:r,overflows:x}],!
x.every((e=>e<=0))){var P,k;const e=((null==(P=i.flip)?void 0:P.index)||
0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let
n=null==(k=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-
t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(d){case"bestFit":{var R;const
e=null==(R=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),
0)])).sort(((e,t)=>e[1]-t[1]))[0])?void
0:R[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:
{placement:n}}}return{}}}}(),function(e){return void 0===e&&(e={}),
{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!
0,crossAxis:s=!
1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=e,c=_(e,S),u={x:n,y:r},l=awai
t D(t,c),h=O(C(i)),d=B(h);let f=u[h],p=u[d];if(o){const
e="y"===h?"bottom":"right";f=M(f+l["y"===h?"top":"left"],f,f-l[e])}if(s){const
e="y"===d?"bottom":"right";p=M(p+l["y"===d?"top":"left"],p,p-l[e])}const
g=a.fn(w({},t,{[h]:f,[d]:p}));return w({},g,{data:{x:g.x-n,y:g.y-r}})}}}
({limiter:U(),crossAxis:!
0})),r&&n.middleware.push((e=>({name:"arrow",options:e,async fn(t)
{const{element:n,padding:r=0}=e||{},
{x:i,y:o,placement:s,rects:a,platform:c,elements:u}=t;if(null==n)return{};const
l=I(r),h={x:i,y:o},d=O(s),f=A(d),p=await
c.getDimensions(n),g="y"===d,m=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeigh
t":"clientWidth",y=a.reference[f]+a.reference[d]-h[d]-a.floating[f],w=h[d]-
a.reference[d],_=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let
E=_?_[b]:0;E&&await(null==c.isElement?void 0:c.isElement(_))||(E=u.floating[b]||
a.floating[f]);const
S=y/2-w/2,C=l[m],x=E-p[f]-l[v],P=E/2-p[f]/2+S,D=M(C,P,x),k=null!=T(s)&&P!
=D&&a.reference[f]/2-(P<C?l[m]:l[v])-p[f]/2<0;return{[d]:h[d]-(k?P<C?C-P:x-
P:0),data:{[d]:D,centerOffset:P-D}}}}))
({element:r})),n.placement=e.on),l(t.options.floatingUIOptions||{},n)}
(t,e),i=b(t);return
i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd
-centered")),e.cleanup=function(e,t,n,r){void
0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!
0,animationFrame:a=!1}=r,c=i&&!a,u=c||o?[...Y(e)?pe(e):e.contextElement?
pe(e.contextElement):[],...pe(t)]:
[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!
0}),o&&e.addEventListener("resize",n)}));let l,h=null;s&&(h=new
ResizeObserver((()=>{n()})),Y(e)&&!a&&h.observe(e),Y(e)||!e.contextElement||a||
h.observe(e.contextElement),h.observe(t));let d=a?ce(e):null;return a&&function t()
{const r=ce(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||
n(),d=r,l=requestAnimationFrame(t)}(),n(),()=>{var
e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),o&&e.removeEventListener("res
ize",n)})),null==(e=h)||e.disconnect(),h=null,a&&cancelAnimationFrame(l)}}(n,e.el,
(()=>{e.el?function(e,t,n,r){((e,t,n)=>{const r=new
Map,i=w({platform:ye},n),o=w({},i.platform,
{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",midd
leware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(null==s.isRTL?void
0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),
{x:l,y:h}=x(u,r,c),d=r,f={},p=0;for(let n=0;n<a.length;n++)
{const{name:o,fn:g}=a[n],{x:m,y:v,data:b,reset:y}=await
g({x:l,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:u,platf
orm:s,elements:{reference:e,floating:t}});l=null!=m?m:l,h=null!=v?v:h,f=w({},f,
{[o]:w({},f[o],b)}),y&&p<=50&&(p++,"object"==typeof
y&&(y.placement&&(d=y.placement),y.rects&&(u=!0===y.rects?await
s.getElementRects({reference:e,floating:t,strategy:i}):y.rects),
({x:l,y:h}=x(u,d,c))),n=-
1)}return{x:l,y:h,placement:d,strategy:i,middlewareData:f}})(e,t,w({},i,
{platform:o}))})(e,t.el,n).then(function(e,t){return
n=>{let{x:r,y:i,placement:o,middlewareData:s}=n;return e.el?(t?
Object.assign(e.el.style,
{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -
50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${r}px`,top:`$
{i}px`}),e.el.dataset.popperPlacement=o,function(e,t){const
n=e.querySelector(".shepherd-arrow");if(n&&t.arrow)
{const{x:e,y:r}=t.arrow;Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!
=r?`${r}px`:""})}}(e.el,s),e):e}}(t,r)).then((e=>new
Promise((t=>{setTimeout((()=>t(e)),300)})))).then((e=>{e&&e.el&&e.el.focus({prevent
Scroll:!0})}))}(n,e,r,i):e.cleanup()})),e.target=t.element,r}function _e()
{}function Ee(e,t){for(const n in t)e[n]=t[n];return e}function Se(e){return
e()}function Te(){return Object.create(null)}function Ae(e){e.forEach(Se)}function
Ce(e){return"function"==typeof e}function Oe(e,t){return e!=e?t==t:e!==t||
e&&"object"==typeof e||"function"==typeof e}function xe(e,t)
{e.appendChild(t)}function Ie(e,t,n){e.insertBefore(t,n||null)}function Pe(e)
{e.parentNode&&e.parentNode.removeChild(e)}function De(e){return
document.createElement(e)}function ke(e){return
document.createElementNS("http://www.w3.org/2000/svg",e)}function Re(e){return
document.createTextNode(e)}function Me(){return Re(" ")}function Ne(e,t,n,r){return
e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Le(e,t,n)
{null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function
Fe(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in
t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?
e.value=e[r]=t[r]:n[r]&&n[r].set?e[r]=t[r]:Le(e,r,t[r])}function je(e,t,n)
{e.classList[n?"add":"remove"](t)}let Be;function Ue(e){Be=e}function He(){if(!
Be)throw new Error("Function called outside component initialization");return
Be}function Ge(e){He().$$.after_update.push(e)}const ze=[],Ve=[];let We=[];const
qe=[],Ke=Promise.resolve();let Ye=!1;function $e(e){We.push(e)}const Qe=new Set;let
Xe=0;function Ze(){if(0!==Xe)return;const e=Be;do{try{for(;Xe<ze.length;){const
e=ze[Xe];Xe++,Ue(e),Je(e.$$)}}catch(e){throw
ze.length=0,Xe=0,e}for(Ue(null),ze.length=0,Xe=0;Ve.length;)Ve.pop()();for(let
e=0;e<We.length;e+=1){const t=We[e];Qe.has(t)||
(Qe.add(t),t())}We.length=0}while(ze.length);for(;qe.length;)qe.pop()();Ye=!
1,Qe.clear(),Ue(e)}function Je(e){if(null!==e.fragment)
{e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-
1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($e)}}const et=new
Set;let tt;function nt(){tt={r:0,c:[],p:tt}}function rt(){tt.r||
Ae(tt.c),tt=tt.p}function it(e,t){e&&e.i&&(et.delete(e),e.i(t))}function
ot(e,t,n,r){if(e&&e.o)
{if(et.has(e))return;et.add(e),tt.c.push((()=>{et.delete(e),r&&(n&&e.d(1),r())})),e
.o(t)}else r&&r()}function st(e){e&&e.c()}function at(e,t,n,r)
{const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||$e((()=>{const t=e.$
$.on_mount.map(Se).filter(Ce);e.$$.on_destroy?e.$$.on_destroy.push(...t):Ae(t),e.$
$.on_mount=[]})),o.forEach($e)}function ct(e,t){const n=e.$$;null!
==n.fragment&&(function(e){const t=[],n=[];We.forEach((r=>-1===e.indexOf(r)?
t.push(r):n.push(r))),n.forEach((e=>e())),We=t}
(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragme
nt=null,n.ctx=[])}function ut(e,t,n,r,i,o,s,a){void 0===a&&(a=[-1]);const
c=Be;Ue(e);const u=e.$$={fragment:null,ctx:
[],props:o,update:_e,not_equal:i,bound:Te(),on_mount:[],on_destroy:
[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?
c.$$.context:[])),callbacks:Te(),dirty:a,skip_bound:!1,root:t.target||c.$
$.root};s&&s(u.root);let l=!1;if(u.ctx=n?n(e,t.props||{},(function(t,n){const r=!
(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void
0:arguments[2]:n;return u.ctx&&i(u.ctx[t],u.ctx[t]=r)&&(!
u.skip_bound&&u.bound[t]&&u.bound[t](r),l&&function(e,t){-1===e.$
$.dirty[0]&&(ze.push(e),Ye||(Ye=!0,Ke.then(Ze)),e.$$.dirty.fill(0)),e.$$.dirty[t/
31|0]|=1<<t%31}(e,t)),n})):[],u.update(),l=!0,Ae(u.before_update),u.fragment=!!
r&&r(u.ctx),t.target){if(t.hydrate){const e=function(e){return
Array.from(e.childNodes)}(t.target);u.fragment&&u.fragment.l(e),e.forEach(Pe)}else
u.fragment&&u.fragment.c();t.intro&&it(e.$
$.fragment),at(e,t.target,t.anchor,t.customElement),Ze()}Ue(c)}class lt{$destroy()
{ct(this,1),this.$destroy=_e}$on(e,t){if(!Ce(t))return _e;const n=this.$
$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const
e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!
==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!
1)}}function ht(e){let t,n,r,i,o;return{c(){t=De("button"),Le(t,"aria-
label",n=e[3]?e[3]:null),Le(t,"class",r=`${e[1]||""} shepherd-button $
{e[4]?"shepherd-button-
secondary":""}`),t.disabled=e[2],Le(t,"tabindex","0")},m(n,r)
{Ie(n,t,r),t.innerHTML=e[5],i||(o=Ne(t,"click",(function()
{Ce(e[0])&&e[0].apply(this,arguments)})),i=!0)},p(i,o)
{let[s]=o;e=i,32&s&&(t.innerHTML=e[5]),8&s&&n!==(n=e[3]?e[3]:null)&&Le(t,"aria-
label",n),18&s&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-
secondary":""}`)&&Le(t,"class",r),4&s&&(t.disabled=e[2])},i:_e,o:_e,d(e)
{e&&Pe(t),i=!1,o()}}}function dt(e,t,n){let r,i,o,s,a,c,
{config:u,step:l}=t;function h(e){return d(e)?e.call(l):e}return e.$
$set=e=>{"config"in e&&n(6,u=e.config),"step"in e&&n(7,l=e.step)},e.$
$.update=()=>{192&e.$$.dirty&&(n(0,r=u.action?
u.action.bind(l.tour):null),n(1,i=u.classes),n(2,o=!!
u.disabled&&h(u.disabled)),n(3,s=u.label?
h(u.label):null),n(4,a=u.secondary),n(5,c=u.text?h(u.text):null))},
[r,i,o,s,a,c,u,l]}class ft extends lt{constructor(e){super(),ut(this,e,dt,ht,Oe,
{config:6,step:7})}}function
pt(e,t,n){const r=e.slice();return r[2]=t[n],r}function gt(e){let
t,n,r=e[1],i=[];for(let t=0;t<r.length;t+=1)i[t]=mt(pt(e,r,t));const
o=e=>ot(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let
e=0;e<i.length;e+=1)i[e].c();t=Re("")},m(e,r){for(let
t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);Ie(e,t,r),n=!0},p(e,n){if(3&n){let
s;for(r=e[1],s=0;s<r.length;s+=1){const o=pt(e,r,s);i[s]?(i[s].p(o,n),it(i[s],1)):
(i[s]=mt(o),i[s].c(),it(i[s],1),i[s].m(t.parentNode,t))}for(nt(),s=r.length;s<i.len
gth;s+=1)o(s);rt()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)it(i[e]);n=!0}},o(e)
{i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)ot(i[e]);n=!1},d(e){!function(e,t)
{for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(i,e),e&&Pe(t)}}}function mt(e){let
t,n;return t=new ft({props:{config:e[2],step:e[0]}}),{c(){st(t.$$.fragment)},m(e,r)
{at(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.config=e[2]),1&n&&(r.step=e[0]),t.
$set(r)},i(e){n||(it(t.$$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e)
{ct(t,e)}}}function vt(e){let t,n,r=e[1]&>(e);return{c()
{t=De("footer"),r&&r.c(),Le(t,"class","shepherd-footer")},m(e,i)
{Ie(e,t,i),r&&r.m(t,null),n=!0},p(e,n){let[i]=n;e[1]?r?(r.p(e,i),2&i&&it(r,1)):
(r=gt(e),r.c(),it(r,1),r.m(t,null)):r&&(nt(),ot(r,1,1,(()=>{r=null})),rt())},i(e)
{n||(it(r),n=!0)},o(e){ot(r),n=!1},d(e){e&&Pe(t),r&&r.d()}}}function bt(e,t,n){let
r,{step:i}=t;return e.$$set=e=>{"step"in e&&n(0,i=e.step)},e.$$.update=()=>{1&e.$
$.dirty&&n(1,r=i.options.buttons)},[i,r]}class yt extends lt{constructor(e)
{super(),ut(this,e,bt,vt,Oe,{step:0})}}function wt(e){let t,n,r,i,o;return{c()
{t=De("button"),n=De("span"),n.textContent="×",Le(n,"aria-
hidden","true"),Le(t,"aria-label",r=e[0].label?e[0].label:"Close
Tour"),Le(t,"class","shepherd-cancel-icon"),Le(t,"type","button")},m(r,s)
{Ie(r,t,s),xe(t,n),i||(o=Ne(t,"click",e[1]),i=!0)},p(e,n){let[i]=n;1&i&&r!
==(r=e[0].label?e[0].label:"Close Tour")&&Le(t,"aria-label",r)},i:_e,o:_e,d(e)
{e&&Pe(t),i=!1,o()}}}function _t(e,t,n){let{cancelIcon:r,step:i}=t;return e.$
$set=e=>{"cancelIcon"in e&&n(0,r=e.cancelIcon),"step"in e&&n(2,i=e.step)},
[r,e=>{e.preventDefault(),i.cancel()},i]}class Et extends lt{constructor(e)
{super(),ut(this,e,_t,wt,Oe,{cancelIcon:0,step:2})}}function St(e){let t;return{c()
{t=De("h3"),Le(t,"id",e[1]),Le(t,"class","shepherd-title")},m(n,r){Ie(n,t,r),e[3]
(t)},p(e,n){let[r]=n;2&r&&Le(t,"id",e[1])},i:_e,o:_e,d(n){n&&Pe(t),e[3]
(null)}}}function Tt(e,t,n){let{labelId:r,element:i,title:o}=t;return
Ge((()=>{d(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)})),e.$$set=e=>{"labelId"in
e&&n(1,r=e.labelId),"element"in e&&n(0,i=e.element),"title"in e&&n(2,o=e.title)},
[i,r,o,function(e){Ve[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}class At extends
lt{constructor(e){super(),ut(this,e,Tt,St,Oe,
{labelId:1,element:0,title:2})}}function Ct(e){let t,n;return t=new At({props:
{labelId:e[0],title:e[2]}}),{c(){st(t.$$.fragment)},m(e,r){at(t,e,r),n=!0},p(e,n)
{const r={};1&n&&(r.labelId=e[0]),4&n&&(r.title=e[2]),t.$set(r)},i(e){n||(it(t.$
$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e){ct(t,e)}}}function Ot(e)
{let t,n;return t=new Et({props:{cancelIcon:e[3],step:e[1]}}),{c(){st(t.$
$.fragment)},m(e,r){at(t,e,r),n=!0},p(e,n){const
r={};8&n&&(r.cancelIcon=e[3]),2&n&&(r.step=e[1]),t.$set(r)},i(e){n||(it(t.$
$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e){ct(t,e)}}}function xt(e)
{let t,n,r,i=e[2]&&Ct(e),o=e[3]&&e[3].enabled&&Ot(e);return{c()
{t=De("header"),i&&i.c(),n=Me(),o&&o.c(),Le(t,"class","shepherd-header")},m(e,s)
{Ie(e,t,s),i&&i.m(t,null),xe(t,n),o&&o.m(t,null),r=!0},p(e,r){let[s]=r;e[2]?i?
(i.p(e,s),4&s&&it(i,1)):(i=Ct(e),i.c(),it(i,1),i.m(t,n)):i&&(nt(),ot(i,1,1,
(()=>{i=null})),rt()),e[3]&&e[3].enabled?o?(o.p(e,s),8&s&&it(o,1)):
(o=Ot(e),o.c(),it(o,1),o.m(t,null)):o&&(nt(),ot(o,1,1,(()=>{o=null})),rt())},i(e)
{r||(it(i),it(o),r=!0)},o(e){ot(i),ot(o),r=!1},d(e)
{e&&Pe(t),i&&i.d(),o&&o.d()}}}function It(e,t,n){let r,i,
{labelId:o,step:s}=t;return e.$$set=e=>{"labelId"in e&&n(0,o=e.labelId),"step"in
e&&n(1,s=e.step)},e.$$.update=()=>{2&e.$
$.dirty&&(n(2,r=s.options.title),n(3,i=s.options.cancelIcon))},[o,s,r,i]}class Pt
extends lt{constructor(e){super(),ut(this,e,It,xt,Oe,{labelId:0,step:1})}}function
Dt(e){let t;return{c(){t=De("div"),Le(t,"class","shepherd-
text"),Le(t,"id",e[1])},m(n,r){Ie(n,t,r),e[3](t)},p(e,n)
{let[r]=n;2&r&&Le(t,"id",e[1])},i:_e,o:_e,d(n){n&&Pe(t),e[3](null)}}}function
kt(e,t,n){let{descriptionId:r,element:i,step:o}=t;return
Ge((()=>{let{text:e}=o.options;d(e)&&(e=e.call(o)),h(e)?
i.appendChild(e):n(0,i.innerHTML=e,i)})),e.$$set=e=>{"descriptionId"in
e&&n(1,r=e.descriptionId),"element"in e&&n(0,i=e.element),"step"in
e&&n(2,o=e.step)},[i,r,o,function(e){Ve[e?"unshift":"push"]
((()=>{i=e,n(0,i)}))}]}class Rt extends lt{constructor(e)
{super(),ut(this,e,kt,Dt,Oe,{descriptionId:1,element:0,step:2})}}function Mt(e){let
t,n;return t=new Pt({props:{labelId:e[1],step:e[2]}}),{c(){st(t.$
$.fragment)},m(e,r){at(t,e,r),n=!0},p(e,n){const
r={};2&n&&(r.labelId=e[1]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(it(t.$
$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e){ct(t,e)}}}function Nt(e)
{let t,n;return t=new Rt({props:{descriptionId:e[0],step:e[2]}}),{c(){st(t.$
$.fragment)},m(e,r){at(t,e,r),n=!0},p(e,n){const
r={};1&n&&(r.descriptionId=e[0]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(it(t.$
$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e){ct(t,e)}}}function Lt(e)
{let t,n;return t=new yt({props:{step:e[2]}}),{c(){st(t.$$.fragment)},m(e,r)
{at(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(it(t.$
$.fragment,e),n=!0)},o(e){ot(t.$$.fragment,e),n=!1},d(e){ct(t,e)}}}function Ft(e)
{let t,n,r,i,o=!p(e[2].options.title)||
e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,s=!
p(e[2].options.text),a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.le
ngth,c=o&&Mt(e),u=s&&Nt(e),l=a&&Lt(e);return{c()
{t=De("div"),c&&c.c(),n=Me(),u&&u.c(),r=Me(),l&&l.c(),Le(t,"class","shepherd-
content")},m(e,o)
{Ie(e,t,o),c&&c.m(t,null),xe(t,n),u&&u.m(t,null),xe(t,r),l&&l.m(t,null),i=!
0},p(e,i){let[h]=i;4&h&&(o=!p(e[2].options.title)||
e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled),o?c?
(c.p(e,h),4&h&&it(c,1)):(c=Mt(e),c.c(),it(c,1),c.m(t,n)):c&&(nt(),ot(c,1,1,
(()=>{c=null})),rt()),4&h&&(s=!p(e[2].options.text)),s?u?(u.p(e,h),4&h&&it(u,1)):
(u=Nt(e),u.c(),it(u,1),u.m(t,r)):u&&(nt(),ot(u,1,1,
(()=>{u=null})),rt()),4&h&&(a=Array.isArray(e[2].options.buttons)&&e[2].options.but
tons.length),a?l?(l.p(e,h),4&h&&it(l,1)):
(l=Lt(e),l.c(),it(l,1),l.m(t,null)):l&&(nt(),ot(l,1,1,(()=>{l=null})),rt())},i(e)
{i||(it(c),it(u),it(l),i=!0)},o(e){ot(c),ot(u),ot(l),i=!1},d(e)
{e&&Pe(t),c&&c.d(),u&&u.d(),l&&l.d()}}}function jt(e,t,n)
{let{descriptionId:r,labelId:i,step:o}=t;return e.$$set=e=>{"descriptionId"in
e&&n(0,r=e.descriptionId),"labelId"in e&&n(1,i=e.labelId),"step"in
e&&n(2,o=e.step)},[r,i,o]}class Bt extends lt{constructor(e)
{super(),ut(this,e,jt,Ft,Oe,{descriptionId:0,labelId:1,step:2})}}function Ut(e){let
t;return{c(){t=De("div"),Le(t,"class","shepherd-arrow"),Le(t,"data-popper-
arrow","")},m(e,n){Ie(e,t,n)},d(e){e&&Pe(t)}}}function Ht(e){let
t,n,r,i,o,s,a,c,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.
element&&e[4].options.attachTo.on&&Ut();r=new Bt({props:
{descriptionId:e[2],labelId:e[3],step:e[4]}});let l=[{"aria-
describedby":i=p(e[4].options.text)?null:e[2]},{"aria-
labelledby":o=e[4].options.title?e[3]:null},e[1],{role:"dialog"},
{tabindex:"0"}],h={};for(let e=0;e<l.length;e+=1)h=Ee(h,l[e]);return{c()
{t=De("div"),u&&u.c(),n=Me(),st(r.$$.fragment),Fe(t,h),je(t,"shepherd-has-cancel-
icon",e[5]),je(t,"shepherd-has-title",e[6]),je(t,"shepherd-element",!0)},m(i,o)
{Ie(i,t,o),u&&u.m(t,null),xe(t,n),at(r,t,null),e[13](t),s=!0,a||
(c=Ne(t,"keydown",e[7]),a=!0)},p(e,a)
{let[c]=a;e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&
&e[4].options.attachTo.on?u||(u=Ut(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const
d={};4&c&&(d.descriptionId=e[2]),8&c&&(d.labelId=e[3]),16&c&&(d.step=e[4]),r.
$set(d),Fe(t,h=function(e,t){const n={},r={},i={$$scope:1};let
o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const e in s)e in a||
(r[e]=1);for(const e in a)i[e]||(n[e]=a[e],i[e]=1);e[o]=a}else for(const e in
s)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}(l,[(!s||20&c&&i!
==(i=p(e[4].options.text)?null:e[2]))&&{"aria-describedby":i},(!s||24&c&&o!
==(o=e[4].options.title?e[3]:null))&&{"aria-labelledby":o},2&c&&e[1],
{role:"dialog"},{tabindex:"0"}])),je(t,"shepherd-has-cancel-
icon",e[5]),je(t,"shepherd-has-title",e[6]),je(t,"shepherd-element",!0)},i(e){s||
(it(r.$$.fragment,e),s=!0)},o(e){ot(r.$$.fragment,e),s=!1},d(n)
{n&&Pe(t),u&&u.d(),ct(r),e[13](null),a=!1,c()}}}function Gt(e){return e.split("
").filter((e=>!!e.length))}function zt(e,t,n){let r,i,o,
{classPrefix:s,element:a,descriptionId:c,firstFocusableElement:u,focusableElements:
l,labelId:h,lastFocusableElement:d,step:p,dataStepId:g}=t;var m;return
m=()=>{n(1,g={[`data-${s}shepherd-step-
id`]:p.id}),n(9,l=a.querySelectorAll('a[href], area[href], input:not([disabled]),
select:not([disabled]), textarea:not([disabled]), button:not([disabled]),
[tabindex="0"]')),n(8,u=l[0]),n(10,d=l[l.length-1])},He().$
$.on_mount.push(m),Ge((()=>{o!==p.options.classes&&(function(e){if(f(e)){const
t=Gt(e);t.length&&a.classList.remove(...t)}}(o),o=p.options.classes,function(e)
{if(f(e)){const t=Gt(e);t.length&&a.classList.add(...t)}}(o))})),e.$
$set=e=>{"classPrefix"in e&&n(11,s=e.classPrefix),"element"in
e&&n(0,a=e.element),"descriptionId"in
e&&n(2,c=e.descriptionId),"firstFocusableElement"in
e&&n(8,u=e.firstFocusableElement),"focusableElements"in
e&&n(9,l=e.focusableElements),"labelId"in
e&&n(3,h=e.labelId),"lastFocusableElement"in
e&&n(10,d=e.lastFocusableElement),"step"in e&&n(4,p=e.step),"dataStepId"in
e&&n(1,g=e.dataStepId)},e.$$.update=()=>{16&e.$
$.dirty&&(n(5,r=p.options&&p.options.cancelIcon&&p.options.cancelIcon.enabled),n(6,
i=p.options&&p.options.title))},
[a,g,c,h,p,r,i,e=>{const{tour:t}=p;switch(e.keyCode){case
9:if(0===l.length){e.preventDefault();break}e.shiftKey?
(document.activeElement===u||document.activeElement.classList.contains("shepherd-
element"))&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDe
fault(),u.focus());break;case 27:t.options.exitOnEsc&&p.cancel();break;case
37:t.options.keyboardNavigation&&t.back();break;case
39:t.options.keyboardNavigation&&t.next()}},u,l,d,s,()=>a,function(e)
{Ve[e?"unshift":"push"]((()=>{a=e,n(0,a)}))}]}class Vt extends lt{constructor(e)
{super(),ut(this,e,zt,Ht,Oe,
{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements
:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get
getElement(){return this.$$.ctx[12]}}class Wt extends g{constructor(e,t){return
void 0===t&&(t={}),super(e,t),this.tour=e,this.classPrefix=this.tour.options?
v(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=nul
l,m(this),this._setOptions(t),this}cancel()
{this.tour.cancel(),this.trigger("cancel")}complete()
{this.tour.complete(),this.trigger("complete")}destroy()
{this.cleanup&&this.cleanup(),this.cleanup=null,h(this.el)&&(this.el.remove(),this.
el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return
this.tour}hide(){this.tour.modal.hide(),this.trigger("before-
hide"),this.el&&(this.el.hidden=!
0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions()
{return this._resolvedAttachTo=function(e){const t=e.options.attachTo||
{},n=Object.assign({},t);if(d(n.element)&&(n.element=n.element.call(e)),f(n.element
)){try{n.element=document.querySelector(n.element)}catch(e){}n.element||
console.error(`The element for this Shepherd step was not found $
{t.element}`)}return n}(this),this._resolvedAttachTo}_getResolvedAttachToOptions()
{return null===this._resolvedAttachTo?
this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return
Boolean(this.el&&!this.el.hidden)}show(){return d(this.options.beforeShowPromise)?
Promise.resolve(this.options.beforeShowPromise()).then((()=>this._show())):Promise.
resolve(this._show())}updateStepOptions(e)
{Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementC
omponent.$set({step:this})}getElement(){return this.el}getTarget(){return
this.target}_createTooltipContent(){const e=`${this.id}-description`,t=`${this.id}-
label`;return this.shepherdElementComponent=new
Vt({target:this.tour.options.stepsContainer||document.body,props:
{classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this,styles:this.style
s}}),this.shepherdElementComponent.getElement()}_scrollTo(e)
{const{element:t}=this._getResolvedAttachToOptions();d(this.options.scrollToHandler
)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof
t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){const
t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?
e.classes:"",r=t&&t.classes?t.classes:"",i=[...n.split(" "),...r.split(" ")],o=new
Set(i);return Array.from(o).join(" ").trim()}_setOptions(e){void 0===e&&(e={});let
t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=l({},t||
{}),this.options=Object.assign({arrow:!0},t,e,function(e,t)
{return{floatingUIOptions:l(e.floatingUIOptions||{},t.floatingUIOptions||{})}}
(t,e));const{when:n}=this.options;this.options.classes=this._getClassOptions(e),thi
s.destroy(),this.id=this.options.id||`step-$
{y()}`,n&&Object.keys(n).forEach((e=>{this.on(e,n[e],this)}))}_setupElements()
{p(this.el)||
this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&functio
n(e){const{event:t,selector:n}=e.options.advanceOn||{};if(!t)return
console.error("advanceOn was defined, but no event name was passed.");{const
r=function(e,t){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!
p(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}(n,e);let
i;try{i=document.querySelector(n)}catch(e){}if(!p(n)&&!i)return console.error(`No
element was found for the selector supplied to advanceOn: ${n}`);i?
(i.addEventListener(t,r),e.on("destroy",(()=>i.removeEventListener(t,r)))):
(document.body.addEventListener(t,r,!0),e.on("destroy",
(()=>document.body.removeEventListener(t,r,!0))))}}(this),we(this)}_show()
{this.trigger("before-
show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||
this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElement
ForStep(this),this.el.hidden=!
1,this.options.scrollTo&&setTimeout((()=>{this._scrollTo(this.options.scrollTo)})),
this.el.hidden=!1;const
e=this.shepherdElementComponent.getElement(),t=this.target||
document.body;t.classList.add(`${this.classPrefix}shepherd-
enabled`),t.classList.add(`${this.classPrefix}shepherd-
target`),e.classList.add("shepherd-
enabled"),this.trigger("show")}_styleTargetElementForStep(e){const
t=e.target;t&&(e.options.highlightClass&&t.classList.add(e.options.highlightClass),
t.classList.remove("shepherd-target-click-disabled"),!
1===e.options.canClickTarget&&t.classList.add("shepherd-target-click-
disabled"))}_updateStepTargetOnHide(){const e=this.target||
document.body;this.options.highlightClass&&e.classList.remove(this.options.highligh
tClass),e.classList.remove("shepherd-target-click-disabled",`$
{this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function
qt(e){let t,n,r,i,o;return{c()
{t=ke("svg"),n=ke("path"),Le(n,"d",e[2]),Le(t,"class",r=(e[1]?"shepherd-modal-is-
visible":"")+" shepherd-modal-overlay-container")},m(r,s){Ie(r,t,s),xe(t,n),e[11]
(t),i||(o=Ne(t,"touchmove",e[3]),i=!0)},p(e,i){let[o]=i;4&o&&Le(n,"d",e[2]),2&o&&r!
==(r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-
container")&&Le(t,"class",r)},i:_e,o:_e,d(n){n&&Pe(t),e[11](null),i=!
1,o()}}}function Kt(e){if(!e)return null;const t=e instanceof
HTMLElement&&window.getComputedStyle(e).overflowY;return"hidden"!==t&&"visible"!
==t&&e.scrollHeight>=e.clientHeight?e:Kt(e.parentElement)}function Yt(e,t,n)
{let{element:r,openingProperties:i}=t;y();let o,s,a=!1;function c()
{n(4,i={width:0,height:0,x:0,y:0,r:0})}function u(){n(1,a=!1),f()}function
l(e,t,r,o){if(void 0===e&&(e=0),void 0===t&&(t=0),o)
{const{y:s,height:a}=function(e,t){const n=e.getBoundingClientRect();let r=n.y||
n.top,i=n.bottom||r+n.height;if(t){const e=t.getBoundingClientRect(),n=e.y||
e.top,o=e.bottom||
n+e.height;r=Math.max(r,n),i=Math.min(i,o)}return{y:r,height:Math.max(i-r,0)}}
(o,r),
{x:c,width:u,left:l}=o.getBoundingClientRect();n(4,i={width:u+2*e,height:a+2*e,x:
(c||l)-e,y:s-e,r:t})}else c()}function h(){n(1,a=!0)}c();const
d=e=>{e.preventDefault()};function f(){o&&(cancelAnimationFrame(o),o=void
0),window.removeEventListener("touchmove",d,{passive:!1})}return e.$
$set=e=>{"element"in e&&n(0,r=e.element),"openingProperties"in
e&&n(4,i=e.openingProperties)},e.$$.update=()=>{16&e.$$.dirty&&n(2,s=function(e)
{let{width:t,height:n,x:r=0,y:i=0,r:o=0}=e;const{innerWidth:s,innerHeight:a}=window
,{topLeft:c=0,topRight:u=0,bottomRight:l=0,bottomLeft:h=0}="number"==typeof o?
{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${s},${a}H0V0H${s}V$
{a}ZM${r+c},${i}a${c},${c},0,0,0-${c},${c}V${n+i-h}a${h},${h},0,0,0,${h},${h}H$
{t+r-l}a${l},${l},0,0,0,${l}-${l}V${i+u}a${u},${u},0,0,0-${u}-${u}Z`}(i))},
[r,a,s,e=>{e.stopPropagation()},i,()=>r,c,u,l,function(e)
{f(),e.tour.options.useModalOverlay?(function(e)
{const{modalOverlayOpeningPadding:t,modalOverlayOpeningRadius:n}=e.options,r=Kt(e.t
arget),i=()=>{o=void
0,l(t,n,r,e.target),o=requestAnimationFrame(i)};i(),window.addEventListener("touchm
ove",d,{passive:!1})}(e),h()):u()},h,function(e){Ve[e?"unshift":"push"]
((()=>{r=e,n(0,r)}))}]}class $t extends lt{constructor(e)
{super(),ut(this,e,Yt,qt,Oe,
{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModa
l:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get
closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get
positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get
show(){return this.$$.ctx[10]}}const Qt=new g;const Xt="undefined"==typeof
window;class Zt{constructor(){}}Xt?Object.assign(Qt,
{Tour:Zt,Step:Zt}):Object.assign(Qt,{Tour:class extends g{constructor(e){return
void 0===e&&(e={}),super(e),m(this),this.options=Object.assign({},{exitOnEsc:!
0,keyboardNavigation:!
0},e),this.classPrefix=v(this.options.classPrefix),this.steps=[],this.addSteps(this
.options.steps),
["active","cancel","complete","inactive","show","start"].map((e=>{(e=>{this.on(e,
(t=>{(t=t||{}).tour=this,Qt.trigger(e,t)}))})
(e)})),this._setTourID(),this}addStep(e,t){let n=e;return n instanceof Wt?
n.tour=this:n=new Wt(this,n),p(t)?
this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return
Array.isArray(e)&&e.forEach((e=>{this.addStep(e)})),this}back(){const
e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel()
{if(this.options.confirmCancel){const e="function"==typeof
this.options.confirmCancel,t=this.options.confirmCancelMessage||"Are you sure you
want to stop the tour?";(e?await
this.options.confirmCancel():window.confirm(t))&&this._done("cancel")}else
this._done("cancel")}complete(){this._done("complete")}getById(e){return
this.steps.find((t=>t.id===e))}getCurrentStep(){return this.currentStep}hide()
{const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return
Qt.activeTour===this}next(){const
e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?
this.complete():this.show(e+1,!0)}removeStep(e){const
t=this.getCurrentStep();this.steps.some(((t,n)=>{if(t.id===e)return
t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!
0})),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?
this.show(0):this.cancel())}show(e,t){void 0===e&&(e=0),void 0===t&&(t=!0);const
n=f(e)?
this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),d(n.options.showOn)
&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",
{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}start()
{this.trigger("start"),this.focusedElBeforeOpen=do
cument.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour
(),this.next()}_done(e){const
t=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.for
Each((e=>e.destroy())),function(e){if(e)
{const{steps:t}=e;t.forEach((e=>{e.options&&!
1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof
HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")}))}}
(this),this.trigger(e,{index:t}),Qt.activeTour=null,this.trigger("inactive",
{tour:this}),this.modal&&this.modal.hide(),
("cancel"===e||"complete"===e)&&this.modal){const
e=document.querySelector(".shepherd-modal-overlay-
container");e&&e.remove()}h(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.foc
us()}_setupActiveTour(){this.trigger("active",
{tour:this}),Qt.activeTour=this}_setupModal(){this.modal=new
$t({target:this.options.modalContainer||document.body,props:
{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(e,t){const
n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const e=t?
n+1:n-1;this.show(e,t)}}_updateStateBeforeShow()
{this.currentStep&&this.currentStep.hide(),this.isActive()||
this._setupActiveTour()}_setTourID(){const
e=this.options.tourName||"tour";this.id=`${e}--${y()}`}},Step:Wt})},23690:
(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var
r=n(46062),i=n.n(r),o=n(44036),s=n.n(o),a=n(96793),c=n.n(a),u=n(17892),l=n.n(u),h=n
(11173),d=n.n(h),f=n(42464),p=n.n(f),g=n(17377),m={};m.styleTagTransform=p(),m.setA
ttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),
i()(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},5767:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{default:()=>v});var
r=n(46062),i=n.n(r),o=n(44036),s=n.n(o),a=n(96793),c=n.n(a),u=n(17892),l=n.n(u),h=n
(11173),d=n.n(h),f=n(42464),p=n.n(f),g=n(93727),m={};m.styleTagTransform=p(),m.setA
ttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),
i()(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},52518:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{default:()=>v});var
r=n(46062),i=n.n(r),o=n(44036),s=n.n(o),a=n(96793),c=n.n(a),u=n(17892),l=n.n(u),h=n
(11173),d=n.n(h),f=n(42464),p=n.n(f),g=n(45917),m={};m.styleTagTransform=p(),m.setA
ttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),
i()(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},68310:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{default:()=>v});var
r=n(46062),i=n.n(r),o=n(44036),s=n.n(o),a=n(96793),c=n.n(a),u=n(17892),l=n.n(u),h=n
(11173),d=n.n(h),f=n(42464),p=n.n(f),g=n(5948),m={};m.styleTagTransform=p(),m.setAt
tributes=l(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),i
()(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},46062:e=>{"use strict";var
t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e)
{n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var
c=e[a],u=r.base?c[0]+r.base:c[0],l=o[u]||0,h="".concat(u,"
").concat(l);o[u]=l+1;var
d=n(h),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!
==d)t[d].references++,t[d].updater(f);else{var p=i(f,r);r.byIndex=a,t.splice(a,0,
{identifier:h,updater:p,references:1})}s.push(h)}return s}function i(e,t){var
n=t.domAPI(t);return n.update(e),function(t){if(t)
{if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.sup
ports&&t.layer===e.layer)return;n.update(e=t)}else
n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e)
{e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var
c=r(e,i),u=0;u<o.length;u++){var
l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},96793:e=>{"use
strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var
n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof
window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return
t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means
that the value for the 'insert' parameter is
invalid.");r.appendChild(n)}},11173:e=>{"use strict";e.exports=function(e){var
t=document.createElement("style");return
e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},17892:(e,t,n)=>{"use
strict";e.exports=function(e){var
t=n.nc;t&&e.setAttribute("nonce",t)}},44036:e=>{"use strict";e.exports=function(e)
{if("undefined"==typeof document)return{update:function(){},remove:function()
{}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var
r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media
".concat(n.media," {"));var i=void 0!
==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):"","
{")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var
o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*#
sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURICompo
nent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}
(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!
1;e.parentNode.removeChild(e)}(t)}}}},42464:e=>{"use
strict";e.exports=function(e,t)
{if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.fir
stChild);t.appendChild(document.createTextNode(e))}}},28376:(e,t,n)=>{"use
strict";n.r(t),n.d(t,{AccessorModule:()=>a,AjaxModule:()=>f,CalcComponent:
()=>g,CellComponent:()=>m,ClipboardModule:()=>p,ColumnCalcsModule:
()=>T,ColumnComponent:()=>b,DataTreeModule:()=>A,DownloadModule:()=>O,EditModule:
()=>D,ExportModule:()=>M,FilterModule:()=>L,FormatModule:()=>j,FrozenColumnsModule:
()=>B,FrozenRowsModule:()=>U,GroupComponent:()=>H,GroupRowsModule:
()=>z,HistoryModule:()=>V,HtmlTableImportModule:()=>W,ImportModule:
()=>K,InteractionModule:()=>Y,KeybindingsModule:()=>$,MenuModule:()=>Q,Module:
()=>s,MoveColumnsModule:()=>X,MoveRowsModule:()=>Z,MutatorModule:()=>J,PageModule:
()=>te,PersistenceModule:()=>ie,PopupModule:()=>oe,PrintModule:()=>se,PseudoRow:
()=>qe,ReactiveDataModule:()=>ae,Renderer:()=>_e,ResizeColumnsModule:
()=>ce,ResizeRowsModule:()=>ue,ResizeTableModule:()=>le,ResponsiveLayoutModule:
()=>he,RowComponent:()=>_,SelectRowModule:()=>de,SortModule:()=>ge,Tabulator:
()=>Ve,TabulatorFull:()=>We,TooltipModule:()=>me,ValidateModule:()=>be});class
r{constructor(e){this.table=e}reloadData(e,t,n){return
this.table.dataLoader.load(e,void 0,void 0,void 0,t,n)}langText(){return
this.table.modules.localize.getText(...arguments)}langBind(){return
this.table.modules.localize.bind(...arguments)}langLocale(){return
this.table.modules.localize.getLocale(...arguments)}commsConnections(){return
this.table.modules.comms.getConnections(...arguments)}commsSend(){return
this.table.modules.comms.send(...arguments)}layoutMode(){return
this.table.modules.layout.getMode()}layoutRefresh(e){return
this.table.modules.layout.layout(e)}subscribe(){return
this.table.eventBus.subscribe(...arguments)}unsubscribe(){return
this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return
this.table.eventBus.subscribed(e)}subscriptionChange(){return
this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return
this.table.eventBus.dispatch(...arguments)}chain(){return
this.table.eventBus.chain(...arguments)}confirm(){return
this.table.eventBus.confirm(...arguments)}dispatchExternal(){return
this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return
this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return
this.table.externalEvents.subscriptionChange(...arguments)}options(e){return
this.table.options[e]}setOption(e,t){return void 0!
==t&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t){return
this.table.deprecationAdvisor.check(e,t)}deprecationCheckMsg(e,t){return
this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return
this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class
i{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static
elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-
document.documentElement.clientTop,left:t.left+window.pageXOffset-
document.documentElement.clientLeft}}static deepClone(e,t,n=[]){var
r={}.__proto__,i=[].__proto__;for(var o in t||(t=Object.assign(Array.isArray(e)?[]:
{},e)),e){let s,a,c=e[o];null==c||"object"!=typeof c||c.__proto__!==r&&c.__proto__!
==i||(s=n.findIndex((e=>e.subject===c)),s>-1?t[o]=n[s].copy:
(a=Object.assign(Array.isArray(c)?[]:
{},c),n.unshift({subject:c,copy:a}),t[o]=this.deepClone(c,a,n)))}return t}}class o
extends r{constructor(e,t,n)
{super(e),this.element=t,this.container=this._lookupContainer(),this.parent=n,this.
reversedX=!1,this.childPopup=null,this.blurable=!
1,this.blurCallback=null,this.blurEventsBound=!
1,this.renderedCallback=null,this.visible=!1,this.hideable=!
0,this.element.classList.add("tabulator-popup-
container"),this.blurEvent=this.hide.bind(this,!
1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroy
ed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!
0)}_lookupContainer(){var
e=this.table.options.popupContainer;return"string"==typeof e?
(e=document.querySelector(e))||console.warn("Menu Error - no container element
found matching selector:",this.table.options.popupContainer,"(defaulting to
document body)"):!0===e&&(e=this.table.element),e&&!
this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element
does not contain this table:",this.table.options.popupContainer,"(defaulting to
document body)")),e||
(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return
e===t||!!
t.parentNode&&this._checkContainerIsParent(e,t.parentNode)}renderCallback(e)
{this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof
MouseEvent),n=t?e.touches[0].pageX:e.pageX,r=t?
e.touches[0].pageY:e.pageY;if(this.container!==document.body){let
e=i.elOffset(this.container);n-=e.left,r-
=e.top}return{x:n,y:r}}elementPositionCoords(e,t="right"){var
n,r,o,s=i.elOffset(e);switch(this.container!
==document.body&&(n=i.elOffset(this.container),s.left-=n.left,s.top-=n.top),t)
{case"right":r=s.left+e.offsetWidth,o=s.top-
1;break;case"bottom":r=s.left,o=s.top+e.offsetHeight;break;case"left":r=s.left,o=s.
top-1;break;case"top":r=s.left,o=s.top;break;case"center":r=s.left+e.offsetWidth/
2,o=s.top+e.offsetHeight/2}return{x:r,y:o,offset:s}}show(e,t){var n,r,i,o,s;return
this.destroyed||this.table.destroyed||(e instanceof HTMLElement?
(i=e,o=(s=this.elementPositionCoords(e,t)).offset,n=s.x,r=s.y):"number"==typeof e?
(o={top:0,left:0},n=e,r=t):
(n=(s=this.containerEventCoords(e)).x,r=s.y,this.reversedX=!
1),this.element.style.top=r+"px",this.element.style.left=n+"px",this.container.appe
ndChild(this.element),"function"==typeof
this.renderedCallback&&this.renderedCallback(),this._fitToScreen(n,r,i,o,t),this.vi
sible=!0,this.subscribe("table-
destroy",this.destroyBinding),this.element.addEventListener("mousedown",
(e=>{e.stopPropagation()}))),this}_fitToScreen(e,t,n,r,i){var
o=this.container===document.body?
document.documentElement.scrollTop:this.container.scrollTop;
(e+this.element.offsetWidth>=this.container.offsetWidth||
this.reversedX)&&(this.element.style.left="",this.element.style.right=n?
this.container.offsetWidth-r.left+"px":this.container.offsetWidth-
e+"px",this.reversedX=!
0),t+this.element.offsetHeight>Math.max(this.container.offsetHeight,o?
this.container.scrollHeight:0)&&(this.element.style.top=n?"bottom"===i?
parseInt(this.element.style.top)-this.element.offsetHeight-n.offsetHeight-
1+"px":parseInt(this.element.style.top)-
this.element.offsetHeight+n.offsetHeight+1+"px":parseInt(this.element.style.top)-
this.element.offsetHeight+"px")}isVisible(){return this.visible}hideOnBlur(e)
{return this.blurable=!
0,this.visible&&(setTimeout((()=>{this.visible&&(this.table.rowManager.element.addE
ventListener("scroll",this.blurEvent),this.subscribe("cell-
editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),doc
ument.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventLis
tener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),
document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!
0)}),100),this.blurCallback=e),this}_escapeCheck(e)
{27==e.keyCode&&this.hide()}blockHide(){this.hideable=!1}restoreHide()
{this.hideable=!0}hide(e=!1){return
this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.r
emoveEventListener("keydown",this.escEvent),document.body.removeEventListener("clic
k",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),
document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventLis
tener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("s
croll",this.blurEvent),this.unsubscribe("cell-
editing",this.blurEvent),this.blurEventsBound=!
1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=nul
l),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.
visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-
destroy",this.destroyBinding)),this}child(e){return
this.childPopup&&this.childPopup.hide(),this.childPopup=new
o(this.table,e,this),this.childPopup}}class s extends r{constructor(e,t)
{super(e),this._handler=null}initialize(){}registerTableOption(e,t)
{this.table.optionsList.register(e,t)}registerColumnOption(e,t)
{this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){void
0===this.table[e]?
this.table[e]=(...n)=>(this.table.initGuard(e),t(...n)):console.warn("Unable to
bind table function, name already in use",e)}registerComponentFunction(e,t,n)
{return this.table.componentFunctionBinder.bind(e,t,n)}registerDataHandler(e,t)
{this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDis
playHandler(e,t)
{this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayR
ows(e){var t,n=this.table.rowManager.displayRows.length-
1;if(this._handler&&(t=this.table.rowManager.displayPipeline.findIndex((e=>e.handle
r===this._handler)))>-1&&(n=t),e&&(n+=e),this._handler)return n>-1?
this.table.rowManager.getDisplayRows(n):this.activeRows()}activeRows(){return
this.table.rowManager.activeRows}refreshData(e,t){t||
(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!
1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e)
{return this.table.footerManager.prepend(e)}footerRemove(e){return
this.table.footerManager.remove(e)}popup(e,t){return new
o(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert()
{return this.table.alertManager.clear()}}class a extends s{constructor(e)
{super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]
,this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),
this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataPa
rams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("acc
essorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerC
olumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),t
his.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessor
HtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize()
{this.subscribe("column-
layout",this.initializeColumn.bind(this)),this.subscribe("row-data-
retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!
1,n={};this.allowedTypes.forEach((r=>{var i,o="accessor"+(r.charAt(0).toUpperCase()
+r.slice(1));e.definition[o]&&(i=this.lookupAccessor(e.definition[o]))&&(t=!
0,n[o]={accessor:i,params:e.definition[o+"Params"]||
{}})})),t&&(e.modules.accessor=n)}lookupAccessor(e){var t=!1;switch(typeof e)
{case"string":a.accessors[e]?t=a.accessors[e]:console.warn("Accessor Error - No
such accessor found, ignoring: ",e);break;case"function":t=e}return
t}transformRow(e,t){var n="accessor"+(t.charAt(0).toUpperCase()
+t.slice(1)),r=e.getComponent(),o=i.deepClone(e.data||{});return
this.table.columnManager.traverse((function(e){var
i,s,a,c;e.modules.accessor&&(s=e.modules.accessor[n]||
e.modules.accessor.accessor||!1)&&"undefined"!
=(i=e.getFieldValue(o))&&(c=e.getComponent(),a="function"==typeof s.params?
s.params(i,o,t,c,r):s.params,e.setFieldValue(o,s.accessor(i,o,t,a,c,r)))})),o}}func
tion c(e,t){var
n=[];if(t=t||"",Array.isArray(e))e.forEach(((e,r)=>{n=n.concat(c(e,t?
t+"["+r+"]":r))}));else if("object"==typeof e)for(var r in e)n=n.concat(c(e[r],t?
t+"["+r+"]":r));else n.push({key:t,value:e});return n}function u(e){var
t=c(e),n=[];return t.forEach((function(e){n.push(encodeURIComponent(e.key)
+"="+encodeURIComponent(e.value))})),n.join("&")}function l(e,t,n){return
e&&n&&Object.keys(n).length&&(t.method&&"get"!=t.method.toLowerCase()||
(t.method="get",e+=(e.includes("?")?"&":"?")+u(n))),e}function h(e,t){var
n=[];if(t=t||"",Array.isArray(e))e.forEach(((e,r)=>{n=n.concat(h(e,t?
t+"["+r+"]":r))}));else if("object"==typeof e)for(var r in e)n=n.concat(h(e[r],t?
t+"["+r+"]":r));else n.push({key:t,value:e});return
n}a.moduleName="accessor",a.accessors={};var d={json:{headers:{"Content-
Type":"application/json"},body:function(e,t,n){return JSON.stringify(n)}},form:
{headers:{},body:function(e,t,n){var r=h(n),i=new FormData;return
r.forEach((function(e){i.append(e.key,e.value)})),i}}};class f extends
s{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!
1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!
1),this.registerTableOption("ajaxURLGenerator",!
1),this.registerTableOption("ajaxParams",
{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxCont
entType","form"),this.registerTableOption("ajaxRequestFunc",!
1),this.registerTableOption("ajaxRequesting",(function()
{})),this.registerTableOption("ajaxResponse",!
1),this.contentTypeFormatters=f.contentTypeFormatters}initialize()
{this.loaderPromise=this.table.options.ajaxRequestFunc||
f.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||
f.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.aj
axURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunct
ion("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-
loading",this.requestDataCheck.bind(this)),this.subscribe("data-
params",this.requestParams.bind(this)),this.subscribe("data-
load",this.requestData.bind(this))}requestParams(e,t,n,r){var
i=this.table.options.ajaxParams;return i&&("function"==typeof
i&&(i=i.call(this.table)),r=Object.assign(r,i)),r}requestDataCheck(e,t,n,r){return!
((e||!this.url)&&"string"!=typeof e)}requestData(e,t,n,r,i){var o;return!
i&&this.requestDataCheck(e)?
(e&&this.setUrl(e),o=this.generateConfig(n),this.sendRequest(this.url,t,o)):i}setDe
faultConfig(e={}){this.config=Object.assign({},f.defaultConfig),"string"==typeof e?
this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var
t=Object.assign({},this.config);return"string"==typeof e?
t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return
this.url}sendRequest(e,t,n){return!1!
==this.table.options.ajaxRequesting.call(this.table,e,t)?
this.loaderPromise(e,n,t).then((n=>(this.table.options.ajaxResponse&&(n=this.table.
options.ajaxResponse.call(this.table,e,t,n)),n))):Promise.reject()}}f.moduleName="a
jax",f.defaultConfig={method:"GET"},f.defaultURLGenerator=l,f.defaultLoaderPromise=
function(e,t,n){var r;return new
Promise(((i,o)=>{if(e=this.urlGenerator.call(this.table,e,t,n),"GET"!
=t.method.toUpperCase())if(r="object"==typeof this.table.options.ajaxContentType?
this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.aj
axContentType]){for(var s in r.headers)t.headers||(t.headers={}),void
0===t.headers[s]&&(t.headers[s]=r.headers[s]);t.body=r.body.call(this,e,t,n)}else
console.warn("Ajax Error - Invalid ajaxContentType
value:",this.table.options.ajaxContentType);e?(void
0===t.headers&&(t.headers={}),void
0===t.headers.Accept&&(t.headers.Accept="application/json"),void 0===t.headers["X-
Requested-With"]&&(t.headers["X-Requested-With"]="XMLHttpRequest"),void
0===t.mode&&(t.mode="cors"),"cors"==t.mode?(void
0===t.headers.Origin&&(t.headers.Origin=window.location.origin),void
0===t.credentials&&(t.credentials="same-origin")):void
0===t.credentials&&(t.credentials="include"),fetch(e,t).then((e=>{e.ok?
e.json().then((e=>{i(e)})).catch((e=>{o(e),console.warn("Ajax Load Error - Invalid
JSON returned",e)})):(console.error("Ajax Load Error - Connection Error:
"+e.status,e.statusText),o(e))})).catch((e=>{console.error("Ajax Load Error -
Connection Error: ",e),o(e)}))):(console.warn("Ajax Load Error - No URL
Set"),i([]))}))},f.contentTypeFormatters=d;class p extends s{constructor(e)
{super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function()
{},this.customSelection=!1,this.rowRange=!1,this.blocked=!
0,this.registerTableOption("clipboard",!
1),this.registerTableOption("clipboardCopyStyled",!
0),this.registerTableOption("clipboardCopyConfig",!
1),this.registerTableOption("clipboardCopyFormatter",!
1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOpt
ion("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction"
,"insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleC
lipboard")}initialize()
{this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardC
opyRowRange,!0!==this.mode&&"copy"!==this.mode||
this.table.element.addEventListener("copy",(e=>{var t,n,r;this.blocked||
(e.preventDefault(),this.customSelection?
(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.op
tions.clipboardCopyFormatter("plain",t))):
(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyCon
fig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),t=(n=this.tab
le.modules.export.generateHTMLTable(r))?
this.generatePlainContent(r):"",this.table.options.clipboardCopyFormatter&&(t=this.
table.options.clipboardCopyFormatter("plain",t),n=this.table.options.clipboardCopyF
ormatter("html",n))),window.clipboardData&&window.clipboardData.setData?
window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?
(e.clipboardData.setData("text/plain",t),n&&e.clipboardData.setData("text/
html",n)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.
clipboardData.setData("text/
plain",t),n&&e.originalEvent.clipboardData.setData("text/
html",n)),this.dispatchExternal("clipboardCopied",t,n),this.reset())})),!0!
==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",
(e=>{this.paste(e)})),this.setPasteParser(this.table.options.clipboardPasteParser),
this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunc
tion("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!
0,this.customSelection=!1}generatePlainContent(e){var t=[];return
e.forEach((e=>{var n=[];e.columns.forEach((t=>{var
r="";if(t)if("group"===e.type&&(t.value=t.component.getKey()),null===t.value)r="";e
lse switch(typeof t.value)
{case"object":r=JSON.stringify(t.value);break;case"undefined":r="";break;default:r=
t.value}n.push(r)})),t.push(n.join("\t"))})),t.join("\n")}copy(e,t){var
n,r;this.blocked=!1,this.customSelection=!1,!0!==this.mode&&"copy"!==this.mode||
(this.rowRange=e||this.table.options.clipboardCopyRowRange,void 0!
==window.getSelection&&void 0!==document.createRange?
((e=document.createRange()).selectNodeContents(this.table.element),
(n=window.getSelection()).toString()&&t&&(this.customSelection=n.toString()),n.remo
veAllRanges(),n.addRange(e)):void 0!==document.selection&&void 0!
==document.body.createTextRange&&((r=document.body.createTextRange()).moveToElement
Text(this.table.element),r.select()),document.execCommand("copy"),n&&n.removeAllRan
ges())}setPasteAction(e){switch(typeof e)
{case"string":this.pasteAction=p.pasteActions[e],this.pasteAction||
console.warn("Clipboard Error - No such paste action
found:",e);break;case"function":this.pasteAction=e}}setPasteParser(e){switch(typeof
e){case"string":this.pasteParser=p.pasteParsers[e],this.pasteParser||
console.warn("Clipboard Error - No such paste parser
found:",e);break;case"function":this.pasteParser=e}}paste(e){var
t,n,r;this.checkPaseOrigin(e)&&(t=this.getPasteData(e),
(n=this.pasteParser.call(this,t))?
(e.preventDefault(),this.table.modExists("mutator")&&(n=this.mutateData(n)),r=this.
pasteAction.call(this,n),this.dispatchExternal("clipboardPasted",t,n,r)):this.dispa
tchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return
Array.isArray(e)?
e.forEach((e=>{t.push(this.table.modules.mutator.transformRow(e,"clipboard"))})):t=
e,t}checkPaseOrigin(e){var t=!0;return("DIV"!=e.target.tagName||
this.table.modules.edit.currentCell)&&(t=!1),t}getPasteData(e){var t;return
window.clipboardData&&window.clipboardData.getData?
t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?
t=e.clipboardData.getData("text/
plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.
clipboardData.getData("text/
plain")),t}}p.moduleName="clipboard",p.pasteActions={replace:function(e){return
this.table.setData(e)},update:function(e){return
this.table.updateOrAddData(e)},insert:function(e){return
this.table.addData(e)}},p.pasteParsers={table:function(e){var t=[],n=!
0,r=this.table.columnManager.columns,i=[],o=[];return(e=e.split("\
n")).forEach((function(e){t.push(e.split("\t"))})),!(!t.length||
1===t.length&&t[0].length<2)&&(t[0].forEach((function(e){var t=r.find((function(t)
{return e&&t.definition.title&&e.trim()&&t.definition.title.trim()===e.trim()}));t?
i.push(t):n=!1})),n||(n=!0,i=[],t[0].forEach((function(e){var t=r.find((function(t)
{return e&&t.field&&e.trim()&&t.field.trim()===e.trim()}));t?i.push(t):n=!1})),n||
(i=this.table.columnManager.columnsByIndex)),n&&t.shift(),t.forEach((function(e)
{var t={};e.forEach((function(e,n)
{i[n]&&(t[i[n].field]=e)})),o.push(t)})),o)}};class g{constructor(e){return
this._row=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?
e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e)
{return this._row.getData(e)}getElement(){return this._row.getElement()}getTable()
{return this._row.table}getCells(){var e=[];return
this._row.getCells().forEach((function(t){e.push(t.getComponent())})),e}getCell(e)
{var t=this._row.getCell(e);return!!t&&t.getComponent()}_getSelf(){return
this._row}}class m{constructor(e){return this._cell=e,new Proxy(this,
{get:function(e,t,n){return void 0!==e[t]?
e[t]:e._cell.table.componentFunctionBinder.handle("cell",e._cell,t)}})}getValue()
{return this._cell.getValue()}getOldValue(){return
this._cell.getOldValue()}getInitialValue(){return
this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return
this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType()
{return"cell"}getField(){return this._cell.column.getField()}getColumn(){return
this._cell.column.getComponent()}setValue(e,t){void 0===t&&(t=!
0),this._cell.setValue(e,t)}restoreOldValue()
{this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue()
{this._cell.setValueActual(this._cell.initialValue)}checkHeight()
{this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return
this._cell}}class v extends r{constructor(e,t)
{super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.
value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,th
is.width=null,this.minWidth=null,this.component=null,this.loaded=!
1,this.build()}build()
{this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(t
his.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateEleme
nt(){this.element=document.createElement("div"),this.element.className="tabulator-
cell",this.element.setAttribute("role","gridcell")}_configureCell(){var
e=this.element,t=this.column.getField();e.style.textAlign=this.column.hozAlign,this
.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems={top:"flex-
start",bottom:"flex-end",middle:"center"}
[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent={left:"fl
ex-start",right:"flex-end",center:"center"}
[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-
field",t),this.column.definition.cssClass&&this.column.definition.cssClass.split("
").forEach((t=>{e.classList.add(t)})),this.dispatch("cell-
init",this),this.column.visible||this.hide()}_generateContents(){var
e;switch(typeof(e=this.chain("cell-format",this,null,
(()=>this.element.innerHTML=this.value)))){case"object":if(e instanceof Node)
{for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);th
is.element.appendChild(e)}else this.element.innerHTML="",null!
=e&&console.warn("Format Error - Formatter has returned a type of object, the only
valid formatter object return is an instance of Node, the formatter
returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.el
ement.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e)
{return this.loaded||(this.loaded=!0,e||
this.layoutElement()),this.element}getValue(){return this.value}getOldValue()
{return this.oldValue}setValue(e,t,n)
{this.setValueProcessData(e,t,n)&&(this.dispatch("cell-value-
updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.d
efinition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("ce
llEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatc
hExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,n
){var r=!1;return(this.value!==e||n)&&(r=!0,t&&(e=this.chain("cell-value-changing",
[this,e],null,e))),this.setValueActual(e),r&&this.dispatch("cell-value-chang
ed",this),r}setValueActual(e)
{this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-
before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-
save-after",this),this.loaded&&this.layoutElement()}layoutElement()
{this._generateContents(),this.dispatch("cell-layout",this)}setWidth()
{this.width=this.column.width,this.element.style.width=this.column.widthStyled}clea
rWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||
this.element.offsetWidth}setMinWidth()
{this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidt
hStyled}setMaxWidth()
{this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidt
hStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight()
{this.element.style.height="",this.height=null,this.dispatch("cell-
height",this,"")}setHeight()
{this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.d
ispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||
this.element.offsetHeight}show()
{this.element.style.display=this.column.vertAlign?"inline-flex":""}hide()
{this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!
this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode
.removeChild(this.element),this.element=!
1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex()
{return this.row.getCellIndex(this)}getComponent(){return this.component||
(this.component=new m(this)),this.component}}class b{constructor(e){return
this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(e,t,n)
{return void 0!==e[t]?
e[t]:e._column.table.componentFunctionBinder.handle("column",e._column,t)}})}getEle
ment(){return this._column.getElement()}getDefinition(){return
this._column.getDefinition()}getField(){return
this._column.getField()}getTitleDownload(){return
this._column.getTitleDownload()}getCells(){var e=[];return
this._column.cells.forEach((function(t){e.push(t.getComponent())})),e}isVisible()
{return this._column.visible}show(){this._column.isGroup?
this._column.columns.forEach((function(e){e.show()})):this._column.show()}hide()
{this._column.isGroup?this._column.columns.forEach((function(e)
{e.hide()})):this._column.hide()}toggle(){this._column.visible?
this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var
e=[];return this._column.columns.length&&this._column.columns.forEach((function(t)
{e.push(t.getComponent())})),e}getParentColumn(){return this._column.parent
instanceof w&&this._column.parent.getComponent()}_getSelf(){return
this._column}scrollTo(e,t){return
this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return
this._column.table}move(e,t){var
n=this._column.table.columnManager.findColumn(e);n?
this._column.table.columnManager.moveColumn(this._column,n,t):console.warn("Move
Error - No matching column found:",n)}getNextColumn(){var
e=this._column.nextColumn();return!!e&&e.getComponent()}getPrevColumn(){var
e=this._column.prevColumn();return!!e&&e.getComponent()}updateDefinition(e){return
this._column.updateDefinition(e)}getWidth(){return
this._column.getWidth()}setWidth(e){var t;return t=!0===e?
this._column.reinitializeWidth(!
0):this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!
0),t}}var y={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void
0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void
0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void
0,headerWordWrap:!1,editableTitle:void 0};class w extends r{constructor(e,t)
{super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],
this.cells=[],this.element=this.createElement(),this.contentElement=!
1,this.titleHolderElement=!1,this.titleElement=!
1,this.groupElement=this.createGroupElement(),this.isGroup=!
1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getF
ieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRende
red=!
1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.w
idth=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxIni
tialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!
1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!
0,this.definition.columns.forEach(((e,t)=>{var n=new
w(e,this);this.attachColumn(n)})),this.checkColumnVisibility()):t.registerColumnFie
ld(this),this._initialize()}createElement(){var
e=document.createElement("div");switch(e.classList.add("tabulator-
col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-
sort","none"),this.table.options.columnHeaderVertAlign)
{case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyCon
tent="flex-end"}return e}createGroupElement(){var
e=document.createElement("div");return e.classList.add("tabulator-col-group-
cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in
e)void
0===this.definition[t]&&(this.definition[t]=e[t]);this.definition=this.table.column
Manager.optionsList.generate(w.defaultOptionList,this.definition)}checkDefinition()
{Object.keys(this.definition).forEach((e=>{-
1===w.defaultOptionList.indexOf(e)&&console.warn("Invalid column definition option
in '"+(this.field||this.definition.title)+"' column:",e)}))}setField(e)
{this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?
e.split(this.table.options.nestedFieldSeparator):[e]:
[],this.getFieldValue=this.fieldStructure.length>1?
this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length
>1?this._setNestedData:this._setFlatData}registerColumnPosition(e)
{this.parent.registerColumnPosition(e)}registerColumnField(e)
{this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?
this.columns.forEach((function(e)
{e.reRegisterPosition()})):this.registerColumnPosition(this)}_initialize(){for(var
e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.fi
rstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-
vertical"),"flip"===e.headerVertical&&this.element.classList.add("tabulator-col-
vertical-
flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChi
ld(this.contentElement),this.isGroup?
this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-
init",this)}_buildColumnHeader(){var e=this.definition;this.dispatch("column-
layout",this),void 0!==e.visible&&(e.visible?this.show(!0):this.hide(!
0)),e.cssClass&&e.cssClass.split("
").forEach((e=>{this.element.classList.add(e)})),e.field&&this.element.setAttribute
("tabulator-
field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.max
InitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.m
axWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vert
Align=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.h
eaderHozAlign}_buildColumnHeaderContent(){var
e=document.createElement("div");return e.classList.add("tabulator-col-
content"),this.titleHolderElement=document.createElement("div"),this.titleHolderEle
ment.classList.add("tabulator-col-title-
holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumn
HeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumn
HeaderTitle(){var
e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-
col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-
wrap"),e.editableTitle){var
n=document.createElement("input");n.classList.add("tabulator-title-
editor"),n.addEventListener("click",
(e=>{e.stopPropagation(),n.focus()})),n.addEventListener("change",
(()=>{e.title=n.value,this.dispatchExternal("columnTitleChanged",this.getComponent(
))})),t.appendChild(n),e.field?this.langBind("columns|"+e.field,(t=>{n.value=t||
e.title||" "})):n.value=e.title||" "}else e.field?
this.langBind("columns|"+e.field,(n=>{this._formatColumnHeaderTitle(t,n||
e.title||" ")})):this._formatColumnHeaderTitle(t,e.title||" ");return
t}_formatColumnHeaderTitle(e,t){var n=this.chain("column-format",[this,t,e],null,
(()=>t));switch(typeof n){case"object":n instanceof Node?e.appendChild(n):
(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of
object, the only valid formatter object return is an instance of Node, the
formatter
returned:",n));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=n}}_b
uildGroupHeader(){this.element.classList.add("tabulator-col-
group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("
aria-
title",this.definition.title),this.definition.cssClass&&this.definition.cssClass.sp
lit("
").forEach((e=>{this.element.classList.add(e)})),this.titleElement.style.textAlign=
this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlat
Data(e){return e[this.field]}_getNestedData(e){var
t,n=e,r=this.fieldStructure,i=r.length;for(let e=0;e<i&&(t=n=n[r[e]],n);e++);return
t}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var
n=e,r=this.fieldStructure,i=r.length;for(let e=0;e<i;e++)if(e==i-
1)n[r[e]]=t;else{if(!n[r[e]]){if(void
0===t)break;n[r[e]]={}}n=n[r[e]]}}attachColumn(e){this.groupElement?
(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendere
d()):console.warn("Column Warning - Column being attached to another column instead
of column group")}verticalAlign(e,t){var n=this.parent.isGroup?
this.parent.getGroupElement().clientHeight:t||
this.parent.getHeadersElement().clientHeight;this.element.style.height=n+"px",this.
dispatch("column-
height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minH
eight=n-this.contentElement.offsetHeight+"px"),this.columns.forEach((function(t)
{t.verticalAlign(e)}))}clearVerticalAlign(){this.element.st
yle.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this
.groupElement.style.minHeight="",this.columns.forEach((function(e)
{e.clearVerticalAlign()})),this.dispatch("column-height",this,"")}getElement()
{return this.element}getGroupElement(){return this.groupElement}getField(){return
this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return
this.isGroup?!!
this.columns.length&&this.columns[0].getFirstColumn():this}getLastColumn(){return
this.isGroup?!!this.columns.length&&this.columns[this.columns.length-
1].getLastColumn():this}getColumns(e){var t=[];return e?
this.columns.forEach((e=>{t.push(e),t=t.concat(e.getColumns(!
0))})):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return
this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var
t=[];return this.isGroup&&e&&(this.columns.forEach((function(e)
{t.push(e.getDefinition(!
0))})),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!
1;this.columns.forEach((function(t){t.visible&&(e=!0)})),e?
(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!
1)):this.hide()}show(e,t){this.visible||(this.visible=!
0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibil
ity(),this.cells.forEach((function(e){e.show()})),this.isGroup||null!==this.width||
this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispa
tch("column-show",this,t),e||
this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!
0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||
this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!
1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders()
,this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((funct
ion(e){e.hide()})),this.dispatch("column-hide",this,t),e||
this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!
1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||
this.table.columnManager.rerenderColumns())}matchChildWidths(){var
e=0;this.contentElement&&this.columns.length&&(this.columns.forEach((function(t)
{t.visible&&(e+=t.getWidth())})),this.contentElement.style.maxWidth=e-
1+"px",this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var
t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||
this.delete()}setWidth(e){this.widthFixed=!
0,this.setWidthActual(e)}setWidthActual(e)
{isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/
100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWi
dth,e)),this.width=e,this.widthStyled=e?
e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||
this.cells.forEach((function(e)
{e.setWidth()})),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch(
"column-width",this)}checkCellHeights(){var e=[];this.cells.forEach((function(t)
{t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?
(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!
1)})),e.forEach((function(e){e.calcHeight()})),e.forEach((function(e)
{e.setCellHeight()}))}getWidth(){var e=0;return this.isGroup?
this.columns.forEach((function(t)
{t.visible&&(e+=t.getWidth())})):e=this.width,e}getLeftOffset(){var
e=this.element.offsetLeft;return
this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return
Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e)
{this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth
("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth
("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?
e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach((funct
ion(e){e.setMinWidth()}))}setMaxWidth(e)
{this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth
("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth
("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?
e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach((funct
ion(e){e.setMaxWidth()}))}delete(){return new
Promise(((e,t)=>{this.isGroup&&this.columns.forEach((function(e)
{e.delete()})),this.dispatch("column-delete",this);var n=this.cells.length;for(let
e=0;e<n;e+
+)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChi
ld(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!
1,this.groupElement=!
1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.dereg
isterColumn(this),this.table.columnManager.rerenderColumns(!
0),e()}))}columnRendered()
{this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-
rendered",this)}generateCell(e){var t=new v(this,e);return
this.cells.push(t),t}nextColumn(){var
e=this.table.columnManager.findColumnIndex(this);return e>-
1&&this._nextVisibleColumn(e+1)}_nextVisibleColumn(e){var
t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?
t:this._nextVisibleColumn(e+1)}prevColumn(){var
e=this.table.columnManager.findColumnIndex(this);return e>-
1&&this._prevVisibleColumn(e-1)}_prevVisibleColumn(e){var
t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?
t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,void
0===this.definition.width||e||
this.setWidth(this.definition.width),this.dispatch("column-width-fit-
before",this),this.fitToData(e),this.dispatch("column-width-fit-
after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||
(this.element.style.width="",this.cells.forEach((e=>{e.clearWidth()})));var
t=this.element.offsetWidth;if((!this.width||!
this.widthFixed)&&(this.cells.forEach((e=>{var n=e.getWidth();n>t&&(t=n)})),t)){var
n=t+1;this.maxInitialWidth&&!
e&&(n=Math.min(n,this.maxInitialWidth)),this.setWidthActual(n)}}}updateDefinition(e
){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update
Error - The updateDefinition function is only available on ungrouped
columns"),Promise.reject("Column Update Error - The updateDefinition function is
only available on columns, not column groups")):
(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnMan
ager.addColumn(t,!1,this).then((e=>(t.field==this.field&&(this.field=!
1),this.delete().then((()=>e.getComponent()))))))}deleteCell(e){var
t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return
this.component||(this.component=new
b(this)),this.component}}w.defaultOptionList=y;class _{constructor(e){return
this._row=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?
e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e)
{return this._row.getData(e)}getElement(){return this._row.getElement()}getCells()
{var e=[];return this._row.getCells().forEach((function(t)
{e.push(t.getComponent())})),e}getCell(e){var t=this._row.getCell(e);return!!
t&&t.getComponent()}getIndex(){return this._row.getData("data")
[this._row.table.options.index]}getPosition(){return
this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete()
{return this._row.delete()}scrollTo(e,t){return
this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t)
{this._row.moveToRow(e,t)}update(e){return
this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf()
{return this._row}reformat(){return this._row.reinitialize()}getTable(){return
this._row.table}getNextRow(){var e=this._row.nextRow();return e?
e.getComponent():e}getPrevRow(){var e=this._row.prevRow();return e?
e.getComponent():e}}class E extends r{constructor(e,t,n="row")
{super(t.table),this.parent=t,this.data={},this.type=n,this.element=!
1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeigh
t=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!
1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!
1,this.setData(e)}create(){this.created||(this.created=!
0,this.generateElement())}createElement(){var
e=document.createElement("div");e.classList.add("tabulator-
row"),e.setAttribute("role","row"),this.element=e}getElement(){return
this.create(),this.element}detachElement()
{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.el
ement)}generateElement(){this.createElement(),this.dispatch("row-
init",this)}generateCells()
{this.cells=this.table.columnManager.generateCells(this)}initialize(e,t)
{if(this.create(),!this.initialized||e)
{for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.elem
ent.firstChild);this.dispatch("row-layout-
before",this),this.generateCells(),this.initialized=!
0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(
),this.dispatch("row-
layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this
.getComponent()),this.dispatch("row-layout-after",this)}else
this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered()
{this.cells.forEach((e=>{e.cellRendered()}))}reinitializeHeight()
{this.heightInitialized=!1,this.element&&null!
==this.element.offsetParent&&this.normalizeHeight(!0)}deinitialize()
{this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e)
{this.initialized=!1,this.heightInitialized=!1,this.manualHeight||
(this.height=0,this.heightStyled=""),this.element&&null!
==this.element.offsetParent&&this.initialize(!0),this.dispatch("row-
relayout",this)}calcHeight(e){var t,n=0;this.table.options.rowHeight?
this.height=this.table.options.rowHeight:(t=this.table.options.resizableRows?
this.element.clientHeight:0,this.cells.forEach((function(e){var
t=e.getHeight();t>n&&(n=t)})),this.height=e?Math.max(n,t):this.manualHeight?
this.height:Math.max(n,t)),this.heightStyled=this.height?
this.height+"px":"",this.outerHeight=this.element.offsetHeight}setCellHeight()
{this.cells.forEach((function(e){e.setHeight()})),this.heightInitialized=!
0}clearCellHeight(){this.cells.forEach((function(e){e.clear
Height()}))}normalizeHeight(e){e&&!
this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCel
lHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!
0,this.height=e,this.heightStyled=e?
e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)}getHeigh
t(){return this.outerHeight}getWidth(){return
this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-
1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",
[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var
t,n=this.element&&i.elVisible(this.element),r={};return new
Promise(((i,o)=>{"string"==typeof e&&(e=JSON.parse(e)),this.dispatch("row-data-
save-before",this),this.subscribed("row-data-
changing")&&(r=Object.assign(r,this.data),r=Object.assign(r,e)),t=this.chain("row-
data-changing",[this,r,e],null,e);for(let e in
t)this.data[e]=t[e];this.dispatch("row-data-save-after",this);for(let r in
e)this.table.columnManager.getColumnsByFieldRoot(r).forEach((e=>{let
r=this.getCell(e.getField());if(r){let i=e.getFieldValue(t);r.getValue()!
==i&&(r.setValueProcessData(i),n&&r.cellRendered())}}));n?(this.normalizeHeight(!
0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getCompone
nt())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-
data-
changed",this,n,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.sub
scribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowM
anager.getData()),i()}))}getData(e){return e?this.chain("row-data-retrieve",
[this,e],null,this.data):this.data}getCell(e){return
e=this.table.columnManager.findColumn(e),this.initialized||0!==this.cells.length||
this.generateCells(),this.cells.find((function(t){return
t.column===e}))}getCellIndex(e){return this.cells.findIndex((function(t){return
t===e}))}findCell(e){return this.cells.find((t=>t.element===e))}getCells(){return
this.initialized||0!==this.cells.length||this.generateCells(),this.cells}nextRow()
{return this.table.rowManager.nextDisplayRow(this,!0)||!1}prevRow(){return
this.table.rowManager.prevDisplayRow(this,!0)||!1}moveToRow(e,t){var
n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!
t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move
Error - No matching row found:",e)}delete(){return this.dispatch("row-
delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e)
{this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),th
is.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-
deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var
e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe()
{if(this.detachModules(),this.deleteCells(),this.element)
{for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);th
is.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.eleme
nt=!1,this.modules={}}isDisplayed(){return
this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return!!
this.isDisplayed()&&this.position}setPosition(e){e!
=this.position&&(this.position=e,this.positionWatchers.forEach((e=>{e(this.position
)})))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup()
{return this.modules.group||!1}getComponent(){return this.component||
(this.component=new _(this)),this.component}}var S={avg:function(e,t,n){var
r=0,i=void 0!==n.precision?n.precision:2;return
e.length&&(r=e.reduce((function(e,t){return Number(e)+Number(t)})),r/=e.length,r=!
1!==i?r.toFixed(i):r),parseFloat(r).toString()},max:function(e,t,n){var
r=null,i=void 0!==n.precision&&n.precision;return e.forEach((function(e)
{((e=Number(e))>r||null===r)&&(r=e)})),null!==r?!1!==i?
r.toFixed(i):r:""},min:function(e,t,n){var r=null,i=void 0!
==n.precision&&n.precision;return e.forEach((function(e){((e=Number(e))<r||
null===r)&&(r=e)})),null!==r?!1!==i?r.toFixed(i):r:""},sum:function(e,t,n){var
r=0,i=void 0!==n.precision&&n.precision;return e.length&&e.forEach((function(e)
{e=Number(e),r+=isNaN(e)?0:Number(e)})),!1!==i?
r.toFixed(i):r},concat:function(e,t,n){var r=0;return
e.length&&(r=e.reduce((function(e,t){return String(e)
+String(t)}))),r},count:function(e,t,n){var r=0;return
e.length&&e.forEach((function(e){e&&r++})),r},unique:function(e,t,n){return
e.filter(((t,n)=>(e||0===t)&&e.indexOf(t)===n)).length}};class T extends
s{constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!
1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.to
pRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!
1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!
0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),
this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFor
matterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("b
ottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerCol
umnOption("bottomCalcFormatterParams")}createElement(){var
e=document.createElement("div");return e.classList.add("tabulator-calcs-
holder"),e}initialize(){this.genColumn=new
w({field:"value"},this),this.subscribe("cell-value-
changed",this.cellValueChanged.bind(this)),this.subscribe("column-
init",this.initializeColumnCheck.bind(this)),this.subscribe("row-
deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-
horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-
added",this.rowsUpdated.bind(this)),this.subscribe("column-
moved",this.recalcActiveRows.bind(this)),this.subscribe("column-
add",this.recalcActiveRows.bind(this)),this.subscribe("data-
refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-
redraw",this.tableRedraw.bind(this)),this.subscribe("rows-
visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-
vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-
blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-
restored",this.restoreRedraw.bind(this)),this.subscribe("table-
redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-
resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-
show",this.resizeHolderWidth.bind(this)),this.subscribe("column-
hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults
",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.b
ind(this)),this.resizeHolderWidth()}resizeHolderWidth()
{this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth
+"px"}tableRedraw(e)
{this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw()
{this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!
1,this.recalcAfterBlock&&(this.recalcAfterBlock=!
1,this.recalcActiveRowsRefresh())}userRecalc()
{this.recalc(this.table.rowManager.activeRows)}blockCheck(){return
this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return
this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(
e){this.table.options.groupBy?
this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh()
{this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.o
ptions.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows()
{this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e)
{(e.column.definition.topCalc||
e.column.definition.bottomCalc)&&(this.table.options.groupBy?("table"!
=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||
this.recalcActiveRows(),"table"!
=this.table.options.columnCalcs&&this.recalcRowGroup(e.row)):this.recalcActiveRows(
))}initializeColumnCheck(e){(e.definition.topCalc||
e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var
t=e.definition,n={topCalcParams:t.topCalcParams||
{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc)
{case"string":T.calculations[t.topCalc]?
n.topCalc=T.calculations[t.topCalc]:console.warn("Column Calc Error - No such
calculation found, ignoring:
",t.topCalc);break;case"function":n.topCalc=t.topCalc}n.topCalc&&(e.modules.columnC
alcs=n,this.topCalcs.push(e),"group"!
=this.table.options.columnCalcs&&this.initializeTopRow())}if(t.bottomCalc)
{switch(typeof t.bottomCalc){case"string":T.calculations[t.bottomCalc]?
n.botCalc=T.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such
calculation found, ignoring:
",t.bottomCalc);break;case"function":n.botCalc=t.bottomCalc}n.botCalc&&(e.modules.c
olumnCalcs=n,this.botCalcs.push(e),"group"!
=this.table.options.columnCalcs&&this.initializeBottomRow())}}registerColumnField()
{}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!
1,this.topElement.parentNode.removeChild(this.topElement),e=!
0),this.botInitialized&&(this.botInitialized=!
1,this.footerRemove(this.botElement),e=!
0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs()
{this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializ
eBottomRow()}initializeTopRow(){this.topInitialized||
(this.table.columnManager.getContentsElement().insertBefore(this.topElement,this.ta
ble.columnManager.headersElement.nextSibling),this.topInitialized=!
0)}initializeBottomRow(){this.botInitialized||
(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e)
{this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var
t,n;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized))
{if(t=this.rowsToData(e),this.topInitialized)
{for(this.topRow&&this.topRow.deleteCells(),n=this.generateRow("top",t),this.topRow
=n;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChi
ld);this.topElement.appendChild(n.getElement()),n.initialize(!
0)}if(this.botInitialized)
{for(this.botRow&&this.botRow.deleteCells(),n=this.generateRow("bottom",t),this.bot
Row=n;
this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild)
;this.botElement.appendChild(n.getElement()),n.initialize(!
0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&t
his.table.modules.frozenColumns.layout()}}recalcRowGroup(e)
{this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll()
{(this.topCalcs.length||this.botCalcs.length)&&("group"!
==this.table.options.columnCalcs&&this.recalcActiveRows(),this.table.options.groupB
y&&"table"!
==this.table.options.columnCalcs&&this.table.modules.groupRows.getChildGroups().for
Each((e=>{this.recalcGroup(e)})))}recalcGroup(e){var t,n;this.blockCheck()||
e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),n=this.generateRowData("bot
tom",t),e.calcs.bottom.updateData(n),e.calcs.bottom.reinitialize()),e.calcs.top&&(t
=this.rowsToData(e.rows),n=this.generateRowData("top",t),e.calcs.top.updateData(n),
e.calcs.top.reinitialize()))}generateTopRow(e){return
this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return
this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[];return
e.forEach((e=>{if(t.push(e.getData()),this.table.options.dataTree&&this.table.optio
ns.dataTreeChildColumnCalcs&&e.modules.dataTree&&e.modules.dataTree.open){var
n=this.rowsToData(this.table.modules.dataTree.getFilteredTreeChildren(e));t=t.conca
t(n)}})),t}generateRow(e,t){var n,r=this.generateRowData(e,t);return
this.table.modExists("mutator")&&this.table.modules.mutator.disable(),n=new
E(r,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable
(),n.getElement().classList.add("tabulator-calcs","tabulator-
calcs-"+e),n.component=!1,n.getComponent=()=>(n.component||(n.component=new
g(n)),n.component),n.generateCells=()=>{var
t=[];this.table.columnManager.columnsByIndex.forEach((r=>{this.genColumn.setField(r
.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&th
is.table.modExists("format")?
this.genColumn.modules.format={formatter:this.table.modules.format.getFormatter(r.d
efinition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]||
{}}:this.genColumn.modules.format={formatter:this.table.modules.format.getFormatter
("plaintext"),params:
{}},this.genColumn.definition.cssClass=r.definition.cssClass;var i=new
v(this.genColumn,n);i.getElement(),i.column=r,i.setWidth(),r.cells.push(i),t.push(i
),r.visible||i.hide()})),n.cells=t},n}generateRowData(e,t){var n,r,i={},o="top"==e?
this.topCalcs:this.botCalcs,s="top"==e?"topCalc":"botCalc";return
o.forEach((function(e){var
o=[];e.modules.columnCalcs&&e.modules.columnCalcs[s]&&(t.forEach((function(t)
{o.push(e.getFieldValue(t))})),r=s+"Params",n="function"==typeof
e.modules.columnCalcs[r]?e.modules.columnCalcs[r]
(o,t):e.modules.columnCalcs[r],e.setFieldValue(i,e.modules.columnCalcs[s]
(o,t,n)))})),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!
this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!
0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={};return
this.table.options.groupBy&&this.table.modExists("groupRows")?
this.table.modules.groupRows.getGroups(!
0).forEach((t=>{e[t.getKey()]=this.getGroupResults(t)})):e={top:this.topRow?
this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():
{}},e}getGroupResults(e){var t=e._getSelf(),n=e.getSubGroups(),r={};return
n.forEach((e=>{r[e.getKey()]=this.getGroupResults(e)})),{top:t.calcs.top?
t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():
{},groups:r}}adjustForScrollbar(e){this.botRow&&(this.table.rtl?
this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")
}}T.moduleName="columnCalcs",T.calculations=S;class A extends s{constructor(e)
{super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this
.branchEl=null,this.elementField=!1,this.startOpen=function()
{},this.registerTableOption("dataTree",!
1),this.registerTableOption("dataTreeFilter",!
0),this.registerTableOption("dataTreeSort",!
0),this.registerTableOption("dataTreeElementColumn",!
1),this.registerTableOption("dataTreeBranchElement",!
0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("data
TreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!
1),this.registerTableOption("dataTreeExpandElement",!
1),this.registerTableOption("dataTreeStartExpanded",!
1),this.registerTableOption("dataTreeChildColumnCalcs",!
1),this.registerTableOption("dataTreeSelectPropagate",!
1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this))
,this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.
registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.regist
erComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.regis
terComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.r
egisterComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this
.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}in
itialize(){if(this.table.options.dataTree){var
e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.da
taTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option
is not available with dataTree enabled, moving of child rows could result in
unpredictable behavior"),t.dataTreeBranchElement?!0===t.dataTreeBranchElement?
(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator
-data-tree-branch")):"string"==typeof t.dataTreeBranchElement?
((e=document.createElement("div")).innerHTML=t.dataTreeBranchElement,this.branchEl=
e.firstChild):this.branchEl=t.dataTreeBranchElement:
(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator
-data-tree-branch-empty")),t.dataTreeCollapseElement?"string"==typeof
t.dataTreeCollapseElement?
((e=document.createElement("div")).innerHTML=t.dataTreeCollapseElement,this.collaps
eEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:
(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabul
ator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div
class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?"stri
ng"==typeof t.dataTreeExpandElement?
((e=document.createElement("div")).innerHTML=t.dataTreeExpandElement,this.expandEl=
e.firstChild):this.expandEl=t.dataTreeExpandElement:
(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator
-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div
class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded)
{case"boolean":this.startOpen=function(e,n){return
t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpande
d;break;default:this.startOpen=function(e,n){return
t.dataTreeStartExpanded[n]}}this.subscribe("row-
init",this.initializeRow.bind(this)),this.subscribe("row-layout-
after",this.layoutRow.bind(this)),this.subscribe("row-
deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-
changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-
updated",this.cellValueChanged.bind(this)),this.subscribe("edit-
cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-
rows",this.columnMoving.bind(this)),this.subscribe("table-
built",this.initializeElementField.bind(this)),this.subscribe("table-
redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows
.bind(this),30)}}tableRedrawing(e)
{e&&this.table.rowManager.getRows().forEach((e=>{this.reinitializeRowChildren(e)}))
}initializeElementField(){var
e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.opt
ions.dataTreeElementColumn||!!e&&e.field}getRowChildren(e){return
this.getTreeChildren(e,!0)}columnMoving(){var e=[];return
this.table.rowManager.rows.forEach((t=>{e=e.concat(this.getTreeChildren(t,!1,!
0))})),e}rowDataChanged(e,t,n)
{this.redrawNeeded(n)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshDat
a(!0)))}cellValueChanged(e)
{e.column.getField()===this.elementField&&this.layoutRow(e.row)}initializeRow(e)
{var t=e.getData()[this.field],n=Array.isArray(t),r=n||!n&&"object"==typeof
t&&null!==t;!
r&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.par
entNode.removeChild(e.modules.dataTree.branchEl),!
r&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.p
arentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.mod
ules.dataTree?e.modules.dataTree.index:0,open:!!r&&(e.modules.dataTree?
e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!
e.modules.dataTree||!r)&&e.modules.dataTree.controlEl,branchEl:!(!
e.modules.dataTree||!r)&&e.modules.dataTree.branchEl,parent:!!
e.modules.dataTree&&e.modules.dataTree.parent,children:r}}reinitializeRowChildren(e
){this.getTreeChildren(e,!1,!0).forEach((function(e){e.reinitialize(!
0)}))}layoutRow(e){var t=(this.elementField?
e.getCell(this.elementField):e.getCells()
[0]).getElement(),n=e.modules.dataTree;n.branchEl&&(n.branchEl.parentNode&&n.branch
El.parentNode.removeChild(n.branchEl),n.branchEl=!
1),n.controlEl&&(n.controlEl.parentNode&&n.controlEl.parentNode.removeChild(n.contr
olEl),n.controlEl=!
1),this.generateControlElement(e,t),e.getElement().classList.add("tabulator-tree-
level-"+n.index),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!
0),t.insertBefore(n.branchEl,t.firstChild),this.table.rtl?
n.branchEl.style.marginRight=(n.branchEl.offsetWidth+n.branchEl.style.marginLeft)*(
n.index-
1)+n.index*this.indent+"px":n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.b
ranchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):this.table.rtl?
t.style.paddingRight=parseInt(window.getComputedStyle(t,null).getPropertyValue("pad
ding-right"))
+n.index*this.indent+"px":t.style.paddingLeft=parseInt(window.getComputedStyle(t,nu
ll).getProp
ertyValue("padding-left"))+n.index*this.indent+"px")}generateControlElement(e,t)
{var n=e.modules.dataTree,r=n.controlEl;t=t||e.getCells()[0].getElement(),!1!
==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!
0),n.controlEl.addEventListener("click",
(t=>{t.stopPropagation(),this.collapseRow(e)}))):
(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",
(t=>{t.stopPropagation(),this.expandRow(e)}))),n.controlEl.addEventListener("moused
own",(e=>{e.stopPropagation()})),r&&r.parentNode===t?
r.parentNode.replaceChild(n.controlEl,r):t.insertBefore(n.controlEl,t.firstChild))}
getRows(e){var t=[];return e.forEach(((e,n)=>{var r;t.push(e),e instanceof
E&&(e.create(),(r=e.modules.dataTree).index||!1===r.children||
this.getChildren(e).forEach((e=>{e.create(),t.push(e)})))})),t}getChildren(e,t){var
n=e.modules.dataTree,r=[],i=[];return!1!==n.children&&(n.open||
t)&&(Array.isArray(n.children)||
(n.children=this.generateChildren(e)),r=this.table.modExists("filter")&&this.table.
options.dataTreeFilter?
this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort"
)&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(r),r.forEach((e=>{
i.push(e),this.getChildren(e).forEach((e=>{i.push(e)}))}))),i}generateChildren(e)
{var t=[],n=e.getData()[this.field];return Array.isArray(n)||
(n=[n]),n.forEach((n=>{var r=new E(n||
{},this.table.rowManager);r.create(),r.modules.dataTree.index=e.modules.dataTree.in
dex+1,r.modules.dataTree.parent=e,r.modules.dataTree.children&&(r.modules.dataTree.
open=this.startOpen(r.getComponent(),r.modules.dataTree.index)),t.push(r)})),t}expa
ndRow(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!
0,e.reinitialize(),this.refreshData(!
0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.
index))}collapseRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!
1,e.reinitialize(),this.refreshData(!
0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree
.index))}toggleRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?
this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return
e.modules.dataTree.open}getTreeParent(e){return!!
e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()}getTreeParentRo
ot(e){return e.modules.dataTree&&e.modules.dataTree.parent?
this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var
t=e.modules.dataTree,n=[];return t.children&&(Array.isArray(t.children)||
(t.children=this.generateChildren(e)),
(this.table.modExists("filter")&&this.table.options.dataTreeFilter?
this.table.modules.filter.filter(t.children):t.children).forEach((e=>{e instanceof
E&&n.push(e)}))),n}rowDelete(e){var t,n=e.modules.dataTree.parent;n&&(!1!
==(t=this.findChildIndex(e,n))&&n.data[this.field].splice(t,1),n.data[this.field].l
ength||delete
n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.refreshData(!
0)}addTreeChildRow(e,t,n,r){var i=!1;"string"==typeof
t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||
(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.mo
dules.dataTree.index)),void 0!==r&&!1!
==(i=this.findChildIndex(r,e))&&e.data[this.field].splice(n?i:i+1,0,t),!1===i&&(n?
e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),thi
s.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var n=!
1;return"object"==typeof e?e instanceof E?n=e.data:e instanceof _?
n=e._getSelf().data:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?
t.modules.dataTree&&(n=t.modules.dataTree.children.find((t=>t instanceof
E&&t.element===e)))&&(n=n.data):null===e&&(n=!1):n=void 0!
==e&&t.data[this.field].find((t=>t.data[this.table.options.index]==e)),n&&(Array.is
Array(t.data[this.field])&&(n=t.data[this.field].indexOf(n)),-1==n&&(n=!
1)),n}getTreeChildren(e,t,n){var r=e.modules.dataTree,i=[];return
r&&r.children&&(Array.isArray(r.children)||
(r.children=this.generateChildren(e)),r.children.forEach((e=>{e instanceof
E&&(i.push(t?
e.getComponent():e),n&&(i=i.concat(this.getTreeChildren(e,t,n))))}))),i}getChildFie
ld(){return this.field}redrawNeeded(e){return!!this.field&&void 0!
==e[this.field]||!!this.elementField&&void 0!
==e[this.elementField]}}A.moduleName="dataTree";var C={csv:function(e,t={},n){var
r=t.delimiter?t.delimiter:",",i=[],o=[];e.forEach((e=>{var t=[];switch(e.type)
{case"group":console.warn("Download Warning - CSV downloader cannot process row
groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot
process column
calculations");break;case"header":e.columns.forEach(((e,t)=>{e&&1===e.depth&&(o[t]=
void 0===e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')
+'"')}));break;case"row":e.columns.forEach((e=>{if(e){switch(typeof e.value)
{case"object":e.value=null!==e.value?
JSON.stringify(e.value):"";break;case"undefined":e.value=""}t.push('"'+String(e.val
ue).split('"').join('""')
+'"')}})),i.push(t.join(r))}})),o.length&&i.unshift(o.join(r)),i=i.join("\
n"),t.bom&&(i="\ufeff"+i),n(i,"text/csv")},json:function(e,t,n){var
r=[];e.forEach((e=>{var t={};switch(e.type)
{case"header":break;case"group":console.warn("Download Warning - JSON downloader
cannot process row groups");break;case"calc":console.warn("Download Warning - JSON
downloader cannot process column
calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDow
nload()||
e.component.getField()]=e.value)})),r.push(t)}})),n(r=JSON.stringify(r,null,"\
t"),"application/json")},jsonLines:function(e,t,n){const r=[];e.forEach((e=>{const
t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning -
JSON downloader cannot process row groups");break;case"calc":console.warn("Download
Warning - JSON downloader cannot process column
calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDow
nload()||
e.component.getField()]=e.value)})),r.push(JSON.stringify(t))}})),n(r.join("\
n"),"application/x-ndjson")},pdf:function(e,t={},n){var
r=[],i=[],o={},s=t.rowGroupStyles||
{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},a=t.rowCalcStyles||
{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},c=t.jsPDF||{},u=t.title?
t.title:"";function l(e,t){var n=[];return e.columns.forEach((e=>{var r;if(e)
{switch(typeof e.value){case"object":e.value=null!==e.value?
JSON.stringify(e.value):"";break;case"undefined":e.value=""}r={content:e.value,colS
pan:e.width,rowSpan:e.height},t&&(r.styles=t),n.push(r)}})),n}c.orientation||
(c.orientation=t.orientation||"landscape"),c.unit||
(c.unit="pt"),e.forEach((e=>{switch(e.type)
{case"header":r.push(l(e));break;case"group":i.push(l(e,s));break;case"calc":i.push
(l(e,a));break;case"row":i.push(l(e))}}));var h=new
jspdf.jsPDF(c);t.autoTable&&(o="function"==typeof t.autoTable?t.autoTable(h)||
{}:t.autoTable),u&&(o.didDrawPage=function(e)
{h.text(u,40,30)}),o.head=r,o.body=i,h.autoTable(o),t.documentProcessing&&t.documen
tProcessing(h),n(h.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n)
{var i=t.sheetName||"Sheet1",o=XLSX.utils.book_new(),s=new r(this),a=!("compress"in
t)||t.compress,c=t.writeOptions||{bookType:"xlsx",bookSST:!
0,compression:a};function u(){var t=[],n=[],r={},i={s:{c:0,r:0},e:{c:e[0]?
e[0].columns.reduce(((e,t)=>e+(t&&t.width?t.width:1)),0):0,r:e.length}};return
e.forEach(((e,r)=>{var i=[];e.columns.forEach((function(e,t){e?(i.push(e.value
instanceof Date||"object"!=typeof e.value?e.value:JSON.stringify(e.value)),
(e.width>1||e.height>-1)&&(e.height>1||e.width>1)&&n.push({s:{r,c:t},e:
{r:r+e.height-1,c:t+e.width-
1}})):i.push("")})),t.push(i)})),XLSX.utils.sheet_add_aoa(r,t),r["!
ref"]=XLSX.utils.encode_range(i),n.length&&(r["!
merges"]=n),r}if(c.type="binary",o.SheetNames=[],o.Sheets={},t.sheetOnly)n(u());els
e{if(t.sheets)for(var l in t.sheets)!0===t.sheets[l]?
(o.SheetNames.push(l),o.Sheets[l]=u()):
(o.SheetNames.push(l),s.commsSend(t.sheets[l],"download","intercept",
{type:"xlsx",options:{sheetOnly:!0},active:this.active,intercept:function(e)
{o.Sheets[l]=e}}));else
o.SheetNames.push(i),o.Sheets[i]=u();t.documentProcessing&&(o=t.documentProcessing(
o)),n(function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!
=e.length;++r)n[r]=255&e.charCodeAt(r);return
t}(XLSX.write(o,c)),"application/octet-stream")}},html:function(e,t,n)
{this.modExists("export",!0)&&n(this.modules.export.generateHTMLTable(e),"text/
html")}};class O extends s{constructor(e)
{super(e),this.registerTableOption("downloadEncoder",(function(e,t){return new
Blob([e],{type:t})})),this.registerTableOption("downloadReady",void
0),this.registerTableOption("downloadConfig",
{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption
("download"),this.registerColumnOption("titleDownload")}initialize()
{this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.
bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this
))}deprecatedOptionsCheck()
{this.deprecationCheck("downloadReady","downloadEncoder")}downloadToTab(e,t,n,r)
{this.download(e,t,n,r,!0)}download(e,t,n,r,i){var o=!1;if("function"==typeof e?
o=e:O.downloaders[e]?o=O.downloaders[e]:console.warn("Download Error - No such
download type found: ",e),o){var
s=this.generateExportList(r);o.call(this.table,s,n||{},function(n,r){i?!0===i?
this.triggerDownload(n,r,e,t,!
0):i(n):this.triggerDownload(n,r,e,t)}.bind(this))}}generateExportList(e){var
t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!
1,e||
this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDow
nload;return n&&!Array.isArray(n)&&(n=[n]),t.forEach((e=>{var
t;"group"===e.type&&(t=e.columns[0],n&&n[e.indent]&&(t.value=n[e.indent]
(t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)
))})),t}triggerDownload(e,t,n,r,i){var
o=document.createElement("a"),s=this.table.options.downloadEncoder(e,t);s&&(i?
window.open(window.URL.createObjectURL(s)):(r=r||"Tabulator."+("function"==typeof
n?"txt":n),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(s,r):
(o.setAttribute("href",window.URL.createObjectURL(s)),o.setAttribute("download",r),
o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeC
hild(o))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,n)
{"intercept"===t&&this.download(n.type,"",n.options,n.active,n.intercept)}}function
x(e,t){var n=t.mask,r=void 0!==t.maskLetterChar?t.maskLetterChar:"A",i=void 0!
==t.maskNumberChar?t.maskNumberChar:"9",o=void 0!==t.maskWildcardChar?
t.maskWildcardChar:"*";function s(t){var a=n[t];void 0!==a&&a!==o&&a!==r&&a!
==i&&(e.value=e.value+""+a,s(t+1))}e.addEventListener("keydown",(t=>{var
s=e.value.length,a=t.key;if(t.keyCode>46&&!t.ctrlKey&&!t.metaKey)
{if(s>=n.length)return t.preventDefault(),t.stopPropagation(),!1;switch(n[s]){case
r:if(a.toUpperCase()==a.toLowerCase())return
t.preventDefault(),t.stopPropagation(),!1;break;case i:if(isNaN(a))return
t.preventDefault(),t.stopPropagation(),!1;break;case o:break;default:if(a!
==n[s])return t.preventDefault(),t.stopPropagation(),!
1}}})),e.addEventListener("keyup",
(n=>{n.keyCode>46&&t.maskAutoFill&&s(e.value.length)})),e.placeholder||
(e.placeholder=n),t.maskAutoFill&&s(e.value.length)}O.moduleName="download",O.downl
oaders=C;class I{constructor(e,t,n,r,i,o)
{this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(o),t
his.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.in
put=this._createInputElement(),this.listEl=this._createListElement(),this.initialVa
lues=null,this.isFilter="header"===t.getType(),this.filterTimeout=null,this.filtere
d=!1,this.typing=!
1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filte
rTerm="",this.blurable=!
0,this.actions={success:r,cancel:i},this._deprecatedOptionsCheck(),this._initialize
Value(),n(this._onRendered.bind(this))}_deprecatedOptionsCheck()
{this.params.listItemFormatter&&this.cell.getTable().deprecationAdvisor.msg("The
listItemFormatter editor param has been deprecated, please see the latest editor
documentation for updated
options"),this.params.sortValuesList&&this.cell.getTable().deprecationAdvisor.msg("
The sortValuesList editor param has been deprecated, please see the latest editor
documentation for updated
options"),this.params.searchFunc&&this.cell.getTable().deprecationAdvisor.msg("The
searchFunc editor param has been deprecated, please see the latest editor
documentation for updated
options"),this.params.searchingPlaceholder&&this.cell.getTable().deprecationAdvisor
.msg("The searchingPlaceholder editor param has been deprecated, please see the
latest editor documentation for updated options")}_initializeValue(){var
e=this.cell.getValue();void 0===e&&void 0!
==this.params.defaultValue&&(e=this.params.defaultValue),this.initialValues=this.pa
rams.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?
this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered()
{var e=this.cell.getElement();function t(e){e.stopPropagation()}this.isFilter||
(this.input.style.height="100%",this.input.focus({preventScroll:!
0})),e.addEventListener("click",t),setTimeout((()=>{e.removeEventListener("click",t
)}),1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))
}_createListElement(){var e=document.createElement("div");return
e.classList.add("tabulator-edit-
list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListe
ner("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?
this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",thi
s.params.maxWidth&&(!0===this.params.maxWidth?
this.listEl.style.maxWidth=e.offsetWidth+"px":"number"==typeof
this.params.maxWidth?
this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=thi
s.params.maxWidth)}_createInputElement(){var
e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute
("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width=
"100%",t.style.boxSizing="border-box",this.params.autocomplete||
(t.style.cursor="default",t.style.caretColor="transparent"),e&&"object"==typeof
e)for(let n in e)"+"==n.charAt(0)?(n=n.slice(1),t.setAttribute(n,t.getAttribute(n)
+e["+"+n])):t.setAttribute(n,e[n]);return
this.params.mask&&x(t,this.params),this._bindInputEvents(t),t}_initializeParams(e)
{var
t,n=["values","valuesURL","valuesLookup"];return(e=Object.assign({},e)).verticalNav
igation=e.verticalNavigation||"editor",e.placeholderLoading=void
0===e.placeholderLoading?"Searching ...":e.placeholderLoading,e.placeholderEmpty=vo
id 0===e.placeholderEmpty?"No Results Found":e.placeholderEmpty,e.filterDelay=void
0===e.filterDelay?
300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?
e.emptyValue:"",(t=Object.keys(e).filter((e=>n.includes(e))).length)?
t>1&&console.warn("list editor config error - only one of the values, valuesURL, or
valuesLookup options can be set on the same editor"):console.warn("list editor
config error - either the values, valuesURL, or valuesLookup option must be
set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor
config error - multiselect option is not available when autocomplete is enabled")):
(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext
option is only available when autocomplete is
enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error -
filterFunc option is only available when autocomplete is
enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config
error - filterRemote option is only available when autocomplete is
enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option
is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!
1,console.warn("list editor config error - allowEmpty option is only available when
autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list
editor config error - listOnEmpty option is only available when autocomplete is
enabled"))),e.filterRemote&&"function"!=typeof e.valuesLookup&&!
e.valuesURL&&(e.filterRemote=!1,console.warn("list editor config error -
filterRemote option should only be used when values list is populated from a remote
source")),e}_bindInputEvents(e)
{e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click"
,this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this))
,e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("se
arch",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("k
eyup",this._inputKeyUp.bind(this))}_inputFocus(e)
{this.rebuildOptionsList()}_filter(){this.params.filterRemote?
(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout((()=>{this.rebuildO
ptionsList()}),this.params.filterDelay)):this._filterList()}_inputClick(e)
{e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?
this.popup.hide():this._resolveValue(!0))}_inputSearch()
{this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case
38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case
39:this._keySide(e);break;case 13:this._keyEnter();break;case
27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case
9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e)
{switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case
27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur()
{this.popup&&this.popup.blockHide(),setTimeout((()=>{this.popup&&this.popup.restore
Hide()}),10)}_preventBlur(){this.blurable=!1,setTimeout((()=>{this.blurable=!
0}),10)}_keyTab(e){this.params.autocomplete&&"typing"===this.lastAction?
this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!
0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);
("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation
&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&thi
s._focusItem(this.displayItems[t-1]))}_keyDown(e){var
t=this.displayItems.indexOf(this.focusedItem);
("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation
&&t<this.displayItems.length-
1)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t<this.dis
playItems.length-1&&(-1==t?
this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[t+1])))}_ke
ySide(e){this.params.autocomplete||
(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}_keyEnter(e)
{this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!
0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(e)
{this._cancel()}_keyHomeEnd(e)
{this.params.autocomplete&&e.stopImmediatePropagation()}_keySelectLetter(e)
{this.params.autocomplete||
(e.preventDefault(),e.keyCode>=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_
keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!
0}_scrollToValue(e){clearTimeout(this.filterTimeout);var
t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var
n=this.displayItems.find((e=>void 0!
==e.label&&e.label.toLowerCase().startsWith(this.filterTerm)));n&&this._focusItem(n
),this.filterTimeout=setTimeout((()=>{this.filterTerm=""}),800)}_focusItem(e)
{this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedIt
em.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.
classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest
",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!
0)}rebuildOptionsList()
{this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bi
nd(this)).then(this._showList.bind(this)).catch((e=>{Number.isInteger(e)||
console.error("List generation
error",e)}))}_filterList()
{this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var
t=[],n=++this.listIteration;return this.filtered=!1,this.params.values?
t=this.params.values:this.params.valuesURL?
t=this._ajaxRequest(this.params.valuesURL,this.input.value):"function"==typeof
this.params.valuesLookup?
t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t
=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||
this._addPlaceholder(this.params.placeholderLoading),t.then().then((e=>this.listIte
ration===n?
this._parseList(e):Promise.reject(n)))):Promise.resolve(this._parseList(t))}_addPla
ceholder(e){var t=document.createElement("div");"function"==typeof
e&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof
HTMLElement?t=e:(t.classList.add("tabulator-edit-list-
placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequ
est(e,t){return e=l(e,{},this.params.filterRemote?{term:t}:
{}),fetch(e).then((e=>e.ok?e.json().catch((e=>(console.warn("List Ajax Load Error -
Invalid JSON returned",e),Promise.reject(e)))):(console.error("List Ajax Load Error
- Connection Error:
"+e.status,e.statusText),Promise.reject(e)))).catch((e=>(console.error("List Ajax
Load Error - Connection Error: ",e),Promise.reject(e))))}_uniqueColumnValues(e){var
t,n={},r=this.table.getData(this.params.valuesLookup);return(t=e?
this.table.columnManager.getColumnByField(e):this.cell.getColumn()._getSelf())?
r.forEach((e=>{var r=t.getFieldValue(e);null!=r&&""!==r&&(n[r]=!0)})):
(console.warn("unable to find matching column to create select lookup
list:",e),n=[]),Object.keys(n)}_parseList(e){var t=[];return Array.isArray(e)||
(e=Object.entries(e).map((([e,t])=>({label:t,value:e})))),e.forEach((e=>{"object"!
=typeof e&&(e={label:e,value:e}),this._parseListItem(e,t,0)})),!
this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValue
s,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,n){var
r={};e.options?r=this._parseListGroup(e,n+1):
(r={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.element
Attributes,element:!1,selected:!1,visible:!
0,level:n,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-
1&&this._chooseItem(r,!0)),t.push(r)}_parseListGroup(e,t){var
n={label:e.label,group:!
0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!
1,visible:!0,level:t,options:[],original:e};return
e.options.forEach((e=>{this._parseListItem(e,n.options,t)})),n}_sortOptions(e){var
t;return this.params.sort&&(t="function"==typeof this.params.sort?
this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sort
Group(e,t)
{t.sort(((t,n)=>e(t.label,n.label,t.value,n.value,t.original,n.original))),t.forEac
h((t=>{t.group&&this._sortGroup(e,t.options)}))}_defaultSortFunction(e,t){var
n,r,i,o,s,a=0,c=/(\d+)|(\D+)/g,u=/\
d/,l=0;if("desc"===this.params.sort&&([e,t]=[t,e]),e||0===e){if(t||0===t)
{if(isFinite(e)&&isFinite(t))return e-
t;if((n=String(e).toLowerCase())===(r=String(t).toLowerCase()))return 0;if(!
u.test(n)||!u.test(r))return n>r?1:-
1;for(n=n.match(c),r=r.match(c),s=n.length>r.length?
r.length:n.length;a<s;)if((i=n[a])!==(o=r[a++]))return isFinite(i)&&isFinite(o)?
("0"===i.charAt(0)&&(i="."+i),"0"===o.charAt(0)&&(o="."+o),i-o):i>o?1:-1;return
n.length>r.length}l=1}else l=t||0===t?-1:0;return l}_filterOptions(){var
e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?
(this.filtered=!
0,this.data.forEach((n=>{this._filterItem(e,t,n)}))):this.filtered=!
1,this.data}_filterItem(e,t,n){var r=!1;return n.group?
(n.options.forEach((n=>{this._filterItem(e,t,n)&&(r=!
0)})),n.visible=r):n.visible=e(t,n.label,n.value,n.original),n.visible}_defaultFilt
erFunc(e,t,n,r){return e=String(e).toLowerCase(),null!
=t&&(String(t).toLowerCase().indexOf(e)>-1||String(n).toLowerCase().indexOf(e)>-
1)}_clearList()
{for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.
displayItems=[]}_buildList(e)
{this._clearList(),e.forEach((e=>{this._buildItem(e)})),this.displayItems.length||
this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var
t,n=e.element;if(!this.filtered||e.visible){if(!n)
{if((n=document.createElement("div")).tabIndex=0,(t=this.params.itemFormatter?
this.params.itemFormatter(e.label,e.value,e.original,n):e.label)instanceof
HTMLElement?n.appendChild(t):n.innerHTML=t,e.group?n.classList.add("tabulator-edit-
list-group"):n.classList.add("tabulator-edit-list-
item"),n.classList.add("tabulator-edit-list-group-
level-"+e.level),e.elementAttributes&&"object"==typeof e.elementAttributes)for(let
t in e.elementAttributes)"+"==t.charAt(0)?
(t=t.slice(1),n.setAttribute(t,this.input.getAttribute(t)
+e.elementAttributes["+"+t])):n.setAttribute(t,e.elementAttributes[t]);e.group?
n.addEventListener("click",this._groupClick.bind(this,e)):n.addEventListener("click
",this._itemClick.bind(this,e)),n.addEventListener("mousedown",this._preventBlur.bi
nd(this)),e.element=n}this._styleItem(e),this.listEl.appendChild(n),e.group?
e.options.forEach((e=>{this._buildItem(e)})):this.displayItems.push(e)}}_showList()
{var e=this.popup&&this.popup.isVisible();if(this.input.parentNode)
{if(this.params.autocomplete&&""===this.input.value&&!
this.params.listOnEmpty)return void(this.popup&&this.popup.hide(!
0));this._setListWidth(),this.popup||
(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"b
ottom"),e||setTimeout((()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!
0))}),10)}}_styleItem(e){e&&e.element&&(e.selected?
e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(
e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t)
{t.stopPropagation()}_cancel(){this.popup.hide(!
0),this.actions.cancel()}_clearChoices(){this.typing=!
0,this.currentItems.forEach((e=>{e.selected=!
1,this._styleItem(e)})),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t)
{var n;this.typing=!1,this.params.multiselect?((n=this.currentItems.indexOf(e))>-1?
(this.currentItems.splice(n,1),e.selected=!1):
(this.currentItems.push(e),e.selected=!
0),this.input.value=this.currentItems.map((e=>e.label)).join(","),this._styleItem(e
)):(this.currentItems=[e],e.selected=!
0,this.input.value=e.label,this._styleItem(e),t||
this._resolveValue()),this._focusItem(e)}_resolveValue(e){var
t,n;if(this.popup&&this.popup.hide(!
0),this.params.multiselect)t=this.currentItems.map((e=>e.value));else
if(e&&this.params.autocomplete&&this.typing){if(!(this.params.freetext||
this.params.allowEmpty&&""===this.input.value))return void
this.actions.cancel();t=this.input.value}else t=this.currentItems[0]?
this.currentItems[0].value:null==(n=Array.isArray(this.initialValues)?
this.initialValues[0]:this.initialValues)||""===n?
n:this.params.emptyValue;""===t&&(t=this.params.emptyValue),this.actions.success(t)
,this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?
[t]:t,this.currentItems=[])}}var P={input:function(e,t,n,r,i){var
o=e.getValue(),s=document.createElement("input");if(s.setAttribute("type",i.search?
"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="bord
er-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in
i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)
+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function
a(e){null==o&&""!==s.value||s.value!==o?n(s.value)&&(o=s.value):r()}return
s.value=void 0!==o?o:"",t((function()
{"cell"===e.getType()&&(s.focus({preventScroll:!
0}),s.style.height="100%",i.selectContents&&s.select())})),s.addEventListener("chan
ge",a),s.addEventListener("blur",a),s.addEventListener("keydown",(function(e)
{switch(e.keyCode){case 13:a();break;case 27:r();break;case 35:case
36:e.stopPropagation()}})),i.mask&&x(s,i),s},textarea:function(e,t,n,r,i){var
o=e.getValue(),s=i.verticalNavigation||"hybrid",a=String(null!=o?
o:""),c=document.createElement("textarea"),u=0;if(c.style.display="block",c.style.p
adding="2px",c.style.height="100%",c.style.width="100%",c.style.boxSizing="border-
box",c.style.whiteSpace="pre-
wrap",c.style.resize="none",i.elementAttributes&&"object"==typeof
i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),c.setAttribute(e,c.getAttribute(e)
+i.elementAttributes["+"+e])):c.setAttribute(e,i.elementAttributes[e]);function
l(t){null==o&&""!==c.value||c.value!==o?
(n(c.value)&&(o=c.value),setTimeout((function()
{e.getRow().normalizeHeight()}),300)):r()}return c.value=a,t((function()
{"cell"===e.getType()&&(c.focus({preventScroll:!
0}),c.style.height="100%",c.scrollHeight,c.style.height=c.scrollHeight+"px",e.getRo
w().normalizeHeight(),i.selectContents&&c.select())})),c.addEventListener("change",
l),c.addEventListener("blur",l),c.addEventListener("keyup",(function()
{c.style.height="";var t=c.scrollHeight;c.style.height=t+"px",t!
=u&&(u=t,e.getRow().normalizeHeight())})),c.addEventListener("keydown",(function(e)
{switch(e.keyCode){case 13:e.shiftKey&&i.shiftEnterSubmit&&l();break;case
27:r();break;case 38:
("editor"==s||"hybrid"==s&&c.selectionStart)&&(e.stopImmediatePropagation(),e.stopP
ropagation());break;case 40:("editor"==s||"hybrid"==s&&c.selectionStart!
==c.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case
35:case 36:e.stopPropagation()}})),i.mask&&x(c,i),c},number:function(e,t,n,r,i){var
o=e.getValue(),s=i.verticalNavigation||"editor",a=document.createElement("input");i
f(a.setAttribute("type","number"),void 0!==i.max&&a.setAttribute("max",i.max),void
0!==i.min&&a.setAttribute("min",i.min),void 0!
==i.step&&a.setAttribute("step",i.step),a.style.padding="4px",a.style.width="100%",
a.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof
i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),a.setAttribute(e,a.getAttribute(e)
+i.elementAttributes["+"+e])):a.setAttribute(e,i.elementAttributes[e]);a.value=o;va
r
c=function(e){u()};function u(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!
==o?n(e)&&(o=e):r()}return t((function()
{"cell"===e.getType()&&(a.removeEventListener("blur",c),a.focus({preventScroll:!
0}),a.style.height="100%",a.addEventListener("blur",c),i.selectContents&&a.select()
)})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case
13:u();break;case 27:r();break;case 38:case
40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation());break;case
35:case 36:e.stopPropagation()}})),i.mask&&x(a,i),a},range:function(e,t,n,r,i){var
o=e.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),
void 0!==i.max&&s.setAttribute("max",i.max),void 0!
==i.min&&s.setAttribute("min",i.min),void 0!
==i.step&&s.setAttribute("step",i.step),s.style.padding="4px",s.style.width="100%",
s.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof
i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)
+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function a()
{var e=s.value;isNaN(e)||""===e||(e=Number(e)),e!=o?n(e)&&(o=e):r()}return
s.value=o,t((function(){"cell"===e.getType()&&(s.focus({preventScroll:!
0}),s.style.height="100%")})),s.addEventListener("blur",(function(e)
{a()})),s.addEventListener("keydown",(function(e){switch(e.keyCode){case
13:a();break;case 27:r()}})),s},date:function(e,t,n,r,i){var
o=i.format,s=i.verticalNavigation||"editor",a=o?window.DateTime||
luxon.DateTime:null,c=e.getValue(),u=document.createElement("input");function l(e)
{return(a.isDateTime(e)?e:"iso"===o?
a.fromISO(String(e)):a.fromFormat(String(e),o)).toFormat("yyyy-MM-
dd")}if(u.type="date",u.style.padding="4px",u.style.width="100%",u.style.boxSizing=
"border-box",i.max&&u.setAttribute("max",o?
l(i.max):i.max),i.min&&u.setAttribute("min",o?
l(i.min):i.min),i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e
in i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),u.setAttribute(e,u.getAttribute(e)
+i.elementAttributes["+"+e])):u.setAttribute(e,i.elementAttributes[e]);function h()
{var e,t=u.value;if(null==c&&""!==t||t!==c)
{if(t&&o)switch(e=a.fromFormat(String(t),"yyyy-MM-dd"),o){case!
0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(o)}n(t)&&(c=u.value)}e
lse r()}return c=void 0!==c?c:"",o&&(a?c=l(c):console.error("Editor Error - 'date'
editor 'format' param is dependant on luxon.js")),u.value=c,t((function()
{"cell"===e.getType()&&(u.focus({preventScroll:!
0}),u.style.height="100%",i.selectContents&&u.select())})),u.addEventListener("blur
",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!
==u)&&h()})),u.addEventListener("keydown",(function(e){switch(e.keyCode){case
13:h();break;case 27:r();break;case 35:case 36:e.stopPropagation();break;case
38:case
40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation())}})),u},time:func
tion(e,t,n,r,i){var o,s=i.format,a=i.verticalNavigation||"editor",c=s?
window.DateTime||
luxon.DateTime:null,u=e.getValue(),l=document.createElement("input");if(l.type="tim
e",l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-
box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in
i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),l.setAttribute(e,l.getAttribute(e)
+i.elementAttributes["+"+e])):l.setAttribute(e,i.elementAttributes[e]);function h()
{var e,t=l.value;if(null==u&&""!==t||t!==u)
{if(t&&s)switch(e=c.fromFormat(String(t),"hh:mm"),s){case!
0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(s)}n(t)&&(u=l.value)}e
lse r()}return u=void 0!==u?u:"",s&&(c?(o=c.isDateTime(u)?u:"iso"===s?
c.fromISO(String(u)):c.fromFormat(String(u),s),u=o.toFormat("hh:mm")):console.error
("Editor Error - 'date' editor 'format' param is dependant on
luxon.js")),l.value=u,t((function(){"cell"==e.getType()&&(l.focus({preventScroll:!
0}),l.style.height="100%",i.selectContents&&l.select())})),l.addEventListener("blur
",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!
==l)&&h()})),l.addEventListener("keydown",(function(e){switch(e.keyCode){case
13:h();break;case 27:r();break;case 35:case 36:e.stopPropagation();break;case
38:case
40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation())}})),l},datetime:
function(e,t,n,r,i){var o,s=i.format,a=i.verticalNavigation||"editor",c=s?
window.DateTime||
luxon.DateTime:null,u=e.getValue(),l=document.createElement("input");if(l.type="dat
etime-local",l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-
box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in
i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),l.setAttribute(e,l.getAttribute(e)
+i.elementAttributes["+"+e])):l.setAttribute(e,i.elementAttributes[e]);function h()
{var e,t=l.value;if(null==u&&""!==t||t!==u)
{if(t&&s)switch(e=c.fromISO(String(t)),s){case!
0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(s)}n(t)&&(u=l.value)}e
lse r()}return u=void 0!==u?u:"",s&&(c?(o=c.isDateTime(u)?u:"iso"===s?
c.fromISO(String(u)):c.fromFormat(String(u),s),u=o.toFormat("yyyy-MM-dd")
+"T"+o.toFormat("hh:mm")):console.error("Editor Error - 'date' editor 'format'
param is dependant on luxon.js")),l.value=u,t((function()
{"cell"===e.getType()&&(l.focus({preventScroll:!
0}),l.style.height="100%",i.selectContents&&l.select())})),l.addEventListener("blur
",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!
==l)&&h()})),l.addEventListener("keydown",(function(e){switch(e.keyCode){case
13:h();break;case 27:r();break;case 35:case 36:e.stopPropagation();break;case
38:case
40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation())}})),l},select:fu
nction(e,t,n,r,i){return this.deprecationMsg("The select editor has been
deprecated, please use the new list editor"),new
I(this,e,t,n,r,i).input},list:function(e,t,n,r,i){return new
I(this,e,t,n,r,i).input},autocomplete:function(e,t,n,r,i){return
this.deprecationMsg("The autocomplete editor has been deprecated, please use the
new list editor with the 'autocomplete' editorParam"),i.autocomplete=!0,new
I(this,e,t,n,r,i).input},star:function(e,t,n,r,i){var
o=this,s=e.getElement(),a=e.getValue(),c=s.getElementsByTagName("svg").length||
5,u=s.getElementsByTagName("svg")[0]?s.getElementsByTagName("svg")
[0].getAttribute("width"):14,l=[],h=document.createElement("div"),d=document.create
ElementNS("http://www.w3.org/2000/svg","svg");function f(e)
{l.forEach((function(t,n){n<e?("ie"==o.table.browser?
t.setAttribute("class","tabulator-star-active"):t.classList.replace("tabulator-
star-inactive","tabulator-star-active"),t.innerHTML='<polygon fill="#488CE9"
stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-
linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919
489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31
144.25,309.08 29.274,197.007 188.165,173.919 "/>'):("ie"==o.table.browser?
t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-
star-active","tabulator-star-inactive"),t.innerHTML='<polygon fill="#010155"
stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-
linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919
489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31
144.25,309.08 29.274,197.007 188.165,173.919 "/>')}))}function p(e){var
t=document.createElement("span"),r=d.cloneNode(!
0);l.push(r),t.addEventListener("mouseenter",(function(t)
{t.stopPropagation(),t.stopImmediatePropagation(),f(e)})),t.addEventListener("mouse
move",(function(e)
{e.stopPropagation(),e.stopImmediatePropagation()})),t.addEventListener("click",
(function(t)
{t.stopPropagation(),t.stopImmediatePropagation(),n(e),s.blur()})),t.appendChild(r)
,h.appendChild(t)}function g(e)
{a=e,f(e)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOver
flow="ellipsis",h.style.verticalAlign="middle",h.style.display="inline-
block",h.style.padding="4px",d.setAttribute("width",u),d.setAttribute("height",u),d
.setAttribute("viewBox","0 0 512
512"),d.setAttribute("xml:space","preserve"),d.style.padding="0
1px",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in
i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),h.setAttribute(e,h.getAttribute(e)
+i.elementAttributes["+"+e])):h.setAttribute(e,i.elementAttributes[e]);for(var
m=1;m<=c;m++)p(m);return
f(a=Math.min(parseInt(a),c)),h.addEventListener("mousemove",(function(e)
{f(0)})),h.addEventListener("click",(function(e){n(0)})),s.addEventListener("blur",
(function(e){r()})),s.addEventListener("keydown",(function(e){switch(e.keyCode)
{case 39:g(a+1);break;case 37:g(a-1);break;case 13:n(a);break;case
27:r()}})),h},progress:function(e,t,n,r,i){var o,s,a=e.getElement(),c=void
0===i.max?a.getElementsByTagName("div")[0]&&a.getElementsByTagName("div")
[0].getAttribute("max")||100:i.max,u=void 0===i.min?a.getElementsByTagName("div")
[0]&&a.getElementsByTagName("div")[0].getAttribute("min")||0:i.min,l=(c-u)/
100,h=e.getValue()||
0,d=document.createElement("div"),f=document.createElement("div");function p(){var
e=window.getComputedStyle(a,null),t=l*Math.round(f.offsetWidth/((a.clientWidth-
parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-
right")))/100))+u;n(t),a.setAttribute("aria-valuenow",t),a.setAttribute("aria-
label",h)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.
bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-
handle"),f.style.display="inline-
block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#
488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",i.elementAttributes&&"object"
==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),f.setAttribute(e,f.getAttribute(e)
+i.elementAttributes["+"+e])):f.setAttribute(e,i.elementAttributes[e]);return
a.style.padding="4px
4px",h=Math.min(parseFloat(h),c),h=Math.max(parseFloat(h),u),h=Math.round((h-u)/
l),f.style.width=h+"%",a.setAttribute("aria-valuemin",u),a.setAttribute("aria-
valuemax",c),f.appendChild(d),d.addEventListener("mousedown",(function(e)
{o=e.screenX,s=f.offsetWidth})),d.addEventListener("mouseover",(function()
{d.style.cursor="ew-resize"})),a.addEventListener("mousemove",(function(e)
{o&&(f.style.width=s+e.screenX-o+"px")})),a.addEventListener("mouseup",(function(e)
{o&&(e.stopPropagation(),e.stopImmediatePropagation(),o=!1,s=!
1,p())})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case
39:e.preventDefault(),f.style.width=f.clientWidth+a.clientWidth/100+"px";break;case
37:e.preventDefault(),f.style.width=f.clientWidth-a.clientWidth/100+"px";break;case
9:case 13:p();break;case 27:r()}})),a.addEventListener("blur",(function()
{r()})),f},tickCross:function(e,t,n,r,i){var
o=e.getValue(),s=document.createElement("input"),a=i.tristate,c=void
0===i.indeterminateValue?null:i.indeterminateValue,u=!
1,l=Object.keys(i).includes("trueValue"),h=Object.keys(i).includes("falseValue");if
(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="borde
r-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in
i.elementAttributes)"+"==e.charAt(0)?
(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)
+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function
d(e){var t=s.checked;return l&&t?t=i.trueValue:h&&!t&&(t=i.falseValue),a?e?u?
c:t:s.checked&&!u?(s.checked=!1,s.indeterminate=!0,u=!0,c):(u=!1,t):t}return
s.value=o,!a||void 0!==o&&o!==c&&""!==o||(u=!0,s.indeterminate=!0),"firefox"!
=this.table.browser&&"safari"!=this.table.browser&&t((function()
{"cell"===e.getType()&&s.focus({preventScroll:!0})})),s.checked=l?o===i.trueValue:!
0===o||"true"===o||"True"===o||1===o,s.addEventListener("change",(function(e)
{n(d())})),s.addEventListener("blur",(function(e){n(d(!
0))})),s.addEventListener("keydown",(function(e)
{13==e.keyCode&&n(d()),27==e.keyCode&&r()})),s}};class D extends s{constructor(e)
{super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!
1,this.invalidEdit=!
1,this.editedCells=[],this.editors=D.editors,this.registerColumnOption("editable"),
this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.
registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.re
gisterColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells"
,this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.
clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigate
Prev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(t
his)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.
registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerT
ableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("n
avigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","i
sEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clear
Edited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",t
his.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.ce
llCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.
navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.
navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.
navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this
.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.
navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.na
vigateDown.bind(this))}initialize(){this.subscribe("cell-
init",this.bindEditor.bind(this)),this.subscribe("cell-
delete",this.clearEdited.bind(this)),this.subscribe("cell-value-
changed",this.updateCellClass.bind(this)),this.subscribe("column-
layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-
delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-
deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-
layout",this.rowEditableCheck.bind(this)),this.subscribe("data-
refreshing",this.cancelEdit.bind(this)),this.subscribe("keybinding-nav-
prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-
next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-
left",this.navigateLeft.bind(this,void 0)),this.subscribe("keybinding-nav-
right",this.navigateRight.bind(this,void 0)),this.subscribe("keybinding-nav-
up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-
down",this.navigateDown.bind(this,void 0))}keybindingNavigateNext(e){var
t=this.currentCell,n=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||
n&&(t.getElement().firstChild.blur(),(n=!0===n?
this.table.addRow({}):"function"==typeof n?
this.table.addRow(n(t.row.getComponent())):this.table.addRow(Object.assign({},n))).
then((()=>{setTimeout((()=>{t.getComponent().navigateNext()}))}))))}cellIsEdited(e)
{return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e)
{e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel
Editor Error - This cell is not currently being edited ")}updateCellClass(e)
{this.allowEdit(e)?e.getElement().classList.add("tabulator-
editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e)
{e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||
(e=[e]),e.forEach((e=>{this.table.modules.edit.clearEdited(e._getSelf())}))}navigat
ePrev(e=this.currentCell,t){var n,r;if(e)
{if(t&&t.preventDefault(),n=this.navigateLeft())return!
0;if((r=this.table.rowManager.prevDisplayRow(e.row,!
0))&&(n=this.findPrevEditableCell(r,r.cells.length)))return
n.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var
n,r;if(e){if(t&&t.preventDefault(),n=this.navigateRight())return!
0;if((r=this.table.rowManager.nextDisplayRow(e.row,!
0))&&(n=this.findNextEditableCell(r,-1)))return n.getComponent().edit(),!0}return!
1}navigateLeft(e=this.currentCell,t){var n,r;return!!
(e&&(t&&t.preventDefault(),n=e.getIndex(),r=this.findPrevEditableCell(e.row,n)))&&(
r.getComponent().edit(),!0)}navigateRight(e=this.currentCell,t){var n,r;return!!
(e&&(t&&t.preventDefault(),n=e.getIndex(),r=this.findNextEditableCell(e.row,n)))&&(
r.getComponent().edit(),!0)}navigateUp(e=this.currentCell,t){var n,r;return!!
(e&&(t&&t.preventDefault(),n=e.getIndex(),r=this.table.rowManager.prevDisplayRow(e.
row,!0)))&&(r.cells[n].getComponent().edit(),!0)}navigateDown(e=this.currentCell,t)
{var n,r;return!!
(e&&(t&&t.preventDefault(),n=e.getIndex(),r=this.table.rowManager.nextDisplayRow(e.
row,!0)))&&(r.cells[n].getComponent().edit(),!0)}findNextEditableCell(e,t){var n=!
1;if(t<e.cells.length-1)for(var r=t+1;r<e.cells.length;r++){let
t=e.cells[r];if(t.column.modules.edit&&i.elVisible(t.getElement())&&this.allowEdit(
t)){n=t;break}}return n}findPrevEditableCell(e,t){var n=!1;if(t>0)for(var r=t-
1;r>=0;r--){let
t=e.cells[r];if(t.column.modules.edit&&i.elVisible(t.getElement())&&this.allowEdit(
t)){n=t;break}}return n}initializeColumnCheck(e){void 0!
==e.definition.editor&&this.initializeColumn(e)}columnDeleteCheck(e)
{this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e)
{this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e)
{e.getCells().forEach((e=>{e.column.modules.edit&&"function"==typeof
e.column.modules.edit.check&&this.updateCellClass(e)}))}initializeColumn(e){var
t={editor:!1,blocked:!
1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(typeof
e.definition.editor){case"string":this.editors[e.definition.editor]?
t.editor=this.editors[e.definition.editor]:console.warn("Editor Error - No such
editor found:
",e.definition.editor);break;case"function":t.editor=e.definition.editor;break;case
"boolean":!0===e.definition.editor&&("function"!=typeof e.definition.formatter?
this.editors[e.definition.formatter]?
t.editor=this.editors[e.definition.formatter]:t.editor=this.editors.input:console.w
arn("Editor Error - Cannot auto lookup editor for a custom formatter:
",e.definition.formatter))}t.editor&&(e.modules.edit=t)}getCurrentCell(){return!!
this.currentCell&&this.currentCell.getComponent()}clearEditor(e){var
t,n=this.currentCell;if(this.invalidEdit=!1,n){for(this.currentCell=!
1,t=n.getElement(),this.dispatch("edit-editor-
clear",n,e),t.classList.remove("tabulator-
editing");t.firstChild;)t.removeChild(t.firstChild);n.row.getElement().classList.re
move("tabulator-editing"),n.table.element.classList.remove("tabulator-
editing")}}cancelEdit(){if(this.currentCell){var
e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!
0),e.setValueActual(e.getValue()),e.cellRendered(),
("textarea"==e.column.definition.editor||
e.column.definition.variableHeight)&&e.row.normalizeHeight(!
0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.cal
l(this.table,t),this.dispatch("edit-
cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e)
{if(e.column.modules.edit){var t=this,n=e.getElement(!
0);this.updateCellClass(e),n.setAttribute("tabindex",0),n.addEventListener("click",
(function(e){n.classList.contains("tabulator-editing")||n.focus({preventScroll:!
0})})),n.addEventListener("mousedown",(function(e){2===e.button?
e.preventDefault():t.mouseClick=!0})),n.addEventListener("focus",(function(n)
{t.recursionBlock||t.edit(e,n,!1)}))}}focusCellNoEvent(e,t){this.recursionBlock=!
0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!
0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!
1,t)}focusScrollAdjust(e){if("virtual"==this.table.rowManager.getRenderMode()){var
t=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHei
ght+this.table.rowManager.element.scrollTop,r=e.row.getElement();r.of
fsetTop<t?this.table.rowManager.element.scrollTop-=t-
r.offsetTop:r.offsetTop+r.offsetHeight>n&&(this.table.rowManager.element.scrollTop+
=r.offsetTop+r.offsetHeight-n);var
i=this.table.rowManager.element.scrollLeft,o=this.table.rowManager.element.clientWi
dth+this.table.rowManager.element.scrollLeft,s=e.getElement();this.table.modExists(
"frozenColumns")&&(i+=parseInt(this.table.modules.frozenColumns.leftMargin||0),o-
=parseInt(this.table.modules.frozenColumns.rightMargin||
0)),"virtual"===this.table.options.renderHorizontal&&(i-
=parseInt(this.table.columnManager.renderer.vDomPadLeft),o-
=parseInt(this.table.columnManager.renderer.vDomPadLeft)),s.offsetLeft<i?
this.table.rowManager.element.scrollLeft-=i-
s.offsetLeft:s.offsetLeft+s.offsetWidth>o&&(this.table.rowManager.element.scrollLef
t+=s.offsetLeft+s.offsetWidth-o)}}allowEdit(e){var t=!!
e.column.modules.edit;if(e.column.modules.edit)switch(typeof
e.column.modules.edit.check)
{case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent())
);break;case"string":t=!!
e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit
.check}return t}edit(e,t,n){var r,i,o,s=this,a=function(){},c=e.getElement();if(!
this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!
1,c.blur(),!1;if(t&&t.stopPropagation(),this.allowEdit(e)||n)
{if(s.cancelEdit(),s.currentCell=e,this.focusScrollAdjust(e),i=e.getComponent(),thi
s.mouseClick&&(this.mouseClick=!
1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,i)
),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,
i),this.dispatch("cell-
editing",e),this.dispatchExternal("cellEditing",i),o="function"==typeof
e.column.modules.edit.params?
e.column.modules.edit.params(i):e.column.modules.edit.params,r=e.column.modules.edi
t.editor.call(s,i,(function(e){a=e}),(function(t){if(s.currentCell===e){var
n=s.chain("edit-success",[e,t],!0,!0);return!
0===n||"highlight"===s.table.options.validationMode?
(s.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,-
1==s.editedCells.indexOf(e)&&s.editedCells.push(e),e.setValue(t,!0),!0===n):
(s.invalidEdit=!0,s.focusCellNoEvent(e,!0),a(),!1)}}),(function()
{s.currentCell===e&&s.cancelEdit()}),o),!this.currentCell||!1===r)return c.blur(),!
1;if(!(r instanceof Node))return console.warn("Edit Error - Editor should return an
instance of Node, the editor returned:",r),c.blur(),!
1;for(c.classList.add("tabulator-
editing"),e.row.getElement().classList.add("tabulator-
editing"),e.table.element.classList.add("tabulator-
editing");c.firstChild;)c.removeChild(c.firstChild);c.appendChild(r),a();for(var
u=c.children,l=0;l<u.length;l++)u[l].addEventListener("click",(function(e)
{e.stopPropagation()}));return!0}return this.mouseClick=!1,c.blur(),!
1}this.invalidEdit||this.currentCell===e||this.cancelEdit()}getEditedCells(){var
e=[];return
this.editedCells.forEach((t=>{e.push(t.getComponent())})),e}clearEdited(e){var
t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!
1,this.dispatch("edit-edited-clear",e)),(t=this.editedCells.indexOf(e))>-
1&&this.editedCells.splice(t,1)}}D.moduleName="edit",D.editors=P;class
k{constructor(e,t,n,r){this.type=e,this.columns=t,this.component=n||!
1,this.indent=r||0}}class R{constructor(e,t,n,r,i){this.value=e,this.component=t||!
1,this.width=n,this.height=r,this.depth=i}}class M extends s{constructor(e)
{super(e),this.config={},this.cloneTableStyle=!
0,this.colVisProp="",this.registerTableOption("htmlOutputConfig",!
1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutp
ut")}initialize()
{this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e
,t,n,r){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=r;var i=!1!
==this.config.columnHeaders?
this.headersToExportRows(this.generateColumnGroupHeaders()):
[],o=this.bodyToExportRows(this.rowLookup(n));return
i.concat(o)}generateTable(e,t,n,r){var i=this.generateExportList(e,t,n,r);return
this.generateTableElement(i)}rowLookup(e){var t=[];if("function"==typeof
e)e.call(this.table).forEach((e=>{(e=this.table.rowManager.findRow(e))&&t.push(e)})
);else switch(e){case!0:case"visible":t=this.table.rowManager.getVisibleRows(!1,!
0);break;case"all":t=this.table.rowManager.rows;break;case"selected":t=this.table.m
odules.selectRow.selectedRows;break;default:t=this.table.options.pagination?
this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-
2):this.table.rowManager.getDisplayRows()}return
Object.assign([],t)}generateColumnGroupHeaders(){var e=[];return(!1!
==this.config.columnGroups?
this.table.columnManager.columns:this.table.columnManager.columnsByIndex).forEach((
t=>{var n=this.processColumnGroup(t);n&&e.push(n)})),e}processColumnGroup(e){var
t=e.columns,n=0,r={title:e.definition["title"+
(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||
e.definition.title,column:e,depth:1};if(t.length)
{if(r.subGroups=[],r.width=0,t.forEach((e=>{var
t=this.processColumnGroup(e);t&&(r.width+=t.width,r.subGroups.push(t),t.depth>n&&(n
=t.depth))})),r.depth+=n,!r.width)return!1}else{if(!this.columnVisCheck(e))return!
1;r.width=1}return r}columnVisCheck(e){var
t=e.definition[this.colVisProp];return"function"==typeof
t&&(t=t.call(this.table,e.getComponent())),!1!==t&&(e.visible||!
e.visible&&t)}headersToExportRows(e){var t=[],n=0,r=[];function i(e,r){var o=n-
r;if(void 0===t[r]&&(t[r]=[]),e.height=e.subGroups?1:o-
e.depth+1,t[r].push(e),e.height>1)for(let n=1;n<e.height;n++)void
0===t[r+n]&&(t[r+n]=[]),t[r+n].push(!1);if(e.width>1)for(let n=1;n<e.width;n+
+)t[r].push(!1);e.subGroups&&e.subGroups.forEach((function(e){i(e,r+1)}))}return
e.forEach((function(e){e.depth>n&&(n=e.depth)})),e.forEach((function(e)
{i(e,0)})),t.forEach((e=>{var t=[];e.forEach((e=>{if(e){let n=void
0===e.title?"":e.title;t.push(new
R(n,e.column.getComponent(),e.width,e.height,e.depth))}else
t.push(null)})),r.push(new k("header",t))})),r}bodyToExportRows(e){var
t=[],n=[];return
this.table.columnManager.columnsByIndex.forEach((e=>{this.columnVisCheck(e)&&t.push
(e.getComponent())})),!1!
==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules
.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.
table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.bot
Row)),(e=e.filter((e=>{switch(e.type){case"group":return!1!
==this.config.rowGroups;case"calc":return!1!
==this.config.columnCalcs;case"row":return!(this.table.options.dataTree&&!
1===this.config.dataTree&&e.modules.dataTree.parent)}return!
0}))).forEach(((e,r)=>{var i=e.getData(this.colVisProp),o=[],s=0;switch(e.type)
{case"group":s=e.level,o.push(new
R(e.key,e.getComponent(),t.length,1));break;case"calc":case"row":t.forEach((e=>{o.p
ush(new R(e._column.getFieldValue(i),e,1,1))})),this.table.options.dataTree&&!1!
==this.config.dataTree&&(s=e.modules.dataTree.index)}n.push(new
k(e.type,o,e.getComponent(),s))})),n}generateTableElement(e){var
t=document.createElement("table"),n=document.createElement("thead"),r=document.crea
teElement("tbody"),i=this.lookupTableStyles(),o=this.table.options["rowFormatter"+
(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s={};return
s.rowFormatter=null!==o?
o:this.table.options.rowFormatter,this.table.options.dataTree&&!1!
==this.config.dataTree&&this.table.modExists("columnCalcs")&&(s.treeElementField=th
is.table.modules.dataTree.elementField),s.groupHeader=this.table.options["groupHead
er"+(this.colVisProp.charAt(0).toUpperCase()
+this.colVisProp.slice(1))],s.groupHeader&&!
Array.isArray(s.groupHeader)&&(s.groupHeader=[s.groupHeader]),t.classList.add("tabu
lator-print-
table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,
["border-top","border-left","border-right","border-bottom","background-
color","color","font-weight","font-family","font-
size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table
with more than 1000 rows"),e.forEach(((e,t)=>{let o;switch(e.type)
{case"header":n.appendChild(this.generateHeaderElement(e,s,i));break;case"group":r.
appendChild(this.generateGroupElement(e,s,i));break;case"calc":r.appendChild(this.g
enerateCalcElement(e,s,i));break;case"row":o=this.generateRowElement(e,s,i),this.ma
pElementStyles(t%2&&i.evenRow?i.evenRow:i.oddRow,o,["border-top","border-
left","border-right","border-bottom","color","font-weight","font-family","font-
size","background-
color"]),r.appendChild(o)}})),n.innerHTML&&t.appendChild(n),t.appendChild(r),this.m
apElementStyles(this.table.element,t,["border-top","border-left","border-
right","border-bottom"]),t}lookupTableStyles(){var e={};return
this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySe
lector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-
calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-
even:not(.tabulator-group):not(.tabulator-
calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-
calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-
group):not(.tabulator-
calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")
[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-
cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-
1])),e}generateHeaderElement(e,t,n){var r=document.createElement("tr");return
e.columns.forEach((e=>{if(e){var
t=document.createElement("th"),n=e.component._column.definition.cssClass?
e.component._column.definition.cssClass.split(" "):
[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,this.cloneTableStyle&&(
t.style.boxSizing="border-box"),n.forEach((function(e)
{t.classList.add(e)})),this.mapElementStyles(e.component.getElement(),t,["text-
align","border-top","border-left","border-right","border-bottom","background-
color","color","font-weight","font-family","font-
size"]),this.mapElementStyles(e.component._column.contentElement,t,["pa
dding-top","padding-left","padding-right","padding-
bottom"]),e.component._column.visible?
this.mapElementStyles(e.component.getElement(),t,
["width"]):e.component._column.definition.width&&(t.style.width=e.component._column
.definition.width+"px"),e.component._column.parent&&this.mapElementStyles(e.compone
nt._column.parent.groupElement,t,["border-
top"]),r.appendChild(t)}})),r}generateGroupElement(e,t,n){var
r=document.createElement("tr"),i=document.createElement("td"),o=e.columns[0];return
r.classList.add("tabulator-print-table-
row"),t.groupHeader&&t.groupHeader[e.indent]?o.value=t.groupHeader[e.indent]
(o.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)
:!1!
==t.groupHeader&&(o.value=e.component._group.generator(o.value,e.component._group.g
etRowCount(),e.component._group.getData(),e.component)),i.colSpan=o.width,i.innerHT
ML=o.value,r.classList.add("tabulator-print-table-
group"),r.classList.add("tabulator-group-
level-"+e.indent),o.component.isVisible()&&r.classList.add("tabulator-group-
visible"),this.mapElementStyles(n.firstGroup,r,["border-top","border-left","border-
right","border-bottom","color","font-weight","font-family","font-size","background-
color"]),this.mapElementStyles(n.firstGroup,i,["padding-top","padding-
left","padding-right","padding-
bottom"]),r.appendChild(i),r}generateCalcElement(e,t,n){var
r=this.generateRowElement(e,t,n);return r.classList.add("tabulator-print-table-
calcs"),this.mapElementStyles(n.calcRow,r,["border-top","border-left","border-
right","border-bottom","color","font-weight","font-family","font-size","background-
color"]),r}generateRowElement(e,t,n){var r=document.createElement("tr");return
r.classList.add("tabulator-print-table-row"),e.columns.forEach(((i,o)=>{if(i){var
s,a=document.createElement("td"),c=i.component._column,u=this.table.columnManager.f
indColumnIndex(c),l=i.value,h={modules:{},getValue:function(){return
l},getField:function(){return c.definition.field},getElement:function(){return
a},getType:function(){return"cell"},getColumn:function(){return
c.getComponent()},getData:function(){return
e.component.getData()},getRow:function(){return
e.component},getComponent:function(){return h},column:c};if((c.definition.cssClass?
c.definition.cssClass.split(" "):[]).forEach((function(e)
{a.classList.add(e)})),this.table.modExists("format")&&!1!
==this.config.formatCells)l=this.table.modules.format.formatExportValue(h,this.colV
isProp);else switch(typeof l){case"object":l=null!==l?
JSON.stringify(l):"";break;case"undefined":l=""}l instanceof Node?
a.appendChild(l):a.innerHTML=l,(s=n.styleCells&&n.styleCells[u]?
n.styleCells[u]:n.firstCell)&&(this.mapElementStyles(s,a,["padding-top","padding-
left","padding-right","padding-bottom","border-top","border-left","border-
right","border-bottom","color","font-weight","font-family","font-size","text-
align"]),c.definition.align&&(a.style.textAlign=c.definition.align)),this.table.opt
ions.dataTree&&!1!
==this.config.dataTree&&(t.treeElementField&&t.treeElementField==c.field||!
t.treeElementField&&0==o)&&(e.component._row.modules.dataTree.controlEl&&a.insertBe
fore(e.component._row.modules.dataTree.controlEl.cloneNode(!
0),a.firstChild),e.component._row.modules.dataTree.branchEl&&a.insertBefore(e.compo
nent._row.modules.dataTree.branchEl.cloneNode(!
0),a.firstChild)),r.appendChild(a),h.modules.format&&h.modules.format.renderedCallb
ack&&h.modules.format.renderedCallback()}})),t.rowFormatter&&"row"===e.type&&!1!
==this.config.formatCells&&(Object.assign(e.component).getElement=function(){return
r},t.rowFormatter(e.component)),r}generateHTMLTable(e){var
t=document.createElement("div");return
t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,n,r){var
i=this.generateExportList(n||
this.table.options.htmlOutputConfig,t,e,r||"htmlOutput");return
this.generateHTMLTable(i)}mapElementStyles(e,t,n){if(this.cloneTableStyle&&e&&t)
{var r={"background-color":"backgroundColor",color:"fontColor",width:"width","font-
weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-
align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-
right":"borderRight","border-bottom":"borderBottom","padding-
top":"paddingTop","padding-left":"paddingLeft","padding-
right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle)
{var i=window.getComputedStyle(e);n.forEach((function(e){t.style[r[e]]||
(t.style[r[e]]=i.getPropertyValue(e))}))}}}}M.moduleName="export";var
N={"=":function(e,t,n,r){return t==e},"<":function(e,t,n,r){return
t<e},"<=":function(e,t,n,r){return t<=e},">":function(e,t,n,r){return
t>e},">=":function(e,t,n,r){return t>=e},"!=":function(e,t,n,r){return t!
=e},regex:function(e,t,n,r){return"string"==typeof e&&(e=new
RegExp(e)),e.test(t)},like:function(e,t,n,r){return null==e?t===e:null!
=t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,n,r)
{var i=e.toLowerCase().split(void 0===r.separator?"
":r.separator),o=String(null==t?"":t).toLowerCase(),s=[];return
i.forEach((e=>{o.includes(e)&&s.push(!0)})),r.matchAll?s.length===i.length:!!
s.length},starts:function(e,t,n,r){return null==e?t===e:null!
=t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,n,r)
{return null==e?t===e:null!
=t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,n,r){return
Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter
value is not an array:",e),!1)}};class L extends s{constructor(e)
{super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this
.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=
!1,this.tableInitialized=!
1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialF
ilter",!1),this.registerTableOption("initialHeaderFilter",!
1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOp
tion("placeholderHeaderFilter",!
1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilte
rPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnO
ption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.
registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFil
terLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this))
,this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerT
ableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction(
"refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addF
ilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.
getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userS
etHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",t
his.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilte
rValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHe
aderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFi
lter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",th
is.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.
userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFi
lterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("co
lumn","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerCompone
ntFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),th
is.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterVa
lue.bind(this))}initialize(){this.subscribe("column-
init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-
fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-
fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-
built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceh
older.bind(this)),"remote"===this.table.options.filterMode&&this.subscribe("data-
params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bi
nd(this),10)}tableBuilt()
{this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter)
,this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.for
Each((e=>{var t=this.table.columnManager.findColumn(e.field);if(!t)return
console.warn("Column Filter Error - No matching column found:",e.field),!
1;this.setHeaderFilterValue(t,e.value)})),this.tableInitialized=!
0}remoteFilterParams(e,t,n,r){return r.filter=this.getFilters(!0,!
0),r}generatePlaceholder(e)
{if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).len
gth)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,n,r)
{this.setFilter(e,t,n,r),this.refreshFilter()}userRefreshFilter()
{this.refreshFilter()}userAddFilter(e,t,n,r)
{this.addFilter(e,t,n,r),this.refreshFilter()}userSetHeaderFilterFocus(e){var
t=this.table.columnManager.findColumn(e);if(!t)return console.warn("Column Filter
Focus Error - No matching column found:",e),!
1;this.setHeaderFilterFocus(t)}userGetHeaderFilterValue(e){var
t=this.table.columnManager.findColumn(e);if(t)return
this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column
found:",e)}userSetHeaderFilterValue(e,t){var
n=this.table.columnManager.findColumn(e);if(!n)return console.warn("Column Filter
Error - No matching column found:",e),!
1;this.setHeaderFilterValue(n,t)}userRemoveFilter(e,t,n)
{this.removeFilter(e,t,n),this.refreshFilter()}userClearFilter(e)
{this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter()
{this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,n){return
this.search("rows",e,t,n)}searchData(e,t,n){return
this.search("data",e,t,n)}initializeColumnHeaderFilter(e)
{e.definition.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var
n=this,r=e.getField();e.modules.filter={success:function(t){var
i,o="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea
"==e.modules.filter.tagType?"partial":"match",s="",a="";if(void
0===e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t)
{if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete
n.headerFilters[r];else{switch(e.modules.filter.value=t,typeof
e.definition.headerFilterFunc)
{case"string":L.filters[e.definition.headerFilterFunc]?
(s=e.definition.headerFilterFunc,i=function(n){var
r=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(n);return
r="function"==typeof r?r(t,i,n):r,L.filters[e.definition.headerFilterFunc]
(t,i,n,r)}):console.warn("Header Filter Error - Matching filter function not found:
",e.definition.headerFilterFunc);break;case"function":s=i=function(n){var
r=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(n);return
r="function"==typeof r?r(t,i,n):r,e.definition.headerFilterFunc(t,i,n,r)}}i||
("partial"===o?(i=function(n){var r=e.getFieldValue(n);return null!
=r&&String(r).toLowerCase().indexOf(String(t).toLowerCase())>-1},s="like"):
(i=function(n){return
e.getFieldValue(n)==t},s="=")),n.headerFilters[r]={value:t,func:i,type:s}}e.modules
.filter.value=t,a=JSON.stringify(n.headerFilters),n.prevHeaderFilterChangeCheck!
==a&&(n.prevHeaderFilterChangeCheck=a,n.trackChanges(),n.refreshFilter())}return!
0},attrType:!1,tagType:!1,emptyFunc:!
1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,n){var
r,i,o,s,a,c,u,l,h=this,d=e.modules.filter.success,f=e.getField();if(e.modules.filte
r.value=t,e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode
&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),f)
{switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e)
{return!e&&0!==e},(r=document.createElement("div")).classList.add("tabulator-
header-filter"),typeof e.definition.headerFilter)
{case"string":h.table.modules.edit.editors[e.definition.headerFilter]?
(i=h.table.modules.edit.editors[e.definition.headerFilter],"tick"!
==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||
e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e)
{return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter,
No such editor found:
",e.definition.editor);break;case"function":i=e.definition.headerFilter;break;case"
boolean":e.modules.edit&&e.modules.edit.editor?
i=e.modules.edit.editor:e.definition.formatter&&h.table.modules.edit.editors[e.defi
nition.formatter]?(i=h.table.modules.edit.editors[e.definition.formatter],"tick"!
==e.definition.formatter&&"tickCross"!==e.definition.formatter||
e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e)
{return!0!==e&&!1!==e})):i=h.table.modules.edit.editors.input}if(i)
{if(s={getValue:function(){return void 0!==t?t:""},getField:function(){return
e.definition.field},getElement:function(){return r},getColumn:function(){return
e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function()
{return{normalizeHeight:function()
{}}}},u="function"==typeof(u=e.definition.headerFilterParams||{})?
u.call(h.table,s):u,!(o=i.call(this.table.modules.edit,s,(function(e){l=e}),d,
(function(){}),u)))return void console.warn("Filter Error - Cannot add filter to
"+f+" column, editor returned a value of false");if(!(o instanceof Node))return
void console.warn("Filter Error - Cannot add filter to "+f+" column, editor should
return an instance of Node, the editor returned:",o);h.langBind("headerFilters|
columns|"+e.definition.field,(function(t){o.setAttribute("placeholder",void 0!
==t&&t?t:e.definition.headerFilterPlaceholder||h.langText("headerFilters|
default"))})),o.addEventListener("click",(function(e)
{e.stopPropagation(),o.focus()})),o.addEventListener("focus",(e=>{var
t=this.table.columnManager.contentsElement.scrollLeft;t!
==this.table.rowManager.element.scrollLeft&&(this.table.rowManager.scrollHorizontal
(t),this.table.columnManager.scrollHorizontal(t))})),a=!1,c=function(e)
{a&&clearTimeout(a),a=setTimeout((function()
{d(o.value)}),h.table.options.headerFilterLiveFilterDelay)},e.modules.filter.header
Element=o,e.modules.filter.attrType=o.hasAttribute("type")?
o.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=o.tagName.toLowerC
ase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!
==e.definition.headerFilter&&"tickCross"!
==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!
==e.definition.editor||!0!
==e.definition.headerFilter)&&(o.addEventListener("keyup",c),o.addEventListener("se
arch",c),"number"==e.modules.filter.attrType&&o.addEventListener("change",
(function(e){d(o.value)})),"text"==e.modules.filter.attrType&&"ie"!
==this.table.browser&&o.setAttribute("type","search")),"input"!
=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!
=e.modules.filter.tagType||o.addEventListener("mousedown",(function(e)
{e.stopPropagation()}))),r.appendChild(o),e.contentElement.appendChild(r),n||
h.headerFilterColumns.push(e),l&&l()}}else console.warn("Filter Error - Cannot add
header filter, column has no field
set:",e.definition.title)}hideHeaderFilterElements()
{this.headerFilterColumns.forEach((function(e)
{e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.
style.display="none")}))}showHeaderFilterElements()
{this.headerFilterColumns.forEach((function(e)
{e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.
style.display="")}))}setHeaderFilterFocus(e)
{e.modules.filter&&e.modules.filter.headerElement?
e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No
header filter set on column:",e.getField())}getHeaderFilterValue(e)
{if(e.modules.filter&&e.modules.filter.headerElement)return
e.modules.filter.value;console.warn("Column Filter Error - No header filter set on
column:",e.getField())}setHeaderFilterValue(e,t)
{e&&(e.modules.filter&&e.modules.filter.headerElement?
(this.generateHeaderFilterElement(e,t,!
0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header
filter set on column:",e.getField()))}reloadHeaderFilter(e)
{e&&(e.modules.filter&&e.modules.filter.headerElement?
this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column
Filter Error - No header filter set on column:",e.getField()))}refreshFilter()
{this.tableInitialized&&("remote"===this.table.options.filterMode?
this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!
0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return
this.changed=!1,e}setFilter(e,t,n,r){this.filterList=[],Array.isArray(e)||
(e=[{field:e,type:t,value:n,params:r}]),this.addFilter(e)}addFilter(e,t,n,r){var
i=!1;Array.isArray(e)||
(e=[{field:e,type:t,value:n,params:r}]),e.forEach((e=>{(e=this.findFilter(e))&&(thi
s.filterList.push(e),i=!0)})),i&&this.trackChanges()}findFilter(e){var
t;if(Array.isArray(e))return this.findSubFilters(e);var n=!
1;return"function"==typeof e.field?n=function(t){return e.field(t,e.type||
{})}:L.filters[e.type]?n=(t=this.table.columnManager.getColumnByField(e.field))?
function(n){return L.filters[e.type](e.value,t.getFieldValue(n),n,e.params||
{})}:function(t){return L.filters[e.type](e.value,t[e.field],t,e.params||
{})}:console.warn("Filter Error - No such filter type found, ignoring:
",e.type),e.func=n,!!e.func&&e}findSubFilters(e){var t=[];return
e.forEach((e=>{(e=this.findFilter(e))&&t.push(e)})),!!t.length&&t}getFilters(e,t)
{var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach((function(e)
{"function"==typeof
e.type&&(e.type="function")})),n.concat(this.filtersToArray(this.filterList,t))}fil
tersToArray(e,t){var n=[];return e.forEach((e=>{var r;Array.isArray(e)?
n.push(this.filtersToArray(e,t)):
(r={field:e.field,type:e.type,value:e.value},t&&"function"==typeof
r.type&&(r.type="function"),n.push(r))})),n}getHeaderFilters(){var e=[];for(var t
in
this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.heade
rFilters[t].value});return e}removeFilter(e,t,n){Array.isArray(e)||
(e=[{field:e,type:t,value:n}]),e.forEach((e=>{var t;(t="object"==typeof e.field?
this.filterList.findIndex((t=>e===t)):this.filterList.findIndex((t=>e.field===t.fie
ld&&e.type===t.type&&e.value===t.value)))>-1?
this.filterList.splice(t,1):console.warn("Filter Error - No matching filter type
found, ignoring: ",e.type)})),this.trackChanges()}clearFilter(e)
{this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilt
er()
{this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColum
ns.forEach((e=>{void 0!==e.modules.filter.value&&delete
e.modules.filter.value,e.modules.filter.prevSuccess=void
0,this.reloadHeaderFilter(e)})),this.trackChanges()}search(e,t,n,r){var
i=[],o=[];return Array.isArray(t)||
(t=[{field:t,type:n,value:r}]),t.forEach((e=>{(e=this.findFilter(e))&&o.push(e)})),
this.table.rowManager.rows.forEach((t=>{var n=!
0;o.forEach((e=>{this.filterRecurse(e,t.getData())||(n=!1)})),n&&i.push("data"===e?
t.getData("data"):t.getComponent())})),i}filter(e,t){var n=[],r=[];return
this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",thi
s.getFilters(!0)),"remote"!
==this.table.options.filterMode&&(this.filterList.length||
Object.keys(this.headerFilters).length)?
e.forEach((e=>{this.filterRow(e)&&n.push(e)})):n=e.slice(0),this.subscribedExternal
("dataFiltered")&&(n.forEach((e=>{r.push(e.getComponent())})),this.dispatchExternal
("dataFiltered",this.getFilters(!0),r)),n}filterRow(e,t){var n=!
0,r=e.getData();for(var i in this.filterList.forEach((e=>{this.filterRecurse(e,r)||
(n=!1)})),this.headerFilters)this.headerFilters[i].func(r)||(n=!1);return
n}filterRecurse(e,t){var n=!1;return Array.isArray(e)?
e.forEach((e=>{this.filterRecurse(e,t)&&(n=!
0)})):n=e.func(t),n}}L.moduleName="filter",L.filters=N;var
F={plaintext:function(e,t,n){return
this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return
e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-
wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var
r,i,o,s,a,c=parseFloat(e.getValue()),u="",l=t.decimal||".",h=t.thousand||",",d=t.ne
gativeSign||"-",f=t.symbol||"",p=!!t.symbolAfter,g=void 0!==t.precision?
t.precision:2;if(isNaN(c))return
this.emptyToSpace(this.sanitizeHTML(e.getValue()));if(c<0&&(c=Math.abs(c),u=d),r=!
1!==g?c.toFixed(g):c,i=(r=String(r).split("."))[0],o=r.length>1?l+r[1]:"",!1!
==t.thousand)for(s=/(\d+)(\d{3})/;s.test(i);)i=i.replace(s,"$1"+h+"$2");return
a=i+o,!0===u?(a="("+a+")",p?a+f:f+a):p?u+a+f:u+f+a},link:function(e,t,n){var
r,i=e.getValue(),o=t.urlPrefix||"",s=t.download,a=i,c=document.createElement("a");i
f(t.labelField&&(r=e.getData(),a=function e(t,n){var r=n[t.shift()];return
t.length&&"object"==typeof r?e(t,r):r}
(t.labelField.split(this.table.options.nestedFieldSeparator),r)),t.label)switch(typ
eof t.label){case"string":a=t.label;break;case"function":a=t.label(e)}if(a)
{if(t.urlField&&(i=(r=e.getData())[t.urlField]),t.url)switch(typeof t.url)
{case"string":i=t.url;break;case"function":i=t.url(e)}return
c.setAttribute("href",o+i),t.target&&c.setAttribute("target",t.target),t.download&&
(s="function"==typeof s?s(e):!
0===s?"":s,c.setAttribute("download",s)),c.innerHTML=this.emptyToSpace(this.sanitiz
eHTML(a)),c}return" "},image:function(e,t,n){var
r=document.createElement("img"),i=e.getValue();switch(t.urlPrefix&&(i=t.urlPrefix+e
.getValue()),t.urlSuffix&&(i+=t.urlSuffix),r.setAttribute("src",i),typeof t.height)
{case"number":r.style.height=t.height+"px";break;case"string":r.style.height=t.heig
ht}switch(typeof t.width)
{case"number":r.style.width=t.width+"px";break;case"string":r.style.width=t.width}r
eturn r.addEventListener("load",(function()
{e.getRow().normalizeHeight()})),r},tickCross:function(e,t,n){var
r=e.getValue(),i=e.getElement(),o=t.allowEmpty,s=t.allowTruthy,a=Object.keys(t).inc
ludes("trueValue"),c=void 0!==t.tickElement?t.tickElement:'<svg enable-
background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24"
xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-
0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-
1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387
,9.351 l-
2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.18
4c0.292,0.296,0.771,0.776,1.062,1.07
l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-
0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',u=void 0!
==t.crossElement?t.crossElement:'<svg enable-background="new 0 0 24 24" height="14"
width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515"
d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-
0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-
0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-
6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-
0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-
0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73
L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-
0.312,1.141,0L22.245,4.015z"/></svg>';return a&&r===t.trueValue||!a&&(s&&r||!
0===r||"true"===r||"True"===r||1===r||"1"===r)?(i.setAttribute("aria-checked",!
0),c||""):!o||"null"!==r&&""!==r&&null!=r?(i.setAttribute("aria-checked",!
1),u||""):(i.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var
r,i=window.DateTime||luxon.DateTime,o=t.inputFormat||"yyyy-MM-dd
HH:mm:ss",s=t.outputFormat||"dd/MM/yyyy HH:mm:ss",a=void 0!==t.invalidPlaceholder?
t.invalidPlaceholder:"",c=e.getValue();if(void 0!==i)return(r=i.isDateTime(c)?
c:"iso"===o?i.fromISO(String(c)):i.fromFormat(String(c),o)).isValid?
(t.timezone&&(r=r.setZone(t.timezone)),r.toFormat(s)):!0!==a&&c?"function"==typeof
a?a(c):a:c;console.error("Format Error - 'datetime' formatter is dependant on
luxon.js")},datetimediff:function(e,t,n){var r,i=window.DateTime||
luxon.DateTime,o=t.inputFormat||"yyyy-MM-dd HH:mm:ss",s=void 0!
==t.invalidPlaceholder?t.invalidPlaceholder:"",a=void 0!==t.suffix&&t.suffix,c=void
0!==t.unit?t.unit:"days",u=void 0!==t.humanize&&t.humanize,l=void 0!==t.date?
t.date:i.now(),h=e.getValue();if(void 0!==i)return(r=i.isDateTime(h)?h:"iso"===o?
i.fromISO(String(h)):i.fromFormat(String(h),o)).isValid?u?r.diff(l,c).toHuman()+
(a?" "+a:""):parseInt(r.diff(l,c)[c])+(a?" "+a:""):!0===s?h:"function"==typeof s?
s(h):s;console.error("Format Error - 'datetimediff' formatter is dependant on
luxon.js")},lookup:function(e,t,n){var r=e.getValue();return void 0===t[r]?
(console.warn("Missing display value for "+r),r):t[r]},star:function(e,t,n){var
r=e.getValue(),i=e.getElement(),o=t&&t.stars?
t.stars:5,s=document.createElement("span"),a=document.createElementNS("http://
www.w3.org/2000/
svg","svg");s.style.verticalAlign="middle",a.setAttribute("width","14"),a.setAttrib
ute("height","14"),a.setAttribute("viewBox","0 0 512
512"),a.setAttribute("xml:space","preserve"),a.style.padding="0 1px",r=r&&!
isNaN(r)?parseInt(r):0,r=Math.max(0,Math.min(r,o));for(var c=1;c<=o;c++){var
u=a.cloneNode(!0);u.innerHTML=c<=r?'<polygon fill="#FFEA00" stroke="#C1AB60"
stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-
miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08
401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007
188.165,173.919 "/>':'<polygon fill="#D2D2D2" stroke="#686868" stroke-
width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-
miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08
401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007
188.165,173.919 "/>',s.appendChild(u)}return
i.style.whiteSpace="nowrap",i.style.overflow="hidden",i.style.textOverflow="ellipsi
s",i.setAttribute("aria-label",r),s},traffic:function(e,t,n){var
r,i,o=this.sanitizeHTML(e.getValue())||
0,s=document.createElement("span"),a=t&&t.max?t.max:100,c=t&&t.min?
t.min:0,u=t&&void 0!==t.color?t.color:["red","orange","green"],l="#666666";if(!
isNaN(o)&&void 0!==e.getValue()){switch(s.classList.add("tabulator-traffic-
light"),i=parseFloat(o)<=a?parseFloat(o):a,i=parseFloat(i)>=c?parseFloat(i):c,r=(a-
c)/100,i=Math.round((i-c)/r),typeof u)
{case"string":l=u;break;case"function":l=u(o);break;case"object":if(Array.isArray(u
)){var h=100/u.length,d=Math.floor(i/h);d=Math.min(d,u.length-
1),l=u[d=Math.max(d,0)];break}}return
s.style.backgroundColor=l,s}},progress:function(e,t={},n){var
r,i,o,s,a,c=this.sanitizeHTML(e.getValue())||0,u=e.getElement(),l=t.max?
t.max:100,h=t.min?t.min:0,d=t.legendAlign?
t.legendAlign:"center";switch(i=parseFloat(c)<=l?
parseFloat(c):l,i=parseFloat(i)>=h?parseFloat(i):h,r=(l-h)/100,i=Math.round((i-h)/
r),typeof t.color)
{case"string":o=t.color;break;case"function":o=t.color(c);break;case"object":if(Arr
ay.isArray(t.color)){let
e=100/t.color.length,n=Math.floor(i/e);n=Math.min(n,t.color.length-
1),n=Math.max(n,0),o=t.color[n];break}default:o="#2DC214"}switch(typeof t.legend)
{case"string":s=t.legend;break;case"function":s=t.legend(c);break;case"boolean":s=c
;break;default:s=!1}switch(typeof t.legendColor)
{case"string":a=t.legendColor;break;case"function":a=t.legendColor(c);break;case"ob
ject":if(Array.isArray(t.legendColor)){let
e=100/t.legendColor.length,n=Math.floor(i/e);n=Math.min(n,t.legendColor.length-
1),n=Math.max(n,0),a=t.legendColor[n]}break;default:a="#000"}u.style.minWidth="30px
",u.style.position="relative",u.setAttribute("aria-label",i);var
f=document.createElement("div");f.style.display="inline-
block",f.style.width=i+"%",f.style.backgroundColor=o,f.style.height="100%",f.setAtt
ribute("data-max",l),f.setAttribute("data-min",h);var
p=document.createElement("div");if(p.style.position="relative",p.style.width="100%"
,p.style.height="100%",s){var
g=document.createElement("div");g.style.position="absolute",g.style.top=0,g.style.l
eft=0,g.style.textAlign=d,g.style.width="100%",g.style.color=a,g.innerHTML=s}return
n((function(){if(!(e instanceof m)){var
t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.sty
le.bottom="4px",t.style.left="4px",t.style.right="4px",u.appendChild(t),u=t}u.appen
dChild(p),p.appendChild(f),s&&p.appendChild(g)})),""},color:function(e,t,n){return
e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick
:function(e,t,n){return'<svg enable-background="new 0 0 24 24" height="14"
width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-
rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-
0.293,0.297-0.771,0.297-
1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387
,9.351 l-
2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.18
4c0.292,0.296,0.771,0.776,1.062,1.07
l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-
0.777,0-1.071L21.652,3.211z"
fill-rule="evenodd"/></svg>'},buttonCross:function(e,t,n){return'<svg enable-
background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24"
xml:space="preserve" ><path fill="#CE1515"
d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-
0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-
0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-
6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-
0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-
0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73
L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-
0.312,1.141,0L22.245,4.015z"/></svg>'},rownum
:function(e,t,n){var r=document.createElement("span");return
e.getRow().watchPosition((e=>{r.innerText=e})),r},handle:function(e,t,n){return
e.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-
handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-
handle-bar'></div><div
class='tabulator-row-handle-bar'></div></div>"},responsiveCollapse:function(e,t,n)
{var
r=document.createElement("div"),i=e.getRow()._row.modules.responsiveLayout;function
o(e){var t=i.element;i.open=e,t&&(i.open?
(r.classList.add("open"),t.style.display=""):
(r.classList.remove("open"),t.style.display="none"))}return
r.classList.add("tabulator-responsive-collapse-toggle"),r.innerHTML='<svg
class=\'tabulator-responsive-collapse-toggle-open\' viewbox="0 0 24 24">\n <line
x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-
linecap="round" />\n <line y1="7" x1="12" y2="17" x2="12" fill="none" stroke-
width="3" stroke-linecap="round" />\n</svg>\n\n<svg class=\'tabulator-responsive-
collapse-toggle-close\' viewbox="0 0 24 24">\n <line x1="7" y1="12" x2="17"
y2="12" fill="none" stroke-width="3" stroke-linecap="round"
/>\n</svg>',e.getElement().classList.add("tabulator-row-
handle"),r.addEventListener("click",(function(t){t.stopImmediatePropagation(),o(!
i.open),e.getTable().rowManager.adjustTableSize()})),o(i.open),r},rowSelection:func
tion(e,t,n){var r=document.createElement("input"),i=!
1;if(r.type="checkbox",r.setAttribute("aria-label","Select
Row"),this.table.modExists("selectRow",!0))if(r.addEventListener("click",
(e=>{e.stopPropagation()})),"function"==typeof e.getRow){var o=e.getRow();o
instanceof _?(r.addEventListener("change",
(e=>{"click"===this.table.options.selectableRangeMode&&i?i=!
1:o.toggleSelect()})),"click"===this.table.options.selectableRangeMode&&r.addEventL
istener("click",(e=>{i=!
0,this.table.modules.selectRow.handleComplexRowClick(o._row,e)})),r.checked=o.isSel
ected&&o.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(o,r)):
r=""}else r.addEventListener("change",
(e=>{this.table.modules.selectRow.selectedRows.length?
this.table.deselectRow():this.table.selectRow(t.rowRange)})),this.table.modules.sel
ectRow.registerHeaderSelectCheckbox(r);return r}};class j extends s{constructor(e)
{super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatt
erParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("f
ormatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.register
ColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOu
tput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOp
tion("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize
(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-
rendered",this.cellRendered.bind(this)),this.subscribe("column-
layout",this.initializeColumn.bind(this)),this.subscribe("column-
format",this.formatHeader.bind(this))}initializeColumn(e)
{e.modules.format=this.lookupFormatter(e,""),void 0!
==e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Prin
t")),void 0!
==e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter
(e,"Clipboard")),void 0!
==e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatt
er(e,"HtmlOutput"))}lookupFormatter(e,t){var
n={params:e.definition["formatter"+t+"Params"]||
{}},r=e.definition["formatter"+t];switch(typeof r){case"string":j.formatters[r]?
n.formatter=j.formatters[r]:(console.warn("Formatter Error - No such formatter
found:
",r),n.formatter=j.formatters.plaintext);break;case"function":n.formatter=r;break;d
efault:n.formatter=j.formatters.plaintext}return n}cellRendered(e)
{e.modules.format&&e.modules.format.renderedCallback&&!
e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.re
ndered=!0)}formatHeader(e,t,n){var r,i,o,s;return e.definition.titleFormatter?
(r=this.getFormatter(e.definition.titleFormatter),o=t=>{e.titleFormatterRendered=t}
,s={getValue:function(){return t},getElement:function(){return
n},getType:function(){return"header"},getColumn:function(){return
e.getComponent()},getTable:
()=>this.table},i="function"==typeof(i=e.definition.titleFormatterParams||{})?
i():i,r.call(this,s,i,o)):t}formatValue(e){var
t=e.getComponent(),n="function"==typeof e.column.modules.format.params?
e.column.modules.format.params(t):e.column.modules.format.params;return
e.column.modules.format.formatter.call(this,t,n,(function(t){e.modules.format||
(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered
=!1}))}formatExportValue(e,t){var n,r=e.column.modules.format[t];if(r){function
i(t){e.modules.format||
(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered
=!1}return n="function"==typeof r.params?
r.params(e.getComponent()):r.params,r.formatter.call(this,e.getComponent(),n,i)}ret
urn this.formatValue(e)}sanitizeHTML(e){if(e){var
t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"&#x
60;","=":"="};return String(e).replace(/[&<>"'`=/]/g,(function(e){return
t[e]}))}return e}emptyToSpace(e){return null==e||""===e?" ":e}getFormatter(e)
{switch(typeof e){case"string":j.formatters[e]?e=j.formatters[e]:
(console.warn("Formatter Error - No such formatter found:
",e),e=j.formatters.plaintext);break;case"function":break;default:e=j.formatters.pl
aintext}return e}}j.moduleName="format",j.formatters=F;class B extends
s{constructor(e)
{super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",t
his.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset()
{this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.activ
e=!1}initialize(){this.subscribe("cell-
layout",this.layoutCell.bind(this)),this.subscribe("column-
init",this.initializeColumn.bind(this)),this.subscribe("column-
width",this.layout.bind(this)),this.subscribe("row-layout-
after",this.layoutRow.bind(this)),this.subscribe("table-
layout",this.layout.bind(this)),this.subscribe("columns-
loading",this.reset.bind(this)),this.subscribe("column-
add",this.reinitializeColumns.bind(this)),this.subscribe("column-
delete",this.reinitializeColumns.bind(this)),this.subscribe("table-
redraw",this.layout.bind(this)),this.subscribe("layout-
refreshing",this.blockLayout.bind(this)),this.subscribe("layout-
refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-
vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!
0}unblockLayout(){this.blocked=!1}layoutCell(e)
{this.layoutElement(e.element,e.column)}reinitializeColumns()
{this.reset(),this.table.columnManager.columnsByIndex.forEach((e=>{this.initializeC
olumn(e)}))}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||
(this.frozenCheck(e)?
(t.position=this.initializationMode,"left"==this.initializationMode?
this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!
0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return
e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent
column group must be frozen, not individual columns or sub column
groups"),e.parent.isGroup?
this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows()
{this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialize
d&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnC
alcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.colu
mnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.mo
dExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups(
)))}layoutGroupCalcs(e)
{e.forEach((e=>{e.calcs.top&&this.layoutRow(e.calcs.top),e.calcs.bottom&&this.layou
tRow(e.calcs.bottom),e.groupList&&e.groupList.length&&this.layoutGroupCalcs(e.group
List)}))}layoutColumnPosition(e){var
t=[],n=0,r=0;this.leftColumns.forEach(((r,i)=>{if(r.modules.frozen.marginValue=n,r.
modules.frozen.margin=r.modules.frozen.marginValue+"px",r.visible&&(n+=r.getWidth()
),i==this.leftColumns.length-1?r.modules.frozen.edge=!0:r.modules.frozen.edge=!
1,r.parent.isGroup){var o=this.getColGroupParentElement(r);t.includes(o)||
(this.layoutElement(o,r),t.push(o)),r.modules.frozen.edge&&o.classList.add("tabulat
or-frozen-"+r.modules.frozen.position)}else
this.layoutElement(r.getElement(),r);e&&r.cells.forEach((e=>{this.layoutElement(e.g
etElement(!
0),r)}))})),this.rightColumns.forEach(((t,n)=>{t.modules.frozen.marginValue=r,t.mod
ules.frozen.margin=t.modules.frozen.marginValue+"px",t.visible&&(r+=t.getWidth()),n
==this.rightColumns.length-1?t.modules.frozen.edge=!0:t.modules.frozen.edge=!
1,t.parent.isGroup?
this.layoutElement(this.getColGroupParentElement(t),t):this.layoutElement(t.getElem
ent(),t),e&&t.cells.forEach((e=>{this.layoutElement(e.getElement(!
0),t)}))}))}getColGroupParentElement(e){return e.parent.isGroup?
this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!
this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcR
ows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!
0);this.table.rowManager.getRows().filter((t=>!
e.includes(t))).forEach((e=>{e.deinitialize()})),e.forEach((e=>{"row"===e.type&&thi
s.layoutRow(e)}))}layoutRow(e)
{"fitDataFill"===this.table.options.layout&&this.rightColumns.length&&(this.table.r
owManager.getTableElement().style.minWidth="calc(100% -
"+this.rightMargin+")"),this.leftColumns.forEach((t=>{var
n=e.getCell(t);n&&this.layoutElement(n.getElement(!
0),t)})),this.rightColumns.forEach((t=>{var
n=e.getCell(t);n&&this.layoutElement(n.getElement(!0),t)}))}layoutElement(e,t){var
n;t.modules.frozen&&e&&(e.style.position="sticky",n=this.table.rtl?"left"===t.modul
es.frozen.position?"right":"left":t.modules.frozen.position,e.style[n]=t.modules.fr
ozen.margin,e.classList.add("tabulator-
frozen"),t.modules.frozen.edge&&e.classList.add("tabulator
-frozen-"+t.modules.frozen.position))}adjustForScrollbar(e)
{this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.wid
th="calc(100% - "+e+"px)")}_calcSpace(e,t){var n=0;for(let r=0;r<t;r+
+)e[r].visible&&(n+=e[r].getWidth());return n}}B.moduleName="frozenColumns";class U
extends s{constructor(e)
{super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerC
omponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFu
nction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction
("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRows
Field","id"),this.registerTableOption("frozenRows",!1)}initialize()
{this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-
holder"),this.table.columnManager.getContentsElement().insertBefore(this.topElement
,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-
deleting",this.detachRow.bind(this)),this.subscribe("rows-
visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind
(this),10),this.table.options.frozenRows&&(this.subscribe("data-
processed",this.initializeRows.bind(this)),this.subscribe("row-
added",this.initializeRow.bind(this)),this.subscribe("table-
redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-
resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-
show",this.resizeHolderWidth.bind(this)),this.subscribe("column-
hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidt
h()
{this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth
+"px"}initializeRows()
{this.table.rowManager.getRows().forEach((e=>{this.initializeRow(e)}))}initializeRo
w(e){var t=this.table.options.frozenRows,n=typeof t;"number"===n?
e.getPosition()&&e.getPosition()
+this.rows.length<=t&&this.freezeRow(e):"function"===n?
t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes
(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){return
this.rows.indexOf(e)>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return
this.rows.forEach((e=>{t.push(e)})),t}getRows(e){var t=e.slice(0);return
this.rows.forEach((function(e){var n=t.indexOf(e);n>-
1&&t.splice(n,1)})),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error -
Row is already frozen"):(e.modules.frozen=!
0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),th
is.rows.push(e),this.refreshData(!
1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(
e){e.modules.frozen?(e.modules.frozen=!
1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!
1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row
is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var
n=e.getElement();n.parentNode&&n.parentNode.removeChild(n),this.rows.splice(t,1)}}s
tyleRows(e)
{this.rows.forEach(((e,t)=>{this.table.rowManager.styleRow(e,t)}))}}U.moduleName="f
rozenRows";class H{constructor(e){return
this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(e,t,n){return
void 0!==e[t]?
e[t]:e._group.groupManager.table.componentFunctionBinder.handle("group",e._group,t)
}})}getKey(){return this._group.key}getField(){return
this._group.field}getElement(){return this._group.element}getRows(){return
this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!
0)}getParentGroup(){return!!
this._group.parent&&this._group.parent.getComponent()}isVisible(){return
this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle()
{this._group.toggleVisibility()}scrollTo(e,t){return
this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf()
{return this._group}getTable(){return this._group.groupManager.table}}class
G{constructor(e,t,n,r,i,o,s)
{this.groupManager=e,this.parent=t,this.key=r,this.level=n,this.field=i,this.hasSub
Groups=n<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?
this._addRowToGroup:this._addRow,this.type="group",this.old=s,this.rows=[],this.gro
ups=[],this.groupList=[],this.generator=o,this.element=!1,this.elementContents=!
1,this.height=0,this.outerHeight=0,this.initialized=!
1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!
1,this.visible=s?s.visible:void 0!==e.startOpen[n]?
e.startOpen[n]:e.startOpen[0],this.component=null,this.createElements(),this.addBin
dings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?
this.groupList.forEach((function(e)
{e.wipe()})):this.rows.forEach((e=>{e.modules&&delete
e.modules.group}))),this.element=!1,this.arrowElement=!1,this.elementContents=!
1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-
arrow"),this.element=document.createElement("div"),this.element.classList.add("tabu
lator-row"),this.element.classList.add("tabulator-
group"),this.element.classList.add("tabulator-group-
level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=
document.createElement("div"),this.arrowElement.classList.add("tabulator-group-
toggle"),this.arrowElement.appendChild(e),!1!
==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("m
oveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}creat
eValueGroups(){var
e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&
&this.groupManager.allowedValues[e].forEach((t=>{this._createGroup(t,e)}))}addBindi
ngs()
{this.groupManager.table.options.groupToggleElement&&("arrow"==this.groupManager.ta
ble.options.groupToggleElement?
this.arrowElement:this.element).addEventListener("click",
(e=>{"arrow"===this.groupManager.table.options.groupToggleElement&&(e.stopPropagati
on(),e.stopImmediatePropagation()),setTimeout((()=>{this.toggleVisibility()}))}))}_
createGroup(e,t){var n=t+"_"+e,r=new
G(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupMa
nager.headerGenerator[t]||this.groupManager.headerGenerator[0],!!
this.old&&this.old.groups[n]);this.groups[n]=r,this.groupList.push(r)}_addRowToGrou
p(e){var t=this.level+1;if(this.hasSubGroups){var
n=this.groupManager.groupIDLookups[t].func(e.getData()),r=t+"_"+n;this.groupManager
.allowedValues&&this.groupManager.allowedValues[t]?
this.groups[r]&&this.groups[r].addRow(e):(this.groups[r]||
this._createGroup(n,t),this.groups[r].addRow(e))}}_addRow(e)
{this.rows.push(e),e.modules.group=this}insertRow(e,t,n){var
r=this.conformRowData({});e.updateData(r);var i=this.rows.indexOf(t);i>-1?n?
this.rows.splice(i+1,0,e):this.rows.splice(i,0,e):n?
this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table
.modExists("columnCalcs")&&"table"!
=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.colum
nCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e)
{this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach((f
unction(t){t.scrollHeader(e)})))}getRowIndex(e){}conformRowData(e){return
this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot
conform row data to match new group as groupBy is a
function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var
t=this.rows.indexOf(e),n=e.getElement();t>-
1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||
this.rows.length?
(n.parentNode&&n.parentNode.removeChild(n),this.groupManager.blockRedraw||
(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs"
)&&"table"!
=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.colum
nCalcs.recalcGroup(this))):(this.parent?
this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager
.updateGroupRows(!0))}removeGroup(e){var
t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],
(t=this.groupList.indexOf(e))>-
1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?
this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRo
ws(){var e=[];return
e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.ca
lcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.c
alcs.bottom.deleteCells()),this.visible?this.groupList.length?
this.groupList.forEach((function(t){e=e.concat(t.getHeadersAndRows())})):("table"!
=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("co
lumnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs
.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(t
his.calcs.top)),e=e.concat(this.rows),"table"!
=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("co
lumnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.ca
lcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows)
,e.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.tabl
e.options.columnCalcs||
this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.
columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(t
his.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows)
,e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs
()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.g
roupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calc
s.bottom))),e}getData(e,t){var n=[];return this._visSet(),(!e||
e&&this.visible)&&this.rows.forEach((e=>{n.push(e.getData(t||"data"))})),n}getRowCo
unt(){var e=0;return this.groupList.length?
this.groupList.forEach((t=>{e+=t.getRowCount()})):e=this.rows.length,e}toggleVisibi
lity(){this.visible?this.hide():this.show()}hide(){this.visible=!1,"basic"!
=this.groupManager.table.rowManager.getRenderMode()||
this.groupManager.table.options.pagination||(this.element.classList.rem
ove("tabulator-group-visible"),this.groupList.length?
this.groupList.forEach((e=>{e.getHeadersAndRows().forEach((e=>{e.detachElement()}))
})):this.rows.forEach((e=>{var
t=e.getElement();t.parentNode.removeChild(t)}))),this.groupManager.updateGroupRows(
!
0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.ge
tComponent(),!1)}show(){if(this.visible=!0,"basic"!
=this.groupManager.table.rowManager.getRenderMode()||
this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!
0);else{this.element.classList.add("tabulator-group-visible");var
e=this.generateElement();this.groupList.length?
this.groupList.forEach((t=>{t.getHeadersAndRows().forEach((t=>{var
n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n}))})
):this.rows.forEach((t=>{var
n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n})),t
his.groupManager.updateGroupRows(!
0)}this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.ge
tComponent(),!0)}_visSet(){var e=[];"function"==typeof
this.visible&&(this.rows.forEach((function(t)
{e.push(t.getData())})),this.visible=this.visible(this.key,this.getRowCount(),e,thi
s.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?
this.groupList.forEach((function(n){var
r=n.getRowGroup(e);r&&(t=r)})):this.rows.find((function(t){return
t===e}))&&(t=this),t}getSubGroups(e){var t=[];return
this.groupList.forEach((function(n){t.push(e?n.getComponent():n)})),t}getRows(e,t)
{var n=[];return t&&this.groupList.length?
this.groupList.forEach((r=>{n=n.concat(r.getRows(e,t))})):this.rows.forEach((functi
on(t){n.push(e?t.getComponent():t)})),n}generateGroupHeaderContents(){var
e=[];for(this.getRows(!1,!0).forEach((function(t)
{e.push(t.getData())})),this.elementContents=this.generator(this.key,this.getRowCou
nt(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.
element.firstChild);"string"==typeof this.elementContents?
this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementCo
ntents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPat
h(e=[]){return
e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return
this.elementContents?this.element:this.generateElement()}generateElement()
{this.addBindings=!1,this._visSet(),this.visible?
this.element.classList.add("tabulator-group-
visible"):this.element.classList.remove("tabulator-group-visible");for(var
e=0;e<this.element.childNodes.length;+
+e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);re
turn this.generateGroupHeaderContents(),this.element}detachElement()
{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.el
ement)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e)
{this.initialized&&!e||(this.normalizeHeight(),this.initialized=!0)}reinitialize()
{this.initialized=!1,this.height=0,i.elVisible(this.element)&&this.initialize(!
0)}setHeight(e){this.height!
=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return
this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight()
{}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered()
{}getComponent(){return this.component||(this.component=new
H(this)),this.component}}class z extends s{constructor(e)
{super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!
1}],this.headerGenerator=[function()
{return""}],this.groupList=[],this.allowedValues=!
1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!
1,this.registerTableOption("groupBy",!
1),this.registerTableOption("groupStartOpen",!
0),this.registerTableOption("groupValues",!
1),this.registerTableOption("groupUpdateOnCellEdit",!
1),this.registerTableOption("groupHeader",!
1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("grou
pHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this
.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupTog
gleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!
1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registe
rTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableF
unction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFu
nction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction(
"getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedDa
ta",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGr
oup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-
destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-
wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-
wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.
options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-
updated",this.cellUpdated.bind(this)),this.subscribe("row-data-
changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-
built",this.configureGroupSetup.bind(this)),this.subscribe("row-
deleting",this.rowDeleting.bind(this)),this.subscribe("row-
deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-
horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-
wipe",this.wipe.bind(this)),this.subscribe("rows-
added",this.rowsUpdated.bind(this)),this.subscribe("row-
moving",this.rowMoving.bind(this)),this.subscribe("row-adding-
index",this.rowAddingIndex.bind(this)),this.subscribe("rows-
sample",this.rowSample.bind(this)),this.subscribe("render-virtual-
fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHa
ndler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!
0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup()
{if(this.table.options.groupBy){var
e=this.table.options.groupBy,t=this.table.options.groupStartOpen,n=this.table.optio
ns.groupHeader;this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&
Array.isArray(n)&&e.length>n.length&&console.warn("Error creating group headers,
groupHeader array is shorter than groupBy array"),this.headerGenerator=[function()
{return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",
((e,t)=>{this.headerGenerator[0]=(n,r,i)=>(void 0===n?"":n)+"<span>("+r+" "+(1===r?
e:t.groups.items)+")</span>"})),this.groupIDLookups=[],e?
this.table.modExists("columnCalcs")&&"table"!
=this.table.options.columnCalcs&&"both"!
=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs():this.
table.modExists("columnCalcs")&&"group"!
=this.table.options.columnCalcs&&this.table.columnManager.getRealColumns().forEach(
(e=>{e.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),e.defi
nition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})),Array.is
Array(e)||(e=[e]),e.forEach(((e,t)=>{var n,r;n="function"==typeof e?e:
(r=this.table.columnManager.getColumnByField(e))?function(e){return
r.getFieldValue(e)}:function(t){return
t[e]},this.groupIDLookups.push({field:"function"!=typeof e&&e,func:n,values:!!
this.allowedValues&&this.allowedValues[t]})})),t&&(Array.isArray(t)||
(t=[t]),t.forEach((e=>{})),this.startOpen=t),n&&(this.headerGenerator=Array.isArray
(n)?n:[n])}else this.groupList=[],this.groups={}}rowSample(e,t)
{if(this.table.options.groupBy){var n=this.getGroups(!1)[0];t.push(n.getRows(!1)
[0])}return t}virtualRenderFill(){var
e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(!
this.table.options.groupBy)return t;t=t.filter((e=>"group"!
==e.type)),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()
+"px"}rowAddingIndex(e,t,n){if(this.table.options.groupBy)
{this.assignRowToGroup(e);var r=e.modules.group.rows;return r.length>1&&(!t||t&&-
1==r.indexOf(t)?n?r[0]!
==e&&(t=r[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!
n)):r[r.length-1]!==e&&(t=r[r.length-
1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!
n)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!
n)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e)
{this.table.options.groupBy=e,this.initialized||
this.initialize(),this.configureGroupSetup(),!
e&&this.table.modExists("columnCalcs")&&!
0===this.table.options.columnCalcs&&this.table.modules.columnCalcs.reinitializeCalc
s(),this.refreshData(),this.trackChanges()}setGroupValues(e)
{this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),thi
s.trackChanges()}setGroupStartOpen(e)
{this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.
groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update -
cant refresh view, no groups have been set")}setGroupHeader(e)
{this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.gro
upBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant
refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!
0)}userGetGroupedData(){return this.table.options.groupBy?
this.getGroupedData():this.getData()}rowGetGroup(e){return!!
e.modules.group&&e.modules.group.getComponent()}rowMoving(e,t,n)
{if(this.table.options.groupBy){!n&&t instanceof
G&&(t=this.table.rowManager.prevDisplayRow(e)||t);var r=t instanceof G?
t:t.modules.group,i=e instanceof G?e:e.modules.group;r===i?
this.table.rowManager.moveRowInArray(r.rows,e,t,n):
(i&&i.removeRow(e),r.insertRow(e,t,n))}}rowDeleting(e)
{this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpda
ted(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e)
{this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return
this.table.options.groupBy&&this.groupIDLookups.length?
(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExtern
al("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!
0)),this.updateGroupRows()):e.slice(0)}getGrou
ps(e){var t=[];return this.groupList.forEach((function(n){t.push(e?
n.getComponent():n)})),t}getChildGroups(e){var t=[];return e||
(e=this),e.groupList.forEach((e=>{e.groupList.length?
t=t.concat(this.getChildGroups(e)):t.push(e)})),t}wipe()
{this.table.options.groupBy&&(this.groupList.forEach((function(e)
{e.wipe()})),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return
e.forEach((e=>{var n={level:0,rowCount:0,headerContent:""},r=[];e.hasSubGroups?
(r=this.pullGroupListData(e.groupList),n.level=e.level,n.rowCount=r.length-
e.groupList.length,n.headerContent=e.generator(e.key,n.rowCount,e.rows,e),t.push(n)
,t=t.concat(r)):
(n.level=e.level,n.headerContent=e.generator(e.key,e.rows.length,e.rows,e),n.rowCou
nt=e.getRows().length,t.push(n),e.getRows().forEach((e=>{t.push(e.getData("data"))}
)))})),t}getGroupedData(){return
this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return
this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this
.groupList.forEach((n=>{var r=n.getRowGroup(e);r&&(t=r)})),t}countGroups(){return
this.groupList.length}generateGroups(e){var
t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValu
es[0]?
(this.allowedValues[0].forEach((e=>{this.createGroup(e,0,t)})),e.forEach((e=>{this.
assignRowToExistingGroup(e,t)}))):e.forEach((e=>{this.assignRowToGroup(e,t)})),Obje
ct.values(t).forEach((e=>{e.wipe(!0)}))}createGroup(e,t,n){var r,i=t+"_"+e;n=n||
[],r=new G(this,!
1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[i]),this.groups[i]=r,t
his.groupList.push(r)}assignRowToExistingGroup(e,t){var
n="0_"+this.groupIDLookups[0].func(e.getData());this.groups[n]&&this.groups[n].addR
ow(e)}assignRowToGroup(e,t){var n=this.groupIDLookups[0].func(e.getData()),r=!
this.groups["0_"+n];return
r&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!r}reassignRowToGroup(e)
{if("row"===e.type){var
t=e.modules.group,n=t.getPath(),r=this.getExpectedPath(e);n.length==r.length&&n.eve
ry(((e,t)=>e===r[t]))||
(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!
0))}}getExpectedPath(e){var t=[],n=e.getData();return
this.groupIDLookups.forEach((e=>{t.push(e.func(n))})),t}updateGroupRows(e){var
t=[];return this.blockRedraw||
(this.groupList.forEach((e=>{t=t.concat(e.getHeadersAndRows())})),e&&this.refreshDa
ta(!0)),t}scrollHeaders(e)
{this.table.options.groupBy&&("virtual"===this.table.options.renderHorizontal&&(e-
=this.table.columnManager.renderer.vDomPadLeft),e+="px",this.groupList.forEach((t=>
{t.scrollHeader(e)})))}removeGroup(e){var
t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],
(t=this.groupList.indexOf(e))>-
1&&this.groupList.splice(t,1))}checkBasicModeGroupHeaderWidth(){var
e=this.table.rowManager.tableElement,t=!
0;this.table.rowManager.getDisplayRows().forEach(((n,r)=>{this.table.rowManager.sty
leRow(n,r),e.appendChild(n.getElement()),n.initialize(!0),"group"!==n.type&&(t=!
1)})),e.style.minWidth=t?this.table.columnManager.getWidth()
+"px":""}}z.moduleName="groupRows";class V extends s{constructor(e)
{super(e),this.history=[],this.index=-1,this.registerTableOption("history",!
1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-
updated",this.cellUpdated.bind(this)),this.subscribe("cell-
delete",this.clearComponentHistory.bind(this)),this.subscribe("row-
delete",this.rowDeleted.bind(this)),this.subscribe("rows-
wipe",this.clear.bind(this)),this.subscribe("row-
added",this.rowAdded.bind(this)),this.subscribe("row-
move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(t
his)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFun
ction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFu
nction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableF
unction("clearHistory",this.clear.bind(this))}rowMoved(e,t,n)
{this.action("rowMove",e,
{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:n})}rowAdded(e,t,n,r)
{this.action("rowAdd",e,{data:t,pos:n,index:r})}rowDeleted(e){var
t,n;this.table.options.groupBy?
(t=(n=e.getComponent().getGroup()._getSelf().rows).indexOf(e))&&(t=n[t-1]):
(t=e.table.rowManager.getRowIndex(e))&&(t=e.table.rowManager.rows[t-
1]),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e)
{this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear()
{this.history=[],this.index=-1}action(e,t,n)
{this.history=this.history.slice(0,this.index+1),this.history.push({type:e,componen
t:t,data:n}),this.index++}getHistoryUndoSize(){return
this.index+1}getHistoryRedoSize(){return this.history.length-
(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex((function(t)
{return t.component===e}));t>-
1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory
(e))}undo(){if(this.index>-1){let e=this.history[this.index];return
V.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.t
ype,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error -
No more history to undo"),!1}redo(){if(this.history.length-1>this.index)
{this.index++;let e=this.history[this.index];return
V.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.compone
nt.getComponent(),e.data),!0}return console.warn("History Redo Error - No more
history to redo"),!1}_rebindRow(e,t){this.history.forEach((function(n)
{if(n.component instanceof E)n.component===e&&(n.component=t);else if(n.component
instanceof v&&n.component.row===e){var
r=n.component.column.getField();r&&(n.component=t.getCell(r))}}))}}V.moduleName="hi
story",V.undoers={cellEdit:function(e)
{e.component.setValueProcessData(e.data.oldValue),e.component.cellRendered()},rowAd
d:function(e){e.component.deleteActual()},rowDelete:function(e){var
t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.tabl
e.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.
updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){var
t=e.data.posFrom-
e.data.posTo>0;this.table.rowManager.moveRowActual(e.component,this.table.rowManage
r.getRowFromPosition(e.data.posFrom),t),this.table.rowManager.regenerateRowPosition
s(),this.table.rowManager.reRenderInPosition()}},V.redoers={cellEdit:function(e)
{e.component.setValueProcessData(e.data.newValue),e.component.cellRendered()},rowAd
d:function(e){var
t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.tabl
e.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.
updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e)
{e.component.deleteActual()},rowMove:function(e)
{this.table.rowManager.moveRowActual(e.component,this.table.rowManager.getRowFromPo
sition(e.data.posTo),e.data.after),this.table.rowManager.regenerateRowPositions(),t
his.table.rowManager.reRenderInPosition()}};class W extends s{constructor(e)
{super(e),this.fieldIndex=[],this.hasIndex=!1}initialize()
{this.tableElementCheck()}tableElementCheck()
{this.table.originalElement&&"TABLE"===this.table.originalElement.tagName&&(this.ta
ble.originalElement.childNodes.length?this.parseTable():console.warn("Unable to
parse data from empty table tag, Tabulator should be initialized on a div tag
unless importing data from a table element."))}parseTable(){var
e=this.table.originalElement,t=this.table.options,n=e.getElementsByTagName("th"),r=
e.getElementsByTagName("tbody")[0],i=[];this.hasIndex=!
1,this.dispatchExternal("htmlImporting"),r=r?r.getElementsByTagName("tr"):
[],this._extractOptions(e,t),n.length?
this._extractHeaders(n,r):this._generateBlankHeaders(n,r);for(var o=0;o<r.length;o+
+){var s=r[o].getElementsByTagName("td"),a={};this.hasIndex||(a[t.index]=o);for(var
c=0;c<s.length;c++){var u=s[c];void 0!
==this.fieldIndex[c]&&(a[this.fieldIndex[c]]=u.innerHTML)}i.push(a)}t.data=i,this.d
ispatchExternal("htmlImported")}_extractOptions(e,t,n){var r=e.attributes,i=n?
Object.keys(n):Object.keys(t),o={};for(var s in
i.forEach((e=>{o[e.toLowerCase()]=e})),r){var a,c=r[s];c&&"object"==typeof
c&&c.name&&0===c.name.indexOf("tabulator-")&&(a=c.name.replace("tabulator-",""),voi
d 0!==o[a]&&(t[o[a]]=this._attribValue(c.value)))}}_attribValue(e)
{return"true"===e||"false"!==e&&e}_findCol(e){return
this.table.options.columns.find((t=>t.title===e))||!1}_extractHeaders(e,t){for(var
n=0;n<e.length;n++){var r,i=e[n],o=!1,s=this._findCol(i.textContent);s?o=!
0:s={title:i.textContent.trim()},s.field||
(s.field=i.textContent.trim().toLowerCase().replace(" ","_")),
(r=i.getAttribute("width"))&&!
s.width&&(s.width=r),this._extractOptions(i,s,this.table.columnManager.optionsList.
registeredDefaults),this.fieldIndex[n]=s.field,s.field==this.table.options.index&&(
this.hasIndex=!0),o||this.table.options.columns.push(s)}}_generateBlankHeaders(e,t)
{for(var n=0;n<e.length;n++){var
r=e[n],i={title:"",field:"col"+n};this.fieldIndex[n]=i.field;var
o=r.getAttribute("width");o&&(i.width=o),this.table.options.columns.push(i)}}}W.mod
uleName="htmlTableImport";var q={csv:function(e){var t=[],n=0,r=0,i=!1;for(let
o=0;o<e.length;o++){let s=e[o],a=e[o+1];t[n]||(t[n]=[]),t[n][r]||(t[n]
[r]=""),'"'==s&&i&&'"'==a?(t[n][r]+=s,o++):'"'!=s?","!=s||i?"\r"!=s||"\n"!=a||i?"\
r"!=s&&"\n"!=s||i?t[n][r]+=s:(r=0,n++):(r=0,n++,o++):r++:i=!i}return
t},json:function(e){try{return JSON.parse(e)}catch(e){return console.warn("JSON
Import Error - File contents is invalid
JSON",e),Promise.reject()}},array:function(e){return e}};class K extends
s{constructor(e)
{super(e),this.registerTableOption("importFormat"),this.registerTableOption("import
Reader","text")}initialize()
{this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.opt
ions.importFormat&&(this.subscribe("data-
loading",this.loadDataCheck.bind(this),10),this.subscribe("data-
load",this.loadData.bind(this),10))}loadDataCheck(e){return
this.table.options.importFormat&&("string"==typeof
e||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,n,r,i){return
this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(
(e=>(console.error("Import Error:",e||"Unable to import
data"),Promise.reject(e))))}lookupImporter(e){var t;return e||
(e=this.table.options.importFormat),(t="string"==typeof e?K.importers[e]:e)||
console.error("Import Error - Importer not found:",e),t}importFromFile(e,t){var
n=this.lookupImporter(e);if(n)return
this.pickFile(t).then(this.importData.bind(this,n)).then(this.structureData.bind(th
is)).then(this.setData.bind(this)).catch((e=>(console.error("Import
Error:",e||"Unable to import file"),Promise.reject(e))))}pickFile(e){return new
Promise(((t,n)=>{var
r=document.createElement("input");r.type="file",r.accept=e,r.addEventListener("chan
ge",(e=>{var i=r.files[0],o=new FileReader;switch(this.table.options.importReader)
{case"buffer":o.readAsArrayBuffer(i);break;case"binary":o.readAsBinaryString(i);bre
ak;case"url":o.readAsDataURL(i);break;default:o.readAsText(i)}o.onload=e=>{t(o.resu
lt)},o.onerror=e=>{console.warn("File Load Error - Unable to read
file"),n()}})),r.click()}))}importData(e,t){var n=e.call(this.table,t);return n
instanceof Promise?n:n?Promise.resolve(n):Promise.reject()}structureData(e){return
Array.isArray(e)&&e.length&&Array.isArray(e[0])?this.table.options.autoColumns?
this.structureArrayToObject(e):this.structureArrayToColumns(e):e}structureArrayToOb
ject(e){var t=e.shift();return e.map((e=>{var n={};return
t.forEach(((t,r)=>{n[t]=e[r]})),n}))}structureArrayToColumns(e){var
t=[],n=this.table.getColumns();return n[0]&&e[0]
[0]&&n[0].getDefinition().title===e[0][0]&&e.shift(),e.forEach((e=>{var
r={};e.forEach(((e,t)=>{var
i=n[t];i&&(r[i.getField()]=e)})),t.push(r)})),t}setData(e){return
this.table.setData(e)}}K.moduleName="import",K.importers=q;class Y extends
s{constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-
dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-
mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-
mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-
mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-
mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-
click",cellDblClick:"cell-dblclick",cellContext:"cell-
contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-
mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-
mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-
mousedown",cellMouseUp:"cell-
mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-
click",headerDblClick:"column-dblclick",headerContext:"column-
contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-
mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-
mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-
mousedown",headerMouseUp:"column-
mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick
:"group-click",groupDblClick:"group-dblclick",groupContext:"group-
contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-
mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-
mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-
mousedown",groupMouseUp:"group-
mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscriber
s={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:
{tap:null,tapDbl:null,tapHold:null},cell:
{tap:null,tapDbl:null,tapHold:null},column:
{tap:null,tapDbl:null,tapHold:null},group:
{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.
registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),t
his.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouse
Leave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("hea
derMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOptio
n("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumn
Option("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOp
tion("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOpt
ion("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOpt
ion("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColu
mnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerCo
lumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registe
rColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColu
mnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize()
{this.initializeExternalEvents(),this.subscribe("column-
init",this.initializeColumn.bind(this)),this.subscribe("cell-
dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-
horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-
vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers()
{Object.values(this.touchWatchers).forEach((e=>{for(let t in
e)e[t]=null}))}cellContentsSelectionFixer(e,t){var n;if(!
this.table.modExists("edit")||this.table.modules.edit.currentCell!==t)
{e.preventDefault();try{document.selection?
((n=document.body.createTextRange()).moveToElementText(t.getElement()),n.select()):
window.getSelection&&((n=document.createRange()).selectNode(t.getElement()),window.
getSelection().removeAllRanges(),window.getSelection().addRange(n))}catch(e)
{}}}initializeExternalEvents(){for(let e in
this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,
e))}subscriptionChanged(e,t){t?this.subscribers[e]||
(this.eventMap[e].includes("-")?
(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.
subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?!
this.subscribers[e]||this.columnSubscribers[e]||this.subscribedExternal(e)||
(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete
this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var
t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||
(this.touchSubscribers[t+"-
touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-
touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-
touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-
touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!
0}unsubscribeTouchEvents(e){var t=!0,n=this.eventMap[e];if(this.subscribers[e]&&!
this.subscribedExternal(e)){delete this.subscribers[e];for(let e in
this.eventMap)this.eventMap[e]===n&&this.subscribers[e]&&(t=!
1);t&&(this.unsubscribe(n+"-touchstart",this.touchSubscribers[n+"-
touchstart"]),this.unsubscribe(n+"-touchend",this.touchSubscribers[n+"-
touchend"]),delete this.touchSubscribers[n+"-touchstart"],delete
this.touchSubscribers[n+"-touchend"])}}initializeColumn(e){var
t=e.definition;for(let n in this.eventMap)t[n]&&(this.subscriptionChanged(n,!
0),this.columnSubscribers[n]||
(this.columnSubscribers[n]=[]),this.columnSubscribers[n].push(e))}handle(e,t,n)
{this.dispatchEvent(e,t,n)}handleTouch(e,t,n,r){var
i=this.touchWatchers[e];switch("column"===e&&(e="header"),t){case"start":i.tap=!
0,clearTimeout(i.tapHold),i.tapHold=setTimeout((()=>{clearTimeout(i.tapHold),i.tapH
old=null,i.tap=null,clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(e+"TapH
old",n,r)}),1e3);break;case"end":i.tap&&(i.tap=null,this.dispatchEvent(e+"Tap",n,r)
),i.tapDbl?
(clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(e+"DblTap",n,r)):i.tapDbl=
setTimeout((()=>{clearTimeout(i.tapDbl),i.tapDbl=null}),300),clearTimeout(i.tapHold
),i.tapHold=null}}dispatchEvent(e,t,n){var
r,i=n.getComponent();this.columnSubscribers[e]&&(n instanceof v?
r=n.column.definition[e]:n instanceof
w&&(r=n.definition[e]),r&&r(t,i)),this.dispatchExternal(e,t,i)}}Y.moduleName="inter
action";class $ extends s{constructor(e)
{super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!
1,this.keydownBinding=!1,this.registerTableOption("keybindings",
{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var
e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],!1!
==e&&(Object.assign(t,
$.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscrib
e("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)
$.actions[t]?e[t]&&("object"!=typeof
e[t]&&(e[t]=[e[t]]),e[t].forEach((e=>{(Array.isArray(e)?e:
[e]).forEach((e=>{this.mapBinding(t,e)}))}))):console.warn("Key Binding Error - no
such action:",t)}mapBinding(e,t){var n={action:$.actions[e],keys:[],ctrl:!1,shift:!
1,meta:!1};t.toString().toLowerCase().split("
").join("").split("+").forEach((e=>{switch(e){case"ctrl":n.ctrl=!
0;break;case"shift":n.shift=!0;break;case"meta":n.meta=!0;break;default:e=isNaN(e)?
e.toUpperCase().charCodeAt(0):parseInt(e),n.keys.push(e),this.watchKeys[e]||
(this.watchKeys[e]=[]),this.watchKeys[e].push(n)}}))}bindEvents(){var
e=this;this.keyupBinding=function(t){var
n=t.keyCode,r=e.watchKeys[n];r&&(e.pressedKeys.push(n),r.forEach((function(n)
{e.checkBinding(t,n)})))},this.keydownBinding=function(t){var
n=t.keyCode;if(e.watchKeys[n]){var r=e.pressedKeys.indexOf(n);r>-
1&&e.pressedKeys.splice(r,1)}},this.table.element.addEventListener("keydown",this.k
eyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clear
Bindings()
{this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBind
ing),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydo
wnBinding)}checkBinding(e,t){var n=!0;return
e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach((e=>{-
1==this.pressedKeys.indexOf(e)&&(n=!1)})),n&&t.action.call(this,e),!0)}}
$.moduleName="keybindings",$.bindings={navPrev:"shift +
9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36
,scrollToEnd:35,undo:["ctrl
+ 90","meta + 90"],redo:["ctrl + 89","meta + 89"],copyToClipboard:["ctrl +
67","meta + 89"]},$.actions={keyBlock:function(e)
{e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var
t=this.table.rowManager,n=t.scrollTop-
t.element.clientHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?
t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()
[0])),this.table.element.focus()},scrollPageDown:function(e){var
t=this.table.rowManager,n=t.scrollTop+t.element.clientHeight,r=t.element.scrollHeig
ht;e.preventDefault(),t.displayRowsCount&&(n<=r?
t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-
1])),this.table.element.focus()},scrollToStart:function(e){var
t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getD
isplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var
t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getD
isplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e)
{this.dispatch("keybinding-nav-prev",e)},navNext:function(e)
{this.dispatch("keybinding-nav-next",e)},navLeft:function(e)
{this.dispatch("keybinding-nav-left",e)},navRight:function(e)
{this.dispatch("keybinding-nav-right",e)},navUp:function(e)
{this.dispatch("keybinding-nav-up",e)},navDown:function(e)
{this.dispatch("keybinding-nav-down",e)},undo:function(e)
{this.table.options.history&&this.table.modExists("history")&&this.table.modExists(
"edit")&&(this.table.modules.edit.currentCell||
(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e)
{this.table.options.history&&this.table.modExists("history")&&this.table.modExists(
"edit")&&(this.table.modules.edit.currentCell||
(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e
){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!
0)&&this.table.modules.clipboard.copy(!1,!0)}};class Q extends s{constructor(e)
{super(e),this.menuContainer=null,this.nestedMenuBlock=!
1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.reg
isterTableOption("menuContainer",void
0),this.registerTableOption("rowContextMenu",!
1),this.registerTableOption("rowClickMenu",!
1),this.registerTableOption("rowDblClickMenu",!
1),this.registerTableOption("groupContextMenu",!
1),this.registerTableOption("groupClickMenu",!
1),this.registerTableOption("groupDblClickMenu",!
1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("header
ClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOpti
on("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOpt
ion("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption
("dblClickMenu")}initialize()
{this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWat
chers(),this.subscribe("column-
init",this.initializeColumn.bind(this))}deprecatedOptionsCheck()
{this.deprecationCheck("menuContainer","popupContainer")||
(this.table.options.popupContainer=this.table.options.menuContainer)}initializeRowW
atchers(){this.table.options.rowContextMenu&&(this.subscribe("row-
contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.
table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMen
u))),this.table.options.rowClickMenu&&this.subscribe("row-
click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.op
tions.rowDblClickMenu&&this.subscribe("row-
dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initial
izeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-
contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),thi
s.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupCont
extMenu))),this.table.options.groupClickMenu&&this.subscribe("group-
click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.
options.groupDblClickMenu&&this.subscribe("group-
dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initi
alizeColumn(e){var t=e.definition;t.headerContextMenu&&!
this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu
=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("colum
n-
contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold
",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&
&!
this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=thi
s.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-
click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!
this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMe
nu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("co
lumn-
dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initialize
ColumnHeaderMenu(e),t.contextMenu&&!
this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMe
nuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-
contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.l
oadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!
this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTa
bleCellEvent.bind(this,"clickMenu"),this.subscribe("cell-
click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!
this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.load
MenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-
dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var
t,n=e.definition.headerMenuIcon;
(t=document.createElement("span")).classList.add("tabulator-header-popup-
button"),n?("function"==typeof n&&(n=n(e.getComponent())),n instanceof HTMLElement?
t.appendChild(n):t.innerHTML=n):t.innerHTML="⋮",t.addEventListener("click",
(t=>{t.stopPropagation(),t.preventDefault(),this.loadMenuEvent(e.definition.headerM
enu,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadMenuTableC
ellEvent(e,t,n)
{n._cell&&(n=n._cell),n.column.definition[e]&&this.loadMenuEvent(n.column.definitio
n[e],t,n)}loadMenuTableColumnEvent(e,t,n)
{n._column&&(n=n._column),n.definition[e]&&this.loadMenuEvent(n.definition[e],t,n)}
loadMenuEvent(e,t,n){n._group?n=n._group:n._row&&(n=n._row),e="function"==typeof e?
e.call(this.table,t,n.getComponent()):e,this.loadMenu(t,n,e)}loadMenu(e,t,n,r,i)
{var o,s=!(e instanceof
MouseEvent),a=document.createElement("div");if(a.classList.add("tabulator-
menu"),s||e.preventDefault(),n&&n.length)
{if(r)o=i.child(a);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else
this.nestedMenuBlock=setTimeout((()=>{this.nestedMenuBlock=!
1}),100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=o=this.popup(a)}n.for
Each((e=>{var n=document.createElement("div"),r=e.label,i=e.disabled;e.separator?
n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-
item"),"function"==typeof r&&(r=r.call(this.table,t.getComponent())),r instanceof
Node?n.appendChild(r):n.innerHTML=r,"function"==typeof
i&&(i=i.call(this.table,t.getComponent())),i?(n.classList.add("tabulator-menu-item-
disabled"),n.addEventListener("click",
(e=>{e.stopPropagation()}))):e.menu&&e.menu.length?n.addEventListener("click",
(r=>{r.stopPropagation(),this.loadMenu(r,t,e.menu,n,o)})):e.action&&n.addEventListe
ner("click",
(n=>{e.action(n,t.getComponent())})),e.menu&&e.menu.length&&n.classList.add("tabula
tor-menu-item-submenu")),a.appendChild(n)})),a.addEventListener("click",
(e=>{this.rootPopup&&this.rootPopup.hide()})),o.show(r||
e),o===this.rootPopup&&(this.rootPopup.hideOnBlur((()=>{this.rootPopup=null,this.cu
rrentComponent&&(this.dispatchExternal("menuClosed",this.currentComponent.getCompon
ent()),this.currentComponent=null)})),this.currentComponent=t,this.dispatchExternal
("menuOpened",t.getComponent()))}}}Q.moduleName="menu";class X extends
s{constructor(e)
{super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement
=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!
1,this.toColAfter=!
1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeo
ut=!1,this.touchMove=!
1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),thi
s.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
col"),e.classList.add("tabulator-col-placeholder"),e}initialize()
{this.table.options.movableColumns&&this.subscribe("column-
init",this.initializeColumn.bind(this))}initializeColumn(e){var
t,n=this,r={};e.modules.frozen||e.isGroup||
(t=e.getElement(),r.mousemove=function(r)
{e.parent===n.moving.parent&&((n.touchMove?r.touches[0].pageX:r.pageX)-
i.elOffset(t).left+n.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?
n.toCol===e&&n.toColAfter||
(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):
(n.toCol!==e||
n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!
1)))}.bind(n),t.addEventListener("mousedown",(function(t){n.touchMove=!
1,1===t.which&&(n.checkTimeout=setTimeout((function()
{n.startMove(t,e)}),n.checkPeriod))})),t.addEventListener("mouseup",(function(e)
{1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),n.bindTouchEvents(e))
,e.modules.moveColumn=r}bindTouchEvents(e){var t,n,r,i,o,s,a=e.getElement(),c=!
1;a.addEventListener("touchstart",
(a=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,t=e.nextColumn(),r=t?
t.getWidth()/2:0,n=e.prevColumn(),i=n?n.getWidth()/2:0,o=0,s=0,c=!
1,this.startMove(a,e)}),this.checkPeriod)}),{passive:!
0}),a.addEventListener("touchmove",(a=>{var u,l;this.moving&&(this.moveHover(a),c||
(c=a.touches[0].pageX),(u=a.touches[0].pageX-c)>0?t&&u-o>r&&(l=t)!
==e&&(c=a.touches[0].pageX,l.getElement().parentNode.insertBefor
e(this.placeholderElement,l.getElement().nextSibling),this.moveColumn(l,!0)):n&&-u-
s>i&&(l=n)!
==e&&(c=a.touches[0].pageX,l.getElement().parentNode.insertBefore(this.placeholderE
lement,l.getElement()),this.moveColumn(l,!1)),l&&(t=l.nextColumn(),o=r,r=t?
t.getWidth()/2:0,n=l.prevColumn(),s=i,i=n?n.getWidth()/2:0))}),{passive:!
0}),a.addEventListener("touchend",
(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(e
)}))}startMove(e,t){var
n=t.getElement(),r=this.table.columnManager.getContentsElement(),o=this.table.colum
nManager.getHeadersElement();this.moving=t,this.startX=(this.touchMove?
e.touches[0].pageX:e.pageX)-
i.elOffset(n).left,this.table.element.classList.add("tabulator-block-
select"),this.placeholderElement.style.width=t.getWidth()
+"px",this.placeholderElement.style.height=t.getHeight()
+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild
(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-
moving"),r.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hov
erElement.style.bottom=r.clientHeight-o.offsetHeight+"px",this.touchMove||
(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),d
ocument.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)}_bindMouse
Move(){this.table.columnManager.columnsByIndex.forEach((function(e)
{e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modu
les.moveColumn.mousemove)}))}_unbindMouseMove()
{this.table.columnManager.columnsByIndex.forEach((function(e)
{e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.m
odules.moveColumn.mousemove)}))}moveColumn(e,t){var
n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?
e.getCells().forEach((function(e,t){var r=e.getElement(!
0);r.parentNode&&n[t]&&r.parentNode.insertBefore(n[t].getElement(),r.nextSibling)})
):e.getCells().forEach((function(e,t){var r=e.getElement(!
0);r.parentNode&&n[t]&&r.parentNode.insertBefore(n[t].getElement(),r)}))}endMove(e)
{(1===e.which||
this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insert
Before(this.moving.getElement(),this.placeholderElement.nextSibling),this.placehold
erElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentN
ode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-
block-
select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toC
ol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!
1,this.touchMove||
(document.body.removeEventListener("mousemove",this.moveHover),document.body.remove
EventListener("mouseup",this.endMove)))}moveHover(e){var
t,n=this.table.columnManager.getContentsElement(),r=n.scrollLeft,o=(this.touchMove?
e.touches[0].pageX:e.pageX)-i.elOffset(n).left+r;this.hoverElement.style.left=o-
this.startX+"px",o-r<this.autoScrollMargin&&(this.autoScrollTimeout||
(this.autoScrollTimeout=setTimeout((()=>{t=Math.max(0,r-
5),this.table.rowManager.getElement().scrollLeft=t,this.autoScrollTimeout=!
1}),1))),r+n.clientWidth-o<this.autoScrollMargin&&(this.autoScrollTimeout||
(this.autoScrollTimeout=setTimeout((()=>{t=Math.min(n.clientWidth,r+5),this.table.r
owManager.getElement().scrollLeft=t,this.autoScrollTimeout=!
1}),1)))}}X.moduleName="moveColumn";class Z extends s{constructor(e)
{super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement
=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!
1,this.toRowAfter=!1,this.hasHandle=!
1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove
=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!
1,this.connection=!1,this.connectionSelectorsTables=!
1,this.connectionSelectorsElements=!
1,this.connectionElements=[],this.connections=[],this.connectedTable=!
1,this.connectedRow=!1,this.registerTableOption("movableRows",!
1),this.registerTableOption("movableRowsConnectedTables",!
1),this.registerTableOption("movableRowsConnectedElements",!
1),this.registerTableOption("movableRowsSender",!
1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOpti
on("rowHandle")}createPlaceholderElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
row"),e.classList.add("tabulator-row-placeholder"),e}initialize()
{this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options
.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.mov
ableRowsConnectedElements,this.connection=this.connectionSelectorsTables||
this.connectionSelectorsElements,this.subscribe("cell-
init",this.initializeCell.bind(this)),this.subscribe("column-
init",this.initializeColumn.bind(this)),this.subscribe("row-
init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var
t=this,n={};n.mouseup=function(n)
{t.tableRowDrop(n,e)}.bind(t),n.mousemove=function(n){var r;n.pageY-
i.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?
t.toRow===e&&t.toRowAfter||
((r=e.getElement()).parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.m
oveRow(e,!0)):(t.toRow!==e||
t.toRowAfter)&&(r=e.getElement()).previousSibling&&(r.parentNode.insertBefore(t.pla
ceholderElement,r),t.moveRow(e,!1))}.bind(t),e.modules.moveRow=n}initializeRow(e)
{var t,n=this,r={};r.mouseup=function(t)
{n.tableRowDrop(t,e)}.bind(n),r.mousemove=function(t){var r=e.getElement();t.pageY-
i.elOffset(r).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?
n.toRow===e&&n.toRowAfter||
(r.parentNode.insertBefore(n.placeholderElement,r.nextSibling),n.moveRow(e,!0)):
(n.toRow!==e||
n.toRowAfter)&&(r.parentNode.insertBefore(n.placeholderElement,r),n.moveRow(e,!
1))}.bind(n),this.hasHandle||((t=e.getElement()).addEventListener("mousedown",
(function(t){1===t.which&&(n.checkTimeout=setTimeout((function()
{n.startMove(t,e)}),n.checkPeriod))})),t.addEventListener("mouseup",(function(e)
{1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),this.bindTouchEvents(
e,e.getElement())),e.modules.moveRow=r}initializeColumn(e)
{e.definition.rowHandle&&!1!==this.table.options.movableRows&&(this.hasHandle=!
0)}initializeCell(e){if(e.column.definition.rowHandle&&!1!
==this.table.options.movableRows){var t=this,n=e.getElement(!
0);n.addEventListener("mousedown",(function(n)
{1===n.which&&(t.checkTimeout=setTimeout((function()
{t.startMove(n,e.row)}),t.checkPeriod))})),n.addEventListener("mouseup",
(function(e)
{1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)})),this.bindTouchEvents(
e.row,n)}}bindTouchEvents(e,t){var n,r,i,o,s,a,c=!
1;t.addEventListener("touchstart",
(t=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,n=e.nextRow(),i=n?
n.getHeight()/2:0,r=e.prevRow(),o=r?r.getHeight()/2:0,s=0,a=0,c=!
1,this.startMove(t,e)}),this.checkPeriod)}),{passive:!
0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",(t=>{var
u,l;this.moving&&(t.preventDefault(),this.moveHover(t),c||(c=t.touches[0].pageY),
(u=t.touches[0].pageY-c)>0?n&&u-s>i&&(l=n)!
==e&&(c=t.touches[0].pageY,l.getElement().parentNode.insertBefore(this.placeholderE
lement,l.getElement().nextSibling),this.moveRow(l,!0)):r&&-u-a>o&&(l=r)!
==e&&(c=t.touches[0].pageY,l.getElement().parentNode.insertBefore(this.placeholderE
lement,l.getElement()),this.moveRow(l,!1)),l&&(n=l.nextRow(),s=i,i=n?
n.getHeight()/2:0,r=l.prevRow(),a=o,o=r?r.getHeight()/
2:0))})),t.addEventListener("touchend",
(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(
e),this.touchMove=!1)}))}_bindMouseMove()
{this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.t
ype)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListen
er("mousemove",e.modules.moveRow.mousemove)}))}_unbindMouseMove()
{this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.t
ype)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventLis
tener("mousemove",e.modules.moveRow.mousemove)}))}startMove(e,t){var
n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classL
ist.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()
+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?
(this.table.element.classList.add("tabulator-movingrow-
sending"),this.connectToTables(t)):
(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),
this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-
moving"),this.connection?
(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this
.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.client
Width+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.over
flow="hidden",this.hoverElement.style.pointerEvents="none"):
(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverE
lement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),docume
nt.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener
("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.m
oveHover(e)}setStartPosition(e,t){var n,r,i=this.touchMove?
e.touches[0].pageX:e.pageX,o=this.touchMove?
e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?
(r=n.getBoundingClientRect(),this.startX=r.left-
i+window.pageXOffset,this.startY=r.top-o+window.pageYOffset):this.startY=o-
n.getBoundingClientRect().top}endMove(e){e&&1!==e.which&&!this.touchMove||
(this._unbindMouseMove(),this.connection||
(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.plac
eholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.pla
ceholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.
table.element.classList.remove("tabulator-block-select"),this.toRow?
this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatch
External("rowMoveCancelled",t
his.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!
1,document.body.removeEventListener("mousemove",this.moveHover),document.body.remov
eEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classLi
st.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t)
{this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?
this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTa
ble(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,r=(this.touchMove?
e.touches[0].pageY:e.pageY)-
t.getBoundingClientRect().top+n;this.hoverElement.style.top=Math.min(r-
this.startY,this.table.rowManager.element.scrollHeight-
this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e)
{this.hoverElement.style.left=this.startX+(this.touchMove?
e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+
(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,n)
{this.dispatchExternal("movableRowsElementDrop",e,t,!!
n&&n.getComponent())}connectToTables(e){var
t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectors
Tables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.conn
ectionSelectorsTables,"moveRow","connect",
{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArr
ay(this.connectionSelectorsElements)||
(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connecti
onSelectorsElements.forEach((e=>{"string"==typeof e?
this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(d
ocument.querySelectorAll(e))):this.connectionElements.push(e)})),this.connectionEle
ments.forEach((e=>{var
t=t=>{this.elementRowDrop(t,e,this.moving)};e.addEventListener("mouseup",t),e.tabul
atorElementDropEvent=t,e.classList.add("tabulator-movingrow-
receiving")})))}disconnectFromTables(){var
e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectors
Tables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.conne
ctionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach((e=>{
e.classList.remove("tabulator-movingrow-
receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete
e.tabulatorElementDropEvent}))}connect(e,t){return this.connectedTable?
(console.warn("Move Row Error - Table cannot accept connection, already connected
to table:",this.connectedTable),!1):
(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabula
tor-movingrow-
receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.m
odules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup
",e.modules.moveRow.mouseup)})),this.tableRowDropEvent=this.tableRowDrop.bind(this)
,this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatc
hExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e)
{e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!
1,this.table.element.classList.remove("tabulator-movingrow-
receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.m
odules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mous
eup",e.modules.moveRow.mouseup)})),this.table.element.removeEventListener("mouseup"
,this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):conso
le.warn("Move Row Error - trying to disconnect from non connected
table")}dropComplete(e,t,n){var r=!1;if(n){switch(typeof
this.table.options.movableRowsSender)
{case"string":r=this.senders[this.table.options.movableRowsSender];break;case"funct
ion":r=this.table.options.movableRowsSender}r?r.call(this,this.moving?
this.moving.getComponent():void 0,t?t.getComponent():void
0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no
matching sender
found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSen
t",this.moving.getComponent(),t?t.getComponent():void 0,e)}else
this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?
t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var n=!1,r=!
1;switch(e.stopImmediatePropagation(),typeof
this.table.options.movableRowsReceiver)
{case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"f
unction":n=this.table.options.movableRowsReceiver}n?
r=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void
0,this.connectedTable):console.warn("Mover Row Error - no matching receiver
found:",this.table.options.movableRowsReceiver),r?
this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?
t.getComponent():void
0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.conne
ctedRow.getComponent(),t?t.getComponent():void
0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",
{row:t,success:r})}commsReceived(e,t,n){switch(t){case"connect":return
this.connect(e,n.row);case"disconnect":return
this.disconnect(e);case"dropcomplete":return
this.dropComplete(e,n.row,n.success)}}}Z.prototype.receivers={insert:function(e,t,n
){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return
this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!
t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!
t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!
0)}},Z.prototype.senders={delete:function(e,t,n)
{e.delete()}},Z.moduleName="moveRow";class J extends s{constructor(e)
{super(e),this.allowedTypes=["","data","edit","clipboard"],this.enabled=!
0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),t
his.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParam
s"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEdit
Params"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("m
utatorClipboardParams"),this.registerColumnOption("mutateLink")}initialize()
{this.subscribe("cell-value-
changing",this.transformCell.bind(this)),this.subscribe("cell-value-
changed",this.mutateLink.bind(this)),this.subscribe("column-
layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-
before",this.rowDataChanged.bind(this)),this.subscribe("row-data-
changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,n){return
this.transformRow(t,"data",n)}initializeColumn(e){var t=!
1,n={};this.allowedTypes.forEach((r=>{var i,o="mutator"+(r.charAt(0).toUpperCase()
+r.slice(1));e.definition[o]&&(i=this.lookupMutator(e.definition[o]))&&(t=!
0,n[o]={mutator:i,params:e.definition[o+"Params"]||
{}})})),t&&(e.modules.mutate=n)}lookupMutator(e){var t=!1;switch(typeof e)
{case"string":J.mutators[e]?t=J.mutators[e]:console.warn("Mutator Error - No such
mutator found, ignoring: ",e);break;case"function":t=e}return t}transformRow(e,t,n)
{var r,i="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return
this.enabled&&this.table.columnManager.traverse((o=>{var
s,a,c;o.modules.mutate&&(s=o.modules.mutate[i]||o.modules.mutate.mutator||!
1)&&(r=o.getFieldValue(void 0!==n?n:e),("data"==t&&!n||void 0!
==r)&&(c=o.getComponent(),a="function"==typeof s.params?
s.params(r,e,t,c):s.params,o.setFieldValue(e,s.mutator(r,e,t,a,c))))})),e}transform
Cell(e,t){if(e.column.modules.mutate){var n=e.column.modules.mutate.mutatorEdit||
e.column.modules.mutate.mutator||!1,r={};if(n)return
r=Object.assign(r,e.row.getData()),e.column.setFieldValue(r,t),n.mutator(t,r,"edit"
,n.params,e.getComponent())}return t}mutateLink(e){var
t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach((t=>{var
n=e.row.getCell(t);n&&n.setValue(n.getValue(),!0,!0)})))}enable(){this.enabled=!
0}disable(){this.enabled=!1}}J.moduleName="mutator",J.mutators={};var
ee={rows:function(e,t,n,r,i){var
o=document.createElement("span"),s=document.createElement("span"),a=document.create
Element("span"),c=document.createElement("span"),u=document.createElement("span"),l
=document.createElement("span");return
this.table.modules.localize.langBind("pagination|counter|showing",
(e=>{s.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|of",
(e=>{c.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|
rows",(e=>{l.innerHTML=e})),r?(a.innerHTML=" "+t+"-"+Math.min(t+e-1,r)+"
",u.innerHTML=" "+r+"
",o.appendChild(s),o.appendChild(a),o.appendChild(c),o.appendChild(u),o.appendChild
(l)):(a.innerHTML=" 0
",o.appendChild(s),o.appendChild(a),o.appendChild(l)),o},pages:function(e,t,n,r,i)
{var
o=document.createElement("span"),s=document.createElement("span"),a=document.create
Element("span"),c=document.createElement("span"),u=document.createElement("span"),l
=document.createElement("span");return
this.table.modules.localize.langBind("pagination|counter|showing",
(e=>{s.innerHTML=e})),a.innerHTML=" "+n+"
",this.table.modules.localize.langBind("pagination|counter|of",
(e=>{c.innerHTML=e})),u.innerHTML=" "+i+"
",this.table.modules.localize.langBind("pagination|counter|pages",
(e=>{l.innerHTML=e})),o.appendChild(s),o.appendChild(a),o.appendChild(c),o.appendCh
ild(u),o.appendChild(l),o}};class te extends s{constructor(e)
{super(e),this.mode="local",this.progressiveLoad=!
1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,
this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLo
ad=!0,this.dataChanging=!
1,this.pageSizes=[],this.registerTableOption("pagination",!
1),this.registerTableOption("paginationMode","local"),this.registerTableOption("pag
inationSize",!
1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("pa
ginationCounter",!1),this.registerTableOption("paginationCounterElement",!
1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("pa
ginationSizeSelector",!1),this.registerTableOption("paginationElement",!
1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("pr
ogressiveLoad",!1),this.registerTableOption("progressiv
eLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.regis
terTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunctio
n("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this
.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSet
PageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind
(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),thi
s.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunc
tion("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",thi
s.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPage
ToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-
deleted",this.rowsUpdated.bind(this)),this.subscribe("row-
added",this.rowsUpdated.bind(this)),this.subscribe("data-
processed",this.initialLoadComplete.bind(this)),this.subscribe("table-
built",this.calculatePageSizes.bind(this)),this.subscribe("footer-
redraw",this.footerRedraw.bind(this)),"page"==this.table.options.paginationAddRow&&
this.subscribe("row-adding-
position",this.rowAddingPosition.bind(this)),"remote"===this.table.options.paginati
onMode&&(this.subscribe("data-
params",this.remotePageParams.bind(this)),this.subscribe("data-
loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&cons
ole.error("Progressive Load Error - Pagination and progressive load cannot be used
at the same
time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.regi
sterDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializ
ePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(thi
s.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-
loaded",this._parseRemoteData.bind(this)),this.subscribe("table-
built",this.calculatePageSizes.bind(this)),this.subscribe("data-
processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.tab
le.options.progressiveLoad),"scroll"===this.table.options.progressiveLoad&&this.sub
scribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t)
{var n,r=this.table.rowManager,i=r.getDisplayRows();return t?i.length?
n=i[0]:r.activeRows.length&&(n=r.activeRows[r.activeRows.length-1],t=!
1):i.length&&(n=i[i.length-1],t=!(i.length<this.size)),
{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?
this.size=this.table.options.paginationSize:
((e=document.createElement("div")).classList.add("tabulator-
row"),e.style.visibility="hidden",
(t=document.createElement("div")).classList.add("tabulator-cell"),t.innerHTML="Page
Row
Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.
size=Math.floor(this.table.rowManager.getElement().clientHeight/
e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispat
chExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLo
adComplete(){this.initialLoad=!1}remotePageParams(e,t,n,r){return
this.initialLoad||(this.progressiveLoad&&!n||!this.progressiveLoad&&!
this.dataChanging)&&this.reset(!
0),r.page=this.page,this.size&&(r.size=this.size),r}userSetPageToRow(e){return
this.table.options.pagination&&(e=this.rowManager.findRow(e))?
this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return!!
this.table.options.pagination&&(this.setPageSize(e),this.setPage(1))}scrollVertical
(e,t){var n;t||this.table.dataLoader.loading||
(n=this.table.rowManager.getElement()).scrollHeight-n.clientHeight-
e<(this.table.options.progressiveLoadScrollMargin||
2*n.clientHeight)&&this.nextPage().catch((()=>{}))}restOnRenderBefore(e,t){return
t||"local"===this.mode&&this.reset(),e}rowsUpdated(){this.refreshData(!
0,"all")}createElements(){var
e;this.element=document.createElement("span"),this.element.classList.add("tabulator
-
paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.clas
sList.add("tabulator-pages"),
(e=document.createElement("button")).classList.add("tabulator-
page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribu
te("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!
0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!
0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!
0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!
0),this.lastBut.setAttribute("data-
page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=docum
ent.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-
size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect)
{if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.p
aginationSizeSelector,this.pageSizes=e,-
1==this.pageSizes.indexOf(this.size)&&e.unshift(this.size);else if(-
1==this.pageSizes.indexOf(this.size)){e=[];for(let t=1;t<5;t+
+)e.push(this.size*t);this.pageSizes=e}else
e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChi
ld(this.pageSizeSelect.firstChild);e.forEach((e=>{var
t=document.createElement("option");t.value=e,!0===e?this.langBind("pagination|all",
(function(e)
{t.innerHTML=e})):t.innerHTML=e,this.pageSizeSelect.appendChild(t)})),this.pageSize
Select.value=this.size}}initializePageCounter(){var
e=this.table.options.paginationCounter,t=null;e&&((t="function"==typeof e?
e:te.pageCounters[e])?
(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pag
eCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination
Error - No such page counter found: ",e))}initializePaginator(e){var t,n;e||
(this.langBind("pagination|first",
(e=>{this.firstBut.innerHTML=e})),this.langBind("pagination|first_title",
(e=>{this.firstBut.setAttribute("aria-
label",e),this.firstBut.setAttribute("title",e)})),this.langBind("pagination|prev",
(e=>{this.prevBut.innerHTML=e})),this.langBind("pagination|prev_title",
(e=>{this.prevBut.setAttribute("aria-
label",e),this.prevBut.setAttribute("title",e)})),this.langBind("pagination|next",
(e=>{this.nextBut.innerHTML=e})),this.langBind("pagination|next_title",
(e=>{this.nextBut.setAttribute("aria-
label",e),this.nextBut.setAttribute("title",e)})),this.langBind("pagination|last",
(e=>{this.lastBut.innerHTML=e})),this.langBind("pagination|last_title",
(e=>{this.lastBut.setAttribute("aria-
label",e),this.lastBut.setAttribute("title",e)})),this.firstBut.addEventListener("c
lick",(()=>{this.setPage(1)})),this.prevBut.addEventListener("click",
(()=>{this.previousPage()})),this.nextBut.addEventListener("click",
(()=>{this.nextPage()})),this.lastBut.addEventListener("click",
(()=>{this.setPage(this.max)})),this.table.options.paginationElement&&(this.element
=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createEleme
nt("label"),this.langBind("pagination|page_size",
(e=>{this.pageSizeSelect.setAttribute("aria-
label",e),this.pageSizeSelect.setAttribute("title",e),t.innerHTML=e})),this.element
.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.a
ddEventListener("change",(e=>{this.setPageSize("true"==this.pageSizeSelect.value||
this.pageSizeSelect.value),this.setPage(1)}))),this.element.appendChild(this.firstB
ut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesEleme
nt),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),t
his.table.options.paginationElement||
(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement
?this.table.options.paginationCounterElement instanceof HTMLElement?
this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):"s
tring"==typeof
this.table.options.paginationCounterElement&&((n=document.querySelector(this.table.
options.paginationCounterElement))?
n.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to
find element matching paginationCounterElement
selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pag
eCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.pag
inationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=t
his.table.options.paginationMode}initializeProgressive(e)
{this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!
0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){this.max=e?!
0===this.size?1:Math.ceil(e/
this.size):1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||
("local"==this.mode||e)&&(this.page=1,this.trackChanges())}setMaxPage(e)
{e=parseInt(e),this.max=e||
1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e)
{case"first":return this.setPage(1);case"prev":return
this.previousPage();case"next":return this.nextPage();case"last":return
this.setPage(this.max)}return(e=parseInt(e))>0&&e<=this.max||"local"!==this.mode?
(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error -
Requested page is out of range of 1 -
"+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-
1).indexOf(e);if(t>-1){var n=!0===this.size?1:Math.ceil((t+1)/this.size);return
this.setPage(n)}return console.warn("Pagination Error - Requested row is not
visible"),Promise.reject()}setPageSize(e){!0!
==e&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),
this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPage
Counter(e,t,n){var
r;if(this.pageCounter)switch("remote"===this.mode&&(t=this.size,n=(this.page-
1)*this.size+1,e=this.remoteRowCountEstimate),typeof(r=this.pageCounter.call(this,t
,n,this.page,e,this.max))){case"object":if(r instanceof Node)
{for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.
pageCounterElement.firstChild);this.pageCounterElement.appendChild(r)}else
this.pageCounterElement.innerHTML="",null!=r&&console.warn("Page Counter Error -
Page Counter has returned a type of object, the only valid page counter object
return is an instance of Node, the page counter
returned:",r);break;case"undefined":this.pageCounterElement.innerHTML="";break;defa
ult:this.pageCounterElement.innerHTML=r}}_setPageButtons(){let
e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),n=this.max-
this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-
e,1),r=this.page<=t?
Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement
.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);1==this.pa
ge?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!
1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!
0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!
1);for(let e=n;e<=r;e+
+)e>0&&e<=this.max&&this.pagesElement.appendChild(this._generatePageButton(e));this
.footerRedraw()}_generatePageButton(e){var
t=document.createElement("button");return t.classList.add("tabulator-
page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.se
tAttribute("role","button"),this.langBind("pagination|page_title",
(n=>{t.setAttribute("aria-label",n+" "+e),t.setAttribute("title",n+"
"+e)})),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",
(t=>{this.setPage(e)})),t}previousPage(){return this.page>1?
(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error -
Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return
this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):
(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater
than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return
this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode()
{return this.mode}getRows(e){var
t,n,r,i,o=0,s=e.filter((e=>"row"===e.type));if("local"==this.mode)
{t=[],this.setMaxRows(e.length),!0===this.size?
(n=0,r=e.length):r=(n=this.size*(this.page-1))
+parseInt(this.size),this._setPageButtons();for(let s=n;s<r;s++){let
n=e[s];n&&(t.push(n),"row"===n.type&&(i||(i=n),o++))}return
this._setPageCounter(s.length,o,i?s.indexOf(i)+1:0),t}return
this._setPageButtons(),this._setPageCounter(s.length),e.slice(0)}trigger(){var
e;switch(this.mode){case"local":return
e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollH
orizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();c
ase"remote":return this.dataChanging=!
0,this.reloadData(null).finally((()=>{this.dataChanging=!
1}));case"progressive_load":case"progressive_scroll":return this.reloadData(null,!
0);default:return console.warn("Pagination Error - no such pagination
mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t;if(void
0===e.last_page&&console.warn("Remote Pagination Error - Server response missing
'"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data)
{if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=void 0!
==e.last_row?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-
e.data.length:0),this.progressiveLoad){switch(this.mode)
{case"progressive_load":1==this.page?this.table.rowManager.setData(e.data,!
1,1==this.page):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeou
t((()=>{this.nextPage()}),this.table.options.progressiveLoadDelay);break;case"progr
essive_scroll":e=1===this.page?
e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData
(e,1!==this.page,1==this.page),t=this.table.options.progressiveLoadScrollMargin||
2*this.table.rowManager.element.clientHeight,this.table.rowManager.element.scrollHe
ight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout(
(()=>{this.nextPage()}))}return!
1}this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote
Pagination Error - Server response missing '"+
(this.options("dataReceiveParams").data||"data")+"' property");return
e.data}footerRedraw(){var
e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-
e.scrollWidth<0?this.pagesElement.style.display="none":
(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-
e.scrollWidth<0&&(this.pagesElement.style.display="none"))}}te.moduleName="page",te
.pageCounters=ee;var ne={local:function(e,t){var
n=localStorage.getItem(e+"-"+t);return!!n&&JSON.parse(n)},cookie:function(e,t){var
n,r,i=document.cookie,o=e+"-"+t,s=i.indexOf(o+"=");return s>-
1&&((n=(i=i.slice(s)).indexOf(";"))>-1&&(i=i.slice(0,n)),r=i.replace(o+"=","")),!!
r&&JSON.parse(r)}},re={local:function(e,t,n)
{localStorage.setItem(e+"-"+t,JSON.stringify(n))},cookie:function(e,t,n){var r=new
Date;r.setDate(r.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(n)+";
expires="+r.toUTCString()}};class ie extends s{constructor(e)
{super(e),this.mode="",this.id="",this.defWatcherBlock=!
1,this.config={},this.readFunc=!1,this.writeFunc=!
1,this.registerTableOption("persistence",!
1),this.registerTableOption("persistenceID",""),this.registerTableOption("persisten
ceMode",!0),this.registerTableOption("persistenceReaderFunc",!
1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var
e="_tabulator_test";try{return
window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e)
{return!1}}initialize(){if(this.table.options.persistence){var
e,t=this.table.options.persistenceMode,n=this.table.options.persistenceID;this.mode
=!0!==t?
t:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc
?"function"==typeof this.table.options.persistenceReaderFunc?
this.readFunc=this.table.options.persistenceReaderFunc:ie.readers[this.table.option
s.persistenceReaderFunc]?
this.readFunc=ie.readers[this.table.options.persistenceReaderFunc]:console.warn("Pe
rsistence Read Error - invalid reader
set",this.table.options.persistenceReaderFunc):ie.readers[this.mode]?
this.readFunc=ie.readers[this.mode]:console.warn("Persistence Read Error - invalid
reader set",this.mode),this.table.options.persistenceWriterFunc?"function"==typeof
this.table.options.persistenceWriterFunc?
this.writeFunc=this.table.options.persistenceWriterFunc:ie.writers[this.table.optio
ns.persistenceWriterFunc]?
this.writeFunc=ie.writers[this.table.options.persistenceWriterFunc]:console.warn("P
ersistence Write Error - invalid reader
set",this.table.options.persistenceWriterFunc):ie.writers[this.mode]?
this.writeFunc=ie.writers[this.mode]:console.warn("Persistence Write Error -
invalid writer set",this.mode),this.id="tabulator-"+(n||
this.table.element.getAttribute("id")||""),this.config={sort:!
0===this.table.options.persistence||this.table.options.persistence.sort,filter:!
0===this.table.options.persistence||
this.table.options.persistence.filter,headerFilter:!
0===this.table.options.persistence||
this.table.options.persistence.headerFilter,group:!
0===this.table.options.persistence||this.table.options.persistence.group,page:!
0===this.table.options.persistence||this.table.options.persistence.page,columns:!
0===this.table.options.persistence?
["title","width","visible"]:this.table.options.persistence.columns},this.config.pag
e&&(e=this.retrieveData("page"))&&(void 0===e.paginationSize||!0!
==this.config.page&&!this.config.page.size||
(this.table.options.paginationSize=e.paginationSize),void
0===e.paginationInitialPage||!0!==this.config.page&&!this.config.page.page||
(this.table.options.paginationInitialPage=e.paginationInitialPage)),this.config.gro
up&&(e=this.retrieveData("group"))&&(void 0===e.groupBy||!0!==this.config.group&&!
this.config.group.groupBy||(this.table.options.groupBy=e.groupBy),void
0===e.groupStartOpen||!0!==this.config.group&&!this.config.group.groupStartOpen||
(this.table.options.groupStartOpen=e.groupStartOpen),void 0===e.groupHeader||!0!
==this.config.group&&!this.config.group.groupHeader||
(this.table.options.groupHeader=e.groupHeader)),this.config.columns&&(this.table.op
tions.columns=this.load("columns",this.table.options.columns),this.subscribe("colum
n-init",this.initializeColumn.bind(this)),this.subscribe("column-
show",this.save.bind(this,"columns")),this.subscribe("column-
hide",this.save.bind(this,"columns")),this.subscribe("column-
moved",this.save.bind(this,"columns"))),this.subscribe("table-
built",this.tableBuilt.bind(this),0),this.subscribe("table-
redraw",this.tableRedraw.bind(this)),this.subscribe("filter-
changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-
changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-
changed",this.eventSave.bind(this,"sort")),this.subscribe("group-
changed",this.eventSave.bind(this,"group")),this.subscribe("page-
changed",this.eventSave.bind(this,"page")),this.subscribe("column-
resized",this.eventSave.bind(this,"columns")),this.subscribe("column-
width",this.eventSave.bind(this,"columns")),this.subscribe("layout-
refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColu
mnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLay
out",this.setColumnLayout.bind(this))}eventSave(e)
{this.config[e]&&this.save(e)}tableBuilt(){var e,t,n;this.config.sort&&0==!
(e=this.load("sort"))&&(this.table.options.initialSort=e),this.config.filter&&0==!
(t=this.load("filter"))&&(this.table.options.initialFilter=t),this.config.headerFil
ter&&0==!
(n=this.load("headerFilter"))&&(this.table.options.initialHeaderFilter=n)}tableRedr
aw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return
this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return
this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns
,e)),!0}initializeColumn(e){var t;this.config.columns&&(this.defWatcherBlock=!
0,t=e.getDefinition(),(!0===this.config.columns?
Object.keys(t):this.config.columns).forEach((e=>{var
n=Object.getOwnPropertyDescriptor(t,e),r=t[e];n&&Object.defineProperty(t,e,
{set:e=>{r=e,this.defWatcherBlock||this.save("columns"),n.set&&n.set(e)},get:
()=>(n.get&&n.get(),r)})})),this.defWatcherBlock=!1)}load(e,t){var
n=this.retrieveData(e);return t&&(n=n?
this.mergeDefinition(t,n):t),n}retrieveData(e){return!!
this.readFunc&&this.readFunc(this.id,e)}mergeDefinition(e,t){var n=[];return(t=t||
[]).forEach(((t,r)=>{var i,o=this._findColumn(e,t);o&&(!0===this.config.columns||
null==this.config.columns?
(i=Object.keys(o)).push("width"):i=this.config.columns,i.forEach((e=>{"columns"!
==e&&void 0!
==t[e]&&(o[e]=t[e])})),o.columns&&(o.columns=this.mergeDefinition(o.columns,t.colum
ns)),n.push(o))})),e.forEach(((e,r)=>{this._findColumn(t,e)||(n.length>r?
n.splice(r,0,e):n.push(e))})),n}_findColumn(e,t){var
n=t.columns?"group":t.field?"field":"object";return e.find((function(e){switch(n)
{case"group":return
e.title===t.title&&e.columns.length===t.columns.length;case"field":return
e.field===t.field;case"object":return e===t}}))}save(e){var t={};switch(e)
{case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;cas
e"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.
table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(thi
s.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;cas
e"page":t=this.getPageConfig()}this.writeFunc&&this.writeFunc(this.id,e,t)}validate
Sorters(e){return e.forEach((function(e){e.column=e.field,delete
e.field})),e}getGroupConfig(){var e={};return this.config.group&&((!
0===this.config.group||
this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!
0===this.config.group||
this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartO
pen),(!0===this.config.group||
this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}g
etPageConfig(){var e={};return this.config.page&&((!0===this.config.page||
this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!
0===this.config.page||
this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())
),e}parseColumns(e){var
t=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return
e.forEach((e=>{var r,i={},o=e.getDefinition();e.isGroup?
(i.title=o.title,i.columns=this.parseColumns(e.getColumns())):
(i.field=e.getField(),!0===this.config.columns||null==this.config.columns?
((r=Object.keys(o)).push("width"),r.push("visible")):r=this.config.columns,r.forEac
h((t=>{switch(t)
{case"width":i.width=e.getWidth();break;case"visible":i.visible=e.visible;break;def
ault:"function"!=typeof o[t]&&-
1===n.indexOf(t)&&(i[t]=o[t])}}))),t.push(i)})),t}}ie.moduleName="persistence",ie.m
oduleInitOrder=-10,ie.readers=ne,ie.writers=re;class oe extends s{constructor(e)
{super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!
1),this.registerTableOption("rowClickPopup",!
1),this.registerTableOption("rowDblClickPopup",!
1),this.registerTableOption("groupContextPopup",!
1),this.registerTableOption("groupClickPopup",!
1),this.registerTableOption("groupDblClickPopup",!
1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("heade
rClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnO
ption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColu
mnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColum
nOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._compon
entPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._comp
onentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._compo
nentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._comp
onentPopupCall.bind(this))}initialize()
{this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column
-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,n)
{this.loadPopupEvent(t,null,e,n)}initializeRowWatchers()
{this.table.options.rowContextPopup&&(this.subscribe("row-
contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),thi
s.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContext
Popup))),this.table.options.rowClickPopup&&this.subscribe("row-
click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.
options.rowDblClickPopup&&this.subscribe("row-
dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initi
alizeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-
contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),t
his.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupC
ontextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-
click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.tabl
e.options.groupDblClickPopup&&this.subscribe("group-
dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}ini
tializeColumn(e){var t=e.definition;t.headerContextPopup&&!
this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPop
up=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("c
olumn-
contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHol
d",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPo
pup&&!
this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=t
his.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-
click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!
this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickP
opup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe
("column-
dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initiali
zeColumnHeaderPopup(e),t.contextPopup&&!
this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.load
PopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-
contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.
loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!
this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopu
pTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-
click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!
this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.lo
adPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-
click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var
t,n=e.definition.headerPopupIcon;
(t=document.createElement("span")).classList.add("tabulator-header-popup-
button"),n?("function"==typeof n&&(n=n(e.getComponent())),n instanceof HTMLElement?
t.appendChild(n):t.innerHTML=n):t.innerHTML="⋮",t.addEventListener("click",
(t=>{t.stopPropagation(),t.preventDefault(),this.loadPopupEvent(e.definition.header
Popup,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadPopupTab
leCellEvent(e,t,n)
{n._cell&&(n=n._cell),n.column.definition[e]&&this.loadPopupEvent(n.column.definiti
on[e],t,n)}loadPopupTableColumnEvent(e,t,n)
{n._column&&(n=n._column),n.definition[e]&&this.loadPopupEvent(n.definition[e],t,n)
}loadPopupEvent(e,t,n,r){var i;n._group?
n=n._group:n._row&&(n=n._row),e="function"==typeof e?
e.call(this.table,t,n.getComponent(),(function(e)
{i=e})):e,this.loadPopup(t,n,e,i,r)}loadPopup(e,t,n,r,i){var o,s,a=!(e instanceof
MouseEvent);n instanceof HTMLElement?o=n:
(o=document.createElement("div")).innerHTML=n,o.classList.add("tabulator-
popup"),o.addEventListener("click",(e=>{e.stopPropagation()})),a||
e.preventDefault(),s=this.popup(o),"function"==typeof r&&s.renderCallback(r),e?
s.show(e):s.show(t.getElement(),i||"center"),s.hideOnBlur((()=>{this.dispatchExtern
al("popupClosed",t.getComponent())})),this.dispatchExternal("popupOpened",t.getComp
onent())}}oe.moduleName="popup";class se extends s{constructor(e)
{super(e),this.element=!1,this.manualBlock=!
1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerT
ableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!
1),this.registerTableOption("printHeader",!
1),this.registerTableOption("printFooter",!
1),this.registerTableOption("printStyled",!
0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("pr
intConfig",
{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}init
ialize()
{this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bi
nd(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListene
r("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",
this.afterprintEventHandler),this.subscribe("table-
destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFul
lscreen.bind(this))}destroy()
{this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.bef
oreprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventH
andler))}replaceTable(){this.manualBlock||
(this.element=document.createElement("div"),this.element.classList.add("tabulator-
print-
table"),this.element.appendChild(this.table.modules.export.generateTable(this.table
.options.printConfig,this.table.options.printStyled,this.table.options.printRowRang
e,"print")),this.table.element.style.display="none",this.table.element.parentNode.i
nsertBefore(this.element,this.table.element))}cleanup()
{document.body.classList.remove("tabulator-print-fullscreen-
hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(
this.element),this.table.element.style.display="")}printFullscreen(e,t,n){var
r,i,o=window.scrollX,s=window.scrollY,a=document.createElement("div"),c=document.cr
eateElement("div"),u=this.table.modules.export.generateTable(void 0!==n?
n:this.table.options.printConfig,void 0!==t?t:this.table.options.printStyled,e||
this.table.options.printRowRange,"print");this.manualBlock=!
0,this.element=document.createElement("div"),this.element.classList.add("tabulator-
print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-
print-header"),"string"==typeof(r="function"==typeof
this.table.options.printHeader?
this.table.options.printHeader.call(this.table):this.table.options.printHeader)?
a.innerHTML=r:a.appendChild(r),this.element.appendChild(a)),this.element.appendChil
d(u),this.table.options.printFooter&&(c.classList.add("tabulator-print-
footer"),"string"==typeof(i="function"==typeof this.table.options.printFooter?
this.table.options.printFooter.call(this.table):this.table.options.printFooter)?
c.innerHTML=i:c.appendChild(i),this.element.appendChild(c)),document.body.classList
.add("tabulator-print-fullscreen-
hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&t
his.table.options.printFormatter(this.element,u),window.print(),this.cleanup(),wind
ow.scrollTo(o,s),this.manualBlock=!1}}se.moduleName="print";class ae extends
s{constructor(e){super(e),this.data=!1,this.blocked=!
1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!
1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-
before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-
after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-
before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-
after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-
after",this.watchRow.bind(this)),this.subscribe("data-
processing",this.watchData.bind(this)),this.subscribe("table-
destroy",this.unwatchData.bind(this)))}watchData(e){var
t,n=this;this.currentVersion+
+,t=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,O
bject.defineProperty(this.data,"push",{enumerable:!1,configurable:!
0,value:function(){var r,i=Array.from(arguments);return n.blocked||t!
==n.currentVersion||(n.block("data-
push"),i.forEach((e=>{n.table.rowManager.addRowActual(e,!
1)})),r=n.origFuncs.push.apply(e,arguments),n.unblock("data-
push")),r}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unsh
ift",{enumerable:!1,configurable:!0,value:function(){var
r,i=Array.from(arguments);return n.blocked||t!==n.currentVersion||(n.block("data-
unshift"),i.forEach((e=>{n.table.rowManager.addRowActual(e,!
0)})),r=n.origFuncs.unshift.apply(e,arguments),n.unblock("data-
unshift")),r}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift
",{enumerable:!1,configurable:!0,value:function(){var r,i;return n.blocked||t!
==n.currentVersion||(n.block("data-
shift"),n.data.length&&(r=n.table.rowManager.getRowFromDataObject(n.data[0]))&&r.de
leteActual(),i=n.origFuncs.shift.call(e),n.unblock("data-
shift")),i}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",
{enumerable:!1,configurable:!0,value:function(){var r,i;return n.blocked||t!
==n.currentVersion||(n.block("data-
pop"),n.data.length&&(r=n.table.rowManager.getRowFromDataObject(n.data[n.data.lengt
h-1]))&&r.deleteActual(),i=n.origFuncs.pop.call(e),n.unblock("data-
pop")),i}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice"
,{enumerable:!1,configurable:!0,value:function(){var
r,i,o=Array.from(arguments),s=o[0]<0?e.length+o[0]:o[0],a=o[1],c=!!
o[2]&&o.slice(2);if(!n.blocked&&t===n.currentVersion){if(n.block("data-
splice"),c&&((r=!!e[s]&&n.table.rowManager.getRowFromDataObject(e[s]))?
c.forEach((e=>{n.table.rowManager.addRowActual(e,!0,r,!0)})):
(c=c.slice().reverse()).forEach((e=>{n.table.rowManager.addRowActual(e,!0,!1,!
0)}))),0!==a){var u=e.slice(s,void 0===o[1]?o[1]:s+a);u.forEach(((e,t)=>{var
r=n.table.rowManager.getRowFromDataObject(e);r&&r.deleteActual(t!==u.length-1)}))}
(c||0!
==a)&&n.table.rowManager.reRenderInPosition(),i=n.origFuncs.splice.apply(e,argument
s),n.unblock("data-splice")}return i}})}unwatchData(){if(!1!==this.data)for(var e
in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!
0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var n in
t)this.watchKey(e,t,n);this.table.options.dataTree&&this.watchTreeChildren(e)}watch
TreeChildren(e){var t=this,n=e.getData()
[this.table.options.dataTreeChildField],r={};n&&(r.push=n.push,Object.definePropert
y(n,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-
push");var i=r.push.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-
push")}return i}}),r.unshift=n.unshift,Object.defineProperty(n,"unshift",
{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-
unshift");var i=r.unshift.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-
unshift")}return i}}),r.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!
1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var
i=r.shift.call(n);this.rebuildTree(e),t.unblock("tree-shift")}return
i}}),r.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!
0,value:()=>{if(!t.blocked){t.block("tree-pop");var
i=r.pop.call(n);this.rebuildTree(e),t.unblock("tree-pop")}return
i}}),r.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!
1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var
i=r.splice.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return
i}}))}rebuildTree(e)
{this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow
(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,n){var
r=this,i=Object.getOwnPropertyDescriptor(t,n),o=t[n],s=this.currentVersion;Object.d
efineProperty(t,n,{set:t=>{if(o=t,!r.blocked&&s===r.currentVersion)
{r.block("key");var
a={};a[n]=t,e.updateData(a),r.unblock("key")}i.set&&i.set(t)},get:
()=>(i.get&&i.get(),o)})}unwatchRow(e){var t=e.getData();for(var n in
t)Object.defineProperty(t,n,{value:t[n]})}block(e){this.blocked||
(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!
1)}}ae.moduleName="reactiveData";class ce extends s{constructor(e)
{super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!
1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialize
d=!1,this.registerColumnOption("resizable",!
0),this.registerTableOption("resizableColumnFit",!1)}initialize()
{this.subscribe("column-
rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers()
{this.initialized||(this.subscribe("cell-
rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-
delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-
height",this.resizeHandle.bind(this)),this.subscribe("column-
moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-
hide",this.deInitializeColumn.bind(this)),this.subscribe("column-
show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-
width",this.columnWidthUpdated.bind(this)),this.subscribe("column-
delete",this.deInitializeComponent.bind(this)),this.subscribe("column-
height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e)
{"row"===e.row.type&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,
e.column,e.element))}layoutColumnHeader(e)
{e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent
(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var
t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWid
thUpdated(e)
{e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?
this.table.modules.frozenColumns.leftColumns.forEach((e=>{this.reinitializeColumn(e
)})):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.
frozenColumns.rightColumns.forEach((e=>{this.reinitializeColumn(e)})))}frozenColumn
Offset(e){var t=!1;return
e.modules.frozen&&(t=e.modules.frozen.marginValue,"left"===e.modules.frozen.positio
n?t+=e.getWidth()-3:t&&(t-=3)),!1!==t&&t+"px"}reinitializeColumn(e){var
t=this.frozenColumnOffset(e);e.cells.forEach((n=>{n.modules.resize&&n.modules.resiz
e.handleEl&&(t&&(n.modules.resize.handleEl.style[e.modules.frozen.position]=t),n.el
ement.after(n.modules.resize.handleEl))})),e.modules.resize&&e.modules.resize.handl
eEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.a
fter(e.modules.resize.handleEl))}initializeColumn(e,t,n,r){var
i=this,o=n.definition.resizable,s={},a=n.getLastColumn();if("header"===e&&(s={varia
bleHeight:"textarea"==n.definition.formatter||n.definition.variableHeight}),(!
0===o||o==e)&&this._checkResizability(a)){var
c=document.createElement("span");c.className="tabulator-col-resize-
handle",c.addEventListener("click",(function(e){e.stopPropagation()}));var
u=function(e)
{i.startColumn=n,i.initialNextColumn=i.nextColumn=a.nextColumn(),i._mouseDown(e,a,c
)};c.addEventListener("mousedown",u),c.addEventListener("touchstart",u,{passive:!
0}),c.addEventListener("dblclick",(e=>{var
t=a.getWidth();e.stopPropagation(),a.reinitializeWidth(!0),t!
==a.getWidth()&&(i.dispatch("column-
resized",a),i.table.externalEvents.dispatch("columnResized",a.getComponent()))})),n
.modules.frozen&&(c.style.position="sticky",c.style[n.modules.frozen.position]=this
.frozenColumnOffset(n)),s.handleEl=c,r.parentNode&&n.visible&&r.after(c)}t.modules.
resize=s}deInitializeColumn(e)
{this.deInitializeComponent(e),e.cells.forEach((e=>{this.deInitializeComponent(e)})
)}deInitializeComponent(e){var
t;e.modules.resize&&(t=e.modules.resize.handleEl)&&t.parentElement&&t.parentElement
.removeChild(t)}resizeHandle(e,t)
{e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.heig
ht=t)}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,n){var
r=this;function i(e){var n,i,o=void 0===e.screenX?
e.touches[0].screenX:e.screenX,s=o-r.startX,a=o-
r.latestX;if(r.latestX=o,r.table.rtl&&(s=-s,a=-a),n=t.width==t.minWidth||
t.width==t.maxWidth,t.setWidth(r.startWidth+s),i=t.width==t.minWidth||
t.width==t.maxWidth,a<0&&(r.nextColumn=r.initialNextColumn),r.table.options.resizab
leColumnFit&&r.nextColumn&&(!n||!i)){let
e=r.nextColumn.getWidth();a>0&&e<=r.nextColumn.minWidth&&(r.nextColumn=r.nextColumn
.nextColumn()),r.nextColumn&&r.nextColumn.setWidth(r.nextColumn.getWidth()-
a)}r.table.columnManager.rerenderColumns(!0),!
r.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCell
Heights()}function o(e)
{r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!
1),r.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkC
ellHeights(),document.body.removeEventListener("mouseup",o),document.body.removeEve
ntListener("mousemove",i),n.removeEventListener("touchmove",i),n.removeEventListene
r("touchend",o),r.table.element.classList.remove("tabulator-block-
select"),r.startWidth!
==t.getWidth()&&(r.table.columnManager.verticalAlignHeaders(),r.dispatch("column-
resized",t),r.table.externalEvents.dispatch("columnResized",t.getComponent()))}r.ta
ble.element.classList.add("tabulator-block-
select"),e.stopPropagation(),r.startColumn.modules.edit&&(r.startColumn.modules.edi
t.blocked=!0),r.startX=void 0===e.screenX?
e.touches[0].screenX:e.screenX,r.latestX=r.startX,r.startWidth=t.getWidth(),documen
t.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",o),
n.addEventListener("touchmove",i,{passive:!
0}),n.addEventListener("touchend",o)}}ce.moduleName="resizeColumns";class ue
extends s{constructor(e){super(e),this.startColumn=!1,this.startY=!
1,this.startHeight=!
1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!
1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-
after",this.initializeRow.bind(this))}initializeRow(e){var
t=this,n=e.getElement(),r=document.createElement("div");r.className="tabulator-row-
resize-handle";var i=document.createElement("div");i.className="tabulator-row-
resize-handle prev",r.addEventListener("click",(function(e)
{e.stopPropagation()}));var o=function(n)
{t.startRow=e,t._mouseDown(n,e,r)};r.addEventListener("mousedown",o),r.addEventList
ener("touchstart",o,{passive:!0}),i.addEventListener("click",(function(e)
{e.stopPropagation()}));var s=function(n){var
r=t.table.rowManager.prevDisplayRow(e);r&&(t.startRow=r,t._mouseDown(n,r,i))};i.add
EventListener("mousedown",s),i.addEventListener("touchstart",s,{passive:!
0}),n.appendChild(r),n.appendChild(i)}_mouseDown(e,t,n){var r=this;function i(e)
{t.setHeight(r.startHeight+((void 0===e.screenY?e.touches[0].screenY:e.screenY)-
r.startY))}function o(e)
{document.body.removeEventListener("mouseup",i),document.body.removeEventListener("
mousemove",i),n.removeEventListener("touchmove",i),n.removeEventListener("touchend"
,o),r.table.element.classList.remove("tabulator-block-
select"),r.dispatchExternal("rowResized",t.getComponent())}r.table.element.classLis
t.add("tabulator-block-select"),e.stopPropagation(),r.startY=void 0===e.screenY?
e.touches[0].screenY:e.screenY,r.startHeight=t.getHeight(),document.body.addEventLi
stener("mousemove",i),document.body.addEventListener("mouseup",o),n.addEventListene
r("touchmove",i,{passive:!
0}),n.addEventListener("touchend",o)}}ue.moduleName="resizeRows";class le extends
s{constructor(e){super(e),this.binding=!1,this.visibilityObserver=!
1,this.resizeObserver=!1,this.containerObserver=!
1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0
,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!
1,this.registerTableOption("autoResize",!0)}initialize()
{if(this.table.options.autoResize){var
e,t=this.table;this.tableHeight=t.element.clientHeight,this.tableWidth=t.element.cl
ientWidth,t.element.parentNode&&(this.containerHeight=t.element.parentNode.clientHe
ight,this.containerWidth=t.element.parentNode.clientWidth),"undefined"!=typeof
IntersectionObserver&&"undefined"!=typeof
ResizeObserver&&"virtual"===t.rowManager.getRenderMode()?
(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new
ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&!
t.modules.edit.currentCell){var
n=Math.floor(e[0].contentRect.height),r=Math.floor(e[0].contentRect.width);this.tab
leHeight==n&&this.tableWidth==r||
(this.tableHeight=n,this.tableWidth=r,t.element.parentNode&&(this.containerHeight=t
.element.parentNode.clientHeight,this.containerWidth=t.element.parentNode.clientWid
th),this.redrawTable())}})),this.resizeObserver.observe(t.element),e=window.getComp
utedStyle(t.element),this.table.element.parentNode&&!
this.table.rowManager.fixedHeight&&(e.getPropertyValue("max-height")||
e.getPropertyValue("min-height"))&&(this.containerObserver=new
ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&!
t.modules.edit.currentCell){var
n=Math.floor(e[0].contentRect.height),r=Math.floor(e[0].contentRect.width);this.con
tainerHeight==n&&this.containerWidth==r||
(this.containerHeight=n,this.containerWidth=r,this.tableHeight=t.element.clientHeig
ht,this.tableWidth=t.element.clientWidth),this.redrawTable()}})),this.containerObse
rver.observe(this.table.element.parentNode)),this.subscribe("table-
resize",this.tableResized.bind(this))):(this.binding=function(){(!t.browserMobile||
t.browserMobile&&!t.modules.edit.currentCell)&&(t.columnManager.rerenderColumns(!
0),t.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("tab
le-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver()
{this.visibilityObserver=new
IntersectionObserver((e=>{this.visible=e[0].isIntersecting,this.initialized?
this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):
(this.initialized=!0,this.initialRedraw=!
this.visible)})),this.visibilityObserver.observe(this.table.element)}redrawTable(e)
{this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!
0),this.table.redraw(e))}tableResized()
{this.table.rowManager.redraw()}clearBindings()
{this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserve
r&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.
visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.conta
inerObserver.unobserve(this.table.element.parentNode)}}le.moduleName="resizeTable";
class he extends s{constructor(e)
{super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.coll
apseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!
1,this.registerTableOption("responsiveLayout",!
1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!
0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!
0),this.registerTableOption("responsiveLayoutCollapseFormatter",!
1),this.registerColumnOption("responsive")}initialize()
{this.table.options.responsiveLayout&&(this.subscribe("column-
layout",this.initializeColumn.bind(this)),this.subscribe("column-
show",this.updateColumnVisibility.bind(this)),this.subscribe("column-
hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-
loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-
moved",this.initializeResponsivity.bind(this)),this.subscribe("column-
add",this.initializeResponsivity.bind(this)),this.subscribe("column-
delete",this.initializeResponsivity.bind(this)),this.subscribe("table-
redrawing",this.tableRedraw.bind(this)),"collapse"===this.table.options.responsiveL
ayout&&(this.subscribe("row-data-
changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-
init",this.initializeRow.bind(this)),this.subscribe("row-
layout",this.layoutRow.bind(this))))}tableRedraw(e){-
1===["fitColumns","fitDataStretch"].indexOf(this.layoutMode())&&(e||
this.update())}initializeResponsivity(){var
e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.tabl
e.options.responsiveLayoutCollapseFormatter||
this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayout
CollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.for
Each(((t,n)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsiv
e.visible&&(t.modules.responsive.index=n,e.push(t),t.visible||"collapse"!
==this.mode||
this.hiddenColumns.push(t))})),e=(e=e.reverse()).sort(((e,t)=>t.modules.responsive.
order-e.modules.responsive.order||t.modules.responsive.index-
e.modules.responsive.index)),this.columns=e,"collapse"===this.mode&&this.generateCo
llapsedContent();for(let e of
this.table.columnManager.columnsByIndex)if("responsiveCollapse"==e.definition.forma
tter)
{this.collapseHandleColumn=e;break}this.collapseHandleColumn&&(this.hiddenColumns.l
ength?
this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn
(e){var t=e.getDefinition();e.modules.responsive={order:void 0===t.responsive?
1:t.responsive,visible:!1!==t.visible}}initializeRow(e){var t;"calc"!
==e.type&&((t=document.createElement("div")).classList.add("tabulator-responsive-
collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.
collapseStartOpen||(t.style.display="none"))}layoutRow(e){var
t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLay
out.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!
t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeRes
ponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!
0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedCon
tent(),this.collapseHandleColumn&&!
t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!
0),e.setWidth(e.getWidth()),"collapse"===this.mode&&((t=this.hiddenColumns.indexOf(
e))>-
1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHand
leColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.h
ide())}update(){for(var e=!0;e;){let
t="fitColumns"==this.table.modules.layout.getMode()?
this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),n=(
this.table.options.headerVisible?
this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-
t;if(n<0){let t=this.columns[this.index];t?(this.hideColumn(t),this.index++):e=!
1}else{let t=this.columns[this.index-1];t&&n>0&&n>=t.getWidth()?
(this.showColumn(t),this.index--):e=!1}this.table.rowManager.activeRowsCount||
this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent()
{this.table.rowManager.getDisplayRows().forEach((e=>{this.generateCollapsedRowConte
nt(e)}))}generateCollapsedRowContent(e){var t,n;if(e.modules.responsiveLayout)
{for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild)
;
(n=this.collapseFormatter(this.generateCollapsedRowData(e)))&&t.appendChild(n)}}gen
erateCollapsedRowData(e){var t,n=e.getData(),r=[];return
this.hiddenColumns.forEach((i=>{var
o=i.getFieldValue(n);if(i.definition.title&&i.field)if(i.modules.format&&this.table
.options.responsiveLayoutCollapseUseFormatters){function s(e){e()}t={value:!1,data:
{},getValue:function(){return o},getData:function(){return n},getType:function()
{return"cell"},getElement:function(){return
document.createElement("div")},getRow:function(){return
e.getComponent()},getColumn:function(){return i.getComponent()},getTable:
()=>this.table},r.push({field:i.field,title:i.definition.title,value:i.modules.form
at.formatter.call(this.table.modules.format,t,i.modules.format.params,s)})}else
r.push({field:i.field,title:i.definition.title,value:o})})),r}formatCollapsedData(e
){var t=document.createElement("table");return e.forEach((function(e){var
n,r=document.createElement("tr"),i=document.createElement("td"),o=document.createEl
ement("td"),s=document.createElement("strong");i.appendChild(s),this.langBind("colu
mns|"+e.field,(function(t){s.innerHTML=t||e.title})),e.value instanceof Node?
((n=document.createElement("div")).appendChild(e.value),o.appendChild(n)):o.innerHT
ML=e.value,r.appendChild(i),r.appendChild(o),t.appendChild(r)}),this),Object.keys(e
).length?t:""}}he.moduleName="responsiveLayout";class de extends s{constructor(e)
{super(e),this.selecting=!1,this.lastClickedRow=!
1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.regi
sterTableOption("selectable","highlight"),this.registerTableOption("selectableRange
Mode","drag"),this.registerTableOption("selectableRollingSelection",!
0),this.registerTableOption("selectablePersistence",!
0),this.registerTableOption("selectableCheck",(function(e,t){return!
0})),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.regist
erTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunct
ion("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSel
ectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelected
Data",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select
",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.
deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.t
oggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSe
lected.bind(this))}initialize(){!1!
==this.table.options.selectable&&(this.subscribe("row-
init",this.initializeRow.bind(this)),this.subscribe("row-
deleting",this.rowDeleted.bind(this)),this.subscribe("rows-
wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-
retrieve",this.rowRetrieve.bind(this)),this.table.options.selectable&&!
this.table.options.selectablePersistence&&this.subscribe("data-
refreshing",this.deselectRows.bind(this)))}rowRetrieve(e,t){return"selected"===e?
this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var
t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!
1,this.selectPrev=[],this.selectedRows=[],t&&!0!
==e&&this._rowSelectionChanged()}initializeRow(e){var
t=this,n=e.getElement(),r=function(){setTimeout((function(){t.selecting=!
1}),50),document.body.removeEventListener("mouseup",r)};e.modules.select={selected:
!1},t.checkRowSelectability(e)?(n.classList.add("tabulator-
selectable"),n.classList.remove("tabulator-
unselectable"),t.table.options.selectable&&"highlight"!
=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?
n.addEventListener("click",this.handleComplexRowClick.bind(this,e)):
(n.addEventListener("click",(function(n)
{t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||
t.table._clearSelection(),t.selecting||
t.toggleRow(e)})),n.addEventListener("mousedown",(function(n){if(n.shiftKey)return
t.table._clearSelection(),t.selecting=!
0,t.selectPrev=[],document.body.addEventListener("mouseup",r),document.body.addEven
tListener("keyup",r),t.toggleRow(e),!1})),n.addEventListener("mouseenter",
(function(n)
{t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggl
eRow(t.selectPrev[0]))})),n.addEventListener("mouseout",(function(n)
{t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))}))))):
(n.classList.add("tabulator-unselectable"),n.classList.remove("tabulator-
selectable"))}handleComplexRowClick(e,t){if(t.shiftKey)
{this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var
n=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),r=this.table.rowMan
ager.getDisplayRowIndex(e),i=n<=r?n:r,o=n>=r?
n:r,s=this.table.rowManager.getDisplayRows().slice(0).splice(i,o-i+1);t.ctrlKey||
t.metaKey?(s.forEach((t=>{t!==this.lastClickedRow&&(!
0===this.table.options.selectable||this.isRowSelected(e)||
this.selectedRows.length<this.table.options.selectable)&&this.toggleRow(t)})),this.
lastClickedRow=e):(this.deselectRows(void 0,!0),!0!
==this.table.options.selectable&&s.length>this.table.options.selectable&&(s=s.slice
(0,this.table.options.selectable)),this.selectRows(s)),this.table._clearSelection()
}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):
(this.deselectRows(void 0,!
0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return!(!
e||"row"!
==e.type)&&this.table.options.selectableCheck.call(this.table,e.getComponent())}tog
gleRow(e)
{this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?
this._deselectRow(e):this._selectRow(e))}selectRows(e){var t,n,r=[];switch(typeof
e){case"undefined":t=this.table.rowManager.rows;break;case"string":
(t=this.table.rowManager.findRow(e))||
(t=this.table.rowManager.getRows(e));break;default:t=e}Array.isArray(t)?
t.length&&(t.forEach((e=>{(n=this._selectRow(e,!0,!
0))&&r.push(n)})),this._rowSelectionChanged(!1,r)):t&&this._selectRow(t,!1,!
0)}_selectRow(e,t,n){if(!isNaN(this.table.options.selectable)&&!0!
==this.table.options.selectable&&!
n&&this.selectedRows.length>=this.table.options.selectable){if(!
this.table.options.selectableRollingSelection)return!
1;this._deselectRow(this.selectedRows[0])}var
r=this.table.rowManager.findRow(e);if(r){if(-1==this.selectedRows.indexOf(r))return
r.getElement().classList.add("tabulator-selected"),r.modules.select||
(r.modules.select={}),r.modules.select.selected=!
0,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!
0),this.selectedRows.push(r),this.table.options.dataTreeSelectPropagate&&this.child
RowSelection(r,!
0),this.dispatchExternal("rowSelected",r.getComponent()),this._rowSelectionChanged(
t,r),r}else t||console.warn("Selection Error - No such row found, ignoring
selection:"+e)}isRowSelected(e){return-1!
==this.selectedRows.indexOf(e)}deselectRows(e,t){var n,r,i=[];switch(typeof e)
{case"undefined":n=Object.assign([],this.selectedRows);break;case"string":
(n=this.table.rowManager.findRow(e))||
(n=this.table.rowManager.getRows(e));break;default:n=e}Array.isArray(n)?
n.length&&(n.forEach((e=>{(r=this._deselectRow(e,!0,!
0))&&i.push(r)})),this._rowSelectionChanged(t,[],i)):n&&this._deselectRow(n,t,!
0)}_deselectRow(e,t){var n,r,i=this,o=i.table.rowManager.findRow(e);if(o)
{if((n=i.selectedRows.findIndex((function(e){return e==o})))>-
1)return(r=o.getElement())&&r.classList.remove("tabulator-
selected"),o.modules.select||(o.modules.select={}),o.modules.select.selected=!
1,o.modules.select.checkboxEl&&(o.modules.select.checkboxEl.checked=!
1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.chil
dRowSelection(o,!
1),this.dispatchExternal("rowDeselected",o.getComponent()),i._rowSelectionChanged(t
,void 0,o),o}else t||console.warn("Deselection Error - No such row found, ignoring
selection:"+e)}getSelectedData(){var e=[];return
this.selectedRows.forEach((function(t){e.push(t.getData())})),e}getSelectedRows()
{var e=[];return this.selectedRows.forEach((function(t)
{e.push(t.getComponent())})),e}_rowSelectionChanged(e,t=[],n=[])
{this.headerCheckboxElement&&(0===this.selectedRows.length?
(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!
1):this.table.rowManager.rows.length===this.selectedRows.length?
(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!
1):(this.headerCheckboxElement.indeterminate=!
0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||
(t=[t]),t=t.map((e=>e.getComponent())),Array.isArray(n)||
(n=[n]),n=n.map((e=>e.getComponent())),this.dispatchExternal("rowSelectionChanged",
this.getSelectedData(),this.getSelectedRows(),t,n))}registerRowSelectCheckbox(e,t)
{e._row.modules.select||
(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectC
heckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var
n=this.table.modules.dataTree.getChildren(e,!0);if(t)for(let e of
n)this._selectRow(e,!0);else for(let e of n)this._deselectRow(e,!0)}}function
fe(e,t,n,r,i,o,s){var a=window.DateTime||luxon.DateTime,c=s.format||"dd/MM/yyyy
HH:mm:ss",u=s.alignEmptyValues,l=0;if(void 0!==a){if(a.isDateTime(e)||(e="iso"===c?
a.fromISO(String(e)):a.fromFormat(String(e),c)),a.isDateTime(t)||(t="iso"===c?
a.fromISO(String(t)):a.fromFormat(
String(t),c)),e.isValid){if(t.isValid)return e-t;l=1}else l=t.isValid?-
1:0;return("top"===u&&"desc"===o||"bottom"===u&&"asc"===o)&&(l*=-
1),l}console.error("Sort Error - 'datetime' sorter is dependant on
luxon.js")}de.moduleName="selectRow";var pe={number:function(e,t,n,r,i,o,s){var
a=s.alignEmptyValues,c=s.decimalSeparator,u=s.thousandSeparator,l=0;if(e=String(e),
t=String(t),u&&(e=e.split(u).join(""),t=t.split(u).join("")),c&&(e=e.split(c).join(
"."),t=t.split(c).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))l=isNaN(t)?
0:-1;else{if(!isNaN(t))return e-
t;l=1}return("top"===a&&"desc"===o||"bottom"===a&&"asc"===o)&&(l*=-
1),l},string:function(e,t,n,r,i,o,s){var a,c=s.alignEmptyValues,u=0;if(e){if(t)
{switch(typeof s.locale)
{case"boolean":s.locale&&(a=this.langLocale());break;case"string":a=s.locale}return
String(e).toLowerCase().localeCompare(String(t).toLowerCase(),a)}u=1}else u=t?-
1:0;return("top"===c&&"desc"===o||"bottom"===c&&"asc"===o)&&(u*=-
1),u},date:function(e,t,n,r,i,o,s){return
s.format||(s.format="dd/MM/yyyy"),fe.call(this,e,t,n,r,i,o,s)},time:function(e,t,n,
r,i,o,s){return s.format||
(s.format="HH:mm"),fe.call(this,e,t,n,r,i,o,s)},datetime:fe,boolean:function(e,t,n,
r,i,o,s){return(!0===e||"true"===e||"True"===e||1===e?1:0)-(!
0===t||"true"===t||"True"===t||1===t?1:0)},array:function(e,t,n,r,i,o,s){var
a=s.type||"length",c=s.alignEmptyValues,u=0;function l(e){var t;switch(a)
{case"length":t=e.length;break;case"sum":t=e.reduce((function(e,t){return
e+t}));break;case"max":t=Math.max.apply(null,e);break;case"min":t=Math.min.apply(nu
ll,e);break;case"avg":t=e.reduce((function(e,t){return e+t}))/e.length}return
t}if(Array.isArray(e)){if(Array.isArray(t))return l(t)-l(e);u=1}else
u=Array.isArray(t)?-
1:0;return("top"===c&&"desc"===o||"bottom"===c&&"asc"===o)&&(u*=-
1),u},exists:function(e,t,n,r,i,o,s){return(void 0===e?0:1)-(void 0===t?
0:1)},alphanum:function(e,t,n,r,i,o,s){var a,c,u,l,h,d=0,f=/(\d+)|(\D+)/g,p=/\
d/,g=s.alignEmptyValues,m=0;if(e||0===e){if(t||0===t)
{if(isFinite(e)&&isFinite(t))return e-
t;if((a=String(e).toLowerCase())===(c=String(t).toLowerCase()))return 0;if(!
p.test(a)||!p.test(c))return a>c?1:-
1;for(a=a.match(f),c=c.match(f),h=a.length>c.length?
c.length:a.length;d<h;)if((u=a[d])!==(l=c[d++]))return isFinite(u)&&isFinite(l)?
("0"===u.charAt(0)&&(u="."+u),"0"===l.charAt(0)&&(l="."+l),u-l):u>l?1:-1;return
a.length>c.length}m=1}else m=t||0===t?-
1:0;return("top"===g&&"desc"===o||"bottom"===g&&"asc"===o)&&(m*=-1),m}};class ge
extends s{constructor(e){super(e),this.sortList=[],this.changed=!
1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSor
t",!1),this.registerTableOption("columnHeaderSortMulti",!
0),this.registerTableOption("sortOrderReverse",!
1),this.registerTableOption("headerSortElement","<div
class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement",
"header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterPara
ms"),this.registerColumnOption("headerSort",!
0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("he
aderSortTristate")}initialize(){this.subscribe("column-
layout",this.initializeColumn.bind(this)),this.subscribe("table-
built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20
),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTa
bleFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clear
Sort",this.clearSort.bind(this)),"remote"===this.table.options.sortMode&&this.subsc
ribe("data-params",this.remoteSortParams.bind(this))}tableBuilt()
{this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remot
eSortParams(e,t,n,r){var i=this.getSort();return i.forEach((e=>{delete
e.column})),r.sort=i,r}userSetSort(e,t)
{this.setSort(e,t),this.refreshSort()}clearSort()
{this.clear(),this.refreshSort()}initializeColumn(e){var t,n,r=!1;switch(typeof
e.definition.sorter){case"string":ge.sorters[e.definition.sorter]?
r=ge.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found:
",e.definition.sorter);break;case"function":r=e.definition.sorter}if(e.modules.sort
={sorter:r,dir:"none",params:e.definition.sorterParams||
{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.head
erSortTristate},!1!==e.definition.headerSort)
{switch((t=e.getElement()).classList.add("tabulator-sortable"),
(n=document.createElement("div")).classList.add("tabulator-col-
sorter"),"icon"===this.table.options.headerSortClickElement?
n.classList.add("tabulator-col-sorter-element"):t.classList.add("tabulator-col-
sorter-element"),this.table.options.headerSortElement)
{case"function":break;case"object":n.appendChild(this.table.options.headerSortEleme
nt);break;default:n.innerHTML=this.table.options.headerSortElement}e.titleHolderEle
ment.appendChild(n),e.modules.sort.element=n,this.setColumnHeaderSortIcon(e,"none")
,("icon"===this.table.options.headerSortClickElement?n:t).addEventListener("click",
(t=>{var n="",r=[],i=!1;if(e.modules.sort)
{if(e.modules.sort.tristate)n="none"==e.modules.sort.dir?
e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.
modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir)
{case"asc":n="desc";break;case"desc":n="asc";break;default:n=e.modules.sort.startin
gDir}this.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?
(i=(r=this.getSort()).findIndex((t=>t.field===e.getField())),i>-1?
(r[i].dir=n,i=r.splice(i,1)[0],"none"!=n&&r.push(i)):"none"!
=n&&r.push({column:e,dir:n}),this.setSort(r)):"none"==n?
this.clear():this.setSort(e,n),this.refreshSort()}}))}}refreshSort()
{"remote"===this.table.options.sortMode?this.reloadData(null,!1,!
1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!
1,e}getSort(){var e=[];return this.sortList.forEach((function(t)
{t.column&&e.push({column:t.column.getComponent(),field:t.column.getField(),dir:t.d
ir})})),e}setSort(e,t){var n=this,r=[];Array.isArray(e)||
(e=[{column:e,dir:t}]),e.forEach((function(e){var t;
(t=n.table.columnManager.findColumn(e.column))?(e.column=t,r.push(e),n.changed=!
0):console.warn("Sort Warning - Sort field does not exist and is being ignored:
",e.column)})),n.sortList=r,this.dispatch("sort-changed")}clear()
{this.setSort([])}findSorter(e){var
t,n=this.table.rowManager.activeRows[0],r="string";if(n&&(n=n.getData(),e.getField(
)))switch(typeof(t=e.getFieldValue(n)))
{case"undefined":r="string";break;case"boolean":r="boolean";break;default:isNaN(t)|
|""===t?t.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/
i)&&(r="alphanum"):r="number"}return ge.sorters[r]}sort(e){var
t=this,n=this.table.options.sortOrderReverse?
t.sortList.slice().reverse():t.sortList,r=[],i=[];return
this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",t.getSo
rt()),t.clearColumnHeaders(),"remote"!==this.table.options.sortMode?
(n.forEach((function(e,n){var i;e.column&&((i=e.column.modules.sort)&&(i.sorter||
(i.sorter=t.findSorter(e.column)),e.params="function"==typeof i.params?
i.params(e.column.getComponent(),e.dir):i.params,r.push(e)),t.setColumnHeader(e.col
umn,e.dir))})),r.length&&t._sortItems(e,r)):n.forEach((function(e,n)
{t.setColumnHeader(e.column,e.dir)})),this.subscribedExternal("dataSorted")&&(e.for
Each((e=>{i.push(e.getComponent())})),this.dispatchExternal("dataSorted",t.getSort(
),i)),e}clearColumnHeaders()
{this.table.columnManager.getRealColumns().forEach((e=>{e.modules.sort&&(e.modules.
sort.dir="none",e.getElement().setAttribute("aria-
sort","none"),this.setColumnHeaderSortIcon(e,"none"))}))}setColumnHeader(e,t)
{e.modules.sort.dir=t,e.getElement().setAttribute("aria-
sort","asc"===t?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColu
mnHeaderSortIcon(e,t){var
n,r=e.modules.sort.element;if(e.definition.headerSort&&"function"==typeof
this.table.options.headerSortElement)
{for(;r.firstChild;)r.removeChild(r.firstChild);"object"==typeof(n=this.table.optio
ns.headerSortElement.call(this.table,e.getComponent(),t))?
r.appendChild(n):r.innerHTML=n}}_sortItems(e,t){var n=t.length-
1;e.sort(((e,r)=>{for(var i,o=n;o>=0;o--){let n=t[o];if(0!
==(i=this._sortRow(e,r,n.column,n.dir,n.params)))break}return
i}))}_sortRow(e,t,n,r,i){var o,s,a="asc"==r?e:t,c="asc"==r?t:e;return e=void 0!
==(e=n.getFieldValue(a.getData()))?e:"",t=void 0!
==(t=n.getFieldValue(c.getData()))?
t:"",o=a.getComponent(),s=c.getComponent(),n.modules.sort.sorter.call(this,e,t,o,s,
n.getComponent(),r,i)}}ge.moduleName="sort",ge.sorters=pe;class me extends
s{constructor(e)
{super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,
this.popupInstance=null,this.registerTableOption("tooltipGenerationMode",void
0),this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"
),this.registerColumnOption("headerTooltip")}initialize()
{this.deprecatedOptionsCheck(),this.subscribe("column-
init",this.initializeColumn.bind(this))}deprecatedOptionsCheck()
{this.deprecationCheckMsg("tooltipGenerationMode","This option is no longer needed
as tooltips are always generated on hover now")}initializeColumn(e)
{e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!
0,this.subscribe("column-
mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-
mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!
this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-
mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-
mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,n){var
r="tooltip"===e?
n.column.definition.tooltip:n.definition.headerTooltip;r&&(this.clearPopup(),this.t
imeout=setTimeout(this.loadTooltip.bind(this,t,n,r),this.table.options.tooltipDelay
))}mouseoutCheck(e,t,n){this.popupInstance||this.clearPopup()}clearPopup(e,t,n)
{clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstanc
e.hide()}loadTooltip(e,t,n){var
r,i,o;"function"==typeof n&&(n=n(e,t.getComponent(),(function(e){i=e}))),n
instanceof HTMLElement?r=n:(r=document.createElement("div"),!0===n&&(t instanceof
v?n=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,
(e=>{r.innerHTML=n=e||t.definition.title})):n=t.definition.title),r.innerHTML=n),
(n||0===n||!1===n)&&(r.classList.add("tabulator-
tooltip"),r.addEventListener("mousemove",
(e=>e.preventDefault())),this.popupInstance=this.popup(r),"function"==typeof
i&&this.popupInstance.renderCallback(i),o=this.popupInstance.containerEventCoords(e
),this.popupInstance.show(o.x+15,o.y+15).hideOnBlur((()=>{this.dispatchExternal("To
oltipClosed",t.getComponent()),this.popupInstance=null})),this.dispatchExternal("To
oltipOpened",t.getComponent()))}}me.moduleName="tooltip";var
ve={integer:function(e,t,n){return""===t||null==t||(t=Number(t),!
isNaN(t)&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,n){return""===t||
null==t||(t=Number(t),!isNaN(t)&&isFinite(t)&&t%1!=0)},numeric:function(e,t,n)
{return""===t||null==t||!isNaN(t)},string:function(e,t,n){return""===t||null==t||
isNaN(t)},max:function(e,t,n){return""===t||null==t||
parseFloat(t)<=n},min:function(e,t,n){return""===t||null==t||
parseFloat(t)>=n},starts:function(e,t,n){return""===t||null==t||
String(t).toLowerCase().startsWith(String(n).toLowerCase())},ends:function(e,t,n)
{return""===t||null==t||
String(t).toLowerCase().endsWith(String(n).toLowerCase())},minLength:function(e,t,n
){return""===t||null==t||String(t).length>=n},maxLength:function(e,t,n)
{return""===t||null==t||String(t).length<=n},in:function(e,t,n){return""===t||
null==t||("string"==typeof n&&(n=n.split("|")),n.indexOf(t)>-
1)},regex:function(e,t,n){return""===t||null==t||new
RegExp(n).test(t)},unique:function(e,t,n){if(""===t||null==t)return!0;var r=!
0,i=e.getData(),o=e.getColumn()._getSelf();return
this.table.rowManager.rows.forEach((function(e){var n=e.getData();n!
==i&&t==o.getFieldValue(n)&&(r=!1)})),r},required:function(e,t,n){return""!
==t&&null!=t}};class be extends s{constructor(e)
{super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"
),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCell
s",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation
",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",th
is.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.ce
llIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.
clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.c
ellValidate.bind(this)),this.registerComponentFunction("column","validate",this.col
umnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowVal
idate.bind(this))}initialize(){this.subscribe("cell-
delete",this.clearValidation.bind(this)),this.subscribe("column-
layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-
success",this.editValidate.bind(this)),this.subscribe("edit-editor-
clear",this.editorClear.bind(this)),this.subscribe("edit-edited-
clear",this.editedClear.bind(this))}editValidate(e,t,n){var
r="manual"===this.table.options.validationMode||
this.validate(e.column.modules.validate,e,t);return!0!
==r&&setTimeout((()=>{e.getElement().classList.add("tabulator-validation-
fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,r)})),r}editorCl
ear(e,t)
{t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove
("tabulator-validation-fail")}editedClear(e)
{e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return
e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return
this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var
t=[];return e.cells.forEach((e=>{!0!
==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||t}rowValidate(e){var
t=[];return e.cells.forEach((e=>{!0!
==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||
t}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||
(e=[e]),e.forEach((e=>{this.clearValidation(e._getSelf())}))}userValidate(e){var
t=[];return this.table.rowManager.rows.forEach((e=>{var
n=(e=e.getComponent()).validate();!0!==n&&(t=t.concat(n))})),!t.length||
t}initializeColumnCheck(e){void 0!
==e.definition.validator&&this.initializeColumn(e)}initializeColumn(e){var
t,n=this,r=[];e.definition.validator&&(Array.isArray(e.definition.validator)?
e.definition.validator.forEach((e=>{(t=n._extractValidator(e))&&r.push(t)})):
(t=this._extractValidator(e.definition.validator))&&r.push(t),e.modules.validate=!!
r.length&&r)}_extractValidator(e){var t,n,r;switch(typeof e)
{case"string":return(r=e.indexOf(":"))>-1?
(t=e.substring(0,r),n=e.substring(r+1)):t=e,this._buildValidator(t,n);case"function
":return this._buildValidator(e);case"object":return
this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var
n="function"==typeof e?e:be.validators[e];return n?{type:"function"==typeof
e?"function":e,func:n,params:t}:(console.warn("Validator Setup Error - No matching
validator found:",e),!1)}validate(e,t,n){var
r=this,i=[],o=this.invalidCells.indexOf(t);return
e&&e.forEach((e=>{e.func.call(r,t.getComponent(),n,e.params)||
i.push({type:e.type,parameters:e.params})})),t.modules.validate||
(t.modules.validate={}),i.length?(t.modules.validate.invalid=i,"manual"!
==this.table.options.validationMode&&t.getElement().classList.add("tabulator-
validation-fail"),-1==o&&this.invalidCells.push(t)):(t.modules.validate.invalid=!
1,t.getElement().classList.remove("tabulator-validation-fail"),o>-
1&&this.invalidCells.splice(o,1)),!i.length||i}getInvalidCells(){var e=[];return
this.invalidCells.forEach((t=>{e.push(t.getComponent())})),e}clearValidation(e){var
t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove(
"tabulator-validation-fail"),e.modules.validate.invalid=!1,
(t=this.invalidCells.indexOf(e))>-
1&&this.invalidCells.splice(t,1))}}be.moduleName="validate",be.validators=ve;var
ye=Object.freeze({__proto__:null,AccessorModule:a,AjaxModule:f,ClipboardModule:p,Co
lumnCalcsModule:T,DataTreeModule:A,DownloadModule:O,EditModule:D,ExportModule:M,Fil
terModule:L,FormatModule:j,FrozenColumnsModule:B,FrozenRowsModule:U,GroupRowsModule
:z,HistoryModule:V,HtmlTableImportModule:W,ImportModule:K,InteractionModule:Y,Keybi
ndingsModule:
$,MenuModule:Q,MoveColumnsModule:X,MoveRowsModule:Z,MutatorModule:J,PageModule:te,P
ersistenceModule:ie,PopupModule:oe,PrintModule:se,ReactiveDataModule:ae,ResizeColum
nsModule:ce,ResizeRowsModule:ue,ResizeTableModule:le,ResponsiveLayoutModule:he,Sele
ctRowModule:de,SortModule:ge,TooltipModule:me,ValidateModule:be});class
we{constructor(e,t,n={})
{this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},n)}register(e
,t){this.registeredDefaults[e]=t}generate(e,t={}){var
n=Object.assign({},this.registeredDefaults),r=this.table.options.debugInvalidOption
s||!0===t.debugInvalidOptions;Object.assign(n,e);for(let e in
t)n.hasOwnProperty(e)||(r&&console.warn("Invalid "+this.msgType+"
option:",e),n[e]=t.key);for(let e in n)e in t?n[e]=t[e]:Array.isArray(n[e])?
n[e]=Object.assign([],n[e]):"object"==typeof n[e]&&null!==n[e]?
n[e]=Object.assign({},n[e]):void 0===n[e]&&delete n[e];return n}}class _e extends
r{constructor(e)
{super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.column
Manager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="
fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e)
{}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t)
{}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t)
{}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e)
{return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var
n=e.getElement();t%2?(n.classList.add("tabulator-row-
even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-
odd"),n.classList.remove("tabulator-row-even"))}clear()
{this.clearRows(),this.clearColumns()}render()
{this.renderRows(),this.renderColumns()}rerender(e)
{this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,n){var
r=this.rows().indexOf(e),o=e.getElement(),s=0;return new Promise(((a,c)=>{if(r>-1)
{if(void 0===n&&(n=this.table.options.scrollToRowIfVisible),!
n&&i.elVisible(o)&&(s=i.elOffset(o).top-
i.elOffset(this.elementVertical).top)>0&&s<this.elementVertical.clientHeight-
o.offsetHeight)return a(),!1;switch(void
0===t&&(t=this.table.options.scrollToRowPosition),"nearest"===t&&(t=this.scrollToRo
wNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t)
{case"middle":case"center":this.elementVertical.scrollHeight-
this.elementVertical.scrollTop==this.elementVertical.clientHeight?
this.elementVertical.scrollTop=this.elementVertical.scrollTop+(o.offsetTop-
this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-o.offsetTop)/
2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-
this.elementVertical.clientHeight/
2;break;case"bottom":this.elementVertical.scrollHeight-
this.elementVertical.scrollTop==this.elementVertical.clientHeight?
this.elementVertical.scrollTop=this.elementVertical.scrollTop-
(this.elementVertical.scrollHeight-o.offsetTop)
+o.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-
this.elementVertical.clientHeight+o.offsetHeight;break;case"top":this.elementVertic
al.scrollTop=o.offsetTop}a()}else console.warn("Scroll Error - Row not
visible"),c("Scroll Error - Row not visible")}))}}class Ee extends
_e{constructor(e){super(e)}renderRowCells(e,t){const
n=document.createDocumentFragment();e.cells.forEach((e=>{n.appendChild(e.getElement
())})),e.element.appendChild(n),t||
e.cells.forEach((e=>{e.cellRendered()}))}reinitializeColumnWidths(e)
{e.forEach((function(e){e.reinitializeWidth()}))}}class Se extends
_e{constructor(e)
{super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0
,this.vDomScrollPosRight=0,th
is.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,thi
s.visibleRows=null,this.initialized=!1,this.isFitData=!
1,this.columns=[]}initialize()
{this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibility
Check(){"fitDataTable"==this.options("layout")&&console.warn("Horizontal Virtual
DOM is not compatible with fitDataTable layout
mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is
not compatible with responsive
columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not
currently compatible with RTL text direction")}layoutCheck()
{this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen()
{this.subscribe("scroll-
vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-
refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache()
{this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t)
{this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-
(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var
e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(
(t=>{if(t.visible){var
n=t.getWidth();n>e&&(e=n)}})),this.windowBuffer=2*e}rerenderColumns(e,t){var
n={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},r=0;e&&!
this.initialized||
(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLe
ft,this.vDomScrollPosLeft=this.scrollLeft-
this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clie
ntWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach((e=>{var
t,n={};e.visible&&(e.modules.frozen||
(t=e.getWidth(),n.leftPos=r,n.rightPos=r+t,n.width=t,this.isFitData&&(n.fitDataChec
k=!e.modules.vdomHoz||
e.modules.vdomHoz.fitDataCheck),r+t>this.vDomScrollPosLeft&&r<this.vDomScrollPosRig
ht?(-
1==this.leftCol&&(this.leftCol=this.columns.length,this.vDomPadLeft=r),this.rightCo
l=this.columns.length):-1!
==this.leftCol&&(this.vDomPadRight+=t),this.columns.push(e),e.modules.vdomHoz=n,r+=
t))})),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.
style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||e&&!
this.reinitChanged(n)||
this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowC
ells(e){if(this.initialized)this.initializeRow(e);else{const
t=document.createDocumentFragment();e.cells.forEach((e=>{t.appendChild(e.getElement
())})),e.element.appendChild(t),e.cells.forEach((e=>{e.cellRendered()}))}}rerenderR
owCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let
e=this.leftCol;e<=this.rightCol;e+
+)this.columns[e].reinitializeWidth()}deinitialize(){this.initialized=!1}clear()
{this.columns=[],this.leftCol=-
1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLe
ft=0,this.vDomPadRight=0}dataChange(){var e,t,n=!1;if(this.isFitData)
{if(this.table.columnManager.columnsByIndex.forEach((e=>{!
e.definition.width&&e.visible&&(n=!
0)})),n&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=th
is.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,e=this.chain("rows
-sample",[1],[],(()=>this.table.rowManager.getDisplayRows()))[0]))
{t=e.getElement(),e.generateCells(),this.tableElement.appendChild(t);for(let
n=0;n<e.cells.length;n++){let
r=e.cells[n];t.appendChild(r.getElement()),r.column.reinitializeWidth()}t.parentNod
e.removeChild(t),this.rerenderColumns(!1,!
0)}}else"fitColumns"===this.options("layout")&&(this.layoutRefresh(),this.rerenderC
olumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!
==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol||
(e.cols.forEach(((e,n)=>{e!==this.columns[n]&&(t=!1)})),!t)}reinitializeRows(){var
e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter((t=>!
e.includes(t)));e.forEach((e=>{this.reinitializeRow(e,!
0)})),t.forEach((e=>{e.deinitialize()}))}getVisibleRows(){return this.visibleRows||
(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e
)
{this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer
/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):
(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,n){for(let
r=e;r<t;r++){let
e=this.columns[r];e.modules.vdomHoz.leftPos+=n,e.modules.vdomHoz.rightPos+=n}}addCo
lRight(){for(var e=!1,t=!0;t;){let
n=this.columns[this.rightCol+1];n&&n.modules.vdomHoz.leftPos<=this.vDomScrollPosRig
ht?(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var
t=e.getCell(n);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[th
is.rightCol]).getElement().nextSibling),t.cellRendered()}})),this.fitDataColActualW
idthCheck(n),this.rightCol++,this.getVisibleRows().forEach((e=>{"group"!
==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)})),this.rightCol>=this.columns
.length-1?this.vDomPadRight=0:this.vDomPadRight-=n.getWidth()):t=!
1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft()
{for(var e=!1,t=!0;t;){let n=this.columns[this.leftCol-
1];if(n)if(n.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!
0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var
t=e.getCell(n);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[th
is.leftCol]).getElement()),t.cellRendered()}})),this.leftCol--,this.getVisibleRows(
).forEach((e=>{"group"!
==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)})),this.leftCol<=0?
this.vDomPadLeft=0:this.vDomPadLeft-=n.getWidth();let
t=this.fitDataColActualWidthCheck(n);t&&(this.scrollLeft=this.elementVertical.scrol
lLeft=this.elementVertical.scrollLeft+t,this.vDomPadRight-=t)}else t=!1;else t=!
1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight()
{for(var e=!1,t=!0;t;){let
n=this.columns[this.rightCol];n&&n.modules.vdomHoz.leftPos>this.vDomScrollPosRight?
(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var
t=e.getCell(n);try{e.getElement().removeChild(t.getElement())}catch(e)
{console.warn("Could not
removeColRight",e.message)}}})),this.vDomPadRight+=n.getWidth(),this.rightCol--,thi
s.getVisibleRows().forEach((e=>{"group"!
==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)}))):t=!
1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft()
{for(var e=!1,t=!0;t;){let
n=this.columns[this.leftCol];n&&n.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?
(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var
t=e.getCell(n);try{e.getElement().removeChild(t.getElement())}catch(e)
{console.warn("Could not
removeColLeft",e.message)}}})),this.vDomPadLeft+=n.getWidth(),this.leftCol+
+,this.getVisibleRows().forEach((e=>{"group"!
==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)}))):t=!
1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWi
dthCheck(e){var t,n;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),
(n=(t=e.getWidth())-
e.modules.vdomHoz.width)&&(e.modules.vdomHoz.rightPos+=n,e.modules.vdomHoz.width=t,
this.colPositionAdjust(this.columns.indexOf(e)
+1,this.columns.length,n)),e.modules.vdomHoz.fitDataCheck=!1),n}initializeRow(e)
{if("group"!==e.type)
{e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules
.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach((t=>{this.appe
ndCell(e,t)}));for(let t=this.leftCol;t<=this.rightCol;t+
+)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.m
odules.frozenColumns.rightColumns.forEach((t=>{this.appendCell(e,t)}))}}appendCell(
e,t){if(t&&t.visible){let
n=e.getCell(t);e.getElement().appendChild(n.getElement()),n.cellRendered()}}reiniti
alizeRow(e,t){if("group"!==e.type&&(t||!e.modules.vdomHoz||
e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!
==this.rightCol)){for(var
n=e.getElement();n.firstChild;)n.removeChild(n.firstChild);this.initializeRow(e)}}}
class Te extends r{constructor(e){super(e),this.blockHozScrollEvent=!
1,this.headersElement=null,this.contentsElement=null,this.element=null,this.columns
=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsLis
t=new we(this.table,"column definition",y),this.redrawBlock=!
1,this.redrawBlockUpdate=null,this.renderer=null}initialize()
{this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.con
tentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderEleme
nt(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.fir
stChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),th
is.initializeScrollWheelWatcher(),this.subscribe("scroll-
horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-
vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e)
{this.table.rtl?
this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e
+"px"}initializeRenderer(){var e,t={virtual:Se,basic:Ee};(e="string"==typeof
this.table.options.renderHorizontal?
t[this.table.options.renderHorizontal]:this.table.options.renderHorizontal)?
(this.renderer=new
e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.er
ror("Unable to find matching
renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var
e=document.createElement("div");return e.classList.add("tabulator-header-
contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||
e.classList.add("tabulator-header-hidden"),e}getElement(){return
this.element}getContentsElement(){return this.contentsElement}getHeadersElement()
{return this.headersElement}scrollHorizontal(e)
{this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns
(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",
(e=>{var
t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrol
lHorizontal(t),this.table.columnManager.scrollHorizontal(t))}))}generateColumnsFrom
RowData(e){var t,n,r=[],i=this.table.options.autoColumnsDefinitions;if(e&&e.length)
{for(var o in t=e[0]){let e={field:o,title:o},i=t[o];switch(typeof i)
{case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Ar
ray.isArray(i)?"array":"string";break;default:n=isNaN(i)||""===i?i.match(/((^[0-9]+
[a-z]+)|(^[a-z]+[0-9]+))+$/
i)?"alphanum":"string":"number"}e.sorter=n,r.push(e)}if(i)switch(typeof i)
{case"function":this.table.options.columns=i.call(this.table,r);break;case"object":
Array.isArray(i)?r.forEach((e=>{var
t=i.find((t=>t.field===e.field));t&&Object.assign(e,t)})):r.forEach((e=>{i[e.field]
&&Object.assign(e,i[e.field])})),this.table.options.columns=r}else
this.table.options.columns=r;this.setColumns(this.table.options.columns)}}setColumn
s(e,t)
{for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersE
lement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},th
is.dispatch("columns-
loading"),e.forEach(((e,t)=>{this._addColumn(e)})),this._reIndexColumns(),this.disp
atch("columns-loaded"),this.rerenderColumns(!1,!0),this.redraw(!
0)}_addColumn(e,t,n){var r=new w(e,this),i=r.getElement(),o=n?
this.findColumnIndex(n):n;if(n&&o>-1){var
s=n.getTopColumn(),a=this.columns.indexOf(s),c=s.getElement();t?
(this.columns.splice(a,0,r),c.parentNode.insertBefore(i,c)):
(this.columns.splice(a+1,0,r),c.parentNode.insertBefore(i,c.nextSibling))}else t?
(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.heade
rsElement.firstChild)):
(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return
r.columnRendered(),r}registerColumnField(e)
{e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosi
tion(e){this.columnsByIndex.push(e)}_reIndexColumns()
{this.columnsByIndex=[],this.columns.forEach((function(e)
{e.reRegisterPosition()}))}verticalAlignHeaders(){var e=0;this.redrawBlock||
(this.headersElement.style.height="",this.columns.forEach((e=>{e.clearVerticalAlign
()})),this.columns.forEach((t=>{var
n=t.getHeight();n>e&&(e=n)})),this.headersElement.style.height=e+"px",this.columns.
forEach((t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)})),this.ta
ble.rowManager.adjustTableSize())}findColumn(e){var t;return"object"!=typeof e?
this.columnsByField[e]||!1:e instanceof w?e:e instanceof b?e._getSelf()||!
1:"undefined"!=typeof HTMLElement&&e instanceof
HTMLElement&&(t=[],this.columns.forEach((e=>{t.push(e),t=t.concat(e.getColumns(!
0))})),t.find((t=>t.element===e))||!1)}getColumnByField(e){return
this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return
Object.keys(this.columnsByField).forEach((n=>{n.split(".")
[0]===e&&t.push(this.columnsByField[n])})),t}getColumnByIndex(e){return
this.columnsByIndex[e]}getFirstVisibleColumn(){var
e=this.columnsByIndex.findIndex((e=>e.visible));return e>-
1&&this.columnsByIndex[e]}getColumns(){return this.columns}findColumnIndex(e)
{return this.columnsByIndex.findIndex((t=>e===t))}getRealColumns(){return
this.columnsByIndex}traverse(e)
{this.columnsByIndex.forEach(((t,n)=>{e(t,n)}))}getDefinitions(e){var t=[];return
this.columnsByIndex.forEach((n=>{(!e||
e&&n.visible)&&t.push(n.getDefinition())})),t}getDefinitionTree(){var e=[];return
this.columns.forEach((t=>{e.push(t.getDefinition(!0))})),e}getComponents(e){var
t=[];return(e?
this.columns:this.columnsByIndex).forEach((e=>{t.push(e.getComponent())})),t}getWid
th(){var e=0;return
this.columnsByIndex.forEach((t=>{t.visible&&(e+=t.getWidth())})),e}moveColumn(e,t,n
)
{t.element.parentNode.insertBefore(e.element,t.element),n&&t.element.parentNode.ins
ertBefore(t.element,e.element),this.moveColumnActual(e,t,n),this.verticalAlignHeade
rs(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,n){e.parent.isGroup?
this._moveColumnInArray(e.parent.columns,e,t,n):this._moveColumnInArray(this.column
s,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!
0),this.rerenderColumns(!0),this.dispatch("column-
moved",e,t,n),this.subscribedExternal("columnMoved")&&this.dispatchExternal("column
Moved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArra
y(e,t,n,r,i){var o,s=e.indexOf(t);s>-1&&(e.splice(s,1),(o=e.indexOf(n))>-1?
r&&(o+=1):o=s,e.splice(o,0,t),i&&(this.chain("column-moving-rows",[t,n,r],null,
[])||[]).concat(this.table.rowManager.rows).forEach((function(e){if(e.cells.length)
{var t=e.cells.splice(s,1)[0];e.cells.splice(o,0,t)}})))}scrollToColumn(e,t,n){var
r=0,i=e.getLeftOffset(),o=0,s=e.getElement();return new Promise(((a,c)=>{if(void
0===t&&(t=this.table.options.scrollToColumnPosition),void
0===n&&(n=this.table.options.scrollToColumnIfVisible),e.visible){switch(t)
{case"middle":case"center":o=-this.element.clientWidth/
2;break;case"right":o=s.clientWidth-this.headersElement.clientWidth}if(!
n&&i>0&&i+s.offsetWidth<this.element.clientWidth)return!
1;r=i+o,r=Math.max(Math.min(r,this.table.rowManager.element.scrollWidth-
this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizonta
l(r),this.scrollHorizontal(r),a()}else console.warn("Scroll Error - Column not
visible"),c("Scroll Error - Column not visible")}))}generateCells(e){var
t=[];return
this.columnsByIndex.forEach((n=>{t.push(n.generateCell(e))})),t}getFlexBaseWidth()
{var e=this.table.element.clientWidth,t=0;return
this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeig
ht&&(e-=this.table.rowManager.element.offsetWidth-
this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach((function(n)
{var r,i,o;n.visible&&(r=n.definition.width||
0,i=parseInt(n.minWidth),o="string"==typeof
r?r.indexOf("%")>-1?e/100*parseInt(r):parseInt(r):r,t+=o>i?
o:i)})),t}addColumn(e,t,n){return new Promise(((r,i)=>{var
o=this._addColumn(e,t,n);this._reIndexColumns(),this.dispatch("column-
add",e,t,n),"fitColumns"!=this.layoutMode()&&o.reinitializeWidth(),this.redraw(!
0),this.table.rowManager.reinitialize(),this.rerenderColumns(),r(o)}))}deregisterCo
lumn(e){var t,n=e.getField();n&&delete this.columnsByField[n],
(t=this.columnsByIndex.indexOf(e))>-1&&this.columnsByIndex.splice(t,1),
(t=this.columns.indexOf(e))>-
1&&this.columns.splice(t,1),this.verticalAlignHeaders(),this.redraw()}rerenderColum
ns(e,t){this.redrawBlock?(!1===e||!
0===e&&null===this.redrawBlockUpdate)&&(this.redrawBlockUpdate=e):this.renderer.rer
enderColumns(e,t)}blockRedraw(){this.redrawBlock=!
0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!
1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)
}redraw(e)
{i.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.r
esetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-
redrawing",e)||this.layoutRefresh(e),this.dispatch("table-
redraw",e),this.table.footerManager.redraw()}}class Ae extends _e{constructor(e)
{super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scro
llTop=0,this.scrollLeft=0}clearRows(){for(var
e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrol
lLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibil
ity=""}renderRows(){var e=this.tableElement,t=!
0,n=document.createDocumentFragment(),r=this.rows();r.forEach(((e,r)=>{this.styleRo
w(e,r),e.initialize(!1,!0),"group"!==e.type&&(t=!
1),n.appendChild(e.getElement())})),e.appendChild(n),r.forEach((e=>{e.rendered(),e.
heightInitialized||e.calcHeight(!0)})),r.forEach((e=>{e.heightInitialized||
e.setCellHeight()})),e.style.minWidth=t?this.table.columnManager.getWidth()
+"px":""}rerenderRows(e)
{this.clearRows(),e&&e(),this.renderRows()}scrollToRowNearestTop(e){var
t=i.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-
t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-
t))}scrollToRow(e){var
t=e.getElement();this.elementVertical.scrollTop=i.elOffset(t).top-
i.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e)
{return this.rows()}}class Ce extends _e{constructor(e)
{super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDom
RowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScro
llPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,thi
s.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,
this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var
e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop=""
,e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibilit
y="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scroll
Top=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDo
mBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows()
{this._virtualRenderFill()}rerenderRows(e){for(var
t=this.elementVertical.scrollTop,n=!1,r=!
1,i=this.table.rowManager.scrollLeft,o=this.rows(),s=this.vDomTop;s<=this.vDomBotto
m;s++)if(o[s]){var a=t-o[s].getElement().offsetTop;if(!(!1===r||
Math.abs(a)<r))break;r=a,n=s}o.forEach((e=>{e.deinitializeHeight()})),e&&e(),this.r
ows().length?this._virtualRenderFill(!1===n?this.rows.length-1:n,!0,r||0):
(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(i)}scrollColum
ns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var n=e-
this.vDomScrollPosTop,r=e-
this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer,o=this.rows();if(this.scrollTop=
e,-n>i||r>i){var
s=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementV
ertical.scrollTop/
this.elementVertical.scrollHeight*o.length)),this.scrollColumns(s)}else
t?(n<0&&this._addTopRow(o,-n),r<0&&(this.vDomScrollHeight-
this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(o,-
r):this.vDomScrollPosBottom=this.scrollTop)):
(r>=0&&this._addBottomRow(o,r),n>=0&&(this.scrollTop>this.vDomWindowBuffer?
this._removeTopRow(o,n):this.vDomScrollPosTop=this.scrollTop))}resize()
{this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||
this.elementVertical.clientHeight}scrollToRowNearestTop(e){var
t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-
t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!
0)}visibleRows(e){var
t=this.elementVertical.scrollTop,n=this.elementVertical.clientHeight+t,r=!
1,i=0,o=0,s=this.rows();if(e)i=this.vDomTop,o=this.vDomBottom;else for(var
a=this.vDomTop;a<=this.vDomBottom;a++)if(s[a])if(r){if(!(n-
s[a].getElement().offsetTop>=0))break;o=a}else if(t-
s[a].getElement().offsetTop>=0)i=a;else{if(r=!0,!(n-
s[a].getElement().offsetTop>=0))break;o=a}return
s.slice(i,o+1)}_virtualRenderFill(e,t,n){var
r,o,s=this.tableElement,a=this.elementVertical,c=0,u=0,l=0,h=0,d=0,f=0,p=this.rows(
),g=p.length,m=0,v=[],b=0,y=0,w=this.table.rowManager.fixedHeight,_=this.elementVer
tical.clientHeight,E=this.table.options.rowHeight,S=!0;if(n=n||0,e=e||0)
{for(;s.firstChild;)s.removeChild(s.firstChild);(h=(g-
e+1)*this.vDomRowHeight)<_&&(e-=Math.ceil((_-h)/this.vDomRowHeight))<0&&(e=0),e-
=c=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/
this.vDomRowHeight),this.vDomWindowMinMarginRows),e)}else
this.clear();if(g&&i.elVisible(this.elementVertical))
{for(this.vDomTop=e,this.vDomBottom=e-1,w||this.table.options.maxHeight?(E&&(y=_/
E+this.vDomWindowBuffer/
E),y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(y))):y=g;(y==g||
u<=_+this.vDomWindowBuffer||b<this.vDomWindowMinTotalRows)&&this.vDomBottom<g-1;)
{for(v=[],o=document.createDocumentFragment(),f=0;f<y&&this.vDomBottom<g-
1;)r=p[m=this.vDomBottom+1],this.styleRow(r,m),r.initialize(!1,!
0),r.heightInitialized||this.table.options.rowHeight||
r.clearCellHeight(),o.appendChild(r.getElement()),v.push(r),this.vDomBottom++,f+
+;if(!
v.length)break;s.appendChild(o),v.forEach((e=>{e.rendered(),e.heightInitialized||
e.calcHeight(!0)})),v.forEach((e=>{e.heightInitialized||
e.setCellHeight()})),v.forEach((e=>{l=e.getHeight(),b<c?
d+=l:u+=l,l>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*l),b+
+})),S=this.table.rowManager.adjustTableSize(),_=this.elementVertical.clientHeight,
S&&(w||this.table.options.maxHeight)&&(E=u/
b,y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(_/E+this.vDomWindowBuffer/
E)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+n:this.scrollTop-
d,this.vDomBottomPad=this.vDomBottom==g-1?0:Math.max(this.vDomScrollHeight-
this.vDomTopPad-u-d,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((u+d)/
b),this.vDomBottomPad=this.vDomRowHeight*(g-this.vDomBottom-
1),this.vDomScrollHeight=d+u+this.vDomBottomPad-
_),s.style.paddingTop=this.vDomTopPad+"px",s.style.paddingBottom=this.vDomBottomPad
+"px",t&&(this.scrollTop=this.vDomTopPad+d+n-
(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?
this.elementVertical.offsetHeight-
_:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-
_),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scro
llTop+=this.elementVertical.offsetHeight-
_),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,a.s
crollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t)
{for(var n=this.tableElement,r=[],i=0,o=this.vDomTop-1,s=0,a=!0;a;)if(this.vDomTop)
{let c,u,l=e[o];l&&s<this.vDomMaxRenderChain?(c=l.getHeight()||
this.vDomRowHeight,u=l.initialized,t>=c?
(this.styleRow(l,o),n.insertBefore(l.getElement(),n.firstChild),l.initialized&&l.he
ightInitialized||r.push(l),l.initialize(),u||
(c=l.getElement().offsetHeight,c>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*c)
),t-=c,i+=c,this.vDomTop--,o--,s++):a=!1):a=!1}else a=!1;for(let e of
r)e.clearCellHeight();this._quickNormalizeRowHeight(r),i&&(this.vDomTopPad-
=i,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o<1&&(this.vDomTopPad=
0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-
=i)}_removeTopRow(e,t){for(var n=[],r=0,i=0,o=!0;o;){let
s,a=e[this.vDomTop];a&&i<this.vDomMaxRenderChain?(s=a.getHeight()||
this.vDomRowHeight,t>=s?(this.vDomTop++,t-=s,r+=s,n.push(a),i++):o=!1):o=!1}for(let
e of n){let
t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}r&&(this.vDomTopPad+=r,t
his.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.
vDomTop?r:r+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var
n=this.tableElement,r=[],i=0,o=this.vDomBottom+1,s=0,a=!0;a;){let
c,u,l=e[o];l&&s<this.vDomMaxRenderChain?(c=l.getHeight()||
this.vDomRowHeight,u=l.initialized,t>=c?
(this.styleRow(l,o),n.appendChild(l.getElement()),l.initialized&&l.heightInitialize
d||r.push(l),l.initialize(),u||
(c=l.getElement().offsetHeight,c>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*c)
),t-=c,i+=c,this.vDomBottom++,o++,s++):a=!1):a=!1}for(let e of
r)e.clearCellHeight();this._quickNormalizeRowHeight(r),i&&(this.vDomBottomPad-=i,
(this.vDomBottomPad<0||o==e.length-
1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomS
crollPosBottom+=i)}_removeBottomRow(e,t){for(var n=[],r=0,i=0,o=!0;o;){let
s,a=e[this.vDomBottom];a&&i<this.vDomMaxRenderChain?(s=a.getHeight()||
this.vDomRowHeight,t>=s?(this.vDomBottom--,t-=s,r+=s,n.push(a),i++):o=!1):o=!
1}for(let e of n){let
t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}r&&(this.vDomBottomPad+=
r,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBotto
m=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=r)}_quickNormalizeRowHeight(e)
{for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class Oe extends
r{constructor(e)
{super(e),this.element=this.createHolderElement(),this.tableElement=this.createTabl
eElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.pl
aceholderContents=null,this.firstRender=!
1,this.renderMode="virtual",this.fixedHeight=!
1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0
,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,thi
s.redrawBlock=!1,this.redrawBlockRestoreConfig=!
1,this.redrawBlockRenderInPosition=!
1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=
null}createHolderElement(){var e=document.createElement("div");return
e.classList.add("tabulator-
tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var
e=this.table.options.placeholder;if("function"==typeof
e&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e){let
t=document.createElement("div");if(t.classList.add("tabulator-
placeholder"),"string"==typeof e){let
n=document.createElement("div");n.classList.add("tabulator-placeholder-
contents"),n.innerHTML=e,t.appendChild(n),this.placeholderContents=n}else"undefined
"!=typeof HTMLElement&&e instanceof HTMLElement?
(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder
provided, must be string or HTML
Element",e),this.el=null);this.placeholder=t}}getElement(){return
this.element}getTableElement(){return this.tableElement}initialize()
{this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(th
is.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",
(()=>{var
e=this.element.scrollLeft,t=this.scrollLeft>e,n=this.element.scrollTop,r=this.scrol
lTop>n;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-
horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceh
older()),this.scrollTop!
=n&&(this.scrollTop=n,this.renderer.scrollRows(n,r),this.dispatch("scroll-
vertical",n,r),this.dispatchExternal("scrollVertical",n,r))}))}findRow(e)
{return"object"!=typeof e?void 0!
==e&&(this.rows.find((t=>t.data[this.table.options.index]==e))||!1):e instanceof E?
e:e instanceof _?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof
HTMLElement&&this.rows.find((t=>t.getElement()===e))||!1}getRowFromDataObject(e)
{return this.rows.find((t=>t.data===e))||!1}getRowFromPosition(e){return
this.getDisplayRows().find((t=>t.getPosition()===e&&t.isDisplayed()))}scrollToRow(e
,t,n){return this.renderer.scrollToRowPosition(e,t,n)}setData(e,t,n){return new
Promise(((r,i)=>{t&&this.getDisplayRows().length?this.table.options.pagination?
this._setDataActual(e,!0):this.reRenderInPosition((()=>{this._setDataActual(e)})):
(this.table.options.autoColumns&&n&&this.table.initialized&&this.table.columnManage
r.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),r()}))}_
setDataActual(e,t)
{this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?
(this.dispatch("data-processing",e),e.forEach(((e,t)=>{if(e&&"object"==typeof e)
{var n=new E(e,this);this.rows.push(n)}else console.warn("Data Loading Warning -
Invalid row data detected and ignored, expecting object but
received:",e)})),this.refreshActiveData(!1,!1,t),this.dispatch("data-
processed",e),this.dispatchExternal("dataProcessed",e)):console.error("Data Loading
Error - Unable to process data due to invalid data type \nExpecting: array \
nReceived: ",typeof e,"\nData: ",e)}_wipeElements(){this.dispatch("rows-
wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy()
{this.rows.forEach((e=>{e.wipe()})),this.rows=[],this.activeRows=[],this.activeRows
Pipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}dele
teRow(e,t){var n=this.rows.indexOf(e),r=this.activeRows.indexOf(e);r>-
1&&this.activeRows.splice(r,1),n>-
1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterato
r((t=>{var n=t.indexOf(e);n>-1&&t.splice(n,1)})),t||
this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatc
hExternal("rowDeleted",e.getComponent()),this.displayRowsCount||
this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("da
taChanged",this.getData())}addRow(e,t,n,r){return
this.addRowActual(e,t,n,r)}addRows(e,t,n,r){var i=[];return new
Promise(((o,s)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(void 0===n&&t||
void 0!==n&&!t)&&e.reverse(),e.forEach(((e,r)=>{var o=this.addRow(e,t,n,!
0);i.push(o),this.dispatch("row-added",o,e,t,n)})),this.refreshActiveData(!!
r&&"displayPipeline",!1,!
0),this.regenerateRowPositions(),i.length&&this._clearPlaceholder(),o(i)}))}findAdd
RowPos(e){return void 0===e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!
0),"bottom"===e&&(e=!1),e}addRowActual(e,t,n,r){var i,o,s=e instanceof E?e:new
E(e||{},this),a=this.findAddRowPos(t),c=-1;return n||(o=this.chain("row-adding-
position",[s,a],null,{index:n,top:a}),n=o.index,a=o.top),void 0!
==n&&(n=this.findRow(n)),(n=this.chain("row-adding-index",
[s,n,a],null,n))&&(c=this.rows.indexOf(n)),n&&c>-1?
(i=this.activeRows.indexOf(n),this.displayRowIterator((function(e){var
t=e.indexOf(n);t>-1&&e.splice(a?t:t+1,0,s)})),i>-1&&this.activeRows.splice(a?
i:i+1,0,s),this.rows.splice(a?c:c+1,0,s)):a?(this.displayRowIterator((function(e)
{e.unshift(s)})),this.activeRows.unshift(s),this.rows.unshift(s)):
(this.displayRowIterator((function(e)
{e.push(s)})),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.ac
tiveRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExterna
l("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData
()),r||this.reRenderInPosition(),s}moveRow(e,t,n){this.dispatch("row-
move",e,t,n),this.moveRowActual(e,t,n),this.regenerateRowPositions(),this.dispatch(
"row-
moved",e,t,n),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,
n)
{this.moveRowInArray(this.rows,e,t,n),this.moveRowInArray(this.activeRows,e,t,n),th
is.displayRowIterator((r=>{this.moveRowInArray(r,e,t,n)})),this.dispatch("row-
moving",e,t,n)}moveRowInArray(e,t,n,r){var i,o,s;if(t!==n&&((i=e.indexOf(t))>-
1&&(e.splice(i,1),(o=e.indexOf(n))>-1?r?
e.splice(o+1,0,t):e.splice(o,0,t):e.splice(i,0,t)),e===this.getDisplayRows()))
{s=o>i?o:i+1;for(let t=i<o?i:o;t<=s;t++)e[t]&&this.styleRow(e[t],t)}}clearData()
{this.setData([])}getRowIndex(e){return
this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var
t=this.getDisplayRows().indexOf(e);return t>-1&&t}nextDisplayRow(e,t){var
n=this.getDisplayRowIndex(e),r=!1;return!1!==n&&n<this.displayRowsCount-
1&&(r=this.getDisplayRows()[n+1]),!r||r instanceof E&&"row"==r.type?
r:this.nextDisplayRow(r,t)}prevDisplayRow(e,t){var n=this.getDisplayRowIndex(e),r=!
1;return n&&(r=this.getDisplayRows()[n-1]),!t||!r||r instanceof E&&"row"==r.type?
r:this.prevDisplayRow(r,t)}findRowIndex(e,t){var n;return!!
((e=this.findRow(e))&&(n=t.indexOf(e))>-1)&&n}getData(e,t){var n=[];return
this.getRows(e).forEach((function(e)
{"row"==e.type&&n.push(e.getData(t||"data"))})),n}getComponents(e){var t=[];return
this.getRows(e).forEach((function(e){t.push(e.getComponent())})),t}getDataCount(e)
{return this.getRows(e).length}scrollHorizontal(e)
{this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-
horizontal",e)}registerDataPipelineHandler(e,t){void 0!==t?
(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort(((e,t)=>e.pr
iority-t.priority))):console.error("Data pipeline handlers must have a priority in
order to be registered")}registerDisplayPipelineHandler(e,t){void 0!==t?
(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort(((e,t)
=>e.priority-t.priority))):console.error("Display pipeline handlers must have a
priority in order to be registered")}refreshActiveData(e,t,n){var
r=this.table,o="",s=0,a=["all","dataPipeline","display","displayPipeline","end"];if
(!this.table.destroyed){if("function"==typeof
e)if((s=this.dataPipeline.findIndex((t=>t.handler===e)))>-
1)o="dataPipeline",t&&(s==this.dataPipeline.length-1?o="display":s++);else{if(!
((s=this.displayPipeline.findIndex((t=>t.handler===e)))>-1))return void
console.error("Unable to refresh data, invalid handler
provided",e);o="displayPipeline",t&&(s==this.displayPipeline.length-1?o="end":s+
+)}else o=e||"all",s=0;if(this.redrawBlock)return void((!
this.redrawBlockRestoreConfig||
this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===o&&s<this.red
rawBlockRestoreConfig.index||
a.indexOf(o)<a.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRes
toreConfig={handler:e,skipStage:t,renderInPosition:n,stage:o,index:s}));i.elVisible
(this.element)?n?this.reRenderInPosition(this.refreshPipelines.bind(this,e,o,s,n)):
(this.refreshPipelines(e,o,s,n),e||
this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layo
utColumnsOnNewData&&this.table.columnManager.redraw(!
0)):this.refreshPipelines(e,o,s,n),this.dispatch("data-
refreshed")}}refreshPipelines(e,t,n,r){switch(this.dispatch("data-refreshing"),e||
(this.activeRowsPipeline[0]=this.rows.slice(0)),t)
{case"all":case"dataPipeline":for(let e=n;e<this.dataPipeline.length;e++){let
t=this.dataPipeline[e].handler(this.activeRowsPipeline[e].slice(0));this.activeRows
Pipeline[e+1]=t||
this.activeRowsPipeline[e].slice(0)}this.setActiveRows(this.activeRowsPipeline[this
.dataPipeline.length]);case"display":n=0,this.resetDisplayRows();case"displayPipeli
ne":for(let e=n;e<this.displayPipeline.length;e++){let
t=this.displayPipeline[e].handler((e?this.getDisplayRows(e-
1):this.activeRows).slice(0),r);this.setDisplayRows(t||this.getDisplayRows(e-
1).slice(0),e)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length
&&this._clearPlaceholder()}regenerateRowPositions(){var
e=this.getDisplayRows(),t=1;e.forEach((e=>{"row"===e.type&&(e.setPosition(t),t+
+)}))}setActiveRows(e)
{this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.acti
veRows.length}resetDisplayRows()
{this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRo
wsCount=this.displayRows[0].length}setDisplayRows(e,t)
{this.displayRows[t]=e,t==this.displayRows.length-
1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-
1].length)}getDisplayRows(e){return void 0===e?this.displayRows.length?
this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||
[]}getVisibleRows(e,t){var n=Object.assign([],this.renderer.visibleRows(!t));return
e&&(n=this.chain("rows-visible",[t],n,n)),n}displayRowIterator(e)
{this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCou
nt=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e)
{case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisp
layRows();break;case"visible":t=this.getVisibleRows(!1,!
0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return
t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:
(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHei
ght||
this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"
))}scrollBarCheck(){var
e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidt
h-this.element.clientWidth),e!
==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-
vertical",e))}initializeRenderer(){var e,t={virtual:Ce,basic:Ae};
(e="string"==typeof this.table.options.renderVertical?
t[this.table.options.renderVertical]:this.table.options.renderVertical)?
(this.renderMode=this.table.options.renderVertical,this.renderer=new
e(this.table,this.element,this.tableElement),this.renderer.initialize(),!
this.table.element.clientHeight&&!this.table.options.height||
this.table.options.minHeight&&this.table.options.maxHeight?this.fixedHeight=!
1:this.fixedHeight=!0):console.error("Unable to find matching
renderer:",this.table.options.renderVertical)}getRenderMode(){return
this.renderMode}renderTable()
{this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable()
,this.displayRowsCount?
(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!
1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!
0))):this.renderEmptyScroll(),this.fixedHeight||
this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||
this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete
")}renderEmptyScroll(){this.placeholder?
this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.
columnManager.getWidth()+"px"}_clearTable()
{this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRow
s()}tableEmpty()
{this.renderEmptyScroll(),this._showPlaceholder()}_showPlaceholder()
{this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder
.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeho
lder.setAttribute("tabulator-render-
mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positi
onPlaceholder(),this.adjustTableSize())}_clearPlaceholder()
{this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeC
hild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.
display=""}_positionPlaceholder()
{this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.
table.columnManager.getWidth()
+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidt
h+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t
){var n=e.getElement();t%2?(n.classList.add("tabulator-row-
even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-
odd"),n.classList.remove("tabulator-row-even"))}normalizeHeight()
{this.activeRows.forEach((function(e){e.normalizeHeight()}))}adjustTableSize(){let
e,t=this.element.clientHeight,n=!1;if("fill"===this.renderer.verticalFillMode){let
r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+
(this.table.footerManager&&this.table
.footerManager.active&&!this.table.footerManager.external?
this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fi
xedHeight){e=isNaN(this.table.options.minHeight)?
this.table.options.minHeight:this.table.options.minHeight+"px";const t="calc(100% -
"+r+"px)";this.element.style.minHeight=e||"calc(100% -
"+r+"px)",this.element.style.height=t,this.element.style.maxHeight=t}else
this.element.style.height="",this.element.style.height=this.table.element.clientHei
ght-
r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),this.fixedHeigh
t||t==this.element.clientHeight||(n=!0,this.subscribed("table-resize")?
this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return
this._positionPlaceholder(),n}reinitialize(){this.rows.forEach((function(e)
{e.reinitialize(!0)}))}blockRedraw(){this.redrawBlock=!
0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!
1,this.redrawBlockRestoreConfig?
(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockResto
reConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlock
RestoreConfig=!
1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRend
erInPosition=!1}redraw(e){const
t=this.adjustTableSize();this.table.tableWidth=this.table.element.clientWidth,e?
this.renderTable():
(t&&this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll()
{if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser)
{var e=document.createEvent("Event");e.initEvent("scroll",!1,!
0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new
Event("scroll"))}}class xe extends r{constructor(e){super(e),this.active=!
1,this.element=this.createElement(),this.containerElement=this.createContainerEleme
nt(),this.external=!1}initialize(){this.initializeElement()}createElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
footer"),e}createContainerElement(){var e=document.createElement("div");return
e.classList.add("tabulator-footer-
contents"),this.element.appendChild(e),e}initializeElement()
{this.table.options.footerElement&&("string"==typeof
this.table.options.footerElement?"<"===this.table.options.footerElement[0]?
this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!
0,this.containerElement=document.querySelector(this.table.options.footerElement)):t
his.element=this.table.options.footerElement)}getElement(){return
this.element}append(e)
{this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustT
ableSize()}prepend(e)
{this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.ro
wManager.adjustTableSize()}remove(e)
{e.parentNode.removeChild(e),this.deactivate()}deactivate(e)
{this.element.firstChild&&!e||(this.external||
this.element.parentNode.removeChild(this.element),this.active=!1)}activate()
{this.active||(this.active=!0,this.external||
(this.table.element.appendChild(this.getElement()),this.table.element.style.display
=""))}redraw(){this.dispatch("footer-redraw")}}class Ie extends r{constructor(e)
{super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-
table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","m
ouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","t
ouchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-
row":"row","tabulator-group":"group","tabulator-
col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:
{subscriber:null,target:null},group:{subscriber:null,target:null},column:
{subscriber:null,target:null}},this.pseudoTracking=!1}initialize()
{this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()
}buildListenerMap(){var
e={};this.listeners.forEach((t=>{e[t]={handler:null,components:
[]}})),this.listeners=e}bindPseudoEvents()
{Object.keys(this.pseudoTrackers).forEach((e=>{this.pseudoTrackers[e].subscriber=th
is.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-
mouseover",this.pseudoTrackers[e].subscriber)})),this.pseudoTracking=!
0}pseudoMouseEnter(e,t,n){this.pseudoTrackers[e].target!
==n&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-
mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudo
Trackers[e].target=n,this.dispatch(e+"-mouseenter",t,n))}pseudoMouseLeave(e,t){var
n=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};
(n=n.filter((t=>{var n=r[e];return t!==e&&(!n||n&&!
n.includes(t))}))).forEach((e=>{var
n=this.pseudoTrackers[e].target;this.pseudoTrackers[e].target&&(this.dispatch(e+"-
mouseleave",t,n),this.pseudoTrackers[e].target=null)}))}bindSubscriptionWatchers()
{var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let n of
t)for(let t of e){let
e=n+"-"+t;this.subscriptionChange(e,this.subscriptionChanged.bind(this,n,t))}this.s
ubscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,n)
{var r=this.listeners[t].components,i=r.indexOf(e),o=!1;n?-1===i&&(r.push(e),o=!
0):this.subscribed(e+"-"+t)||i>-1&&(r.splice(i,1),o=!0),"mouseenter"!
==t&&"mouseleave"!==t||this.pseudoTracking||
this.bindPseudoEvents(),o&&this.updateEventListeners()}updateEventListeners()
{for(let e in this.listeners){let t=this.listeners[e];t.components.length?
t.handler||
(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler
&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var
n=t.composedPath&&t.composedPath()||
t.path,r=this.findTargets(n);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),!
this.pseudoTracking||"mouseover"!=e&&"mouseleave"!=e||Object.keys(r).length||
this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let
n=Object.keys(this.componentMap);for(let r of e){let e=r.classList?
[...r.classList]:
[];if(e.filter((e=>this.abortClasses.includes(e))).length)break;let
i=e.filter((e=>n.includes(e)));for(let e of i)t[this.componentMap[e]]||
(t[this.componentMap[e]]=r)}return t.group&&t.group===t.row&&delete
t.row,t}bindComponents(e,t){var
n=Object.keys(t).reverse(),r=this.listeners[e],i={},o={};for(let e of n){let
n,s=t[e],a=this.previousTargets[e];if(a&&a.target===s)n=a.component;else switch(e)
{case"row":case"group":(r.components.includes("row")||
r.components.includes("cell")||
r.components.includes("group"))&&(n=this.table.rowManager.getVisibleRows(!
0).find((e=>e.getElement()===s)),t.row&&t.row.parentNode&&t.row.parentNode.closest(
".tabulator-row")&&(t[e]=!
1));break;case"column":r.components.includes("column")&&(n=this.table.columnManager
.findColumn(s));break;case"cell":r.components.includes("cell")&&(i.row instanceof
E?n=i.row.findCell(s):t.row&&console.warn("Event Target Lookup Error - The row this
cell is attached to cannot be found, has the table been reinitialized without being
destroyed first?"))}n&&(i[e]=n,o[e]={target:s,component:n})}return
this.previousTargets=o,i}triggerEvents(e,t,n){var r=this.listeners[e];for(let i in
n)n[i]&&r.components.includes(i)&&this.dispatch(i+"-"+e,t,n[i])}clearWatchers()
{for(let e in this.listeners){let
t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=
null)}}}class Pe{constructor(e){this.table=e,this.bindings={}}bind(e,t,n)
{this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable
to bind component handler, a matching function name is already
bound",e,t,n):this.bindings[e][t]=n}handle(e,t,n)
{if(this.bindings[e]&&this.bindings[e][n]&&"function"==typeof this.bindings[e]
[n].bind)return this.bindings[e][n].bind(null,t);"then"===n||"string"!=typeof n||
n.startsWith("_")||
this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component
does not have a "+n+" function, have you checked that you have the correct
Tabulator module installed?")}}class De extends r{constructor(e)
{super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,n,r,i,o){var
s=++this.requestOrder;return this.table.destroyed?Promise.resolve():
(this.dispatchExternal("dataLoading",e),!e||0!=e.indexOf("{")&&0!=e.indexOf("[")||
(e=JSON.parse(e)),this.confirm("data-loading",[e,t,n,i])?(this.loading=!0,i||
this.alertLoader(),t=this.chain("data-params",[e,n,i],t||{},t||
{}),t=this.mapParams(t,this.table.options.dataSendParams),this.chain("data-load",
[e,t,n,i],!
1,Promise.resolve([])).then((e=>{if(this.table.destroyed)console.warn("Data Load
Response Blocked - Table has been destroyed");else{Array.isArray(e)||"object"!
=typeof e||
(e=this.mapParams(e,this.objectInvert(this.table.options.dataReceiveParams)));var
t=this.chain("data-loaded",e,null,e);s==this.requestOrder?(this.clearAlert(),!1!
==t&&(this.dispatchExternal("dataLoaded",t),this.table.rowManager.setData(t,r,void
0===o?!r:o))):console.warn("Data Load Response Blocked - An active data load
request was blocked by an attempt to change table data while the request was being
made")}})).catch((e=>{console.error("Data Load Error:
",e),this.dispatchExternal("dataLoadError",e),i||
this.alertError(),setTimeout((()=>{this.clearAlert()}),this.table.options.dataLoade
rErrorTimeout)})).finally((()=>{this.loading=!1}))):
(this.dispatchExternal("dataLoaded",e),e||
(e=[]),this.table.rowManager.setData(e,r,void 0===o?!
r:o),Promise.resolve()))}mapParams(e,t){var n={};for(let r in
e)n[t.hasOwnProperty(r)?t[r]:r]=e[r];return n}objectInvert(e){var t={};for(let n in
e)t[e[n]]=n;return t}blockActiveLoad(){this.requestOrder++}alertLoader()
{("function"==typeof this.table.options.dataLoader?
this.table.options.dataLoader():this.table.options.dataLoader)&&this.table.alertMan
ager.alert(this.table.options.dataLoaderLoading||this.langText("data|
loading"))}alertError()
{this.table.alertManager.alert(this.table.options.dataLoaderError||
this.langText("data|error"),"error")}clearAlert()
{this.table.alertManager.clear()}}class ke{constructor(e,t,n)
{this.table=e,this.events={},this.optionsList=t||
{},this.subscriptionNotifiers={},this.dispatch=n?
this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=n}subscri
ptionChange(e,t){this.subscriptionNotifiers[e]||
(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subsc
ribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||
(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!
0)}unsubscribe(e,t){var n;if(this.events[e]){if(t){if(!
((n=this.events[e].findIndex((e=>e===t)))>-1))return void console.warn("Cannot
remove event, no matching event found:",e,t);this.events[e].splice(n,1)}else delete
this.events[e];this._notifySubscriptionChange(e,!1)}else console.warn("Cannot
remove event, no events set on:",e)}subscribed(e){return
this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var
n=this.subscriptionNotifiers[e];n&&n.forEach((e=>{e(t)}))}_dispatch(){var
e,t=Array.from(arguments),n=t.shift();return
this.events[n]&&this.events[n].forEach(((n,r)=>{let i=n.apply(this.table,t);r||
(e=i)})),e}_debugDispatch(){var e=Array.from(arguments),t=e[0];return
e[0]="ExternalEvent:"+e[0],(!0===this.debug||
this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class
Re{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?
this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?
this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?
this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionCha
nge(e,t){this.subscriptionNotifiers[e]||
(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subsc
ribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,n=1e4)
{this.events[e]||
(this.events[e]=[]),this.events[e].push({callback:t,priority:n}),this.events[e].sor
t(((e,t)=>e.priority-t.priority)),this._notifySubscriptionChange(e,!
0)}unsubscribe(e,t){var n;if(this.events[e]){if(t){if(!
((n=this.events[e].findIndex((e=>e.callback===t)))>-1))return void
console.warn("Cannot remove event, no matching event
found:",e,t);this.events[e].splice(n,1)}this._notifySubscriptionChange(e,!1)}else
console.warn("Cannot remove event, no events set on:",e)}subscribed(e){return
this.events[e]&&this.events[e].length}_chain(e,t,n,r){var i=n;return
Array.isArray(t)||(t=[t]),this.subscribed(e)?
(this.events[e].forEach(((e,n)=>{i=e.callback.apply(this,t.concat([i]))})),i):"func
tion"==typeof r?r():r}_confirm(e,t){var n=!1;return Array.isArray(t)||
(t=[t]),this.subscribed(e)&&this.events[e].forEach(((e,r)=>{e.callback.apply(this,t
)&&(n=!0)})),n}_notifySubscriptionChange(e,t){var
n=this.subscriptionNotifiers[e];n&&n.forEach((e=>{e(t)}))}_dispatch(){var
e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach((t=>{t.c
allback.apply(this,e)}))}_debugDispatch(){var e=Array.from(arguments),t=e[0];return
e[0]="InternalEvent:"+t,(!0===this.debug||
this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain
(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!
0===this.debug||
this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(
){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!
0===this.debug||
this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class Me
extends r{constructor(e){super(e)}_warnUser()
{this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t){var
n="";return void 0===this.options(e)||(n="Deprecated Setup Option - Use of the
%c"+e+"%c option is now deprecated",t?(n=n+", Please use the %c"+t+"%c option
instead",this._warnUser(n,"font-weight: bold;","font-weight: normal;","font-weight:
bold;","font-weight: normal;")):this._warnUser(n,"font-weight: bold;","font-weight:
normal;"),!1)}checkMsg(e,t){return void 0===this.options(e)||
(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now
deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight:
normal;"),!1)}msg(e){this._warnUser(e)}}class Ne{static register(e)
{Ne.tables.push(e)}static deregister(e){var t=Ne.tables.indexOf(e);t>-
1&&Ne.tables.splice(t,1)}static lookupTable(e,t){var n,r,i=[];if("string"==typeof
e){if((n=document.querySelectorAll(e)).length)for(var o=0;o<n.length;o++)
(r=Ne.matchElement(n[o]))&&i.push(r)}else"undefined"!=typeof HTMLElement&&e
instanceof HTMLElement||e instanceof Ve?
(r=Ne.matchElement(e))&&i.push(r):Array.isArray(e)?e.forEach((function(e)
{i=i.concat(Ne.lookupTable(e))})):t||console.warn("Table Connection Error - Invalid
Selector",e);return i}static matchElement(e){return Ne.tables.find((function(t)
{return e instanceof Ve?t===e:t.element===e}))}}function Le(e,t)
{e.forEach((function(e)
{e.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists
("responsiveLayout",!
0)&&this.table.modules.responsiveLayout.update()}Ne.tables=[];var
Fe={fitData:function(e,t)
{t&&this.table.columnManager.renderer.reinitializeColumnWidths(e),this.table.option
s.responsiveLayout&&this.table.modExists("responsiveLayout",!
0)&&this.table.modules.responsiveLayout.update()},fitDataFill:Le,fitDataTable:Le,fi
tDataStretch:function(e,t){var
n=0,r=this.table.rowManager.element.clientWidth,i=0,o=!
1;e.forEach(((e,t)=>{e.widthFixed||e.reinitializeWidth(),
(this.table.options.responsiveLayout?
e.modules.responsive.visible:e.visible)&&(o=e),e.visible&&(n+=e.getWidth())})),o?
(i=r-
n+o.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiv
eLayout",!0)&&(o.setWidth(0),this.table.modules.responsiveLayout.update()),i>0?
o.setWidth(i):o.reinitializeWidth()):this.table.options.responsiveLayout&&this.tabl
e.modExists("responsiveLayout",!
0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e,t){var
n,r,i=this.table.rowManager.element.getBoundingClientRect().width,o=0,s=0,a=0,c=[],
u=[],l=0,h=0;function d(e){return"string"==typeof
e?e.indexOf("%")>-1?i/100*parseInt(e):parseInt(e):e}function f(e,t,n,r){var
i=[],o=0,s=0,c=0,u=a,l=0,h=0,p=[];function g(e){return
n*(e.column.definition.widthGrow||1)}function m(e){return d(e.width)-
n*(e.column.definition.widthShrink||0)}return e.forEach((function(e,o){var s=r?
m(e):g(e);e.column.minWidth>=s?i.push(e):e.column.maxWidth&&e.column.maxWidth<s?
(e.width=e.column.maxWidth,t-=e.column.maxWidth,(u-=r?
e.column.definition.widthShrink||1:e.column.definition.widthGrow||
1)&&(n=Math.floor(t/u))):(p.push(e),h+=r?e.column.definition.widthShrink||
1:e.column.definition.widthGrow||1)})),i.length?(i.forEach((function(e){o+=r?
e.width-e.column.minWidth:e.column.minWidth,e.width=e.column.minWidth})),s=t-o,c=h?
Math.floor(s/h):s,l=f(p,s,c,r)):(l=h?t-Math.floor(t/h)*h:t,p.forEach((function(e)
{e.width=r?
m(e):g(e)}))),l}this.table.options.responsiveLayout&&this.table.modExists("responsi
veLayout",!
0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scro
llHeight>this.table.rowManager.element.clientHeight&&(i-
=this.table.rowManager.element.offsetWidth-
this.table.rowManager.element.clientWidth),e.forEach((function(e){var
t,n,r;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(r=d(t),o+=r>n?
r:n,e.definition.widthShrink&&(u.push({column:e,width:r>n?
r:n}),l+=e.definition.widthShrink)):
(c.push({column:e,width:0}),a+=e.definition.widthGrow||1))})),s=i-
o,n=Math.floor(s/a),h=f(c,s,n,!1),c.length&&h>0&&(c[c.length-
1].width+=h),c.forEach((function(e){s-=e.width})),(r=Math.abs(h)
+s)>0&&l&&(h=f(u,r,Math.floor(r/l),!0)),h&&u.length&&(u[u.length-1].width-
=h),c.forEach((function(e){e.column.setWidth(e.width)})),u.forEach((function(e)
{e.column.setWidth(e.width)}))}};class je extends s{constructor(e)
{super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this
.registerTableOption("layoutColumnsOnNewData",!
1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}
initialize(){var e=this.table.options.layout;je.modes[e]?this.mode=e:
(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' :
"+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-
layout",this.mode)}getMode(){return this.mode}layout(e){this.dispatch("layout-
refreshing"),je.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,
e),this.dispatch("layout-refreshed")}}je.moduleName="layout",je.modes=Fe;class Be
extends s{constructor(e){super(e),this.locale="default",this.lang=!
1,this.bindings={},this.langList={},this.registerTableOption("locale",!
1),this.registerTableOption("langs",{})}initialize()
{this.langList=i.deepClone(Be.langs),!1!
==this.table.options.columnDefaults.headerFilterPlaceholder&&this.setHeaderFilterPl
aceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in
this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLo
cale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLoca
le.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),th
is.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlacehol
der(e){this.langList.default.headerFilters.default=e}installLang(e,t)
{this.langList[e]?
this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let
n in t)e[n]&&"object"==typeof e[n]?
this._setLangProp(e[n],t[n]):e[n]=t[n]}setLocale(e){if(!
0===(e=e||"default")&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!
this.langList[e]){let t=e.split("-")[0];this.langList[t]?
(console.warn("Localization Error - Exact matching locale not found, using closest
match: ",e,t),e=t):(console.warn("Localization Error - Matching locale not found,
using default:
",e),e="default")}this.locale=e,this.lang=i.deepClone(this.langList.default||
{}),"default"!=e&&function e(t,n){for(var r in t)"object"==typeof t[r]?(n[r]||
(n[r]={}),e(t[r],n[r])):n[r]=t[r]}
(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lan
g),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?
this.langList[e]:this.lang}getText(e,t){var n=(t?e+"|"+t:e).split("|");return
this._getLangElement(n,this.locale)||""}_getLangElement(e,t){var
n=this.lang;return e.forEach((function(e){var t;n&&(t=n[e],n=void 0!
==t&&t)})),n}bind(e,t){this.bindings[e]||
(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_execut
eBindings(){for(let e in
this.bindings)this.bindings[e].forEach((t=>{t(this.getText(e),this.lang)}))}}Be.mod
uleName="localize",Be.langs={default:{groups:{item:"item",items:"items"},columns:
{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page
Size",page_title:"Show Page",first:"First",first_title:"First
Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev
Page",next:"Next",next_title:"Next Page",all:"All",counter:
{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:
{default:"filter column...",columns:{}}}};class Ue extends s{constructor(e)
{super(e)}initialize()
{this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e)
{var t=[];return Ne.lookupTable(e).forEach((e=>{this.table!
==e&&t.push(e)})),t}send(e,t,n,r){var
i=this.getConnections(e);i.forEach((e=>{e.tableComms(this.table.element,t,n,r)})),!
i.length&&e&&console.warn("Table Connection Error - No tables matching selector
found",e)}receive(e,t,n,r){if(this.table.modExists(t))return
this.table.modules[t].commsReceived(e,n,r);console.warn("Inter-table Comms Error -
no such module:",t)}}Ue.moduleName="comms";var
He=Object.freeze({__proto__:null,LayoutModule:je,LocalizeModule:Be,CommsModule:Ue})
;class Ge{constructor(e,t){this.bindStaticFunctionality(e),this.bindModules(e,He,!
0),t&&this.bindModules(e,t)}bindStaticFunctionality(e)
{e.moduleBindings={},e.extendModule=function(t,n,r){if(e.moduleBindings[t]){var
i=e.moduleBindings[t][n];if(i)if("object"==typeof r)for(let e in r)i[e]=r[e];else
console.warn("Module Error - Invalid value type, it must be an object");else
console.warn("Module Error - property does not exist:",n)}else console.warn("Module
Error - module does not exist:",t)},e.registerModule=function(t){Array.isArray(t)||
(t=[t]),t.forEach((t=>{e.registerModuleBinding(t)}))},e.registerModuleBinding=funct
ion(t){e.moduleBindings[t.moduleName]=t},e.findTable=function(e){var
t=Ne.lookupTable(e,!0);return!(Array.isArray(t)&&!
t.length)&&t},e.prototype.bindModules=function(){var t=[],n=[],r=[];for(var i in
this.modules={},e.moduleBindings){let o=e.moduleBindings[i],s=new
o(this);this.modules[i]=s,o.prototype.moduleCore?
this.modulesCore.push(s):o.moduleInitOrder?o.moduleInitOrder<0?
t.push(s):n.push(s):r.push(s)}t.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?
1:-1)),n.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?1:-
1)),this.modulesRegular=t.concat(r.concat(n))}}bindModules(e,t,n){var
r=Object.values(t);n&&r.forEach((e=>{e.prototype.moduleCore=!
0})),e.registerModule(r)}}class ze extends r{constructor(e)
{super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgEl
ement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElemen
t(){var e=document.createElement("div");return e.classList.add("tabulator-
alert"),e}_createMsgElement(){var e=document.createElement("div");return
e.classList.add("tabulator-alert-
msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-
state-"+this.type}alert(e,t="msg"){if(e)
{for(this.clear(),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChi
ld(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),"fu
nction"==typeof e&&(e=e()),e instanceof HTMLElement?
this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appen
dChild(this.element)}}clear()
{this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.ms
gElement.classList.remove(this._typeClass())}}class Ve{constructor(e,t)
{this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=nu
ll,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=
null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!
1,this.browserMobile=!1,this.rtl=!
1,this.originalElement=null,this.componentFunctionBinder=new
Pe(this),this.dataLoader=!
1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdviso
r=new Me(this),this.optionsList=new we(this,"table constructor"),this.initialized=!
1,this.destroyed=!
1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout((()=>{this._
create()}))),Ne.register(this)}initializeElement(e){return"undefined"!=typeof
HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"==typeof e?
(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator
Creation Error - no element found matching selector: ",e),!1)):
(console.error("Tabulator Creation Error - Invalid element provided:",e),!
1)}initializeCoreSystems(e){this.columnManager=new Te(this),this.rowManager=new
Oe(this),this.footerManager=new xe(this),this.dataLoader=new
De(this),this.alertManager=new
ze(this),this.bindModules(),this.options=this.optionsList.generate(Ve.defaultOption
s,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEv
ents=new ke(this,this.options,this.options.debugEventsExternal),this.eventBus=new
Re(this.options.debugEventsInternal),this.interactionMonitor=new
Ie(this),this.dataLoader.initialize(),this.footerManager.initialize()}_mapDeprecate
dFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-
select"),window.getSelection?window.getSelection().empty?
window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSele
ction().removeAllRanges():document.selection&&document.selection.empty(),this.eleme
nt.classList.remove("tabulator-block-select")}_create()
{this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-
building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this._load
InitialData(),this.initialized=!
0,this.externalEvents.dispatch("tableBuilt")}_rtlCheck(){var
e=window.getComputedStyle(this.element);switch(this.options.textDirection)
{case"auto":if("rtl"!
==e.direction)break;case"rtl":this.element.classList.add("tabulator-
rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-
ltr");default:this.rtl=!1}}_clearObjectPointers()
{this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data
)&&!
this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildEle
ment(){var e,t=this.element,n=this.options;if("TABLE"===t.tagName)
{this.originalElement=this.element,e=document.createElement("div");var
r=t.attributes;for(var i in r)"object"==typeof
r[i]&&e.setAttribute(r[i].name,r[i].value);t.parentNode.replaceChild(e,t),this.elem
ent=t=e}for(t.classList.add("tabulator"),t.setAttribute("role","grid");t.firstChild
;)t.removeChild(t.firstChild);n.height&&(n.height=isNaN(n.height)?
n.height:n.height+"px",t.style.height=n.height),!1!
==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?
n.minHeight:n.minHeight+"px",t.style.minHeight=n.minHeight),!1!
==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?
n.maxHeight:n.maxHeight+"px",t.style.maxHeight=n.maxHeight)}_initializeTable(){var
e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManag
er.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore
.forEach((e=>{e.initialize()})),e.appendChild(this.columnManager.getElement()),e.ap
pendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activat
e(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.optio
ns.data),this.modulesRegular.forEach((e=>{e.initialize()})),this.columnManager.setC
olumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData()
{this.dataLoader.load(this.options.data)}destroy(){var
e=this.element;for(this.destroyed=!
0,Ne.deregister(this),this.eventBus.dispatch("table-
destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.cla
ssList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBr
owser(){var e=navigator.userAgent||navigator.vendor||
window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!
0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!
0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!
1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):
(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|
meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|
iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera
m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|
treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|
silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|
s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-
m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|
ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|
do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|
fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|
hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac(
|-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|
kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|
lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|
mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|
n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|
oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|
se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|
ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|
ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|
h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|
to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|
5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g
|nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var
n,r;return this.options.debugInitialization&&!this.initialized&&(e||(e="
"==(r="Error"==(n=(new Error).stack.split("\n"))[0]?n[2]:n[1])[0]?r.trim().split("
")[1].split(".")[1]:r.trim().split("@")[0]),console.warn("Table Not Initialized -
Calling the "+e+" function before the table is initialized may result in
inconsistent behavior, Please wait for the `tableBuilt` event before calling this
function."+(t?" "+t:""))),this.initialized}blockRedraw()
{this.initGuard(),this.eventBus.dispatch("redraw-
blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.even
tBus.dispatch("redraw-blocked")}restoreRedraw()
{this.initGuard(),this.eventBus.dispatch("redraw-
restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this
.eventBus.dispatch("redraw-restored")}setData(e,t,n){return this.initGuard(!1,"To
set initial data please use the 'data' property in the table
constructor."),this.dataLoader.load(e,t,n,!1)}clearData()
{this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}get
Data(e){return this.rowManager.getData(e)}getDataCount(e){return
this.rowManager.getDataCount(e)}replaceData(e,t,n){return
this.initGuard(),this.dataLoader.load(e,t,n,!0,!0)}updateData(e){var t=0;return
this.initGuard(),new
Promise(((n,r)=>{this.dataLoader.blockActiveLoad(),"string"==typeof
e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var
i=this.rowManager.findRow(e[this.options.index]);i?(t+
+,i.updateData(e).then((()=>{--t||n()})).catch((t=>{r("Update Error - Unable to
update row",e,t)}))):r("Update Error - Unable to find row",e)})):
(console.warn("Update Error - No data provided"),r("Update Error - No data
provided"))}))}addData(e,t,n){return this.initGuard(),new
Promise(((r,i)=>{this.dataLoader.blockActiveLoad(),"string"==typeof
e&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,n).then((e=>{var
t=[];e.forEach((function(e){t.push(e.getComponent())})),r(t)})):
(console.warn("Update Error - No data provided"),i("Update Error - No data
provided"))}))}updateOrAddData(e){var t=[],n=0;return this.initGuard(),new
Promise(((r,i)=>{this.dataLoader.blockActiveLoad(),"string"==typeof
e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var
i=this.rowManager.findRow(e[this.options.index]);n++,i?
i.updateData(e).then((()=>{n--,t.push(i.getComponent()),n||
r(t)})):this.rowManager.addRows(e).then((e=>{n--,t.push(e[0].getComponent()),n||
r(t)}))})):(console.warn("Update Error - No data provided"),i("Update Error - No
data provided"))}))}getRow(e){var t=this.rowManager.findRow(e);return t?
t.getComponent():(console.warn("Find Error - No matching row found:",e),!
1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?
t.getComponent():(console.warn("Find Error - No matching row found:",e),!
1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let n of e)
{let e=this.rowManager.findRow(n,!0);if(!e)return console.error("Delete Error - No
matching row found:",n),Promise.reject("Delete Error - No matching row
found");t.push(e)}return
t.sort(((e,t)=>this.rowManager.rows.indexOf(e)>this.rowManager.rows.indexOf(t)?1:-
1)),t.forEach((e=>{e.delete()})),this.rowManager.reRenderInPosition(),Promise.resol
ve()}addRow(e,t,n){return this.initGuard(),"string"==typeof
e&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,n,!
0).then((e=>e[0].getComponent()))}updateOrAddRow(e,t){var
n=this.rowManager.findRow(e);return this.initGuard(),"string"==typeof
t&&(t=JSON.parse(t)),n?
n.updateData(t).then((()=>n.getComponent())):this.rowManager.addRows(t).then((e=>e[
0].getComponent()))}updateRow(e,t){var n=this.rowManager.findRow(e);return
this.initGuard(),"string"==typeof t&&(t=JSON.parse(t)),n?
n.updateData(t).then((()=>Promise.resolve(n.getComponent()))):(console.warn("Update
Error - No matching row found:",e),Promise.reject("Update Error - No matching row
found"))}scrollToRow(e,t,n){var r=this.rowManager.findRow(e);return r?
this.rowManager.scrollToRow(r,t,n):(console.warn("Scroll Error - No matching row
found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,n)
{var r=this.rowManager.findRow(e);this.initGuard(),r?
r.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)}getRows(e)
{return this.rowManager.getComponents(e)}getRowPosition(e){var
t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error
- No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial
columns please use the 'columns' property in the table
constructor"),this.columnManager.setColumns(e)}getColumns(e){return
this.columnManager.getComponents(e)}getColumn(e){var
t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find
Error - No matching column found:",e),!1)}getColumnDefinitions(){return
this.columnManager.getDefinitionTree()}showColumn(e){var
t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return
console.warn("Column Show Error - No matching column found:",e),!
1;t.show()}hideColumn(e){var
t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return
console.warn("Column Hide Error - No matching column found:",e),!
1;t.hide()}toggleColumn(e){var
t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return
console.warn("Column Visibility Toggle Error - No matching column found:",e),!
1;t.visible?t.hide():t.show()}addColumn(e,t,n){var
r=this.columnManager.findColumn(n);return
this.initGuard(),this.columnManager.addColumn(e,t,r).then((e=>e.getComponent()))}de
leteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?
t.delete():(console.warn("Column Delete Error - No matching column
found:",e),Promise.reject())}updateColumnDefinition(e,t){var
n=this.columnManager.findColumn(e);return this.initGuard(),n?n.updateDefinition(t):
(console.warn("Column Update Error - No matching column
found:",e),Promise.reject())}moveColumn(e,t,n){var
r=this.columnManager.findColumn(e),i=this.columnManager.findColumn(t);this.initGuar
d(),r?i?this.columnManager.moveColumn(r,i,n):console.warn("Move Error - No matching
column found:",i):console.warn("Move Error - No matching column
found:",e)}scrollToColumn(e,t,n){return new Promise(((r,i)=>{var
o=this.columnManager.findColumn(e);return o?
this.columnManager.scrollToColumn(o,t,n):(console.warn("Scroll Error - No matching
column found:",e),Promise.reject("Scroll Error - No matching column
found"))}))}redraw(e)
{this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(
e){this.options.height=isNaN(e)?
e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRe
nderer(),this.rowManager.redraw()}on(e,t)
{this.externalEvents.subscribe(e,t)}off(e,t)
{this.externalEvents.unsubscribe(e,t)}dispatchEvent()
{Array.from(arguments).shift(),this.externalEvents.dispatch(...arguments)}alert(e,t
){this.initGuard(),this.alertManager.alert(e,t)}clearAlert()
{this.initGuard(),this.alertManager.clear()}modExists(e,t){return!!
this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!
1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not
installed: "+e),t}}Ve.defaultOptions={debugEventsExternal:!1,debugEventsInternal:!
1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!
0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!
1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},data:!
1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!
1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!
0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollTo
RowPosition:"top",scrollToRowIfVisible:!
0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!
1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,row
Height:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!
1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{}},new
Ge(Ve);class We extends Ve{}new Ge(We,ye);class qe{constructor(e)
{this.type=e,this.element=this._createElement()}_createElement(){var
e=document.createElement("div");return e.classList.add("tabulator-
row"),e}getElement(){return this.element}getComponent(){return!1}getData()
{return{}}getHeight(){return this.element.outerHeight}initialize(){}reinitialize()
{}normalizeHeight(){}generateCells(){}reinitializeHeight(){}calcHeight()
{}setCellHeight(){}clearCellHeight(){}}},6660:()=>{},94677:(e,t,n)=>{"use
strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new
XMLHttpRequest,o=[],s=[],a={},c=function(){return{ok:2==(i.status/100|
0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return
Promise.resolve(i.responseText)},json:function(){return
Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return
Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return
o},entries:function(){return s},get:function(e){return
a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in
i.open(t.method||"get",e,!0),i.onload=function()
{i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n)
{o.push(t=t.toLowerCase()),s.push([t,n]),a[t]=a[t]?a[t]
+","+n:n})),n(c())},i.onerror=r,i.withCredentials="include"==t.credentials,t.header
s)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)}))}n.r(t),n.d(t,{default:
()=>r})},78909:(e,t)=>{"use strict";t.Q=function(e,t){if("string"!=typeof e)throw
new TypeError("argument str must be a string");for(var r={},i=t||
{},s=e.split(";"),a=i.decode||n,c=0;c<s.length;c++){var
u=s[c],l=u.indexOf("=");if(!(l<0)){var h=u.substring(0,l).trim();if(null==r[h])
{var d=u.substring(l+1,u.length).trim();'"'===d[0]&&(d=d.slice(1,-
1)),r[h]=o(d,a)}}}return r},t.q=function(e,t,n){var o=n||{},s=o.encode||
r;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!
i.test(e))throw new TypeError("argument name is invalid");var a=s(t);if(a&&!
i.test(a))throw new TypeError("argument val is invalid");var c=e+"="+a;if(null!
=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option
maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(o.domain){if(!
i.test(o.domain))throw new TypeError("option domain is invalid");c+=";
Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is
invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof
o.expires.toUTCString)throw new TypeError("option expires is invalid");c+=";
Expires="+o.expires.toUTCString()}if(o.httpOnly&&(c+="; HttpOnly"),o.secure&&(c+=";
Secure"),o.sameSite)switch("string"==typeof o.sameSite?
o.sameSite.toLowerCase():o.sameSite){case!0:c+=";
SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+=";
SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new
TypeError("option sameSite is invalid")}return c};var
n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+
$/;function o(e,t){try{return t(e)}catch(t){return e}}},59639:function(e,t,n){var
r;e=n.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof
n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var
s,a=2147483647,c=36,u=26,l=38,h=700,d=/^xn--/,f=/[^\x20-\x7E]/,p=/[\x2E\u3002\
uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-
basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid
input"},m=c-1,v=Math.floor,b=String.fromCharCode;function y(e){throw
RangeError(g[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return
r}function _(e,t){var n=e.split("@"),r="";return
n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(p,".")).split("."),t).join(".")}fu
nction E(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i+
+))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?
r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function
S(e){return w(e,(function(e){var t="";return e>65535&&(t+=b((e-=65536)>>>10&1023|
55296),e=56320|1023&e),t+b(e)})).join("")}function T(e,t){return e+22+75*(e<26)-
((0!=t)<<5)}function A(e,t,n){var
r=0;for(e=n?v(e/h):e>>1,e+=v(e/t);e>m*u>>1;r+=c)e=v(e/m);return
v(r+(m+1)*e/(e+l))}function C(e){var
t,n,r,i,o,s,l,h,d,f,p,g=[],m=e.length,b=0,w=128,_=72;for((n=e.lastIndexOf("-"))<0&&
(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&y("not-
basic"),g.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<m;)
{for(o=b,s=1,l=c;i>=m&&y("invalid-input"),((h=(p=e.charCodeAt(i++))-48<10?p-22:p-
65<26?p-65:p-97<26?p-97:c)>=c||h>v((a-b)/s))&&y("overflow"),b+=h*s,!(h<(d=l<=_?
1:l>=_+u?u:l-_));l+=c)s>v(a/(f=c-d))&&y("overflow"),s*=f;_=A(b-
o,t=g.length+1,0==o),v(b/t)>a-w&&y("overflow"),w+=v(b/t),b%=t,g.splice(b+
+,0,w)}return S(g)}function O(e){var
t,n,r,i,o,s,l,h,d,f,p,g,m,w,_,S=[];for(g=(e=E(e)).length,t=128,n=0,o=72,s=0;s<g;+
+s)(p=e[s])<128&&S.push(b(p));for(r=i=S.length,i&&S.push("-");r<g;)
{for(l=a,s=0;s<g;++s)(p=e[s])>=t&&p<l&&(l=p);for(l-t>v((a-n)/
(m=r+1))&&y("overflow"),n+=(l-t)*m,t=l,s=0;s<g;++s)if((p=e[s])<t&&+
+n>a&&y("overflow"),p==t){for(h=n,d=c;!(h<(f=d<=o?1:d>=o+u?u:d-o));d+=c)_=h-f,w=c-
f,S.push(b(T(f+_%w,0))),h=v(_/w);S.push(b(T(h,0))),o=A(n,m,r==i),n=0,++r}++n,+
+t}return S.join("")}s={version:"1.3.2",ucs2:
{decode:E,encode:S},decode:C,encode:O,toASCII:function(e){return _(e,(function(e)
{return f.test(e)?"xn--"+O(e):e}))},toUnicode:function(e){return _(e,(function(e)
{return d.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return
s}.call(t,n,t,e))||(e.exports=r)}()},883:(e,t,n)=>{"use strict";var
r=n(59639),i=n(25225);function o()
{this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,
this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=nu
ll,this.path=null,this.href=null}t.Qc=y,t.WU=function(e){return
i.isString(e)&&(e=y(e)),e instanceof o?e.format():o.prototype.format.call(e)};var
s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?
$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\
t"]),l=["'"].concat(u),h=["%","/","?",";","#"].concat(l),d=["/","?","#"],f=/^[+a-
z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!
0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!
0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!
0},b=n(56642);function y(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var
r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!
i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof
e);var o=e.indexOf("?"),a=-1!
==o&&o<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var
y=e=u.join(a);if(y=y.trim(),!n&&1===e.split("#").length){var
w=c.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?
(this.search=w[2],this.query=t?
b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query
={}),this}var _=s.exec(y);if(_){var
E=(_=_[0]).toLowerCase();this.protocol=E,y=y.substr(_.length)}if(n||_||y.match(/
^\/\/[^@\/]+@[^@\/]+/)){var S="//"===y.substr(0,2);!S||_&&m[_]||
(y=y.substr(2),this.slashes=!0)}if(!m[_]&&(S||_&&!v[_])){for(var T,A,C=-
1,O=0;O<d.length;O++)-1!==(x=y.indexOf(d[O]))&&(-1===C||x<C)&&(C=x);for(-1!==(A=-
1===C?
y.lastIndexOf("@"):y.lastIndexOf("@",C))&&(T=y.slice(0,A),y=y.slice(A+1),this.auth=
decodeURIComponent(T)),C=-1,O=0;O<h.length;O++){var x;-1!==(x=y.indexOf(h[O]))&&(-
1===C||x<C)&&(C=x)}-
1===C&&(C=y.length),this.host=y.slice(0,C),y=y.slice(C),this.parseHost(),this.hostn
ame=this.hostname||"";var
I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var
P=this.hostname.split(/\./),D=(O=0,P.length);O<D;O++){var k=P[O];if(k&&!k.match(f))
{for(var R="",M=0,N=k.length;M<N;M++)k.charCodeAt(M)>127?R+="x":R+=k[M];if(!
R.match(f)){var
L=P.slice(0,O),F=P.slice(O+1),j=k.match(p);j&&(L.push(j[1]),F.unshift(j[2])),F.leng
th&&(y="/"+F.join(".")
+y),this.hostname=L.join(".");break}}}this.hostname.length>255?
this.hostname="":this.hostname=this.hostname.toLowerCase(),I||
(this.hostname=r.toASCII(this.hostname));var
B=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+B,this.href+=this.host
,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!
==y[0]&&(y="/"+y))}if(!g[E])for(O=0,D=l.length;O<D;O++){var H=l[O];if(-1!
==y.indexOf(H)){var
G=encodeURIComponent(H);G===H&&(G=escape(H)),y=y.split(H).join(G)}}var
z=y.indexOf("#");-1!==z&&(this.hash=y.substr(z),y=y.slice(0,z));var
V=y.indexOf("?");if(-1!==V?
(this.search=y.substr(V),this.query=y.substr(V+1),t&&(this.query=b.parse(this.query
)),y=y.slice(0,V)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[E]&&thi
s.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search)
{B=this.pathname||"";var W=this.search||"";this.path=B+W}return
this.href=this.format(),this},o.prototype.format=function(){var
e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var
t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,s="";this.host?
o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?
this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.i
sObject(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));va
r a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||
(!t||v[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||
(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+
(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+
(a=a.replace("#","%23"))+r},o.prototype.resolve=function(e){return
this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e)
{if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new
o,r=Object.keys(this),s=0;s<r.length;s++){var
a=r[s];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return
n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var
c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(n[l]=e[l])}return
v[n.protocol]&&n.hostname&&!
n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!
==n.protocol){if(!v[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var
f=h[d];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||
m[e.protocol])n.pathname=e.pathname;else{for(var
p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||
(e.host=""),e.hostname||(e.hostname=""),""!
==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=
e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||
e.host,n.port=e.port,n.pathname||n.search){var
g=n.pathname||"",b=n.search||"";n.path=g+b}return n.slashes=n.slashes||
e.slashes,n.href=n.format(),n}var
y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||
e.pathname&&"/"===e.pathname.charAt(0),_=w||y||
n.host&&e.pathname,E=_,S=n.pathname&&n.pathname.split("/")||
[],T=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!
v[n.protocol]);if(T&&(n.hostname="",n.port=null,n.host&&(""===S[0]?
S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e
.host&&(""===p[0]?
p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===S[0])),w)n.host=e
.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?
e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=p;else if(p.length)S||
(S=[]),S.pop(),S=S.concat(p),n.search=e.search,n.query=e.query;else if(!
i.isNullOrUndefined(e.search))return T&&(n.hostname=n.host=S.shift(),(I=!!
(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hos
tname=I.shift())
),n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||
(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!
S.length)return n.pathname=null,n.search?
n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=S.slice(-1)
[0],C=(n.host||e.host||
S.length>1)&&("."===A||".."===A)||""===A,O=0,x=S.length;x>=0;x--)"."===(A=S[x])?
S.splice(x,1):".."===A?(S.splice(x,1),O++):O&&(S.splice(x,1),O--);if(!_&&!
E)for(;O--;O)S.unshift("..");!_||""===S[0]||S[0]&&"/"===S[0].charAt(0)||
S.unshift(""),C&&"/"!==S.join("/").substr(-1)&&S.push("");var I,P=""===S[0]||
S[0]&&"/"===S[0].charAt(0);return T&&(n.hostname=n.host=P?"":S.length?S.shift():"",
(I=!!
(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hos
tname=I.shift())),(_=_||n.host&&S.length)&&!P&&S.unshift(""),S.length?
n.pathname=S.join("/"):
(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||
(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||
n.auth,n.slashes=n.slashes||
e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var
e=this.host,t=a.exec(e);t&&(":"!
==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-
t.length)),e&&(this.hostname=e)}},25225:e=>{"use
strict";e.exports={isString:function(e){return"string"==typeof
e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e)
{return null===e},isNullOrUndefined:function(e){return null==e}}},82394:
(e,t,n)=>{e.exports=n(85757).Observable},85757:(e,t)=>{"use strict";function n(e,t)
{if(!(e instanceof t))throw new TypeError("Cannot call a class as a
function")}function r(e,t){for(var n=0;n<t.length;n++){var
r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!
0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return
t&&r(e.prototype,t),n&&r(e,n),e}t.Observable=void 0;var o=function()
{return"function"==typeof Symbol},s=function(e){return
o()&&Boolean(Symbol[e])},a=function(e){return s(e)?Symbol[e]:"@@"+e};o()&&!
s("observable")&&(Symbol.observable=Symbol("observable"));var
c=a("iterator"),u=a("observable"),l=a("species");function h(e,t){var
n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a
function");return n}}function d(e){var t=e.constructor;return void 0!
==t&&null===(t=t[l])&&(t=void 0),void 0!==t?t:E}function f(e){return e instanceof
E}function p(e){p.log?p.log(e):setTimeout((function(){throw e}))}function g(e)
{Promise.resolve().then((function(){try{e()}catch(e){p(e)}}))}function m(e){var
t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof
t)t();else{var n=h(t,"unsubscribe");n&&n.call(t)}}catch(e){p(e)}}function v(e)
{e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e,t,n)
{e._state="running";var r=e._observer;try{var i=h(r,t);switch(t)
{case"next":i&&i.call(r,n);break;case"error":if(v(e),!i)throw
n;i.call(r,n);break;case"complete":v(e),i&&i.call(r)}}catch(e)
{p(e)}"closed"===e._state?m(e):"running"===e._state&&(e._state="ready")}function
y(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!
==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void g((function()
{return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var
n=0;n<t.length&&(b(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void
b(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,r)
{n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void
0,this._state="initializing";var i=new _(this);try{this._cleanup=r.call(void
0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return
i(e,[{key:"unsubscribe",value:function(){"closed"!
==this._state&&(v(this),m(this))}},{key:"closed",get:function()
{return"closed"===this._state}}]),e}(),_=function(){function e(t)
{n(this,e),this._subscription=t}return i(e,[{key:"next",value:function(e)
{y(this._subscription,"next",e)}},{key:"error",value:function(e)
{y(this._subscription,"error",e)}},{key:"complete",value:function()
{y(this._subscription,"complete")}},{key:"closed",get:function()
{return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t)
{if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called
as a function");if("function"!=typeof t)throw new TypeError("Observable initializer
must be a function");this._subscriber=t}return i(e,
[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||
(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},
{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r)
{if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e)
{r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a
function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var
t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return
new(d(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e)
{return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function()
{n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!
=typeof e)throw new TypeError(e+" is not a function");return new(d(this))
((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e)
{return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function()
{n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!
=typeof e)throw new TypeError(e+" is not a function");var
n=d(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return
t.subscribe({next:function(t){var s=!i;if(i=!0,!s||r)try{o=e(o,t)}catch(e){return
n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!
r)return n.error(new TypeError("Cannot reduce an empty
sequence"));n.next(o),n.complete()}})}))}},{key:"concat",value:function(){for(var
e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var
i=d(this);return new i((function(t){var r,o=0;return function e(s)
{r=s.subscribe({next:function(e){t.next(e)},error:function(e)
{t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o+
+]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},
{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new
TypeError(e+" is not a function");var n=d(this);return new n((function(r){var
i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var
o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e)
{r.error(e)},complete:function(){var
e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e)
{r.error(e)},complete:function(){s()}});function s()
{o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e)
{return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return
this}}],[{key:"from",value:function(t){var n="function"==typeof this?
this:e;if(null==t)throw new TypeError(t+" is not an object");var r=h(t,u);if(r){var
i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return
f(i)&&i.constructor===n?i:new n((function(e){return
i.subscribe(e)}))}if(s("iterator")&&(r=h(t,c)))return new n((function(e)
{g((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var s,a=r.call(t)
[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var
c=s.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||
null==a.return||a.return()}finally{if(i)throw
o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){g((function()
{if(!e.closed){for(var n=0;n<t.length;+
+n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is
not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new
Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)
((function(e){g((function(){if(!e.closed){for(var t=0;t<n.length;+
+t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:l,get:function()
{return this}}]),e}
();t.Observable=E,o()&&Object.defineProperty(E,Symbol("extensions"),{value:
{symbol:u,hostReportError:p},configurable:!0})},98151:(e,t,n)=>{"use strict";var
r,i,o=n(17602);function s(e,t,n){if(e._observer)a(e._observer,t,n);else
if(e._observers){var r=[];e._observers.forEach((function(e)
{r.push(e)})),r.forEach((function(e){a(e,t,n)}))}}function a(e,t,n){if(!
e.closed)switch(t){case"next":return e.next(n);case"error":return
e.error(n);case"complete":return e.complete(n)}}function c(e){return e._observer||
e._observers&&e._observers.size>0}function u(e){var
t=this;this._observer=null,this._observers=null,this._observable=new o((function(n)
{return function(e,t){!c(e)&&t&&t.start&&t.start()}(t,e),function(e,t)
{e._observers?e._observers.add(t):e._observer?(e._observers=new
Set,e._observers.add(e._observer),e._observers.add(t),e._observer=null):e._observer
=t}(t,n),function(){!function(e,t){e._observers?
e._observers.delete(t):e._observer===t&&(e._observer=null)}(t,n),function(e,t){!
c(e)&&t&&t.pause&&t.pause()}(t,e)}}))}r=u.prototype,i={get observable(){return
this._observable},get observed(){return c(this)},next:function(e)
{s(this,"next",e)},error:function(e){s(this,"error",e)},complete:function(e)
{s(this,"complete",e)}},Object.keys(i).forEach((function(e){var
t=Object.getOwnPropertyDescriptor(i,e);t.enumerable=!
1,Object.defineProperty(r,e,t)})),e.exports=u},17602:
(e,t,n)=>{e.exports=n(98581).Observable},98581:(e,t,n)=>{"use
strict";e=n.nmd(e),function(e,t){function n(e){return"function"==typeof
Symbol&&Boolean(Symbol[e])}function r(e){return n(e)?Symbol[e]:"@@"+e}function i(e)
{setTimeout((function(){throw e}))}function o(e,t){var n=e[t];if(null!=n)
{if("function"!=typeof n)throw new TypeError(n+" is not a function");return
n}}function s(e){var t=e.constructor;return void 0!
==t&&null===(t=t[r("species")])&&(t=void 0),void 0!==t?t:d}function a(e,t)
{Object.keys(t).forEach((function(n){var
r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!
1,Object.defineProperty(e,n,r)}))}function c(e){var t=e._cleanup;if(t)
{e._cleanup=void 0;try{t()}catch(e){i(e)}}}function u(e){return void
0===e._observer}function l(e,t){if(Object(e)!==e)throw new TypeError("Observer must
be an object");this._cleanup=void 0,this._observer=e;try{var
n=o(e,"start");n&&n.call(e,this)}catch(e){i(e)}if(!u(this)){e=new h(this);try{var
r=t.call(void 0,e);if(null!=r){if("function"==typeof r.unsubscribe)s=r,r=function()
{s.unsubscribe()};else if("function"!=typeof r)throw new TypeError(r+" is not a
function");this._cleanup=r}}catch(t){return void e.error(t)}u(this)&&c(this)}var
s}function h(e){this._subscription=e}function d(e){if(!(this instanceof d))throw
new TypeError("Observable cannot be called as a function");if("function"!=typeof
e)throw new TypeError("Observable initializer must be a
function");this._subscriber=e}"function"!=typeof Symbol||Symbol.observable||
(Symbol.observable=Symbol("observable")),a(l.prototype={},{get closed(){return
u(this)},unsubscribe:function(){var e;u(e=this)||(e._observer=void
0,c(e))}}),a(h.prototype={},{get closed(){return
u(this._subscription)},next:function(e){var t=this._subscription;if(!u(t)){var
n=t._observer;try{var r=o(n,"next");r&&r.call(n,e)}catch(e)
{i(e)}}},error:function(e){var t=this._subscription;if(u(t))i(e);else{var
n=t._observer;t._observer=void 0;try{var r=o(n,"error");if(!r)throw
e;r.call(n,e)}catch(e){i(e)}c(t)}},complete:function(){var
e=this._subscription;if(!u(e)){var t=e._observer;e._observer=void 0;try{var
n=o(t,"complete");n&&n.call(t)}catch(e){i(e)}c(e)}}}),a(d.prototype,
{subscribe:function(e){for(var t=[],n=1;n<arguments.length;+
+n)t.push(arguments[n]);return"function"==typeof e?
e={next:e,error:t[0],complete:t[1]}:"object"==typeof e&&null!==e||(e={}),new
l(e,this._subscriber)},forEach:function(e){var t=this;return new
Promise((function(n,r){if("function"!=typeof e)return Promise.reject(new
TypeError(e+" is not a
function"));t.subscribe({_subscription:null,start:function(e){if(Object(e)!
==e)throw new TypeError(e+" is not an
object");this._subscription=e},next:function(t){var n=this._subscription;if(!
n.closed)try{e(t)}catch(e)
{r(e),n.unsubscribe()}},error:r,complete:n})}))},map:function(e){var
t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return
new(s(this))((function(n){return t.subscribe({next:function(t){if(!n.closed)
{try{t=e(t)}catch(e){return n.error(e)}n.next(t)}},error:function(e)
{n.error(e)},complete:function(){n.complete()}})}))},filter:function(e){var
t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return
new(s(this))((function(n){return t.subscribe({next:function(t){if(!n.closed)
{try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)}},error:function(e)
{n.error(e)},complete:function(){n.complete()}})}))},reduce:function(e){var
t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var
n=s(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return
t.subscribe({next:function(t){if(!n.closed){var s=!i;if(i=!0,!s||
r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t}},error:function(e)
{n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot
reduce an empty
sequence"));n.next(o),n.complete()}})}))}}),Object.defineProperty(d.prototype,r("ob
servable"),{value:function(){return this},writable:!0,configurable:!0}),a(d,
{from:function(e){var t="function"==typeof this?this:d;if(null==e)throw new
TypeError(e+" is not an object");var i=o(e,r("observable"));if(i){var
s=i.call(e);if(Object(s)!==s)throw new TypeError(s+" is not an object");return
s.constructor===t?s:new t((function(e){return
s.subscribe(e)}))}if(n("iterator")&&(i=o(e,r("iterator"))))return new
t((function(t){for(var n,r=i.call(e)[Symbol.iterator]();!(n=r.next()).done;){var
o=n.value;if(t.next(o),t.closed)return}t.complete()}));if(Array.isArray(e))return
new t((function(t){for(var n=0;n<e.length;+
+n)if(t.next(e[n]),t.closed)return;t.complete()}));throw new TypeError(e+" is not
observable")},of:function(){for(var e=[],t=0;t<arguments.length;+
+t)e.push(arguments[t]);return new("function"==typeof this?this:d)((function(t)
{for(var n=0;n<e.length;+
+n)if(t.next(e[n]),t.closed)return;t.complete()}))}}),Object.defineProperty(d,r("sp
ecies"),{get:function(){return this},configurable:!
0}),Object.defineProperty(d,"extensions",{value:
{observableSymbol:r("observable"),setHostReportError:function(e)
{i=e}}}),e.Observable=d}(t)},78118:function(e){e.exports=function(){"use
strict";function e(e){return e+.5|0}const
t=(e,t,n)=>Math.max(Math.min(e,n),t);function n(n){return
t(e(2.55*n),0,255)}function r(n){return t(e(255*n),0,255)}function i(n){return
t(e(n/2.55)/100,0,1)}function o(n){return t(e(100*n),0,100)}const
s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,
c:12,d:13,e:14,f:15},a=[..."0123456789ABCDEF"],c=e=>a[15&e],u=e=>a[(240&e)>>4]+a[15
&e],l=e=>(240&e)>>4==(15&e);function h(e){var
t,n=e.length;return"#"===e[0]&&(4===n||5===n?
t={r:255&17*s[e[1]],g:255&17*s[e[2]],b:255&17*s[e[3]],a:5===n?17*s[e[4]]:255}:7!
==n&&9!==n||(t={r:s[e[1]]<<4|s[e[2]],g:s[e[3]]<<4|s[e[4]],b:s[e[5]]<<4|
s[e[6]],a:9===n?s[e[7]]<<4|s[e[8]]:255})),t}function d(e){var
t=(e=>l(e.r)&&l(e.g)&&l(e.b)&&l(e.a))(e)?c:u;return e?"#"+t(e.r)+t(e.g)+t(e.b)+
((e,t)=>e<255?t(e):"")(e.a,t):void 0}const f=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)
(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)
$/;function p(e,t,n){const r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-
r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function g(e,t,n){const
r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-
i,1),0);return[r(5),r(3),r(1)]}function m(e,t,n){const r=p(e,1,.5);let
i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return
r}function v(e){const
t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),s=(i+o)/2;let
a,c,u;return i!==o&&(u=i-o,c=s>.5?u/(2-i-o):u/(i+o),a=function(e,t,n,r,i){return
e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}(t,n,r,u,i),a=60*a+.5),[0|a,c||
0,s]}function b(e,t,n,i){return(Array.isArray(t)?
e(t[0],t[1],t[2]):e(t,n,i)).map(r)}function y(e,t,n){return b(p,e,t,n)}function
w(e,t,n){return b(m,e,t,n)}function _(e,t,n){return b(g,e,t,n)}function E(e)
{return(e%360+360)%360}function S(e){const t=f.exec(e);let i,o=255;if(!
t)return;t[5]!==i&&(o=t[6]?n(+t[5]):r(+t[5]));const
s=E(+t[2]),a=+t[3]/100,c=+t[4]/100;return i="hwb"===t[1]?w(s,a,c):"hsv"===t[1]?
_(s,a,c):y(s,a,c),{r:i[0],g:i[1],b:i[2],a:o}}function T(e,t){var
n=v(e);n[0]=E(n[0]+t),n=y(n),e.r=n[0],e.g=n[1],e.b=n[2]}function A(e){if(!
e)return;const t=v(e),n=t[0],r=o(t[1]),s=o(t[2]);return e.a<255?`hsla(${n}, ${r}%,
${s}%, ${i(e.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const
C={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"o
r",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de
",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},O={OiceXe:"f0f8ff",anti
quewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque
:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",bu
rlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cS
nflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b
8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFt
a:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9
967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet
:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:
"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRs
bSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000
",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdi
go:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF
:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"
fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsH
gYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ff
ffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",Vaqu
amarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68e
e",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5f
ffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e
6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOe
gTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd
5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN
:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbP
wn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna
:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",s
now:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8"
,tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f
5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let x;function I(e){x||(x=function(){const
e={},t=Object.keys(O),n=Object.keys(C);let r,i,o,s,a;for(r=0;r<t.length;r++)
{for(s=a=t[r],i=0;i<n.length;i+
+)o=n[i],a=a.replace(o,C[o]);o=parseInt(O[s],16),e[a]=[o>>16&255,o>>8&255,255&o]}re
turn e}(),x.transparent=[0,0,0,0]);const t=x[e.toLowerCase()];return
t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const P=/^rgba?\(\s*([-+.\d]+)
(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)
$/;function D(e){const r=P.exec(e);let i,o,s,a=255;if(r){if(r[7]!==i){const
e=+r[7];a=r[8]?n(e):t(255*e,0,255)}return i=+r[1],o=+r[3],s=+r[5],i=255&(r[2]?
n(i):t(i,0,255)),o=255&(r[4]?n(o):t(o,0,255)),s=255&(r[6]?n(s):t(s,0,25
5)),{r:i,g:o,b:s,a}}}function k(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b},
${i(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const R=e=>e<=.0031308?
12.92*e:1.055*Math.pow(e,1/2.4)-.055,M=e=>e<=.04045?e/12.92:Math.pow((e+.055)/
1.055,2.4);function N(e,t,n){if(e){let r=v(e);r[t]=Math.max(0,Math.min(r[t]
+r[t]*n,0===t?360:1)),r=y(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function L(e,t){return e?
Object.assign(t||{},e):e}function F(e){var t={r:0,g:0,b:0,a:255};return
Array.isArray(e)?
e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=r(e[3]))):(t=L(e,
{r:0,g:0,b:0,a:1})).a=r(t.a),t}class j{constructor(e){if(e instanceof j)return
e;const t=typeof e;let n;var r;"object"===t?n=F(e):"string"===t&&(n=h(e)||I(e)||
("r"===(r=e).charAt(0)?D(r):S(r))),this._rgb=n,this._valid=!!n}get valid(){return
this._valid}get rgb(){var e=L(this._rgb);return e&&(e.a=i(e.a)),e}set rgb(e)
{this._rgb=F(e)}rgbString(){return this._valid?k(this._rgb):void 0}hexString()
{return this._valid?d(this._rgb):void 0}hslString(){return this._valid?
A(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let i;const
o=t===i?.5:t,s=2*o-1,a=n.a-r.a,c=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;i=1-
c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=o*n.a+(1
-o)*r.a,this.rgb=n}return this}interpolate(e,t){return
e&&(this._rgb=function(e,t,n){const
o=M(i(e.r)),s=M(i(e.g)),a=M(i(e.b));return{r:r(R(o+n*(M(i(t.r))-
o))),g:r(R(s+n*(M(i(t.g))-s))),b:r(R(a+n*(M(i(t.b))-a))),a:e.a+n*(t.a-e.a)}}
(this._rgb,e._rgb,t)),this}clone(){return new j(this.rgb)}alpha(e){return
this._rgb.a=r(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const
t=this._rgb,n=e(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=n,this}opaquer(e){return
this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-
e.g,e.b=255-e.b,this}lighten(e){return N(this._rgb,2,e),this}darken(e){return
N(this._rgb,2,-e),this}saturate(e){return N(this._rgb,1,e),this}desaturate(e)
{return N(this._rgb,1,-e),this}rotate(e){return T(this._rgb,e),this}}function B(e)
{return new j(e)}var
U=Object.freeze({__proto__:null,Color:j,default:B,round:e,lim:t,p2b:n,b2p:function(
n){return
t(e(n/2.55),0,100)},n2b:r,b2n:i,n2p:o,hexParse:h,hexString:d,rgb2hsl:v,hsl2rgb:y,hw
b2rgb:w,hsv2rgb:_,hueParse:S,rotate:T,hslString:A,nameParse:I,rgbParse:D,rgbString:
k});return Object.assign(B,U)}()},15522:(e,t,n)=>{"use
strict";const{VOID:r,PRIMITIVE:i,ARRAY:o,OBJECT:s,DATE:a,REGEXP:c,MAP:u,SET:l,ERROR
:h,BIGINT:d}=n(64234),f="object"==typeof self?
self:globalThis;t.deserialize=e=>((e,t)=>{const
n=(t,n)=>(e.set(n,t),t),p=g=>{if(e.has(g))return e.get(g);const[m,v]=t[g];switch(m)
{case i:case r:return n(v,g);case o:{const e=n([],g);for(const t of
v)e.push(p(t));return e}case s:{const e=n({},g);for(const[t,n]of
v)e[p(t)]=p(n);return e}case a:return n(new Date(v),g);case c:
{const{source:e,flags:t}=v;return n(new RegExp(e,t),g)}case u:{const e=n(new
Map,g);for(const[t,n]of v)e.set(p(t),p(n));return e}case l:{const e=n(new
Set,g);for(const t of v)e.add(p(t));return e}case h:
{const{name:e,message:t}=v;return n(new f[e](t),g)}case d:return
n(BigInt(v),g);case"BigInt":return n(Object(BigInt(v)),g)}return n(new f[m]
(v),g)};return p})(new Map,e)(0)},89138:(e,t,n)=>{"use
strict";const{deserialize:r}=n(15522),
{serialize:i}=n(36451);Object.defineProperty(t,"__esModule",{value:!
0}).default="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?
r(i(e,t)):structuredClone(e):(e,t)=>r(i(e,t)),t.deserialize=r,t.serialize=i},36451:
(e,t,n)=>{"use
strict";const{VOID:r,PRIMITIVE:i,ARRAY:o,OBJECT:s,DATE:a,REGEXP:c,MAP:u,SET:l,ERROR
:h,BIGINT:d}=n(64234),f="",{toString:p}={},{keys:g}=Object,m=e=>{const t=typeof
e;if("object"!==t||!e)return[i,t];const n=p.call(e).slice(8,-1);switch(n)
{case"Array":return[o,f];case"Object":return[s,f];case"Date":return[a,f];case"RegEx
p":return[c,f];case"Map":return[u,f];case"Set":return[l,f]}return
n.includes("Array")?[o,n]:n.includes("Error")?[h,n]:
[s,n]},v=([e,t])=>e===i&&("function"===t||"symbol"===t);t.serialize=(e,
{json:t,lossy:n}={})=>{const h=[];return((e,t,n,h)=>{const f=(e,t)=>{const
r=h.push(e)-1;return n.set(t,r),r},p=h=>{if(n.has(h))return
n.get(h);let[b,y]=m(h);switch(b){case i:{let t=h;switch(y)
{case"bigint":b=d,t=h.toString();break;case"function":case"symbol":if(e)throw new
TypeError("unable to serialize "+y);t=null;break;case"undefined":return
f([r],h)}return f([b,t],h)}case o:{if(y)return f([y,[...h]],h);const
e=[],t=f([b,e],h);for(const t of h)e.push(p(t));return t}case s:{if(y)switch(y)
{case"BigInt":return
f([y,h.toString()],h);case"Boolean":case"Number":case"String":return
f([y,h.valueOf()],h)}if(t&&"toJSON"in h)return p(h.toJSON());const
n=[],r=f([b,n],h);for(const t of g(h))!e&&v(m(h[t]))||n.push([p(t),p(h[t])]);return
r}case a:return f([b,h.toISOString()],h);case c:{const{source:e,flags:t}=h;return
f([b,{source:e,flags:t}],h)}case u:{const t=[],n=f([b,t],h);for(const[n,r]of h)
(e||!v(m(n))&&!v(m(r)))&&t.push([p(n),p(r)]);return n}case l:{const
t=[],n=f([b,t],h);for(const n of h)!e&&v(m(n))||t.push(p(n));return
n}}const{message:w}=h;return f([b,{name:y,message:w}],h)};return p})(!(t||n),!!
t,new Map,h)(e),h}},64234:(e,t)=>{"use strict";t.VOID=-
1,t.PRIMITIVE=0,t.ARRAY=1,t.OBJECT=2,t.DATE=3,t.REGEXP=4,t.MAP=5,t.SET=6,t.ERROR=7,
t.BIGINT=8},90625:(e,t,n)=>{const r=n(98795),
{Chart:i,registerables:o}=r;i.register(...o),e.exports=Object.assign(i,r)},98795:
(e,t,n)=>{"use strict";var r=n(23569);n(78118);class i{constructor()
{this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void
0}_notify(e,t,n,r){const
i=t.listeners[r],o=t.duration;i.forEach((r=>r({chart:e,initial:t.initial,numSteps:o
,currentStep:Math.min(n-t.start,o)})))}_refresh(){this._request||(this._running=!
0,this._request=r.requestAnimFrame.call(window,
(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(
e=Date.now()){let t=0;this._charts.forEach(((n,r)=>{if(!n.running||!
n.items.length)return;const i=n.items;let o,s=i.length-1,a=!1;for(;s>=0;--
s)o=i[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(e),a=!0):
(i[s]=i[i.length-
1],i.pop());a&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!
1,this._notify(r,n,e,"complete"),n.initial=!
1),t+=i.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const
t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:
[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n)
{this._getAnims(e).listeners[t].push(n)}add(e,t)
{t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return
this._getAnims(e).items.length>0}start(e){const
t=this._charts.get(e);t&&(t.running=!
0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),
this._refresh())}running(e){if(!this._running)return!1;const
t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const
t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-
1;for(;r>=0;--
r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return
this._charts.delete(e)}}var o=new i;const s="transparent",a={boolean:(e,t,n)=>n>.5?
t:e,color(e,t,n){const i=r.color(e||s),o=i.valid&&r.color(t||s);return o&&o.valid?
o.mix(i,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class c{constructor(e,t,n,i)
{const o=t[n];i=r.resolve([e.to,i,o,e.from]);const
s=r.resolve([e.from,o,i]);this._active=!0,this._fn=e.fn||a[e.type||typeof
s],this._easing=r.effects[e.easing]||
r.effects.linear,this._start=Math.floor(Date.now()+(e.delay||
0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!
e.loop,this._target=t,this._prop=n,this._from=s,this._to=i,this._promises=void
0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!
1);const i=this._target[this._prop],o=n-this._start,s=this._duration-
o;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,th
is._loop=!!
e.loop,this._to=r.resolve([e.to,t,i,e.from]),this._from=r.resolve([e.from,i,t])}}ca
ncel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!
1))}tick(e){const t=e-
this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,s=this._to;let
a;if(this._active=i!==s&&(o||t<n),!this._active)return this._target[r]=s,void
this._notify(!0);t<0?this._target[r]=i:(a=t/n%2,a=o&&a>1?2-
a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(i,s,a))}wait
(){const e=this._promises||(this._promises=[]);return new
Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const
t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class
u{constructor(e,t){this._chart=e,this._properties=new
Map,this.configure(t)}configure(e){if(!r.isObject(e))return;const
t=Object.keys(r.defaults.animation),n=this._properties;Object.getOwnPropertyNames(e
).forEach((i=>{const o=e[i];if(!r.isObject(o))return;const s={};for(const e of
t)s[e]=o[e];(r.isArray(o.properties)&&o.properties||[i]).forEach((e=>{e!
==i&&n.has(e)||n.set(e,s)}))}))}_animateOptions(e,t){const
n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(n)return n.
$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:
{}})),n;e.options=t}(e,n);if(!r)return[];const i=this._createAnimations(r,n);return
n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++)
{const i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}(e.options.
$animations,n).then((()=>{e.options=n}),(()=>{})),i}_createAnimations(e,t){const
n=this._properties,r=[],i=e.$animations||(e.
$animations={}),o=Object.keys(t),s=Date.now();let a;for(a=o.length-1;a>=0;--a)
{const u=o[a];if("$"===u.charAt(0))continue;if("options"===u)
{r.push(...this._animateOptions(e,t));continue}const l=t[u];let h=i[u];const
d=n.get(u);if(h){if(d&&h.active())
{h.update(d,l,s);continue}h.cancel()}d&&d.duration?(i[u]=h=new
c(d,e,u,l),r.push(h)):e[u]=l}return r}update(e,t)
{if(0===this._properties.size)return void Object.assign(e,t);const
n=this._createAnimations(e,t);return n.length?(o.add(this._chart,n),!0):void
0}}function l(e,t){const n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void
0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function h(e,t){const
n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;+
+i)n.push(r[i].index);return n}function d(e,t,n,i={}){const
o=e.keys,s="single"===i.mode;let a,c,u,l;if(null!==t){for(a=0,c=o.length;a<c;++a)
{if(u=+o[a],u===n){if(i.all)continue;break}l=e.values[u],r.isNumberFinite(l)&&(s||
0===t||r.sign(t)===r.sign(l))&&(t+=l)}return t}}function f(e,t){const
n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function p(e,t,n)
{const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function g(e,t,n,r){for(const i of
t.getMatchingVisibleMetas(r).reverse()){const t=e[i.index];if(n&&t>0||!
n&&t<0)return i.index}return null}function m(e,t)
{const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),
{iScale:o,vScale:s,index:a}=r,c=o.axis,u=s.axis,l=function(e,t,n){return`${e.id}.$
{t.id}.${n.stack||n.type}`}(o,s,r),h=t.length;let d;for(let e=0;e<h;++e){const
n=t[e],{[c]:o,[u]:h}=n;d=(n._stacks||(n._stacks={}))
[u]=p(i,l,o),d[a]=h,d._top=g(d,s,!0,r.type),d._bottom=g(d,s,!1,r.type),
(d._visualValues||(d._visualValues={}))[a]=h}}function v(e,t){const
n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function b(e,t)
{const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||
e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r]
[n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!
==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const
y=e=>"reset"===e||"none"===e,w=(e,t)=>t?e:Object.assign({},e);class _{static
defaults={};static datasetElementType=null;static
dataElementType=null;constructor(e,t)
{this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta
=this.getMeta(),this._type=this._cachedMeta.type,this.options=void
0,this._parsing=!1,this._data=void 0,this._objectData=void
0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void
0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void
0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.data
ElementType=new.target.dataElementType,this.initialize()}initialize(){const
e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=f(e.vScale,e),this
.addElements(),this.options.fill&&!
this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option
without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin
and make sure it is not disabled in the options")}updateIndex(e){this.index!
==e&&b(this._cachedMeta),this.index=e}linkScales(){const
e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,r)=>"x"===e?t:"r"===e?
r:n,o=t.xAxisID=r.valueOrDefault(n.xAxisID,v(e,"x")),s=t.yAxisID=r.valueOrDefault(n
.yAxisID,v(e,"y")),a=t.rAxisID=r.valueOrDefault(n.rAxisID,v(e,"r")),c=t.indexAxis,u
=t.iAxisID=i(c,o,s,a),l=t.vAxisID=i(c,s,o,a);t.xScale=this.getScaleForId(o),t.yScal
e=this.getScaleForId(s),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(
u),t.vScale=this.getScaleForId(l)}getDataset(){return
this.chart.data.datasets[this.index]}getMeta(){return
this.chart.getDatasetMeta(this.index)}getScaleForId(e){return
this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return
e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const
e=this._cachedMeta;this._data&&r.unlistenArrayEvents(this._data,this),e._stacked&&b
(e)}_dataCheck(){const e=this.getDataset(),t=e.data||
(e.data=[]),n=this._data;if(r.isObject(t))this._data=function(e){const
t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;+
+r)o=t[r],n[r]={x:o,y:e[o]};return n}(t);else if(n!==t){if(n)
{r.unlistenArrayEvents(n,this);const
e=this._cachedMeta;b(e),e._parsed=[]}t&&Object.isExtensible(t)&&r.listenArrayEvents
(t,this),this._syncList=[],this._data=t}}addElements(){const
e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new
this.datasetElementType)}buildOrUpdateElements(e){const
t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const
i=t._stacked;t._stacked=f(t.vScale,t),t.stack!==n.stack&&(r=!
0,b(t),t.stack=n.stack),this._resyncElements(e),(r||i!
==t._stacked)&&m(this,t._parsed)}configure(){const
e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDa
taset(),t,!
0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.pa
rsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,
{iScale:o,_stacked:s}=n,a=o.axis;let c,u,l,h=0===e&&t===i.length||
n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!
0,l=i;else{l=r.isArray(i[e])?this.parseArrayData(n,i,e,t):r.isObject(i[e])?
this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const
o=()=>null===u[a]||d&&u[a]<d[a];for(c=0;c<t;++c)n._parsed[c+e]=u=l[c],h&&(o()&&(h=!
1),d=u);n._sorted=h}s&&m(this,l)}parsePrimitiveData(e,t,n,r)
{const{iScale:i,vScale:o}=e,s=i.axis,a=o.axis,c=i.getLabels(),u=i===o,l=new
Array(r);let h,d,f;for(h=0,d=r;h<d;++h)f=h+n,l[h]={[s]:u||i.parse(c[f],f),
[a]:o.parse(t[f],f)};return l}parseArrayData(e,t,n,r)
{const{xScale:i,yScale:o}=e,s=new Array(r);let a,c,u,l;for(a=0,c=r;a<c;+
+a)u=a+n,l=t[u],s[a]={x:i.parse(l[0],u),y:o.parse(l[1],u)};return
s}parseObjectData(e,t,n,i){const{xScale:o,yScale:s}=e,
{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,u=new Array(i);let
l,h,d,f;for(l=0,h=i;l<h;+
+l)d=l+n,f=t[d],u[l]={x:o.parse(r.resolveObjectKey(f,a),d),y:s.parse(r.resolveObjec
tKey(f,c),d)};return u}getParsed(e){return
this._cachedMeta._parsed[e]}getDataElement(e){return
this._cachedMeta.data[e]}applyStack(e,t,n){const
r=this.chart,i=this._cachedMeta,o=t[e.axis];return d({keys:h(r,!
0),values:t._stacks[e.axis]._visualValues},o,i.index,
{mode:n})}updateRangeFromParsed(e,t,n,r){const i=n[t.axis];let o=null===i?
NaN:i;const
s=r&&n._stacks[t.axis];r&&s&&(r.values=s,o=d(r,i,this._cachedMeta.index)),e.min=Mat
h.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const
n=this._cachedMeta,i=n._parsed,o=n._sorted&&e===n.iScale,s=i.length,a=this._getOthe
rScale(e),c=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:h(n,!0),values:null})
(t,n,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},
{min:l,max:d}=function(e)
{const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?
t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(a);let f,p;function
g(){p=i[f];const t=p[a.axis];return!r.isNumberFinite(p[e.axis])||l>t||
d<t}for(f=0;f<s&&(g()||(this.updateRangeFromParsed(u,e,p,c),!o));++f);if(o)for(f=s-
1;f>=0;--f)if(!g()){this.updateRangeFromParsed(u,e,p,c);break}return
u}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let
i,o,s;for(i=0,o=t.length;i<o;++i)s=t[i]
[e.axis],r.isNumberFinite(s)&&n.push(s);return n}getMaxOverflow(){return!
1}getLabelAndValue(e){const
t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.ge
tLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(e
){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let
t,n,i,o;return r.isObject(e)?(t=e.top,n=e.right,i=e.bottom,o=e.left):t=n=i=o=e,
{top:t,right:n,bottom:i,left:o,disabled:!1===e}}
(r.valueOrDefault(this.options.clip,function(e,t,n){if(!1===n)return!1;const
r=l(e,n),i=l(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}
(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const
e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||
[],i=t.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||r.length-
s,c=this.options.drawActiveElementsOnTop;let
u;for(n.dataset&&n.dataset.draw(e,i,s,a),u=s;u<s+a;++u){const t=r[u];t.hidden||
(t.active&&c?o.push(t):t.draw(e,i))}for(u=0;u<o.length;+
+u)o[u].draw(e,i)}getStyle(e,t){const n=t?"active":"default";return void
0===e&&this._cachedMeta.dataset?
this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||
0,n)}getContext(e,t,n){const i=this.getDataset();let
o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.
$context||(t.$context=function(e,t,n){return r.createContext(e,{active:!
1,dataIndex:t,parsed:void 0,raw:void
0,element:n,index:t,mode:"default",type:"data"})}
(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=i.data[e],o.index=o.dataI
ndex=e}else o=this.$context||(this.$context=function(e,t){return r.createContext(e,
{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}
(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index
;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return
this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions
(e,t){return
this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t
="default",n){const
i="active"===t,o=this._cachedDataOpts,s=e+"-"+t,a=o[s],c=this.enableOptionSharing&&
r.defined(n);if(a)return w(a,c);const
u=this.chart.config,l=u.datasetElementScopeKeys(this._type,e),h=i?[`$
{e}Hover`,"hover",e,""]:
[e,""],d=u.getOptionScopes(this.getDataset(),l),f=Object.keys(r.defaults.elements[e
]),p=u.resolveNamedOptions(d,f,(()=>this.getContext(n,i,t)),h);return p.
$shared&&(p.$shared=c,o[s]=Object.freeze(w(p,c))),p}_resolveAnimations(e,t,n){const
r=this.chart,i=this._cachedDataOpts,o=`animation-${t}`,s=i[o];if(s)return s;let
a;if(!1!==r.options.animation){const
r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),o=r.getOptionScopes
(this.getDataset(),i);a=r.createResolver(o,this.getContext(e,n,t))}const c=new
u(r,a&&a.animations);return
a&&a._cacheable&&(i[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return
this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t)
{return!t||y(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const
n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions
(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),
{sharedOptions:i,includeOptions:o}}updateElement(e,t,n,r){y(r)?
Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t
,n){e&&!y(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r)
{e.active=r;const i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,
{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n)
{this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!
0)}_removeDatasetHoverStyle(){const
e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!
1)}_setDatasetHoverStyle(){const
e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!
0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of
this._syncList)this[e](t,n);this._syncList=[];const
r=n.length,i=t.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?
this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-
i)}_insertElements(e,t,n=!0){const r=this._cachedMeta,i=r.data,o=e+t;let s;const
a=e=>{for(e.length+=t,s=e.length-1;s>=o;s--)e[s]=e[s-t]};for(a(i),s=e;s<o;+
+s)i[s]=new
this.dataElementType;this._parsing&&a(r._parsed),this.parse(e,t),n&&this.updateElem
ents(i,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const
n=this._cachedMeta;if(this._parsing){const
r=n._parsed.splice(e,t);n._stacked&&b(n,r)}n.data.splice(e,t)}_sync(e)
{if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t]
(n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const
e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-
e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-
1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t)
{t&&this._sync(["_removeElements",e,t]);const n=arguments.length-
2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift()
{this._sync(["_insertElements",0,arguments.length])}}function E(e){const
t=e.iScale,n=function(e,t){if(!e._cache.$bar){const
n=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,r=n.length;t<r;t+
+)i=i.concat(n[t].controller.getAllParsedValues(e));e._cache.
$bar=r._arrayUnique(i.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let
i,o,s,a,c=t._length;const u=()=>{32767!==s&&-32768!
==s&&(r.defined(a)&&(c=Math.min(c,Math.abs(s-a)||c)),a=s)};for(i=0,o=n.length;i<o;+
+i)s=t.getPixelForValue(n[i]),u();for(a=void 0,i=0,o=t.ticks.length;i<o;+
+i)s=t.getPixelForTick(i),u();return c}function S(e,t,n,i){return r.isArray(e)?
function(e,t,n,r){const
i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let
c=s,u=a;Math.abs(s)>Math.abs(a)&&(c=a,u=s),t[n.axis]=u,t._custom={barStart:c,barEnd
:u,start:i,end:o,min:s,max:a}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function
T(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,c=[];let
u,l,h,d;for(u=n,l=n+r;u<l;++u)d=t[u],h={},h[i.axis]=a||
i.parse(s[u],u),c.push(S(d,h,o,u));return c}function A(e){return e&&void 0!
==e.barStart&&void 0!==e.barEnd}function C(e,t,n,r){let i=t.borderSkipped;const
o={};if(!i)return void(e.borderSkipped=o);if(!0===i)return
void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!
0});const{start:s,end:a,reverse:c,top:u,bottom:l}=function(e){let t,n,r,i,o;return
e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?
(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}
(e);"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||
0)===r?i=l:(o[O(l,s,a,c)]=!0,i=u)),o[O(i,s,a,c)]=!0,e.borderSkipped=o}function
O(e,t,n,r){var i,o,s;return r?(s=n,e=x(e=(i=e)===(o=t)?s:i===s?
o:i,n,t)):e=x(e,t,n),e}function x(e,t,n){return"start"===e?t:"end"===e?n:e}function
I(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class P extends
_{static id="bar";static defaults={datasetElementType:!
1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!
0,animations:{numbers:{type:"number",properties:
["x","y","base","width","height"]}}};static overrides={scales:{_index_:
{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!
0}}};parsePrimitiveData(e,t,n,r){return T(e,t,n,r)}parseArrayData(e,t,n,r){return
T(e,t,n,r)}parseObjectData(e,t,n,i){const{iScale:o,vScale:s}=e,
{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,u="x"===o.axis?a:c,l="x"===s.axis?
a:c,h=[];let d,f,p,g;for(d=n,f=n+i;d<f;+
+d)g=t[d],p={},p[o.axis]=o.parse(r.resolveObjectKey(g,u),d),h.push(S(r.resolveObjec
tKey(g,l),p,s,d));return h}updateRangeFromParsed(e,t,n,r)
{super.updateRangeFromParsed(e,t,n,r);const
i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math
.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const
t=this._cachedMeta,
{iScale:n,vScale:r}=t,i=this.getParsed(e),o=i._custom,s=A(o)?"["+o.start+",
"+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n
.axis]),value:s}}initialize(){this.enableOptionSharing=!
0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const
t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t
,n,i){const o="reset"===i,{index:s,_cachedMeta:
{vScale:a}}=this,c=a.getBasePixel(),u=a.isHorizontal(),l=this._getRuler(),
{sharedOptions:h,includeOptions:d}=this._getSharedOptions(t,i);for(let f=t;f<t+n;f+
+){const t=this.getParsed(f),n=o||r.isNullOrUndef(t[a.axis])?
{base:c,head:c}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,
l),g=(t._stacks||{})[a.axis],m={horizontal:u,base:n.base,enableBorderRadius:!g||
A(t._custom)||s===g._top||s===g._bottom,x:u?n.head:p.center,y:u?
p.center:n.head,height:u?p.size:Math.abs(n.size),width:u?
Math.abs(n.size):p.size};d&&(m.options=h||
this.resolveDataElementOptions(f,e[f].active?"active":i));const v=m.options||
e[f].options;C(m,v,g,s),I(m,v,l.ratio),this.updateElement(e[f],f,m,i)}}_getStacks(e
,t)
{const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((e
=>e.controller.options.grouped)),o=n.options.stacked,s=[],a=e=>{const
n=e.controller.getParsed(t),i=n&&n[e.vScale.axis];if(r.isNullOrUndef(i)||
isNaN(i))return!0};for(const n of i)if((void 0===t||!a(n))&&((!1===o||-
1===s.indexOf(n.stack)||void 0===o&&void
0===n.stack)&&s.push(n.stack),n.index===e))break;return s.length||s.push(void
0),s}_getStackCount(e){return this._getStacks(void
0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),i=void 0!==t?
r.indexOf(t):-1;return-1===i?r.length-1:i}_getRuler(){const
e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let
i,o;for(i=0,o=t.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)
[n.axis],i));const s=e.barThickness;return{min:s||
E(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),
scale:n,grouped:e.grouped,ratio:s?
1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e)
{const{_cachedMeta:{vScale:t,_stacked:n,index:i},options:
{base:o,minBarLength:s}}=this,a=o||0,c=this.getParsed(e),u=c._custom,l=A(u);let
h,d,f=c[t.axis],p=0,g=n?this.applyStack(t,c,n):f;g!==f&&(p=g-
f,g=f),l&&(f=u.barStart,g=u.barEnd-u.barStart,0!==f&&r.sign(f)!
==r.sign(u.barEnd)&&(p=0),p+=f);const m=r.isNullOrUndef(o)||l?p:o;let
v=t.getPixelForValue(m);if(h=this.chart.getDataVisibility(e)?
t.getPixelForValue(p+g):v,d=h-v,Math.abs(d)<s){d=function(e,t,n){return 0!==e?
r.sign(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*s,f===a&&(v-=d/2);const
e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),u=Math.min(e,o),p=Math.max(e,o)
;v=Math.max(Math.min(v,p),u),h=v+d,n&&!
l&&(c._stacks[t.axis]._visualValues[i]=t.getValueForPixel(h)-
t.getValueForPixel(v))}if(v===t.getPixelForValue(a)){const
e=r.sign(d)*t.getLineWidthForValue(a)/2;v+=e,d-
=e}return{size:d,base:v,head:h,center:h+d/2}}_calculateBarIndexPixels(e,t){const
n=t.scale,i=this.options,o=i.skipNull,s=r.valueOrDefault(i.maxBarThickness,1/0);let
a,c;if(t.grouped){const n=o?
this._getStackCount(e):t.stackCount,u="flex"===i.barThickness?function(e,t,n,r)
{const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const
c=n.categoryPercentage;null===s&&(s=o-(null===a?t.end-t.start:a-
o)),null===a&&(a=o+o-s);const u=o-(o-Math.min(s,a))/2*c;return{chunk:Math.abs(a-
s)/2*c/r,ratio:n.barPercentage,start:u}}(e,t,i,n):function(e,t,n,i){const
o=n.barThickness;let s,a;return r.isNullOrUndef(o)?
(s=t.min*n.categoryPercentage,a=n.barPercentage):(s=o*i,a=1),{chunk:s/
i,ratio:a,start:t.pixels[e]-s/2}}
(e,t,i,n),l=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void
0);a=u.start+u.chunk*l+u.chunk/2,c=Math.min(s,u.chunk*u.ratio)}else
a=n.getPixelForValue(this.getParsed(e)
[n.axis],e),c=Math.min(s,t.min*t.ratio);return{base:a-c/2,head:a+c/
2,center:a,size:c}}draw(){const
e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let i=0;for(;i<r;++i)null!
==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}class D extends _{static
id="bubble";static defaults={datasetElementType:!
1,dataElementType:"point",animations:{numbers:{type:"number",properties:
["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:
{type:"linear"}}};initialize(){this.enableOptionSharing=!
0,super.initialize()}parsePrimitiveData(e,t,n,r){const
i=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<i.length;e+
+)i[e]._custom=this.resolveDataElementOptions(e+n).radius;return
i}parseArrayData(e,t,n,i){const o=super.parseArrayData(e,t,n,i);for(let
e=0;e<o.length;e++){const
i=t[n+e];o[e]._custom=r.valueOrDefault(i[2],this.resolveDataElementOptions(e+n).rad
ius)}return o}parseObjectData(e,t,n,i){const
o=super.parseObjectData(e,t,n,i);for(let e=0;e<o.length;e++){const
i=t[n+e];o[e]._custom=r.valueOrDefault(i&&i.r&&+i.r,this.resolveDataElementOptions(
e+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let
t=0;for(let n=e.length-1;n>=0;--
n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return
t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],
{xScale:r,yScale:i}=t,o=this.getParsed(e),s=r.getLabelForValue(o.x),a=i.getLabelFor
Value(o.y),c=o._custom;return{label:n[e]||"",value:"("+s+", "+a+(c?", "+c:"")
+")"}}update(e){const
t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r)
{const i="reset"===r,{iScale:o,vScale:s}=this._cachedMeta,
{sharedOptions:a,includeOptions:c}=this._getSharedOptions(t,r),u=o.axis,l=s.axis;fo
r(let h=t;h<t+n;h++){const t=e[h],n=!i&&this.getParsed(h),d={},f=d[u]=i?
o.getPixelForDecimal(.5):o.getPixelForValue(n[u]),p=d[l]=i?
s.getBasePixel():s.getPixelForValue(n[l]);d.skip=isNaN(f)||
isNaN(p),c&&(d.options=a||
this.resolveDataElementOptions(h,t.active?"active":r),i&&(d.options.radius=0)),this
.updateElement(t,h,d,r)}}resolveDataElementOptions(e,t){const
n=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.
$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!
==t&&(i.radius=0),i.radius+=r.valueOrDefault(n&&n._custom,o),i}}class k extends
_{static id="doughnut";static defaults={datasetElementType:!
1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:
{numbers:{type:"number",properties:
["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offse
t","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100
%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!
==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!
e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:
{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length)
{const{labels:{pointStyle:n,color:r}}=e.legend.options;return
t.labels.map(((t,i)=>{const
o=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:o.backgroundCo
lor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidd
en:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n)
{n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t)
{super(e,t),this.enableOptionSharing=!0,this.innerRadius=void
0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales()
{}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!
1===this._parsing)i._parsed=n;else{let o,s,a=e=>+n[e];if(r.isObject(n[e]))
{const{key:e="value"}=this._parsing;a=t=>+r.resolveObjectKey(n[t],e)}for(o=e,s=e+t;
o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return r.toRadians(this.options.rotation-
90)}_getCircumference(){return
r.toRadians(this.options.circumference)}_getRotationExtents(){let e=r.TAU,t=-
r.TAU;for(let n=0;n<this.chart.data.datasets.length;+
+n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._typ
e){const
r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference(
);e=Math.min(e,i),t=Math.max(t,i+o)}return{rotation:e,circumference:t-e}}update(e)
{const t=this.chart,
{chartArea:n}=t,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()
+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-
s)/
2,0),c=Math.min(r.toPercentage(this.options.cutout,a),1),u=this._getRingWeight(this
.index),{circumference:l,rotation:h}=this._getRotationExtents(),
{ratioX:d,ratioY:f,offsetX:p,offsetY:g}=function(e,t,n){let
i=1,o=1,s=0,a=0;if(t<r.TAU){const
c=e,u=c+t,l=Math.cos(c),h=Math.sin(c),d=Math.cos(u),f=Math.sin(u),p=(e,t,i)=>r._ang
leBetween(e,c,u,!0)?1:Math.max(t,t*n,i,i*n),g=(e,t,i)=>r._angleBetween(e,c,u,!0)?-
1:Math.min(t,t*n,i,i*n),m=p(0,l,d),v=p(r.HALF_PI,h,f),b=g(r.PI,l,d),y=g(r.PI+r.HALF
_PI,h,f);i=(m-b)/2,o=(v-y)/2,s=-(m+b)/2,a=-(v+y)/
2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:a}}(h,l,c),m=(n.width-s)/
d,v=(n.height-s)/f,b=Math.max(Math.min(m,v)/
2,0),y=r.toDimension(this.options.radius,b),w=(y-Math.max(y*c,0))/
this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=g*y,i.total=this
.calculateTotal(),this.outerRadius=y-
w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-
w*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const
n=this.options,i=this._cachedMeta,o=this._getCircumference();return
t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||
null===i._parsed[e]||i.data[e].hidden?
0:this.calculateCircumference(i._parsed[e]*o/r.TAU)}updateElements(e,t,n,r){const
i="reset"===r,o=this.chart,s=o.chartArea,a=o.options.animation,c=(s.left+s.right)/
2,u=(s.top+s.bottom)/2,l=i&&a.animateScale,h=l?0:this.innerRadius,d=l?
0:this.outerRadius,
{sharedOptions:f,includeOptions:p}=this._getSharedOptions(t,r);let
g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,i);for(g=t;g<t+n;+
+g){const
t=this._circumference(g,i),n=e[g],o={x:c+this.offsetX,y:u+this.offsetY,startAngle:m
,endAngle:m+t,circumference:t,outerRadius:d,innerRadius:h};p&&(o.options=f||
this.resolveDataElementOptions(g,n.active?"active":r)),m+=t,this.updateElement(n,g,
o,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let
n,r=0;for(n=0;n<t.length;n++){const i=e._parsed[n];null===i||isNaN(i)||!
this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(i))}return
r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?
r.TAU*(Math.abs(e)/t):0}getLabelAndValue(e){const
t=this._cachedMeta,n=this.chart,i=n.data.labels||
[],o=r.formatNumber(t._parsed[e],n.options.locale);return{label:i[e]||"",value:o}}g
etMaxBorderWidth(e){let t=0;const n=this.chart;let r,i,o,s,a;if(!
e)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r))
{o=n.getDatasetMeta(r),e=o.data,s=o.controller;break}if(!e)return
0;for(r=0,i=e.length;r<i;++r)a=s.resolveDataElementOptions(r),"inner"!
==a.borderAlign&&(t=Math.max(t,a.borderWidth||0,a.hoverBorderWidth||0));return
t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const
e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||
0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;+
+n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return
t}_getRingWeight(e){return
Math.max(r.valueOrDefault(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatas
etWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||
1}}class R extends _{static id="line";static
defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!
1};static overrides={scales:{_index_:{type:"category"},_value_:
{type:"linear"}}};initialize(){this.enableOptionSharing=!
0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,
{dataset:n,data:i=[],_dataset:o}=t,s=this.chart._animationsDisabled;let{start:a,cou
nt:c}=r._getStartAndCountOfVisiblePoints(t,i,s);this._drawStart=a,this._drawCount=c
,r._scaleRangesChanged(t)&&(a=0,c=i.length),n._chart=this.chart,n._datasetIndex=thi
s.index,n._decimated=!!o._decimated,n.points=i;const
u=this.resolveDatasetElementOptions(e);this.options.showLine||
(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(n,void 0,
{animated:!s,options:u},e),this.updateElements(i,a,c,e)}updateElements(e,t,n,i)
{const o="reset"===i,{iScale:s,vScale:a,_stacked:c,_dataset:u}=this._cachedMeta,
{sharedOptions:l,includeOptions:h}=this._getSharedOptions(t,i),d=s.axis,f=a.axis,
{spanGaps:p,segment:g}=this.options,m=r.isNumber(p)?
p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||
o||"none"===i,b=t+n,y=e.length;let w=t>0&&this.getParsed(t-1);for(let n=0;n<y;++n)
{const p=e[n],y=v?p:{};if(n<t||n>=b){y.skip=!0;continue}const
_=this.getParsed(n),E=r.isNullOrUndef(_[f]),S=y[d]=s.getPixelForValue(_[d],n),T=y[f
]=o||E?a.getBasePixel():a.getPixelForValue(c?
this.applyStack(a,_,c):_[f],n);y.skip=isNaN(S)||isNaN(T)||
E,y.stop=n>0&&Math.abs(_[d]-
w[d])>m,g&&(y.parsed=_,y.raw=u.data[n]),h&&(y.options=l||
this.resolveDataElementOptions(n,p.active?"active":i)),v||
this.updateElement(p,n,y,i),w=_}}getMaxOverflow(){const
e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||
[];if(!r.length)return n;const
i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-
1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw()
{const
e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis
),super.draw()}}class M extends _{static id="polarArea";static
defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!
0},animations:{numbers:{type:"number",properties:
["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",start
Angle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e)
{const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:
{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,i)=>{const
o=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:o.backgroundCo
lor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidd
en:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n)
{n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:
{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!
0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t)
{super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e)
{const t=this._cachedMeta,n=this.chart,i=n.data.labels||
[],o=r.formatNumber(t._parsed[e].r,n.options.locale);return{label:i[e]||"",value:o}
}parseObjectData(e,t,n,i){return r._parseObjectDataRadialScale.bind(this)
(e,t,n,i)}update(e){const
t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}ge
tMinMax(){const
e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};re
turn e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!
isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))}
)),t}_updateRadius(){const
e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-
t.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/
100*n.cutoutPercentage:1,0))/e.g
etVisibleDatasetCount();this.outerRadius=i-
o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,t,n,i){const
o="reset"===i,s=this.chart,a=s.options.animation,c=this._cachedMeta.rScale,u=c.xCen
ter,l=c.yCenter,h=c.getIndexAngle(0)-.5*r.PI;let d,f=h;const
p=360/this.countVisibleElements();for(d=0;d<t;+
+d)f+=this._computeAngle(d,i,p);for(d=t;d<t+n;d++){const t=e[d];let
n=f,r=f+this._computeAngle(d,i,p),g=s.getDataVisibility(d)?
c.getDistanceFromCenterForValue(this.getParsed(d).r):0;f=r,o&&(a.animateScale&&(g=0
),a.animateRotate&&(n=r=h));const
m={x:u,y:l,innerRadius:0,outerRadius:g,startAngle:n,endAngle:r,options:this.resolve
DataElementOptions(d,t.active?"active":i)};this.updateElement(t,d,m,i)}}countVisibl
eElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!
isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t+
+})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?
r.toRadians(this.resolveDataElementOptions(e,t).angle||n):0}}class N extends
k{static id="pie";static
defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class L extends
_{static id="radar";static
defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:
!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:
{type:"radialLinear"}}};getLabelAndValue(e){const
t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()
[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,i){return
r._parseObjectDataRadialScale.bind(this)(e,t,n,i)}update(e){const
t=this._cachedMeta,n=t.dataset,r=t.data||
[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){const
t=this.resolveDatasetElementOptions(e);this.options.showLine||
(t.borderWidth=0);const o={_loop:!
0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void
0,o,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const
i=this._cachedMeta.rScale,o="reset"===r;for(let s=t;s<t+n;s++){const
t=e[s],n=this.resolveDataElementOptions(s,t.active?"active":r),a=i.getPointPosition
ForValue(s,this.getParsed(s).r),c=o?i.xCenter:a.x,u=o?
i.yCenter:a.y,l={x:c,y:u,angle:a.angle,skip:isNaN(c)||
isNaN(u),options:n};this.updateElement(t,s,l,r)}}}class F extends _{static
id="scatter";static defaults={datasetElementType:!
1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:
{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e)
{const t=this._cachedMeta,n=this.chart.data.labels||[],
{xScale:r,yScale:i}=t,o=this.getParsed(e),s=r.getLabelForValue(o.x),a=i.getLabelFor
Value(o.y);return{label:n[e]||"",value:"("+s+", "+a+")"}}update(e){const
t=this._cachedMeta,
{data:n=[]}=t,i=this.chart._animationsDisabled;let{start:o,count:s}=r._getStartAndC
ountOfVisiblePoints(t,n,i);if(this._drawStart=o,this._drawCount=s,r._scaleRangesCha
nged(t)&&(o=0,s=n.length),this.options.showLine){this.datasetElementType||
this.addElements();const{dataset:r,_dataset:o}=t;r._chart=this.chart,r._datasetInde
x=this.index,r._decimated=!!o._decimated,r.points=n;const
s=this.resolveDatasetElementOptions(e);s.segment=this.options.segment,this.updateEl
ement(r,void 0,{animated:!i,options:s},e)}else this.datasetElementType&&(delete
t.dataset,this.datasetElementType=!1);this.updateElements(n,o,s,e)}addElements()
{const{showLine:e}=this.options;!
this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement
("line")),super.addElements()}updateElements(e,t,n,i){const o="reset"===i,
{iScale:s,vScale:a,_stacked:c,_dataset:u}=this._cachedMeta,l=this.resolveDataElemen
tOptions(t,i),h=this.getSharedOptions(l),d=this.includeOptions(i,h),f=s.axis,p=a.ax
is,{spanGaps:g,segment:m}=this.options,v=r.isNumber(g)?
g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let
y=t>0&&this.getParsed(t-1);for(let l=t;l<t+n;++l){const
t=e[l],n=this.getParsed(l),g=b?t:
{},w=r.isNullOrUndef(n[p]),_=g[f]=s.getPixelForValue(n[f],l),E=g[p]=o||w?
a.getBasePixel():a.getPixelForValue(c?
this.applyStack(a,n,c):n[p],l);g.skip=isNaN(_)||isNaN(E)||
w,g.stop=l>0&&Math.abs(n[f]-
y[f])>v,m&&(g.parsed=n,g.raw=u.data[l]),d&&(g.options=h||
this.resolveDataElementOptions(l,t.active?"active":i)),b||
this.updateElement(t,l,g,i),y=n}this.updateSharedOptions(h,i,l)}getMaxOverflow()
{const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let
n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/
2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!
t.length)return r;const
i=t[0].size(this.resolveDataElementOptions(0)),o=t[t.length-
1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,o)/2}}var
j=Object.freeze({__proto__:null,BarController:P,BubbleController:D,DoughnutControll
er:k,LineController:R,PieController:N,PolarAreaController:M,RadarController:L,Scatt
erController:F});function B(){throw new Error("This method is not implemented:
Check that a complete date adapter is provided.")}class U{static override(e)
{Object.assign(U.prototype,e)}options;constructor(e){this.options=e||{}}init()
{}formats(){return B()}parse(){return B()}format(){return B()}add(){return
B()}diff(){return B()}startOf(){return B()}endOf(){return B()}}var
H={_date:U};function G(e,t,n,i)
{const{controller:o,data:s,_sorted:a}=e,c=o._cachedMeta.iScale;if(c&&t===c.axis&&"r
"!==t&&a&&s.length){const e=c._reversePixels?r._rlookupByKey:r._lookupByKey;if(!
i)return e(s,t,n);if(o._sharedOptions){const r=s[0],i="function"==typeof
r.getRange&&r.getRange(t);if(i){const r=e(s,t,n-
i),o=e(s,t,n+i);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function
z(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let
e=0,n=o.length;e<n;++e){const{index:n,data:a}=o[e],
{lo:c,hi:u}=G(o[e],t,s,i);for(let e=c;e<=u;++e){const t=a[e];t.skip||
r(t,n,e)}}}function V(e,t,n,i,o){const s=[];return o||e.isPointInArea(t)?(z(e,n,t,
(function(n,a,c){(o||
r._isPointInArea(n,e.chartArea,0))&&n.inRange(t.x,t.y,i)&&s.push({element:n,dataset
Index:a,index:c})}),!0),s):s}function W(e,t,n,i,o,s){return s||
e.isPointInArea(t)?"r"!==n||i?function(e,t,n,r,i,o){let s=[];const a=function(e)
{const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const i=t?
Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return
Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let c=Number.POSITIVE_INFINITY;return
z(e,n,t,(function(n,u,l){const h=n.inRange(t.x,t.y,i);if(r&&!h)return;const
d=n.getCenterPoint(i);if(!o&&!e.isPointInArea(d)&&!h)return;const f=a(t,d);f<c?
(s=[{element:n,datasetIndex:u,index:l}],c=f):f===c&&s.push({element:n,datasetIndex:
u,index:l})})),s}(e,t,n,i,o,s):function(e,t,n,i){let o=[];return z(e,n,t,
(function(e,n,s)
{const{startAngle:a,endAngle:c}=e.getProps(["startAngle","endAngle"],i),
{angle:u}=r.getAngleFromPoint(e,
{x:t.x,y:t.y});r._angleBetween(u,a,c)&&o.push({element:e,datasetIndex:n,index:s})})
),o}(e,t,n,o):[]}function q(e,t,n,r,i){const
o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return z(e,n,t,((e,r,c)=>{e[s]
(t[n],i)&&(o.push({element:e,datasetIndex:r,index:c}),a=a||
e.inRange(t.x,t.y,i))})),r&&!a?[]:o}var K={evaluateInteractionItems:z,modes:
{index(e,t,n,i){const
o=r.getRelativePosition(t,e),s=n.axis||"x",a=n.includeInvisible||!1,c=n.intersect?
V(e,o,s,i,a):W(e,o,s,!1,i,a),u=[];return c.length?
(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=c[0].index,n=e.data[t];n&&!
n.skip&&u.push({element:n,datasetIndex:e.index,index:t})})),u):[]},dataset(e,t,n,i)
{const o=r.getRelativePosition(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;let
c=n.intersect?V(e,o,s,i,a):W(e,o,s,!1,i,a);if(c.length>0){const
t=c[0].datasetIndex,n=e.getDatasetMeta(t).data;c=[];for(let e=0;e<n.length;+
+e)c.push({element:n[e],datasetIndex:t,index:e})}return c},point:
(e,t,n,i)=>V(e,r.getRelativePosition(t,e),n.axis||"xy",i,n.includeInvisible||!
1),nearest(e,t,n,i){const
o=r.getRelativePosition(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;return
W(e,o,s,n.intersect,i,a)},x:
(e,t,n,i)=>q(e,r.getRelativePosition(t,e),"x",n.intersect,i),y:
(e,t,n,i)=>q(e,r.getRelativePosition(t,e),"y",n.intersect,i)}};const
Y=["left","top","right","bottom"];function $(e,t){return
e.filter((e=>e.pos===t))}function Q(e,t){return e.filter((e=>-
1===Y.indexOf(e.pos)&&e.box.axis===t))}function X(e,t){return e.sort(((e,n)=>{const
r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-
i.weight}))}function Z(e,t,n,r){return Math.max(e[n],t[n])
+Math.max(e[r],t[r])}function J(e,t)
{e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bot
tom,t.bottom),e.right=Math.max(e.right,t.right)}function ee(e,t,n,i)
{const{pos:o,box:s}=n,a=e.maxPadding;if(!r.isObject(o)){n.size&&(e[o]-
=n.size);const t=i[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?
s.height:s.width),n.size=t.size/t.count,e[o]
+=n.size}s.getPadding&&J(a,s.getPadding());const c=Math.max(0,t.outerWidth-
Z(a,e,"left","right")),u=Math.max(0,t.outerHeight-Z(a,e,"top","bottom")),l=c!
==e.w,h=u!==e.h;return e.w=c,e.h=u,n.horizontal?{same:l,other:h}:
{same:h,other:l}}function te(e,t){const n=t.maxPadding;return function(e){const
r={left:0,top:0,right:0,bottom:0};return
e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}(e?["left","right"]:
["top","bottom"])}function ne(e,t,n,r){const i=[];let
o,s,a,c,u,l;for(o=0,s=e.length,u=0;o<s;++o){a=e[o],c=a.box,c.update(a.width||
t.w,a.height||t.h,te(a.horizontal,t));const{same:s,other:h}=ee(t,n,a,r);u|
=s&&i.length,l=l||h,c.fullSize||i.push(a)}return u&&ne(i,t,n,r)||l}function
re(e,t,n,r,i)
{e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function
ie(e,t,n,i){const o=n.padding;let{x:s,y:a}=t;for(const c of e){const
e=c.box,u=i[c.stack]||{count:1,placed:0,weight:1},l=c.stackWeight/u.weight||
1;if(c.horizontal){const i=t.w*l,s=u.size||
e.height;r.defined(u.start)&&(a=u.start),e.fullSize?re(e,o.left,a,n.outerWidth-
o.right-
o.left,s):re(e,t.left+u.placed,a,i,s),u.start=a,u.placed+=i,a=e.bottom}else{const
i=t.h*l,a=u.size||e.width;r.defined(u.start)&&(s=u.start),e.fullSize?
re(e,s,o.top,a,n.outerHeight-o.bottom
-o.top):re(e,s,t.top+u.placed,a,i),u.start=s,u.placed+=i,s=e.right}}t.x=s,t.y=a}var
oe={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!
1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function()
{return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?
e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n)
{t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i)
{if(!e)return;const o=r.toPadding(e.options.layout.padding),s=Math.max(t-
o.width,0),a=Math.max(n-o.height,0),c=function(e){const t=function(e){const
t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],({position:o,options:
{stack:s,stackWeight:a=1}}=i),t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal
(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}
(e),n=X(t.filter((e=>e.box.fullSize)),!0),r=X($(t,"left"),!0),i=X($
(t,"right")),o=X($(t,"top"),!0),s=X($
(t,"bottom")),a=Q(t,"x"),c=Q(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightA
ndBottom:i.concat(c).concat(s).concat(a),chartArea:$
(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:o.concat(s).concat(a)}}
(e.boxes),u=c.vertical,l=c.horizontal;r.each(e.boxes,(e=>{"function"==typeof
e.beforeLayout&&e.beforeLayout()}));const h=u.reduce(((e,t)=>t.box.options&&!
1===t.box.options.display?e:e+1),0)||
1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:s,availableH
eight:a,vBoxMaxWidth:s/2/h,hBoxMaxHeight:a/
2}),f=Object.assign({},o);J(f,r.toPadding(i));const
p=Object.assign({maxPadding:f,w:s,h:a,x:o.left,y:o.top},o),g=function(e,t){const
n=function(e){const t={};for(const n of e)
{const{stack:e,pos:r,stackWeight:i}=n;if(!e||!Y.includes(r))continue;const o=t[e]||
(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}(e),
{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o)
{a=e[o];const{fullSize:s}=a.box,c=n[a.stack],u=c&&a.stackWeight/
c.weight;a.horizontal?(a.width=u?u*r:s&&t.availableWidth,a.height=i):
(a.width=r,a.height=u?u*i:s&&t.availableHeight)}return n}
(u.concat(l),d);ne(c.fullSize,p,d,g),ne(u,p,d,g),ne(l,p,d,g)&&ne(u,p,d,g),function(
e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]
+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}
(p),ie(c.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,ie(c.rightAndBottom,p,d,g),e.chartArea
={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},r.e
ach(c.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,
{left:0,top:0,right:0,bottom:0})}))}};class se{acquireContext(e,t)
{}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n)
{}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||
e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/
r):n)}}isAttached(e){return!0}updateConfig(e){}}class ae extends
se{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||
null}updateConfig(e){e.options.animation=!1}}const
ce="$chartjs",ue={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",p
ointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:
"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},le=e=>null===e||""===e,he=
!!r.supportsEventListenerOptions&&{passive:!0};function de(e,t,n)
{e.canvas.removeEventListener(t,n,he)}function fe(e,t){for(const n of e)if(n===t||
n.contains(t))return!0}function pe(e,t,n){const r=e.canvas,i=new
MutationObserver((e=>{let t=!1;for(const n of e)t=t||fe(n.addedNodes,r),t=t&&!
fe(n.removedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!
0}),i}function ge(e,t,n){const r=e.canvas,i=new MutationObserver((e=>{let t=!
1;for(const n of e)t=t||fe(n.removedNodes,r),t=t&&!
fe(n.addedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!
0}),i}const me=new Map;let ve=0;function be(){const e=window.devicePixelRatio;e!
==ve&&(ve=e,me.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function
ye(e,t,n){const i=e.canvas,o=i&&r._getParentNode(i);if(!o)return;const
s=r.throttled(((e,t)=>{const
r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),a=new
ResizeObserver((e=>{const
t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||s(n,r)}));return
a.observe(o),function(e,t){me.size||
window.addEventListener("resize",be),me.set(e,t)}(e,s),a}function we(e,t,n)
{n&&n.disconnect(),"resize"===t&&function(e){me.delete(e),me.size||
window.removeEventListener("resize",be)}(e)}function _e(e,t,n){const
i=e.canvas,o=r.throttled((t=>{null!==e.ctx&&n(function(e,t){const n=ue[e.type]||
e.type,{x:i,y:o}=r.getRelativePosition(e,t);return{type:n,chart:t,native:e,x:void
0!==i?i:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n)
{e.addEventListener(t,n,he)}(i,t,o),o}class Ee extends se{acquireContext(e,t){const
n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const
n=e.style,i=e.getAttribute("height"),o=e.getAttribute("width");if(e[ce]={initial:
{height:i,width:o,style:
{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.
boxSizing=n.boxSizing||"border-box",le(o)){const t=r.readUsedSize(e,"width");void
0!==t&&(e.width=t)}if(le(i))if(""===e.style.height)e.height=e.width/(t||
2);else{const t=r.readUsedSize(e,"height");void 0!==t&&(e.height=t)}}
(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[ce])return!1;const
n=t[ce].initial;["height","width"].forEach((e=>{const i=n[e];r.isNullOrUndef(i)?
t.removeAttribute(e):t.setAttribute(e,i)}));const i=n.style||{};return
Object.keys(i).forEach((e=>{t.style[e]=i[e]})),t.width=t.width,delete t[ce],!
0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.
$proxies={}),i={attach:pe,detach:ge,resize:ye}[t]||
_e;r[t]=i(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.
$proxies={}),r=n[t];r&&(({attach:we,detach:we,resize:we}[t]||de)(e,t,r),n[t]=void
0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i)
{return r.getMaximumSize(e,t,n,i)}isAttached(e){const t=r._getParentNode(e);return!
(!t||!t.isConnected)}}function Se(e){return!r._isDomSupported()||"undefined"!
=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?ae:Ee}class Te{static
defaults={};static defaultRoutes=void 0;x;y;active=!1;options;
$animations;tooltipPosition(e)
{const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return
r.isNumber(this.x)&&r.isNumber(this.y)}getProps(e,t){const n=this.$animations;if(!
t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?
n[e]._to:this[e]})),r}}function Ae(e,t,n,i,o){const
s=r.valueOrDefault(i,0),a=Math.min(r.valueOrDefault(o,e.length),e.length);let
c,u,l,h=0;for(n=Math.ceil(n),o&&(c=o-i,n=c/Math.floor(c/n)),l=s;l<0;)h+
+,l=Math.round(s+h*n);for(u=Math.max(s,0);u<a;u++)u===l&&(t.push(e[u]),h+
+,l=Math.round(s+h*n))}const Ce=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-
n,Oe=(e,t)=>Math.min(t||e,e);function xe(e,t){const
n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return
n}function Ie(e,t,n){const r=e.ticks.length,i=Math.min(t,r-
1),o=e._startPixel,s=e._endPixel,a=1e-6;let c,u=e.getPixelForTick(i);if(!
(n&&(c=1===r?Math.max(u-o,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-
e.getPixelForTick(i-1))/2,u+=i<t?c:-c,u<o-a||u>s+a)))return u}function Pe(e){return
e.drawTicks?e.tickLength:0}function De(e,t){if(!e.display)return 0;const
n=r.toFont(e.font,t),i=r.toPadding(e.padding);return(r.isArray(e.text)?
e.text.length:1)*n.lineHeight+i.height}function ke(e,t,n){let
i=r._toLeftRightCenter(e);return(n&&"right"!==t||!
n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class Re
extends Te{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void
0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void
0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void
0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void
0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void
0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void
0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void
0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=nul
l,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void
0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void
0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void
0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!
1,this.$context=void 0}init(e)
{this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.p
arse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggest
edMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return
e}getUserBounds()
{let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return
e=r.finiteOrDefault(e,Number.POSITIVE_INFINITY),t=r.finiteOrDefault(t,Number.NEGATI
VE_INFINITY),n=r.finiteOrDefault(n,Number.POSITIVE_INFINITY),i=r.finiteOrDefault(i,
Number.NEGATIVE_INFINITY),
{min:r.finiteOrDefault(e,n),max:r.finiteOrDefault(t,i),minDefined:r.isNumberFinite(
e),maxDefined:r.isNumberFinite(t)}}getMinMax(e){let t,
{min:n,max:i,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:n,m
ax:i};const a=this.getMatchingVisibleMetas();for(let r=0,c=a.length;r<c;+
+r)t=a[r].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),s||
(i=Math.max(i,t.max));return n=s&&n>i?i:n,i=o&&n>i?n:i,
{min:r.finiteOrDefault(n,r.finiteOrDefault(i,n)),max:r.finiteOrDefault(i,r.finiteOr
Default(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||
0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return
this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||
(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||
[]}getLabelItems(e=this.chart.chartArea){return
this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout()
{this._cache={},this._dataLimitsCached=!1}beforeUpdate()
{r.callback(this.options.beforeUpdate,[this])}update(e,t,n)
{const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate
(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,t
op:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,th
is._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDi
mensions(),this._maxLength=this.isHorizontal()?
this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||
(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._ra
nge=r._addGrace(this,o,i),this._dataLimitsCached=!
0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||
[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?
xe(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),t
his.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoS
kip||"auto"===s.source)&&(this.ticks=function(e,t){const
n=e.options.ticks,i=function(e){const
t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return
Math.floor(Math.min(r,i))}(e),o=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?
function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n+
+)e[n].major&&t.push(n);return t}(t):[],a=s.length,c=s[0],u=s[a-
1],l=[];if(a>o)return function(e,t,n,r){let
i,o=0,s=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===s&&(t.push(e[i]),o+
+,s=n[o*r])}(t,l,s,a/o),l;const h=function(e,t,n){const i=function(e){const
t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!
==r)return!1;return r}(e),o=t.length/n;if(!i)return Math.max(o,1);const
s=r._factorize(i);for(let e=0,t=s.length-1;e<t;e++){const t=s[e];if(t>o)return
t}return Math.max(o,1)}(s,t,o);if(a>0){let e,n;const i=a>1?Math.round((u-c)/(a-
1)):null;for(Ae(t,l,h,r.isNullOrUndef(i)?0:c-i,c),e=0,n=a-1;e<n;e+
+)Ae(t,l,h,s[e],s[e+1]);return Ae(t,l,h,u,r.isNullOrUndef(i)?t.length:u+i),l}return
Ae(t,l,h),l}
(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicks
ToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()
}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?
(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!
n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-
e,this._alignToPixels=this.options.alignToPixels}afterUpdate()
{r.callback(this.options.afterUpdate,[this])}beforeSetDimensions()
{r.callback(this.options.beforeSetDimensions,[this])}setDimensions()
{this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):
(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,
this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions()
{r.callback(this.options.afterSetDimensions,[this])}_callHooks(e)
{this.chart.notifyPlugins(e,this.getContext()),r.callback(this.options[e],
[this])}beforeDataLimits()
{this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits()
{this._callHooks("afterDataLimits")}beforeBuildTicks()
{this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks()
{this._callHooks("afterBuildTicks")}beforeTickToLabelConversion()
{r.callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e)
{const t=this.options.ticks;let n,i,o;for(n=0,i=e.length;n<i;n+
+)o=e[n],o.label=r.callback(t.callback,
[o.value,n,e],this)}afterTickToLabelConversion()
{r.callback(this.options.afterTickToLabelConversion,
[this])}beforeCalculateLabelRotation()
{r.callback(this.options.beforeCalculateLabelRotation,
[this])}calculateLabelRotation(){const
e=this.options,t=e.ticks,n=Oe(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotat
ion||0,o=t.maxRotation;let s,a,c,u=i;if(!this._isVisible()||!t.display||i>=o||
n<=1||!this.isHorizontal())return void(this.labelRotation=i);const
l=this._getLabelSizes(),h=l.widest.width,d=l.highest.height,f=r._limitValue(this.ch
art.width-h,0,this.maxWidth);s=e.offset?this.maxWidth/n:f/(n-1),h+6>s&&(s=f/(n-
(e.offset?.5:1)),a=this.maxHeight-Pe(e.grid)-t.padding-
De(e.title,this.chart.options.font),c=Math.sqrt(h*h+d*d),u=r.toDegrees(Math.min(Mat
h.asin(r._limitValue((l.highest.height+6)/s,-1,1)),Math.asin(r._limitValue(a/c,-
1,1))-Math.asin(r._limitValue(d/c,-
1,1)))),u=Math.max(i,Math.min(o,u))),this.labelRotation=u}afterCalculateLabelRotati
on(){r.callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip()
{}beforeFit(){r.callback(this.options.beforeFit,[this])}fit(){const
e={width:0,height:0},{chart:t,options:
{ticks:n,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s)
{const s=De(i,t.options.font);if(a?(e.width=this.maxWidth,e.height=Pe(o)+s):
(e.height=this.maxHeight,e.width=Pe(o)+s),n.display&&this.ticks.length)
{const{first:t,last:i,widest:o,highest:s}=this._getLabelSizes(),c=2*n.padding,u=r.t
oRadians(this.labelRotation),l=Math.cos(u),h=Math.sin(u);if(a){const t=n.mirror?
0:h*o.width+l*s.height;e.height=Math.min(this.maxHeight,e.height+t+c)}else{const
t=n.mirror?
0:l*o.width+h*s.height;e.width=Math.min(this.maxWidth,e.width+t+c)}this._calculateP
adding(t,i,h,l)}}this._handleMargins(),a?(this.width=this._length=t.width-
this._margins.left-this._margins.right,this.height=e.height):
(this.width=e.width,this.height=this._length=t.height-this._margins.top-
this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:
{align:i,padding:o},position:s}=this.options,a=0!==this.labelRotation,c="top"!
==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-
this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let l=0,h=0;a?c?
(l=r*e.width,h=n*t.height):(l=n*e.height,h=r*t.width):"start"===i?
h=t.width:"end"===i?l=e.width:"inner"!==i&&(l=e.width/2,h=t.width/
2),this.paddingLeft=Math.max((l-s+o)*this.width/(this.width-
s),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let
n=t.height/2,r=e.height/2;"start"===i?
(n=0,r=e.height):"end"===i&&(n=t.height,r=0),this.paddingTop=n+o,this.paddingBottom
=r+o}}_handleMargins()
{this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),t
his._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Ma
th.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.pa
ddingBottom,this._margins.bottom))}afterFit(){r.callback(this.options.afterFit,
[this])}isHorizontal()
{const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFul
lSize(){return this.options.fullSize}_convertTicksToLabels(e){let
t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.lengt
h;t<n;t+
+)r.isNullOrUndef(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConvers
ion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const
t=this.options.ticks.sampleSize;let
n=this.ticks;t<n.length&&(n=xe(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n
.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n)
{const{ctx:i,_longestTextCache:o}=this,s=[],a=[],c=Math.floor(t/Oe(t,n));let
u,l,h,d,f,p,g,m,v,b,y,w=0,_=0;for(u=0;u<t;u+=c)
{if(d=e[u].label,f=this._resolveTickFontOptions(u),i.font=p=f.string,g=o[p]=o[p]||
{data:{},gc:[]},m=f.lineHeight,v=b=0,r.isNullOrUndef(d)||r.isArray(d))
{if(r.isArray(d))for(l=0,h=d.length;l<h;++l)y=d[l],r.isNullOrUndef(y)||
r.isArray(y)||(v=r._measureText(i,g.data,g.gc,v,y),b+=m)}else
v=r._measureText(i,g.data,g.gc,v,d),b=m;s.push(v),a.push(b),w=Math.max(v,w),_=Math.
max(b,_)}!function(e,t){r.each(e,(e=>{const n=e.gc,r=n.length/2;let i;if(r>t)
{for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}}))}(o,t);const
E=s.indexOf(w),S=a.indexOf(_),T=e=>({width:s[e]||0,height:a[e]||
0});return{first:T(0),last:T(t-
1),widest:T(E),highest:T(S),widths:s,heights:a}}getLabelForValue(e){return
e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const
t=this.ticks;return e<0||e>t.length-1?
null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e)
{this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return
r._int16Range(this._alignToPixels?
r._alignPixel(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-
this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel()
{return this.getPixelForValue(this.getBaseValue())}getBaseValue()
{const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const
t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.
$context=function(e,t,n){return r.createContext(e,{tick:n,index:t,type:"tick"})}
(this.getContext(),e,n))}return this.$context||(this.
$context=(n=this.chart.getContext(),this,r.createContext(n,
{scale:this,type:"scale"})));var n}_tickSize(){const
e=this.options.ticks,t=r.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Ma
th.abs(Math.sin(t)),o=this._getLabelSizes(),s=e.autoSkipPadding||0,a=o?
o.widest.width+s:0,c=o?o.highest.height+s:0;return
this.isHorizontal()?c*n>a*i?a/n:c/i:c*i<a*n?c/n:a/i}_isVisible(){const
e=this.options.display;return"auto"!==e?!!
e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const
t=this.axis,n=this.chart,i=this.options,
{grid:o,position:s,border:a}=i,c=o.offset,u=this.isHorizontal(),l=this.ticks.length
+(c?1:0),h=Pe(o),d=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/
2,m=function(e){return r._alignPixel(n,e,p)};let
v,b,y,w,_,E,S,T,A,C,O,x;if("top"===s)v=m(this.bottom),E=this.bottom-h,T=v-
g,C=m(e.top)+g,x=e.bottom;else if("bottom"===s)v=m(this.top),C=e.top,x=m(e.bottom)-
g,E=v+g,T=this.top+h;else if("left"===s)v=m(this.right),_=this.right-h,S=v-
g,A=m(e.left)+g,O=e.right;else if("right"===s)v=m(this.left),A=e.left,O=m(e.right)-
g,_=v+g,S=this.left+h;else
if("x"===t){if("center"===s)v=m((e.top+e.bottom)/2+.5);else if(r.isObject(s)){const
e=Object.keys(s)
[0],t=s[e];v=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,x=e.bottom,E=v+g,T
=E+h}else
if("y"===t){if("center"===s)v=m((e.left+e.right)/2);else if(r.isObject(s)){const
e=Object.keys(s)[0],t=s[e];v=m(this.chart.scales[e].getPixelForValue(t))}_=v-g,S=_-
h,A=e.left,O=e.right}const
I=r.valueOrDefault(i.ticks.maxTicksLimit,l),P=Math.max(1,Math.ceil(l/
I));for(b=0;b<l;b+=P){const
e=this.getContext(b),t=o.setContext(e),i=a.setContext(e),s=t.lineWidth,l=t.color,h=
i.dash||[],f=i.dashOffset,p=t.tickWidth,g=t.tickColor,m=t.tickBorderDash||
[],v=t.tickBorderDashOffset;y=Ie(this,b,c),void 0!==y&&(w=r._alignPixel(n,y,s),u?
_=S=A=O=w:E=T=C=x=w,d.push({tx1:_,ty1:E,tx2:S,ty2:T,x1:A,y1:C,x2:O,y2:x,width:s,col
or:l,borderDash:h,borderDashOffset:f,tickWidth:p,tickColor:g,tickBorderDash:m,tickB
orderDashOffset:v}))}return
this._ticksLength=l,this._borderValue=v,d}_computeLabelItems(e){const
t=this.axis,n=this.options,
{position:i,ticks:o}=n,s=this.isHorizontal(),a=this.ticks,
{align:c,crossAlign:u,padding:l,mirror:h}=o,d=Pe(n.grid),f=d+l,p=h?-l:f,g=-
r.toRadians(this.labelRotation),m=[];let
v,b,y,w,_,E,S,T,A,C,O,x,I="middle";if("top"===i)E=this.bottom-
p,S=this._getXAxisLabelAlignment();else
if("bottom"===i)E=this.top+p,S=this._getXAxisLabelAlignment();else if("left"===i)
{const e=this._getYAxisLabelAlignment(d);S=e.textAlign,_=e.x}else if("right"===i)
{const e=this._getYAxisLabelAlignment(d);S=e.textAlign,_=e.x}else if("x"===t)
{if("center"===i)E=(e.top+e.bottom)/2+f;else if(r.isObject(i)){const
e=Object.keys(i)[0],t=i[e];E=this.chart.scales[e].getPixelForValue(t)
+f}S=this._getXAxisLabelAlignment()}else if("y"===t)
{if("center"===i)_=(e.left+e.right)/2-f;else if(r.isObject(i)){const
e=Object.keys(i)
[0],t=i[e];_=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignmen
t(d).textAlign}"y"===t&&("start"===c?I="top":"end"===c&&(I="bottom"));const
P=this._getLabelSizes();for(v=0,b=a.length;v<b;++v){y=a[v],w=y.label;const
e=o.setContext(this.getContext(v));T=this.getPixelForTick(v)
+o.labelOffset,A=this._resolveTickFontOptions(v),C=A.lineHeight,O=r.isArray(w)?
w.length:1;const t=O/2,n=e.color,c=e.textStrokeColor,l=e.textStrokeWidth;let
d,f=S;if(s?(_=T,"inner"===S&&(f=v===b-1?this.options.reverse?"left":"right":0===v?
this.options.reverse?"right":"left":"center"),x="top"===i?"near"===u||0!==g?-
O*C+C/2:"center"===u?-P.highest.height/2-t*C+C:-P.highest.height+C/2:"near"===u||0!
==g?C/2:"center"===u?P.highest.height/2-t*C:P.highest.height-O*C,h&&(x*=-1),0===g||
e.showLabelBackdrop||(_+=C/2*Math.sin(g))):(E=T,x=(1-O)*C/2),e.showLabelBackdrop)
{const t=r.toPadding(e.backdropPadding),n=P.heights[v],i=P.widths[v];let o=x-
t.top,s=0-t.left;switch(I){case"middle":o-=n/2;break;case"bottom":o-=n}switch(S)
{case"center":s-=i/2;break;case"right":s-
=i}d={left:s,top:o,width:i+t.width,height:n+t.height,color:e.backdropColor}}m.push(
{label:w,font:A,textOffset:x,options:
{rotation:g,color:n,strokeColor:c,strokeWidth:l,textAlign:f,textBaseline:I,translat
ion:[_,E],backdrop:d}})}return m}_getXAxisLabelAlignment()
{const{position:e,ticks:t}=this.options;if(-
r.toRadians(this.labelRotation))return"top"===e?"left":"right";let
n="center";return"start"===t.align?n="left":"end"===t.align?
n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e)
{const{position:t,ticks:
{crossAlign:n,mirror:r,padding:i}}=this.options,o=e+i,s=this._getLabelSizes().wides
t.width;let a,c;return"left"===t?r?(c=this.right+i,"near"===n?
a="left":"center"===n?(a="center",c+=s/2):(a="right",c+=s)):(c=this.right-
o,"near"===n?a="right":"center"===n?(a="center",c-=s/2):
(a="left",c=this.left)):"right"===t?r?(c=this.left+i,"near"===n?
a="right":"center"===n?(a="center",c-=s/2):(a="left",c-=s)):
(c=this.left+o,"near"===n?a="left":"center"===n?(a="center",c+=s/2):
(a="right",c=this.right)):a="right",{textAlign:a,x:c}}_computeLabelArea()
{if(this.options.ticks.mirror)return;const
e=this.chart,t=this.options.position;return"left"===t||"right"===t?
{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?
{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground()
{const{ctx:e,options:
{backgroundColor:t},left:n,top:r,width:i,height:o}=this;t&&(e.save(),e.fillStyle=t,
e.fillRect(n,r,i,o),e.restore())}getLineWidthForValue(e){const
t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const
n=this.ticks.findIndex((t=>t.value===e));return n>=0?
t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const
t=this.options.grid,n=this.ctx,r=this._gridLineItems||
(this._gridLineItems=this._computeGridLineItems(e));let i,o;const
s=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n
.setLineDash(r.borderDash||
[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.
x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,o=r.length;i<o;++i){const
e=r[i];t.drawOnChartArea&&s({x:e.x1,y:e.y1},
{x:e.x2,y:e.y2},e),t.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},
{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e
.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:
{border:n,grid:i}}=this,o=n.setContext(this.getContext()),s=n.display?
o.width:0;if(!s)return;const
a=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let
u,l,h,d;this.isHorizontal()?(u=r._alignPixel(e,this.left,s)-s/2,l=r._alignPixel(e,t
his.right,a)+a/2,h=d=c):(h=r._alignPixel(e,this.top,s)-s/
2,d=r._alignPixel(e,this.bottom,a)+a/
2,u=l=c),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(
u,h),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!
this.options.ticks.display)return;const
t=this.ctx,n=this._computeLabelArea();n&&r.clipArea(t,n);const
i=this.getLabelItems(e);for(const e of i){const
n=e.options,i=e.font,o=e.label,s=e.textOffset;r.renderText(t,o,0,s,i,n)}n&&r.unclip
Area(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:i}}=this;if(!
n.display)return;const o=r.toFont(n.font),s=r.toPadding(n.padding),a=n.align;let
c=o.lineHeight/2;"bottom"===t||"center"===t||r.isObject(t)?
(c+=s.bottom,r.isArray(n.text)&&(c+=o.lineHeight*(n.text.length-
1))):c+=s.top;const{titleX:u,titleY:l,maxWidth:h,rotation:d}=function(e,t,n,i)
{const{top:o,left:s,bottom:a,right:c,chart:u}=e,{chartArea:l,scales:h}=u;let
d,f,p,g=0;const m=a-o,v=c-s;if(e.isHorizontal())
{if(f=r._alignStartEnd(i,s,c),r.isObject(n)){const e=Object.keys(n)
[0],r=n[e];p=h[e].getPixelForValue(r)+m-t}else p="center"===n?(l.bottom+l.top)/2+m-
t:Ce(e,n,t);d=c-s}else{if(r.isObject(n)){const e=Object.keys(n)
[0],r=n[e];f=h[e].getPixelForValue(r)-v+t}else f="center"===n?(l.left+l.right)/2-
v+t:Ce(e,n,t);p=r._alignStartEnd(i,a,o),g="left"===n?-
r.HALF_PI:r.HALF_PI}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}
(this,c,t,a);r.renderText(e,n.text,0,0,o,
{color:n.color,maxWidth:h,rotation:d,textAlign:ke(a,t,i),textBaseline:"middle",tran
slation:[u,l]})}draw(e)
{this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.
drawTitle(),this.drawLabels(e))}_layers(){const
e=this.options,t=e.ticks&&e.ticks.z||0,n=r.valueOrDefault(e.grid&&e.grid.z,-
1),i=r.valueOrDefault(e.border&&e.border.z,0);return
this._isVisible()&&this.draw===Re.prototype.draw?
[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:
()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:
[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const
t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let
i,o;for(i=0,o=t.length;i<o;++i){const o=t[i];o[n]!==this.id||e&&o.type!==e||
r.push(o)}return r}_resolveTickFontOptions(e){const
t=this.options.ticks.setContext(this.getContext(e));return
r.toFont(t.font)}_maxDigits(){const
e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?
this.width:this.height)/e}}class Me{constructor(e,t,n)
{this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(
e){return
Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e)
{const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in
e})(t)&&(n=this.register(t));const i=this.items,o=e.id,s=this.scope+"."+o;if(!
o)throw new Error("class does not have id: "+e);return o in i||
(i[o]=e,function(e,t,n){const i=r.merge(Object.create(null),[n?r.defaults.get(n):
{},r.defaults.get(t),e.defaults]);r.defaults.set(t,i),e.defaultRoutes&&function(e,t
){Object.keys(t).forEach((n=>{const
i=n.split("."),o=i.pop(),s=[e].concat(i).join("."),a=t[n].split("."),c=a.pop(),u=a.
join(".");r.defaults.route(s,o,u,c)}))}
(t,e.defaultRoutes),e.descriptors&&r.defaults.describe(t,e.descriptors)}
(e,s,n),this.override&&r.defaults.override(e.id,e.overrides)),s}get(e){return
this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete
t[n],i&&n in r.defaults[i]&&(delete r.defaults[i][n],this.override&&delete
r.overrides[n])}}class Ne{constructor(){this.controllers=new Me(_,"datasets",!
0),this.elements=new Me(Te,"elements"),this.plugins=new
Me(Object,"plugins"),this.scales=new
Me(Re,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}
add(...e){this._each("register",e)}remove(...e)
{this._each("unregister",e)}addControllers(...e)
{this._each("register",e,this.controllers)}addElements(...e)
{this._each("register",e,this.elements)}addPlugins(...e)
{this._each("register",e,this.plugins)}addScales(...e)
{this._each("register",e,this.scales)}getController(e){return
this._get(e,this.controllers,"controller")}getElement(e){return
this._get(e,this.elements,"element")}getPlugin(e){return
this._get(e,this.plugins,"plugin")}getScale(e){return
this._get(e,this.scales,"scale")}removeControllers(...e)
{this._each("unregister",e,this.controllers)}removeElements(...e)
{this._each("unregister",e,this.elements)}removePlugins(...e)
{this._each("unregister",e,this.plugins)}removeScales(...e)
{this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const
i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?
this._exec(e,i,t):r.each(t,(t=>{const
r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const
i=r._capitalize(e);r.callback(n["before"+i],[],n),t[e](n),r.callback(n["after"+i],
[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const
n=this._typedRegistries[t];if(n.isForType(e))return n}return
this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is
not a registered '+n+".");return r}}var Le=new Ne;class Fe{constructor()
{this._init=[]}notify(e,t,n,r)
{"beforeInit"===t&&(this._init=this._createDescriptors(e,!
0),this._notify(this._init,e,"install"));const i=r?
this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"
afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")
),o}_notify(e,t,n,i){i=i||{};for(const o of e){const
e=o.plugin,s=e[n],a=[t,i,o.options];if(!1===r.callback(s,a,e)&&i.cancelable)return!
1}return!0}invalidate(){r.isNullOrUndef(this._cache)||
(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e)
{if(this._cache)return this._cache;const
t=this._cache=this._createDescriptors(e);return
this._notifyStateChanges(e),t}_createDescriptors(e,t){const
n=e&&e.config,i=r.valueOrDefault(n.options&&n.options.plugins,{}),o=function(e)
{const t={},n=[],r=Object.keys(Le.plugins.items);for(let e=0;e<r.length;e+
+)n.push(Le.getPlugin(r[e]));const i=e.plugins||[];for(let e=0;e<i.length;e++)
{const r=i[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!
0)}return{plugins:n,localIds:t}}(n);return!1!==i||t?function(e,
{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const
t=a.id,c=je(r[t],i);null!==c&&o.push({plugin:a,options:Be(e.config,
{plugin:a,local:n[t]},c,s)})}return o}(e,o,i,t):[]}_notifyStateChanges(e){const
t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!
t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify
(r(n,t),e,"start")}}function je(e,t){return t||!1!==e?!0===e?{}:e:null}function
Be(e,{plugin:t,local:n},r,i){const
o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return
n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!
1,indexable:!1,allKeys:!0})}function Ue(e,t){const n=r.defaults.datasets[e]||
{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||
n.indexAxis||"x"}function He(e){if("x"===e||"y"===e||"r"===e)return e}function
Ge(e,...t){if(He(e))return e;for(const r of t){const t=r.axis||
("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||
e.length>1&&He(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot
determine type of '${e}' axis. Please provide 'axis' or 'position'
option.`)}function ze(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Ve(e)
{const t=e.options||(e.options={});t.plugins=r.valueOrDefault(t.plugins,
{}),t.scales=function(e,t){const n=r.overrides[e.type]||{scales:{}},i=t.scales||
{},o=Ue(e.type,t),s=Object.create(null);return Object.keys(i).forEach((t=>{const
a=i[t];if(!r.isObject(a))return console.error(`Invalid scale configuration for
scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options
for scale: ${t}`);const c=Ge(t,a,function(e,t){if(t.data&&t.data.datasets){const
n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return
ze(e,"x",n[0])||ze(e,"y",n[0])}return{}}
(t,e),r.defaults.scales[a.type]),u=function(e,t){return e===t?"_index_":"_value_"}
(c,o),l=n.scales||{};s[t]=r.mergeIf(Object.create(null),
[{axis:c},a,l[c],l[u]])})),e.data.datasets.forEach((n=>{const o=n.type||
e.type,a=n.indexAxis||Ue(o,t),c=(r.overrides[o]||{}).scales||
{};Object.keys(c).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?
n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),o=n[t+"AxisID"]||t;s[o]=s[o]||
Object.create(null),r.mergeIf(s[o],
[{axis:t},i[o],c[e]])}))})),Object.keys(s).forEach((e=>{const t=s[e];r.mergeIf(t,
[r.defaults.scales[t.type],r.defaults.scale])})),s}(e,t)}function We(e)
{return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const qe=new
Map,Ke=new Set;function Ye(e,t){let n=qe.get(e);return n||
(n=t(),qe.set(e,n),Ke.add(n)),n}const $e=(e,t,n)=>{const
i=r.resolveObjectKey(t,n);void 0!==i&&e.add(i)};class Qe{constructor(e)
{this._config=function(e){return(e=e||{}).data=We(e.data),Ve(e),e}
(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return
this._config.platform}get type(){return this._config.type}set type(e)
{this._config.type=e}get data(){return this._config.data}set data(e)
{this._config.data=We(e)}get options(){return this._config.options}set options(e)
{this._config.options=e}get plugins(){return this._config.plugins}update(){const
e=this._config;this.clearCache(),Ve(e)}clearCache()
{this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return
Ye(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Ye(`$
{e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],
[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Ye(`${e}-${t}`,
(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.$
{t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Ye(`${this.type}-plugin-${t}`,
(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const
n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new
Map,n.set(e,r)),r}getOptionScopes(e,t,n)
{const{options:i,type:o}=this,s=this._cachedScopes(e,n),a=s.get(t);if(a)return
a;const c=new
Set;t.forEach((t=>{e&&(c.add(e),t.forEach((t=>$e(c,e,t)))),t.forEach((e=>$e(c,i,e))
),t.forEach((e=>$e(c,r.overrides[o]||
{},e))),t.forEach((e=>$e(c,r.defaults,e))),t.forEach((e=>$e(c,r.descriptors,e)))}))
;const u=Array.from(c);return
0===u.length&&u.push(Object.create(null)),Ke.has(t)&&s.set(t,u),u}chartOptionScopes
(){const{options:e,type:t}=this;return[e,r.overrides[t]||
{},r.defaults.datasets[t]||{},
{type:t},r.defaults,r.descriptors]}resolveNamedOptions(e,t,n,i=[""]){const
o={$shared:!0},{resolver:s,subPrefixes:a}=Xe(this._resolverCache,e,i);let
c=s;if(function(e,t)
{const{isScriptable:n,isIndexable:i}=r._descriptors(e);for(const o of t){const
t=n(o),s=i(o),a=(s||t)&&e[o];if(t&&(r.isFunction(a)||Ze(a))||
s&&r.isArray(a))return!0}return!1}(s,t)){o.$shared=!1,n=r.isFunction(n)?n():n;const
t=this.createResolver(e,n,a);c=r._attachContext(s,n,t)}for(const e of
t)o[e]=c[e];return o}createResolver(e,t,n=[""],i)
{const{resolver:o}=Xe(this._resolverCache,e,n);return r.isObject(t)?
r._attachContext(o,t,void 0,i):o}}function Xe(e,t,n){let i=e.get(t);i||(i=new
Map,e.set(t,i));const o=n.join();let s=i.get(o);return s||
(s={resolver:r._createResolver(t,n),subPrefixes:n.filter((e=>!
e.toLowerCase().includes("hover")))},i.set(o,s)),s}const
Ze=e=>r.isObject(e)&&Object.getOwnPropertyNames(e).reduce(((t,n)=>t||
r.isFunction(e[n])),!1),Je=["top","bottom","left","right","chartArea"];function
et(e,t){return"top"===e||"bottom"===e||-1===Je.indexOf(e)&&"x"===t}function tt(e,t)
{return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function nt(e){const
t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),r.callback(n&&n.onCo
mplete,[e],t)}function rt(e){const
t=e.chart,n=t.options.animation;r.callback(n&&n.onProgress,[e],t)}function it(e)
{return r._isDomSupported()&&"string"==typeof e?
e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}cons
t ot={},st=e=>{const t=it(e);return
Object.values(ot).filter((e=>e.canvas===t)).pop()};function at(e,t,n){const
r=Object.keys(e);for(const i of r){const r=+i;if(r>=t){const o=e[i];delete e[i],
(n>0||r>t)&&(e[r+n]=o)}}}function ct(e,t,n){return e.options.clip?e[n]:t[n]}class
ut{static defaults=r.defaults;static instances=ot;static
overrides=r.overrides;static registry=Le;static version="4.4.0";static
getChart=st;static register(...e){Le.add(...e),lt()}static unregister(...e)
{Le.remove(...e),lt()}constructor(e,t){const n=this.config=new
Qe(t),i=it(e),s=st(i);if(s)throw new Error("Canvas is already in use. Chart with ID
'"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be
reused.");const
a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.pla
tform||Se(i)),this.platform.updateConfig(n);const
c=this.platform.acquireContext(i,a.aspectRatio),u=c&&c.canvas,l=u&&u.height,h=u&&u.
width;this.id=r.uid(),this.ctx=c,this.canvas=u,this.width=h,this.height=l,this._opt
ions=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._s
tacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void
0,this._active=[],this._lastEvent=void
0,this._listeners={},this._responsiveListeners=void
0,this._sortedMetasets=[],this.scales={},this._plugins=new Fe,this.
$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void
0,this.$context=void
0,this._doResize=r.debounce((e=>this.update(e)),a.resizeDelay||
0),this._dataChanges=[],ot[this.id]=this,c&&u?
(o.listen(this,"complete",nt),o.listen(this,"progress",rt),this._initialize(),this.
attached&&this.update()):console.error("Failed to create chart: can't acquire
context from the given item")}get aspectRatio(){const{options:
{aspectRatio:e,maintainAspectRatio:t},width:n,height:i,_aspectRatio:o}=this;return
r.isNullOrUndef(e)?t&&o?o:i?n/i:null:e}get data(){return this.config.data}set
data(e){this.config.data=e}get options(){return this._options}set options(e)
{this.config.options=e}get registry(){return Le}_initialize(){return
this.notifyPlugins("beforeInit"),this.options.responsive?
this.resize():r.retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),t
his.notifyPlugins("afterInit"),this}clear(){return
r.clearCanvas(this.canvas,this.ctx),this}stop(){return
o.stop(this),this}resize(e,t){o.running(this)?
this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const
n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,s=this.platf
orm.getMaximumSize(i,e,t,o),a=n.devicePixelRatio||
this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.wid
th,this.height=s.height,this._aspectRat
io=this.aspectRatio,r.retinaScale(this,a,!0)&&(this.notifyPlugins("resize",
{size:s}),r.callback(n.onResize,
[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs
(){const e=this.options.scales||{};r.each(e,
((e,t)=>{e.id=t}))}buildOrUpdateScales(){const
e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce(((e,t)=>(e[t]=!
1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const
n=t[e],r=Ge(e,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bo
ttom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),r.each(o,(t=>{const
o=t.options,s=o.id,a=Ge(s,o),c=r.valueOrDefault(o.type,t.dtype);void 0!
==o.position&&et(o.position,a)===et(t.dposition)||(o.position=t.dposition),i[s]=!
0;let u=null;s in n&&n[s].type===c?u=n[s]:(u=new(Le.getScale(c))
({id:s,type:c,ctx:this.ctx,chart:this}),n[u.id]=u),u.init(o,e)})),r.each(i,
((e,t)=>{e||delete n[t]})),r.each(n,
(e=>{oe.configure(this,e,e.options),oe.addBox(this,e)}))}_updateMetasets(){const
e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-
t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-
t)}this._sortedMetasets=e.slice(0).sort(tt("order","index"))}_removeUnreferencedMet
asets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete
this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._des
troyDatasetMeta(n)}))}buildOrUpdateControllers(){const
e=[],t=this.data.datasets;let
n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n<i;n++){const i=t[n];let
o=this.getDatasetMeta(n);const s=i.type||this.config.type;if(o.type&&o.type!
==s&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=s,o.indexAxis=i.
indexAxis||Ue(s,this.options),o.order=i.order||
0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.co
ntroller.updateIndex(n),o.controller.linkScales();else{const t=Le.getController(s),
{datasetElementType:i,dataElementType:a}=r.defaults.datasets[s];Object.assign(t,
{dataElementType:Le.getElement(a),datasetElementType:i&&Le.getElement(i)}),o.contro
ller=new t(this,n),e.push(o.controller)}}return
this._updateMetasets(),e}_resetElements(){r.each(this.data.datasets,
((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset()
{this._resetElements(),this.notifyPlugins("reset")}update(e){const
t=this.config;t.update();const
n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._a
nimationsDisabled=!
n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIn
dices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",
{mode:e,cancelable:!0}))return;const
o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let
s=0;for(let e=0,t=this.data.datasets.length;e<t;e++)
{const{controller:t}=this.getDatasetMeta(e),n=!i&&-
1===o.indexOf(t);t.buildOrUpdateElements(n),s=Math.max(+t.getMaxOverflow(),s)}s=thi
s._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||r.each(o,
(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",
{mode:e}),this._layers.sort(tt("z","_idx"));const{_active:a,_lastEvent:c}=this;c?
this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!
0),this.render()}_updateScales(){r.each(this.scales,
(e=>{oe.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}
_checkEventBindings(){const e=this.options,t=new
Set(Object.keys(this._listeners)),n=new Set(e.events);r.setsEqual(t,n)&&!!
this._responsiveListeners===e.responsive||
(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices()
{const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||
[];for(const{method:n,start:r,count:i}of t)at(e,r,"_removeElements"===n?-
i:i)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!
e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new
Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),i=n(0);for(l
et e=1;e<t;e++)if(!r.setsEqual(i,n(e)))return;return
Array.from(i).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:
+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!
0}))return;oe.update(this,this.width,this.height,e);const
t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],r.each(this.boxes,
(e=>{n&&"chartArea"===e.position||
(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers
.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e)
{if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let
e=0,t=this.data.datasets.length;e<t;+
+e)this.getDatasetMeta(e).controller.configure();for(let
t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,r.isFunction(e)?
e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",
{mode:e})}}_updateDataset(e,t){const
n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!
==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelabl
e=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!
==this.notifyPlugins("beforeRender",{cancelable:!0})&&(o.has(this)?this.attached&&!
o.running(this)&&o.start(this):(this.draw(),nt({chart:this})))}draw(){let
e;if(this._resizeBeforeDraw)
{const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBefor
eDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!
1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const
t=this._layers;for(e=0;e<t.length&&t[e].z<=0;+
+e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;+
+e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas
(e){const t=this._sortedMetasets,n=[];let r,i;for(r=0,i=t.length;r<i;++r){const
i=t[r];e&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return
this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!
1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const
e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--
t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e)
{const t=this.ctx,n=e._clip,i=!n.disabled,o=function(e,t)
{const{xScale:n,yScale:r}=e;return n&&r?
{left:ct(n,t,"left"),right:ct(n,t,"right"),top:ct(r,t,"top"),bottom:ct(r,t,"bottom"
)}:t}(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};!1!
==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&r.clipArea(t,{left:!1===n.left?
0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?
0:o.top-n.top,bottom:!1===n.bottom?
this.height:o.bottom+n.bottom}),e.controller.draw(),i&&r.unclipArea(t),s.cancelable
=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return
r._isPointInArea(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n
,r){const i=K.modes[t];return"function"==typeof i?i(this,e,n,r):
[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let
r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:
[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.or
der||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return
this.$context||(this.$context=r.createContext(null,
{chart:this,type:"chart"}))}getVisibleDatasetCount(){return
this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const
t=this.data.datasets[e];if(!t)return!1;const
n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!
t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!
t}toggleDataVisibility(e){this._hiddenIndices[e]=!
this._hiddenIndices[e]}getDataVisibility(e){return!
this._hiddenIndices[e]}_updateVisibility(e,t,n){const
i=n?"show":"hide",o=this.getDatasetMeta(e),s=o.controller._resolveAnimations(void
0,i);r.defined(t)?(o.data[t].hidden=!n,this.update()):
(this.setDatasetVisibility(e,n),s.update(o,
{visible:n}),this.update((t=>t.datasetIndex===e?i:void 0)))}hide(e,t)
{this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!
0)}_destroyDatasetMeta(e){const
t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete
this._metasets[e]}_stop(){let
e,t;for(this.stop(),o.remove(this),e=0,t=this.data.datasets.length;e<t;+
+e)this._destroyDatasetMeta(e)}destroy()
{this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.c
onfig.clearCache(),e&&(this.unbindEvents(),r.clearCanvas(e,t),this.platform.release
Context(t),this.canvas=null,this.ctx=null),delete
ot[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return
this.canvas.toDataURL(...e)}bindEvents()
{this.bindUserEvents(),this.options.responsive?
this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const
e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},i=
(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};r.each(this.options.events
,(e=>n(e,i)))}bindResponsiveEvents(){this._responsiveListeners||
(this._responsiveListeners={});const
e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),
e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete
e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const
s=()=>{r("attach",s),this.attached=!
0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!
1,r("resize",i),this._stop(),this._resize(0,0),n("attach",s)},t.isAttached(this.can
vas)?s():o()}unbindEvents(){r.each(this._listeners,
((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},r.each(t
his._responsiveListeners,
((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=v
oid 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let
i,o,s,a;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["
_"+r+"DatasetHoverStyle"]()),s=0,a=e.length;s<a;++s){o=e[s];const
t=o&&this.getDatasetMeta(o.datasetIndex).controller;t&&t[r+"HoverStyle"]
(o.element,o.datasetIndex,o.index)}}getActiveElements(){return
this._active||[]}setActiveElements(e){const t=this._active||
[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw
new Error("No dataset found at index
"+e);return{datasetIndex:e,element:n.data[t],index:t}}));!
r._elementsEqual(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles
(n,t))}notifyPlugins(e,t,n){return
this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return
1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t
,n){const r=this.options.hover,i=(e,t)=>e.filter((e=>!
t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),o=i(t,e),s=n?
e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!
1),s.length&&r.mode&&this.updateHoverStyle(s,r.mode,!0)}_eventHandler(e,t){const
n={event:e,replay:t,cancelable:!
0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||
this.options.events).includes(e.native.type);if(!
1===this.notifyPlugins("beforeEvent",n,r))return;const
i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!
1,this.notifyPlugins("afterEvent",n,r),(i||
n.changed)&&this.render(),this}_handleEvent(e,t,n)
{const{_active:i=[],options:o}=this,s=t,a=this._getActiveElements(e,i,n,s),c=r._isC
lickEvent(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}
(e,this._lastEvent,n,c);n&&(this._lastEvent=null,r.callback(o.onHover,
[e,a,this],this),c&&r.callback(o.onClick,[e,a,this],this));const l=!
r._elementsEqual(a,i);return(l||
t)&&(this._active=a,this._updateHoverStyles(a,i,t)),this._lastEvent=u,l}_getActiveE
lements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const
i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}function
lt(){return r.each(ut.instances,(e=>e._plugins.invalidate()))}function ht(e,t,n,r)
{return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function dt(e,t,n,i,o,s)
{const{x:a,y:c,startAngle:u,pixelMargin:l,innerRadius:h}=t,d=Math.max(t.outerRadius
+i+n-l,0),f=h>0?h+i+n+l:0;let p=0;const g=o-u;if(i){const e=((h>0?h-i:0)+(d>0?d-
i:0))/2;p=(g-(0!==e?g*e/(e+i):g))/2}const
m=(g-Math.max(.001,g*d-n/r.PI)/d)/2,v=u+m+p,b=o-m-p,
{outerStart:y,outerEnd:w,innerStart:_,innerEnd:E}=function(e,t,n,i){const
o=(s=e.options.borderRadius,r._readValueToProps(s,
["outerStart","outerEnd","innerStart","innerEnd"]));var s;const
a=(n-t)/2,c=Math.min(a,i*t/2),u=e=>{const t=(n-Math.min(a,e))*i/2;return
r._limitValue(e,0,Math.min(a,t))};return{outerStart:u(o.outerStart),outerEnd:u(o.ou
terEnd),innerStart:r._limitValue(o.innerStart,0,c),innerEnd:r._limitValue(o.innerEn
d,0,c)}}(t,f,d,b-v),S=d-y,T=d-w,A=v+y/S,C=b-w/T,O=f+_,x=f+E,I=v+_/O,P=b-E/
x;if(e.beginPath(),s){const t=(A+C)/2;if(e.arc(a,c,d,A,t),e.arc(a,c,d,t,C),w>0)
{const t=ht(T,C,a,c);e.arc(t.x,t.y,w,C,b+r.HALF_PI)}const
n=ht(x,b,a,c);if(e.lineTo(n.x,n.y),E>0){const
t=ht(x,P,a,c);e.arc(t.x,t.y,E,b+r.HALF_PI,P+Math.PI)}const
i=(b-E/f+(v+_/f))/2;if(e.arc(a,c,f,b-E/f,i,!0),e.arc(a,c,f,i,v+_/f,!0),_>0){const
t=ht(O,I,a,c);e.arc(t.x,t.y,_,I+Math.PI,v-r.HALF_PI)}const
o=ht(S,v,a,c);if(e.lineTo(o.x,o.y),y>0){const t=ht(S,A,a,c);e.arc(t.x,t.y,y,v-
r.HALF_PI,A)}}else{e.moveTo(a,c);const
t=Math.cos(A)*d+a,n=Math.sin(A)*d+c;e.lineTo(t,n);const
r=Math.cos(C)*d+a,i=Math.sin(C)*d+c;e.lineTo(r,i)}e.closePath()}class ft extends
Te{static id="arc";static
defaults={borderAlign:"center",borderColor:"#fff",borderDash:
[],borderDashOffset:0,borderJoinStyle:void
0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static
defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!
0,_indexable:e=>"borderDash"!
==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAn
gle;constructor(e){super(),this.options=void 0,this.circumference=void
0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void
0,this.outerRadius=void
0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n)
{const i=this.getProps(["x","y"],n),{angle:o,distance:s}=r.getAngleFromPoint(i,
{x:e,y:t}),
{startAngle:a,endAngle:c,innerRadius:u,outerRadius:l,circumference:h}=this.getProps
(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.o
ptions.spacing+this.options.borderWidth)/2,f=r.valueOrDefault(h,c-a)>=r.TAU||
r._angleBetween(o,a,c),p=r._isBetween(s,u+d,l+d);return f&&p}getCenterPoint(e)
{const{x:t,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:s}=this.getProps([
"x","y","startAngle","endAngle","innerRadius","outerRadius"],e),
{offset:a,spacing:c}=this.options,u=(r+i)/2,l=(o+s+c+a)/
2;return{x:t+Math.cos(u)*l,y:n+Math.sin(u)*l}}tooltipPosition(e){return
this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||
0)/4,o=(t.spacing||0)/
2,s=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n
>r.TAU?Math.floor(n/r.TAU):0,0===n||this.innerRadius<0||
this.outerRadius<0)return;e.save();const
a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const
c=i*(1-Math.sin(Math.min(r.PI,n||
0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,i,o)
{const{fullCircles:s,startAngle:a,circumference:c}=t;let u=t.endAngle;if(s)
{dt(e,t,n,i,u,o);for(let t=0;t<s;++t)e.fill();isNaN(c)||(u=a+(c%r.TAU||
r.TAU))}dt(e,t,n,i,u,o),e.fill()}(e,this,c,o,s),function(e,t,n,i,o)
{const{fullCircles:s,startAngle:a,circumference:c,options:u}=t,
{borderWidth:l,borderJoinStyle:h,borderDash:d,borderDashOffset:f}=u,p="inner"===u.b
orderAlign;if(!l)return;e.setLineDash(d||[]),e.lineDashOffset=f,p?
(e.lineWidth=2*l,e.lineJoin=h||"round"):(e.lineWidth=l,e.lineJoin=h||"bevel");let
g=t.endAngle;if(s){dt(e,t,n,i,g,o);for(let t=0;t<s;++t)e.stroke();isNaN(c)||(g=a+(c
%r.TAU||r.TAU))}p&&function(e,t,n)
{const{startAngle:i,pixelMargin:o,x:s,y:a,outerRadius:c,innerRadius:u}=t;let
l=o/c;e.beginPath(),e.arc(s,a,c,i-l,n+l),u>o?(l=o/u,e.arc(s,a,u,n+l,i-l,!
0)):e.arc(s,a,o,n+r.HALF_PI,i-r.HALF_PI),e.closePath(),e.clip()}(e,t,g),s||
(dt(e,t,n,i,g,o),e.stroke())}(e,this,c,o,s),e.restore()}}function pt(e,t,n=t)
{e.lineCap=r.valueOrDefault(n.borderCapStyle,t.borderCapStyle),e.setLineDash(r.valu
eOrDefault(n.borderDash,t.borderDash)),e.lineDashOffset=r.valueOrDefault(n.borderDa
shOffset,t.borderDashOffset),e.lineJoin=r.valueOrDefault(n.borderJoinStyle,t.border
JoinStyle),e.lineWidth=r.valueOrDefault(n.borderWidth,t.borderWidth),e.strokeStyle=
r.valueOrDefault(n.borderColor,t.borderColor)}function gt(e,t,n)
{e.lineTo(n.x,n.y)}function mt(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,
{start:s,end:a}=t,c=Math.max(i,s),u=Math.min(o,a),l=i<s&&o<s||
i>a&&o>a;return{count:r,start:c,loop:t.loop,ilen:u<c&&!l?r+u-c:u-c}}function
vt(e,t,n,i){const{points:o,options:s}=t,
{count:a,start:c,loop:u,ilen:l}=mt(o,n,i),h=function(e){return e.stepped?
r._steppedLineTo:e.tension||"monotone"===e.cubicInterpolationMode?
r._bezierCurveTo:gt}(s);let d,f,p,{move:g=!0,reverse:m}=i||{};for(d=0;d<=l;+
+d)f=o[(c+(m?l-d:d))%a],f.skip||(g?(e.moveTo(f.x,f.y),g=!
1):h(e,p,f,m,s.stepped),p=f);return u&&(f=o[(c+(m?l:0))%a],h(e,p,f,m,s.stepped)),!!
u}function bt(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=mt(i,n,r),
{move:c=!0,reverse:u}=r||{};let l,h,d,f,p,g,m=0,v=0;const b=e=>(s+(u?a-e:e))
%o,y=()=>{f!
==p&&(e.lineTo(m,p),e.lineTo(m,f),e.lineTo(m,g))};for(c&&(h=i[b(0)],e.moveTo(h.x,h.
y)),l=0;l<=a;++l){if(h=i[b(l)],h.skip)continue;const t=h.x,n=h.y,r=0|t;r===d?(n<f?
f=n:n>p&&(p=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),d=r,v=0,f=p=n),g=n}y()}function
yt(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||
e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?vt:bt}const
wt="function"==typeof Path2D;class _t extends Te{static id="line";static
defaults={borderCapStyle:"butt",borderDash:
[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!
0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static
defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static
descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!
==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void
0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void
0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!
1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const
n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!
this._pointsUpdated){const i=n.spanGaps?
this._loop:this._fullLoop;r._updateBezierControlPoints(this._points,n,e,i,t),this._
pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete
this._path,this._pointsUpdated=!1}get points(){return this._points}get segments()
{return this._segments||
(this._segments=r._computeSegments(this,this.options.segment))}first(){const
e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const
e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t)
{const n=this.options,i=e[t],o=this.points,s=r._boundSegments(this,
{property:t,start:i,end:i});if(!s.length)return;const a=[],c=function(e){return
e.stepped?r._steppedInterpolation:e.tension||"monotone"===e.cubicInterpolationMode?
r._bezierInterpolation:r._pointInLine}(n);let u,l;for(u=0,l=s.length;u<l;++u)
{const{start:r,end:l}=s[u],h=o[r],d=o[l];if(h===d){a.push(h);continue}const
f=c(h,d,Math.abs((i-h[t])/(d[t]-h[t])),n.stepped);f[t]=e[t],a.push(f)}return
1===a.length?a[0]:a}pathSegment(e,t,n){return yt(this)(e,this,t,n)}path(e,t,n)
{const r=this.segments,i=yt(this);let o=this._loop;t=t||0,n=n||this.points.length-
t;for(const s of r)o&=i(e,this,s,{start:t,end:t+n-1});return!!o}draw(e,t,n,r){const
i=this.options||{};(this.points||
[]).length&&i.borderWidth&&(e.save(),function(e,t,n,r){wt&&!t.options.segment?
function(e,t,n,r){let i=t._path;i||(i=t._path=new
Path2D,t.path(i,n,r)&&i.closePath()),pt(e,t.options),e.stroke(i)}
(e,t,n,r):function(e,t,n,r){const{segments:i,options:o}=t,s=yt(t);for(const
a of i)pt(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-
1})&&e.closePath(),e.stroke()}(e,t,n,r)}
(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void
0)}}function Et(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return
Math.abs(t-o)<i.radius+i.hitRadius}class St extends Te{static
id="point";parsed;skip;stop;static
defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"ci
rcle",radius:3,rotation:0};static
defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constru
ctor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void
0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,
{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(e-i,2)+Math.pow(t-
o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return
Et(this,e,"x",t)}inYRange(e,t){return Et(this,e,"y",t)}getCenterPoint(e)
{const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||
this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+
(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!
r._isPointInArea(this,t,this.size(n)/2)||
(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColo
r,r.drawPoint(e,n,this.x,this.y))}getRange(){const e=this.options||{};return
e.radius+e.hitRadius}}function Tt(e,t)
{const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"
],t);let a,c,u,l,h;return e.horizontal?(h=s/2,a=Math.min(n,i),c=Math.max(n,i),u=r-
h,l=r+h):(h=o/2,a=n-h,c=n+h,u=Math.min(r,i),l=Math.max(r,i)),
{left:a,top:u,right:c,bottom:l}}function At(e,t,n,i){return e?
0:r._limitValue(t,n,i)}function Ct(e,t,n,i){const o=null===t,s=null===n,a=e&&!
(o&&s)&&Tt(e,i);return a&&(o||r._isBetween(t,a.left,a.right))&&(s||
r._isBetween(n,a.top,a.bottom))}function Ot(e,t){e.rect(t.x,t.y,t.w,t.h)}function
xt(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-
r,s=(e.y+e.h!==n.y+n.h?t:0)-
i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class It extends
Te{static id="bar";static
defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",p
ointStyle:void 0};static
defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constru
ctor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void
0,this.width=void 0,this.height=void 0,this.inflateAmount=void
0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:
{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:s}=function(e){const
t=Tt(e),n=t.right-t.left,i=t.bottom-t.top,o=function(e,t,n){const
i=e.options.borderWidth,o=e.borderSkipped,s=r.toTRBL(i);return{t:At(o.top,s.top,0,n
),r:At(o.right,s.right,0,t),b:At(o.bottom,s.bottom,0,n),l:At(o.left,s.left,0,t)}}
(e,n/2,i/2),s=function(e,t,n)
{const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),o=e.options.borderR
adius,s=r.toTRBLCorners(o),a=Math.min(t,n),c=e.borderSkipped,u=i||
r.isObject(o);return{topLeft:At(!u||c.top||c.left,s.topLeft,0,a),topRight:At(!u||
c.top||c.right,s.topRight,0,a),bottomLeft:At(!u||c.bottom||
c.left,s.bottomLeft,0,a),bottomRight:At(!u||c.bottom||c.right,s.bottomRight,0,a)}}
(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:s},inner:
{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:
{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-
Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-
Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}
(this),a=(c=s.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?
r.addRoundedRectPath:Ot;var c;e.save(),s.w===o.w&&s.h===o.h||
(e.beginPath(),a(e,xt(s,t,o)),e.clip(),a(e,xt(o,-
t,s)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,xt(o,t)),e.fillStyle=i,e.f
ill(),e.restore()}inRange(e,t,n){return Ct(this,e,t,n)}inXRange(e,t){return
Ct(this,e,null,t)}inYRange(e,t){return Ct(this,null,e,t)}getCenterPoint(e)
{const{x:t,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);
return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return"x"===e?this.width/
2:this.height/2}}var
Pt=Object.freeze({__proto__:null,ArcElement:ft,BarElement:It,LineElement:_t,PointEl
ement:St});const Dt=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159,
64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203,
207)"],kt=Dt.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function
Rt(e){return Dt[e%Dt.length]}function Mt(e){return kt[e%kt.length]}function Nt(e)
{let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var
Lt={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!
n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!
n.forceOverride&&(Nt(r)||(s=i)&&(s.borderColor||s.backgroundColor)||
o&&Nt(o)))return;var s;const a=function(e){let t=0;return(n,r)=>{const
i=e.getDatasetMeta(r).controller;i instanceof k?t=function(e,t){return
e.backgroundColor=e.data.map((()=>Rt(t++))),t}(n,t):i instanceof M?t=function(e,t)
{return e.backgroundColor=e.data.map((()=>Mt(t++))),t}(n,t):i&&(t=function(e,t)
{return e.borderColor=Rt(t),e.backgroundColor=Mt(t),++t}(n,t))}}
(e);r.forEach(a)}};function Ft(e){if(e._decimated){const t=e._data;delete
e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!
0,enumerable:!0,writable:!0,value:t})}}function jt(e)
{e.data.datasets.forEach((e=>{Ft(e)}))}var Bt={id:"decimation",defaults:
{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!
n.enabled)return void jt(e);const
i=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:s,indexAxis:a}=t,c=e.getData
setMeta(o),u=s||t.data;if("y"===r.resolve([a,e.options.indexAxis]))return;if(!
c.controller.supportsDecimation)return;const l=e.scales[c.xAxisID];if("linear"!
==l.type&&"time"!==l.type)return;if(e.options.parsing)return;let h,
{start:d,count:f}=function(e,t){const n=t.length;let i,o=0;const{iScale:s}=e,
{min:a,max:c,minDefined:u,maxDefined:l}=s.getUserBounds();return
u&&(o=r._limitValue(r._lookupByKey(t,s.axis,a).lo,0,n-1)),i=l?
r._limitValue(r._lookupByKey(t,s.axis,c).hi+1,o,n)-o:n-o,{start:o,count:i}}
(c,u);if(f<=(n.threshold||
4*i))Ft(t);else{switch(r.isNullOrUndef(s)&&(t._data=u,delete
t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function()
{return this._decimated},set:function(e){this._data=e}})),n.algorithm)
{case"lttb":h=function(e,t,n,r,i){const o=i.samples||r;if(o>=n)return
e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let c=0;const u=t+n-1;let
l,h,d,f,p,g=t;for(s[c++]=e[g],l=0;l<o-2;l++){let r,i=0,o=0;const
u=Math.floor((l+1)*a)+1+t,m=Math.min(Math.floor((l+2)*a)+1,n)+t,v=m-
u;for(r=u;r<m;r++)i+=e[r].x,o+=e[r].y;i/=v,o/=v;const b=Math.floor(l*a)
+1+t,y=Math.min(Math.floor((l+1)*a)+1,n)+t,{x:w,y:_}=e[g];for(d=f=-1,r=b;r<y;r+
+)f=.5*Math.abs((w-i)*(e[r].y-_)-(w-e[r].x)*(o-_)),f>d&&(d=f,h=e[r],p=r);s[c+
+]=h,g=p}return s[c++]=e[u],s}(u,d,f,i,n);break;case"min-max":h=function(e,t,n,i)
{let o,s,a,c,u,l,h,d,f,p,g=0,m=0;const v=[],b=t+n-1,y=e[t].x,w=e[b].x-
y;for(o=t;o<t+n;++o){s=e[o],a=(s.x-y)/w*i,c=s.y;const t=0|a;if(t===u)c<f?
(f=c,l=o):c>p&&(p=c,h=o),g=(m*g+s.x)/++m;else{const n=o-1;if(!r.isNullOrUndef(l)&&!
r.isNullOrUndef(h)){const t=Math.min(l,h),r=Math.max(l,h);t!==d&&t!
==n&&v.push({...e[t],x:g}),r!==d&&r!==n&&v.push({...e[r],x:g})}o>0&&n!
==d&&v.push(e[n]),v.push(s),u=t,m=0,f=p=c,l=h=d=o}}return v}
(u,d,f,i);break;default:throw new Error(`Unsupported decimation algorithm '$
{n.algorithm}'`)}t._decimated=h}}))},destroy(e){jt(e)}};function Ut(e,t,n,i)
{if(i)return;let
o=t[e],s=n[e];return"angle"===e&&(o=r._normalizeAngle(o),s=r._normalizeAngle(s)),
{property:e,start:o,end:s}}function Ht(e,t,n){for(;t>e;t--){const e=n[t];if(!
isNaN(e.x)&&!isNaN(e.y))break}return t}function Gt(e,t,n,r){return e&&t?
r(e[n],t[n]):e?e[n]:t?t[n]:0}function zt(e,t){let n=[],i=!1;return r.isArray(e)?
(i=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return
t.segments.forEach((({start:e,end:t})=>{t=Ht(e,t,i);const s=i[e],a=i[t];null!==r?
(o.push({x:s.x,y:r}),o.push({x:a.x,y:r})):null!
==n&&(o.push({x:n,y:s.y}),o.push({x:n,y:a.y}))})),o}(e,t),n.length?new
_t({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Vt(e){return
e&&!1!==e.fill}function Wt(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return
i;for(;!1!==i&&-1===o.indexOf(i);){if(!r.isNumberFinite(i))return i;if(s=e[i],!
s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function qt(e,t,n)
{const i=function(e){const t=e.options,n=t.fill;let
i=r.valueOrDefault(n&&n.target,n);return void 0===i&&(i=!!t.backgroundColor),!1!
==i&&null!==i&&(!0===i?"origin":i)}(e);if(r.isObject(i))return!
isNaN(i.value)&&i;let o=parseFloat(i);return
r.isNumberFinite(o)&&Math.floor(o)===o?function(e,t,n,r){return"-"!==e&&"+"!==e||
(n=t+n),!(n===t||n<0||n>=r)&&n}(i[0],t,o,n):
["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Kt(e,t,n){const
r=[];for(let i=0;i<n.length;i++){const o=n[i],
{first:s,last:a,point:c}=Yt(o,t,"x");if(!(!c||s&&a))if(s)r.unshift(c);else
if(e.push(c),!a)break}e.push(...r)}function Yt(e,t,n){const
i=e.interpolate(t,n);if(!i)return{};const o=i[n],s=e.segments,a=e.points;let c=!
1,u=!1;for(let e=0;e<s.length;e++){const t=s[e],i=a[t.start][n],l=a[t.end]
[n];if(r._isBetween(o,i,l))
{c=o===i,u=o===l;break}}return{first:c,last:u,point:i}}class $t{constructor(e)
{this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n)
{const{x:i,y:o,radius:s}=this;return t=t||
{start:0,end:r.TAU},e.arc(i,o,s,t.end,t.start,!0),!n.bounds}interpolate(e)
{const{x:t,y:n,radius:r}=this,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,
angle:i}}}function Qt(e,t,n){const i=function(e)
{const{chart:t,fill:n,line:i}=e;if(r.isNumberFinite(n))return function(e,t){const
n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}
(t,n);if("stack"===n)return function(e)
{const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=function(e,t){const
n=[],r=e.getMatchingVisibleMetas("line");for(let e=0;e<r.length;e++){const
i=r[e];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}
(t,n);a.push(zt({x:null,y:t.bottom},r));for(let e=0;e<o.length;e++){const
t=o[e];for(let e=t.start;e<=t.end;e++)Kt(i,s[e],a)}return new _t({points:i,options:
{}})}(e);if("shape"===n)return!0;const o=function(e){return(e.scale||
{}).getPointPositionForValue?function(e)
{const{scale:t,fill:n}=e,i=t.options,o=t.getLabels().length,s=i.reverse?
t.max:t.min,a=function(e,t,n){let i;return i="start"===e?n:"end"===e?
t.options.reverse?t.min:t.max:r.isObject(e)?e.value:t.getBaseValue(),i}
(n,t,s),c=[];if(i.grid.circular){const e=t.getPointPositionForValue(0,s);return new
$t({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<o;+
+e)c.push(t.getPointPositionForValue(e,a));return c}(e):function(e)
{const{scale:t={},fill:n}=e,i=function(e,t){let n=null;return"start"===e?
n=t.bottom:"end"===e?n=t.top:r.isObject(e)?
n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}
(n,t);if(r.isNumberFinite(i)){const e=t.isHorizontal();return{x:e?i:null,y:e?
null:i}}return null}(e)}(e);return o instanceof $t?o:zt(o,i)}(t),
{line:o,scale:s,axis:a}=t,c=o.options,u=c.fill,l=c.backgroundColor,
{above:h=l,below:d=l}=u||{};i&&o.points.length&&(r.clipArea(e,n),function(e,t)
{const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,c=n._loop?"angle":t.axis;e
.save(),"x"===c&&o!==i&&(Xt(e,r,s.top),Zt(e,
{line:n,target:r,color:i,scale:a,property:c}),e.restore(),e.save(),Xt(e,r,s.bottom)
),Zt(e,{line:n,target:r,color:o,scale:a,property:c}),e.restore()}(e,
{line:o,target:i,above:h,below:d,area:n,scale:s,axis:a}),r.unclipArea(e))}function
Xt(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of
r){const{start:r,end:c}=a,u=i[r],l=i[Ht(r,c,i)];o?(e.moveTo(u.x,u.y),o=!1):
(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,a,{move:s}),s?
e.closePath():e.lineTo(l.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}functi
on Zt(e,t){const{line:n,target:i,property:o,color:s,scale:a}=t,c=function(e,t,n)
{const i=e.segments,o=e.points,s=t.points,a=[];for(const e of i)
{let{start:i,end:c}=e;c=Ht(i,c,o);const u=Ut(n,o[i],o[c],e.loop);if(!t.segments)
{a.push({source:e,target:u,start:o[i],end:o[c]});continue}const
l=r._boundSegments(t,u);for(const t of l){const
i=Ut(n,s[t.start],s[t.end],t.loop),c=r._boundSegment(e,o,i);for(const e of
c)a.push({source:e,target:t,start:{[n]:Gt(u,i,"start",Math.max)},end:
{[n]:Gt(u,i,"end",Math.min)}})}}return a}
(n,i,o);for(const{source:t,target:r,start:u,end:l}of c){const{style:
{backgroundColor:c=s}={}}=t,h=!0!
==i;e.save(),e.fillStyle=c,Jt(e,a,h&&Ut(o,u,l)),e.beginPath();const d=!!
n.pathSegment(e,t);let f;if(h){d?e.closePath():en(e,i,l,o);const t=!!
i.pathSegment(e,r,{move:d,reverse:!0});f=d&&t,f||
en(e,i,u,o)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function
Jt(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||
{};"x"===o&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function en(e,t,n,r){const
i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var
tn={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||
[]).length,i=[];let o,s,a,c;for(s=0;s<r;+
+s)o=e.getDatasetMeta(s),a=o.dataset,c=null,a&&a.options&&a instanceof
_t&&(c={visible:e.isDatasetVisible(s),index:s,fill:qt(a,s,r),chart:e,axis:o.control
ler.options.indexAxis,scale:o.vScale,line:a}),o.$filler=c,i.push(c);for(s=0;s<r;+
+s)c=i[s],c&&!1!==c.fill&&(c.fill=Wt(i,s,n.propagate))},beforeDraw(e,t,n){const
r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(le
t t=i.length-1;t>=0;--t){const n=i[t].
$filler;n&&(n.line.updateControlPoints(o,n.axis),r&&n.fill&&Qt(e.ctx,n,o))}},before
DatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const
r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].
$filler;Vt(n)&&Qt(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.
$filler;Vt(r)&&"beforeDatasetDraw"===n.drawTime&&Qt(e.ctx,r,e.chartArea)},defaults:
{propagate:!0,drawTime:"beforeDatasetDraw"}};const
nn=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return
e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),
{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class rn extends
Te{constructor(e){super(),this._added=!
1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!
1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void
0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void
0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void
0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void
0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n)
{this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLa
bels(),this.fit()}setDimensions(){this.isHorizontal()?
(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):
(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}bui
ldLabels(){const e=this.options.labels||{};let t=r.callback(e.generateLabels,
[this.chart],this)||
[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n
)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItem
s=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return
void(this.width=this.height=0);const
n=e.labels,i=r.toFont(n.font),o=i.size,s=this._computeTitleHeight(),
{boxWidth:a,itemHeight:c}=nn(n,o);let u,l;t.font=i.string,this.isHorizontal()?
(u=this.maxWidth,l=this._fitRows(s,o,a,c)+10):
(l=this.maxHeight,u=this._fitCols(s,i,a,c)+10),this.width=Math.min(u,e.maxWidth||
this.maxWidth),this.height=Math.min(l,e.maxHeight||
this.maxHeight)}_fitRows(e,t,n,r){const{ctx:i,maxWidth:o,options:{labels:
{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+s;let
l=e;i.textAlign="left",i.textBaseline="middle";let h=-1,d=-u;return
this.legendItems.forEach(((e,f)=>{const p=n+t/2+i.measureText(e.text).width;
(0===f||c[c.length-1]+p+2*s>o)&&(l+=u,c[c.length-(f>0?0:1)]=0,d+=u,h+
+),a[f]={left:0,top:d,row:h,width:p,height:r},c[c.length-
1]+=p+s})),l}_fitCols(e,t,n,r){const{ctx:i,maxHeight:o,options:{labels:
{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let
l=s,h=0,d=0,f=0,p=0;return
this.legendItems.forEach(((e,o)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,r,
i){const o=function(e,t,n,r){let i=e.text;return i&&"string"!=typeof
i&&(i=i.reduce(((e,t)=>e.length>t.length?e:t))),t+n.size/2+r.measureText(i).width}
(r,e,t,n),s=function(e,t,n){let r=e;return"string"!=typeof t.text&&(r=on(t,n)),r}
(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}
(n,t,i,e,r);o>0&&d+m+2*s>u&&(l+=h+s,c.push({width:h,height:d}),f+=h+s,p+
+,h=d=0),a[o]={left:f,top:d,col:p,width:g,height:m},h=Math.max(h,g),d+=m+s})),l+=h,
c.push({width:h,height:d}),l}adjustHitBoxes(){if(!this.options.display)return;const
e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:
{padding:i},rtl:o}}=this,s=r.getRtlAdapter(o,this.left,this.width);if(this.isHorizo
ntal()){let o=0,a=r._alignStartEnd(n,this.left+i,this.right-
this.lineWidths[o]);for(const c of t)o!
==c.row&&(o=c.row,a=r._alignStartEnd(n,this.left+i,this.right-
this.lineWidths[o])),c.top+=this.top+e+i,c.left=s.leftForLtr(s.x(a),c.width),a+=c.w
idth+i}else{let o=0,a=r._alignStartEnd(n,this.top+e+i,this.bottom-
this.columnSizes[o].height);for(const c of t)c.col!
==o&&(o=c.col,a=r._alignStartEnd(n,this.top+e+i,this.bottom-
this.columnSizes[o].height)),c.top=a,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.
left),c.width),a+=c.height+i}}isHorizontal()
{return"top"===this.options.position||"bottom"===this.options.position}draw()
{if(this.options.display){const
e=this.ctx;r.clipArea(e,this),this._draw(),r.unclipArea(e)}}_draw()
{const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,
{align:o,labels:s}=e,a=r.defaults.color,c=r.getRtlAdapter(e.rtl,this.left,this.widt
h),u=r.toFont(s.font),{padding:l}=s,h=u.size,d=h/2;let
f;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWi
dth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=nn(s,h),v=this.is
Horizontal(),b=this._computeTitleHeight();f=v?
{x:r._alignStartEnd(o,this.left+l,this.right-n[0]),y:this.top+l+b,line:0}:
{x:this.left+l,y:r._alignStartEnd(o,this.top+b+l,this.bottom-
t[0].height),line:0},r.overrideTextDirection(this.ctx,e.textDirection);const
y=m+l;this.legendItems.forEach(((w,_)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fon
tColor;const E=i.measureText(w.text).width,S=c.textAlign(w.textAlign||
(w.textAlign=s.textAlign)),T=p+d+E;let A=f.x,C=f.y;if(c.setWidth(this.width),v?
_>0&&A+T+l>this.right&&(C=f.y+=y,f.line+
+,A=f.x=r._alignStartEnd(o,this.left+l,this.right-
n[f.line])):_>0&&C+y>this.bottom&&(A=f.x=A+t[f.line].width+l,f.line+
+,C=f.y=r._alignStartEnd(o,this.top+b+l,this.bottom-
t[f.line].height)),function(e,t,n){if(isNaN(p)||p<=0||isNaN(g)||
g<0)return;i.save();const
o=r.valueOrDefault(n.lineWidth,1);if(i.fillStyle=r.valueOrDefault(n.fillStyle,a),i.
lineCap=r.valueOrDefault(n.lineCap,"butt"),i.lineDashOffset=r.valueOrDefault(n.line
DashOffset,0),i.lineJoin=r.valueOrDefault(n.lineJoin,"miter"),i.lineWidth=o,i.strok
eStyle=r.valueOrDefault(n.strokeStyle,a),i.setLineDash(r.valueOrDefault(n.lineDash,
[])),s.usePointStyle){const
a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o}
,u=c.xPlus(e,p/2),l=t+d;r.drawPointLegend(i,a,u,l,s.pointStyleWidth&&p)}else{const
s=t+Math.max((h-g)/2,0),a=c.leftForLtr(e,p),u=r.toTRBLCorners(n.borderRadius);i.beg
inPath(),Object.values(u).some((e=>0!==e))?r.addRoundedRectPath(i,
{x:a,y:s,w:p,h:g,radius:u}):i.rect(a,s,p,g),i.fill(),0!==o&&i.stroke()}i.restore()}
(c.x(A),C,w),A=r._textX(S,A+p+d,v?A+T:this.right,e.rtl),function(e,t,n)
{r.renderText(i,n.text,e,t+m/2,u,
{strikethrough:n.hidden,textAlign:c.textAlign(n.textAlign)})}
(c.x(A),C,w),v)f.x+=T+l;else
if("string"!=typeof w.text){const e=u.lineHeight;f.y+=on(w,e)+l}else
f.y+=y})),r.restoreTextDirection(this.ctx,e.textDirection)}drawTitle(){const
e=this.options,t=e.title,n=r.toFont(t.font),i=r.toPadding(t.padding);if(!
t.display)return;const
o=r.getRtlAdapter(e.rtl,this.left,this.width),s=this.ctx,a=t.position,c=n.size/
2,u=i.top+c;let
l,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=
this.top+u,h=r._alignStartEnd(e.align,h,this.right-d);else{const
t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);l=u+r._alignStartEnd(e.a
lign,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const
f=r._alignStartEnd(a,h,h+d);s.textAlign=o.textAlign(r._toLeftRightCenter(a)),s.text
Baseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=n.string,r.rende
rText(s,t.text,f,l,n)}_computeTitleHeight(){const
e=this.options.title,t=r.toFont(e.font),n=r.toPadding(e.padding);return e.display?
t.lineHeight+n.height:0}_getLegendItemAt(e,t){let
n,i,o;if(r._isBetween(e,this.left,this.right)&&r._isBetween(t,this.top,this.bottom)
)for(o=this.legendHitBoxes,n=0;n<o.length;+
+n)if(i=o[n],r._isBetween(e,i.left,i.left+i.width)&&r._isBetween(t,i.top,i.top+i.he
ight))return this.legendItems[n];return null}handleEvent(e){const
t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!
t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}
(e.type,t))return;const
n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type)
{const s=this._hoveredItem,a=(o=n,null!==(i=s)&&null!
==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);s&&!
a&&r.callback(t.onLeave,[e,s,this],this),this._hoveredItem=n,n&&!
a&&r.callback(t.onHover,[e,n,this],this)}else n&&r.callback(t.onClick,
[e,n,this],this);var i,o}}function on(e,t){return t*(e.text?e.text.length:0)}var
sn={id:"legend",_element:rn,start(e,t,n){const r=e.legend=new
rn({ctx:e.ctx,options:n,chart:e});oe.configure(e,r,n),oe.addBox(e,r)},stop(e)
{oe.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const
r=e.legend;oe.configure(e,r,n),r.options=n},afterUpdate(e){const
t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||
e.legend.handleEvent(t.event)},defaults:{display:!
0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n)
{const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):
(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:
{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const
t=e.data.datasets,{labels:
{usePointStyle:n,pointStyle:i,textAlign:o,color:s,useBorderRadius:a,borderRadius:c}
}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const
u=e.controller.getStyle(n?0:void
0),l=r.toPadding(u.borderWidth);return{text:t[e.index].label,fillStyle:u.background
Color,fontColor:s,hidden:!
e.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDas
hOffset,lineJoin:u.borderJoinStyle,lineWidth:(l.width+l.height)/
4,strokeStyle:u.borderColor,pointStyle:i||
u.pointStyle,rotation:u.rotation,textAlign:o||u.textAlign,borderRadius:a&&(c||
u.borderRadius),datasetIndex:e.index}}),this)}},title:
{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:
{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!
["generateLabels","filter","sort"].includes(e)}}};class an extends
Te{constructor(e)
{super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=voi
d 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void
0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void
0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!
n.display)return
void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.
height=this.bottom=t;const i=r.isArray(n.text)?
n.text.length:1;this._padding=r.toPadding(n.padding);const
o=i*r.toFont(n.font).lineHeight+this._padding.height;this.isHorizontal()?
this.height=o:this.width=o}isHorizontal(){const
e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e)
{const{top:t,left:n,bottom:i,right:o,options:s}=this,a=s.align;let c,u,l,h=0;return
this.isHorizontal()?(u=r._alignStartEnd(a,n,o),l=t+e,c=o-n):("left"===s.position?
(u=n+e,l=r._alignStartEnd(a,i,t),h=-.5*r.PI):(u=o-
e,l=r._alignStartEnd(a,t,i),h=.5*r.PI),c=i-t),
{titleX:u,titleY:l,maxWidth:c,rotation:h}}draw(){const
e=this.ctx,t=this.options;if(!t.display)return;const
n=r.toFont(t.font),i=n.lineHeight/2+this._padding.top,
{titleX:o,titleY:s,maxWidth:a,rotation:c}=this._drawArgs(i);r.renderText(e,t.text,0
,0,n,
{color:t.color,maxWidth:a,rotation:c,textAlign:r._toLeftRightCenter(t.align),textBa
seline:"middle",translation:[o,s]})}}var cn={id:"title",_element:an,start(e,t,n){!
function(e,t){const n=new
an({ctx:e.ctx,options:t,chart:e});oe.configure(e,n,t),oe.addBox(e,n),e.titleBlock=n
}(e,n)},stop(e){const t=e.titleBlock;oe.removeBox(e,t),delete
e.titleBlock},beforeUpdate(e,t,n){const
r=e.titleBlock;oe.configure(e,r,n),r.options=n},defaults:{align:"center",display:!
1,font:{weight:"bold"},fullSize:!
0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:
{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const un=new
WeakMap;var ln={id:"subtitle",start(e,t,n){const r=new
an({ctx:e.ctx,options:n,chart:e});oe.configure(e,r,n),oe.addBox(e,r),un.set(e,r)},s
top(e){oe.removeBox(e,un.get(e)),un.delete(e)},beforeUpdate(e,t,n){const
r=un.get(e);oe.configure(e,r,n),r.options=n},defaults:{align:"center",display:!
1,font:{weight:"normal"},fullSize:!
0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:
{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hn={average(e)
{if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const
n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r+=e.x,i+=e.y,+
+o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let
n,i,o,s=t.x,a=t.y,c=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){const
i=e[n].element;if(i&&i.hasValue()){const
e=i.getCenterPoint(),n=r.distanceBetweenPoints(t,e);n<c&&(c=n,o=i)}}if(o){const
e=o.tooltipPosition();s=e.x,a=e.y}return{x:s,y:a}}};function dn(e,t){return
t&&(r.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function fn(e)
{return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\
n"):e}function pn(e,t)
{const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,
{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i
),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:
i,datasetIndex:r,element:n}}function gn(e,t){const n=e.chart.ctx,
{body:i,footer:o,title:s}=e,
{boxWidth:a,boxHeight:c}=t,u=r.toFont(t.bodyFont),l=r.toFont(t.titleFont),h=r.toFon
t(t.footerFont),d=s.length,f=o.length,p=i.length,g=r.toPadding(t.padding);let
m=g.height,v=0,b=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),
0);b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*l.lineHeight+(d-
1)*t.titleSpacing+t.titleMarginBottom),b&&(m+=p*(t.displayColors?
Math.max(c,u.lineHeight):u.lineHeight)+(b-p)*u.lineHeight+(b-
1)*t.bodySpacing),f&&(m+=t.footerMarginTop+f*h.lineHeight+(f-
1)*t.footerSpacing);let y=0;const w=function(e)
{v=Math.max(v,n.measureText(e).width+y)};return
n.save(),n.font=l.string,r.each(e.title,w),n.font=u.string,r.each(e.beforeBody.conc
at(e.afterBody),w),y=t.displayColors?a+2+t.boxPadding:0,r.each(i,
(e=>{r.each(e.before,w),r.each(e.lines,w),r.each(e.after,w)})),y=0,n.font=h.string,
r.each(e.footer,w),n.restore(),v+=g.width,{width:v,height:m}}function mn(e,t,n,r)
{const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:c}}=e;let
u="center";return"center"===r?u=i<=(a+c)/2?"left":"right":i<=o/2?u="left":i>=s-o/
2&&(u="right"),function(e,t,n,r)
{const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;return"left"===e&&i+o+s>t.width|
|"right"===e&&i-o-s<0||void 0}(u,e,t,n)&&(u="center"),u}function vn(e,t,n){const
r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return
n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||
t.xAlign||mn(e,t,n,r),yAlign:r}}function bn(e,t,n,i)
{const{caretSize:o,caretPadding:s,cornerRadius:a}=e,{xAlign:c,yAlign:u}=n,l=o+s,
{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=r.toTRBLCorners(a);let
g=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}
(t,c);const m=function(e,t,n){let{y:r,height:i}=e;return"top"===t?r+=n:r-
="bottom"===t?i+n:i/2,r}(t,u,l);return"center"===u?"left"===c?g+=l:"right"===c&&(g-
=l):"left"===c?g-=Math.max(h,f)+o:"right"===c&&(g+=Math.max(d,p)+o),
{x:r._limitValue(g,0,i.width-t.width),y:r._limitValue(m,0,i.height-
t.height)}}function yn(e,t,n){const i=r.toPadding(n.padding);return"center"===t?
e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function wn(e){return
dn([],fn(e))}function _n(e,t){const
n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?
e.override(n):e}const En={beforeTitle:r.noop,title(e){if(e.length>0){const
t=e[0],n=t.chart.data.labels,r=n?
n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return
t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return
n[t.dataIndex]}return""},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,lab
el(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+":
"+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const
n=e.formattedValue;return r.isNullOrUndef(n)||(t+=n),t},labelColor(e){const
t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{bo
rderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth
,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},label
TextColor(){return this.options.bodyColor},labelPointStyle(e){const
t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{po
intStyle:t.pointStyle,rotation:t.rotation}},afterLabel:r.noop,afterB
ody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop};function
Sn(e,t,n,r){const i=e[t].call(n,r);return void 0===i?En[t].call(n,r):i}class Tn
extends Te{static positioners=hn;constructor(e)
{super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void
0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.
$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void
0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void
0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void
0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void
0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void
0,this.labelTextColors=void 0}initialize(e)
{this.options=e,this._cachedAnimations=void 0,this.$context=void
0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const
t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.an
imation&&n.animations,i=new u(this.chart,r);return
r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.
$context||(this.
$context=(e=this.chart.getContext(),this,t=this._tooltipItems,r.createContext(e,
{tooltip:this,tooltipItems:t,type:"tooltip"})));var e,t}getTitle(e,t)
{const{callbacks:n}=t,r=Sn(n,"beforeTitle",this,e),i=Sn(n,"title",this,e),o=Sn(n,"a
fterTitle",this,e);let s=[];return
s=dn(s,fn(r)),s=dn(s,fn(i)),s=dn(s,fn(o)),s}getBeforeBody(e,t){return
wn(Sn(t.callbacks,"beforeBody",this,e))}getBody(e,t)
{const{callbacks:n}=t,i=[];return r.each(e,(e=>{const t={before:[],lines:[],after:
[]},r=_n(n,e);dn(t.before,fn(Sn(r,"beforeLabel",this,e))),dn(t.lines,Sn(r,"label",t
his,e)),dn(t.after,fn(Sn(r,"afterLabel",this,e))),i.push(t)})),i}getAfterBody(e,t)
{return wn(Sn(t.callbacks,"afterBody",this,e))}getFooter(e,t)
{const{callbacks:n}=t,r=Sn(n,"beforeFooter",this,e),i=Sn(n,"footer",this,e),o=Sn(n,
"afterFooter",this,e);let s=[];return
s=dn(s,fn(r)),s=dn(s,fn(i)),s=dn(s,fn(o)),s}_createItems(e){const
t=this._active,n=this.chart.data,i=[],o=[],s=[];let
a,c,u=[];for(a=0,c=t.length;a<c;++a)u.push(pn(this.chart,t[a]));return
e.filter&&(u=u.filter(((t,r,i)=>e.filter(t,r,i,n)))),e.itemSort&&(u=u.sort(((t,r)=>
e.itemSort(t,r,n)))),r.each(u,(t=>{const
n=_n(e.callbacks,t);i.push(Sn(n,"labelColor",this,t)),o.push(Sn(n,"labelPointStyle"
,this,t)),s.push(Sn(n,"labelTextColor",this,t))})),this.labelColors=i,this.labelPoi
ntStyles=o,this.labelTextColors=s,this.dataPoints=u,u}update(e,t){const
n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length)
{const
e=hn[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title
=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(
o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const
t=this._size=gn(this,n),s=Object.assign({},e,t),a=vn(this.chart,n,s),c=bn(n,s,a,thi
s.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,i={opacity:1,x:c.x,y:c.y,width:t
.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!
==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void
0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,
{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const
i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x
3,i.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:o}=this,
{caretSize:s,cornerRadius:a}=n,
{topLeft:c,topRight:u,bottomLeft:l,bottomRight:h}=r.toTRBLCorners(a),{x:d,y:f}=e,
{width:p,height:g}=t;let m,v,b,y,w,_;return"center"===o?(w=f+g/2,"left"===i?
(m=d,v=m-s,y=w+s,_=w-s):(m=d+p,v=m+s,y=w-s,_=w+s),b=m):(v="left"===i?
d+Math.max(c,l)+s:"right"===i?d+p-Math.max(u,h)-s:this.caretX,"top"===o?(y=f,w=y-
s,m=v-s,b=v+s):(y=f+g,w=y+s,m=v+s,b=v-s),_=y),
{x1:m,x2:v,x3:b,y1:y,y2:w,y3:_}}drawTitle(e,t,n){const i=this.title,o=i.length;let
s,a,c;if(o){const
u=r.getRtlAdapter(n.rtl,this.x,this.width);for(e.x=yn(this,n.titleAlign,n),t.textAl
ign=u.textAlign(n.titleAlign),t.textBaseline="middle",s=r.toFont(n.titleFont),a=n.t
itleSpacing,t.fillStyle=n.titleColor,t.font=s.string,c=0;c<o;+
+c)t.fillText(i[c],u.x(e.x),e.y+s.lineHeight/
2),e.y+=s.lineHeight+a,c+1===o&&(e.y+=n.titleMarginBottom-
a)}}_drawColorBox(e,t,n,i,o){const
s=this.labelColors[n],a=this.labelPointStyles[n],
{boxHeight:c,boxWidth:u}=o,l=r.toFont(o.bodyFont),h=yn(this,"left",o),d=i.x(h),f=c<
l.lineHeight?(l.lineHeight-c)/2:0,p=t.y+f;if(o.usePointStyle){const
t={radius:Math.min(u,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1
},n=i.leftForLtr(d,u)+u/2,l=p+c/
2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,r.drawPoint(e
,t,n,l),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,r.drawPoint(e,t,n
,l)}else{e.lineWidth=r.isObject(s.borderWidth)?
Math.max(...Object.values(s.borderWidth)):s.borderWidth||
1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||
[]),e.lineDashOffset=s.borderDashOffset||0;const
t=i.leftForLtr(d,u),n=i.leftForLtr(i.xPlus(d,1),u-
2),a=r.toTRBLCorners(s.borderRadius);Object.values(a).some((e=>0!==e))?
(e.beginPath(),e.fillStyle=o.multiKeyBackground,r.addRoundedRectPath(e,
{x:t,y:p,w:u,h:c,radius:a}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beg
inPath(),r.addRoundedRectPath(e,{x:n,y:p+1,w:u-2,h:c-2,radius:a}),e.fill()):
(e.fillStyle=o.multiKeyBackground,e.fillRect(t,p,u,c),e.strokeRect(t,p,u,c),e.fillS
tyle=s.backgroundColor,e.fillRect(n,p+1,u-2,c-
2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,
{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:c,boxWidth:u,boxPadding:l}=n,h
=r.toFont(n.bodyFont);let d=h.lineHeight,f=0;const
p=r.getRtlAdapter(n.rtl,this.x,this.width),g=function(n)
{t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+o},m=p.textAlign(s);let
v,b,y,w,_,E,S;for(t.textAlign=s,t.textBaseline="middle",t.font=h.string,e.x=yn(this
,m,n),t.fillStyle=n.bodyColor,r.each(this.beforeBody,g),f=a&&"right"!
==m?"center"===s?u/2+l:u+2+l:0,w=0,E=i.length;w<E;++w)
{for(v=i[w],b=this.labelTextColors[w],t.fillStyle=b,r.each(v.before,g),y=v.lines,a&
&y.length&&(this._drawColorBox(t,e,w,p,n),d=Math.max(h.lineHeight,c)),_=0,S=y.lengt
h;_<S;+
+_)g(y[_]),d=h.lineHeight;r.each(v.after,g)}f=0,d=h.lineHeight,r.each(this.afterBod
y,g),e.y-=o}drawFooter(e,t,n){const i=this.footer,o=i.length;let s,a;if(o){const
c=r.getRtlAdapter(n.rtl,this.x,this.width);for(e.x=yn(this,n.footerAlign,n),e.y+=n.
footerMarginTop,t.textAlign=c.textAlign(n.footerAlign),t.textBaseline="middle",s=r.
toFont(n.footerFont),t.fillStyle=n.footerColor,t.font=s.string,a=0;a<o;+
+a)t.fillText(i[a],c.x(e.x),e.y+s.lineHeight/
2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,t,n,i)
{const{xAlign:o,yAlign:s}=this,{x:a,y:c}=e,{width:u,height:l}=n,
{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=r.toTRBLCorners(i.cornerRadius);t
.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,
t.beginPath(),t.moveTo(a+h,c),"top"===s&&this.drawCaret(e,t,n,i),t.lineTo(a+u-
d,c),t.quadraticCurveTo(a+u,c,a+u,c+d),"center"===s&&"right"===o&&this.drawCaret(e,
t,n,i),t.lineTo(a+u,c+l-p),t.quadraticCurveTo(a+u,c+l,a+u-
p,c+l),"bottom"===s&&this.drawCaret(e,t,n,i),t.lineTo(a+f,c+l),t.quadraticCurveTo(a
,c+l,a,c+l-
f),"center"===s&&"left"===o&&this.drawCaret(e,t,n,i),t.lineTo(a,c+h),t.quadraticCur
veTo(a,c,a+h,c),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimation
Target(e){const t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const
n=hn[e.position].call(this,this._active,this._eventPosition);if(!n)return;const
o=this._size=gn(this,e),s=Object.assign({},n,this._size),a=vn(t,e,s),c=bn(e,s,a,t);
r._to===c.x&&i._to===c.y||
(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,
this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRen
der(){return!!this.opacity}draw(e){const
t=this.options.setContext(this.getContext());let n=this.opacity;if(!
n)return;this._updateAnimationTarget(t);const
i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?
0:n;const s=r.toPadding(t.padding),a=this.title.length||this.beforeBody.length||
this.body.length||this.afterBody.length||
this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,
i,t),r.overrideTextDirection(e,t.textDirection),o.y+=s.top,this.drawTitle(o,e,t),th
is.drawBody(o,e,t),this.drawFooter(o,e,t),r.restoreTextDirection(e,t.textDirection)
,e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t)
{const n=this._active,i=e.map((({datasetIndex:e,index:t})=>{const
n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at
index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!
r._elementsEqual(n,i),s=this._positionChanged(i,t);(o||
s)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!
0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!
1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||
[],s=this._getActiveElements(e,o,t,n),a=this._positionChanged(s,e),c=t||!
r._elementsEqual(s,o)||a;return c&&(this._active=s,(i.enabled||
i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!
0,t))),c}_getActiveElements(e,t,n,r){const
i=this.options;if("mouseout"===e.type)return[];if(!r)return t;const
o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return
i.reverse&&o.reverse(),o}_positionChanged(e,t)
{const{caretX:n,caretY:r,options:i}=this,o=hn[i.position].call(this,e,t);return!1!
==o&&(n!==o.x||r!==o.y)}}var
An={id:"tooltip",_element:Tn,positioners:hn,afterInit(e,t,n){n&&(e.tooltip=new
Tn({chart:e,options:n}))},beforeUpdate(e,t,n)
{e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n)
{e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const
t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!
1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!
0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t)
{if(e.tooltip){const
n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!
0)}},defaults:{enabled:!
0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#f
ff",titleFont:
{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#ff
f",bodySpacing:2,bodyFont:
{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont
:
{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadiu
s:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:
(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!
0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:
{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:
["x","y","width","height","caretX","caretY"]},opacity:
{easing:"linear",duration:200}},callbacks:En},defaultRoutes:
{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:
{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!
1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:
{_fallback:"animation"}},additionalOptionScopes:
["interaction"]},Cn=Object.freeze({__proto__:null,Colors:Lt,Decimation:Bt,Filler:tn
,Legend:sn,SubTitle:ln,Title:cn,Tooltip:An});function On(e){const
t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class xn extends Re{static
id="category";static defaults={ticks:{callback:On}};constructor(e)
{super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e)
{const t=this._addedLabels;if(t.length){const
e=this.getLabels();for(const{index:n,label:r}of
t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t)
{if(r.isNullOrUndef(e))return null;const n=this.getLabels();return((e,t)=>null===e?
null:r._limitValue(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,r)
{const i=e.indexOf(t);return-1===i?((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-
1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r):i!
==e.lastIndexOf(t)?n:i}(n,e,r.valueOrDefault(t,e),this._addedLabels),n.length-
1)}determineDataLimits()
{const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMin
Max(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-
1)),this.min=n,this.max=r}buildTicks(){const
e=this.min,t=this.max,n=this.options.offset,r=[];let
i=this.getLabels();i=0===e&&t===i.length-1?
i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?
0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n+
+)r.push({value:n});return r}getLabelForValue(e){return On.call(this,e)}configure()
{super.configure(),this.isHorizontal()||(this._reversePixels=!
this._reversePixels)}getPixelForValue(e){return"number"!=typeof
e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/
this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?
null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return
Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePix
el(){return this.bottom}}function In(e,t,{horizontal:n,minRotation:i}){const
o=r.toRadians(i),s=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return
Math.min(t/s,a)}class Pn extends Re{constructor(e){super(e),this.start=void
0,this.end=void 0,this._startValue=void 0,this._endValue=void
0,this._valueRange=0}parse(e,t){return r.isNullOrUndef(e)||("number"==typeof e||e
instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions()
{const{beginAtZero:e}=this.options,
{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const
s=e=>i=t?i:e,a=e=>o=n?o:e;if(e){const e=r.sign(i),t=r.sign(o);e<0&&t<0?
a(0):e>0&&t>0&&s(0)}if(i===o){let t=0===o?1:Math.abs(.05*o);a(o+t),e||s(i-
t)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let t,
{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-
Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: $
{r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):
(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit()
{return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let
n=this.getTickLimit();n=Math.max(2,n);const i=function(e,t){const n=[],
{bounds:i,step:o,min:s,max:a,precision:c,count:u,maxTicks:l,maxDigits:h,includeBoun
ds:d}=e,f=o||1,p=l-1,{min:g,max:m}=t,v=!r.isNullOrUndef(s),b=!
r.isNullOrUndef(a),y=!r.isNullOrUndef(u),w=(m-g)/(h+1);let _,E,S,T,A=r.niceNum((m-
g)/p/f)*f;if(A<1e-14&&!v&&!b)return[{value:g},{value:m}];T=Math.ceil(m/A)-
Math.floor(g/A),T>p&&(A=r.niceNum(T*A/p/f)*f),r.isNullOrUndef(c)||
(_=Math.pow(10,c),A=Math.ceil(A*_)/_),"ticks"===i?(E=Math.floor(g/
A)*A,S=Math.ceil(m/A)*A):(E=g,S=m),v&&b&&o&&r.almostWhole((a-s)/o,A/1e3)?
(T=Math.round(Math.min((a-s)/A,l)),A=(a-s)/T,E=s,S=a):y?(E=v?s:E,S=b?a:S,T=u-
1,A=(S-E)/T):(T=(S-E)/A,T=r.almostEquals(T,Math.round(T),A/1e3)?
Math.round(T):Math.ceil(T));const
C=Math.max(r._decimalPlaces(A),r._decimalPlaces(E));_=Math.pow(10,r.isNullOrUndef(c
)?C:c),E=Math.round(E*_)/_,S=Math.round(S*_)/_;let O=0;for(v&&(d&&E!==s?
(n.push({value:s}),E<s&&O++,r.almostEquals(Math.round((E+O*A)*_)/_,s,In(s,w,e))&&O+
+):E<s&&O++);O<T;++O){const
e=Math.round((E+O*A)*_)/_;if(b&&e>a)break;n.push({value:e})}return b&&d&&S!==a?
n.length&&r.almostEquals(n[n.length-1].value,a,In(a,w,e))?n[n.length-
1].value=a:n.push({value:a}):b&&S!==a||n.push({value:S}),n}
({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepS
ize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRot
ation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||
this);return"ticks"===e.bounds&&r._setMinAndMaxByKey(i,this,"value"),e.reverse?
(i.reverse(),this.start=this.max,this.end=this.min):
(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let
t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const
r=(n-t)/Math.max(e.length-1,1)/2;t-
=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-
t}getLabelForValue(e){return
r.formatNumber(e,this.chart.options.locale,this.options.ticks.format)}}class Dn
extends Pn{static id="linear";static defaults={ticks:
{callback:r.Ticks.formatters.numeric}};determineDataLimits()
{const{min:e,max:t}=this.getMinMax(!0);this.min=r.isNumberFinite(e)?
e:0,this.max=r.isNumberFinite(t)?
t:1,this.handleTickRangeOptions()}computeTickLimit(){const
e=this.isHorizontal(),t=e?
this.width:this.height,n=r.toRadians(this.options.ticks.minRotation),i=(e?
Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return
Math.ceil(t/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return null===e?
NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel
(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const
kn=e=>Math.floor(r.log10(e)),Rn=(e,t)=>Math.pow(10,kn(e)+t);function Mn(e){return
1==e/Math.pow(10,kn(e))}function Nn(e,t,n){const
r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}class Ln extends
Re{static id="logarithmic";static defaults={ticks:
{callback:r.Ticks.formatters.logarithmic,major:{enabled:!0}}};constructor(e)
{super(e),this.start=void 0,this.end=void 0,this._startValue=void
0,this._valueRange=0}parse(e,t){const n=Pn.prototype.parse.apply(this,[e,t]);if(0!
==n)return r.isNumberFinite(n)&&n>0?n:null;this._zero=!0}determineDataLimits()
{const{min:e,max:t}=this.getMinMax(!0);this.min=r.isNumberFinite(e)?
Math.max(0,e):null,this.max=r.isNumberFinite(t)?
Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!
==this._suggestedMin&&!
r.isNumberFinite(this._userMin)&&(this.min=e===Rn(this.min,0)?Rn(this.min,-
1):Rn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions()
{const{minDefined:e,maxDefined:t}=this.getUserBounds();let
n=this.min,r=this.max;const i=t=>n=e?n:t,o=e=>r=t?r:e;n===r&&(n<=0?(i(1),o(10)):
(i(Rn(n,-1)),o(Rn(r,1)))),n<=0&&i(Rn(r,-
1)),r<=0&&o(Rn(n,1)),this.min=n,this.max=r}buildTicks(){const
e=this.options,t=function(e,{min:t,max:n}){t=r.finiteOrDefault(e.min,t);const
i=[],o=kn(t);let s=function(e,t){let n=kn(t-e);for(;Nn(e,t,n)>10;)n+
+;for(;Nn(e,t,n)<10;)n--;return Math.min(n,kn(e))}(t,n),a=s<0?
Math.pow(10,Math.abs(s)):1;const c=Math.pow(10,s),u=o>s?
Math.pow(10,o):0,l=Math.round((t-u)*a)/a,h=Math.floor((t-u)/c/10)*c*10;let
d=Math.floor((l-h)/Math.pow(10,s)),f=r.finiteOrDefault(e.min,Math.round((u+h+d*Math
.pow(10,s))*a)/a);for(;f<n;)i.push({value:f,major:Mn(f),significand:d}),d>=10?
d=d<15?15:20:d++,d>=20&&(s++,d=2,a=s>=0?
1:a),f=Math.round((u+h+d*Math.pow(10,s))*a)/a;const
p=r.finiteOrDefault(e.max,f);return i.push({value:p,major:Mn(p),significand:d}),i}
({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&r._setMinAnd
MaxByKey(t,this,"value"),e.reverse?
(t.reverse(),this.start=this.max,this.end=this.min):
(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void
0===e?"0":r.formatNumber(e,this.chart.options.locale,this.options.ticks.format)}con
figure(){const
e=this.min;super.configure(),this._startValue=r.log10(e),this._valueRange=r.log10(t
his.max)-r.log10(e)}getPixelForValue(e){return void 0!==e&&0!==e||
(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:
(r.log10(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const
t=this.getDecimalForPixel(e);return
Math.pow(10,this._startValue+t*this._valueRange)}}function Fn(e){const
t=e.ticks;if(t.display&&e.display){const e=r.toPadding(t.backdropPadding);return
r.valueOrDefault(t.font&&t.font.size,r.defaults.font.size)+e.height}return
0}function jn(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?
{start:t-n,end:t}:{start:t,end:t+n}}function Bn(e,t,n,r,i){const
o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,c=0;r.start<t.l?(a=(t.l-
r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/
o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(c=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-
c)):i.end>t.b&&(c=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+c))}function
Un(e,t,n){const i=e.drawingArea,
{extra:o,additionalAngle:s,padding:a,size:c}=n,u=e.getPointPosition(t,i+o+a,s),l=Ma
th.round(r.toDegrees(r._normalizeAngle(u.angle+r.HALF_PI))),h=function(e,t,n)
{return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}(u.y,c.h,l),d=function(e)
{return 0===e||180===e?"center":e<180?"left":"right"}
(l),f=(p=u.x,g=c.w,"right"===(m=d)?p-=g:"center"===m&&(p-=g/2),p);var
p,g,m;return{visible:!
0,x:u.x,y:h,textAlign:d,left:f,top:h,right:f+c.w,bottom:h+c.h}}function Hn(e,t)
{if(!t)return!0;const{left:n,top:i,right:o,bottom:s}=e;return!
(r._isPointInArea({x:n,y:i},t)||r._isPointInArea({x:n,y:s},t)||
r._isPointInArea({x:o,y:i},t)||r._isPointInArea({x:o,y:s},t))}function Gn(e,t,n)
{const{left:i,top:o,right:s,bottom:a}=n,{backdropColor:c}=t;if(!r.isNullOrUndef(c))
{const
n=r.toTRBLCorners(t.borderRadius),u=r.toPadding(t.backdropPadding);e.fillStyle=c;co
nst l=i-u.left,h=o-u.top,d=s-i+u.width,f=a-o+u.height;Object.values(n).some((e=>0!
==e))?(e.beginPath(),r.addRoundedRectPath(e,
{x:l,y:h,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,h,d,f)}}function zn(e,t,n,i)
{const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,r.TAU);else{let
n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let r=1;r<i;r+
+)n=e.getPointPosition(r,t),o.lineTo(n.x,n.y)}}class Vn extends Pn{static
id="radialLinear";static defaults={display:!0,animate:!
0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:
[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!
0,callback:r.Ticks.formatters.numeric},pointLabels:{backdropColor:void
0,backdropPadding:2,display:!0,font:
{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static
defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.
color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e)
{super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void
0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const
e=this._padding=r.toPadding(Fn(this.options)/2),t=this.width=this.maxWidth-
e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/
2+e.left),this.yCenter=Math.floor(this.top+n/
2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits()
{const{min:e,max:t}=this.getMinMax(!1);this.min=r.isNumberFinite(e)&&!isNaN(e)?
e:0,this.max=r.isNumberFinite(t)&&!isNaN(t)?
t:0,this.handleTickRangeOptions()}computeTickLimit(){return
Math.ceil(this.drawingArea/Fn(this.options))}generateTickLabels(e)
{Pn.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().ma
p(((e,t)=>{const n=r.callback(this.options.pointLabels.callback,[e,t],this);return
n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const
e=this.options;e.display&&e.pointLabels.display?function(e){const
t={l:e.left+e._padding.left,r:e.right-
e._padding.right,t:e.top+e._padding.top,b:e.bottom-
e._padding.bottom},n=Object.assign({},t),i=[],o=[],s=e._pointLabels.length,a=e.opti
ons.pointLabels,c=a.centerPointLabels?r.PI/s:0;for(let d=0;d<s;d++){const
s=a.setContext(e.getPointLabelContext(d));o[d]=s.padding;const
f=e.getPointPosition(d,e.drawingArea+o[d],c),p=r.toFont(s.font),g=(u=e.ctx,l=p,h=e.
_pointLabels[d],h=r.isArray(h)?h:[h],
{w:r._longestText(u,l.string,h),h:h.length*l.lineHeight});i[d]=g;const
m=r._normalizeAngle(e.getIndexAngle(d)
+c),v=Math.round(r.toDegrees(m));Bn(n,t,m,jn(v,f.x,g.w,0,180),jn(v,f.y,g.h,90,270))
}var u,l,h;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-
t.b),e._pointLabelItems=function(e,t,n){const
i=[],o=e._pointLabels.length,s=e.options,
{centerPointLabels:a,display:c}=s.pointLabels,u={extra:Fn(s)/2,additionalAngle:a?
r.PI/o:0};let l;for(let r=0;r<o;r++){u.padding=n[r],u.size=t[r];const
o=Un(e,r,u);i.push(o),"auto"===c&&(o.visible=Hn(o,l),o.visible&&(l=o))}return i}
(e,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r)
{this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/
2),this.drawingArea-=Math.min(this.drawingArea/
2,Math.max(e,t,n,r))}getIndexAngle(e){const t=r.TAU/(this._pointLabels.length||
1),n=this.options.startAngle||0;return
r._normalizeAngle(e*t+r.toRadians(n))}getDistanceFromCenterForValue(e)
{if(r.isNullOrUndef(e))return NaN;const t=this.drawingArea/(this.max-
this.min);return this.options.reverse?(this.max-e)*t:(e-
this.min)*t}getValueForDistanceFromCenter(e){if(r.isNullOrUndef(e))return NaN;const
t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-
t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||
[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return
r.createContext(e,{label:n,index:t,type:"pointLabel"})}
(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const i=this.getIndexAngle(e)-
r.HALF_PI+n;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:
i}}getPointPositionForValue(e,t){return
this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e)
{return this.getPointPositionForValue(e||
0,this.getBaseValue())}getPointLabelPosition(e)
{const{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,
right:r,bottom:i}}drawBackground(){const{backgroundColor:e,grid:
{circular:t}}=this.options;if(e){const
n=this.ctx;n.save(),n.beginPath(),zn(this,this.getDistanceFromCenterForValue(this._
endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restor
e()}}drawGrid(){const e=this.ctx,t=this.options,
{angleLines:n,grid:i,border:o}=t,s=this._pointLabels.length;let
a,c,u;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:
{pointLabels:i}}=e;for(let o=t-1;o>=0;o--){const t=e._pointLabelItems[o];if(!
t.visible)continue;const s=i.setContext(e.getPointLabelContext(o));Gn(n,s,t);const
a=r.toFont(s.font),
{x:c,y:u,textAlign:l}=t;r.renderText(n,e._pointLabels[o],c,u+a.lineHeight/2,a,
{color:s.color,textAlign:l,textBaseline:"middle"})}}
(this,s),i.display&&this.ticks.forEach(((e,t)=>{if(0!==t)
{c=this.getDistanceFromCenterForValue(e.value);const
n=this.getContext(t),r=i.setContext(n),a=o.setContext(n);!function(e,t,n,r,i){const
o=e.ctx,s=t.circular,{color:a,lineWidth:c}=t;!s&&!r||!a||!c||n<0||
(o.save(),o.strokeStyle=a,o.lineWidth=c,o.setLineDash(i.dash),o.lineDashOffset=i.da
shOffset,o.beginPath(),zn(e,n,s,r),o.closePath(),o.stroke(),o.restore())}
(this,r,c,s,a)}})),n.display){for(e.save(),a=s-1;a>=0;a--){const
r=n.setContext(this.getPointLabelContext(a)),
{color:i,lineWidth:o}=r;o&&i&&(e.lineWidth=o,e.strokeStyle=i,e.setLineDash(r.border
Dash),e.lineDashOffset=r.borderDashOffset,c=this.getDistanceFromCenterForValue(t.ti
cks.reverse?
this.min:this.max),u=this.getPointPosition(a,c),e.beginPath(),e.moveTo(this.xCenter
,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder()
{}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const
i=this.getIndexAngle(0);let
o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center
",e.textBaseline="middle",this.ticks.forEach(((i,a)=>{if(0===a&&!
t.reverse)return;const
c=n.setContext(this.getContext(a)),u=r.toFont(c.font);if(o=this.getDistanceFromCent
erForValue(this.ticks[a].value),c.showLabelBackdrop)
{e.font=u.string,s=e.measureText(i.label).width,e.fillStyle=c.backdropColor;const
t=r.toPadding(c.backdropPadding);e.fillRect(-s/2-t.left,-o-u.size/2-
t.top,s+t.width,u.size+t.height)}r.renderText(e,i.label,0,-o,u,
{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})})),e.r
estore()}drawTitle(){}}const Wn={millisecond:{common:!0,size:1,steps:1e3},second:
{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!
0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!
1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!
1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qn=Object.keys(Wn);function
Kn(e,t){return e-t}function Yn(e,t){if(r.isNullOrUndef(t))return null;const
n=e._adapter,{parser:i,round:o,isoWeekday:s}=e._parseOpts;let
a=t;return"function"==typeof i&&(a=i(a)),r.isNumberFinite(a)||(a="string"==typeof
i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!r.isNumber(s)&&!0!==s?
n.startOf(a,o):n.startOf(a,"isoWeek",s)),+a)}function $n(e,t,n,r){const
i=qn.length;for(let o=qn.indexOf(e);o<i-1;++o){const e=Wn[qn[o]],i=e.steps?
e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return
qn[o]}return qn[i-1]}function Qn(e,t,n){if(n){if(n.length)
{const{lo:i,hi:o}=r._lookup(n,t);e[n[i]>=t?n[i]:n[o]]=!0}}else e[t]=!0}function
Xn(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;+
+s)a=t[s],i[a]=s,r.push({value:a,major:!1});return 0!==o&&n?function(e,t,n,r){const
i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let
a,c;for(a=o;a<=s;a=+i.add(a,1,r))c=n[a],c>=0&&(t[c].major=!0);return t}
(e,r,i,n):r}class Zn extends Re{static id="time";static
defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!
1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:
{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:
[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!
1,this._parseOpts=void 0}init(e,t={}){const n=e.time||
(e.time={}),i=this._adapter=new
H._date(e.adapters.date);i.init(t),r.mergeIf(n.displayFormats,i.formats()),this._pa
rseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this.
_normalized=t.normalized}parse(e,t){return void 0===e?
null:Yn(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:
[],all:[]}}determineDataLimits(){const
e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:i,max:o,minDefined:s,ma
xDefined:a}=this.getUserBounds();function c(e){s||isNaN(e.min)||
(i=Math.min(i,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}s&&a||
(c(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||
c(this.getMinMax(!1))),i=r.isNumberFinite(i)&&!isNaN(i)?i:
+t.startOf(Date.now(),n),o=r.isNumberFinite(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)
+1,this.
min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const
e=this.getLabelTimestamps();let
t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return
e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const
e=this.options,t=e.time,n=e.ticks,i="labels"===n.source?
this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=
this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const
o=this.min,s=this.max,a=r._filterBetween(i,o,s);return this._unit=t.unit||
(n.autoSkip?
$n(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,i)
{for(let o=qn.length-1;o>=qn.indexOf(n);o--){const
n=qn[o];if(Wn[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return qn[n?
qn.indexOf(n):0]}
(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year
"!==this._unit?function(e){for(let t=qn.indexOf(e)+1,n=qn.length;t<n;+
+t)if(Wn[qn[t]].common)return qn[t]}(this._unit):void
0,this.initOffsets(i),e.reverse&&a.reverse(),Xn(this,a,this._majorUnit)}afterAutoSk
ip()
{this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}
initOffsets(e=[]){let
t,n,i=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),i=1===e
.length?1-t:(this.getDecimalForValue(e[1])-t)/
2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-
this.getDecimalForValue(e[e.length-2]))/2);const
s=e.length<3?.5:.25;i=r._limitValue(i,0,s),o=r._limitValue(o,0,s),this._offsets={st
art:i,end:o,factor:1/(i+1+o)}}_generate(){const
e=this._adapter,t=this.min,n=this.max,i=this.options,o=i.time,s=o.unit||
$n(o.minUnit,t,n,this._getLabelCapacity(t)),a=r.valueOrDefault(i.ticks.stepSize,1),
c="week"===s&&o.isoWeekday,u=r.isNumber(c)||!0===c,l={};let
h,d,f=t;if(u&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,u?"day":s),e.diff(n,t,s)
>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+"
"+s);const
p="data"===i.ticks.source&&this.getDataTimestamps();for(h=f,d=0;h<n;h=+e.add(h,a,s)
,d++)Qn(l,h,p);return h!==n&&"ticks"!==i.bounds&&1!==d||
Qn(l,h,p),Object.keys(l).sort(Kn).map((e=>+e))}getLabelForValue(e){const
t=this._adapter,n=this.options.time;return n.tooltipFormat?
t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const
n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return
this._adapter.format(e,i)}_tickFormatFunction(e,t,n,i){const
o=this.options,s=o.ticks.callback;if(s)return r.callback(s,[e,t,n],this);const
a=o.time.displayFormats,c=this._unit,u=this._majorUnit,l=c&&a[c],h=u&&a[u],d=n[t],f
=u&&h&&d&&d.major;return this._adapter.format(e,i||(f?h:l))}generateTickLabels(e)
{let t,n,r;for(t=0,n=e.length;t<n;+
+t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e)
{return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const
t=this._offsets,n=this.getDecimalForValue(e);return
this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const
t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return
this.min+n*(this.max-this.min)}_getLabelSize(e){const
t=this.options.ticks,n=this.ctx.measureText(e).width,i=r.toRadians(this.isHorizonta
l()?
t.maxRotation:t.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOpt
ions(0).size;return{w:n*o+a*s,h:n*s+a*o}}_getLabelCapacity(e){const
t=this.options.time,n=t.displayFormats,r=n[t.unit]||
n.millisecond,i=this._tickFormatFunction(e,0,Xn(this,
[e],this._majorUnit),r),o=this._getLabelSize(i),s=Math.floor(this.isHorizontal()?
this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let
e,t,n=this._cache.data||[];if(n.length)return n;const
r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return
this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;+
+e)n=n.concat(r[e].controller.getAllParsedValues(this));return
this._cache.data=this.normalize(n)}getLabelTimestamps(){const
e=this._cache.labels||[];let t,n;if(e.length)return e;const
r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(Yn(this,r[t]));return
this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return
r._arrayUnique(e.sort(Kn))}}function Jn(e,t,n){let i,o,s,a,c=0,u=e.length-1;n?
(t>=e[c].pos&&t<=e[u].pos&&({lo:c,hi:u}=r._lookupByKey(e,"pos",t)),
({pos:i,time:s}=e[c]),({pos:o,time:a}=e[u])):
(t>=e[c].time&&t<=e[u].time&&({lo:c,hi:u}=r._lookupByKey(e,"time",t)),
({time:i,pos:s}=e[c]),({time:o,pos:a}=e[u]));const l=o-i;return
l?s+(a-s)*(t-i)/l:s}class er extends Zn{static id="timeseries";static
defaults=Zn.defaults;constructor(e){super(e),this._table=[],this._minPos=void
0,this._tableRange=void 0}initOffsets(){const
e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos
=Jn(t,this.min),this._tableRange=Jn(t,this.max)-
this._minPos,super.initOffsets(e)}buildLookupTable(e)
{const{min:t,max:n}=this,r=[],i=[];let o,s,a,c,u;for(o=0,s=e.length;o<s;+
+o)c=e[o],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},
{time:n,pos:1}];for(o=0,s=r.length;o<s;++o)u=r[o+1],a=r[o-
1],c=r[o],Math.round((u+a)/2)!==c&&i.push({time:c,pos:o/(s-1)});return
i}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return
n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||
n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||
[];if(e.length)return e;const
t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?
this.normalize(t.concat(n)):t.length?
t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Jn(this._table,e)-
this._minPos)/this._tableRange}getValueForPixel(e){const
t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return
Jn(this._table,n*this._tableRange+this._minPos,!0)}}var
tr=Object.freeze({__proto__:null,CategoryScale:xn,LinearScale:Dn,LogarithmicScale:L
n,RadialLinearScale:Vn,TimeScale:Zn,TimeSeriesScale:er});const
nr=[j,Pt,Cn,tr];t.Ticks=r.Ticks,t.defaults=r.defaults,t.Animation=c,t.Animations=u,
t.ArcElement=ft,t.BarController=P,t.BarElement=It,t.BasePlatform=se,t.BasicPlatform
=ae,t.BubbleController=D,t.CategoryScale=xn,t.Chart=ut,t.Colors=Lt,t.DatasetControl
ler=_,t.Decimation=Bt,t.DomPlatform=Ee,t.DoughnutController=k,t.Element=Te,t.Filler
=tn,t.Interaction=K,t.Legend=sn,t.LineController=R,t.LineElement=_t,t.LinearScale=D
n,t.LogarithmicScale=Ln,t.PieController=N,t.PointElement=St,t.PolarAreaController=M
,t.RadarController=L,t.RadialLinearScale=Vn,t.Scale=Re,t.ScatterController=F,t.SubT
itle=ln,t.TimeScale=Zn,t.TimeSeriesScale=er,t.Title=cn,t.Tooltip=An,t._adapters=H,t
._detectPlatform=Se,t.animator=o,t.controllers=j,t.elements=Pt,t.layouts=oe,t.plugi
ns=Cn,t.registerables=nr,t.registry=Le,t.scales=tr},23569:(e,t,n)=>{"use
strict";var r=n(78118);const i=(()=>{let e=0;return()=>e++})();function o(e){return
null==e}function s(e){if(Array.isArray&&Array.isArray(e))return!0;const
t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.sl
ice(-6)}function a(e){return null!==e&&"[object
Object]"===Object.prototype.toString.call(e)}function c(e){return("number"==typeof
e||e instanceof Number)&&isFinite(+e)}function u(e,t){return void 0===e?t:e}const
l=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function h(e)
{if(s(e))return e.map(h);if(a(e)){const
t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;+
+i)t[n[i]]=h(e[n[i]]);return t}return e}function d(e){return-
1===["__proto__","prototype","constructor"].indexOf(e)}function f(e,t,n,r){if(!
d(e))return;const i=t[e],o=n[e];a(i)&&a(o)?p(i,o,r):t[e]=h(o)}function p(e,t,n)
{const r=s(t)?t:[t],i=r.length;if(!a(e))return e;const o=(n=n||{}).merger||f;let
c;for(let t=0;t<i;++t){if(c=r[t],!a(c))continue;const i=Object.keys(c);for(let
t=0,r=i.length;t<r;++t)o(i[t],e,c,n)}return e}function g(e,t){return p(e,t,
{merger:m})}function m(e,t,n){if(!d(e))return;const r=t[e],i=n[e];a(r)&&a(i)?
g(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(i))}const
v={"":e=>e,x:e=>e.x,y:e=>e.y};function b(e){const t=e.split("."),n=[];let
r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":
(n.push(r),r="");return n}function y(e,t){const n=v[t]||(v[t]=function(e){const
t=b(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return
n(e)}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}const
_=e=>"function"==typeof
e,E=Math.PI,S=2*E,T=S+E,A=Number.POSITIVE_INFINITY,C=E/180,O=E/2,x=E/4,I=2*E/
3,P=Math.log10,D=Math.sign;function k(e,t,n){return Math.abs(e-t)<n}function R(e,t)
{return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function M(e,t)
{return(e-t+T)%S-E}function N(e){return(e%S+S)%S}function L(e,t,n,r){const
i=N(e),o=N(t),s=N(n),a=N(o-i),c=N(s-i),u=N(i-o),l=N(i-s);return i===o||i===s||
r&&o===s||a>c&&u<l}function F(e,t,n){return Math.max(t,Math.min(n,e))}function
j(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function B(e,t,n)
{n=n||(n=>e[n]<t);let r,i=e.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?
o=r:i=r;return{lo:o,hi:i}}const U=(e,t,n,r)=>B(e,n,r?r=>{const i=e[r][t];return
i<n||i===n&&e[r+1][t]===n}:r=>e[r]
[t]<n),H=["push","pop","shift","splice","unshift"],G="undefined"==typeof window?
function(e){return e()}:window.requestAnimationFrame,z=e=>0===e||1===e,V=(e,t,n)=>-
Math.pow(2,10*(e-=1))*Math.sin((e-t)*S/n),W=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-
t)*S/n)+1,q={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-
2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-
1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/
=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-
=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-
2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/
=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-
Math.cos(e*O),easeOutSine:e=>Math.sin(e*O),easeInOutSine:e=>-.5*(Math.cos(E*e)-
1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-
10*e),easeInOutExpo:e=>z(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-
10*(2
*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-
=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-
=2)*e)+1),easeInElastic:e=>z(e)?e:V(e,.075,.3),easeOutElastic:e=>z(e)?
e:W(e,.075,.3),easeInOutElastic(e){const t=.1125;return z(e)?
e:e<.5?.5*V(2*e,t,.45):.5+.5*W(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return
e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)
+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-
t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-q.easeOutBounce(1-
e),easeOutBounce(e){const t=7.5625,n=2.75;return
e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/
n)*e+.984375},easeInOutBounce:e=>e<.5?.5*q.easeInBounce(2*e):.5*q.easeOutBounce(2*e
-1)+.5};function K(e){if(e&&"object"==typeof e){const t=e.toString();return"[object
CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Y(e){return
K(e)?e:new r.Color(e).saturate(.5).darken(.1).hexString()}const
$=["x","y","borderWidth","radius","tension"],Q=["color","borderColor","backgroundCo
lor"],X=new Map;function Z(e,t,n){return function(e,t){t=t||{};const
n=e+JSON.stringify(t);let r=X.get(n);return r||(r=new
Intl.NumberFormat(e,t),X.set(n,r)),r}(t,n).format(e)}const J={values:e=>s(e)?
e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let
i,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-
1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=function(e,t){let n=t.length>3?
t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!
==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const s=P(Math.abs(o)),a=isNaN(s)?
1:Math.max(Math.min(-
1*Math.floor(s),20),0),c={notation:i,minimumFractionDigits:a,maximumFractionDigits:
a};return Object.assign(c,this.options.ticks.format),Z(e,r,c)},logarithmic(e,t,n)
{if(0===e)return"0";const
r=n[t].significand||e/Math.pow(10,Math.floor(P(e)));return[1,2,3,5,10,15].includes(
r)||t>.8*n.length?J.numeric.call(this,e,t,n):""}};var ee={formatters:J};const
te=Object.create(null),ne=Object.create(null);function re(e,t){if(!t)return e;const
n=t.split(".");for(let t=0,r=n.length;t<r;++t){const r=n[t];e=e[r]||
(e[r]=Object.create(null))}return e}function ie(e,t,n){return"string"==typeof t?
p(re(e,t),n):p(re(e,""),t)}class oe{constructor(e,t){this.animation=void
0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.co
lor="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixe
lRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart",
"touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-
serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverB
ackgroundColor=(e,t)=>Y(t.backgroundColor),this.hoverBorderColor=(e,t)=>Y(t.borderC
olor),this.hoverColor=(e,t)=>Y(t.color),this.indexAxis="x",this.interaction={mode:"
nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!
0,this.onHover=null,this.onClick=null,this.parsing=!
0,this.plugins={},this.responsive=!0,this.scale=void
0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!
0,this.describe(e),this.apply(t)}set(e,t){return ie(this,e,t)}get(e){return
re(this,e)}describe(e,t){return ie(ne,e,t)}override(e,t){return
ie(te,e,t)}route(e,t,n,r){const
i=re(this,e),o=re(this,n),s="_"+t;Object.defineProperties(i,{[s]:
{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=o[r];return
a(e)?Object.assign({},t,e):u(e,t)},set(e){this[s]=e}}})}apply(e)
{e.forEach((e=>e(this)))}}var se=new oe({_scriptable:e=>!
e.startsWith("on"),_indexable:e=>"events"!==e,hover:
{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e)
{e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void
0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",
{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!
==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Q},numbers:
{type:"number",properties:$}}),e.describe("animations",
{_fallback:"animation"}),e.set("transitions",{active:{animation:
{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:
{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:
{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|
e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:
{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!
1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!
0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:
(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:
[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:
{minRotation:0,maxRotation:50,mirror:!
1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!
0,autoSkipPadding:3,labelOffset:0,callback:ee.formatters.values,minor:{},major:
{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255,
255, 255,
0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scal
e.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),
e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!
1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!
==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!
==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",
{_scriptable:e=>"backdropPadding"!==e&&"callback"!
==e,_indexable:e=>"backdropPadding"!==e})}]);function ae(e){return!e||o(e.size)||
o(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px
"+e.family}function ce(e,t,n,r,i){let o=t[i];return o||
(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ue(e,t,n,r,i){let
o,s,a,c,u,l,h,d;const f=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||
0)*C;if(f&&"object"==typeof f&&(o=f.toString(),"[object
HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return
e.save(),e.translate(n,r),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/
2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f)
{default:i?e.ellipse(n,r,i/
2,g,0,0,S):e.arc(n,r,g,0,S),e.closePath();break;case"triangle":l=i?i/
2:g,e.moveTo(n+Math.sin(m)*l,r-Math.cos(m)*g),m+=I,e.lineTo(n+Math.sin(m)*l,r-
Math.cos(m)*g),m+=I,e.lineTo(n+Math.sin(m)*l,r-
Math.cos(m)*g),e.closePath();break;case"rectRounded":u=.516*g,c=g-
u,s=Math.cos(m+x)*c,h=Math.cos(m+x)*(i?i/2-
u:c),a=Math.sin(m+x)*c,d=Math.sin(m+x)*(i?i/2-u:c),e.arc(n-h,r-a,u,m-E,m-
O),e.arc(n+d,r-s,u,m-O,m),e.arc(n+h,r+a,u,m,m+O),e.arc(n-
d,r+s,u,m+O,m+E),e.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*g,l=i?i/
2:c,e.rect(n-l,r-c,2*l,2*c);break}m+=x;case"rectRot":h=Math.cos(m)*(i?i/
2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-h,r-
a),e.lineTo(n+d,r-s),e.lineTo(n+h,r+a),e.lineTo(n-
d,r+s),e.closePath();break;case"crossRot":m+=x;case"cross":h=Math.cos(m)*(i?i/
2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-h,r-
a),e.lineTo(n+h,r+a),e.moveTo(n+d,r-s),e.lineTo(n-
d,r+s);break;case"star":h=Math.cos(m)*(i?i/
2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-h,r-
a),e.lineTo(n+h,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s),m+=x,h=Math.cos(m)*(i?i/
2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-h,r-
a),e.lineTo(n+h,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"line":s=i?i/
2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(n-s,r-
a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/
2:g),r+Math.sin(m)*g);break;case!
1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function le(e,t,n){return
n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function
he(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-
o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,c=n-
o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,l=i.strikethrough?(c+u)/
2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||
2,e.moveTo(s,l),e.lineTo(a,l),e.stroke()}}function de(e,t){const
n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillS
tyle=n}const fe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pe=/^(normal|italic|initial|
inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ge(e,t){const
n=(""+e).match(fe);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3])
{case"px":return e;case"%":e/=100}return t*e}const me=e=>+e||0;function ve(e,t)
{const n={},r=a(t),i=r?Object.keys(t):t,o=a(e)?r?n=>u(e[n],e[t[n]]):t=>e[t]:
()=>e;for(const e of i)n[e]=me(o(e));return n}function be(e){return ve(e,
{top:"y",right:"x",bottom:"y",left:"x"})}function ye(e,t){return
Object.assign(Object.create(e),t)}function we(e,t=[""],n,r,i=(()=>e[0])){const
o=n||e;void 0===r&&(r=Pe("_fallback",e));const
s={[Symbol.toStringTag]:"Object",_cacheable:!
0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>we([n,...e],t,o,r)};
return new Proxy(s,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0]
[n],!0),get:(n,r)=>Te(n,r,(()=>function(e,t,n,r){let i;for(const o of
t)if(i=Pe(Ee(o,e),n),void 0!==i)return Se(e,i)?xe(n,r,e,i):i}
(r,t,e,n))),getOwnPropertyDescriptor:
(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:
()=>Reflect.getPrototypeOf(e[0]),has:
(e,t)=>De(e).includes(t),ownKeys:e=>De(e),set(e,t,n){const r=e._storage||
(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function
_e(e,t={scriptable:!0,indexable:!0})
{const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;
return{allKeys:i,scriptable:n,indexable:r,isScriptable:_(n)?n:
()=>n,isIndexable:_(r)?r:()=>r}}const Ee=(e,t)=>e?
e+w(t):t,Se=(e,t)=>a(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||
t.constructor===Object);function
Te(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const
r=n();return e[t]=r,r}function Ae(e,t,n){return _(e)?e(t,n):e}const Ce=(e,t)=>!
0===e?t:"string"==typeof e?y(t,e):void 0;function Oe(e,t,n,r,i){for(const o of t)
{const t=Ce(n,o);if(t){e.add(t);const o=Ae(t._fallback,n,i);if(void 0!==o&&o!
==n&&o!==r)return o}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}function
xe(e,t,n,r){const i=t._rootScopes,o=Ae(t._fallback,n,r),c=[...e,...i],u=new
Set;u.add(r);let l=Ie(u,c,n,o||n,r);return null!==l&&(void 0===o||o===n||
(l=Ie(u,c,o,l,r),null!==l))&&we(Array.from(u),[""],i,o,(()=>function(e,t,n){const
r=e._getTarget();t in r||(r[t]={});const i=r[t];return s(i)&&a(n)?n:i||{}}
(t,n,r)))}function Ie(e,t,n,r,i){for(;n;)n=Oe(e,t,n,r,i);return n}function Pe(e,t)
{for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function
De(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of
e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return
Array.from(t)}(e._scopes)),t}const ke=Number.EPSILON||1e-14,Re=(e,t)=>t<e.length&&!
e[t].skip&&e[t],Me=e=>"x"===e?"y":"x";function Ne(e,t,n,r){const i=e.skip?
t:e,o=t,s=n.skip?t:n,a=R(o,i),c=R(s,o);let u=a/(a+c),l=c/(a+c);u=isNaN(u)?
0:u,l=isNaN(l)?0:l;const h=r*u,d=r*l;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-
h*(s.y-i.y)},next:{x:o.x+d*(s.x-i.x),y:o.y+d*(s.y-i.y)}}}function Le(e,t="x"){const
n=Me(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,c,u=Re(e,0);for(s=0;s<r;+
+s)if(a=c,c=u,u=Re(e,s+1),c){if(u){const
e=u[t]-c[t];i[s]=0!==e?(u[n]-c[n])/e:0}o[s]=a?u?D(i[s-1])!==D(i[s])?0:(i[s-
1]+i[s])/2:i[s-1]:i[s]}!function(e,t,n){const r=e.length;let
i,o,s,a,c,u=Re(e,0);for(let l=0;l<r-1;++l)c=u,u=Re(e,l+1),c&&u&&(k(t[l],0,ke)?
n[l]=n[l+1]=0:(i=n[l]/t[l],o=n[l+1]/t[l],a=Math.pow(i,2)+Math.pow(o,2),a<=9||(s=3/
Math.sqrt(a),n[l]=i*s*t[l],n[l+1]=o*s*t[l])))}(e,i,o),function(e,t,n="x"){const
r=Me(n),i=e.length;let o,s,a,c=Re(e,0);for(let u=0;u<i;++u)
{if(s=a,a=c,c=Re(e,u+1),!a)continue;const i=a[n],l=a[r];s&&(o=(i-s[n])/3,a[`cp1$
{n}`]=i-o,a[`cp1${r}`]=l-o*t[u]),c&&(o=(c[n]-i)/3,a[`cp2${n}`]=i+o,a[`cp2$
{r}`]=l+o*t[u])}}(e,o,t)}function Fe(e,t,n){return
Math.max(Math.min(e,n),t)}function je(e){let t=e.parentNode;return t&&"[object
ShadowRoot]"===t.toString()&&(t=t.host),t}function Be(e,t,n){let
r;return"string"==typeof
e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const
Ue=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function He(e,t){return
Ue(e).getPropertyValue(t)}const Ge=["top","right","bottom","left"];function
ze(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const
o=Ge[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return
r.width=r.left+r.right,r.height=r.top+r.bottom,r}const
Ve=e=>Math.round(10*e)/10,We=function(){let e=!1;try{const t={get passive(){return
e=!0,!
1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t
)}catch(e){}return e}();function qe(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-
e.y)}}function Ke(e){return"angle"===e?{between:L,compare:M,normalize:N}:
{between:j,compare:(e,t)=>e-t,normalize:e=>e}}function
Ye({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-
e+1)%n==0,style:i}}function $e(e,t,n){if(!
n)return[e];const{property:r,start:i,end:o}=n,s=t.length,
{compare:a,between:c,normalize:u}=Ke(r),
{start:l,end:h,loop:d,style:f}=function(e,t,n){const{property:r,start:i,end:o}=n,
{between:s,normalize:a}=Ke(r),c=t.length;let u,l,{start:h,end:d,loop:f}=e;if(f)
{for(h+=c,d+=c,u=0,l=c;u<l&&s(a(t[h%c][r]),i,o);++u)h--,d--;h%=c,d%=c}return
d<h&&(d+=c),{start:h,end:d,loop:f,style:e.style}}(e,t,n),p=[];let g,m,v,b=!
1,y=null;for(let e=l,n=l;e<=h;++e)m=t[e%s],m.skip||(g=u(m[r]),g!
==v&&(b=c(g,i,o),null===y&&(b||c(i,v,g)&&0!==a(i,v))&&(y=0===a(g,i)?e:n),null!
==y&&(!b||0===a(o,g)||
c(o,v,g))&&(p.push(Ye({start:y,end:e,loop:d,count:s,style:f})),y=null),n=e,v=g));re
turn null!==y&&p.push(Ye({start:y,end:h,loop:d,count:s,style:f})),p}function Qe(e)
{return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDas
h:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyl
e,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Xe(e,t){if(!
t)return!1;const n=[],r=function(e,t){return K(t)?(n.includes(t)||
n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!
==JSON.stringify(t,r)}t.HALF_PI=O,t.INFINITY=A,t.PI=E,t.PITAU=T,t.QUARTER_PI=x,t.RA
D_PER_DEG=C,t.TAU=S,t.TWO_THIRDS_PI=I,t.Ticks=ee,t._addGrace=function(e,t,n)
{const{min:r,max:i}=e,o=l(t,(i-r)/2),s=(e,t)=>n&&0===e?0:e+t;return{min:s(r,-
Math.abs(o)),max:s(i,o)}},t._alignPixel=function(e,t,n){const
r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return
Math.round((t-i)*r)/r+i},t._alignStartEnd=(e,t,n)=>"start"===e?t:"end"===e?n:
(t+n)/2,t._angleBetween=L,t._angleDiff=M,t._arrayUnique=function(e){const t=new
Set(e);return t.size===e.length?e:Array.from(t)},t._attachContext=function
e(t,n,r,i){const o={_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new
Set,_descriptors:_e(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i
)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:
(t,n,r)=>Te(t,n,(()=>function(t,n,r)
{const{_proxy:i,_context:o,_subProxy:c,_descriptors:u}=t;let l=i[n];return
_(l)&&u.isScriptable(n)&&(l=function(e,t,n,r)
{const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new
Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let
c=t(o,s||r);return a.delete(e),Se(e,c)&&(c=xe(i._scopes,i,e,c)),c}
(n,l,t,r)),s(l)&&l.length&&(l=function(t,n,r,i)
{const{_proxy:o,_context:s,_subProxy:c,_descriptors:u}=r;if(void 0!
==s.index&&i(t))return n[s.index%n.length];if(a(n[0])){const
r=n,i=o._scopes.filter((e=>e!==r));n=[];for(const a of r){const
r=xe(i,o,t,a);n.push(e(r,s,c&&c[t],u))}}return n}
(n,l,t,u.isIndexable)),Se(n,l)&&(l=e(l,o,c&&c[n],u)),l}
(t,n,r))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?
{enumerable:!0,configurable:!0}:void
0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:
()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:
()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!
0)})},t._bezierCurveTo=function(e,t,n,r){if(!t)return
e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?
n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)},t._bezierInterpolation=function(e,t,n,r)
{const
i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=qe(e,i,n),a=qe(i,o,n),c=qe(o,t,n),u=q
e(s,a,n),l=qe(a,c,n);return
qe(u,l,n)},t._boundSegment=$e,t._boundSegments=function(e,t){const
n=[],r=e.segments;for(let i=0;i<r.length;i++){const
o=$e(r[i],e.points,t);o.length&&n.push(...o)}return
n},t._capitalize=w,t._computeSegments=function(e,t){const
n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,
{start:s,end:a}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i+
+;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,
{start:i,end:o}}(n,i,o,r);return function(e,t,n,r){return r&&r.setContext&&n?
function(e,t,n,r){const i=e._chart.getContext(),o=Qe(e.options),
{_datasetIndex:s,options:{spanGaps:a}}=e,c=n.length,u=[];let
l=o,h=t[0].start,d=h;function f(e,t,r,i){const o=a?-1:1;if(e!==t){for(e+=c;n[e
%c].skip;)e-=o;for(;n[t%c].skip;)t+=o;e%c!=t%c&&(u.push({start:e%c,end:t
%c,loop:r,style:i}),l=i,h=t%c)}}for(const e of t){h=a?h:e.start;let t,o=n[h
%c];for(d=h+1;d<=e.end;d++){const a=n[d%c];t=Qe(r.setContext(ye(i,
{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%c,p1DataIndex:d
%c,datasetIndex:s}))),Xe(t,l)&&f(h,d-1,e.loop,l),o=a,l=t}h<d-1&&f(h,d-
1,e.loop,l)}return u}(e,t,n,r):t}(e,!0===r?
[{start:s,end:a,loop:o}]:function(e,t,n,r){const i=e.length,o=[];let
s,a=t,c=e[t];for(s=t+1;s<=n;++s){const n=e[s%i];n.skip||n.stop?c.skip||(r=!
1,o.push({start:t%i,end:(s-1)%i,loop:r}),t=a=n.stop?s:null):
(a=s,c.skip&&(t=s)),c=n}return null!==a&&o.push({start:t%i,end:a%i,loop:r}),o}
(n,s,a<s?a+i:a,!!e._fullLoop&&0===s&&a===i-
1),n,t)},t._createResolver=we,t._decimalPlaces=function(e){if(!c(e))return;let
t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return
n},t._deprecated=function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is
deprecated. Please use "'+r+'"
instead')},t._descriptors=_e,t._elementsEqual=function(e,t){let n,r,i,o;if(!e||!t||
e.length!==t.length)return!1;for(n=0,r=e.length;n<r;+
+n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!
1;return!0},t._factorize=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r+
+)e%r==0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-
t)).pop(),t},t._filterBetween=function(e,t,n){let
r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||
i<e.length?
e.slice(r,i):e},t._getParentNode=je,t._getStartAndCountOfVisiblePoints=function(e,t
,n){const r=t.length;let i=0,o=r;if(e._sorted)
{const{iScale:s,_parsed:a}=e,c=s.axis,
{min:u,max:l,minDefined:h,maxDefined:d}=s.getUserBounds();h&&(i=F(Math.min(U(a,c,u)
.lo,n?r:U(t,c,s.getPixelForValue(u)).lo),0,r-1)),o=d?F(Math.max(U(a,s.axis,l,!
0).hi+1,n?0:U(t,c,s.getPixelForValue(l),!0).hi+1),i,r)-i:r-
i}return{start:i,count:o}},t._int16Range=function(e){return F(e,-
32768,32767)},t._isBetween=j,t._isClickEvent=function(e)
{return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type},t._isDomSuppor
ted=function(){return"undefined"!=typeof window&&"undefined"!=typeof
document},t._isPointInArea=le,t._limitValue=F,t._longestText=function(e,t,n,r){let
i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!
==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const
c=n.length;let u,l,h,d,f;for(u=0;u<c;u++)if(d=n[u],null==d||s(d))
{if(s(d))for(l=0,h=d.length;l<h;l++)f=d[l],null==f||s(f)||(a=ce(e,i,o,a,f))}else
a=ce(e,i,o,a,d);e.restore();const p=o.length/2;if(p>n.length){for(u=0;u<p;u+
+)delete i[o[u]];o.splice(0,p)}return
a},t._lookup=B,t._lookupByKey=U,t._measureText=ce,t._merger=f,t._mergerIf=m,t._norm
alizeAngle=N,t._parseObjectDataRa
dialScale=function(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new
Array(r);let a,c,u,l;for(a=0,c=r;a<c;+
+a)u=a+n,l=t[u],s[a]={r:i.parse(y(l,o),u)};return
s},t._pointInLine=qe,t._readValueToProps=ve,t._rlookupByKey=(e,t,n)=>B(e,n,(r=>e[r]
[t]>=n)),t._scaleRangesChanged=function(e)
{const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax
:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||
r.ymin!==n.min||r.ymax!==n.max;return
Object.assign(r,i),o},t._setMinAndMaxByKey=function(e,t,n){let
r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||
(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))},t._splitKey=b,t._steppedInterpol
ation=function(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?
e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}},t._steppedLineTo=function(e,t,n,r,i)
{if(!t)return e.lineTo(n.x,n.y);if("middle"===i){const
r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?
e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)},t._textX=(e,t,n,r)=>e===(r?"
left":"right")?n:"center"===e?(t+n)/
2:t,t._toLeftRightCenter=e=>"start"===e?"left":"end"===e?"right":"center",t._update
BezierControlPoints=function(e,t,n,r,i){let
o,s,a,c;if(t.spanGaps&&(e=e.filter((e=>!
e.skip))),"monotone"===t.cubicInterpolationMode)Le(e,i);else{let n=r?e[e.length-
1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],c=Ne(n,a,e[Math.min(o+1,s-(r?0:1))
%s],t.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.nex
t.y,n=a}t.capBezierPoints&&function(e,t){let
n,r,i,o,s,a=le(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-
1&&le(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=Fe(i.cp1x,t.left,t.right),i.cp1y=Fe(i.cp1y,t.
top,t.bottom)),a&&(i.cp2x=Fe(i.cp2x,t.left,t.right),i.cp2y=Fe(i.cp2y,t.top,t.bottom
)))}(e,n)},t.addRoundedRectPath=function(e,t)
{const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*E,E,
!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-
s.bottomLeft,s.bottomLeft,E,O,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-
s.bottomRight,r+o-s.bottomRight,s.bottomRight,O,0,!
0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-O,!
0),e.lineTo(n+s.topLeft,r)},t.almostEquals=k,t.almostWhole=function(e,t){const
n=Math.round(e);return n-t<=e&&n+t>=e},t.callback=function(e,t,n)
{if(e&&"function"==typeof e.call)return e.apply(n,t)},t.clearCanvas=function(e,t)
{(t=t||
e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.r
estore()},t.clipArea=function(e,t)
{e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-
t.top),e.clip()},t.clone=h,t.color=function(e){return K(e)?e:new
r.Color(e)},t.createContext=ye,t.debounce=function(e,t){let n;return function(...r)
{return t?
(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}},t.defaults=se,t.defined=e
=>void 0!
==e,t.descriptors=ne,t.distanceBetweenPoints=R,t.drawPoint=function(e,t,n,r)
{ue(e,t,n,r,null)},t.drawPointLegend=ue,t.each=function(e,t,n,r){let
i,o,c;if(s(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else
for(i=0;i<o;i++)t.call(n,e[i],i);else
if(a(e))for(c=Object.keys(e),o=c.length,i=0;i<o;i+
+)t.call(n,e[c[i]],c[i])},t.effects=q,t.finiteOrDefault=function(e,t){return c(e)?
e:t},t.fontString=function(e,t,n){return t+" "+e+"px
"+n},t.formatNumber=Z,t.getAngleFromPoint=function(e,t){const n=t.x-e.x,r=t.y-
e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*E&&(o+=S),
{angle:o,distance:i}},t.getHoverColor=Y,t.getMaximumSize=function(e,t,n,r){const
i=Ue(e),o=ze(i,"margin"),s=Be(i.maxWidth,e,"clientWidth")||
A,a=Be(i.maxHeight,e,"clientHeight")||A,c=function(e,t,n){let r,i;if(void 0===t||
void 0===n){const o=je(e);if(o){const
e=o.getBoundingClientRect(),s=Ue(o),a=ze(s,"border","width"),c=ze(s,"padding");t=e.
width-c.width-a.width,n=e.height-c.height-
a.height,r=Be(s.maxWidth,o,"clientWidth"),i=Be(s.maxHeight,o,"clientHeight")}else
t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||
A,maxHeight:i||A}}(e,t,n);let{width:u,height:l}=c;if("content-box"===i.boxSizing)
{const e=ze(i,"border","width"),t=ze(i,"padding");u-=t.width+e.width,l-
=t.height+e.height}return u=Math.max(0,u-o.width),l=Math.max(0,r?u/r:l-
o.height),u=Ve(Math.min(u,s,c.maxWidth)),l=Ve(Math.min(l,a,c.maxHeight)),u&&!
l&&(l=Ve(u/2)),(void 0!==t||void 0!
==n)&&r&&c.height&&l>c.height&&(l=c.height,u=Ve(Math.floor(l*r))),
{width:u,height:l}},t.getRelativePosition=function(e,t){if("native"in e)return
e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Ue(n),o="border-
box"===i.boxSizing,s=ze(i,"padding"),a=ze(i,"border","width"),
{x:c,y:u,box:l}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,
{offsetX:i,offsetY:o}=r;let s,a,c=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))
(i,o,e.target))s=i,a=o;else{const e=t.getBoundingClientRect();s=r.clientX-
e.left,a=r.clientY-e.top,c=!0}return{x:s,y:a,box:c}}(e,n),h=s.left+
(l&&a.left),d=s.top+(l&&a.top);let{width:f,height:p}=t;return o&&(f-
=s.width+a.width,p-=s.height+a.height),{x:Math.round((c-h)/f*n.width/
r),y:Math.round((u-d)/p*n.height/r)}},t.getRtlAdapter=function(e,t,n){return e?
function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?
e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):
{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:
(e,t)=>e}},t.getStyle=He,t.isArray=s,t.isFunction=_,t.isNullOrUndef=o,t.isNumber=fu
nction(e){return!
isNaN(parseFloat(e))&&isFinite(e)},t.isNumberFinite=c,t.isObject=a,t.isPatternOrGra
dient=K,t.listenArrayEvents=function(e,t){e._chartjs?e._chartjs.listeners.push(t):
(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:
{listeners:[t]}}),H.forEach((t=>{const
n="_onData"+w(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!
1,value(...t){const i=r.apply(this,t);return
e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n]
(...t)})),i}})})))},t.log10=P,t.merge=p,t.mergeIf=g,t.niceNum=function(e){const
t=Math.round(e);e=k(e,t,e/1e3)?t:e;const
n=Math.pow(10,Math.floor(P(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?
5:10)*n},t.noop=function(){},t.overrideTextDirection=function(e,t){let n,r;"ltr"!
==t&&"rtl"!==t||
(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("directi
on")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},t.overrides=
te,t.readUsedSize=function(e,t){const n=He(e,t),r=n&&n.match(/^(\d+)(\.\d+)?
px$/);return r?+r[1]:void 0},t.renderText=function(e,t,n,r,i,a={}){const c=s(t)?t:
[t],u=a.strokeWidth>0&&""!==a.strokeColor;let
l,h;for(e.save(),e.font=i.string,function(e,t)
{t.translation&&e.translate(t.translation[0],t.translation[1]),o(t.rotation)||
e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.tex
tAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,a),l=0;l<c.length;+
+l)h=c[l],a.backdrop&&de(e,a.backdrop),u&&(a.strokeColor&&(e.strokeStyle=a.strokeCo
lor),o(a.strokeWidth)||
(e.lineWidth=a.strokeWidth),e.strokeText(h,n,r,a.maxWidth)),e.fillText(h,n,r,a.maxW
idth),he(e,n,r,h,a),r+=Number(i.lineHeight);e.restore()},t.requestAnimFrame=G,t.res
olve=function(e,t,n,r){let i,o,a,c=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!
==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),c=!1),void 0!==n&&s(a)&&(a=a[n
%a.length],c=!1),void 0!==a))return r&&!c&&(r.cacheable=!
1),a},t.resolveObjectKey=y,t.restoreTextDirection=function(e,t){void 0!==t&&(delete
e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))},t.retinaSca
le=function(e,t,n){const r=t||
1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.
width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!
s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),
(e.currentDevicePixelRatio!==r||s.height!==i||s.width!
==o)&&(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,
0,0),!0)},t.setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!
t.has(n))return!1;return!
0},t.sign=D,t.splineCurve=Ne,t.splineCurveMonotone=Le,t.supportsEventListenerOption
s=We,t.throttled=function(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!
0,G.call(window,(()=>{r=!1,e.apply(t,n)})))}},t.toDegrees=function(e){return
e*(180/E)},t.toDimension=l,t.toFont=function(e,t){e=e||{},t=t||se.font;let
n=u(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let
r=u(e.style,t.style);r&&!(""+r).match(pe)&&(console.warn('Invalid font style
specified: "'+r+'"'),r=void 0);const
i={family:u(e.family,t.family),lineHeight:ge(u(e.lineHeight,t.lineHeight),n),size:n
,style:r,weight:u(e.weight,t.weight),string:""};return
i.string=ae(i),i},t.toFontString=ae,t.toLineHeight=ge,t.toPadding=function(e){const
t=be(e);return
t.width=t.left+t.right,t.height=t.top+t.bottom,t},t.toPercentage=(e,t)=>"string"==t
ypeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,t.toRadians=function(e){return
e*(E/180)},t.toTRBL=be,t.toTRBLCorners=function(e){return ve(e,
["topLeft","topRight","bottomLeft","bottomRight"])},t.uid=i,t.unclipArea=function(e
){e.restore()},t.unlistenArrayEvents=function(e,t){const n=e._chartjs;if(!
n)return;const r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||
(H.forEach((t=>{delete e[t]})),delete e._chartjs)},t.valueOrDefault=u},49656:
(e,t,n)=>{var r;if("function"==typeof fetch&&(r=void 0!==n.g&&n.g.fetch?
n.g.fetch:"undefined"!=typeof window&&window.fetch?
window.fetch:fetch),"undefined"==typeof window||void 0===window.document){var i=r||
n(96279);i.default&&(i=i.default),t.default=i,e.exports=t.default}},74363:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.adapter=t.serializeDoctypeContent=void 0;const r=n(91740),i=n(79959);function
o(e){return new i.Text(e)}function s(e){const t=e.includes('"')?"'":'"';return
t+e+t}function a(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC $
{s(t)}`:n&&(r+=" SYSTEM"),n&&(r+=` $
{s(n)}`),r}t.serializeDoctypeContent=a,t.adapter={isCommentNode:i.isComment,isEleme
ntNode:i.isTag,isTextNode:i.isText,createDocument(){const
e=new i.Document([]);return e["x-
mode"]=r.html.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment:()=>new
i.Document([]),createElement(e,t,n){const
r=Object.create(null),o=Object.create(null),s=Object.create(null);for(let
e=0;e<n.length;e++){const
t=n[e].name;r[t]=n[e].value,o[t]=n[e].namespace,s[t]=n[e].prefix}const a=new
i.Element(e,r,[]);return a.namespace=t,a["x-attribsNamespace"]=o,a["x-
attribsPrefix"]=s,a},createCommentNode:e=>new i.Comment(e),appendChild(e,t){const
n=e.children[e.children.length-
1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){const
r=e.children.indexOf(n),
{prev:i}=n;i&&(i.next=t,t.prev=i),n.prev=t,t.next=n,e.children.splice(r,0,t),t.pare
nt=e},setTemplateContent(e,n)
{t.adapter.appendChild(e,n)},getTemplateContent:e=>e.children[0],setDocumentType(e,
n,r,o){const s=a(n,r,o);let c=e.children.find((e=>(0,i.isDirective)(e)&&"!
doctype"===e.name));c?c.data=null!=s?s:null:(c=new i.ProcessingInstruction("!
doctype",s),t.adapter.appendChild(e,c)),c["x-name"]=null!=n?n:void 0,c["x-
publicId"]=null!=r?r:void 0,c["x-systemId"]=null!=o?o:void 0},setDocumentMode(e,t)
{e["x-mode"]=t},getDocumentMode:e=>e["x-mode"],detachNode(e){if(e.parent){const
t=e.parent.children.indexOf(e),
{prev:n,next:r}=e;e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.chil
dren.splice(t,1),e.parent=null}},insertText(e,n){const
r=e.children[e.children.length-1];r&&(0,i.isText)(r)?
r.data+=n:t.adapter.appendChild(e,o(n))},insertTextBefore(e,n,r){const
s=e.children[e.children.indexOf(r)-1];s&&(0,i.isText)(s)?
s.data+=n:t.adapter.insertBefore(e,o(n),r)},adoptAttributes(e,t){for(let
n=0;n<t.length;n++){const r=t[n].name;void
0===e.attribs[r]&&(e.attribs[r]=t[n].value,e["x-attribsNamespace"]
[r]=t[n].namespace,e["x-attribsPrefix"]
[r]=t[n].prefix)}},getFirstChild:e=>e.children[0],getChildNodes:e=>e.children,getPa
rentNode:e=>e.parent,getAttrList:e=>e.attributes,getTagName:e=>e.name,getNamespaceU
RI:e=>e.namespace,getTextNodeContent:e=>e.data,getCommentNodeContent:e=>e.data,getD
ocumentTypeNodeName(e){var t;return null!==(t=e["x-name"])&&void 0!==t?
t:""},getDocumentTypeNodePublicId(e){var t;return null!==(t=e["x-publicId"])&&void
0!==t?t:""},getDocumentTypeNodeSystemId(e){var t;return null!==(t=e["x-
systemId"])&&void 0!==t?t:""},isDocumentTypeNode:e=>(0,i.isDirective)(e)&&"!
doctype"===e.name,setNodeSourceCodeLocation(e,t)
{t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},get
NodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t)
{null!
=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation=Object.assign(Object.as
sign({},e.sourceCodeLocation),t)}}},83479:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.getDocumentMode=t.isConforming=void 0;const
r=n(63668),i="html",o=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd
html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit +
extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level
2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level
2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html
2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd
html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd
html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level
3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level
1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level
3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius
presentational//","-//microsoft//dtd internet explorer 2.0 html
strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd
internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html
strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd
internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape
comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html
2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and
associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal +
extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to
html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html
4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd
hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd
html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2
final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html
4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html
experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3
html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html
2.0//","-//webtechs//dtd mozilla html//"],s=[...o,"-//w3c//dtd html 4.01
frameset//","-//w3c//dtd html 4.01 transitional//"],a=new Set(["-//w3o//dtd w3 html
strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),c=["-//w3c//dtd
xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u=[...c,"-//w3c//dtd
html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function l(e,t)
{return t.some((t=>e.startsWith(t)))}t.isConforming=function(e){return
e.name===i&&null===e.publicId&&(null===e.systemId||"about:legacy-
compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)return
r.DOCUMENT_MODE.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/
ibmxhtml1-transitional.dtd"===t.toLowerCase())return
r.DOCUMENT_MODE.QUIRKS;let{publicId:n}=e;if(null!==n)
{if(n=n.toLowerCase(),a.has(n))return r.DOCUMENT_MODE.QUIRKS;let e=null===t?
s:o;if(l(n,e))return r.DOCUMENT_MODE.QUIRKS;if(e=null===t?c:u,l(n,e))return
r.DOCUMENT_MODE.LIMITED_QUIRKS}return r.DOCUMENT_MODE.NO_QUIRKS}},36068:
(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!
0}),t.ERR=void 0,(n=t.ERR||(t.ERR={})).controlCharacterInInputStream="control-
character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-
stream",n.surrogateInInputStream="surrogate-in-input-
stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-
start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-
attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-
solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-
tag",n.unexpectedNullCharacter="unexpected-null-
character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-
instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-
tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-
attribute-name",n.missingEndTagName="missing-end-tag-
name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-
name",n.unknownNamedCharacterReference="unknown-named-character-
reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-
character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-
character-after-doctype-system-
identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-
unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-
in-tag",n.missingAttributeValue="missing-attribute-
value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-
attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-
doctype-public-
keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-
whitespace-between-doctype-public-and-system-
identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-
after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-
quote-before-doctype-public-
identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-
doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-
public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-
identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-
identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-
identifier",n.cdataInHtmlContent="cdata-in-html-
content",n.incorrectlyOpenedComment="incorrectly-opened-
comment",n.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-
text",n.eofInDoctype="eof-in-doctype",n.nestedComment="nested-
comment",n.abruptClosingOfEmptyComment="abrupt-closing-of-empty-
comment",n.eofInComment="eof-in-comment",n.incorrectlyClosedComment="incorrectly-
closed-comment",n.eofInCdata="eof-in-
cdata",n.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-
character-reference",n.nullCharacterReference="null-character-
reference",n.surrogateCharacterReference="surrogate-character-
reference",n.characterReferenceOutsideUnicodeRange="character-reference-outside-
unicode-range",n.controlCharacterReference="control-character-
reference",n.noncharacterCharacterReference="noncharacter-character-
reference",n.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-
name",n.missingDoctypeName="missing-doctype-
name",n.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-
doctype-name",n.duplicateAttribute="duplicate-
attribute",n.nonConformingDoctype="non-conforming-
doctype",n.missingDoctype="missing-doctype",n.misplacedDoctype="misplaced-
doctype",n.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-
element",n.closingOfElementWithOpenChildElements="closing-of-element-with-open-
child-elements",n.disallowedContentInNoscriptInHead="disallowed-content-in-
noscript-in-head",n.openElementsLeftAfterEof="open-elements-left-after-
eof",n.abandonedHeadElementChild="abandoned-head-element-
child",n.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-
element",n.nestedNoscriptInHead="nested-noscript-in-
head",n.eofInElementThatCanContainOnlyText="eof-
in-element-that-can-contain-only-text"},17970:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isIntegrationPoint=t.adjustTokenSVGTagName=t.adjustTokenXMLAttrs=t.adjustToke
nSVGAttrs=t.adjustTokenMathMLAttrs=t.causesExit=t.SVG_TAG_NAMES_ADJUSTMENT_MAP=void
0;const r=n(63668),i="text/html",o="application/xhtml+xml",s=new
Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clip
PathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform
","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTi
mes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth",
"maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","pat
ternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","
preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requ
iredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMet
hod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","ta
bleValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelecto
r","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),a=new
Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:r.NS.XLINK}],
["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:r.NS.XLINK}],
["xlink:href",{prefix:"xlink",name:"href",namespace:r.NS.XLINK}],["xlink:role",
{prefix:"xlink",name:"role",namespace:r.NS.XLINK}],["xlink:show",
{prefix:"xlink",name:"show",namespace:r.NS.XLINK}],["xlink:title",
{prefix:"xlink",name:"title",namespace:r.NS.XLINK}],["xlink:type",
{prefix:"xlink",name:"type",namespace:r.NS.XLINK}],["xml:base",
{prefix:"xml",name:"base",namespace:r.NS.XML}],["xml:lang",
{prefix:"xml",name:"lang",namespace:r.NS.XML}],["xml:space",
{prefix:"xml",name:"space",namespace:r.NS.XML}],["xmlns",
{prefix:"",name:"xmlns",namespace:r.NS.XMLNS}],["xmlns:xlink",
{prefix:"xmlns",name:"xlink",namespace:r.NS.XMLNS}]]);t.SVG_TAG_NAMES_ADJUSTMENT_MA
P=new
Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animat
eTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite
","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFl
ood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","
feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotL
ight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGr
adient","textPath"].map((e=>[e.toLowerCase(),e])));const c=new
Set([r.TAG_ID.B,r.TAG_ID.BIG,r.TAG_ID.BLOCKQUOTE,r.TAG_ID.BODY,r.TAG_ID.BR,r.TAG_ID
.CENTER,r.TAG_ID.CODE,r.TAG_ID.DD,r.TAG_ID.DIV,r.TAG_ID.DL,r.TAG_ID.DT,r.TAG_ID.EM,
r.TAG_ID.EMBED,r.TAG_ID.H1,r.TAG_ID.H2,r.TAG_ID.H3,r.TAG_ID.H4,r.TAG_ID.H5,r.TAG_ID
.H6,r.TAG_ID.HEAD,r.TAG_ID.HR,r.TAG_ID.I,r.TAG_ID.IMG,r.TAG_ID.LI,r.TAG_ID.LISTING,
r.TAG_ID.MENU,r.TAG_ID.META,r.TAG_ID.NOBR,r.TAG_ID.OL,r.TAG_ID.P,r.TAG_ID.PRE,r.TAG
_ID.RUBY,r.TAG_ID.S,r.TAG_ID.SMALL,r.TAG_ID.SPAN,r.TAG_ID.STRONG,r.TAG_ID.STRIKE,r.
TAG_ID.SUB,r.TAG_ID.SUP,r.TAG_ID.TABLE,r.TAG_ID.TT,r.TAG_ID.U,r.TAG_ID.UL,r.TAG_ID.
VAR]);t.causesExit=function(e){const t=e.tagID;return
t===r.TAG_ID.FONT&&e.attrs.some((({name:e})=>e===r.ATTRS.COLOR||e===r.ATTRS.SIZE||
e===r.ATTRS.FACE))||c.has(t)},t.adjustTokenMathMLAttrs=function(e){for(let
t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name)
{e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let
t=0;t<e.attrs.length;t++){const n=s.get(e.attrs[t].name);null!
=n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let
t=0;t<e.attrs.length;t++){const
n=a.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.at
trs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const
n=t.SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);null!
=n&&(e.tagName=n,e.tagID=(0,r.getTagID)
(e.tagName))},t.isIntegrationPoint=function(e,t,n,s){return(!s||
s===r.NS.HTML)&&function(e,t,n)
{if(t===r.NS.MATHML&&e===r.TAG_ID.ANNOTATION_XML)for(let e=0;e<n.length;e+
+)if(n[e].name===r.ATTRS.ENCODING){const t=n[e].value.toLowerCase();return t===i||
t===o}return t===r.NS.SVG&&(e===r.TAG_ID.FOREIGN_OBJECT||e===r.TAG_ID.DESC||
e===r.TAG_ID.TITLE)}(e,t,n)||(!s||s===r.NS.MATHML)&&function(e,t){return
t===r.NS.MATHML&&(e===r.TAG_ID.MI||e===r.TAG_ID.MO||e===r.TAG_ID.MN||
e===r.TAG_ID.MS||e===r.TAG_ID.MTEXT)}(e,t)}},63668:(e,t)=>{"use strict";var
n,r,i,o,s;Object.defineProperty(t,"__esModule",{value:!
0}),t.hasUnescapedText=t.isNumberedHeader=t.SPECIAL_ELEMENTS=t.getTagID=t.TAG_ID=t.
TAG_NAMES=t.DOCUMENT_MODE=t.ATTRS=t.NS=void
0,function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/
1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/
1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://
www.w3.org/2000/xmlns/"}(n=t.NS||(t.NS={})),(s=t.ATTRS||
(t.ATTRS={})).TYPE="type",s.ACTION="action",s.ENCODING="encoding",s.PROMPT="prompt"
,s.NAME="name",s.COLOR="color",s.FACE="face",s.SIZE="size",(o=t.DOCUMENT_MODE||
(t.DOCUMENT_MODE={})).NO_QUIRKS="no-
quirks",o.QUIRKS="quirks",o.LIMITED_QUIRKS="limited-quirks",function(e)
{e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-
xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.
BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blo
ckquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="ce
nter",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DET
AILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="
em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figur
e",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e
.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="
h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="h
tml",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN
="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main"
,e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="
meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.N
AV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscri
pt",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.P
ARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RT
C="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="selec
t",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="stro
ng",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.T
BODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",
e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="
u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(r=t.TAG_NAMES||
(t.TAG_NAMES={})),function(e)
{e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=
3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTIC
LE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT
",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.B
ODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[
e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGR
OUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="
DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=
30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGC
APTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOR
EIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAM
ESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4"
,e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HG
ROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IM
G",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=5
7]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=6
1]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="M
ARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]=
"MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=
73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.N
OEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]
="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=8
4]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=8
8]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCR
IPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="
SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRON
G=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY
",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107
]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e
[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.
TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="S
VG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(i=t.TAG_ID||
(t.TAG_ID={}));const a=new Map([[r.A,i.A],[r.ADDRESS,i.ADDRESS],
[r.ANNOTATION_XML,i.ANNOTATION_XML],[r.APPLET,i.APPLET],[r.AREA,i.AREA],
[r.ARTICLE,i.ARTICLE],[r.ASIDE,i.ASIDE],[r.B,i.B],[r.
BASE,i.BASE],[r.BASEFONT,i.BASEFONT],[r.BGSOUND,i.BGSOUND],[r.BIG,i.BIG],
[r.BLOCKQUOTE,i.BLOCKQUOTE],[r.BODY,i.BODY],[r.BR,i.BR],[r.BUTTON,i.BUTTON],
[r.CAPTION,i.CAPTION],[r.CENTER,i.CENTER],[r.CODE,i.CODE],[r.COL,i.COL],
[r.COLGROUP,i.COLGROUP],[r.DD,i.DD],[r.DESC,i.DESC],[r.DETAILS,i.DETAILS],
[r.DIALOG,i.DIALOG],[r.DIR,i.DIR],[r.DIV,i.DIV],[r.DL,i.DL],[r.DT,i.DT],
[r.EM,i.EM],[r.EMBED,i.EMBED],[r.FIELDSET,i.FIELDSET],[r.FIGCAPTION,i.FIGCAPTION],
[r.FIGURE,i.FIGURE],[r.FONT,i.FONT],[r.FOOTER,i.FOOTER],
[r.FOREIGN_OBJECT,i.FOREIGN_OBJECT],[r.FORM,i.FORM],[r.FRAME,i.FRAME],
[r.FRAMESET,i.FRAMESET],[r.H1,i.H1],[r.H2,i.H2],[r.H3,i.H3],[r.H4,i.H4],
[r.H5,i.H5],[r.H6,i.H6],[r.HEAD,i.HEAD],[r.HEADER,i.HEADER],[r.HGROUP,i.HGROUP],
[r.HR,i.HR],[r.HTML,i.HTML],[r.I,i.I],[r.IMG,i.IMG],[r.IMAGE,i.IMAGE],
[r.INPUT,i.INPUT],[r.IFRAME,i.IFRAME],[r.KEYGEN,i.KEYGEN],[r.LABEL,i.LABEL],
[r.LI,i.LI],[r.LINK,i.LINK],[r.LISTING,i.LISTING],[r.MAIN,i.MAIN],
[r.MALIGNMARK,i.MALIGNMARK],[r.MARQUEE,i.MARQUEE],[r.MATH,i.MATH],[r.MENU,i.MENU],
[r.META,i.META],[r.MGLYPH,i.MGLYPH],[r.MI,i.MI],[r.MO,i.MO],[r.MN,i.MN],
[r.MS,i.MS],[r.MTEXT,i.MTEXT],[r.NAV,i.NAV],[r.NOBR,i.NOBR],
[r.NOFRAMES,i.NOFRAMES],[r.NOEMBED,i.NOEMBED],[r.NOSCRIPT,i.NOSCRIPT],
[r.OBJECT,i.OBJECT],[r.OL,i.OL],[r.OPTGROUP,i.OPTGROUP],[r.OPTION,i.OPTION],
[r.P,i.P],[r.PARAM,i.PARAM],[r.PLAINTEXT,i.PLAINTEXT],[r.PRE,i.PRE],[r.RB,i.RB],
[r.RP,i.RP],[r.RT,i.RT],[r.RTC,i.RTC],[r.RUBY,i.RUBY],[r.S,i.S],
[r.SCRIPT,i.SCRIPT],[r.SECTION,i.SECTION],[r.SELECT,i.SELECT],[r.SOURCE,i.SOURCE],
[r.SMALL,i.SMALL],[r.SPAN,i.SPAN],[r.STRIKE,i.STRIKE],[r.STRONG,i.STRONG],
[r.STYLE,i.STYLE],[r.SUB,i.SUB],[r.SUMMARY,i.SUMMARY],[r.SUP,i.SUP],
[r.TABLE,i.TABLE],[r.TBODY,i.TBODY],[r.TEMPLATE,i.TEMPLATE],
[r.TEXTAREA,i.TEXTAREA],[r.TFOOT,i.TFOOT],[r.TD,i.TD],[r.TH,i.TH],
[r.THEAD,i.THEAD],[r.TITLE,i.TITLE],[r.TR,i.TR],[r.TRACK,i.TRACK],[r.TT,i.TT],
[r.U,i.U],[r.UL,i.UL],[r.SVG,i.SVG],[r.VAR,i.VAR],[r.WBR,i.WBR],
[r.XMP,i.XMP]]);t.getTagID=function(e){var t;return null!==(t=a.get(e))&&void 0!
==t?t:i.UNKNOWN};const c=i;t.SPECIAL_ELEMENTS={[n.HTML]:new
Set([c.ADDRESS,c.APPLET,c.AREA,c.ARTICLE,c.ASIDE,c.BASE,c.BASEFONT,c.BGSOUND,c.BLOC
KQUOTE,c.BODY,c.BR,c.BUTTON,c.CAPTION,c.CENTER,c.COL,c.COLGROUP,c.DD,c.DETAILS,c.DI
R,c.DIV,c.DL,c.DT,c.EMBED,c.FIELDSET,c.FIGCAPTION,c.FIGURE,c.FOOTER,c.FORM,c.FRAME,
c.FRAMESET,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HEADER,c.HGROUP,c.HR,c.HTML,c.IFR
AME,c.IMG,c.INPUT,c.LI,c.LINK,c.LISTING,c.MAIN,c.MARQUEE,c.MENU,c.META,c.NAV,c.NOEM
BED,c.NOFRAMES,c.NOSCRIPT,c.OBJECT,c.OL,c.P,c.PARAM,c.PLAINTEXT,c.PRE,c.SCRIPT,c.SE
CTION,c.SELECT,c.SOURCE,c.STYLE,c.SUMMARY,c.TABLE,c.TBODY,c.TD,c.TEMPLATE,c.TEXTARE
A,c.TFOOT,c.TH,c.THEAD,c.TITLE,c.TR,c.TRACK,c.UL,c.WBR,c.XMP]),[n.MATHML]:new
Set([c.MI,c.MO,c.MN,c.MS,c.MTEXT,c.ANNOTATION_XML]),[n.SVG]:new
Set([c.TITLE,c.FOREIGN_OBJECT,c.DESC]),[n.XLINK]:new Set,[n.XML]:new Set,
[n.XMLNS]:new Set},t.isNumberedHeader=function(e){return e===c.H1||e===c.H2||
e===c.H3||e===c.H4||e===c.H5||e===c.H6};const u=new
Set([r.STYLE,r.SCRIPT,r.XMP,r.IFRAME,r.NOEMBED,r.NOFRAMES,r.PLAINTEXT]);t.hasUnesca
pedText=function(e,t){return u.has(e)||t&&e===r.NOSCRIPT}},47478:(e,t)=>{"use
strict";var n;Object.defineProperty(t,"__esModule",{value:!
0}),t.getTokenAttr=t.TokenType=void 0,(n=t.TokenType||(t.TokenType={}))
[n.CHARACTER=0]="CHARACTER",n[n.NULL_CHARACTER=1]="NULL_CHARACTER",n[n.WHITESPACE_C
HARACTER=2]="WHITESPACE_CHARACTER",n[n.START_TAG=3]="START_TAG",n[n.END_TAG=4]="END
_TAG",n[n.COMMENT=5]="COMMENT",n[n.DOCTYPE=6]="DOCTYPE",n[n.EOF=7]="EOF",n[n.HIBERN
ATION=8]="HIBERNATION",t.getTokenAttr=function(e,t){for(let n=e.attrs.length-
1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}},61506:
(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.isUndefinedCodePoint=t.isControlCodePoint=t.getSurrogatePairCodePoint=t.isSur
rogatePair=t.isSurrogate=t.SEQUENCES=t.CODE_POINTS=t.REPLACEMENT_CHARACTER=void
0;const n=new
Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393
215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,78
6431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);va
r r;t.REPLACEMENT_CHARACTER="�",(r=t.CODE_POINTS||(t.CODE_POINTS={}))[r.EOF=-
1]="EOF",r[r.NULL=0]="NULL",r[r.TABULATION=9]="TABULATION",r[r.CARRIAGE_RETURN=13]=
"CARRIAGE_RETURN",r[r.LINE_FEED=10]="LINE_FEED",r[r.FORM_FEED=12]="FORM_FEED",r[r.S
PACE=32]="SPACE",r[r.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",r[r.QUOTATION_MARK=34]
="QUOTATION_MARK",r[r.NUMBER_SIGN=35]="NUMBER_SIGN",r[r.AMPERSAND=38]="AMPERSAND",r
[r.APOSTROPHE=39]="APOSTROPHE",r[r.HYPHEN_MINUS=45]="HYPHEN_MINUS",r[r.SOLIDUS=47]=
"SOLIDUS",r[r.DIGIT_0=48]="DIGIT_0",r[r.DIGIT_9=57]="DIGIT_9",r[r.SEMICOLON=59]="SE
MICOLON",r[r.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",r[r.EQUALS_SIGN=61]="EQUALS_SIGN",
r[r.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",r[r.QUESTION_MARK=63]="QUESTION_MARK"
,r[r.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",r[r.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F
",r[r.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",r[r.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_
Z",r[r.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",r[r.GRAVE_ACCENT=96]="GRAVE_
ACCENT",r[r.LATIN_SMALL_A=97]="LATIN_SMALL_A",r[r.LATIN_SMALL_F=102]="LATIN_SMALL_F
",r[r.LATIN_SMALL_X=120]="LATIN_SMALL_X",r[r.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",r[r
.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER",t.SEQUENCES={DASH_DASH:"--",C
DATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"syst
em"},t.isSurrogate=function(e){return
e>=55296&&e<=57343},t.isSurrogatePair=function(e){return
e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-
55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!
==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return
e>=64976&&e<=65007||n.has(e)}},91740:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.parseFragment=t.parse=t.TokenizerMode=t.Tokenizer=t.Token=t.html=t.foreignCon
tent=t.ErrorCodes=t.serializeOuter=t.serialize=t.Parser=t.defaultTreeAdapter=void
0;const r=n(20386);var i=n(20745);Object.defineProperty(t,"defaultTreeAdapter",
{enumerable:!0,get:function(){return i.defaultTreeAdapter}});var
o=n(20386);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return
o.Parser}});var s=n(40834);Object.defineProperty(t,"serialize",{enumerable:!
0,get:function(){return s.serialize}}),Object.defineProperty(t,"serializeOuter",
{enumerable:!0,get:function(){return s.serializeOuter}});var
a=n(36068);Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function()
{return a.ERR}}),t.foreignContent=n(17970),t.html=n(63668),t.Token=n(47478);var
c=n(53122);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return
c.Tokenizer}}),Object.defineProperty(t,"TokenizerMode",{enumerable:!
0,get:function(){return c.TokenizerMode}}),t.parse=function(e,t){return
r.Parser.parse(e,t)},t.parseFragment=function(e,t,n){"string"==typeof
e&&(n=t,t=e,e=null);const i=r.Parser.getFragmentParser(e,n);return
i.tokenizer.write(t,!0),i.getFragment()}},20833:(e,t)=>{"use strict";var
n;Object.defineProperty(t,"__esModule",{value:!
0}),t.FormattingElementList=t.EntryType=void 0,function(e)
{e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(n=t.EntryType||
(t.EntryType={}));const
r={type:n.Marker};t.FormattingElementList=class{constructor(e)
{this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidat
es(e,t){const
r=[],i=t.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI
(e);for(let e=0;e<this.entries.length;e++){const
t=this.entries[e];if(t.type===n.Marker)break;const{element:a}=t;if(this.treeAdapter
.getTagName(a)===o&&this.treeAdapter.getNamespaceURI(a)===s){const
t=this.treeAdapter.getAttrList(a);t.length===i&&r.push({idx:e,attrs:t})}}return
r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const
t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.l
ength<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let
e=0;e<n.length;e++){const
t=n[e];t.attrs.every((e=>r.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice
(t.idx,1))}}insertMarker(){this.entries.unshift(r)}pushElement(e,t)
{this._ensureNoahArkCondition(e),this.entries.unshift({type:n.Element,element:e,tok
en:t})}insertElementAfterBookmark(e,t){const
r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,
{type:n.Element,element:e,token:t})}removeEntry(e){const
t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const
e=this.entries.indexOf(r);e>=0?
this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(
e){const t=this.entries.find((t=>t.type===n.Marker||
this.treeAdapter.getTagName(t.element)===e));return t&&t.type===n.Element?
t:null}getElementEntry(e){return
this.entries.find((t=>t.type===n.Element&&t.element===e))}}},20386:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;const
r=n(53122),i=n(86751),o=n(20833),s=n(20745),a=n(83479),c=n(17970),u=n(36068),l=n(61
506),h=n(63668),d=n(47478),f="hidden",p=8,g=3;var m;!function(e)
{e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFO
RE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.
AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE
=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION"
,e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[
e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.I
N_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AF
TER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]=
"AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMES
ET=22]="AFTER_AFTER_FRAMESET"}(m||(m={}));const
v={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-
1},b=new
Set([h.TAG_ID.TABLE,h.TAG_ID.TBODY,h.TAG_ID.TFOOT,h.TAG_ID.THEAD,h.TAG_ID.TR]),y={s
criptingEnabled:!0,sourceCodeLocationInfo:!
1,treeAdapter:s.defaultTreeAdapter,onParseError:null};function w(e,t){let
n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?
e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):
(e.activeFormattingElements.removeEntry(n),n=null):W(e,t),n}function _(e,t){let
n=null,r=e.openElements.stackTop;for(;r>=0;r--){const
i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElemen
ts.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?
0:r),e.activeFormattingElements.removeEntry(t)),n}function E(e,t,n){let
r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i)
{i=e.openElements.getCommonAncestor(s);const
n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=g;!n||a?
(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):
(s=S(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r
),e.treeAdapter.appendChild(s,r),r=s)}return r}function S(e,t){const
n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.ta
gName,n,t.token.attrs);return
e.openElements.replace(t.element,r),t.element=r,r}function T(e,t,n){const
r=e.treeAdapter.getTagName(t),i=(0,h.getTagID)
(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const
r=e.treeAdapter.getNamespaceURI(t);i===h.TAG_ID.TEMPLATE&&r===h.NS.HTML&&(t=e.treeA
dapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function A(e,t,n)
{const r=e.treeAdapter.getNamespaceURI(n.element),
{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e
.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark
(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.
openElements.insertAfter(t,o,i.tagID)}function C(e,t){for(let n=0;n<p;n++){const
n=w(e,t);if(!n)break;const r=_(e,n);if(!
r)break;e.activeFormattingElements.bookmark=n;const
i=E(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.deta
chNode(i),o&&T(e,o,i),A(e,r,n)}}function O(e,t)
{e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function x(e,t)
{if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let
r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(
!e.fragmentContext&&e.openElements.stackTop>=0){const
n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!
r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const
n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!
r.endTag&&e._setEndLocation(n,t)}}}}function I(e,t){e._err(t,u.ERR.missingDoctype,!
0),e.treeAdapter.setDocumentMode(e.document,h.DOCUMENT_MODE.QUIRKS),e.insertionMode
=m.BEFORE_HTML,e._processToken(t)}function P(e,t)
{e._insertFakeRootElement(),e.insertionMode=m.BEFORE_HEAD,e._processToken(t)}functi
on D(e,t)
{e._insertFakeElement(h.TAG_NAMES.HEAD,h.TAG_ID.HEAD),e.headElement=e.openElements.
current,e.insertionMode=m.IN_HEAD,e._processToken(t)}function k(e,t)
{switch(t.tagID){case h.TAG_ID.HTML:V(e,t);break;case h.TAG_ID.BASE:case
h.TAG_ID.BASEFONT:case h.TAG_ID.BGSOUND:case h.TAG_ID.LINK:case
h.TAG_ID.META:e._appendElement(t,h.NS.HTML),t.ackSelfClosing=!0;break;case
h.TAG_ID.TITLE:e._switchToTextParsing(t,r.TokenizerMode.RCDATA);break;case
h.TAG_ID.NOSCRIPT:e.options.scriptingEnabled?
e._switchToTextParsing(t,r.TokenizerMode.RAWTEXT):
(e._insertElement(t,h.NS.HTML),e.insertionMode=m.IN_HEAD_NO_SCRIPT);break;case
h.TAG_ID.NOFRAMES:case
h.TAG_ID.STYLE:e._switchToTextParsing(t,r.TokenizerMode.RAWTEXT);break;case
h.TAG_ID.SCRIPT:e._switchToTextParsing(t,r.TokenizerMode.SCRIPT_DATA);break;case
h.TAG_ID.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.
framesetOk=!
1,e.insertionMode=m.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(m.IN_TEMPLATE);bre
ak;case
h.TAG_ID.HEAD:e._err(t,u.ERR.misplacedStartTagForHeadElement);break;default:M(e,t)}
}function R(e,t){e.openElements.tmplCount>0?
(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!
==h.TAG_ID.TEMPLATE&&e._err(t,u.ERR.closingOfElementWithOpenChildElements),e.openEl
ements.popUntilTagNamePopped(h.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToL
astMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,u.ER
R.endTagWithoutMatchingOpenElement)}function M(e,t)
{e.openElements.pop(),e.insertionMode=m.AFTER_HEAD,e._processToken(t)}function
N(e,t){const n=t.type===d.TokenType.EOF?
u.ERR.openElementsLeftAfterEof:u.ERR.disallowedContentInNoscriptInHead;e._err(t,n),
e.openElements.pop(),e.insertionMode=m.IN_HEAD,e._processToken(t)}function L(e,t)
{e._insertFakeElement(h.TAG_NAMES.BODY,h.TAG_ID.BODY),e.insertionMode=m.IN_BODY,F(e
,t)}function F(e,t){switch(t.type){case d.TokenType.CHARACTER:B(e,t);break;case
d.TokenType.WHITESPACE_CHARACTER:j(e,t);break;case
d.TokenType.COMMENT:O(e,t);break;case d.TokenType.START_TAG:V(e,t);break;case
d.TokenType.END_TAG:q(e,t);break;case d.TokenType.EOF:K(e,t)}}function j(e,t)
{e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function B(e,t)
{e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!
1}function U(e,t)
{e._reconstructActiveFormattingElements(),e._appendElement(t,h.NS.HTML),e.framesetO
k=!1,t.ackSelfClosing=!0}function H(e){const t=(0,d.getTokenAttr)
(e,h.ATTRS.TYPE);return null!=t&&t.toLowerCase()===f}function G(e,t)
{e._switchToTextParsing(t,r.TokenizerMode.RAWTEXT)}function z(e,t)
{e._reconstructActiveFormattingElements(),e._insertElement(t,h.NS.HTML)}function
V(e,t){switch(t.tagID){case h.TAG_ID.I:case h.TAG_ID.S:case h.TAG_ID.B:case
h.TAG_ID.U:case h.TAG_ID.EM:case h.TAG_ID.TT:case h.TAG_ID.BIG:case
h.TAG_ID.CODE:case h.TAG_ID.FONT:case h.TAG_ID.SMALL:case h.TAG_ID.STRIKE:case
h.TAG_ID.STRONG:!function(e,t)
{e._reconstructActiveFormattingElements(),e._insertElement(t,h.NS.HTML),e.activeFor
mattingElements.pushElement(e.openElements.current,t)}(e,t);break;case h.TAG_ID.A:!
function(e,t){const
n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.TAG_NAMES.A);n&&(C
(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e
._reconstructActiveFormattingElements(),e._insertElement(t,h.NS.HTML),e.activeForma
ttingElements.pushElement(e.openElements.current,t)}(e,t);break;case
h.TAG_ID.H1:case h.TAG_ID.H2:case h.TAG_ID.H3:case h.TAG_ID.H4:case
h.TAG_ID.H5:case h.TAG_ID.H6:!function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),
(0,h.isNumberedHeader)
(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,h.NS.HTML)}
(e,t);break;case h.TAG_ID.P:case h.TAG_ID.DL:case h.TAG_ID.OL:case h.TAG_ID.UL:case
h.TAG_ID.DIV:case h.TAG_ID.DIR:case h.TAG_ID.NAV:case h.TAG_ID.MAIN:case
h.TAG_ID.MENU:case h.TAG_ID.ASIDE:case h.TAG_ID.CENTER:case h.TAG_ID.FIGURE:case
h.TAG_ID.FOOTER:case h.TAG_ID.HEADER:case h.TAG_ID.HGROUP:case h.TAG_ID.DIALOG:case
h.TAG_ID.DETAILS:case h.TAG_ID.ADDRESS:case h.TAG_ID.ARTICLE:case
h.TAG_ID.SECTION:case h.TAG_ID.SUMMARY:case h.TAG_ID.FIELDSET:case
h.TAG_ID.BLOCKQUOTE:case h.TAG_ID.FIGCAPTION:!function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._insertElement(t
,h.NS.HTML)}(e,t);break;case h.TAG_ID.LI:case h.TAG_ID.DD:case h.TAG_ID.DT:!
function(e,t){e.framesetOk=!1;const n=t.tagID;for(let
t=e.openElements.stackTop;t>=0;t--){const
r=e.openElements.tagIDs[t];if(n===h.TAG_ID.LI&&r===h.TAG_ID.LI||(n===h.TAG_ID.DD||
n===h.TAG_ID.DT)&&(r===h.TAG_ID.DD||r===h.TAG_ID.DT))
{e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNa
mePopped(r);break}if(r!==h.TAG_ID.ADDRESS&&r!==h.TAG_ID.DIV&&r!
==h.TAG_ID.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.h
asInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._insertElement(t,h.NS.HTML)}
(e,t);break;case h.TAG_ID.BR:case h.TAG_ID.IMG:case h.TAG_ID.WBR:case
h.TAG_ID.AREA:case h.TAG_ID.EMBED:case h.TAG_ID.KEYGEN:U(e,t);break;case
h.TAG_ID.HR:!function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._appendElement(t
,h.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case h.TAG_ID.RB:case
h.TAG_ID.RTC:!function(e,t)
{e.openElements.hasInScope(h.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),
e._insertElement(t,h.NS.HTML)}(e,t);break;case h.TAG_ID.RT:case h.TAG_ID.RP:!
function(e,t)
{e.openElements.hasInScope(h.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWit
hExclusion(h.TAG_ID.RTC),e._insertElement(t,h.NS.HTML)}(e,t);break;case
h.TAG_ID.PRE:case h.TAG_ID.LISTING:!function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._insertElement(t
,h.NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case h.TAG_ID.XMP:!
function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._reconstructActi
veFormattingElements(),e.framesetOk=!
1,e._switchToTextParsing(t,r.TokenizerMode.RAWTEXT)}(e,t);break;case h.TAG_ID.SVG:!
function(e,t)
{e._reconstructActiveFormattingElements(),c.adjustTokenSVGAttrs(t),c.adjustTokenXML
Attrs(t),t.selfClosing?
e._appendElement(t,h.NS.SVG):e._insertElement(t,h.NS.SVG),t.ackSelfClosing=!0}
(e,t);break;case h.TAG_ID.HTML:!function(e,t)
{0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0
],t.attrs)}(e,t);break;case h.TAG_ID.BASE:case h.TAG_ID.LINK:case
h.TAG_ID.META:case h.TAG_ID.STYLE:case h.TAG_ID.TITLE:case h.TAG_ID.SCRIPT:case
h.TAG_ID.BGSOUND:case h.TAG_ID.BASEFONT:case h.TAG_ID.TEMPLATE:k(e,t);break;case
h.TAG_ID.BODY:!function(e,t){const
n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount
&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case
h.TAG_ID.FORM:!function(e,t){const
n=e.openElements.tmplCount>0;e.formElement&&!n||
(e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._insertElement(t
,h.NS.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case
h.TAG_ID.NOBR:!function(e,t)
{e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.TAG_ID.NOBR)&
&(C(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,h.NS.HTML),e.
activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case
h.TAG_ID.MATH:!function(e,t)
{e._reconstructActiveFormattingElements(),c.adjustTokenMathMLAttrs(t),c.adjustToken
XMLAttrs(t),t.selfClosing?
e._appendElement(t,h.NS.MATHML):e._insertElement(t,h.NS.MATHML),t.ackSelfClosing=!
0}(e,t);break;case h.TAG_ID.TABLE:!function(e,t)
{e.treeAdapter.getDocumentMode(e.document)!
==h.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePEle
ment(),e._insertElement(t,h.NS.HTML),e.framesetOk=!1,e.insertionMode=m.IN_TABLE}
(e,t);break;case h.TAG_ID.INPUT:!function(e,t)
{e._reconstructActiveFormattingElements(),e._appendElement(t,h.NS.HTML),H(t)||
(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case h.TAG_ID.PARAM:case
h.TAG_ID.TRACK:case h.TAG_ID.SOURCE:!function(e,t)
{e._appendElement(t,h.NS.HTML),t.ackSelfClosing=!0}(e,t);break;case
h.TAG_ID.IMAGE:!function(e,t)
{t.tagName=h.TAG_NAMES.IMG,t.tagID=h.TAG_ID.IMG,U(e,t)}(e,t);break;case
h.TAG_ID.BUTTON:!function(e,t)
{e.openElements.hasInScope(h.TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags
(),e.openElements.popUntilTagNamePopped(h.TAG_ID.BUTTON)),e._reconstructActiveForma
ttingElements(),e._insertElement(t,h.NS.HTML),e.framesetOk=!1}(e,t);break;case
h.TAG_ID.APPLET:case h.TAG_ID.OBJECT:case h.TAG_ID.MARQUEE:!function(e,t)
{e._reconstructActiveFormattingElements(),e._insertElement(t,h.NS.HTML),e.activeFor
mattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case h.TAG_ID.IFRAME:!
function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.TokenizerMode.RAWTEXT)}
(e,t);break;case h.TAG_ID.SELECT:!function(e,t)
{e._reconstructActiveFormattingElements(),e._insertElement(t,h.NS.HTML),e.framesetO
k=!1,e.insertionMode=e.insertionMode===m.IN_TABLE||e.insertionMode===m.IN_CAPTION||
e.insertionMode===m.IN_TABLE_BODY||e.insertionMode===m.IN_ROW||
e.insertionMode===m.IN_CELL?m.IN_SELECT_IN_TABLE:m.IN_SELECT}(e,t);break;case
h.TAG_ID.OPTION:case h.TAG_ID.OPTGROUP:!function(e,t)
{e.openElements.currentTagId===h.TAG_ID.OPTION&&e.openElements.pop(),e._reconstruct
ActiveFormattingElements(),e._insertElement(t,h.NS.HTML)}(e,t);break;case
h.TAG_ID.NOEMBED:G(e,t);break;case h.TAG_ID.FRAMESET:!function(e,t){const
n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter
.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,h.NS.HTML)
,e.insertionMode=m.IN_FRAMESET)}(e,t);break;case h.TAG_ID.TEXTAREA:!function(e,t)
{e._insertElement(t,h.NS.HTML),e.skipNextNewLine=!
0,e.tokenizer.state=r.TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,
e.framesetOk=!1,e.insertionMode=m.TEXT}(e,t);break;case
h.TAG_ID.NOSCRIPT:e.options.scriptingEnabled?G(e,t):z(e,t);break;case
h.TAG_ID.PLAINTEXT:!function(e,t)
{e.openElements.hasInButtonScope(h.TAG_ID.P)&&e._closePElement(),e._insertElement(t
,h.NS.HTML),e.tokenizer.state=r.TokenizerMode.PLAINTEXT}(e,t);break;case
h.TAG_ID.COL:case h.TAG_ID.TH:case h.TAG_ID.TD:case h.TAG_ID.TR:case
h.TAG_ID.HEAD:case h.TAG_ID.FRAME:case h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case
h.TAG_ID.THEAD:case h.TAG_ID.CAPTION:case
h.TAG_ID.COLGROUP:break;default:z(e,t)}}function W(e,t){const
n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const
i=e.openElements.items[t],o=e.openElements.tagIDs[t];if(r===o&&(r!
==h.TAG_ID.UNKNOWN||e.treeAdapter.getTagName(i)===n))
{e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&
e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,o))break}}function
q(e,t){switch(t.tagID){case h.TAG_ID.A:case h.TAG_ID.B:case h.TAG_ID.I:case
h.TAG_ID.S:case h.TAG_ID.U:case h.TAG_ID.EM:case h.TAG_ID.TT:case h.TAG_ID.BIG:case
h.TAG_ID.CODE:case h.TAG_ID.FONT:case h.TAG_ID.NOBR:case h.TAG_ID.SMALL:case
h.TAG_ID.STRIKE:case h.TAG_ID.STRONG:C(e,t);break;case h.TAG_ID.P:!function(e)
{e.openElements.hasInButtonScope(h.TAG_ID.P)||
e._insertFakeElement(h.TAG_NAMES.P,h.TAG_ID.P),e._closePElement()}(e);break;case
h.TAG_ID.DL:case h.TAG_ID.UL:case h.TAG_ID.OL:case h.TAG_ID.DIR:case
h.TAG_ID.DIV:case h.TAG_ID.NAV:case h.TAG_ID.PRE:case h.TAG_ID.MAIN:case
h.TAG_ID.MENU:case h.TAG_ID.ASIDE:case h.TAG_ID.BUTTON:case h.TAG_ID.CENTER:case
h.TAG_ID.FIGURE:case h.TAG_ID.FOOTER:case h.TAG_ID.HEADER:case h.TAG_ID.HGROUP:case
h.TAG_ID.DIALOG:case h.TAG_ID.ADDRESS:case h.TAG_ID.ARTICLE:case
h.TAG_ID.DETAILS:case h.TAG_ID.SECTION:case h.TAG_ID.SUMMARY:case
h.TAG_ID.LISTING:case h.TAG_ID.FIELDSET:case h.TAG_ID.BLOCKQUOTE:case
h.TAG_ID.FIGCAPTION:!function(e,t){const
n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.
openElements.popUntilTagNamePopped(n))}(e,t);break;case h.TAG_ID.LI:!function(e)
{e.openElements.hasInListItemScope(h.TAG_ID.LI)&&(e.openElements.generateImpliedEnd
TagsWithExclusion(h.TAG_ID.LI),e.openElements.popUntilTagNamePopped(h.TAG_ID.LI))}
(e);break;case h.TAG_ID.DD:case h.TAG_ID.DT:!function(e,t){const
n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithE
xclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case
h.TAG_ID.H1:case h.TAG_ID.H2:case h.TAG_ID.H3:case h.TAG_ID.H4:case
h.TAG_ID.H5:case h.TAG_ID.H6:!function(e)
{e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(
),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case h.TAG_ID.BR:!
function(e)
{e._reconstructActiveFormattingElements(),e._insertFakeElement(h.TAG_NAMES.BR,h.TAG
_ID.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case h.TAG_ID.BODY:!
function(e,t)
{if(e.openElements.hasInScope(h.TAG_ID.BODY)&&(e.insertionMode=m.AFTER_BODY,e.optio
ns.sourceCodeLocationInfo)){const
n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}
(e,t);break;case h.TAG_ID.HTML:!function(e,t)
{e.openElements.hasInScope(h.TAG_ID.BODY)&&(e.insertionMode=m.AFTER_BODY,he(e,t))}
(e,t);break;case h.TAG_ID.FORM:!function(e){const t=e.openElements.tmplCount>0,
{formElement:n}=e;t||(e.formElement=null),(n||
t)&&e.openElements.hasInScope(h.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTag
s(),t?
e.openElements.popUntilTagNamePopped(h.TAG_ID.FORM):n&&e.openElements.remove(n))}
(e);break;case h.TAG_ID.APPLET:case h.TAG_ID.OBJECT:case h.TAG_ID.MARQUEE:!
function(e,t){const
n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.
openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(
))}(e,t);break;case h.TAG_ID.TEMPLATE:R(e,t);break;default:W(e,t)}}function K(e,t)
{e.tmplInsertionModeStack.length>0?le(e,t):x(e,t)}function Y(e,t)
{if(b.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.h
asNonWhitespacePendingCharacterToken=!
1,e.originalInsertionMode=e.insertionMode,e.insertionMode=m.IN_TABLE_TEXT,t.type)
{case d.TokenType.CHARACTER:J(e,t);break;case
d.TokenType.WHITESPACE_CHARACTER:Z(e,t)}else X(e,t)}function $(e,t){switch(t.tagID)
{case h.TAG_ID.TD:case h.TAG_ID.TH:case h.TAG_ID.TR:!function(e,t)
{e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TAG_NAMES.TBODY,h.
TAG_ID.TBODY),e.insertionMode=m.IN_TABLE_BODY,ie(e,t)}(e,t);break;case
h.TAG_ID.STYLE:case h.TAG_ID.SCRIPT:case h.TAG_ID.TEMPLATE:k(e,t);break;case
h.TAG_ID.COL:!function(e,t)
{e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TAG_NAMES.COLGROUP
,h.TAG_ID.COLGROUP),e.insertionMode=m.IN_COLUMN_GROUP,ne(e,t)}(e,t);break;case
h.TAG_ID.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||
(e._insertElement(t,h.NS.HTML),e.formElement=e.openElements.current,e.openElements.
pop())}(e,t);break;case h.TAG_ID.TABLE:!function(e,t)
{e.openElements.hasInTableScope(h.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePop
ped(h.TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case
h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case h.TAG_ID.THEAD:!function(e,t)
{e.openElements.clearBackToTableContext(),e._insertElement(t,h.NS.HTML),e.insertion
Mode=m.IN_TABLE_BODY}(e,t);break;case h.TAG_ID.INPUT:!function(e,t){H(t)?
e._appendElement(t,h.NS.HTML):X(e,t),t.ackSelfClosing=!0}(e,t);break;case
h.TAG_ID.CAPTION:!function(e,t)
{e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker()
,e._insertElement(t,h.NS.HTML),e.insertionMode=m.IN_CAPTION}(e,t);break;case
h.TAG_ID.COLGROUP:!function(e,t)
{e.openElements.clearBackToTableContext(),e._insertElement(t,h.NS.HTML),e.insertion
Mode=m.IN_COLUMN_GROUP}(e,t);break;default:X(e,t)}}function Q(e,t){switch(t.tagID)
{case
h.TAG_ID.TABLE:e.openElements.hasInTableScope(h.TAG_ID.TABLE)&&(e.openElements.popU
ntilTagNamePopped(h.TAG_ID.TABLE),e._resetInsertionMode());break;case
h.TAG_ID.TEMPLATE:R(e,t);break;case h.TAG_ID.BODY:case h.TAG_ID.CAPTION:case
h.TAG_ID.COL:case h.TAG_ID.COLGROUP:case h.TAG_ID.HTML:case h.TAG_ID.TBODY:case
h.TAG_ID.TD:case h.TAG_ID.TFOOT:case h.TAG_ID.TH:case h.TAG_ID.THEAD:case
h.TAG_ID.TR:break;default:X(e,t)}}function X(e,t){const
n=e.fosterParentingEnabled;e.fosterParentingEnabled=!
0,F(e,t),e.fosterParentingEnabled=n}function Z(e,t)
{e.pendingCharacterTokens.push(t)}function J(e,t)
{e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!
0}function ee(e,t){let
n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.leng
th;n++)X(e,e.pendingCharacterTokens[n]);else
for(;n<e.pendingCharacterTokens.length;n+
+)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsert
ionMode,e._processToken(t)}t.Parser=class{constructor(e,t,n=null,s=null)
{this.fragmentContext=n,this.scriptHandler=s,this.currentToken=null,this.stopped=!
1,this.insertionMode=m.INITIAL,this.originalInsertionMode=m.INITIAL,this.headElemen
t=null,this.for
mElement=null,this.currentNotInHTML=!
1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespa
cePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!
1,this.fosterParentingEnabled=!
1,this.options=Object.assign(Object.assign({},y),e),this.treeAdapter=this.options.t
reeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.opt
ions.sourceCodeLocationInfo=!0),this.document=null!=t?
t:this.treeAdapter.createDocument(),this.tokenizer=new
r.Tokenizer(this.options,this),this.activeFormattingElements=new
o.FormattingElementList(this.treeAdapter),this.fragmentContextID=n?(0,h.getTagID)
(this.treeAdapter.getTagName(n)):h.TAG_ID.UNKNOWN,this._setContextModes(null!=n?
n:this.document,this.fragmentContextID),this.openElements=new
i.OpenElementStack(this.document,this.treeAdapter,this)}static parse(e,t){const
n=new this(t);return n.tokenizer.write(e,!0),n.document}static
getFragmentParser(e,t){const n=Object.assign(Object.assign({},y),t);null!=e||
(e=n.treeAdapter.createElement(h.TAG_NAMES.TEMPLATE,h.NS.HTML,[]));const
r=n.treeAdapter.createElement("documentmock",h.NS.HTML,[]),i=new this(n,r,e);return
i.fragmentContextID===h.TAG_ID.TEMPLATE&&i.tmplInsertionModeStack.unshift(m.IN_TEMP
LATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInser
tionMode(),i._findFormInFragmentContext(),i}getFragment(){const
e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFr
agment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!
this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?
r:v,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,e
ndLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?
i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var
r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||
i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e
,t){var
n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToke
n),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||
r.call(n,e,this.openElements.current),t){let
e,t;0===this.openElements.stackTop&&this.fragmentContext?
(e=this.fragmentContext,t=this.fragmentContextID):
({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setCont
extModes(e,t){const n=e===this.document||
this.treeAdapter.getNamespaceURI(e)===h.NS.HTML;this.currentNotInHTML=!
n,this.tokenizer.inForeignNode=!n&&!
this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t)
{this._insertElement(e,h.NS.HTML),this.tokenizer.state=t,this.originalInsertionMode
=this.insertionMode,this.insertionMode=m.TEXT}switchToPlaintextParsing()
{this.insertionMode=m.TEXT,this.originalInsertionMode=m.IN_BODY,this.tokenizer.stat
e=r.TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return
0===this.openElements.stackTop&&this.fragmentContext?
this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let
e=this.fragmentContext;for(;e;)
{if(this.treeAdapter.getTagName(e)===h.TAG_NAMES.FORM)
{this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFra
gmentParsing()
{if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===
h.NS.HTML)switch(this.fragmentContextID){case h.TAG_ID.TITLE:case
h.TAG_ID.TEXTAREA:this.tokenizer.state=r.TokenizerMode.RCDATA;break;case
h.TAG_ID.STYLE:case h.TAG_ID.XMP:case h.TAG_ID.IFRAME:case h.TAG_ID.NOEMBED:case
h.TAG_ID.NOFRAMES:case
h.TAG_ID.NOSCRIPT:this.tokenizer.state=r.TokenizerMode.RAWTEXT;break;case
h.TAG_ID.SCRIPT:this.tokenizer.state=r.TokenizerMode.SCRIPT_DATA;break;case
h.TAG_ID.PLAINTEXT:this.tokenizer.state=r.TokenizerMode.PLAINTEXT}}_setDocumentType
(e){const
t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(
this.document,t,n,r),e.location){const
t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumen
tTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attach
ElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const
n=t&&Object.assign(Object.assign({},t),
{startTag:t});this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFoster
ParentOnInsertion())this._fosterParentElement(e);else{const
t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_ap
pendElement(e,t){const
n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e
.location)}_insertElement(e,t){const
n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e
.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const
n=this.treeAdapter.createElement(e,h.NS.HTML,
[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e
){const
t=this.treeAdapter.createElement(e.tagName,h.NS.HTML,e.attrs),n=this.treeAdapter.cr
eateDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElement
ToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocat
ionInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(
){const e=this.treeAdapter.createElement(h.TAG_NAMES.HTML,h.NS.HTML,
[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation
(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElement
s.push(e,h.TAG_ID.HTML)}_appendCommentNode(e,t){const
n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this
.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.loc
ation)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?
(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?
this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.char
s)):
(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars
)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?
r.lastIndexOf(n):r.length,o=r[i-
1];if(this.treeAdapter.getNodeSourceCodeLocation(o))
{const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSource
CodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else
this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e
.location)}_adoptNodes(e,t){for(let
n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.tree
Adapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t)
{if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const
n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===d.TokenType.END_TAG&&r===t
.tagName?
{endTag:Object.assign({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset
}:
{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.up
dateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!
this.currentNotInHTML)return!1;let t,n;return
0===this.openElements.stackTop&&this.fragmentContext?
(t=this.fragmentContext,n=this.fragmentContextID):
({current:t,currentTagId:n}=this.openElements),(e.tagID!==h.TAG_ID.SVG||
this.treeAdapter.getTagName(t)!==h.TAG_NAMES.ANNOTATION_XML||
this.treeAdapter.getNamespaceURI(t)!==h.NS.MATHML)&&(this.tokenizer.inForeignNode||
(e.tagID===h.TAG_ID.MGLYPH||e.tagID===h.TAG_ID.MALIGNMARK)&&!
this._isIntegrationPoint(n,t,h.NS.HTML))}_processToken(e){switch(e.type){case
d.TokenType.CHARACTER:this.onCharacter(e);break;case
d.TokenType.NULL_CHARACTER:this.onNullCharacter(e);break;case
d.TokenType.COMMENT:this.onComment(e);break;case
d.TokenType.DOCTYPE:this.onDoctype(e);break;case
d.TokenType.START_TAG:this._processStartTag(e);break;case
d.TokenType.END_TAG:this.onEndTag(e);break;case
d.TokenType.EOF:this.onEof(e);break;case
d.TokenType.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint
(e,t,n){const
r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return
c.isIntegrationPoint(e,r,i,n)}_reconstructActiveFormattingElements(){const
e=this.activeFormattingElements.entries.length;if(e){const
t=this.activeFormattingElements.entries.findIndex((e=>e.type===o.EntryType.Marker||
this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const
e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAda
pter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableC
ell()
{this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopp
ed(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=m.IN_ROW}
_closePElement()
{this.openElements.generateImpliedEndTagsWithExclusion(h.TAG_ID.P),this.openElement
s.popUntilTagNamePopped(h.TAG_ID.P)}_resetInsertionMode(){for(let
e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?
this.fragmentContextID:this.openElements.tagIDs[e]){case h.TAG_ID.TR:return
void(this.insertionMode=m.IN_ROW);case h.TAG_ID.TBODY:case h.TAG_ID.THEAD:case
h.TAG_ID.TFOOT:return void(this.insertionMode=m.IN_TABLE_BODY);case
h.TAG_ID.CAPTION:return void(this.insertionMode=m.IN_CAPTION);case
h.TAG_ID.COLGROUP:return void(this.insertionMode=m.IN_COLUMN_GROUP);case
h.TAG_ID.TABLE:return void(this.insertionMode=m.IN_TABLE);case h.TAG_ID.BODY:return
void(this.insertionMode=m.IN_BODY);case h.TAG_ID.FRAMESET:return
void(this.insertionMode=m.IN_FRAMESET);case h.TAG_ID.SELECT:return void
this._resetInsertionModeForSelect(e);case h.TAG_ID.TEMPLATE:return
void(this.insertionMode=this.tmplInsertionModeStack[0]);case h.TAG_ID.HTML:return
void(this.insertionMode=this.headElement?m.AFTER_HEAD:m.BEFORE_HEAD);case
h.TAG_ID.TD:case h.TAG_ID.TH:if(e>0)return
void(this.insertionMode=m.IN_CELL);break;case h.TAG_ID.HEAD:if(e>0)return
void(this.insertionMode=m.IN_HEAD)}this.insertionMode=m.IN_BODY}_resetInsertionMode
ForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const
e=this.openElements.tagIDs[t];if(e===h.TAG_ID.TEMPLATE)break;if(e===h.TAG_ID.TABLE)
return
void(this.insertionMode=m.IN_SELECT_IN_TABLE)}this.insertionMode=m.IN_SELECT}_isEle
mentCausesFosterParenting(e){return b.has(e)}_shouldFosterParentOnInsertion()
{return
this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements
.currentTagId)}_findFosterParentingLocation(){for(let
e=this.openElements.stackTop;e>=0;e--){const
t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case
h.TAG_ID.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===h.NS.HTML)return{parent:
this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case
h.TAG_ID.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?
{parent:n,beforeElement:t}:{parent:this.openElements.items[e-
1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:nul
l}}_fosterParentElement(e){const
t=this._findFosterParentingLocation();t.beforeElement?
this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendCh
ild(t.parent,e)}_isSpecialElement(e,t){const
n=this.treeAdapter.getNamespaceURI(e);return
h.SPECIAL_ELEMENTS[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!
1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!
1}(this,e);else switch(this.insertionMode){case m.INITIAL:I(this,e);break;case
m.BEFORE_HTML:P(this,e);break;case m.BEFORE_HEAD:D(this,e);break;case
m.IN_HEAD:M(this,e);break;case m.IN_HEAD_NO_SCRIPT:N(this,e);break;case
m.AFTER_HEAD:L(this,e);break;case m.IN_BODY:case m.IN_CAPTION:case m.IN_CELL:case
m.IN_TEMPLATE:B(this,e);break;case m.TEXT:case m.IN_SELECT:case
m.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case m.IN_TABLE:case
m.IN_TABLE_BODY:case m.IN_ROW:Y(this,e);break;case
m.IN_TABLE_TEXT:J(this,e);break;case m.IN_COLUMN_GROUP:re(this,e);break;case
m.AFTER_BODY:de(this,e);break;case
m.AFTER_AFTER_BODY:fe(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!
1,this.tokenizer.inForeignNode)!function(e,t)
{t.chars=l.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e);else
switch(this.insertionMode){case m.INITIAL:I(this,e);break;case
m.BEFORE_HTML:P(this,e);break;case m.BEFORE_HEAD:D(this,e);break;case
m.IN_HEAD:M(this,e);break;case m.IN_HEAD_NO_SCRIPT:N(this,e);break;case
m.AFTER_HEAD:L(this,e);break;case m.TEXT:this._insertCharacters(e);break;case
m.IN_TABLE:case m.IN_TABLE_BODY:case m.IN_ROW:Y(this,e);break;case
m.IN_COLUMN_GROUP:re(this,e);break;case m.AFTER_BODY:de(this,e);break;case
m.AFTER_AFTER_BODY:fe(this,e)}}onComment(e){if(this.skipNextNewLine=!
1,this.currentNotInHTML)O(this,e);else switch(this.insertionMode){case
m.INITIAL:case m.BEFORE_HTML:case m.BEFORE_HEAD:case m.IN_HEAD:case
m.IN_HEAD_NO_SCRIPT:case m.AFTER_HEAD:case m.IN_BODY:case m.IN_TABLE:case
m.IN_CAPTION:case m.IN_COLUMN_GROUP:case m.IN_TABLE_BODY:case m.IN_ROW:case
m.IN_CELL:case m.IN_SELECT:case m.IN_SELECT_IN_TABLE:case m.IN_TEMPLATE:case
m.IN_FRAMESET:case m.AFTER_FRAMESET:O(this,e);break;case
m.IN_TABLE_TEXT:ee(this,e);break;case m.AFTER_BODY:!function(e,t)
{e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case
m.AFTER_AFTER_BODY:case m.AFTER_AFTER_FRAMESET:!function(e,t)
{e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e)
{switch(this.skipNextNewLine=!1,this.insertionMode){case m.INITIAL:!function(e,t)
{e._setDocumentType(t);const n=t.forceQuirks?
h.DOCUMENT_MODE.QUIRKS:a.getDocumentMode(t);a.isConforming(t)||
e._err(t,u.ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.
insertionMode=m.BEFORE_HTML}(this,e);break;case m.BEFORE_HEAD:case m.IN_HEAD:case
m.IN_HEAD_NO_SCRIPT:case
m.AFTER_HEAD:this._err(e,u.ERR.misplacedDoctype);break;case
m.IN_TABLE_TEXT:ee(this,e)}}onStartTag(e){this.skipNextNewLine=!
1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!
e.ackSelfClosing&&this._err(e,u.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}
_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?
function(e,t)
{if(c.causesExit(t))pe(e),e._startTagOutsideForeignContent(t);else{const
n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===h.NS.MATHML
?
c.adjustTokenMathMLAttrs(t):r===h.NS.SVG&&(c.adjustTokenSVGTagName(t),c.adjustToken
SVGAttrs(t)),c.adjustTokenXMLAttrs(t),t.selfClosing?
e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}
(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e)
{switch(this.insertionMode){case m.INITIAL:I(this,e);break;case m.BEFORE_HTML:!
function(e,t){t.tagID===h.TAG_ID.HTML?
(e._insertElement(t,h.NS.HTML),e.insertionMode=m.BEFORE_HEAD):P(e,t)}
(this,e);break;case m.BEFORE_HEAD:!function(e,t){switch(t.tagID){case
h.TAG_ID.HTML:V(e,t);break;case
h.TAG_ID.HEAD:e._insertElement(t,h.NS.HTML),e.headElement=e.openElements.current,e.
insertionMode=m.IN_HEAD;break;default:D(e,t)}}(this,e);break;case
m.IN_HEAD:k(this,e);break;case m.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID)
{case h.TAG_ID.HTML:V(e,t);break;case h.TAG_ID.BASEFONT:case h.TAG_ID.BGSOUND:case
h.TAG_ID.HEAD:case h.TAG_ID.LINK:case h.TAG_ID.META:case h.TAG_ID.NOFRAMES:case
h.TAG_ID.STYLE:k(e,t);break;case
h.TAG_ID.NOSCRIPT:e._err(t,u.ERR.nestedNoscriptInHead);break;default:N(e,t)}}
(this,e);break;case m.AFTER_HEAD:!function(e,t){switch(t.tagID){case
h.TAG_ID.HTML:V(e,t);break;case
h.TAG_ID.BODY:e._insertElement(t,h.NS.HTML),e.framesetOk=!
1,e.insertionMode=m.IN_BODY;break;case
h.TAG_ID.FRAMESET:e._insertElement(t,h.NS.HTML),e.insertionMode=m.IN_FRAMESET;break
;case h.TAG_ID.BASE:case h.TAG_ID.BASEFONT:case h.TAG_ID.BGSOUND:case
h.TAG_ID.LINK:case h.TAG_ID.META:case h.TAG_ID.NOFRAMES:case h.TAG_ID.SCRIPT:case
h.TAG_ID.STYLE:case h.TAG_ID.TEMPLATE:case
h.TAG_ID.TITLE:e._err(t,u.ERR.abandonedHeadElementChild),e.openElements.push(e.head
Element,h.TAG_ID.HEAD),k(e,t),e.openElements.remove(e.headElement);break;case
h.TAG_ID.HEAD:e._err(t,u.ERR.misplacedStartTagForHeadElement);break;default:L(e,t)}
}(this,e);break;case m.IN_BODY:V(this,e);break;case m.IN_TABLE:$(this,e);break;case
m.IN_TABLE_TEXT:ee(this,e);break;case m.IN_CAPTION:!function(e,t){const
n=t.tagID;te.has(n)?
e.openElements.hasInTableScope(h.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEn
dTags(),e.openElements.popUntilTagNamePopped(h.TAG_ID.CAPTION),e.activeFormattingEl
ements.clearToLastMarker(),e.insertionMode=m.IN_TABLE,$(e,t)):V(e,t)}
(this,e);break;case m.IN_COLUMN_GROUP:ne(this,e);break;case
m.IN_TABLE_BODY:ie(this,e);break;case m.IN_ROW:se(this,e);break;case m.IN_CELL:!
function(e,t){const n=t.tagID;te.has(n)?
(e.openElements.hasInTableScope(h.TAG_ID.TD)||
e.openElements.hasInTableScope(h.TAG_ID.TH))&&(e._closeTableCell(),se(e,t)):V(e,t)}
(this,e);break;case m.IN_SELECT:ce(this,e);break;case m.IN_SELECT_IN_TABLE:!
function(e,t){const n=t.tagID;n===h.TAG_ID.CAPTION||n===h.TAG_ID.TABLE||
n===h.TAG_ID.TBODY||n===h.TAG_ID.TFOOT||n===h.TAG_ID.THEAD||n===h.TAG_ID.TR||
n===h.TAG_ID.TD||n===h.TAG_ID.TH?
(e.openElements.popUntilTagNamePopped(h.TAG_ID.SELECT),e._resetInsertionMode(),e._p
rocessStartTag(t)):ce(e,t)}(this,e);break;case m.IN_TEMPLATE:!function(e,t)
{switch(t.tagID){case h.TAG_ID.BASE:case h.TAG_ID.BASEFONT:case
h.TAG_ID.BGSOUND:case h.TAG_ID.LINK:case h.TAG_ID.META:case h.TAG_ID.NOFRAMES:case
h.TAG_ID.SCRIPT:case h.TAG_ID.STYLE:case h.TAG_ID.TEMPLATE:case
h.TAG_ID.TITLE:k(e,t);break;case h.TAG_ID.CAPTION:case h.TAG_ID.COLGROUP:case
h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case
h.TAG_ID.THEAD:e.tmplInsertionModeStack[0]=m.IN_TABLE,e.insertionMode=m.IN_TABLE,$
(e,t);break;case
h.TAG_ID.COL:e.tmplInsertionModeStack[0]=m.IN_COLUMN_GROUP,e.insertionMode=m.IN_COL
UMN_GROUP,ne(e,t);break;case
h.TAG_ID.TR:e.tmplInsertionModeStack[0]=m.IN_TABLE_BODY,e.insertionMode=m.IN_TABLE_
BODY,ie(e,t);break;case h.TAG_ID.TD:case
h.TAG_ID.TH:e.tmplInsertionModeStack[0]=m.IN_ROW,e.insertionMode=m.IN_ROW,se(e,t);b
reak;default:e.tmplInsertionModeStack[0]=m.IN_BODY,e.insertionMode=m.IN_BODY,V(e,t)
}}(this,e);break;case m.AFTER_BODY:!function(e,t){t.tagID===h.TAG_ID.HTML?
V(e,t):de(e,t)}(this,e);break;case m.IN_FRAMESET:!function(e,t){switch(t.tagID)
{case h.TAG_ID.HTML:V(e,t);break;case
h.TAG_ID.FRAMESET:e._insertElement(t,h.NS.HTML);break;case
h.TAG_ID.FRAME:e._appendElement(t,h.NS.HTML),t.ackSelfClosing=!0;break;case
h.TAG_ID.NOFRAMES:k(e,t)}}(this,e);break;case m.AFTER_FRAMESET:!function(e,t)
{switch(t.tagID){case h.TAG_ID.HTML:V(e,t);break;case h.TAG_ID.NOFRAMES:k(e,t)}}
(this,e);break;case m.AFTER_AFTER_BODY:!function(e,t){t.tagID===h.TAG_ID.HTML?
V(e,t):fe(e,t)}(this,e);break;case m.AFTER_AFTER_FRAMESET:!function(e,t)
{switch(t.tagID){case h.TAG_ID.HTML:V(e,t);break;case h.TAG_ID.NOFRAMES:k(e,t)}}
(this,e)}}onEndTag(e){this.skipNextNewLine=!
1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===h.TAG_ID.P||
t.tagID===h.TAG_ID.BR)return pe(e),void e._endTagOutsideForeignContent(t);for(let
n=e.openElements.stackTop;n>0;n--){const
r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===h.NS.HTML)
{e._endTagOutsideForeignContent(t);break}const
i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName)
{t.tagName=i,e.openElements.shortenToLength(n);break}}}
(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e)
{switch(this.insertionMode){case m.INITIAL:I(this,e);break;case m.BEFORE_HTML:!
function(e,t){const n=t.tagID;n!==h.TAG_ID.HTML&&n!==h.TAG_ID.HEAD&&n!
==h.TAG_ID.BODY&&n!==h.TAG_ID.BR||P(e,t)}(this,e);break;case m.BEFORE_HEAD:!
function(e,t){const n=t.tagID;n===h.TAG_ID.HEAD||n===h.TAG_ID.BODY||
n===h.TAG_ID.HTML||n===h.TAG_ID.BR?
D(e,t):e._err(t,u.ERR.endTagWithoutMatchingOpenElement)}(this,e);break;case
m.IN_HEAD:!function(e,t){switch(t.tagID){case
h.TAG_ID.HEAD:e.openElements.pop(),e.insertionMode=m.AFTER_HEAD;break;case
h.TAG_ID.BODY:case h.TAG_ID.BR:case h.TAG_ID.HTML:M(e,t);break;case
h.TAG_ID.TEMPLATE:R(e,t);break;default:e._err(t,u.ERR.endTagWithoutMatchingOpenElem
ent)}}(this,e);break;case m.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case
h.TAG_ID.NOSCRIPT:e.openElements.pop(),e.insertionMode=m.IN_HEAD;break;case
h.TAG_ID.BR:N(e,t);break;default:e._err(t,u.ERR.endTagWithoutMatchingOpenElement)}}
(this,e);break;case m.AFTER_HEAD:!function(e,t){switch(t.tagID){case
h.TAG_ID.BODY:case h.TAG_ID.HTML:case h.TAG_ID.BR:L(e,t);break;case
h.TAG_ID.TEMPLATE:R(e,t);break;default:e._err(t,u.ERR.endTagWithoutMatchingOpenElem
ent)}}(this,e);break;case m.IN_BODY:q(this,e);break;case m.TEXT:!function(e,t){var
n;t.tagID===h.TAG_ID.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||
n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalIn
sertionMode}(this,e);break;case m.IN_TABLE:Q(this,e);break;case
m.IN_TABLE_TEXT:ee(this,e);break;case m.IN_CAPTION:!function(e,t){const
n=t.tagID;switch(n){case h.TAG_ID.CAPTION:case
h.TAG_ID.TABLE:e.openElements.hasInTableScope(h.TAG_ID.CAPTION)&&(e.openElements.ge
nerateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.TAG_ID.CAPTION),e.act
iveFormattingElements.clearToLastMarker(),e.insertionMode=m.IN_TABLE,n===h.TAG_ID.T
ABLE&&Q(e,t));break;case h.TAG_ID.BODY:case h.TAG_ID.COL:case
h.TAG_ID.COLGROUP:case h.TAG_ID.HTML:case h.TAG_ID.TBODY:case h.TAG_ID.TD:case
h.TAG_ID.TFOOT:case h.TAG_ID.TH:case h.TAG_ID.THEAD:case
h.TAG_ID.TR:break;default:q(e,t)}}(this,e);break;case m.IN_COLUMN_GROUP:!
function(e,t){switch(t.tagID){case
h.TAG_ID.COLGROUP:e.openElements.currentTagId===h.TAG_ID.COLGROUP&&(e.openElements.
pop(),e.insertionMode=m.IN_TABLE);break;case h.TAG_ID.TEMPLATE:R(e,t);break;case
h.TAG_ID.COL:break;default:re(e,t)}}(this,e);break;case
m.IN_TABLE_BODY:oe(this,e);break;case m.IN_ROW:ae(this,e);break;case m.IN_CELL:!
function(e,t){const n=t.tagID;switch(n){case h.TAG_ID.TD:case
h.TAG_ID.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTa
gs(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLast
Marker(),e.insertionMode=m.IN_ROW);break;case h.TAG_ID.TABLE:case
h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case h.TAG_ID.THEAD:case
h.TAG_ID.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),ae(e,t));break;
case h.TAG_ID.BODY:case h.TAG_ID.CAPTION:case h.TAG_ID.COL:case
h.TAG_ID.COLGROUP:case h.TAG_ID.HTML:break;default:q(e,t)}}(this,e);break;case
m.IN_SELECT:ue(this,e);break;case m.IN_SELECT_IN_TABLE:!function(e,t){const
n=t.tagID;n===h.TAG_ID.CAPTION||n===h.TAG_ID.TABLE||n===h.TAG_ID.TBODY||
n===h.TAG_ID.TFOOT||n===h.TAG_ID.THEAD||n===h.TAG_ID.TR||n===h.TAG_ID.TD||
n===h.TAG_ID.TH?
e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.TAG_ID.S
ELECT),e._resetInsertionMode(),e.onEndTag(t)):ue(e,t)}(this,e);break;case
m.IN_TEMPLATE:!function(e,t){t.tagID===h.TAG_ID.TEMPLATE&&R(e,t)}
(this,e);break;case m.AFTER_BODY:he(this,e);break;case m.IN_FRAMESET:!function(e,t)
{t.tagID!==h.TAG_ID.FRAMESET||e.openElements.isRootHtmlElementCurrent()||
(e.openElements.pop(),e.fragmentContext||
e.openElements.currentTagId===h.TAG_ID.FRAMESET||
(e.insertionMode=m.AFTER_FRAMESET))}(this,e);break;case m.AFTER_FRAMESET:!
function(e,t){t.tagID===h.TAG_ID.HTML&&(e.insertionMode=m.AFTER_AFTER_FRAMESET)}
(this,e);break;case m.AFTER_AFTER_BODY:fe(this,e)}}onEof(e)
{switch(this.insertionMode){case m.INITIAL:I(this,e);break;case
m.BEFORE_HTML:P(this,e);break;case m.BEFORE_HEAD:D(this,e);break;case
m.IN_HEAD:M(this,e);break;case m.IN_HEAD_NO_SCRIPT:N(this,e);break;case
m.AFTER_HEAD:L(this,e);break;case m.IN_BODY:case m.IN_TABLE:case m.IN_CAPTION:case
m.IN_COLUMN_GROUP:case m.IN_TABLE_BODY:case m.IN_ROW:case m.IN_CELL:case
m.IN_SELECT:case m.IN_SELECT_IN_TABLE:K(this,e);break;case m.TEXT:!function(e,t)
{e._err(t,u.ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertio
nMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case
m.IN_TABLE_TEXT:ee(this,e);break;case m.IN_TEMPLATE:le(this,e);break;case
m.AFTER_BODY:case m.IN_FRAMESET:case m.AFTER_FRAMESET:case m.AFTER_AFTER_BODY:case
m.AFTER_AFTER_FRAMESET:x(this,e)}}onWhitespaceCharacter(e)
{if(this.skipNextNewLine&&(this.skipNextNewLine=!
1,e.chars.charCodeAt(0)===l.CODE_POINTS.LINE_FEED))
{if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeign
Node)this._insertCharacters(e);else switch(this.insertionMode){case m.IN_HEAD:case
m.IN_HEAD_NO_SCRIPT:case m.AFTER_HEAD:case m.TEXT:case m.IN_COLUMN_GROUP:case
m.IN_SELECT:case m.IN_SELECT_IN_TABLE:case m.IN_FRAMESET:case
m.AFTER_FRAMESET:this._insertCharacters(e);break;case m.IN_BODY:case
m.IN_CAPTION:case m.IN_CELL:case m.IN_TEMPLATE:case m.AFTER_BODY:case
m.AFTER_AFTER_BODY:case m.AFTER_AFTER_FRAMESET:j(this,e);break;case m.IN_TABLE:case
m.IN_TABLE_BODY:case m.IN_ROW:Y(this,e);break;case
m.IN_TABLE_TEXT:Z(this,e)}}};const te=new
Set([h.TAG_ID.CAPTION,h.TAG_ID.COL,h.TAG_ID.COLGROUP,h.TAG_ID.TBODY,h.TAG_ID.TD,h.T
AG_ID.TFOOT,h.TAG_ID.TH,h.TAG_ID.THEAD,h.TAG_ID.TR]);function ne(e,t)
{switch(t.tagID){case h.TAG_ID.HTML:V(e,t);break;case
h.TAG_ID.COL:e._appendElement(t,h.NS.HTML),t.ackSelfClosing=!0;break;case
h.TAG_ID.TEMPLATE:k(e,t);break;default:re(e,t)}}function re(e,t)
{e.openElements.currentTagId===h.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertion
Mode=m.IN_TABLE,e._processToken(t))}function ie(e,t){switch(t.tagID){case
h.TAG_ID.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,h.NS.HT
ML),e.insertionMode=m.IN_ROW;break;case h.TAG_ID.TH:case
h.TAG_ID.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(h.TAG
_NAMES.TR,h.TAG_ID.TR),e.insertionMode=m.IN_ROW,se(e,t);break;case
h.TAG_ID.CAPTION:case h.TAG_ID.COL:case h.TAG_ID.COLGROUP:case h.TAG_ID.TBODY:case
h.TAG_ID.TFOOT:case
h.TAG_ID.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.cl
earBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE,$
(e,t));break;default:$(e,t)}}function oe(e,t){const n=t.tagID;switch(t.tagID){case
h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case
h.TAG_ID.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableB
odyContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE);break;case
h.TAG_ID.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.cl
earBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE,Q(e,t))
;break;case h.TAG_ID.BODY:case h.TAG_ID.CAPTION:case h.TAG_ID.COL:case
h.TAG_ID.COLGROUP:case h.TAG_ID.HTML:case h.TAG_ID.TD:case h.TAG_ID.TH:case
h.TAG_ID.TR:break;default:Q(e,t)}}function se(e,t){switch(t.tagID){case
h.TAG_ID.TH:case
h.TAG_ID.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,h.NS.HTM
L),e.insertionMode=m.IN_CELL,e.activeFormattingElements.insertMarker();break;case
h.TAG_ID.CAPTION:case h.TAG_ID.COL:case h.TAG_ID.COLGROUP:case h.TAG_ID.TBODY:case
h.TAG_ID.TFOOT:case h.TAG_ID.THEAD:case
h.TAG_ID.TR:e.openElements.hasInTableScope(h.TAG_ID.TR)&&(e.openElements.clearBackT
oTableRowContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE_BODY,ie(e,t));br
eak;default:$(e,t)}}function ae(e,t){switch(t.tagID){case
h.TAG_ID.TR:e.openElements.hasInTableScope(h.TAG_ID.TR)&&(e.openElements.clearBackT
oTableRowContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE_BODY);break;case
h.TAG_ID.TABLE:e.openElements.hasInTableScope(h.TAG_ID.TR)&&(e.openElements.clearBa
ckToTableRowContext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE_BODY,oe(e,t))
;break;case h.TAG_ID.TBODY:case h.TAG_ID.TFOOT:case h.TAG_ID.THEAD:
(e.openElements.hasInTableScope(t.tagID)||
e.openElements.hasInTableScope(h.TAG_ID.TR))&&(e.openElements.clearBackToTableRowCo
ntext(),e.openElements.pop(),e.insertionMode=m.IN_TABLE_BODY,oe(e,t));break;case
h.TAG_ID.BODY:case h.TAG_ID.CAPTION:case h.TAG_ID.COL:case h.TAG_ID.COLGROUP:case
h.TAG_ID.HTML:case h.TAG_ID.TD:case h.TAG_ID.TH:break;default:Q(e,t)}}function
ce(e,t){switch(t.tagID){case h.TAG_ID.HTML:V(e,t);break;case
h.TAG_ID.OPTION:e.openElements.currentTagId===h.TAG_ID.OPTION&&e.openElements.pop()
,e._insertElement(t,h.NS.HTML);break;case
h.TAG_ID.OPTGROUP:e.openElements.currentTagId===h.TAG_ID.OPTION&&e.openElements.pop
(),e.openElements.currentTagId===h.TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertE
lement(t,h.NS.HTML);break;case h.TAG_ID.INPUT:case h.TAG_ID.KEYGEN:case
h.TAG_ID.TEXTAREA:case
h.TAG_ID.SELECT:e.openElements.hasInSelectScope(h.TAG_ID.SELECT)&&(e.openElements.p
opUntilTagNamePopped(h.TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!
==h.TAG_ID.SELECT&&e._processStartTag(t));break;case h.TAG_ID.SCRIPT:case
h.TAG_ID.TEMPLATE:k(e,t)}}function ue(e,t){switch(t.tagID){case
h.TAG_ID.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===h.TAG_ID
.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-
1]===h.TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.TAG_ID
.OPTGROUP&&e.openElements.pop();break;case
h.TAG_ID.OPTION:e.openElements.currentTagId===h.TAG_ID.OPTION&&e.openElements.pop()
;break;case
h.TAG_ID.SELECT:e.openElements.hasInSelectScope(h.TAG_ID.SELECT)&&(e.openElements.p
opUntilTagNamePopped(h.TAG_ID.SELECT),e._resetInsertionMode());break;case
h.TAG_ID.TEMPLATE:R(e,t)}}function le(e,t){e.openElements.tmplCount>0?
(e.openElements.popUntilTagNamePopped(h.TAG_ID.TEMPLATE),e.activeFormattingElements
.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onE
of(t)):x(e,t)}function he(e,t){var n;if(t.tagID===h.TAG_ID.HTML)
{if(e.fragmentContext||
(e.insertionMode=m.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElemen
ts.tagIDs[0]===h.TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);const
r=e.openElements.items[1];r&&!
(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void
0:n.endTag)&&e._setEndLocation(r,t)}}else de(e,t)}function de(e,t)
{e.insertionMode=m.IN_BODY,F(e,t)}function fe(e,t)
{e.insertionMode=m.IN_BODY,F(e,t)}function pe(e)
{for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==h.NS.HTML&&!
e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openEl
ements.pop()}},86751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.OpenElementStack=void 0;const
r=n(63668),i=new
Set([r.TAG_ID.DD,r.TAG_ID.DT,r.TAG_ID.LI,r.TAG_ID.OPTGROUP,r.TAG_ID.OPTION,r.TAG_ID
.P,r.TAG_ID.RB,r.TAG_ID.RP,r.TAG_ID.RT,r.TAG_ID.RTC]),o=new
Set([...i,r.TAG_ID.CAPTION,r.TAG_ID.COLGROUP,r.TAG_ID.TBODY,r.TAG_ID.TD,r.TAG_ID.TF
OOT,r.TAG_ID.TH,r.TAG_ID.THEAD,r.TAG_ID.TR]),s=new
Map([[r.TAG_ID.APPLET,r.NS.HTML],[r.TAG_ID.CAPTION,r.NS.HTML],
[r.TAG_ID.HTML,r.NS.HTML],[r.TAG_ID.MARQUEE,r.NS.HTML],[r.TAG_ID.OBJECT,r.NS.HTML],
[r.TAG_ID.TABLE,r.NS.HTML],[r.TAG_ID.TD,r.NS.HTML],[r.TAG_ID.TEMPLATE,r.NS.HTML],
[r.TAG_ID.TH,r.NS.HTML],[r.TAG_ID.ANNOTATION_XML,r.NS.MATHML],
[r.TAG_ID.MI,r.NS.MATHML],[r.TAG_ID.MN,r.NS.MATHML],[r.TAG_ID.MO,r.NS.MATHML],
[r.TAG_ID.MS,r.NS.MATHML],[r.TAG_ID.MTEXT,r.NS.MATHML],[r.TAG_ID.DESC,r.NS.SVG],
[r.TAG_ID.FOREIGN_OBJECT,r.NS.SVG],
[r.TAG_ID.TITLE,r.NS.SVG]]),a=[r.TAG_ID.H1,r.TAG_ID.H2,r.TAG_ID.H3,r.TAG_ID.H4,r.TA
G_ID.H5,r.TAG_ID.H6],c=[r.TAG_ID.TR,r.TAG_ID.TEMPLATE,r.TAG_ID.HTML],u=[r.TAG_ID.TB
ODY,r.TAG_ID.TFOOT,r.TAG_ID.THEAD,r.TAG_ID.TEMPLATE,r.TAG_ID.HTML],l=[r.TAG_ID.TABL
E,r.TAG_ID.TEMPLATE,r.TAG_ID.HTML],h=[r.TAG_ID.TD,r.TAG_ID.TH];t.OpenElementStack=c
lass{get currentTmplContentOrNode(){return this._isInTemplate()?
this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n)
{this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-
1,this.tmplCount=0,this.currentTagId=r.TAG_ID.UNKNOWN,this.current=e}_indexOf(e)
{return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return
this.currentTagId===r.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.curren
t)===r.NS.HTML}_updateCurrentElement()
{this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop
]}push(e,t){this.stackTop+
+,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.curr
entTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!
0)}pop(){const
e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackT
op--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const
n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(
e,t,n){const r=this._indexOf(e)
+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop+
+,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.curr
ent,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let
t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-
1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!
==r.NS.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e)
{for(;this.stackTop>=e;){const
t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-
=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stac
kTop<e)}}popUntilElementPopped(e){const
t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const
n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?
0:n)}popUntilNumberedHeaderPopped()
{this.popUntilPopped(a,r.NS.HTML)}popUntilTableCellPopped()
{this.popUntilPopped(h,r.NS.HTML)}popAllUpToHtmlElement()
{this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let
n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespa
ceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const
n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext()
{this.clearBackTo(l,r.NS.HTML)}clearBackToTableBodyContext()
{this.clearBackTo(u,r.NS.HTML)}clearBackToTableRowContext()
{this.clearBackTo(c,r.NS.HTML)}remove(e){const
t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():
(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrent
Element(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return
this.stackTop>=1&&this.tagIDs[1]===r.TAG_ID.BODY?this.items[1]:null}contains(e)
{return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return
t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return
0===this.stackTop&&this.tagIDs[0]===r.TAG_ID.HTML}hasInScope(e){for(let
t=this.stackTop;t>=0;t--){const
n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===r.
NS.HTML)return!0;if(s.get(n)===i)return!1}return!0}hasNumberedHeaderInScope()
{for(let e=this.stackTop;e>=0;e--){const
t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if((0,r.isNumber
edHeader)(t)&&n===r.NS.HTML)return!0;if(s.get(t)===n)return!1}return!
0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const
n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===r.
NS.HTML)return!0;if((n===r.TAG_ID.UL||n===r.TAG_ID.OL)&&i===r.NS.HTML||
s.get(n)===i)return!1}return!0}hasInButtonScope(e){for(let
t=this.stackTop;t>=0;t--){const
n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===r.
NS.HTML)return!0;if(n===r.TAG_ID.BUTTON&&i===r.NS.HTML||s.get(n)===i)return!
1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const
n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===r.NS.HTML)
{if(n===e)return!0;if(n===r.TAG_ID.TABLE||n===r.TAG_ID.TEMPLATE||
n===r.TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let
e=this.stackTop;e>=0;e--){const
t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===r.NS.HTML)
{if(t===r.TAG_ID.TBODY||t===r.TAG_ID.THEAD||t===r.TAG_ID.TFOOT)return!
0;if(t===r.TAG_ID.TABLE||t===r.TAG_ID.HTML)return!1}}return!0}hasInSelectScope(e)
{for(let t=this.stackTop;t>=0;t--){const
n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===r.NS.HTML)
{if(n===e)return!0;if(n!==r.TAG_ID.OPTION&&n!==r.TAG_ID.OPTGROUP)return!1}}return!
0}generateImpliedEndTags()
{for(;i.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly()
{for(;o.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e)
{for(;this.currentTagId!==e&&o.has(this.currentTagId);)this.pop()}}},40834:
(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.serializeOuter=t.serialize=void 0;const
r=n(63668),i=n(29970),o=n(20745),s=new
Set([r.TAG_NAMES.AREA,r.TAG_NAMES.BASE,r.TAG_NAMES.BASEFONT,r.TAG_NAMES.BGSOUND,r.T
AG_NAMES.BR,r.TAG_NAMES.COL,r.TAG_NAMES.EMBED,r.TAG_NAMES.FRAME,r.TAG_NAMES.HR,r.TA
G_NAMES.IMG,r.TAG_NAMES.INPUT,r.TAG_NAMES.KEYGEN,r.TAG_NAMES.LINK,r.TAG_NAMES.META,
r.TAG_NAMES.PARAM,r.TAG_NAMES.SOURCE,r.TAG_NAMES.TRACK,r.TAG_NAMES.WBR]);function
a(e,t){return
t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===r.NS.HTML&&s.has
(t.treeAdapter.getTagName(e))}const
c={treeAdapter:o.defaultTreeAdapter,scriptingEnabled:!0};function u(e,t){let
n="";const
i=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===r.TAG_NAMES.TEMPLAT
E&&t.treeAdapter.getNamespaceURI(e)===r.NS.HTML?
t.treeAdapter.getTemplateContent(e):e,o=t.treeAdapter.getChildNodes(i);if(o)for(con
st e of o)n+=l(e,t);return n}function l(e,t){return t.treeAdapter.isElementNode(e)?
function(e,t){const n=t.treeAdapter.getTagName(e);return`<${n}${function(e,
{treeAdapter:t}){let n="";for(const o of t.getAttrList(e)){if(n+="
",o.namespace)switch(o.namespace){case r.NS.XML:n+=`xml:${o.name}`;break;case
r.NS.XMLNS:"xmlns"!==o.name&&(n+="xmlns:"),n+=o.name;break;case
r.NS.XLINK:n+=`xlink:${o.name}`;break;default:n+=`${o.prefix}:${o.name}`}else
n+=o.name;n+=`="${(0,i.escapeAttribute)(o.value)}"`}return n}(e,t)}>${a(e,t)?"":`$
{u(e,t)}</${n}>`}`}(e,t):t.treeAdapter.isTextNode(e)?function(e,t)
{const{treeAdapter:n}=t,o=n.getTextNodeContent(e),s=n.getParentNode(e),a=s&&n.isEle
mentNode(s)&&n.getTagName(s);return
a&&n.getNamespaceURI(s)===r.NS.HTML&&(0,r.hasUnescapedText)(a,t.scriptingEnabled)?
o:(0,i.escapeText)(o)}(e,t):t.treeAdapter.isCommentNode(e)?function(e,
{treeAdapter:t}){return`\x3c!--${t.getCommentNodeContent(e)}--\x3e`}
(e,t):t.treeAdapter.isDocumentTypeNode(e)?function(e,{treeAdapter:t}){return`<!
DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}(e,t):""}t.serialize=function(e,t){const
n=Object.assign(Object.assign({},c),t);return
a(e,n)?"":u(e,n)},t.serializeOuter=function(e,t){return
l(e,Object.assign(Object.assign({},c),t))}},53122:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!
0}),t.Tokenizer=t.TokenizerMode=void 0;const
r=n(55381),i=n(61506),o=n(47478),s=n(73094),a=n(36068),c=n(63668),u=new
Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],
[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],
[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],
[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var l;function h(e)
{return e>=i.CODE_POINTS.DIGIT_0&&e<=i.CODE_POINTS.DIGIT_9}function d(e){return
e>=i.CODE_POINTS.LATIN_CAPITAL_A&&e<=i.CODE_POINTS.LATIN_CAPITAL_Z}function f(e)
{return function(e){return
e>=i.CODE_POINTS.LATIN_SMALL_A&&e<=i.CODE_POINTS.LATIN_SMALL_Z}(e)||d(e)}function
p(e){return f(e)||h(e)}function g(e){return
e>=i.CODE_POINTS.LATIN_CAPITAL_A&&e<=i.CODE_POINTS.LATIN_CAPITAL_F}function m(e)
{return e>=i.CODE_POINTS.LATIN_SMALL_A&&e<=i.CODE_POINTS.LATIN_SMALL_F}function
v(e){return e+32}function b(e){return e===i.CODE_POINTS.SPACE||
e===i.CODE_POINTS.LINE_FEED||e===i.CODE_POINTS.TABULATION||
e===i.CODE_POINTS.FORM_FEED}function y(e){return b(e)||e===i.CODE_POINTS.SOLIDUS||
e===i.CODE_POINTS.GREATER_THAN_SIGN}!function(e)
{e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA
=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_T
AG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="
RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_
END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS
_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG
_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LE
SS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIP
T_DATA_END_TAG_NAME=16]="S
CRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START
",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_
DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DAT
A_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DAS
H",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",
e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCR
IPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DAT
A_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_
ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="S
CRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIP
T_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=
"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="
SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME
",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRI
BUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VA
LUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QU
OTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUT
E_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTE
D",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="B
OGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT
_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMM
ENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMME
NT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN
_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_D
ASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMM
ENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_E
ND_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME
",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAM
E",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_D
OCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_
IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_
PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.A
FTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DO
CTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFI
ERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE
_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTE
M_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYP
E_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e
.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DO
CTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_B
RACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[
e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="
NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NU
MERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACT
ER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHAR
ACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFEREN
CE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMER
IC_CHARACTER_REFERENCE_END"}(l||
(l={})),t.TokenizerMode={DATA:l.DATA,RCDATA:l.RCDATA,RAWTEXT:l.RAWTEXT,SCRIPT_DATA:
l.SCRIPT_DATA,PLAINTEXT:l.PLAINTEXT,CDATA_SECTION:l.CDATA_SECTION},t.Tokenizer=clas
s{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!
1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!
1,this.state=l.DATA,this.returnState=l.DATA,this.charRefCode=-
1,this.consumedAfterSnapshot=-
1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",
value:""},this.preprocessor=new
r.Preprocessor(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var
t,n;null===(n=(t=this.handler).onParseError)||void 0===n||
n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return
this.options.sourceCodeLocationInfo?
{startLine:this.preprocessor.line,startCol:this.preprocessor.col-
e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-
1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!
this.paused;){this.consumedAfterSnapshot=0;const
e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!
1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was
already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||
null==e||e())}write(e,t,n){this.active=!
0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||
n()}insertHtmlAtCurrentPos(e){this.active=!
0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHiberna
tion(){return!!
this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.
active=!1,!0)}_consume(){return this.consumedAfterSnapshot+
+,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-
=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t)
{this.state=e,this._callState(t)}_advanceBy(e)
{this.consumedAfterSnapshot+=e;for(let t=0;t<e;t+
+)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!
this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!
0)}_createStartTagToken()
{this.currentToken={type:o.TokenType.START_TAG,tagName:"",tagID:c.TAG_ID.UNKNOWN,se
lfClosing:!1,ackSelfClosing:!1,attrs:
[],location:this.getCurrentLocation(1)}}_createEndTagToken()
{this.currentToken={type:o.TokenType.END_TAG,tagName:"",tagID:c.TAG_ID.UNKNOWN,self
Closing:!1,ackSelfClosing:!1,attrs:
[],location:this.getCurrentLocation(2)}}_createCommentToken(e)
{this.currentToken={type:o.TokenType.COMMENT,data:"",location:this.getCurrentLocati
on(e)}}_createDoctypeToken(e)
{this.currentToken={type:o.TokenType.DOCTYPE,name:e,forceQuirks:!
1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(
e,t)
{this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createA
ttr(e)
{this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)
}_leaveAttrName(){var e,t;const n=this.currentToken;null===(0,o.getTokenAttr)
(n,this.currentAttr.name)?
(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!
==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))
[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(a.E
RR.duplicateAttribute)}_leaveAttrValue()
{this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.cu
rrentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.prep
rocessor.offset)}prepareToken(e)
{this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.
location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e
.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurren
tLocation(-1)}emitCurrentTagToken(){const
e=this.currentToken;this.prepareToken(e),e.tagID=(0,c.getTagID)
(e.tagName),e.type===o.TokenType.START_TAG?
(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):
(e.attrs.length>0&&this._err(a.ERR.endTagWithAttributes),e.selfClosing&&this._err(a
.ERR.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropPar
sedChunk()}emitCurrentComment(e)
{this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()
}emitCurrentDoctype(e)
{this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()
}_emitCurrentCharacterToken(e){if(this.currentCharacterToken)
{switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.locatio
n.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.cu
rrentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.ty
pe){case
o.TokenType.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;ca
se
o.TokenType.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken)
;break;case
o.TokenType.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCha
racterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const
e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOff
set=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:o.To
kenType.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t)
{if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return
void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocat
ion(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.drop
ParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=b(e)?
o.TokenType.WHITESPACE_CHARACTER:e===i.CODE_POINTS.NULL?
o.TokenType.NULL_CHARACTER:o.TokenType.CHARACTER;this._appendCharToCurrentCharacter
Token(t,String.fromCodePoint(e))}_emitChars(e)
{this._appendCharToCurrentCharacterToken(o.TokenType.CHARACTER,e)}_matchNamedCharac
terReference(e){let t=null,n=0,r=!1;for(let
a=0,c=s.htmlDecodeTree[0];a>=0&&(a=(0,s.determineBranch)
(s.htmlDecodeTree,c,a+1,e),!(a<0));e=this._consume())
{n+=1,c=s.htmlDecodeTree[a];const u=c&s.BinTrieFlags.VALUE_LENGTH;if(u){const
c=(u>>14)-1;if(e!
==i.CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((o=this.prepro
cessor.peek
(1))===i.CODE_POINTS.EQUALS_SIGN||p(o))?(t=[i.CODE_POINTS.AMPERSAND],a+=c):
(t=0===c?[s.htmlDecodeTree[a]&~s.BinTrieFlags.VALUE_LENGTH]:1===c?
[s.htmlDecodeTree[++a]]:[s.htmlDecodeTree[++a],s.htmlDecodeTree[++a]],n=0,r=e!
==i.CODE_POINTS.SEMICOLON),0===c){this._consume();break}}}var o;return
this._unconsume(n),r&&!
this.preprocessor.endOfChunkHit&&this._err(a.ERR.missingSemicolonAfterCharacterRefe
rence),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return
this.returnState===l.ATTRIBUTE_VALUE_DOUBLE_QUOTED||
this.returnState===l.ATTRIBUTE_VALUE_SINGLE_QUOTED||
this.returnState===l.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterRef
erence(e){this._isCharacterReferenceInAttribute()?
this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e
){switch(this.state){case l.DATA:this._stateData(e);break;case
l.RCDATA:this._stateRcdata(e);break;case l.RAWTEXT:this._stateRawtext(e);break;case
l.SCRIPT_DATA:this._stateScriptData(e);break;case
l.PLAINTEXT:this._statePlaintext(e);break;case
l.TAG_OPEN:this._stateTagOpen(e);break;case
l.END_TAG_OPEN:this._stateEndTagOpen(e);break;case
l.TAG_NAME:this._stateTagName(e);break;case
l.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case
l.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case
l.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case
l.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case
l.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case
l.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case
l.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case
l.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case
l.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case
l.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case
l.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case
l.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case
l.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case
l.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case
l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);br
eak;case
l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;
case
l.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;
case
l.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;c
ase l.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case
l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;c
ase
l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e
);break;case
l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessT
hanSign(e);break;case
l.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case
l.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case
l.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case
l.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case
l.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case
l.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case
l.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case
l.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case
l.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case
l.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case
l.BOGUS_COMMENT:this._stateBogusComment(e);break;case
l.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case
l.COMMENT_START:this._stateCommentStart(e);break;case
l.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case
l.COMMENT:this._stateComment(e);break;case
l.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case
l.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case
l.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;
case
l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(
e);break;case l.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case
l.COMMENT_END:this._stateCommentEnd(e);break;case
l.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case
l.DOCTYPE:this._stateDoctype(e);break;case
l.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case
l.DOCTYPE_NAME:this._stateDoctypeName(e);break;case
l.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case
l.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case
l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);brea
k;case
l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQ
uoted(e);break;case
l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQ
uoted(e);break;case
l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;
case
l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndS
ystemIdentifiers(e);break;case
l.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case
l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);brea
k;case
l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQ
uoted(e);break;case
l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQ
uoted(e);break;case
l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;
case l.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case
l.CDATA_SECTION:this._stateCdataSection(e);break;case
l.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case
l.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case
l.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case
l.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case
l.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case
l.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case
l.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceSta
rt(e);break;case
l.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break
;case
l.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case
l.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;
default:throw new Error("Unknown state")}}_stateData(e){switch(e){case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.TAG_OPEN;break;case
i.CODE_POINTS.AMPERSAND:this.returnState=l.DATA,this.state=l.CHARACTER_REFERENCE;br
eak;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitCodePoint(e);
break;case
i.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_state
Rcdata(e){switch(e){case
i.CODE_POINTS.AMPERSAND:this.returnState=l.RCDATA,this.state=l.CHARACTER_REFERENCE;
break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.RCDATA_LESS_THAN_SIGN;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_state
Rawtext(e){switch(e){case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.RAWTEXT_LESS_THAN_SIGN;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_state
ScriptData(e){switch(e){case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_LESS_THAN_SIGN;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_state
Plaintext(e){switch(e){case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_state
TagOpen(e)
{if(f(e))this._createStartTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);el
se switch(e){case
i.CODE_POINTS.EXCLAMATION_MARK:this.state=l.MARKUP_DECLARATION_OPEN;break;case
i.CODE_POINTS.SOLIDUS:this.state=l.END_TAG_OPEN;break;case
i.CODE_POINTS.QUESTION_MARK:this._err(a.ERR.unexpectedQuestionMarkInsteadOfTagName)
,this._createCommentToken(1),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e);
break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofBeforeTagName),this._emitChars("<"),this._emit
EOFToken();break;default:this._err(a.ERR.invalidFirstCharacterOfTagName),this._emit
Chars("<"),this.state=l.DATA,this._stateData(e)}}_stateEndTagOpen(e)
{if(f(e))this._createEndTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else
switch(e){case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingEndTagName),this.state=l.DAT
A;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofBeforeTagName),this._emitChars("</"),this._emi
tEOFToken();break;default:this._err(a.ERR.invalidFirstCharacterOfTagName),this._cre
ateCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTag
Name(e){const t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.BEFORE_ATTRIBUTE_NAME;break;case
i.CODE_POINTS.SOLIDUS:this.state=l.SELF_CLOSING_START_TAG;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentTagToken();break;
case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.tagName+=i.REPLACEMEN
T_CHARACTER;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:t.ta
gName+=String.fromCodePoint(d(e)?v(e):e)}}_stateRcdataLessThanSign(e)
{e===i.CODE_POINTS.SOLIDUS?this.state=l.RCDATA_END_TAG_OPEN:
(this._emitChars("<"),this.state
=l.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){f(e)?
(this.state=l.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):
(this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e))}handleSpecialEndTa
g(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!
this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagNam
e=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case
i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:return
this._advanceBy(this.lastStartTagName.length),this.state=l.BEFORE_ATTRIBUTE_NAME,!
1;case i.CODE_POINTS.SOLIDUS:return
this._advanceBy(this.lastStartTagName.length),this.state=l.SELF_CLOSING_START_TAG,!
1;case i.CODE_POINTS.GREATER_THAN_SIGN:return
this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state
=l.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e)
{this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l.RCDATA,this._stat
eRcdata(e))}_stateRawtextLessThanSign(e){e===i.CODE_POINTS.SOLIDUS?
this.state=l.RAWTEXT_END_TAG_OPEN:
(this._emitChars("<"),this.state=l.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndT
agOpen(e){f(e)?(this.state=l.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):
(this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e))}_stateRawtextEnd
TagName(e)
{this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l.RAWTEXT,this._sta
teRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case
i.CODE_POINTS.SOLIDUS:this.state=l.SCRIPT_DATA_END_TAG_OPEN;break;case
i.CODE_POINTS.EXCLAMATION_MARK:this.state=l.SCRIPT_DATA_ESCAPE_START,this._emitChar
s("<!");break;default:this._emitChars("<"),this.state=l.SCRIPT_DATA,this._stateScri
ptData(e)}}_stateScriptDataEndTagOpen(e){f(e)?
(this.state=l.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):
(this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e))}_stateScr
iptDataEndTagName(e)
{this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l.SCRIPT_DATA,this.
_stateScriptData(e))}_stateScriptDataEscapeStart(e){e===i.CODE_POINTS.HYPHEN_MINUS?
(this.state=l.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):
(this.state=l.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash
(e){e===i.CODE_POINTS.HYPHEN_MINUS?
(this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):
(this.state=l.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e)
{switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-
");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;
case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e)
{case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitCha
rs("-");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;
case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.state=l.SCRIPT_DAT
A_ESCAPED,this._emitChars(i.REPLACEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateSc
riptDataEscapedDashDash(e){switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this._emitChars("-");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;
case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.SCRIPT_DATA,this._emitChars(">");break
;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.state=l.SCRIPT_DAT
A_ESCAPED,this._emitChars(i.REPLACEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateSc
riptDataEscapedLessThanSign(e){e===i.CODE_POINTS.SOLIDUS?
this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:f(e)?
(this._emitChars("<"),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScrip
tDataDoubleEscapeStart(e)):
(this._emitChars("<"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped
(e))}_stateScriptDataEscapedEndTagOpen(e){f(e)?
(this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagNa
me(e)):
(this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscape
d(e))}_stateScriptDataEscapedEndTagName(e)
{this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAP
ED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e)
{if(this.preprocessor.startsWith(i.SEQUENCES.SCRIPT,!
1)&&y(this.preprocessor.peek(i.SEQUENCES.SCRIPT.length)))
{this._emitCodePoint(e);for(let e=0;e<i.SEQUENCES.SCRIPT.length;e+
+)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED}else
this._ensureHibernation()||
(this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptData
DoubleEscaped(e){switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitC
hars("-");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN
,this._emitChars("<");break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._emitChars(i.REPLA
CEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e)
{switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._
emitChars("-");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN
,this._emitChars("<");break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.state=l.SCRIPT_DAT
A_DOUBLE_ESCAPED,this._emitChars(i.REPLACEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_
stateScriptDataDoubleEscapedDashDash(e){switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this._emitChars("-");break;case
i.CODE_POINTS.LESS_THAN_SIGN:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN
,this._emitChars("<");break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.SCRIPT_DATA,this._emitChars(">");break
;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.state=l.SCRIPT_DAT
A_DOUBLE_ESCAPED,this._emitChars(i.REPLACEMENT_CHARACTER);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToke
n();break;default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_
stateScriptDataDoubleEscapedLessThanSign(e){e===i.CODE_POINTS.SOLIDUS?
(this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):
(this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_st
ateScriptDataDoubleEscapeEnd(e)
{if(this.preprocessor.startsWith(i.SEQUENCES.SCRIPT,!
1)&&y(this.preprocessor.peek(i.SEQUENCES.SCRIPT.length)))
{this._emitCodePoint(e);for(let e=0;e<i.SEQUENCES.SCRIPT.length;e+
+)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_ESCAPED}else
this._ensureHibernation()||
(this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_st
ateBeforeAttributeName(e){switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case i.CODE_POINTS.SOLIDUS:case
i.CODE_POINTS.GREATER_THAN_SIGN:case
i.CODE_POINTS.EOF:this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e
);break;case
i.CODE_POINTS.EQUALS_SIGN:this._err(a.ERR.unexpectedEqualsSignBeforeAttributeName),
this._createAttr("="),this.state=l.ATTRIBUTE_NAME;break;default:this._createAttr(""
),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e)
{switch(e){case i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case
i.CODE_POINTS.TABULATION:case i.CODE_POINTS.FORM_FEED:case
i.CODE_POINTS.SOLIDUS:case i.CODE_POINTS.GREATER_THAN_SIGN:case
i.CODE_POINTS.EOF:this._leaveAttrName(),this.state=l.AFTER_ATTRIBUTE_NAME,this._sta
teAfterAttributeName(e);break;case
i.CODE_POINTS.EQUALS_SIGN:this._leaveAttrName(),this.state=l.BEFORE_ATTRIBUTE_VALUE
;break;case i.CODE_POINTS.QUOTATION_MARK:case i.CODE_POINTS.APOSTROPHE:case
i.CODE_POINTS.LESS_THAN_SIGN:this._err(a.ERR.unexpectedCharacterInAttributeName),th
is.currentAttr.name+=String.fromCodePoint(e);break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.currentAttr.name+=
i.REPLACEMENT_CHARACTER;break;default:this.currentAttr.name+=String.fromCodePoint(d
(e)?v(e):e)}}_stateAfterAttributeName(e){switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.SOLIDUS:this.state=l.SELF_CLOSING_START_TAG;break;case
i.CODE_POINTS.EQUALS_SIGN:this.state=l.BEFORE_ATTRIBUTE_VALUE;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentTagToken();break;
case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBef
oreAttributeValue(e){switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.QUOTATION_MARK:this.state=l.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:this.state=l.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingAttributeValue),this.state=l
.DATA,this.emitCurrentTagToken();break;default:this.state=l.ATTRIBUTE_VALUE_UNQUOTE
D,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e)
{switch(e){case
i.CODE_POINTS.QUOTATION_MARK:this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case
i.CODE_POINTS.AMPERSAND:this.returnState=l.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state
=l.CHARACTER_REFERENCE;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.currentAttr.value+
=i.REPLACEMENT_CHARACTER;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e)
{switch(e){case
i.CODE_POINTS.APOSTROPHE:this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case
i.CODE_POINTS.AMPERSAND:this.returnState=l.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state
=l.CHARACTER_REFERENCE;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.currentAttr.value+
=i.REPLACEMENT_CHARACTER;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e)
{switch(e){case i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case
i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;b
reak;case
i.CODE_POINTS.AMPERSAND:this.returnState=l.ATTRIBUTE_VALUE_UNQUOTED,this.state=l.CH
ARACTER_REFERENCE;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l.DATA,this.emitC
urrentTagToken();break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this.currentAttr.value+
=i.REPLACEMENT_CHARACTER;break;case i.CODE_POINTS.QUOTATION_MARK:case
i.CODE_POINTS.APOSTROPHE:case i.CODE_POINTS.LESS_THAN_SIGN:case
i.CODE_POINTS.EQUALS_SIGN:case
i.CODE_POINTS.GRAVE_ACCENT:this._err(a.ERR.unexpectedCharacterInUnquotedAttributeVa
lue),this.currentAttr.value+=String.fromCodePoint(e);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e)
{switch(e){case i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case
i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;b
reak;case
i.CODE_POINTS.SOLIDUS:this._leaveAttrValue(),this.state=l.SELF_CLOSING_START_TAG;br
eak;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l.DATA,this.emitC
urrentTagToken();break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
._err(a.ERR.missingWhitespaceBetweenAttributes),this.state=l.BEFORE_ATTRIBUTE_NAME,
this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case
i.CODE_POINTS.GREATER_THAN_SIGN:this.currentToken.selfClosing=!
0,this.state=l.DATA,this.emitCurrentTagToken();break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInTag),this._emitEOFToken();break;default:this
._err(a.ERR.unexpectedSolidusInTag),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateB
eforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e)
{case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentComment(t);break;
case i.CODE_POINTS.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.data+=i.REPLACEMENT_C
HARACTER;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen
(e){this._consumeSequenceIfMatch(i.SEQUENCES.DASH_DASH,!0)?
(this._createCommentToken(i.SEQUENCES.DASH_DASH.length+1),this.state=l.COMMENT_STAR
T):this._consumeSequenceIfMatch(i.SEQUENCES.DOCTYPE,!1)?
(this.currentLocation=this.getCurrentLocation(i.SEQUENCES.DOCTYPE.length+1),this.st
ate=l.DOCTYPE):this._consumeSequenceIfMatch(i.SEQUENCES.CDATA_START,!0)?
this.inForeignNode?this.state=l.CDATA_SECTION:
(this._err(a.ERR.cdataInHtmlContent),this._createCommentToken(i.SEQUENCES.CDATA_STA
RT.length+1),this.currentToken.data="[CDATA[",this.state=l.BOGUS_COMMENT):this._ens
ureHibernation()||
(this._err(a.ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l
.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.COMMENT_START_DASH;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:
{this._err(a.ERR.abruptClosingOfEmptyComment),this.state=l.DATA;const
e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=l.COMMENT,t
his._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e)
{case i.CODE_POINTS.HYPHEN_MINUS:this.state=l.COMMENT_END;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.abruptClosingOfEmptyComment),this.s
tate=l.DATA,this.emitCurrentComment(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInComment),this.emitCurrentComment(t),this._em
itEOFToken();break;default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}
_stateComment(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.COMMENT_END_DASH;break;case
i.CODE_POINTS.LESS_THAN_SIGN:t.data+="<",this.state=l.COMMENT_LESS_THAN_SIGN;break;
case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.data+=i.REPLACEMENT_C
HARACTER;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInComment),this.emitCurrentComment(t),this._em
itEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSi
gn(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.EXCLAMATION_MARK:t.data+="!",this.state=l.COMMENT_LESS_THAN_SIGN_BANG
;break;case
i.CODE_POINTS.LESS_THAN_SIGN:t.data+="<";break;default:this.state=l.COMMENT,this._s
tateComment(e)}}_stateCommentLessThanSignBang(e){e===i.CODE_POINTS.HYPHEN_MINUS?
this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH:
(this.state=l.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e)
{e===i.CODE_POINTS.HYPHEN_MINUS?this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
(this.state=l.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanS
ignBangDashDash(e){e!==i.CODE_POINTS.GREATER_THAN_SIGN&&e!
==i.CODE_POINTS.EOF&&this._err(a.ERR.nestedComment),this.state=l.COMMENT_END,this._
stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:this.state=l.COMMENT_END;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInComment),this.emitCurrentComment(t),this._em
itEOFToken();break;default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}
_stateCommentEnd(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentComment(t);break;
case i.CODE_POINTS.EXCLAMATION_MARK:this.state=l.COMMENT_END_BANG;break;case
i.CODE_POINTS.HYPHEN_MINUS:t.data+="-";break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInComment),this.emitCurrentComment(t),this._em
itEOFToken();break;default:t.data+="--",this.state=l.COMMENT,this._stateComment(e)}
}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.HYPHEN_MINUS:t.data+="--!",this.state=l.COMMENT_END_DASH;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.incorrectlyClosedComment),this.stat
e=l.DATA,this.emitCurrentComment(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInComment),this.emitCurrentComment(t),this._em
itEOFToken();break;default:t.data+="--!",this.state=l.COMMENT,this._stateComment(e)
}}_stateDoctype(e){switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.BEFORE_DOCTYPE_NAME;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeD
octypeName(e);break;case i.CODE_POINTS.EOF:
{this._err(a.ERR.eofInDoctype),this._createDoctypeToken(null);const
e=this.currentToken;e.forceQuirks=!
0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(a.ERR.mis
singWhitespaceBeforeDoctypeName),this.state=l.BEFORE_DOCTYPE_NAME,this._stateBefore
DoctypeName(e)}}_stateBeforeDoctypeName(e)
{if(d(e))this._createDoctypeToken(String.fromCharCode(v(e))),this.state=l.DOCTYPE_N
AME;else switch(e){case i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case
i.CODE_POINTS.TABULATION:case i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),this._createDoctypeToke
n(i.REPLACEMENT_CHARACTER),this.state=l.DOCTYPE_NAME;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:
{this._err(a.ERR.missingDoctypeName),this._createDoctypeToken(null);const
e=this.currentToken;e.forceQuirks=!
0,this.emitCurrentDoctype(e),this.state=l.DATA;break}case i.CODE_POINTS.EOF:
{this._err(a.ERR.eofInDoctype),this._createDoctypeToken(null);const
e=this.currentToken;e.forceQuirks=!
0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctype
Token(String.fromCodePoint(e)),this.state=l.DOCTYPE_NAME}}_stateDoctypeName(e)
{const t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.AFTER_DOCTYPE_NAME;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentDoctype(t);break;
case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.name+=i.REPLACEMENT_C
HARACTER;break;case i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.from
CodePoint(d(e)?v(e):e)}}_stateAfterDoctypeName(e){const
t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentDoctype(t);break;
case i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequen
ceIfMatch(i.SEQUENCES.PUBLIC,!1)?
this.state=l.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(i.SEQUENCES.
SYSTEM,!1)?this.state=l.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||
(this._err(a.ERR.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicK
eyword(e){const
t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case
i.CODE_POINTS.QUOTATION_MARK:this._err(a.ERR.missingWhitespaceAfterDoctypePublicKey
word),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:this._err(a.ERR.missingWhitespaceAfterDoctypePublicKeyword
),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingDoctypePublicIdentifier),t.f
orceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicI
dentifier(e){const t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.QUOTATION_MARK:t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_D
OUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGL
E_QUOTED;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingDoctypePublicIdentifier),t.f
orceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentif
ierDoubleQuoted(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.QUOTATION_MARK:this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;cas
e
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.publicId+=i.REPLACEME
NT_CHARACTER;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.abruptDoctypePublicIdentifier),t.fo
rceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.
fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const
t=this.currentToken;switch(e){case
i.CODE_POINTS.APOSTROPHE:this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.publicId+=i.REPLACEME
NT_CHARACTER;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.abruptDoctypePublicIdentifier),t.fo
rceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.
fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const
t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA,this.emitCurrentDoctype(t);break;
case
i.CODE_POINTS.QUOTATION_MARK:this._err(a.ERR.missingWhitespaceBetweenDoctypePublicA
ndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QU
OTED;break;case
i.CODE_POINTS.APOSTROPHE:this._err(a.ERR.missingWhitespaceBetweenDoctypePublicAndSy
stemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED
;break;case i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublic
AndSystemIdentifiers(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.SPACE:case i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l.DATA;break;
case
i.CODE_POINTS.QUOTATION_MARK:t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_D
OUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGL
E_QUOTED;break;case i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKe
yword(e){const t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:this.state=l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case
i.CODE_POINTS.QUOTATION_MARK:this._err(a.ERR.missingWhitespaceAfterDoctypeSystemKey
word),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:this._err(a.ERR.missingWhitespaceAfterDoctypeSystemKeyword
),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingDoctypeSystemIdentifier),t.f
orceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemI
dentifier(e){const t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.QUOTATION_MARK:t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_D
OUBLE_QUOTED;break;case
i.CODE_POINTS.APOSTROPHE:t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGL
E_QUOTED;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.missingDoctypeSystemIdentifier),t.f
orceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.mis
singQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!
0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentif
ierDoubleQuoted(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.QUOTATION_MARK:this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;cas
e
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.systemId+=i.REPLACEME
NT_CHARACTER;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.abruptDoctypeSystemIdentifier),t.fo
rceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.
fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const
t=this.currentToken;switch(e){case
i.CODE_POINTS.APOSTROPHE:this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case
i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter),t.systemId+=i.REPLACEME
NT_CHARACTER;break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this._err(a.ERR.abruptDoctypeSystemIdentifier),t.fo
rceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.
fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const
t=this.currentToken;switch(e){case i.CODE_POINTS.SPACE:case
i.CODE_POINTS.LINE_FEED:case i.CODE_POINTS.TABULATION:case
i.CODE_POINTS.FORM_FEED:break;case
i.CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l.DATA;break;
case i.CODE_POINTS.EOF:this._err(a.ERR.eofInDoctype),t.forceQuirks=!
0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(a.ERR.une
xpectedCharacterAfterDoctypeSystemIdentifier),this.state=l.BOGUS_DOCTYPE,this._stat
eBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case
i.CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l.DATA;break;
case i.CODE_POINTS.NULL:this._err(a.ERR.unexpectedNullCharacter);break;case
i.CODE_POINTS.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSecti
on(e){switch(e){case
i.CODE_POINTS.RIGHT_SQUARE_BRACKET:this.state=l.CDATA_SECTION_BRACKET;break;case
i.CODE_POINTS.EOF:this._err(a.ERR.eofInCdata),this._emitEOFToken();break;default:th
is._emitCodePoint(e)}}_stateCdataSectionBracket(e)
{e===i.CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=l.CDATA_SECTION_END:
(this._emitChars("]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e))}_state
CdataSectionEnd(e){switch(e){case
i.CODE_POINTS.GREATER_THAN_SIGN:this.state=l.DATA;break;case
i.CODE_POINTS.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitCha
rs("]]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterRefe
rence(e){e===i.CODE_POINTS.NUMBER_SIGN?
this.state=l.NUMERIC_CHARACTER_REFERENCE:p(e)?
(this.state=l.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):
(this._flushCodePointConsumedAsCharacterReference(i.CODE_POINTS.AMPERSAND),this._re
consumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const
t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t)
{for(let e=0;e<t.length;e+
+)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnStat
e}else
this._flushCodePointConsumedAsCharacterReference(i.CODE_POINTS.AMPERSAND),this.stat
e=l.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){p(e)?
this._flushCodePointConsumedAsCharacterReference(e):
(e===i.CODE_POINTS.SEMICOLON&&this._err(a.ERR.unknownNamedCharacterReference),this.
_reconsumeInState(this.returnState,e))}_stateNumericChara
cterReference(e){this.charRefCode=0,e===i.CODE_POINTS.LATIN_SMALL_X||
e===i.CODE_POINTS.LATIN_CAPITAL_X?
this.state=l.HEXADEMICAL_CHARACTER_REFERENCE_START:h(e)?
(this.state=l.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):
(this._err(a.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointCo
nsumedAsCharacterReference(i.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsC
haracterReference(i.CODE_POINTS.NUMBER_SIGN),this._reconsumeInState(this.returnStat
e,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return h(e)||g(e)||
m(e)}(e)?
(this._err(a.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointCo
nsumedAsCharacterReference(i.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsC
haracterReference(i.CODE_POINTS.NUMBER_SIGN),this._unconsume(2),this.state=this.ret
urnState):
(this.state=l.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterRefere
nce(e))}_stateHexademicalCharacterReference(e){g(e)?
this.charRefCode=16*this.charRefCode+e-55:m(e)?
this.charRefCode=16*this.charRefCode+e-87:h(e)?
this.charRefCode=16*this.charRefCode+e-48:e===i.CODE_POINTS.SEMICOLON?
this.state=l.NUMERIC_CHARACTER_REFERENCE_END:
(this._err(a.ERR.missingSemicolonAfterCharacterReference),this.state=l.NUMERIC_CHAR
ACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharac
terReference(e){h(e)?this.charRefCode=10*this.charRefCode+e-
48:e===i.CODE_POINTS.SEMICOLON?this.state=l.NUMERIC_CHARACTER_REFERENCE_END:
(this._err(a.ERR.missingSemicolonAfterCharacterReference),this.state=l.NUMERIC_CHAR
ACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharac
terReferenceEnd(e)
{if(this.charRefCode===i.CODE_POINTS.NULL)this._err(a.ERR.nullCharacterReference),t
his.charRefCode=i.CODE_POINTS.REPLACEMENT_CHARACTER;else
if(this.charRefCode>1114111)this._err(a.ERR.characterReferenceOutsideUnicodeRange),
this.charRefCode=i.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,i.isSurrogate)
(this.charRefCode))this._err(a.ERR.surrogateCharacterReference),this.charRefCode=i.
CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,i.isUndefinedCodePoint)
(this.charRefCode))this._err(a.ERR.noncharacterCharacterReference);else
if((0,i.isControlCodePoint)(this.charRefCode)||
this.charRefCode===i.CODE_POINTS.CARRIAGE_RETURN)
{this._err(a.ERR.controlCharacterReference);const e=u.get(this.charRefCode);void 0!
==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.cha
rRefCode),this._reconsumeInState(this.returnState,e)}}},55381:(e,t,n)=>{"use
strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Preprocessor=void
0;const r=n(61506),i=n(36068);t.Preprocessor=class{constructor(e)
{this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-
2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!
1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!
1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-
1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!
==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e)
{const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,e
ndCol:n,startOffset:r,endOffset:r}}_err(e)
{this.handler.onParseError&&this.lastErrOffset!
==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getEr
ror(e)))}_addGap()
{this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e)
{if(this.pos!==this.html.length-1){const
t=this.html.charCodeAt(this.pos+1);if((0,r.isSurrogatePair)(t))return this.pos+
+,this._addGap(),(0,r.getSurrogatePairCodePoint)(e,t)}else if(!
this.lastChunkWritten)return this.endOfChunkHit=!0,r.CODE_POINTS.EOF;return
this._err(i.ERR.surrogateInInputStream),e}willDropParsedChunk(){return
this.pos>this.bufferWaterline}dropParsedChunk()
{this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStar
tPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-
2,this.gapStack.length=0)}write(e,t){this.html.length>0?
this.html+=e:this.html=e,this.endOfChunkHit=!
1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e)
{this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this
.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return
this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return
this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|
this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const
t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!
this.lastChunkWritten,r.CODE_POINTS.EOF;const n=this.html.charCodeAt(t);return
n===r.CODE_POINTS.CARRIAGE_RETURN?r.CODE_POINTS.LINE_FEED:n}advance(){if(this.pos+
+,this.isEol&&(this.isEol=!1,this.line+
+,this.lineStartPos=this.pos),this.pos>=this.html.length)return
this.endOfChunkHit=!this.lastChunkWritten,r.CODE_POINTS.EOF;let
e=this.html.charCodeAt(this.pos);return e===r.CODE_POINTS.CARRIAGE_RETURN?
(this.isEol=!0,this.skipNextNewLine=!
0,r.CODE_POINTS.LINE_FEED):e===r.CODE_POINTS.LINE_FEED&&(this.isEol=!
0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!
1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,(0,r.isSurrogate)
(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||
e===r.CODE_POINTS.LINE_FEED||e===r.CODE_POINTS.CARRIAGE_RETURN||e>159&&e<64976||
this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e)
{(0,r.isControlCodePoint)(e)?this._err(i.ERR.controlCharacterInInputStream):
(0,r.isUndefinedCodePoint)
(e)&&this._err(i.ERR.noncharacterInInputStream)}retreat(e){for(this.pos-
=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.is
Eol=!1}}},20745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",
{value:!0}),t.defaultTreeAdapter=void 0;const r=n(63668);function i(e)
{return{nodeName:"#text",value:e,parentNode:null}}t.defaultTreeAdapter={createDocum
ent:()=>({nodeName:"#document",mode:r.DOCUMENT_MODE.NO_QUIRKS,childNodes:
[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:
[]}),createElement:
(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:
[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:n
ull}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n)
{const
r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateCon
tent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,n,r,i)
{const
o=e.childNodes.find((e=>"#documentType"===e.nodeName));if(o)o.name=n,o.publicId=r,o
.systemId=i;else{const
o={nodeName:"#documentType",name:n,publicId:r,systemId:i,parentNode:null};t.default
TreeAdapter.appendChild(e,o)}},setDocumentMode(e,t)
{e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const
t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNo
de=null}},insertText(e,n){if(e.childNodes.length>0){const
r=e.childNodes[e.childNodes.length-1];if(t.defaultTreeAdapter.isTextNode(r))return
void(r.value+=n)}t.defaultTreeAdapter.appendChild(e,i(n))},insertTextBefore(e,n,r)
{const o=e.childNodes[e.childNodes.indexOf(r)-
1];o&&t.defaultTreeAdapter.isTextNode(o)?
o.value+=n:t.defaultTreeAdapter.insertBefore(e,i(n),r)},adoptAttributes(e,t){const
n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||
e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,
getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNam
espaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>
e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,
getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isComm
entNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeNa
me,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSource
CodeLocation(e,t)
{e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNo
deSourceCodeLocation(e,t)
{e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}},13
91:(e,t,n)=>{"use strict";function r(e){return 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},r(e)}function i(){return"function"==typeof
XMLHttpRequest||"object"===("undefined"==typeof
XMLHttpRequest?"undefined":r(XMLHttpRequest))}n.r(t),n.d(t,{default:()=>T});var
o,s,a,c=n(49656),u=n.t(c,2);function l(e,t){var
n=Object.keys(e);if(Object.getOwnPropertySymbols){var
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return
n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?
arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var
r,i,o,s;r=e,i=t,o=n[t],s=function(e,t){if("object"!=d(e)||!e)return e;var
n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!
=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive
value.")}return String(e)}(i),(i="symbol"==d(s)?s:String(s))in r?
Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!
0}):r[i]=o})):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach
((function(t)
{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return
e}function d(e){return d="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},d(e)}"function"==typeof
fetch&&(o="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof
window&&window.fetch?window.fetch:fetch),i()&&("undefined"!=typeof
global&&global.XMLHttpRequest?s=global.XMLHttpRequest:"undefined"!=typeof
window&&window.XMLHttpRequest&&(s=window.XMLHttpRequest)),"function"==typeof
ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?
a=global.ActiveXObject:"undefined"!=typeof
window&&window.ActiveXObject&&(a=window.ActiveXObject)),o||!u||s||a||(o=c||
u),"function"!=typeof o&&(o=void 0);var f=function(e,t){if(t&&"object"===d(t)){var
n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!
n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return
e},p=function(e,t,n,r){var i=function(e){if(!e.ok)return n(e.statusText||"Error",
{status:e.status});e.text().then((function(t){n(null,
{status:e.status,data:t})})).catch(n)};if(r){var s=r(e,t);if(s instanceof
Promise)return void s.then(i).catch(n)}"function"==typeof fetch?
fetch(e,t).then(i).catch(n):o(e,t).then(i).catch(n)},g=!1;const m=function(e,t,n,r)
{return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},o&&0!
==t.indexOf("file:")?function(e,t,n,r)
{e.queryStringParams&&(t=f(t,e.queryStringParams));var i=h({},"function"==typeof
e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof
window&&"undefined"!=typeof global&&void 0!
==global.process&&global.process.versions&&global.process.versions.node&&(i["User-
Agent"]="i18next-http-backend (node/".concat(global.process.version,";
").concat(global.process.platform,"
").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var
o="function"==typeof e.requestOptions?
e.requestOptions(n):e.requestOptions,s=h({method:n?"POST":"GET",body:n?
e.stringify(n):void 0,headers:i},g?{}:o),a="function"==typeof
e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void
0;try{p(t,s,r,a)}catch(e){if(!o||0===Object.keys(o).length||!e.message||
e.message.indexOf("not implemented")<0)return
r(e);try{Object.keys(o).forEach((function(e){delete s[e]})),p(t,s,r,a),g=!
0}catch(e){r(e)}}}(e,t,n,r):i()||"function"==typeof ActiveXObject?function(e,t,n,r)
{n&&"object"===d(n)&&(n=f("",n).slice(1)),e.queryStringParams&&(t=f(t,e.queryString
Params));try{var i;(i=s?new s:new
a("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||
i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!
e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-
urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var
o=e.customHeaders;if(o="function"==typeof o?o():o)for(var c in
o)i.setRequestHeader(c,o[c]);i.onreadystatechange=function()
{i.readyState>3&&r(i.status>=400?i.statusText:null,
{status:i.status,data:i.responseText})},i.send(n)}catch(e)
{console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr
implementation found!"))};function v(e){return v="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},v(e)}function b(e,t){var
n=Object.keys(e);if(Object.getOwnPropertySymbols){var
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return
n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?
arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t)
{_(e,t,n[t])})):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach
((function(t)
{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return
e}function w(e,t){for(var n=0;n<t.length;n++){var
r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!
0),Object.defineProperty(e,E(r.key),r)}}function _(e,t,n){return(t=E(t))in e?
Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!
0}):e[t]=n,e}function E(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var
n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!
=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive
value.")}return String(e)}(e);return"symbol"==v(t)?t:String(t)}var S=function()
{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!
(e instanceof t))throw new TypeError("Cannot call a class as a function")}
(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.
init(t,n,r)}var t,n;return t=e,n=[{key:"init",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{};this.services=e,this.options=y(y(y({},{loadPath:"/locales/{{lng}}/
{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return
JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return
_({},t,n||"")},parseLoadPayload:function(e,t)
{},request:m,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:
{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!
1,requestOptions:{mode:"cors",credentials:"same-
origin",cache:"default"}}),this.options||
{}),n),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((f
unction(){return t.reload()}),this.options.reloadInterval)}},
{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},
{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},
{key:"_readAny",value:function(e,t,n,r,i){var
o,s=this,a=this.options.loadPath;"function"==typeof
this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=function(e){return!!
e&&"function"==typeof e.then}(o=a)?o:Promise.resolve(o)).then((function(o){if(!
o)return i(null,{});var a=s.services.interpolator.interpolate(o,
{lng:e.join("+"),ns:n.join("+")});s.loadUrl(a,i,t,r)}))}},
{key:"loadUrl",value:function(e,t,n,r){var i=this,o="string"==typeof n?
[n]:n,s="string"==typeof r?
[r]:r,a=this.options.parseLoadPayload(o,s);this.options.request(this.options,e,a,
(function(o,s){if(s&&(s.status>=500&&s.status<600||!s.status))return t("failed
loading "+e+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return
t("failed loading "+e+"; status code: "+s.status,!1);if(!
s&&o&&o.message&&o.message.indexOf("Failed to fetch")>-1)return t("failed loading
"+e+": "+o.message,!0);if(o)return t(o,!1);var a,c;try{a="string"==typeof s.data?
i.options.parse(s.data,n,r):s.data}catch(t){c="failed parsing "+e+" to
json"}if(c)return t(c,!1);t(null,a)}))}},{key:"create",value:function(e,t,n,r,i)
{var o=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var
s=this.options.parsePayload(t,n,r),a=0,c=[],u=[];e.forEach((function(n){var
r=o.options.addPath;"function"==typeof
o.options.addPath&&(r=o.options.addPath(n,t));var
l=o.services.interpolator.interpolate(r,
{lng:n,ns:t});o.options.request(o.options,l,s,(function(t,n)
{a+=1,c.push(t),u.push(n),a===e.length&&"function"==typeof i&&i(c,u)}))}))}}},
{key:"reload",value:function(){var
e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.langua
ge;if(!o||"cimode"!==o.toLowerCase()){var s=[],a=function(e)
{r.toResolveHierarchy(e).forEach((function(e)
{s.indexOf(e)<0&&s.push(e)}))};a(o),this.allOptions.preload&&this.allOptions.preloa
d.forEach((function(e){return a(e)})),s.forEach((function(t)
{e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,o)
{r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!
r&&o&&i.log("loaded namespace ".concat(e," for language
").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)}))}))}))}}}],n&&w(t.protot
ype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}
();S.type="backend";const T=S},49078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:
()=>r});var r=function(e){return{type:"backend",init:function(e,t,n)
{},read:function(t,n,r){if("function"!=typeof e)r(null,e&&e[t]&&e[t]
[n]);else{if(e.length<3){try{var i=e(t,n);i&&"function"==typeof i.then?
i.then((function(e){return r(null,e&&e.default||e)})).catch(r):r(null,i)}catch(e)
{r(e)}return}e(t,n,r)}}}}}}]);