@everymatrix/casino-wagering-bonus-slider-controller 0.0.392 → 0.0.393

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function u(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(t,e,r){t.$$.on_destroy.push(u(e,r))}function h(t,e){t.appendChild(e)}function f(t,e,r){t.insertBefore(e,r||null)}function p(t){t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function m(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function g(t){return document.createTextNode(t)}function y(){return g(" ")}function b(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function v(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function E(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:v(t,e,r)}function w(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function _(t){const e={};for(const r of t)e[r.name]=r.value;return e}function T(t){a=t}function A(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const B=[],S=[],H=[],L=[],P=Promise.resolve();let I=!1;function O(t){H.push(t)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@everymatrix/general-icon-progress-bar")):"function"==typeof define&&define.amd?define(["@everymatrix/general-icon-progress-bar"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function u(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t){e.appendChild(t)}function h(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function m(e){return document.createTextNode(e)}function y(){return m(" ")}function g(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function b(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function v(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:b(e,t,r)}function E(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e){const t={};for(const r of e)t[r.name]=r.value;return t}function _(e){a=e}function T(e){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(e)}const A=[],S=[],B=[],H=[],L=Promise.resolve();let P=!1;function I(e){B.push(e)}
2
2
  // flush() calls callbacks in this order:
3
3
  // 1. All beforeUpdate callbacks, in order: parents before children
4
4
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -17,45 +17,45 @@
17
17
  // 3. During afterUpdate, any updated components will NOT have their afterUpdate
18
18
  // callback called a second time; the seen_callbacks set, outside the flush()
19
19
  // function, guarantees this behavior.
20
- const C=new Set;let x=0;// Do *not* move this inside the flush() function
21
- function R(){const t=a;do{
20
+ const O=new Set;let C=0;// Do *not* move this inside the flush() function
21
+ function N(){const e=a;do{
22
22
  // first, call beforeUpdate functions
23
23
  // and update components
24
- for(;x<B.length;){const t=B[x];x++,T(t),N(t.$$)}for(T(null),B.length=0,x=0;S.length;)S.pop()();
24
+ for(;C<A.length;){const e=A[C];C++,_(e),x(e.$$)}for(_(null),A.length=0,C=0;S.length;)S.pop()();
25
25
  // then, once components are updated, call
26
26
  // afterUpdate functions. This may cause
27
27
  // subsequent updates...
28
- for(let t=0;t<H.length;t+=1){const e=H[t];C.has(e)||(
28
+ for(let e=0;e<B.length;e+=1){const t=B[e];O.has(t)||(
29
29
  // ...so guard against infinite loops
30
- C.add(e),e())}H.length=0}while(B.length);for(;L.length;)L.pop()();I=!1,C.clear(),T(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const M=new Set;function D(t,e){-1===t.$$.dirty[0]&&(B.push(t),I||(I=!0,P.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,s,l,u,c,h,f,d=[-1]){const m=a;T(i);const g=i.$$={fragment:null,ctx:null,
30
+ O.add(t),t())}B.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),_(e)}function x(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}const R=new Set;function M(e,t){-1===e.$$.dirty[0]&&(A.push(e),P||(P=!0,L.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function D(i,s,l,u,c,h,p,d=[-1]){const m=a;_(i);const y=i.$$={fragment:null,ctx:null,
31
31
  // state
32
- props:h,update:t,not_equal:c,bound:r(),
32
+ props:h,update:e,not_equal:c,bound:r(),
33
33
  // lifecycle
34
34
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
35
35
  // everything else
36
- callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};f&&f(g.root);let y=!1;if(g.ctx=l?l(i,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return g.ctx&&c(g.ctx[t],g.ctx[t]=n)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](n),y&&D(i,t)),e})):[],g.update(),y=!0,n(g.before_update),
36
+ callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let g=!1;if(y.ctx=l?l(i,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return y.ctx&&c(y.ctx[e],y.ctx[e]=n)&&(!y.skip_bound&&y.bound[e]&&y.bound[e](n),g&&M(i,e)),t})):[],y.update(),g=!0,n(y.before_update),
37
37
  // `false` as a special case of no DOM component
38
- g.fragment=!!u&&u(g.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
38
+ y.fragment=!!u&&u(y.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
39
39
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
40
- g.fragment&&g.fragment.l(t),t.forEach(p)}else
40
+ y.fragment&&y.fragment.l(e),e.forEach(f)}else
41
41
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
42
- g.fragment&&g.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(M.delete(b),b.i(v))),function(t,r,i,s){const{fragment:a,on_mount:l,on_destroy:u,after_update:c}=t.$$;a&&a.m(r,i),s||
42
+ y.fragment&&y.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i(v))),function(e,r,i,s){const{fragment:a,on_mount:l,on_destroy:u,after_update:c}=e.$$;a&&a.m(r,i),s||
43
43
  // onMount happens before the initial afterUpdate
44
- O((()=>{const r=l.map(e).filter(o);u?u.push(...r):
44
+ I((()=>{const r=l.map(t).filter(o);u?u.push(...r):
45
45
  // Edge case - component was destroyed immediately,
46
46
  // most likely as a result of a binding initialising
47
- n(r),t.$$.on_mount=[]})),c.forEach(O)}(i,s.target,s.anchor,s.customElement),R()}var b,v;T(m)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);
47
+ n(r),e.$$.on_mount=[]})),c.forEach(I)}(i,s.target,s.anchor,s.customElement),N()}var b,v;_(m)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);
48
48
  // @ts-ignore todo: improve typings
49
- for(const t in this.$$.slotted)
49
+ for(const e in this.$$.slotted)
50
50
  // @ts-ignore todo: improve typings
51
- this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(t,e){const r=t.$$;null!==r.fragment&&(n(r.on_destroy),r.fragment&&r.fragment.d(e),
51
+ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(e,t){const r=e.$$;null!==r.fragment&&(n(r.on_destroy),r.fragment&&r.fragment.d(t),
52
52
  // TODO null out other refs, including component.$$ (but need to
53
53
  // preserve final state?)
54
- r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
54
+ r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=e}$on(e,t){
55
55
  // TODO should this delegate to addEventListener?
56
- const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var k="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==k&&k,$="URLSearchParams"in k,G="Symbol"in k&&"iterator"in Symbol,j="FileReader"in k&&"Blob"in k&&function(){try{return new Blob,!0}catch(t){return!1}}(),W="FormData"in k,X="ArrayBuffer"in k;if(X)var V=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],z=ArrayBuffer.isView||function(t){return t&&V.indexOf(Object.prototype.toString.call(t))>-1};function K(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Z(t){return"string"!=typeof t&&(t=String(t)),t}
56
+ const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.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)}});var F="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==F&&F,k="URLSearchParams"in F,G="Symbol"in F&&"iterator"in Symbol,j="FileReader"in F&&"Blob"in F&&function(){try{return new Blob,!0}catch(e){return!1}}(),$="FormData"in F,W="ArrayBuffer"in F;if(W)var X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],V=ArrayBuffer.isView||function(e){return e&&X.indexOf(Object.prototype.toString.call(e))>-1};function z(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 K(e){return"string"!=typeof e&&(e=String(e)),e}
57
57
  // Build a destructive iterator for the value list
58
- function Y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return G&&(e[Symbol.iterator]=function(){return e}),e}function q(t){this.map={},t instanceof q?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function J(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Q(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function tt(t){var e=new FileReader,r=Q(e);return e.readAsArrayBuffer(t),r}function et(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function rt(){return this.bodyUsed=!1,this._initBody=function(t){var e;
58
+ function Z(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return G&&(t[Symbol.iterator]=function(){return t}),t}function Y(e){this.map={},e instanceof Y?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 q(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Q(e){var t=new FileReader,r=J(t);return t.readAsArrayBuffer(e),r}function ee(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function te(){return this.bodyUsed=!1,this._initBody=function(e){var t;
59
59
  /*
60
60
  fetch-mock wraps the Response object in an ES6 Proxy to
61
61
  provide useful test harness features such as flush. However, on
@@ -66,21 +66,21 @@ function Y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,valu
66
66
  semantic of setting Request.bodyUsed in the constructor before
67
67
  _initBody is called.
68
68
  */
69
- this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:j&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:W&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:$&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():X&&j&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=et(t.buffer),
69
+ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:j&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:$&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:k&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():W&&j&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ee(e.buffer),
70
70
  // IE 10-11 can't handle a DataView body.
71
- this._bodyInit=new Blob([this._bodyArrayBuffer])):X&&(ArrayBuffer.prototype.isPrototypeOf(t)||z(t))?this._bodyArrayBuffer=et(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):$&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j&&(this.blob=function(){var t=J(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=J(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(tt)}),this.text=function(){var t,e,r,n=J(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Q(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},W&&(this.formData=function(){return this.text().then(it)}),this.json=function(){return this.text().then(JSON.parse)},this}
71
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(e)||V(e))?this._bodyArrayBuffer=ee(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):k&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j&&(this.blob=function(){var e=q(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=q(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Q)}),this.text=function(){var e,t,r,n=q(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=J(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},$&&(this.formData=function(){return this.text().then(oe)}),this.json=function(){return this.text().then(JSON.parse)},this}
72
72
  // HTTP methods whose capitalization should be normalized
73
- q.prototype.append=function(t,e){t=K(t),e=Z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},q.prototype.delete=function(t){delete this.map[K(t)]},q.prototype.get=function(t){return t=K(t),this.has(t)?this.map[t]:null},q.prototype.has=function(t){return this.map.hasOwnProperty(K(t))},q.prototype.set=function(t,e){this.map[K(t)]=Z(e)},q.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},q.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),Y(t)},q.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),Y(t)},q.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),Y(t)},G&&(q.prototype[Symbol.iterator]=q.prototype.entries);var nt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ot(t,e){if(!(this instanceof ot))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof ot){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new q(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new q(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),nt.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
73
+ Y.prototype.append=function(e,t){e=z(e),t=K(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Y.prototype.delete=function(e){delete this.map[z(e)]},Y.prototype.get=function(e){return e=z(e),this.has(e)?this.map[e]:null},Y.prototype.has=function(e){return this.map.hasOwnProperty(z(e))},Y.prototype.set=function(e,t){this.map[z(e)]=K(t)},Y.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Y.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),Z(e)},Y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Z(e)},Y.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),Z(e)},G&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var re=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ne(e,t){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof ne){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 Y(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),re.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
74
74
  // Search for a '_' parameter in the query string
75
75
  var i=/([?&])_=[^&]*/;if(i.test(this.url))
76
76
  // If it already exists then set the value with the current time
77
- this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function it(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function st(t,e){if(!(this instanceof st))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new q(e.headers),this.url=e.url||"",this._initBody(t)}ot.prototype.clone=function(){return new ot(this,{body:this._bodyInit})},rt.call(ot.prototype),rt.call(st.prototype),st.prototype.clone=function(){return new st(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},st.error=function(){var t=new st(null,{status:0,statusText:""});return t.type="error",t};var at=[301,302,303,307,308];st.redirect=function(t,e){if(-1===at.indexOf(e))throw new RangeError("Invalid status code");return new st(null,{status:e,headers:{location:t}})};var lt=k.DOMException;try{new lt}catch(t){(lt=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lt.prototype.constructor=lt}function ut(t,e){return new Promise((function(r,n){var o=new ot(t,e);if(o.signal&&o.signal.aborted)return n(new lt("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new q,
77
+ this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function oe(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function ie(e,t){if(!(this instanceof ie))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 Y(t.headers),this.url=t.url||"",this._initBody(e)}ne.prototype.clone=function(){return new ne(this,{body:this._bodyInit})},te.call(ne.prototype),te.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ie.error=function(){var e=new ie(null,{status:0,statusText:""});return e.type="error",e};var se=[301,302,303,307,308];ie.redirect=function(e,t){if(-1===se.indexOf(t))throw new RangeError("Invalid status code");return new ie(null,{status:t,headers:{location:e}})};var ae=F.DOMException;try{new ae}catch(e){(ae=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),ae.prototype.constructor=ae}function le(e,t){return new Promise((function(r,n){var o=new ne(e,t);if(o.signal&&o.signal.aborted)return n(new ae("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Y,
78
78
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
79
79
  // https://github.com/github/fetch/issues/748
80
80
  // https://github.com/zloirock/core-js/issues/751
81
- t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new st(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new lt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&k.location.href?k.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(j?i.responseType="blob":X&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof q?o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){i.setRequestHeader(t,Z(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
81
+ 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 r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new ie(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new ae("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&F.location.href?F.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(j?i.responseType="blob":W&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Y?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,K(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
82
82
  // DONE (success or failure)
83
- 4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ut.polyfill=!0,k.fetch||(k.fetch=ut,k.Headers=q,k.Request=ot,k.Response=st);var ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
83
+ 4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}le.polyfill=!0,F.fetch||(F.fetch=le,F.Headers=Y,F.Request=ne,F.Response=ie);var ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
84
84
  // the whatwg-fetch polyfill installs the fetch() function
85
85
  // on the global object (window or self)
86
86
  // Return that as the export for use in Webpack, Browserify etc.
@@ -100,7 +100,7 @@ self.fetch.bind(self);
100
100
  PERFORMANCE OF THIS SOFTWARE.
101
101
  ***************************************************************************** */
102
102
  /* global Reflect, Promise */
103
- var ht=function(t,e){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ht(t,e)};function ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function pt(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function mt(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function gt(t){return"function"==typeof t}function yt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var bt=yt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function vt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Et=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=pt(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var l=this.initialTeardown;if(gt(l))try{l()}catch(t){o=t instanceof bt?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=pt(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{Tt(f)}catch(t){o=null!=o?o:[],t instanceof bt?o=mt(mt([],dt(o)),dt(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new bt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Tt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&vt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&vt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),wt=Et.EMPTY;function _t(t){return t instanceof Et||t&&"closed"in t&&gt(t.remove)&&gt(t.add)&&gt(t.unsubscribe)}function Tt(t){gt(t)?t():t.unsubscribe()}var At={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Bt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Bt.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,mt([t,e],dt(r))):setTimeout.apply(void 0,mt([t,e],dt(r)))},clearTimeout:function(t){var e=Bt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function St(){}var Ht=null;function Lt(t){if(At.useDeprecatedSynchronousErrorHandling){var e=!Ht;if(e&&(Ht={errorThrown:!1,error:null}),t(),e){var r=Ht,n=r.errorThrown,o=r.error;if(Ht=null,n)throw o}}else t()}var Pt=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,_t(e)&&e.add(r)):r.destination=Nt,r}return ft(e,t),e.create=function(t,e,r){return new xt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Et),It=Function.prototype.bind;function Ot(t,e){return It.call(t,e)}var Ct=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Rt(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Rt(t)}else Rt(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Rt(t)}},t}(),xt=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;gt(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&At.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Ot(e.next,i),error:e.error&&Ot(e.error,i),complete:e.complete&&Ot(e.complete,i)}):o=e;return s.destination=new Ct(o),s}return ft(e,t),e}(Pt);function Rt(t){var e;e=t,Bt.setTimeout((function(){throw e}))}var Nt={closed:!0,next:St,error:function(t){throw t},complete:St},Mt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Dt(t){return t}function Ut(t){return 0===t.length?Dt:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Ft=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Pt||function(t){return t&&gt(t.next)&&gt(t.error)&&gt(t.complete)}(n)&&_t(n)?t:new xt(t,e,r);return Lt((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=kt(e))((function(e,n){var o=new xt({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Mt]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ut(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=kt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function kt(t){var e;return null!==(e=null!=t?t:At.Promise)&&void 0!==e?e:Promise}var $t=yt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Gt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return ft(e,t),e.prototype.lift=function(t){var e=new jt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new $t},e.prototype.next=function(t){var e=this;Lt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=pt(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Lt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Lt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?wt:(this.currentObservers=null,i.push(t),new Et((function(){e.currentObservers=null,vt(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ft;return t.source=this,t},e.create=function(t,e){return new jt(t,e)},e}(Ft),jt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return ft(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:wt},e}(Gt),Wt={now:function(){return(Wt.delegate||Date).now()},delegate:void 0},Xt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Wt);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return ft(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(Gt);let Vt=[],zt={};
103
+ var ce=function(e,t){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ce(e,t)};function he(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function de(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function me(e){return"function"==typeof e}function ye(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ge=ye((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function be(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ve=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=fe(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(me(l))try{l()}catch(e){o=e instanceof ge?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=fe(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{_e(f)}catch(e){o=null!=o?o:[],e instanceof ge?o=de(de([],pe(o)),pe(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new ge(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_e(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&be(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&be(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Ee=ve.EMPTY;function we(e){return e instanceof ve||e&&"closed"in e&&me(e.remove)&&me(e.add)&&me(e.unsubscribe)}function _e(e){me(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ae={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ae.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,de([e,t],pe(r))):setTimeout.apply(void 0,de([e,t],pe(r)))},clearTimeout:function(e){var t=Ae.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Se(){}var Be=null;function He(e){if(Te.useDeprecatedSynchronousErrorHandling){var t=!Be;if(t&&(Be={errorThrown:!1,error:null}),e(),t){var r=Be,n=r.errorThrown,o=r.error;if(Be=null,n)throw o}}else e()}var Le=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,we(t)&&t.add(r)):r.destination=xe,r}return he(t,e),t.create=function(e,t,r){return new Ce(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ve),Pe=Function.prototype.bind;function Ie(e,t){return Pe.call(e,t)}var Oe=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ne(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ne(e)}else Ne(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ne(e)}},e}(),Ce=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;me(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Te.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Ie(t.next,i),error:t.error&&Ie(t.error,i),complete:t.complete&&Ie(t.complete,i)}):o=t;return s.destination=new Oe(o),s}return he(t,e),t}(Le);function Ne(e){var t;t=e,Ae.setTimeout((function(){throw t}))}var xe={closed:!0,next:Se,error:function(e){throw e},complete:Se},Re="function"==typeof Symbol&&Symbol.observable||"@@observable";function Me(e){return e}function De(e){return 0===e.length?Me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Ue=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Le||function(e){return e&&me(e.next)&&me(e.error)&&me(e.complete)}(n)&&we(n)?e:new Ce(e,t,r);return He((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Fe(t))((function(t,n){var o=new Ce({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Re]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return De(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fe(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Fe(e){var t;return null!==(t=null!=e?e:Te.Promise)&&void 0!==t?t:Promise}var ke=ye((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ge=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return he(t,e),t.prototype.lift=function(e){var t=new je(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ke},t.prototype.next=function(e){var t=this;He((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=fe(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;He((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;He((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?Ee:(this.currentObservers=null,i.push(e),new ve((function(){t.currentObservers=null,be(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Ue;return e.source=this,e},t.create=function(e,t){return new je(e,t)},t}(Ue),je=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return he(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Ee},t}(Ge),$e={now:function(){return($e.delegate||Date).now()},delegate:void 0},We=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=$e);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return he(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(Ge);let Xe=[],Ve={};
104
104
  /**
105
105
  * @name topic
106
106
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -108,131 +108,131 @@ var ht=function(t,e){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof A
108
108
  * @param step [String] How many values to be buffed for new subscribers - default 0
109
109
  * @returns ReplaySubject
110
110
  */
111
- const Kt=[];
111
+ const ze=[];
112
112
  /**
113
113
  * Create a `Writable` store that allows both updating and reading by subscription.
114
114
  * @param {*=}value initial value
115
115
  * @param {StartStopNotifier=}start start and stop notifications for subscriptions
116
116
  */
117
- function Zt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
118
- const t=!Kt.length;for(const t of o)t[1](),Kt.push(t,e);if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function Yt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>u(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f()}},{subscribe:Zt(i,c).subscribe};
117
+ function Ke(t,r=e){let n;const o=new Set;function s(e){if(i(t,e)&&(t=e,n)){// store is ready
118
+ const e=!ze.length;for(const e of o)e[1](),ze.push(e,t);if(e){for(let e=0;e<ze.length;e+=2)ze[e][0](ze[e+1]);ze.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a=e){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||e),i(t),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function Ze(t,r,i){const s=!Array.isArray(t),a=s?[t]:t,l=r.length<2;return c=t=>{let i=!1;const c=[];let h=0,f=e;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,t);l?t(n):f=o(n)?n:e},d=a.map(((e,t)=>u(e,(e=>{c[t]=e,h&=~(1<<t),i&&p()}),(()=>{h|=1<<t}))));return i=!0,p(),function(){n(d),f()}},{subscribe:Ke(i,c).subscribe};
119
119
  /**
120
120
  * Creates a `Readable` store that allows reading by subscription.
121
121
  * @param value initial value
122
122
  * @param {StartStopNotifier}start start and stop notifications for subscriptions
123
123
  */
124
- var c}var qt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Jt}(t)}
124
+ var c}var Ye=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===qe}(e)}
125
125
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
126
- (t)};var Jt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?oe((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function te(t,e,r){return t.concat(e).map((function(t){return Qt(t,r)}))}function ee(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function re(t,e){try{return e in t}catch(t){return!1}}
126
+ (e)};var qe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Je(e,t){return!1!==t.clone&&t.isMergeableObject(e)?nt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Qe(e,t,r){return e.concat(t).map((function(e){return Je(e,r)}))}function et(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function tt(e,t){try{return t in e}catch(e){return!1}}
127
127
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
128
- function ne(t,e,r){var n={};return r.isMergeableObject(t)&&ee(t).forEach((function(e){n[e]=Qt(t[e],r)})),ee(e).forEach((function(o){(function(t,e){return re(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
129
- })(t,o)||(re(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return oe;var r=e.customMerge(t);return"function"==typeof r?r:oe}(o,r)(t[o],e[o],r):n[o]=Qt(e[o],r))})),n}function oe(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||te,r.isMergeableObject=r.isMergeableObject||qt,
128
+ function rt(e,t,r){var n={};return r.isMergeableObject(e)&&et(e).forEach((function(t){n[t]=Je(e[t],r)})),et(t).forEach((function(o){(function(e,t){return tt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
129
+ })(e,o)||(tt(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return nt;var r=t.customMerge(e);return"function"==typeof r?r:nt}(o,r)(e[o],t[o],r):n[o]=Je(t[o],r))})),n}function nt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Qe,r.isMergeableObject=r.isMergeableObject||Ye,
130
130
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
131
131
  // implementations can use it. The caller may not replace it.
132
- r.cloneUnlessOtherwiseSpecified=Qt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ne(t,e,r):Qt(e,r)}oe.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return oe(t,r,e)}),{})};var ie=oe,se=function(t,e){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},se(t,e)};function ae(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}se(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var le,ue,ce,he=function(){return he=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},he.apply(this,arguments)};function fe(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}
132
+ r.cloneUnlessOtherwiseSpecified=Je;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):rt(e,t,r):Je(t,r)}nt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return nt(e,r,t)}),{})};var ot=nt,it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},it(e,t)};function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}it(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var at,lt,ut,ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ct.apply(this,arguments)};function ht(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}
133
133
  /**
134
134
  * Type Guards
135
135
  */
136
- function pe(t){return t.type===ue.literal}function de(t){return t.type===ue.argument}function me(t){return t.type===ue.number}function ge(t){return t.type===ue.date}function ye(t){return t.type===ue.time}function be(t){return t.type===ue.select}function ve(t){return t.type===ue.plural}function Ee(t){return t.type===ue.pound}function we(t){return t.type===ue.tag}function _e(t){return!(!t||"object"!=typeof t||t.type!==ce.number)}function Te(t){return!(!t||"object"!=typeof t||t.type!==ce.dateTime)}
136
+ function ft(e){return e.type===lt.literal}function pt(e){return e.type===lt.argument}function dt(e){return e.type===lt.number}function mt(e){return e.type===lt.date}function yt(e){return e.type===lt.time}function gt(e){return e.type===lt.select}function bt(e){return e.type===lt.plural}function vt(e){return e.type===lt.pound}function Et(e){return e.type===lt.tag}function wt(e){return!(!e||"object"!=typeof e||e.type!==ut.number)}function _t(e){return!(!e||"object"!=typeof e||e.type!==ut.dateTime)}
137
137
  // @generated from regex-gen.ts
138
- !function(t){
138
+ !function(e){
139
139
  /** Argument is unclosed (e.g. `{0`) */
140
- t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
140
+ e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
141
141
  /** Argument is empty (e.g. `{}`). */
142
- t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
142
+ e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
143
143
  /** Argument is malformed (e.g. `{foo!}``) */
144
- t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
144
+ e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
145
145
  /** Expect an argument type (e.g. `{foo,}`) */
146
- t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
146
+ e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
147
147
  /** Unsupported argument type (e.g. `{foo,foo}`) */
148
- t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
148
+ e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
149
149
  /** Expect an argument style (e.g. `{foo, number, }`) */
150
- t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
150
+ e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
151
151
  /** The number skeleton is invalid. */
152
- t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
152
+ e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
153
153
  /** The date time skeleton is invalid. */
154
- t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
154
+ e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
155
155
  /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
156
- t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
156
+ e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
157
157
  /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
158
- t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
158
+ e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
159
159
  /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
160
- t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
160
+ e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
161
161
  /** Missing select argument options (e.g. `{foo, select}`) */
162
- t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
162
+ e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
163
163
  /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
164
- t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
164
+ e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
165
165
  /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
166
- t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
166
+ e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
167
167
  /** Expecting a selector in `select` argument (e.g `{foo, select}`) */
168
- t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
168
+ e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
169
169
  /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
170
- t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
170
+ e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
171
171
  /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
172
- t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
172
+ e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
173
173
  /**
174
174
  * Expecting a message fragment after the `plural` or `selectordinal` selector
175
175
  * (e.g. `{foo, plural, one}`)
176
176
  */
177
- t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
177
+ e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
178
178
  /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
179
- t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
179
+ e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
180
180
  /**
181
181
  * Duplicate selectors in `plural` or `selectordinal` argument.
182
182
  * (e.g. {foo, plural, one {#} one {#}})
183
183
  */
184
- t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
184
+ e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
185
185
  /** Duplicate selectors in `select` argument.
186
186
  * (e.g. {foo, select, apple {apple} apple {apple}})
187
187
  */
188
- t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
188
+ e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
189
189
  /** Plural or select argument option must have `other` clause. */
190
- t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
190
+ e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
191
191
  /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
192
- t[t.INVALID_TAG=23]="INVALID_TAG",
192
+ e[e.INVALID_TAG=23]="INVALID_TAG",
193
193
  /** The tag name is invalid. (e.g. `<123>foo</123>`) */
194
- t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
194
+ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
195
195
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
196
- t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
196
+ e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
197
197
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
198
- t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(le||(le={})),function(t){
198
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(at||(at={})),function(e){
199
199
  /**
200
200
  * Raw text
201
201
  */
202
- t[t.literal=0]="literal",
202
+ e[e.literal=0]="literal",
203
203
  /**
204
204
  * Variable w/o any format, e.g `var` in `this is a {var}`
205
205
  */
206
- t[t.argument=1]="argument",
206
+ e[e.argument=1]="argument",
207
207
  /**
208
208
  * Variable w/ number format
209
209
  */
210
- t[t.number=2]="number",
210
+ e[e.number=2]="number",
211
211
  /**
212
212
  * Variable w/ date format
213
213
  */
214
- t[t.date=3]="date",
214
+ e[e.date=3]="date",
215
215
  /**
216
216
  * Variable w/ time format
217
217
  */
218
- t[t.time=4]="time",
218
+ e[e.time=4]="time",
219
219
  /**
220
220
  * Variable w/ select format
221
221
  */
222
- t[t.select=5]="select",
222
+ e[e.select=5]="select",
223
223
  /**
224
224
  * Variable w/ plural format
225
225
  */
226
- t[t.plural=6]="plural",
226
+ e[e.plural=6]="plural",
227
227
  /**
228
228
  * Only possible within plural argument.
229
229
  * This is the `#` symbol that will be substituted with the count.
230
230
  */
231
- t[t.pound=7]="pound",
231
+ e[e.pound=7]="pound",
232
232
  /**
233
233
  * XML-like tag
234
234
  */
235
- t[t.tag=8]="tag"}(ue||(ue={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(ce||(ce={}));var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Be=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
235
+ e[e.tag=8]="tag"}(lt||(lt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ut||(ut={}));var Tt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
236
236
  /**
237
237
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
238
238
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -244,67 +244,67 @@ t[t.tag=8]="tag"}(ue||(ue={})),function(t){t[t.number=0]="number",t[t.dateTime=1
244
244
  * @public
245
245
  * @param skeleton skeleton string
246
246
  */
247
- function Se(t){var e={};return t.replace(Be,(function(t){var r=t.length;switch(t[0]){
247
+ function St(e){var t={};return e.replace(At,(function(e){var r=e.length;switch(e[0]){
248
248
  // Era
249
- case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
249
+ case"G":t.era=4===r?"long":5===r?"narrow":"short";break;
250
250
  // Year
251
- case"y":e.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
251
+ case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
252
252
  // Quarter
253
253
  case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
254
254
  // Month
255
- case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;
255
+ case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;
256
256
  // Week
257
- case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
257
+ case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
258
258
  // Weekday
259
- case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;
259
+ case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;
260
260
  // Period
261
261
  case"a":// AM, PM
262
- e.hour12=!0;break;case"b":// am, pm, noon, midnight
262
+ t.hour12=!0;break;case"b":// am, pm, noon, midnight
263
263
  case"B":// flexible day periods
264
264
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
265
265
  // Hour
266
- case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
266
+ case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
267
267
  // Minute
268
- case"m":e.minute=["numeric","2-digit"][r-1];break;
268
+ case"m":t.minute=["numeric","2-digit"][r-1];break;
269
269
  // Second
270
- case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
270
+ case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
271
271
  // Zone
272
272
  case"z":// 1..3, 4: specific non-location format
273
- e.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
273
+ t.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
274
274
  case"O":// 1, 4: miliseconds in day short, long
275
275
  case"v":// 1, 4: generic non-location format
276
276
  case"V":// 1, 2, 3, 4: time zone ID or city
277
277
  case"X":// 1, 2, 3, 4: The ISO8601 varios formats
278
278
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
279
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
279
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
280
280
  // @generated from regex-gen.ts
281
- var He=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Pe=/^(@+)?(\+|#+)?[rs]?$/g,Ie=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Ce(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Pe,(function(t,r,n){
281
+ var Bt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ht=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?[rs]?$/g,Pt=/(\*)(0+)|(#+)(0+)|(0+)/g,It=/^(0+)$/;function Ot(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Lt,(function(e,r,n){
282
282
  // @@@ case
283
- return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function xe(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Re(t){
283
+ return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ct(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nt(e){
284
284
  // Engineering
285
- var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ne(t){var e=xe(t);return e||{}}
285
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!It.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xt(e){var t=Ct(e);return t||{}}
286
286
  /**
287
287
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
288
- */function Me(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=he(he(he({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"engineering":e=he(he(he({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
288
+ */function Rt(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ct(ct(ct({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ct(ct({},e),xt(t))}),{}));continue;case"engineering":t=ct(ct(ct({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ct(ct({},e),xt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
289
289
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
290
- case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;
290
+ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;
291
291
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
292
- case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ie,(function(t,r,n,o,i,s){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
292
+ case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Pt,(function(e,r,n,o,i,s){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
293
293
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
294
- if(Oe.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){
294
+ if(It.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ht.test(o.stem)){
295
295
  // Precision
296
296
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
297
297
  // precision-integer case
298
- if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,(function(t,r,n,o,i,s){
298
+ if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ht,(function(e,r,n,o,i,s){
299
299
  // .000* case (before ICU67 it was .000+)
300
- return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&s?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var i=o.options[0];
300
+ return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&s?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];
301
301
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
302
- "w"===i?e=he(he({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=he(he({},e),Ce(i)))}
302
+ "w"===i?t=ct(ct({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ct(ct({},t),Ot(i)))}
303
303
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
304
- else if(Pe.test(o.stem))e=he(he({},e),Ce(o.stem));else{var s=xe(o.stem);s&&(e=he(he({},e),s));var a=Re(o.stem);a&&(e=he(he({},e),a))}}return e}
304
+ else if(Lt.test(o.stem))t=ct(ct({},t),Ot(o.stem));else{var s=Ct(o.stem);s&&(t=ct(ct({},t),s));var a=Nt(o.stem);a&&(t=ct(ct({},t),a))}}return t}
305
305
  // @generated from time-data-gen.ts
306
306
  // prettier-ignore
307
- var De,Ue={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
307
+ var Mt,Dt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
308
308
  /**
309
309
  * Returns the best matching date time pattern if a date time skeleton
310
310
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -317,45 +317,45 @@ var De,Ue={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
317
317
  * of the given `locale` to the corresponding time pattern.
318
318
  * @param locale
319
319
  */
320
- function Fe(t){var e=t.hourCycle;if(void 0===e&&
320
+ function Ut(e){var t=e.hourCycle;if(void 0===t&&
321
321
  // @ts-ignore hourCycle(s) is not identified yet
322
- t.hourCycles&&
322
+ e.hourCycles&&
323
323
  // @ts-ignore
324
- t.hourCycles.length&&(
324
+ e.hourCycles.length&&(
325
325
  // @ts-ignore
326
- e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
326
+ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
327
327
  // TODO: Once hourCycle is fully supported remove the following with data generation
328
- var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ue[r||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"])[0]}var ke=new RegExp("^".concat(Ae.source,"*")),$e=new RegExp("".concat(Ae.source,"*$"));function Ge(t,e){return{start:t,end:e}}
328
+ var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Dt[r||""]||Dt[n||""]||Dt["".concat(n,"-001")]||Dt["001"])[0]}var Ft=new RegExp("^".concat(Tt.source,"*")),kt=new RegExp("".concat(Tt.source,"*$"));function Gt(e,t){return{start:e,end:t}}
329
329
  // #region Ponyfills
330
330
  // Consolidate these variables up top for easier toggling during debugging
331
- var je=!!String.prototype.startsWith,We=!!String.fromCodePoint,Xe=!!Object.fromEntries,Ve=!!String.prototype.codePointAt,ze=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,Ze=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ye=!0;try{
331
+ var jt=!!String.prototype.startsWith,$t=!!String.fromCodePoint,Wt=!!Object.fromEntries,Xt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Kt=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Zt=!0;try{
332
332
  /**
333
333
  * legacy Edge or Xbox One browser
334
334
  * Unicode flag support: supported
335
335
  * Pattern_Syntax support: not supported
336
336
  * See https://github.com/formatjs/formatjs/issues/2822
337
337
  */
338
- Ye="a"===(null===(De=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===De?void 0:De[0])}catch(t){Ye=!1}var qe,Je=je?// Native
339
- function(t,e,r){return t.startsWith(e,r)}:// For IE11
340
- function(t,e,r){return t.slice(r,r+e.length)===e},Qe=We?String.fromCodePoint:// IE11
341
- function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},tr=
338
+ Zt="a"===(null===(Mt=nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Mt?void 0:Mt[0])}catch(e){Zt=!1}var Yt,qt=jt?// Native
339
+ function(e,t,r){return e.startsWith(t,r)}:// For IE11
340
+ function(e,t,r){return e.slice(r,r+t.length)===t},Jt=$t?String.fromCodePoint:// IE11
341
+ function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Qt=
342
342
  // native
343
- Xe?Object.fromEntries:// Ponyfill
344
- function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},er=Ve?// Native
345
- function(t,e){return t.codePointAt(e)}:// IE 11
346
- function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},rr=ze?// Native
347
- function(t){return t.trimStart()}:// Ponyfill
348
- function(t){return t.replace(ke,"")},nr=Ke?// Native
349
- function(t){return t.trimEnd()}:// Ponyfill
350
- function(t){return t.replace($e,"")};
343
+ Wt?Object.fromEntries:// Ponyfill
344
+ function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s}return t},er=Xt?// Native
345
+ function(e,t){return e.codePointAt(t)}:// IE 11
346
+ function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},tr=Vt?// Native
347
+ function(e){return e.trimStart()}:// Ponyfill
348
+ function(e){return e.replace(Ft,"")},rr=zt?// Native
349
+ function(e){return e.trimEnd()}:// Ponyfill
350
+ function(e){return e.replace(kt,"")};
351
351
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
352
- function or(t,e){return new RegExp(t,e)}
352
+ function nr(e,t){return new RegExp(e,t)}
353
353
  // #endregion
354
- if(Ye){
354
+ if(Zt){
355
355
  // Native
356
- var ir=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(t,e){var r;return ir.lastIndex=e,null!==(r=ir.exec(t)[1])&&void 0!==r?r:""}}else
356
+ var or=nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(e,t){var r;return or.lastIndex=t,null!==(r=or.exec(e)[1])&&void 0!==r?r:""}}else
357
357
  // IE11
358
- qe=function(t,e){for(var r=[];;){var n=er(t,e);if(void 0===n||ur(n)||cr(n))break;r.push(n),e+=n>=65536?2:1}return Qe.apply(void 0,r)};var sr=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(le.UNMATCHED_CLOSING_TAG,Ge(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ue.pound,location:Ge(s,this.clonePosition())})}}}return{val:n,err:null}},
358
+ Yt=function(e,t){for(var r=[];;){var n=er(e,t);if(void 0===n||lr(n)||ur(n))break;r.push(n),t+=n>=65536?2:1}return Jt.apply(void 0,r)};var ir=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&e>0)break;if(35/* `#` */!==o||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(at.UNMATCHED_CLOSING_TAG,Gt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&sr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:lt.pound,location:Gt(s,this.clonePosition())})}}}return{val:n,err:null}},
359
359
  /**
360
360
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
361
361
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -374,24 +374,24 @@ qe=function(t,e){for(var r=[];;){var n=er(t,e);if(void 0===n||ur(n)||cr(n))break
374
374
  * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
375
375
  * since other tag-based engines like React allow it
376
376
  */
377
- t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
377
+ e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();// `<`
378
378
  var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
379
379
  // Self closing tag
380
- return{val:{type:ue.literal,value:"<".concat(n,"/>"),location:Ge(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
380
+ return{val:{type:lt.literal,value:"<".concat(n,"/>"),location:Gt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
381
381
  // Expecting a close tag
382
- if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(le.INVALID_TAG,Ge(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(le.UNMATCHED_CLOSING_TAG,Ge(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ue.tag,value:n,children:i,location:Ge(r,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,Ge(s,this.clonePosition())))}return this.error(le.UNCLOSED_TAG,Ge(r,this.clonePosition()))}return this.error(le.INVALID_TAG,Ge(r,this.clonePosition()))},
382
+ if(this.bumpIf("</")){if(this.isEOF()||!sr(this.char()))return this.error(at.INVALID_TAG,Gt(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(at.UNMATCHED_CLOSING_TAG,Gt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:lt.tag,value:n,children:i,location:Gt(r,this.clonePosition())},err:null}:this.error(at.INVALID_TAG,Gt(s,this.clonePosition())))}return this.error(at.UNCLOSED_TAG,Gt(r,this.clonePosition()))}return this.error(at.INVALID_TAG,Gt(r,this.clonePosition()))},
383
383
  /**
384
384
  * This method assumes that the caller has peeked ahead for the first tag character.
385
385
  */
386
- t.prototype.parseTagName=function(){var t=this.offset();// the first tag name character
387
- for(this.bump();!this.isEOF()&&lr(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ge(r,this.clonePosition());return{val:{type:ue.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(ar(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
386
+ e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
387
+ for(this.bump();!this.isEOF()&&ar(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Gt(r,this.clonePosition());return{val:{type:lt.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(sr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
388
388
  /** See `parseTag` function docs. */},
389
389
  /**
390
390
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
391
391
  * a character that requires quoting (that is, "only where needed"), and works the same in
392
392
  * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
393
393
  */
394
- t.prototype.tryParseQuote=function(t){if(this.isEOF()||39/* `'` */!==this.char())return null;
394
+ e.prototype.tryParseQuote=function(e){if(this.isEOF()||39/* `'` */!==this.char())return null;
395
395
  // Parse escaped char following the apostrophe, or early return if there is no escaped char.
396
396
  // Check if is valid escaped character
397
397
  switch(this.peek()){case 39/* `'` */:
@@ -399,74 +399,74 @@ switch(this.peek()){case 39/* `'` */:
399
399
  return this.bump(),this.bump(),"'";
400
400
  // '{', '<', '>', '}'
401
401
  case 123:case 60:case 62:case 125:break;case 35:// '#'
402
- if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();// apostrophe
403
- var e=[this.char()];// escaped char
402
+ if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();// apostrophe
403
+ var t=[this.char()];// escaped char
404
404
  // read chars until the optional closing apostrophe is found
405
405
  for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
406
406
  // Optional closing apostrophe.
407
- this.bump();break}e.push(39),
407
+ this.bump();break}t.push(39),
408
408
  // Bump one more time because we need to skip 2 characters.
409
- this.bump()}else e.push(r);this.bump()}return Qe.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),Qe(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
410
- this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(le.EMPTY_ARGUMENT,Ge(r,this.clonePosition()));
409
+ this.bump()}else t.push(r);this.bump()}return Jt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),Jt(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
410
+ this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(at.EMPTY_ARGUMENT,Gt(r,this.clonePosition()));
411
411
  // argument name
412
- var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(le.MALFORMED_ARGUMENT,Ge(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(r,this.clonePosition()));switch(this.char()){
412
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(at.MALFORMED_ARGUMENT,Gt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition()));switch(this.char()){
413
413
  // Simple argument: `{name}`
414
414
  case 125/* `}` */:// `}`
415
- return this.bump(),{val:{type:ue.argument,
415
+ return this.bump(),{val:{type:lt.argument,
416
416
  // value does not include the opening and closing braces.
417
- value:n,location:Ge(r,this.clonePosition())},err:null};
417
+ value:n,location:Gt(r,this.clonePosition())},err:null};
418
418
  // Argument with options: `{name, format, ...}`
419
419
  case 44/* `,` */:return this.bump(),// `,`
420
- this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(le.MALFORMED_ARGUMENT,Ge(r,this.clonePosition()))}},
420
+ this.bumpSpace(),this.isEOF()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(at.MALFORMED_ARGUMENT,Gt(r,this.clonePosition()))}},
421
421
  /**
422
422
  * Advance the parser until the end of the identifier, if it is currently on
423
423
  * an identifier character. Return an empty string otherwise.
424
424
  */
425
- t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=qe(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Ge(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
425
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Yt(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Gt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
426
426
  // Parse this range:
427
427
  // {name, type, style}
428
428
  // ^---^
429
429
  switch(s){case"":
430
430
  // Expecting a style string number, date, time, plural, selectordinal, or select.
431
- return this.error(le.EXPECT_ARGUMENT_TYPE,Ge(i,a));case"number":case"date":case"time":
431
+ return this.error(at.EXPECT_ARGUMENT_TYPE,Gt(i,a));case"number":case"date":case"time":
432
432
  // Parse this range:
433
433
  // {name, number, style}
434
434
  // ^-------^
435
- this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=nr(y.val)).length)return this.error(le.EXPECT_ARGUMENT_STYLE,Ge(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ge(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ge(n,this.clonePosition());
435
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=rr(g.val)).length)return this.error(at.EXPECT_ARGUMENT_STYLE,Gt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Gt(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Gt(n,this.clonePosition());
436
436
  // Extract style or skeleton
437
- if(l&&Je(null==l?void 0:l.style,"::",0)){
437
+ if(l&&qt(null==l?void 0:l.style,"::",0)){
438
438
  // Skeleton starts with `::`.
439
- var h=rr(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ue.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(le.EXPECT_DATE_TIME_SKELETON,c);var f=h;
439
+ var h=tr(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:lt.number,value:r,location:c,style:g.val},err:null};if(0===h.length)return this.error(at.EXPECT_DATE_TIME_SKELETON,c);var f=h;
440
440
  // Get "best match" pattern only if locale is passed, if not, let it
441
441
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
442
442
  // for unsupported patterns.
443
- this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Fe(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:ce.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Se(f):{}};return{val:{type:"date"===s?ue.date:ue.time,value:r,location:c,style:p},err:null}}
443
+ this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Ut(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:ut.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?St(f):{}};return{val:{type:"date"===s?lt.date:lt.time,value:r,location:c,style:p},err:null}}
444
444
  // Regular style or no style.
445
- return{val:{type:"number"===s?ue.number:"date"===s?ue.date:ue.time,value:r,location:c,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
445
+ return{val:{type:"number"===s?lt.number:"date"===s?lt.date:lt.time,value:r,location:c,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
446
446
  // Parse this range:
447
447
  // {name, plural, options}
448
448
  // ^---------^
449
- var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(le.EXPECT_SELECT_ARGUMENT_OPTIONS,Ge(d,he({},d)));this.bumpSpace();
449
+ var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(at.EXPECT_SELECT_ARGUMENT_OPTIONS,Gt(d,ct({},d)));this.bumpSpace();
450
450
  // Parse offset:
451
451
  // {name, plural, offset:1, options}
452
452
  // ^-----^
453
453
  // or the first option:
454
454
  // {name, plural, one {...} other {...}}
455
455
  // ^--^
456
- var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ge(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
456
+ var m=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Gt(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,at.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
457
457
  // Parse another identifier for option parsing
458
- this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,m);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Ge(n,this.clonePosition());return"select"===s?{val:{type:ue.select,value:r,options:tr(v.val),location:E},err:null}:{val:{type:ue.plural,value:r,options:tr(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(le.INVALID_ARGUMENT_TYPE,Ge(i,a))}},t.prototype.tryParseArgumentClose=function(t){
458
+ this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=g.val}var b,v=this.tryParsePluralOrSelectOptions(e,s,t,m);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Gt(n,this.clonePosition());return"select"===s?{val:{type:lt.select,value:r,options:Qt(v.val),location:E},err:null}:{val:{type:lt.plural,value:r,options:Qt(v.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(at.INVALID_ARGUMENT_TYPE,Gt(i,a))}},e.prototype.tryParseArgumentClose=function(e){
459
459
  // Parse: {value, number, ::currency/GBP }
460
- return this.isEOF()||125/* `}` */!==this.char()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
460
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
461
461
  /**
462
462
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
463
463
  */
464
- t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
464
+ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
465
465
  // Treat apostrophe as quoting but include it in the style part.
466
466
  // Find the end of the quoted literal text.
467
- this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ge(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
467
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(at.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Gt(r,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
468
468
  // Parse the skeleton
469
- for(var e=t.split(He).filter((function(t){return t.length>0})),r=[],n=0,o=e;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),l=0,u=a;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(t)}catch(t){return this.error(le.INVALID_NUMBER_SKELETON,e)}return{val:{type:ce.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Me(r):{}},err:null}},
469
+ for(var t=e.split(Bt).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),l=0,u=a;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(at.INVALID_NUMBER_SKELETON,t)}return{val:{type:ut.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Rt(r):{}},err:null}},
470
470
  /**
471
471
  * @param nesting_level The current nesting level of messages.
472
472
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -477,139 +477,139 @@ for(var e=t.split(He).filter((function(t){return t.length>0})),r=[],n=0,o=e;n<o.
477
477
  * between a pair of opening and closing tags. The nested message will not parse beyond
478
478
  * the closing tag boundary.
479
479
  */
480
- t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
480
+ e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
481
481
  // Parse:
482
482
  // one {one apple}
483
483
  // ^--^
484
- for(var o,i=!1,s=[],a=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
484
+ for(var o,i=!1,s=[],a=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
485
485
  // Try parse `={number}` selector
486
- var h=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Ge(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
486
+ var h=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_SELECTOR,at.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Gt(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
487
487
  // Duplicate selector clauses
488
- if(a.has(l))return this.error("select"===e?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),
488
+ if(a.has(l))return this.error("select"===t?at.DUPLICATE_SELECT_ARGUMENT_SELECTOR:at.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),
489
489
  // Parse:
490
490
  // one {one apple}
491
491
  // ^----------^
492
- this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ge(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([l,{value:p.val,location:Ge(f,this.clonePosition())}]),
492
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:at.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Gt(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([l,{value:p.val,location:Gt(f,this.clonePosition())}]),
493
493
  // Keep track of the existing selectors
494
494
  a.add(l),
495
495
  // Prep next selector clause.
496
- this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ge(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(le.MISSING_OTHER_CLAUSE,Ge(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Ge(n,this.clonePosition());return o?Ze(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
496
+ this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR:at.EXPECT_PLURAL_ARGUMENT_SELECTOR,Gt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(at.MISSING_OTHER_CLAUSE,Gt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Gt(n,this.clonePosition());return o?Kt(i*=r)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
497
497
  // This is much faster than `Object.assign` or spread.
498
498
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
499
499
  /**
500
500
  * Return the code point at the current position of the parser.
501
501
  * Throws if the index is out of bound.
502
502
  */
503
- t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=er(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
503
+ e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=er(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
504
504
  /** Bump the parser to the next UTF-16 code unit. */
505
- t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
505
+ e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
506
506
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
507
- this.position.offset+=t<65536?1:2)}},
507
+ this.position.offset+=e<65536?1:2)}},
508
508
  /**
509
509
  * If the substring starting at the current position of the parser has
510
510
  * the given prefix, then bump the parser to the character immediately
511
511
  * following the prefix and return true. Otherwise, don't bump the parser
512
512
  * and return false.
513
513
  */
514
- t.prototype.bumpIf=function(t){if(Je(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
514
+ e.prototype.bumpIf=function(e){if(qt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
515
515
  /**
516
516
  * Bump the parser until the pattern character is found and return `true`.
517
517
  * Otherwise bump to the end of the file and return `false`.
518
518
  */
519
- t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
519
+ e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
520
520
  /**
521
521
  * Bump the parser to the target offset.
522
522
  * If target offset is beyond the end of the input, bump the parser to the end of the input.
523
523
  */
524
- t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
524
+ e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
525
525
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
526
- t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ur(this.char());)this.bump()},
526
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},
527
527
  /**
528
528
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
529
529
  * If the input has been exhausted, then this returns null.
530
530
  */
531
- t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
531
+ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();
532
532
  /**
533
533
  * This check if codepoint is alphabet (lower & uppercase)
534
534
  * @param codepoint
535
535
  * @returns
536
- */function ar(t){return t>=97&&t<=122||t>=65&&t<=90}function lr(t){return 45/* '-' */===t||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}
536
+ */function sr(e){return e>=97&&e<=122||e>=65&&e<=90}function ar(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
537
537
  /**
538
538
  * Code point equivalent of regex `\p{White_Space}`.
539
539
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
540
- */function ur(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
540
+ */function lr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
541
541
  /**
542
542
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
543
543
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
544
- */function cr(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function hr(t){t.forEach((function(t){if(delete t.location,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,hr(t.options[e].value);else me(t)&&_e(t.style)||(ge(t)||ye(t))&&Te(t.style)?delete t.style.location:we(t)&&hr(t.children)}))}function fr(t,e){void 0===e&&(e={}),e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new sr(t,e).parse();if(r.err){var n=SyntaxError(le[r.err.kind]);
544
+ */function ur(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function cr(e){e.forEach((function(e){if(delete e.location,gt(e)||bt(e))for(var t in e.options)delete e.options[t].location,cr(e.options[t].value);else dt(e)&&wt(e.style)||(mt(e)||yt(e))&&_t(e.style)?delete e.style.location:Et(e)&&cr(e.children)}))}function hr(e,t){void 0===t&&(t={}),t=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ir(e,t).parse();if(r.err){var n=SyntaxError(at[r.err.kind]);
545
545
  // @ts-expect-error Assign to error object
546
546
  throw n.location=r.err.location,
547
547
  // @ts-expect-error Assign to error object
548
- n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||hr(r.val),r.val}
548
+ n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||cr(r.val),r.val}
549
549
 
550
550
  // Main
551
551
 
552
- function pr(t,e){var r=e&&e.cache?e.cache:wr,n=e&&e.serializer?e.serializer:br;return(e&&e.strategy?e.strategy:yr)(t,{cache:r,serializer:n})}
552
+ function fr(e,t){var r=t&&t.cache?t.cache:Er,n=t&&t.serializer?t.serializer:gr;return(t&&t.strategy?t.strategy:yr)(e,{cache:r,serializer:n})}
553
553
 
554
554
  // Strategy
555
555
 
556
- function dr(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=e.get(i);return void 0===s&&(s=t.call(this,n),e.set(i,s)),s}function mr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function gr(t,e,r,n,o){return r.bind(e,t,n,o)}function yr(t,e){return gr(t,this,1===t.length?dr:mr,e.cache.create(),e.serializer)}
556
+ function pr(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function mr(e,t,r,n,o){return r.bind(t,e,n,o)}function yr(e,t){return mr(e,this,1===e.length?pr:dr,t.cache.create(),t.serializer)}
557
557
  // Serializer
558
- var br=function(){return JSON.stringify(arguments)};
558
+ var gr=function(){return JSON.stringify(arguments)};
559
559
 
560
560
  // Cache
561
561
 
562
- function vr(){this.cache=Object.create(null)}vr.prototype.get=function(t){return this.cache[t]},vr.prototype.set=function(t,e){this.cache[t]=e};var Er,wr={create:function(){
562
+ function br(){this.cache=Object.create(null)}br.prototype.get=function(e){return this.cache[e]},br.prototype.set=function(e,t){this.cache[e]=t};var vr,Er={create:function(){
563
563
  // @ts-ignore
564
- return new vr}},_r={variadic:function(t,e){return gr(t,this,mr,e.cache.create(),e.serializer)},monadic:function(t,e){return gr(t,this,dr,e.cache.create(),e.serializer)}};!function(t){
564
+ return new br}},wr={variadic:function(e,t){return mr(e,this,dr,t.cache.create(),t.serializer)},monadic:function(e,t){return mr(e,this,pr,t.cache.create(),t.serializer)}};!function(e){
565
565
  // When we have a placeholder but no value to format
566
- t.MISSING_VALUE="MISSING_VALUE",
566
+ e.MISSING_VALUE="MISSING_VALUE",
567
567
  // When value supplied is invalid
568
- t.INVALID_VALUE="INVALID_VALUE",
568
+ e.INVALID_VALUE="INVALID_VALUE",
569
569
  // When we need specific Intl API but it's not available
570
- t.MISSING_INTL_API="MISSING_INTL_API"}(Er||(Er={}));var Tr,Ar=/** @class */function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return ae(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Br=/** @class */function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Er.INVALID_VALUE,o)||this}return ae(e,t),e}(Ar),Sr=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),Er.INVALID_VALUE,n)||this}return ae(e,t),e}(Ar),Hr=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),Er.MISSING_VALUE,r)||this}return ae(e,t),e}(Ar);function Lr(t){return"function"==typeof t}
570
+ e.MISSING_INTL_API="MISSING_INTL_API"}(vr||(vr={}));var _r,Tr=/** @class */function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return st(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ar=/** @class */function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),vr.INVALID_VALUE,o)||this}return st(t,e),t}(Tr),Sr=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),vr.INVALID_VALUE,n)||this}return st(t,e),t}(Tr),Br=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),vr.MISSING_VALUE,r)||this}return st(t,e),t}(Tr);function Hr(e){return"function"==typeof e}
571
571
  // TODO(skeleton): add skeleton support
572
- function Pr(t,e,r,n,o,i,
572
+ function Lr(e,t,r,n,o,i,
573
573
  // For debugging
574
574
  s){
575
575
  // Hot path for straight simple msg translations
576
- if(1===t.length&&pe(t[0]))return[{type:Tr.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];
576
+ if(1===e.length&&ft(e[0]))return[{type:_r.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
577
577
  // Exit early for string parts.
578
- if(pe(c))a.push({type:Tr.literal,value:c.value});else
578
+ if(ft(c))a.push({type:_r.literal,value:c.value});else
579
579
  // TODO: should this part be literal type?
580
580
  // Replace `#` in plural rules with the actual numeric value.
581
- if(Ee(c))"number"==typeof i&&a.push({type:Tr.literal,value:r.getNumberFormat(e).format(i)});else{var h=c.value;
581
+ if(vt(c))"number"==typeof i&&a.push({type:_r.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;
582
582
  // Enforce that all required values are provided by the caller.
583
- if(!o||!(h in o))throw new Hr(h,s);var f=o[h];if(de(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Tr.literal:Tr.object,value:f});else
583
+ if(!o||!(h in o))throw new Br(h,s);var f=o[h];if(pt(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?_r.literal:_r.object,value:f});else
584
584
  // Recursively format plural and select parts' option — which can be a
585
585
  // nested pattern structure. The choosing of the option to use is
586
586
  // abstracted-by and delegated-to the part helper object.
587
- if(ge(c)){var p="string"==typeof c.style?n.date[c.style]:Te(c.style)?c.style.parsedOptions:void 0;a.push({type:Tr.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ye(c)){p="string"==typeof c.style?n.time[c.style]:Te(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:Tr.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(me(c)){(p="string"==typeof c.style?n.number[c.style]:_e(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Tr.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(we(c)){var d=c.children,m=c.value,g=o[m];if(!Lr(g))throw new Sr(m,"function",s);var y=g(Pr(d,e,r,n,o,i).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?Tr.literal:Tr.object,value:t}})))}if(be(c)){if(!(b=c.options[f]||c.options.other))throw new Br(c.value,f,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o))}else if(ve(c)){var b;if(!(b=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ar('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Er.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new Br(c.value,f,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o,f-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===Tr.literal&&e.type===Tr.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
587
+ if(mt(c)){var p="string"==typeof c.style?n.date[c.style]:_t(c.style)?c.style.parsedOptions:void 0;a.push({type:_r.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(yt(c)){p="string"==typeof c.style?n.time[c.style]:_t(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:_r.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(dt(c)){(p="string"==typeof c.style?n.number[c.style]:wt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:_r.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(Et(c)){var d=c.children,m=c.value,y=o[m];if(!Hr(y))throw new Sr(m,"function",s);var g=y(Lr(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?_r.literal:_r.object,value:e}})))}if(gt(c)){if(!(b=c.options[f]||c.options.other))throw new Ar(c.value,f,Object.keys(c.options),s);a.push.apply(a,Lr(b.value,t,r,n,o))}else if(bt(c)){var b;if(!(b=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vr.MISSING_INTL_API,s);var v=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new Ar(c.value,f,Object.keys(c.options),s);a.push.apply(a,Lr(b.value,t,r,n,o,f-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===_r.literal&&t.type===_r.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
588
588
  /*
589
589
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
590
590
  Copyrights licensed under the New BSD License.
591
591
  See the accompanying LICENSE file for terms.
592
592
  */
593
593
  // -- MessageFormat --------------------------------------------------------
594
- function Ir(t,e){return e?Object.keys(t).reduce((function(r,n){var o,i;return r[n]=(o=t[n],(i=e[n])?he(he(he({},o||{}),i||{}),Object.keys(o).reduce((function(t,e){return t[e]=he(he({},o[e]),i[e]||{}),t}),{})):o),r}),he({},t)):t}function Or(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Tr||(Tr={}));var Cr=/** @class */function(){function t(e,r,n,o){var i,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
594
+ function Pr(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?ct(ct(ct({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ct(ct({},o[t]),i[t]||{}),e}),{})):o),r}),ct({},e)):e}function Ir(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(_r||(_r={}));var Or=/** @class */function(){function e(t,r,n,o){var i,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
595
595
  // Hot path for straight simple msg translations
596
- if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===Tr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Pr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
596
+ if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===_r.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Lr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
597
597
  // Defined first because it's used to build the format pattern.
598
- this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
598
+ this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
599
599
  // Parse string messages into an AST.
600
- this.ast=t.__parse(e,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
600
+ this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
601
601
  // Creates a new object with the specified `formats` merged with the default
602
602
  // formats.
603
- this.formats=Ir(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,fe([void 0],e,!1)))}),{cache:Or(i.number),strategy:_r.variadic}),getDateTimeFormat:pr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,fe([void 0],e,!1)))}),{cache:Or(i.dateTime),strategy:_r.variadic}),getPluralRules:pr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,fe([void 0],e,!1)))}),{cache:Or(i.pluralRules),strategy:_r.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=fr,
603
+ this.formats=Pr(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ht([void 0],t,!1)))}),{cache:Ir(i.number),strategy:wr.variadic}),getDateTimeFormat:fr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ht([void 0],t,!1)))}),{cache:Ir(i.dateTime),strategy:wr.variadic}),getPluralRules:fr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ht([void 0],t,!1)))}),{cache:Ir(i.pluralRules),strategy:wr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=hr,
604
604
  // Default format options used as the prototype of the `formats` provided to the
605
605
  // constructor. These are used when constructing the internal Intl.NumberFormat
606
606
  // and Intl.DateTimeFormat instances.
607
- t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),xr=Cr;
607
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Cr=Or;
608
608
  /*
609
609
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
610
610
  Copyrights licensed under the New BSD License.
611
611
  See the accompanying LICENSE file for terms.
612
- */const Rr={},Nr=(t,e,r)=>r?(e in Rr||(Rr[e]={}),t in Rr[e]||(Rr[e][t]=r),r):r,Mr=(t,e)=>{if(null==e)return;if(e in Rr&&t in Rr[e])return Rr[e][t];const r=tn(e);for(let n=0;n<r.length;n++){const o=kr(r[n],t);if(o)return Nr(t,e,o)}};let Dr;const Ur=Zt({});function Fr(t){return t in Dr}function kr(t,e){if(!Fr(t))return null;const r=function(t){return Dr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function $r(t,...e){delete Rr[t],Ur.update((r=>(r[t]=ie.all([r[t]||{},...e]),r)))}Yt([Ur],(([t])=>Object.keys(t))),Ur.subscribe((t=>Dr=t));const Gr={};function jr(t){return Gr[t]}function Wr(t){return null!=t&&tn(t).some((t=>{var e;return null===(e=jr(t))||void 0===e?void 0:e.size}))}const Xr={};function Vr(t){if(!Wr(t))return t in Xr?Xr[t]:Promise.resolve();const e=function(t){return tn(t).map((t=>{const e=jr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Xr[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Gr[t].delete(e),0===Gr[t].size&&delete Gr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>$r(t,...e)))}(t,e)))).then((()=>{if(Wr(t))return Vr(t);delete Xr[t]})),Xr[t]}
612
+ */const Nr={},xr=(e,t,r)=>r?(t in Nr||(Nr[t]={}),e in Nr[t]||(Nr[t][e]=r),r):r,Rr=(e,t)=>{if(null==t)return;if(t in Nr&&e in Nr[t])return Nr[t][e];const r=Qr(t);for(let n=0;n<r.length;n++){const o=Fr(r[n],e);if(o)return xr(e,t,o)}};let Mr;const Dr=Ke({});function Ur(e){return e in Mr}function Fr(e,t){if(!Ur(e))return null;const r=function(e){return Mr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function kr(e,...t){delete Nr[e],Dr.update((r=>(r[e]=ot.all([r[e]||{},...t]),r)))}Ze([Dr],(([e])=>Object.keys(e))),Dr.subscribe((e=>Mr=e));const Gr={};function jr(e){return Gr[e]}function $r(e){return null!=e&&Qr(e).some((e=>{var t;return null===(t=jr(e))||void 0===t?void 0:t.size}))}const Wr={};function Xr(e){if(!$r(e))return e in Wr?Wr[e]:Promise.resolve();const t=function(e){return Qr(e).map((e=>{const t=jr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Wr[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){Gr[e].delete(t),0===Gr[e].size&&delete Gr[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>kr(e,...t)))}(e,t)))).then((()=>{if($r(e))return Xr(e);delete Wr[e]})),Wr[e]}
613
613
  /*! *****************************************************************************
614
614
  Copyright (c) Microsoft Corporation.
615
615
 
@@ -623,7 +623,7 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
623
623
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
624
624
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
625
625
  PERFORMANCE OF THIS SOFTWARE.
626
- ***************************************************************************** */function zr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}const Kr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Zr(){return Kr}const Yr=Zt(!1);let qr;const Jr=Zt(null);function Qr(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function tn(t,e=Zr().fallbackLocale){const r=Qr(t);return e?[...new Set([...r,...Qr(e)])]:r}function en(){return null!=qr?qr:void 0}Jr.subscribe((t=>{qr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const rn=Object.assign(Object.assign({},Jr),{set:t=>{if(t&&function(t){if(null==t)return;const e=tn(t);for(let t=0;t<e.length;t++){const r=e[t];if(Fr(r))return r}}(t)&&Wr(t)){const{loadingDelay:e}=Zr();let r;return"undefined"!=typeof window&&null!=en()&&e?r=window.setTimeout((()=>Yr.set(!0)),e):Yr.set(!0),Vr(t).then((()=>{Jr.set(t)})).finally((()=>{clearTimeout(r),Yr.set(!1)}))}return Jr.set(t)}}),nn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},on=(t,e)=>{const{formats:r}=Zr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},sn=nn((t=>{var{locale:e,format:r}=t,n=zr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=on("number",r)),new Intl.NumberFormat(e,n)})),an=nn((t=>{var{locale:e,format:r}=t,n=zr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=on("date",r):0===Object.keys(n).length&&(n=on("date","short")),new Intl.DateTimeFormat(e,n)})),ln=nn((t=>{var{locale:e,format:r}=t,n=zr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=on("time",r):0===Object.keys(n).length&&(n=on("time","short")),new Intl.DateTimeFormat(e,n)})),un=nn(((t,e=en())=>new xr(t,e,Zr().formats,{ignoreTag:Zr().ignoreTag}))),cn=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=en(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Mr(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=Zr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))&&void 0!==o?o:u)&&void 0!==i?i:t;if(!a)return c;let h=c;try{h=un(c,l).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},hn=(t,e)=>((t={})=>{var{locale:e=en()}=t,r=zr(t,["locale"]);return ln(Object.assign({locale:e},r))})(e).format(t),fn=(t,e)=>((t={})=>{var{locale:e=en()}=t,r=zr(t,["locale"]);return an(Object.assign({locale:e},r))})(e).format(t),pn=(t,e)=>((t={})=>{var{locale:e=en()}=t,r=zr(t,["locale"]);return sn(Object.assign({locale:e},r))})(e).format(t),dn=(t,e=en())=>Mr(t,e),mn=Yt([rn,Ur],(()=>cn));Yt([rn],(()=>hn)),Yt([rn],(()=>fn)),Yt([rn],(()=>pn)),Yt([rn,Ur],(()=>dn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Vt.indexOf(t)){let r=new Xt(e);zt[t]=r,Vt.push(t)}return zt[t]}};const gn={en:{wageringSlider:{title:"- Wagering Bonus -"}},tr:{wageringSlider:{title:"- Wagering Bonus -"}},el:{wageringSlider:{title:"- Wagering Bonus -"}},ro:{wageringSlider:{title:"- Wagering Bonus -"}}};var yn=function(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){
626
+ ***************************************************************************** */function Vr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const zr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Kr(){return zr}const Zr=Ke(!1);let Yr;const qr=Ke(null);function Jr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Qr(e,t=Kr().fallbackLocale){const r=Jr(e);return t?[...new Set([...r,...Jr(t)])]:r}function en(){return null!=Yr?Yr:void 0}qr.subscribe((e=>{Yr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const tn=Object.assign(Object.assign({},qr),{set:e=>{if(e&&function(e){if(null==e)return;const t=Qr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Ur(r))return r}}(e)&&$r(e)){const{loadingDelay:t}=Kr();let r;return"undefined"!=typeof window&&null!=en()&&t?r=window.setTimeout((()=>Zr.set(!0)),t):Zr.set(!0),Xr(e).then((()=>{qr.set(e)})).finally((()=>{clearTimeout(r),Zr.set(!1)}))}return qr.set(e)}}),rn=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},nn=(e,t)=>{const{formats:r}=Kr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},on=rn((e=>{var{locale:t,format:r}=e,n=Vr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=nn("number",r)),new Intl.NumberFormat(t,n)})),sn=rn((e=>{var{locale:t,format:r}=e,n=Vr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=nn("date",r):0===Object.keys(n).length&&(n=nn("date","short")),new Intl.DateTimeFormat(t,n)})),an=rn((e=>{var{locale:t,format:r}=e,n=Vr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=nn("time",r):0===Object.keys(n).length&&(n=nn("time","short")),new Intl.DateTimeFormat(t,n)})),ln=rn(((e,t=en())=>new Cr(e,t,Kr().formats,{ignoreTag:Kr().ignoreTag}))),un=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=en(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rr(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=Kr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))&&void 0!==o?o:u)&&void 0!==i?i:e;if(!a)return c;let h=c;try{h=ln(c,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},cn=(e,t)=>((e={})=>{var{locale:t=en()}=e,r=Vr(e,["locale"]);return an(Object.assign({locale:t},r))})(t).format(e),hn=(e,t)=>((e={})=>{var{locale:t=en()}=e,r=Vr(e,["locale"]);return sn(Object.assign({locale:t},r))})(t).format(e),fn=(e,t)=>((e={})=>{var{locale:t=en()}=e,r=Vr(e,["locale"]);return on(Object.assign({locale:t},r))})(t).format(e),pn=(e,t=en())=>Rr(e,t),dn=Ze([tn,Dr],(()=>un));Ze([tn],(()=>cn)),Ze([tn],(()=>hn)),Ze([tn],(()=>fn)),Ze([tn,Dr],(()=>pn)),window.emWidgets={topic:(e,t=0)=>{if(-1==Xe.indexOf(e)){let r=new We(t);Ve[e]=r,Xe.push(e)}return Ve[e]}};const mn={en:{wageringSlider:{title:"- Wagering Bonus -"}},tr:{wageringSlider:{title:"- Wagering Bonus -"}},el:{wageringSlider:{title:"- Wagering Bonus -"}},ro:{wageringSlider:{title:"- Wagering Bonus -"}}};var yn=function(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}((function(e,t){
627
627
  /** @license
628
628
  * eventsource.js
629
629
  * Available under MIT License (MIT)
@@ -638,99 +638,90 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
638
638
  // see pull/#138
639
639
  // => No way to polyfill Promise#finally
640
640
  if("undefined"==typeof window||void 0===u||"readyState"in u||null!=u.body||(// Firefox 2
641
- u.readyState="loading",window.addEventListener("load",(function(t){u.readyState="complete"}),!1)),null==i&&null!=a&&(// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
642
- i=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==m){var g=h;h=function(t,e){var r=e.signal;return g(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return r._reader=e,r._aborted&&r._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},m=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function y(){this.bitsNeeded=0,this.codePoint=0}y.prototype.decode=function(t){function e(t,e,r){if(1===r)return t>=128>>e&&t<<e<=2047;if(2===r)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===r)return t>=65536>>e&&t<<e<=1114111;throw new Error}function r(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,o="",i=this.bitsNeeded,s=this.codePoint,a=0;a<t.length;a+=1){var l=t[a];0!==i&&(l<128||l>191||!e(s<<6|63&l,i-6,r(i,s)))&&(i=0,s=n,o+=String.fromCharCode(s)),0===i?(l>=0&&l<=127?(i=0,s=l):l>=192&&l<=223?(i=6,s=31&l):l>=224&&l<=239?(i=12,s=15&l):l>=240&&l<=247?(i=18,s=7&l):(i=0,s=n),0===i||e(s,i,r(i,s))||(i=0,s=n)):(i-=6,s=s<<6|63&l),0===i&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,o};
641
+ u.readyState="loading",window.addEventListener("load",(function(e){u.readyState="complete"}),!1)),null==i&&null!=a&&(// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
642
+ i=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==m){var y=h;h=function(e,t){var r=t.signal;return y(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},m=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(e){function t(e,t,r){if(1===r)return e>=128>>t&&e<<t<=2047;if(2===r)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===r)return e>=65536>>t&&e<<t<=1114111;throw new Error}function r(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var n=65533,o="",i=this.bitsNeeded,s=this.codePoint,a=0;a<e.length;a+=1){var l=e[a];0!==i&&(l<128||l>191||!t(s<<6|63&l,i-6,r(i,s)))&&(i=0,s=n,o+=String.fromCharCode(s)),0===i?(l>=0&&l<=127?(i=0,s=l):l>=192&&l<=223?(i=6,s=31&l):l>=224&&l<=239?(i=12,s=15&l):l>=240&&l<=247?(i=18,s=7&l):(i=0,s=n),0===i||t(s,i,r(i,s))||(i=0,s=n)):(i-=6,s=s<<6|63&l),0===i&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,o};
643
643
  // IE, Edge
644
- null!=p&&null!=d&&function(){try{return"test"===(new p).decode((new d).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(p=y);var b=function(){};function v(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=b}function E(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function w(t){for(
644
+ null!=p&&null!=d&&function(){try{return"test"===(new p).decode((new d).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(p=g);var b=function(){};function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=b}function E(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function w(e){for(
645
645
  // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
646
- var e=Object.create(null),r=t.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),i=o.shift(),s=o.join(": ");e[E(i)]=s}this._map=e}function _(){}function T(t){this._headers=t}function A(){}function B(){this._listeners=Object.create(null)}function S(t){n((function(){throw t}),0)}function H(t){this.type=t,this.target=void 0}function L(t,e){H.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function P(t,e){H.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function I(t,e){H.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var r=this,s=this._xhr,a=1,l=0;this._abort=function(t){0!==r._sendTimeout&&(o(r._sendTimeout),r._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,
646
+ var t=Object.create(null),r=e.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),i=o.shift(),s=o.join(": ");t[E(i)]=s}this._map=t}function _(){}function T(e){this._headers=e}function A(){}function S(){this._listeners=Object.create(null)}function B(e){n((function(){throw e}),0)}function H(e){this.type=e,this.target=void 0}function L(e,t){H.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function P(e,t){H.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){H.call(this,e),this.error=t.error}v.prototype.open=function(e,t){this._abort(!0);var r=this,s=this._xhr,a=1,l=0;this._abort=function(e){0!==r._sendTimeout&&(o(r._sendTimeout),r._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,
647
647
  // IE 8 - 9: XDomainRequest#abort() does not fire any event
648
648
  // Opera < 10: XMLHttpRequest#abort() does not fire any event
649
- s.abort(),0!==l&&(o(l),l=0),t||(r.readyState=4,r.onabort(null),r.onreadystatechange())),a=0};var u=function(){if(1===a){
649
+ s.abort(),0!==l&&(o(l),l=0),e||(r.readyState=4,r.onabort(null),r.onreadystatechange())),a=0};var u=function(){if(1===a){
650
650
  //state = 2;
651
- var t=0,e="",n=void 0;if("contentType"in s)t=200,e="OK",n=s.contentType;else try{t=s.status,e=s.statusText,n=s.getResponseHeader("Content-Type")}catch(r){
651
+ var e=0,t="",n=void 0;if("contentType"in s)e=200,t="OK",n=s.contentType;else try{e=s.status,t=s.statusText,n=s.getResponseHeader("Content-Type")}catch(r){
652
652
  // IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3
653
653
  // Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2
654
654
  // https://bugs.webkit.org/show_bug.cgi?id=29121
655
- t=0,e="",n=void 0}0!==t&&(a=2,r.readyState=2,r.status=t,r.statusText=e,r._contentType=n,r.onreadystatechange())}},c=function(){if(u(),2===a||3===a){a=3;var t="";try{t=s.responseText}catch(t){
655
+ e=0,t="",n=void 0}0!==e&&(a=2,r.readyState=2,r.status=e,r.statusText=t,r._contentType=n,r.onreadystatechange())}},c=function(){if(u(),2===a||3===a){a=3;var e="";try{e=s.responseText}catch(e){
656
656
  // IE 8 - 9 with XMLHttpRequest
657
- }r.readyState=3,r.responseText=t,r.onprogress()}},h=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:b}),
657
+ }r.readyState=3,r.responseText=e,r.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:b}),
658
658
  // Firefox 52 fires "readystatechange" (xhr.readyState === 4) without final "readystatechange" (xhr.readyState === 3)
659
659
  // IE 8 fires "onload" without "onprogress"
660
- c(),1===a||2===a||3===a){if(a=4,0!==l&&(o(l),l=0),r.readyState=4,"load"===t)r.onload(e);else if("error"===t)r.onerror(e);else{if("abort"!==t)throw new TypeError;r.onabort(e)}r.onreadystatechange()}},f=function(){l=n((function(){f()}),500),3===s.readyState&&c()};
660
+ c(),1===a||2===a||3===a){if(a=4,0!==l&&(o(l),l=0),r.readyState=4,"load"===e)r.onload(t);else if("error"===e)r.onerror(t);else{if("abort"!==e)throw new TypeError;r.onabort(t)}r.onreadystatechange()}},f=function(){l=n((function(){f()}),500),3===s.readyState&&c()};
661
661
  // XDomainRequest#abort removes onprogress, onerror, onload
662
- "onload"in s&&(s.onload=function(t){h("load",t)}),"onerror"in s&&(s.onerror=function(t){h("error",t)}),
662
+ "onload"in s&&(s.onload=function(e){h("load",e)}),"onerror"in s&&(s.onerror=function(e){h("error",e)}),
663
663
  // improper fix to match Firefox behaviour, but it is better than just ignore abort
664
664
  // see https://bugzilla.mozilla.org/show_bug.cgi?id=768596
665
665
  // https://bugzilla.mozilla.org/show_bug.cgi?id=880200
666
666
  // https://code.google.com/p/chromium/issues/detail?id=153570
667
667
  // IE 8 fires "onload" without "onprogress
668
- "onabort"in s&&(s.onabort=function(t){h("abort",t)}),"onprogress"in s&&(s.onprogress=c),
668
+ "onabort"in s&&(s.onabort=function(e){h("abort",e)}),"onprogress"in s&&(s.onprogress=c),
669
669
  // IE 8 - 9 (XMLHTTPRequest)
670
670
  // Opera < 12
671
671
  // Firefox < 3.5
672
672
  // Firefox 3.5 - 3.6 - ? < 9.0
673
673
  // onprogress is not fired sometimes or delayed
674
674
  // see also #64 (significant lag in IE 11)
675
- "onreadystatechange"in s&&(s.onreadystatechange=function(t){!function(t){null!=s&&(// Opera 12
676
- 4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||h(""===s.responseText?"error":"load",t):3===s.readyState?"onprogress"in s||// testing XMLHttpRequest#responseText too many times is too slow in IE 11
675
+ "onreadystatechange"in s&&(s.onreadystatechange=function(e){!function(e){null!=s&&(// Opera 12
676
+ 4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||h(""===s.responseText?"error":"load",e):3===s.readyState?"onprogress"in s||// testing XMLHttpRequest#responseText too many times is too slow in IE 11
677
677
  // and in Firefox 3.6
678
- c():2===s.readyState&&u())}(t)}),!("contentType"in s)&&"ontimeout"in i.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),s.open(t,e,!0),"readyState"in s&&(
678
+ c():2===s.readyState&&u())}(e)}),!("contentType"in s)&&"ontimeout"in i.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),s.open(e,t,!0),"readyState"in s&&(
679
679
  // workaround for Opera 12 issue with "progress" events
680
680
  // #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)
681
- l=n((function(){f()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(t){return this._contentType},v.prototype.setRequestHeader=function(t,e){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(t,e)},v.prototype.getAllResponseHeaders=function(){
681
+ l=n((function(){f()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(e){return this._contentType},v.prototype.setRequestHeader=function(e,t){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(e,t)},v.prototype.getAllResponseHeaders=function(){
682
682
  // XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28
683
683
  return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){
684
684
  // loading indicator in Safari < ? (6), Chrome < 14, Firefox
685
685
  // https://bugzilla.mozilla.org/show_bug.cgi?id=736723
686
- if("ontimeout"in i.prototype&&("sendAsBinary"in i.prototype||"mozAnon"in i.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var t=this._xhr;
686
+ if("ontimeout"in i.prototype&&("sendAsBinary"in i.prototype||"mozAnon"in i.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var e=this._xhr;
687
687
  // withCredentials should be set after "open" for Safari and Chrome (< 19 ?)
688
- "withCredentials"in t&&(t.withCredentials=this.withCredentials);try{
688
+ "withCredentials"in e&&(e.withCredentials=this.withCredentials);try{
689
689
  // xhr.send(); throws "Not enough arguments" in Firefox 3.0
690
- t.send(void 0)}catch(t){
690
+ e.send(void 0)}catch(e){
691
691
  // Safari 5.1.7, Opera 12
692
- throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},w.prototype.get=function(t){return this._map[E(t)]},null!=i&&null==i.HEADERS_RECEIVED&&(// IE < 9, Firefox 3.6
693
- i.HEADERS_RECEIVED=2),_.prototype.open=function(t,e,r,n,o,s,a){t.open("GET",o);var l=0;for(var u in t.onprogress=function(){var e=t.responseText.slice(l);l+=e.length,r(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===i.HEADERS_RECEIVED){var r=t.status,n=t.statusText,o=t.getResponseHeader("Content-Type"),s=t.getAllResponseHeaders();e(r,n,o,new w(s))}},t.withCredentials=s,a)Object.prototype.hasOwnProperty.call(a,u)&&t.setRequestHeader(u,a[u]);return t.send(),t},T.prototype.get=function(t){return this._headers.get(t)},A.prototype.open=function(t,e,r,n,o,i,s){var a=null,l=new m,u=l.signal,f=new p;return h(o,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(t){
692
+ throw e}}else{var t=this;t._sendTimeout=n((function(){t._sendTimeout=0,t.send()}),4)}},w.prototype.get=function(e){return this._map[E(e)]},null!=i&&null==i.HEADERS_RECEIVED&&(// IE < 9, Firefox 3.6
693
+ i.HEADERS_RECEIVED=2),_.prototype.open=function(e,t,r,n,o,s,a){e.open("GET",o);var l=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(l);l+=t.length,r(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===i.HEADERS_RECEIVED){var r=e.status,n=e.statusText,o=e.getResponseHeader("Content-Type"),s=e.getAllResponseHeaders();t(r,n,o,new w(s))}},e.withCredentials=s,a)Object.prototype.hasOwnProperty.call(a,u)&&e.setRequestHeader(u,a[u]);return e.send(),e},T.prototype.get=function(e){return this._headers.get(e)},A.prototype.open=function(e,t,r,n,o,i,s){var a=null,l=new m,u=l.signal,f=new p;return h(o,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){
694
694
  // see https://github.com/promises-aplus/promises-spec/issues/179
695
- return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new T(t.headers)),new c((function(t,e){var n=function(){a.read().then((function(e){if(e.done)
695
+ return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new T(e.headers)),new c((function(e,t){var n=function(){a.read().then((function(t){if(t.done)
696
696
  //Note: bytes in textDecoder are ignored
697
- t(void 0);else{var o=f.decode(e.value,{stream:!0});r(o),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},B.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){S(t)}}},B.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},B.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),I.prototype=Object.create(H.prototype);var O=-1,C=-1,x=/^text\/event\-stream(;.*)?$/i,R=function(t,e){var r=null==t?e:parseInt(t,10);return r!=r&&(r=e),N(r)},N=function(t){return Math.min(Math.max(t,1e3),18e6)},M=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){S(t)}};function D(t,e){B.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,e,r){e=String(e);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=N(1e3),c=R(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,m=r.headers||{},g=r.Transport,y=U&&null==g?void 0:new v(null!=g?new g:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=g&&"string"!=typeof g?new g:null==y?new A:new _,E=void 0,w=0,T=O,B="",S="",H="",D="",F=0,k=0,$=0,G=function(e,r,n,o){if(0===T)if(200===e&&null!=n&&x.test(n)){T=1,p=Date.now(),f=u,t.readyState=1;var i=new P("open",{status:e,statusText:r,headers:o});t.dispatchEvent(i),M(t,t.onopen,i)}else{var s="";200!==e?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",X();i=new P("error",{status:e,statusText:r,headers:o});t.dispatchEvent(i),M(t,t.onerror,i),console.error(s)}},j=function(e){if(1===T){for(var r=-1,i=0;i<e.length;i+=1){(l=e.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?D:"")+e.slice(0,r+1);D=(-1===r?D:"")+e.slice(r+1),""!==e&&(p=Date.now(),d+=e.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(F===C&&l==="\n".charCodeAt(0))F=0;else if(F===C&&(F=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==F){1===F&&($=a+1);var m=s.slice(k,$-1),g=s.slice($+($<a&&s.charCodeAt($)===" ".charCodeAt(0)?1:0),a);"data"===m?(B+="\n",B+=g):"id"===m?S=g:"event"===m?H=g:"retry"===m?(u=R(g,u),f=u):"heartbeatTimeout"===m&&(c=R(g,c),0!==w&&(o(w),w=n((function(){V()}),c)))}if(0===F){if(""!==B){h=S,""===H&&(H="message");var y=new L(H,{data:B.slice(1),lastEventId:S});if(t.dispatchEvent(y),"open"===H?M(t,t.onopen,y):"message"===H?M(t,t.onmessage,y):"error"===H&&M(t,t.onerror,y),2===T)return}B="",H=""}F=l==="\r".charCodeAt(0)?C:0}else 0===F&&(k=a,F=1),1===F?l===":".charCodeAt(0)&&($=a+1,F=2):2===F&&(F=3)}}},W=function(e){if(1===T||0===T){T=O,0!==w&&(o(w),w=0),w=n((function(){V()}),f),f=N(Math.min(16*u,2*f)),t.readyState=0;var r=new I("error",{error:e});t.dispatchEvent(r),M(t,t.onerror,r),null!=e&&console.error(e)}},X=function(){T=2,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),t.readyState=2},V=function(){if(w=0,T===O){p=!1,d=0,w=n((function(){V()}),c),T=0,B="",H="",S=h,D="",k=0,$=0,F=0;
697
+ e(void 0);else{var o=f.decode(t.value,{stream:!0});r(o),n()}})).catch((function(e){t(e)}))};n()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){n(e)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var r=t.length,n=0;n<r;n+=1){var o=t[n];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){B(e)}}},S.prototype.addEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];null==n&&(n=[],r[e]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===t&&(o=!0);o||n.push(t)},S.prototype.removeEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==t&&o.push(n[i]);0===o.length?delete r[e]:r[e]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),I.prototype=Object.create(H.prototype);var O=-1,C=-1,N=/^text\/event\-stream(;.*)?$/i,x=function(e,t){var r=null==e?t:parseInt(e,10);return r!=r&&(r=t),R(r)},R=function(e){return Math.min(Math.max(e,1e3),18e6)},M=function(e,t,r){try{"function"==typeof t&&t.call(e,r)}catch(e){B(e)}};function D(e,t){S.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,r){t=String(t);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=R(1e3),c=x(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,m=r.headers||{},y=r.Transport,g=U&&null==y?void 0:new v(null!=y?new y:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=y&&"string"!=typeof y?new y:null==g?new A:new _,E=void 0,w=0,T=O,S="",B="",H="",D="",F=0,k=0,G=0,j=function(t,r,n,o){if(0===T)if(200===t&&null!=n&&N.test(n)){T=1,p=Date.now(),f=u,e.readyState=1;var i=new P("open",{status:t,statusText:r,headers:o});e.dispatchEvent(i),M(e,e.onopen,i)}else{var s="";200!==t?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",X();i=new P("error",{status:t,statusText:r,headers:o});e.dispatchEvent(i),M(e,e.onerror,i),console.error(s)}},$=function(t){if(1===T){for(var r=-1,i=0;i<t.length;i+=1){(l=t.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?D:"")+t.slice(0,r+1);D=(-1===r?D:"")+t.slice(r+1),""!==t&&(p=Date.now(),d+=t.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(F===C&&l==="\n".charCodeAt(0))F=0;else if(F===C&&(F=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==F){1===F&&(G=a+1);var m=s.slice(k,G-1),y=s.slice(G+(G<a&&s.charCodeAt(G)===" ".charCodeAt(0)?1:0),a);"data"===m?(S+="\n",S+=y):"id"===m?B=y:"event"===m?H=y:"retry"===m?(u=x(y,u),f=u):"heartbeatTimeout"===m&&(c=x(y,c),0!==w&&(o(w),w=n((function(){V()}),c)))}if(0===F){if(""!==S){h=B,""===H&&(H="message");var g=new L(H,{data:S.slice(1),lastEventId:B});if(e.dispatchEvent(g),"open"===H?M(e,e.onopen,g):"message"===H?M(e,e.onmessage,g):"error"===H&&M(e,e.onerror,g),2===T)return}S="",H=""}F=l==="\r".charCodeAt(0)?C:0}else 0===F&&(k=a,F=1),1===F?l===":".charCodeAt(0)&&(G=a+1,F=2):2===F&&(F=3)}}},W=function(t){if(1===T||0===T){T=O,0!==w&&(o(w),w=0),w=n((function(){V()}),f),f=R(Math.min(16*u,2*f)),e.readyState=0;var r=new I("error",{error:t});e.dispatchEvent(r),M(e,e.onerror,r),null!=t&&console.error(t)}},X=function(){T=2,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),e.readyState=2},V=function(){if(w=0,T===O){p=!1,d=0,w=n((function(){V()}),c),T=0,S="",H="",B=h,D="",k=0,G=0,F=0;
698
698
  // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
699
699
  // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
700
- var r=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==h){
700
+ var r=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==h){
701
701
  // Remove the lastEventId parameter if it's already part of the request URL.
702
- var o=e.indexOf("?");r=-1===o?e:e.slice(0,o+1)+e.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===l?"":t})),
702
+ var o=t.indexOf("?");r=-1===o?t:t.slice(0,o+1)+t.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),
703
703
  // Append the current lastEventId to the request URL.
704
- r+=(-1===e.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=t.withCredentials,s={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(y,G,j,W,r,i,s)}catch(t){throw X(),t}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){V()}),f)}else W(new Error("No activity within "+c+" milliseconds. "+(0===T?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};t.url=e,t.readyState=0,t.withCredentials=a,t.headers=m,t._close=X,V()}(this,t,e)}var U=null!=h&&null!=f&&"body"in f.prototype;D.prototype=Object.create(B.prototype),D.prototype.CONNECTING=0,D.prototype.OPEN=1,D.prototype.CLOSED=2,D.prototype.close=function(){this._close()},D.CONNECTING=0,D.OPEN=1,D.CLOSED=2,D.prototype.withCredentials=void 0;var F=l;null==i||null!=l&&"withCredentials"in l.prototype||(
704
+ r+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=e.withCredentials,s={Accept:"text/event-stream"},a=e.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(g,j,$,W,r,i,s)}catch(e){throw X(),e}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){V()}),f)}else W(new Error("No activity within "+c+" milliseconds. "+(0===T?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};e.url=t,e.readyState=0,e.withCredentials=a,e.headers=m,e._close=X,V()}(this,e,t)}var U=null!=h&&null!=f&&"body"in f.prototype;D.prototype=Object.create(S.prototype),D.prototype.CONNECTING=0,D.prototype.OPEN=1,D.prototype.CLOSED=2,D.prototype.close=function(){this._close()},D.CONNECTING=0,D.OPEN=1,D.CLOSED=2,D.prototype.withCredentials=void 0;var F=l;null==i||null!=l&&"withCredentials"in l.prototype||(
705
705
  // Why replace a native EventSource ?
706
706
  // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
707
707
  // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
708
708
  // https://code.google.com/p/chromium/issues/detail?id=260144
709
709
  // https://code.google.com/p/chromium/issues/detail?id=225654
710
710
  // ...
711
- F=D),n((function(){if(-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)){var t=function(t){return""+t+""},e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+t("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+t("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+t("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+t("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",t("https://www.torproject.org/"),"","И посетите:","",t("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",t("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n");alert(e),window.open("http://www.change.org/NetVoyne")}}),15e3),function(r){var n=function(t){t.EventSourcePolyfill=D,t.NativeEventSource=l,t.EventSource=F}(e);void 0!==n&&(t.exports=n)}()}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ct:globalThis)})),bn="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";const vn={en:{progressBar:{bets:"bets"}},tr:{progressBar:{bets:"bets"}},el:{progressBar:{bets:"bets"}}};
712
- /* ../general-icon-progress-bar/src/GeneralIconProgressBar.svelte generated by Svelte v3.48.0 */function En(e){let r,n,o,i,s;return{c(){r=d("div"),n=d("div"),o=d("span"),i=g(/*progressText*/e[3]),this.c=t,v(o,"part","progressText"),v(n,"class",s="stepBar "+/*curTatus*/e[4]),v(n,"part","stepBar"),v(r,"class","general-icon-progress-bar"),v(r,"part","totalBar")},m(t,s){f(t,r,s),h(r,n),h(n,o),h(o,i),
713
- /*span_binding*/e[10](o),
714
- /*div0_binding*/e[11](n),
715
- /*div1_binding*/e[12](r)},p(t,[e]){/*progressText*/8&e&&w(i,/*progressText*/t[3]),/*curTatus*/16&e&&s!==(s="stepBar "+/*curTatus*/t[4])&&v(n,"class",s)},i:t,o:t,d(t){t&&p(r)
716
- /*span_binding*/,e[10](null),
717
- /*div0_binding*/e[11](null),
718
- /*div1_binding*/e[12](null)}}}function wn(t,e,r){let n;c(t,mn,(t=>r(17,n=t)));let o,i,s,a,l,u,h,{currentstep:f=0}=e,{total:p=1}=e,{showaspercent:d}=e,{lang:m="en"}=e,{status:g}=e,y="0px",b="active";!function({withLocale:t,translations:e}){rn.subscribe((r=>{null==r&&(Ur.set(e),rn.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
719
- /*dictionary.set(translations);
720
- locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(vn).forEach((t=>{!function(t,e){$r(t,e)}(t,vn[t])}));const v=()=>{var t;t=m,rn.set(t)},E=()=>{let t=f/p*100;setTimeout((()=>{r(3,a=d||"true"===d?`${t}%`:`${f}/${p} ${n("progressBar.bets")}`)}),a?573:0),0==t||100==t?(u="0px",h="0px",y=100==t?"3px":"0px"):(u=`${o.offsetHeight}px`,l=u,h=o.offsetHeight/3+"px",y="0px"),i.style.setProperty("--parentElementHeight",l),s.style.setProperty("--currentStep",t+"%"),s.style.setProperty("--triangleHeight",u),s.style.setProperty("--halfOfTriangleHeight",h),s.style.setProperty("--stepBarBorderRadius",y)};return A((()=>{E()})),t.$$set=t=>{"currentstep"in t&&r(5,f=t.currentstep),"total"in t&&r(6,p=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,m=t.lang),"status"in t&&r(9,g=t.status)},t.$$.update=()=>{/*currentstep, total*/96&t.$$.dirty&&f&&p&&E(),/*lang*/256&t.$$.dirty&&m&&v(),/*status*/512&t.$$.dirty&&g&&r(4,b="active"==g?"":"inactive")},[o,i,s,a,b,f,p,d,m,g,function(t){S[t?"unshift":"push"]((()=>{i=t,r(1,i)}))},function(t){S[t?"unshift":"push"]((()=>{s=t,r(2,s)}))},function(t){S[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}
711
+ F=D),n((function(){if(-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)){var e=function(e){return""+e+""},t=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+e("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n");alert(t),window.open("http://www.change.org/NetVoyne")}}),15e3),function(r){var n=function(e){e.EventSourcePolyfill=D,e.NativeEventSource=l,e.EventSource=F}(t);void 0!==n&&(e.exports=n)}()}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ue:globalThis)})),gn="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";
721
712
  /* src/CasinoWageringBonusSliderController.svelte generated by Svelte v3.48.0 */
722
- function _n(t,e,r){const n=t.slice();return n[47]=e[r],n[49]=r,n}
713
+ function bn(e,t,r){const n=e.slice();return n[47]=t[r],n[49]=r,n}
723
714
  // (279:6) {#if wageringList}
724
- function Tn(t){let e,r=/*wageringList*/t[1],n=[];for(let e=0;e<r.length;e+=1)n[e]=An(_n(t,r,e));return{c(){e=d("div");for(let t=0;t<n.length;t+=1)n[t].c();v(e,"class","WagerList"),v(e,"part","WageringBonusList")},m(t,r){f(t,e,r);for(let t=0;t<n.length;t+=1)n[t].m(e,null)},p(t,o){if(/*currentWagerIdx, wageringList, onWagingBonusTitleClick*/1030&o[0]){let i;for(r=/*wageringList*/t[1],i=0;i<r.length;i+=1){const s=_n(t,r,i);n[i]?n[i].p(s,o):(n[i]=An(s),n[i].c(),n[i].m(e,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=r.length}},d(t){t&&p(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(n,t)}}}
715
+ function vn(e){let t,r=/*wageringList*/e[1],n=[];for(let t=0;t<r.length;t+=1)n[t]=En(bn(e,r,t));return{c(){t=p("div");for(let e=0;e<n.length;e+=1)n[e].c();b(t,"class","WagerList"),b(t,"part","WageringBonusList")},m(e,r){h(e,t,r);for(let e=0;e<n.length;e+=1)n[e].m(t,null)},p(e,o){if(/*currentWagerIdx, wageringList, onWagingBonusTitleClick*/1030&o[0]){let i;for(r=/*wageringList*/e[1],i=0;i<r.length;i+=1){const s=bn(e,r,i);n[i]?n[i].p(s,o):(n[i]=En(s),n[i].c(),n[i].m(t,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=r.length}},d(e){e&&f(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(n,e)}}}
725
716
  // (281:8) {#each wageringList as wagerInfo, index}
726
- function An(t){let e,r,n,o,i,s,a,u,c,m,_,T,A,B,S,H,L,P,I,O=/*wagerInfo*/t[47].title+"";function C(){/*click_handler_1*/
727
- return t[17](/*wagerInfo*/t[47])}return{c(){var h,f,p,b;e=d("div"),r=d("div"),n=d("div"),o=d("img"),s=y(),a=d("div"),u=g(O),c=y(),m=d("div"),_=d("general-icon-progress-bar"),H=y(),v(o,"alt","crown"),v(o,"part","Icon"),v(o,"class","MiniIcon"),l(o.src,i=bn)||v(o,"src","data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e"),v(n,"class","trophy"),v(a,"class","gameInfo"),v(a,"part","WageringBonusTitleRow Title"),v(r,"class","bonusName"),h=r,f="display",null===(p="table")?h.style.removeProperty(f):h.style.setProperty(f,p,b?"important":""),v(r,"part","WageringBonusTitleRow"),E(_,"currentstep",T=/*wagerInfo*/t[47].currentStep),E(_,"status",A=/*wagerInfo*/t[47].status),E(_,"total",B=/*wagerInfo*/t[47].levelIncrement),E(_,"showaspercent",S=/*wagerInfo*/"money"==t[47].type),E(_,"lang",""),v(m,"class","ProgressBar bottom"),v(m,"part","ProgressBar"),v(e,"class",L="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[49]?"hiddenDiv":"shownDiv")),v(e,"part","WageringBonusInfo")},m(t,i){f(t,e,i),h(e,r),h(r,n),h(n,o),h(r,s),h(r,a),h(a,u),h(e,c),h(e,m),h(m,_),h(e,H),P||(I=b(a,"click",C),P=!0)},p(r,n){t=r,/*wageringList*/2&n[0]&&O!==(O=/*wagerInfo*/t[47].title+"")&&w(u,O),/*wageringList*/2&n[0]&&T!==(T=/*wagerInfo*/t[47].currentStep)&&E(_,"currentstep",T),/*wageringList*/2&n[0]&&A!==(A=/*wagerInfo*/t[47].status)&&E(_,"status",A),/*wageringList*/2&n[0]&&B!==(B=/*wagerInfo*/t[47].levelIncrement)&&E(_,"total",B),/*wageringList*/2&n[0]&&S!==(S=/*wagerInfo*/"money"==t[47].type)&&E(_,"showaspercent",S),/*currentWagerIdx*/4&n[0]&&L!==(L="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[49]?"hiddenDiv":"shownDiv"))&&v(e,"class",L)},d(t){t&&p(e),P=!1,I()}}}function Bn(e){let r,o,i,s,a,u,c,E,_,T,A,B,S,H,L,P,I,O,C,x,R,N,M,D,U,F,k,$=/*$_*/e[7]("wageringSlider.title")+"",G=/*wageringList*/e[1]&&Tn(e);return{c(){r=d("div"),o=d("div"),i=d("div"),s=m("svg"),a=m("path"),c=y(),E=d("div"),_=d("div"),T=g($),A=y(),G&&G.c(),B=y(),S=d("div"),H=m("svg"),L=m("path"),O=y(),C=d("section"),x=d("div"),R=d("img"),M=y(),D=d("div"),D.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=t,v(a,"d","M3 7L1 4L3 1"),v(a,"stroke","currentColor"),v(a,"stroke-linecap","round"),v(a,"stroke-linejoin","round"),v(s,"part","LeftArrowSvg"),v(s,"width","7"),v(s,"height","14"),v(s,"viewBox","0 0 4 8"),v(s,"fill","none"),v(s,"xmlns","http://www.w3.org/2000/svg"),v(i,"class",u="LeftArrow "+(/*isFirst*/e[4]?"Disabled":"")),v(i,"part","LeftArrow"),v(_,"class","Title Top"),v(_,"part","WageringBonusTitle"),v(E,"class","SliderCenter"),v(E,"part","WageringBonusContent"),v(L,"d","M1 1L3 4L1 7"),v(L,"stroke","currentColor"),v(L,"stroke-linecap","round"),v(L,"stroke-linejoin","round"),v(H,"width","7"),v(H,"height","14"),v(H,"viewBox","0 0 4 8"),v(H,"fill","none"),v(H,"xmlns","http://www.w3.org/2000/svg"),v(S,"part","RightRow"),v(S,"class",P="RightArrow "+(/*isLast*/e[0]?"Disabled":"")),v(o,"part","SliderWrapper"),v(o,"class",I="SliderWrapper "+(/*isIconMode*/e[6]?"HiddenWidget":"ShowWidget")),v(R,"alt","crown"),v(R,"part","Icon"),v(R,"class","MiniIcon"),l(R.src,N=bn)||v(R,"src","data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e"),v(x,"class","svg"),v(x,"part","AnimatorIconWrapper"),v(D,"class","restoreButton"),v(D,"part","RestoreButton"),v(C,"id","animator"),v(C,"part","Animator"),v(C,"class",U="SliderIcon "+(/*isIconMode*/e[6]?"ShowWidget":"HiddenWidget")),v(r,"class","WageringBonusWrapper"),v(r,"part","WageringBonusWrapper")},m(t,n){f(t,r,n),h(r,o),h(o,i),h(i,s),h(s,a),h(o,c),h(o,E),h(E,_),h(_,T),h(E,A),G&&G.m(E,null),h(o,B),h(o,S),h(S,H),h(H,L),
728
- /*div4_binding*/e[19](o),h(r,O),h(r,C),h(C,x),h(x,R),h(C,M),h(C,D),
729
- /*section_binding*/e[20](C),F||(k=[b(i,"click",/*click_handler*/e[16]),b(S,"click",/*click_handler_2*/e[18]),b(C,"click",/*click_handler_3*/e[21])],F=!0)},p(t,e){/*isFirst*/16&e[0]&&u!==(u="LeftArrow "+(/*isFirst*/t[4]?"Disabled":""))&&v(i,"class",u),/*$_*/128&e[0]&&$!==($=/*$_*/t[7]("wageringSlider.title")+"")&&w(T,$),/*wageringList*/t[1]?G?G.p(t,e):(G=Tn(t),G.c(),G.m(E,null)):G&&(G.d(1),G=null),/*isLast*/1&e[0]&&P!==(P="RightArrow "+(/*isLast*/t[0]?"Disabled":""))&&v(S,"class",P),/*isIconMode*/64&e[0]&&I!==(I="SliderWrapper "+(/*isIconMode*/t[6]?"HiddenWidget":"ShowWidget"))&&v(o,"class",I),/*isIconMode*/64&e[0]&&U!==(U="SliderIcon "+(/*isIconMode*/t[6]?"ShowWidget":"HiddenWidget"))&&v(C,"class",U)},i:t,o:t,d(t){t&&p(r),G&&G.d()
730
- /*div4_binding*/,e[19](null),
731
- /*section_binding*/e[20](null),F=!1,n(k)}}}function Sn(t,e,r){let n;c(t,mn,(t=>r(7,n=t)));let o,i,s,a,l,{endpoint:u}=e,{session:h}=e,{lang:f="en"}=e,{numberofrecords:p="5"}=e,{looptime:d="5"}=e,m=window.navigator.userAgent,g=!0,y=!1,b=0,v=null,E=null,w=!1;!function({withLocale:t,translations:e}){rn.subscribe((r=>{null==r&&(Ur.set(e),rn.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
717
+ function En(e){let t,r,n,o,i,s,a,u,d,w,_,T,A,S,B,H,L,P,I,O=/*wagerInfo*/e[47].title+"";function C(){/*click_handler_1*/
718
+ return e[17](/*wagerInfo*/e[47])}return{c(){var c,h,f,g;t=p("div"),r=p("div"),n=p("div"),o=p("img"),s=y(),a=p("div"),u=m(O),d=y(),w=p("div"),_=p("general-icon-progress-bar"),H=y(),b(o,"alt","crown"),b(o,"part","Icon"),b(o,"class","MiniIcon"),l(o.src,i=gn)||b(o,"src","data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e"),b(n,"class","trophy"),b(a,"class","gameInfo"),b(a,"part","WageringBonusTitleRow Title"),b(r,"class","bonusName"),c=r,h="display",null===(f="table")?c.style.removeProperty(h):c.style.setProperty(h,f,g?"important":""),b(r,"part","WageringBonusTitleRow"),v(_,"currentstep",T=/*wagerInfo*/e[47].currentStep),v(_,"status",A=/*wagerInfo*/e[47].status),v(_,"total",S=/*wagerInfo*/e[47].levelIncrement),v(_,"showaspercent",B=/*wagerInfo*/"money"==e[47].type),v(_,"lang",""),b(w,"class","ProgressBar bottom"),b(w,"part","ProgressBar"),b(t,"class",L="WageringBonusInfo "+(/*currentWagerIdx*/e[2]!=/*index*/e[49]?"hiddenDiv":"shownDiv")),b(t,"part","WageringBonusInfo")},m(e,i){h(e,t,i),c(t,r),c(r,n),c(n,o),c(r,s),c(r,a),c(a,u),c(t,d),c(t,w),c(w,_),c(t,H),P||(I=g(a,"click",C),P=!0)},p(r,n){e=r,/*wageringList*/2&n[0]&&O!==(O=/*wagerInfo*/e[47].title+"")&&E(u,O),/*wageringList*/2&n[0]&&T!==(T=/*wagerInfo*/e[47].currentStep)&&v(_,"currentstep",T),/*wageringList*/2&n[0]&&A!==(A=/*wagerInfo*/e[47].status)&&v(_,"status",A),/*wageringList*/2&n[0]&&S!==(S=/*wagerInfo*/e[47].levelIncrement)&&v(_,"total",S),/*wageringList*/2&n[0]&&B!==(B=/*wagerInfo*/"money"==e[47].type)&&v(_,"showaspercent",B),/*currentWagerIdx*/4&n[0]&&L!==(L="WageringBonusInfo "+(/*currentWagerIdx*/e[2]!=/*index*/e[49]?"hiddenDiv":"shownDiv"))&&b(t,"class",L)},d(e){e&&f(t),P=!1,I()}}}function wn(t){let r,o,i,s,a,u,v,w,_,T,A,S,B,H,L,P,I,O,C,N,x,R,M,D,U,F,k,G=/*$_*/t[7]("wageringSlider.title")+"",j=/*wageringList*/t[1]&&vn(t);return{c(){r=p("div"),o=p("div"),i=p("div"),s=d("svg"),a=d("path"),v=y(),w=p("div"),_=p("div"),T=m(G),A=y(),j&&j.c(),S=y(),B=p("div"),H=d("svg"),L=d("path"),O=y(),C=p("section"),N=p("div"),x=p("img"),M=y(),D=p("div"),D.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=e,b(a,"d","M3 7L1 4L3 1"),b(a,"stroke","currentColor"),b(a,"stroke-linecap","round"),b(a,"stroke-linejoin","round"),b(s,"part","LeftArrowSvg"),b(s,"width","7"),b(s,"height","14"),b(s,"viewBox","0 0 4 8"),b(s,"fill","none"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(i,"class",u="LeftArrow "+(/*isFirst*/t[4]?"Disabled":"")),b(i,"part","LeftArrow"),b(_,"class","Title Top"),b(_,"part","WageringBonusTitle"),b(w,"class","SliderCenter"),b(w,"part","WageringBonusContent"),b(L,"d","M1 1L3 4L1 7"),b(L,"stroke","currentColor"),b(L,"stroke-linecap","round"),b(L,"stroke-linejoin","round"),b(H,"width","7"),b(H,"height","14"),b(H,"viewBox","0 0 4 8"),b(H,"fill","none"),b(H,"xmlns","http://www.w3.org/2000/svg"),b(B,"part","RightRow"),b(B,"class",P="RightArrow "+(/*isLast*/t[0]?"Disabled":"")),b(o,"part","SliderWrapper"),b(o,"class",I="SliderWrapper "+(/*isIconMode*/t[6]?"HiddenWidget":"ShowWidget")),b(x,"alt","crown"),b(x,"part","Icon"),b(x,"class","MiniIcon"),l(x.src,R=gn)||b(x,"src","data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e"),b(N,"class","svg"),b(N,"part","AnimatorIconWrapper"),b(D,"class","restoreButton"),b(D,"part","RestoreButton"),b(C,"id","animator"),b(C,"part","Animator"),b(C,"class",U="SliderIcon "+(/*isIconMode*/t[6]?"ShowWidget":"HiddenWidget")),b(r,"class","WageringBonusWrapper"),b(r,"part","WageringBonusWrapper")},m(e,n){h(e,r,n),c(r,o),c(o,i),c(i,s),c(s,a),c(o,v),c(o,w),c(w,_),c(_,T),c(w,A),j&&j.m(w,null),c(o,S),c(o,B),c(B,H),c(H,L),
719
+ /*div4_binding*/t[19](o),c(r,O),c(r,C),c(C,N),c(N,x),c(C,M),c(C,D),
720
+ /*section_binding*/t[20](C),F||(k=[g(i,"click",/*click_handler*/t[16]),g(B,"click",/*click_handler_2*/t[18]),g(C,"click",/*click_handler_3*/t[21])],F=!0)},p(e,t){/*isFirst*/16&t[0]&&u!==(u="LeftArrow "+(/*isFirst*/e[4]?"Disabled":""))&&b(i,"class",u),/*$_*/128&t[0]&&G!==(G=/*$_*/e[7]("wageringSlider.title")+"")&&E(T,G),/*wageringList*/e[1]?j?j.p(e,t):(j=vn(e),j.c(),j.m(w,null)):j&&(j.d(1),j=null),/*isLast*/1&t[0]&&P!==(P="RightArrow "+(/*isLast*/e[0]?"Disabled":""))&&b(B,"class",P),/*isIconMode*/64&t[0]&&I!==(I="SliderWrapper "+(/*isIconMode*/e[6]?"HiddenWidget":"ShowWidget"))&&b(o,"class",I),/*isIconMode*/64&t[0]&&U!==(U="SliderIcon "+(/*isIconMode*/e[6]?"ShowWidget":"HiddenWidget"))&&b(C,"class",U)},i:e,o:e,d(e){e&&f(r),j&&j.d()
721
+ /*div4_binding*/,t[19](null),
722
+ /*section_binding*/t[20](null),F=!1,n(k)}}}function _n(e,t,r){let n;var o,i;o=dn,i=e=>r(7,n=e),e.$$.on_destroy.push(u(o,i));let s,a,l,c,h,{endpoint:f}=t,{session:p}=t,{lang:d="en"}=t,{numberofrecords:m="5"}=t,{looptime:y="5"}=t,g=window.navigator.userAgent,b=!0,v=!1,E=0,w=null,_=null,A=!1;!function({withLocale:e,translations:t}){tn.subscribe((r=>{null==r&&(Dr.set(t),tn.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
732
723
  /*dictionary.set(translations);
733
- locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(gn).forEach((t=>{!function(t,e){$r(t,e)}(t,gn[t])}));const _=()=>{var t;t=f,rn.set(t)},T=t=>{let e=0;for(let r of t.levels||[]){e+=r.maxRepeats||1}let r=t.currentLevel;return{maxLevel:e,bonusWalletID:t.bonusWalletID,levelIncrement:r.levelIncrement,gap:r.gap,currentStep:r.levelIncrement-r.gap,title:t.title,type:t.type,status:t.status}},B=()=>{clearInterval(o),o=setInterval((()=>{i&&i&&0!==i.length&&(r(2,b=(b+1)%i.length),y&&"0"!=d&&P())}),1e3*Number(d))},H=t=>{B(),a.style.setProperty("--transformFromValue",t>0?"-100%":"100%"),a.style.setProperty("--transformToValue",t>0?"100%":"-100%"),t>0&&y||t<0&&g||(r(2,b+=t),r(2,b=b<0?r(2,b=0):b),r(2,b=b==i.length?r(2,b=i.length-1):b))},L=()=>{r(6,w=!1),B()},P=()=>{r(6,w=!0),r(2,b=0),r(4,g=!0),r(0,y=i.length<2),clearInterval(o),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},I=t=>{if(!t.data)return;let e=t.data;var n;if(e)try{let t=JSON.parse(e);if(!t||!t.items)return;"WageringProgressUpdate"===t.messageType&&(n=t.items,i.forEach((t=>{let e=n[t.bonusWalletID];e&&(t.gap=e.gap,t.levelIncrement=e.levelIncrement,t.status=e.status,t.currentStep=e.levelIncrement-e.gap)})),r(1,i))}catch(t){console.log(t)}},O=t=>{if(!u||!h)return;let e=new URL(`${t}/bonus/wagering`),n=new Headers;e.searchParams.append("language",f),e.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(m)),e.searchParams.append("status","active"),e.searchParams.append("pagination",`limit=${p},offset=0`),h&&n.append("X-SessionID",h),fetch(e,{method:"GET",headers:n}).then((t=>t.json())).then((t=>{if(e.searchParams.toString(),(t=>{r(1,i=[]);for(let e of t.items)i.push(T(e));r(2,b=0)})(t),!i||0==i.length)return;(t=>{if((t=>{if(!t||"false"==t||"undefined"==t)return!0})(h))return;setTimeout((()=>{}),1e3),s&&(s.removeEventListener("message",I),s.close());let e=`${u}/bonus/wagering/updates?bonusWalletIDs=${t}&XSessionId=${h}`;s=EventSource?new EventSource(e):new yn.EventSourcePolyfill(e,{headers:{accept:"text/event-stream"}}),void 0!==s&&s.addEventListener("message",I)})(i.map((t=>t.bonusWalletID)).toString())}))},C=t=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:t},window.location.href)},x=t=>{const e=(t=>t.touches||t.originalEvent.touches)(t)[0];v=e.clientX,E=e.clientY},R=t=>{if(!v||!E)return;let e=t.touches[0].clientX,r=t.touches[0].clientY,n=v-e,o=E-r;Math.abs(n)>Math.abs(o)&&H(n>0?1:-1),v=null,E=null},N=t=>{t.data&&t.data.type}//TODO
724
+ locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(mn).forEach((e=>{!function(e,t){kr(e,t)}(e,mn[e])}));const B=()=>{var e;e=d,tn.set(e)},H=e=>{let t=0;for(let r of e.levels||[]){t+=r.maxRepeats||1}let r=e.currentLevel;return{maxLevel:t,bonusWalletID:e.bonusWalletID,levelIncrement:r.levelIncrement,gap:r.gap,currentStep:r.levelIncrement-r.gap,title:e.title,type:e.type,status:e.status}},L=()=>{clearInterval(s),s=setInterval((()=>{a&&a&&0!==a.length&&(r(2,E=(E+1)%a.length),v&&"0"!=y&&O())}),1e3*Number(y))},P=e=>{L(),c.style.setProperty("--transformFromValue",e>0?"-100%":"100%"),c.style.setProperty("--transformToValue",e>0?"100%":"-100%"),e>0&&v||e<0&&b||(r(2,E+=e),r(2,E=E<0?r(2,E=0):E),r(2,E=E==a.length?r(2,E=a.length-1):E))},I=()=>{r(6,A=!1),L()},O=()=>{r(6,A=!0),r(2,E=0),r(4,b=!0),r(0,v=a.length<2),clearInterval(s),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},C=e=>{if(!e.data)return;let t=e.data;var n;if(t)try{let e=JSON.parse(t);if(!e||!e.items)return;"WageringProgressUpdate"===e.messageType&&(n=e.items,a.forEach((e=>{let t=n[e.bonusWalletID];t&&(e.gap=t.gap,e.levelIncrement=t.levelIncrement,e.status=t.status,e.currentStep=t.levelIncrement-t.gap)})),r(1,a))}catch(e){console.log(e)}},N=e=>{if(!f||!p)return;let t=new URL(`${e}/bonus/wagering`),n=new Headers;t.searchParams.append("language",d),t.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(g)),t.searchParams.append("status","active"),t.searchParams.append("pagination",`limit=${m},offset=0`),p&&n.append("X-SessionID",p),fetch(t,{method:"GET",headers:n}).then((e=>e.json())).then((e=>{if(t.searchParams.toString(),(e=>{r(1,a=[]);for(let t of e.items)a.push(H(t));r(2,E=0)})(e),!a||0==a.length)return;(e=>{if((e=>{if(!e||"false"==e||"undefined"==e)return!0})(p))return;setTimeout((()=>{}),1e3),l&&(l.removeEventListener("message",C),l.close());let t=`${f}/bonus/wagering/updates?bonusWalletIDs=${e}&XSessionId=${p}`;l=EventSource?new EventSource(t):new yn.EventSourcePolyfill(t,{headers:{accept:"text/event-stream"}}),void 0!==l&&l.addEventListener("message",C)})(a.map((e=>e.bonusWalletID)).toString())}))},x=e=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:e},window.location.href)},R=e=>{const t=(e=>e.touches||e.originalEvent.touches)(e)[0];w=t.clientX,_=t.clientY},M=e=>{if(!w||!_)return;let t=e.touches[0].clientX,r=e.touches[0].clientY,n=w-t,o=_-r;Math.abs(n)>Math.abs(o)&&P(n>0?1:-1),w=null,_=null},D=e=>{e.data&&e.data.type}//TODO
734
725
  //getData(endpoint, 0, tournamentsShownNumber);
735
- A((()=>(window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N,!1),a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",R)})));return t.$$set=t=>{"endpoint"in t&&r(11,u=t.endpoint),"session"in t&&r(12,h=t.session),"lang"in t&&r(13,f=t.lang),"numberofrecords"in t&&r(14,p=t.numberofrecords),"looptime"in t&&r(15,d=t.looptime)},t.$$.update=()=>{/*endpoint, session*/6144&t.$$.dirty[0]&&u&&h&&O(u),/*lang*/8192&t.$$.dirty[0]&&f&&_(),/*looptime*/32768&t.$$.dirty[0]&&d&&B(),/*wagerSlider*/8&t.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",R,{passive:!0})),/*currentWagerIdx*/4&t.$$.dirty[0]&&r(4,g=0==b),/*wageringList, currentWagerIdx*/6&t.$$.dirty[0]&&r(0,y=!i||b==i.length-1),/*currentWagerIdx, isLast*/5&t.$$.dirty[0]&&b>0&&y&&P()},[y,i,b,a,g,l,w,n,H,L,C,u,h,f,p,d,()=>H(-1),t=>C(t.bonusWalletID),()=>H(1),function(t){S[t?"unshift":"push"]((()=>{a=t,r(3,a)}))},function(t){S[t?"unshift":"push"]((()=>{l=t,r(5,l)}))},()=>L()]}!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",class extends F{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:rgba(0, 0, 0, 0.8);text-align:right}.stepBar::after{content:' ';position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}</style>",U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},wn,En,i,{currentstep:5,total:6,showaspercent:7,lang:8,status:9},null),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),R()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),R()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),R()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),R()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),R()}});class Hn extends F{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:calc(100%);display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:calc(100%);overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}</style>",U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Sn,Bn,i,{endpoint:11,session:12,lang:13,numberofrecords:14,looptime:15},null,[-1,-1]),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime"]}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),R()}get session(){return this.$$.ctx[12]}set session(t){this.$$set({session:t}),R()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),R()}get numberofrecords(){return this.$$.ctx[14]}set numberofrecords(t){this.$$set({numberofrecords:t}),R()}get looptime(){return this.$$.ctx[15]}set looptime(t){this.$$set({looptime:t}),R()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",Hn),Hn}));
726
+ T((()=>(window.addEventListener("message",D,!1),()=>{window.removeEventListener("message",D,!1),c.removeEventListener("touchstart",R),c.removeEventListener("touchmove",M)})));return e.$$set=e=>{"endpoint"in e&&r(11,f=e.endpoint),"session"in e&&r(12,p=e.session),"lang"in e&&r(13,d=e.lang),"numberofrecords"in e&&r(14,m=e.numberofrecords),"looptime"in e&&r(15,y=e.looptime)},e.$$.update=()=>{/*endpoint, session*/6144&e.$$.dirty[0]&&f&&p&&N(f),/*lang*/8192&e.$$.dirty[0]&&d&&B(),/*looptime*/32768&e.$$.dirty[0]&&y&&L(),/*wagerSlider*/8&e.$$.dirty[0]&&c&&(c.addEventListener("touchstart",R,{passive:!0}),c.addEventListener("touchmove",M,{passive:!0})),/*currentWagerIdx*/4&e.$$.dirty[0]&&r(4,b=0==E),/*wageringList, currentWagerIdx*/6&e.$$.dirty[0]&&r(0,v=!a||E==a.length-1),/*currentWagerIdx, isLast*/5&e.$$.dirty[0]&&E>0&&v&&O()},[v,a,E,c,b,h,A,n,P,I,x,f,p,d,m,y,()=>P(-1),e=>x(e.bonusWalletID),()=>P(1),function(e){S[e?"unshift":"push"]((()=>{c=e,r(3,c)}))},function(e){S[e?"unshift":"push"]((()=>{h=e,r(5,h)}))},()=>I()]}class Tn extends U{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:calc(100%);display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:calc(100%);overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}</style>",D(this,{target:this.shadowRoot,props:w(this.attributes),customElement:!0},_n,wn,i,{endpoint:11,session:12,lang:13,numberofrecords:14,looptime:15},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime"]}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),N()}get session(){return this.$$.ctx[12]}set session(e){this.$$set({session:e}),N()}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),N()}get numberofrecords(){return this.$$.ctx[14]}set numberofrecords(e){this.$$set({numberofrecords:e}),N()}get looptime(){return this.$$.ctx[15]}set looptime(e){this.$$set({looptime:e}),N()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",Tn),Tn}));
736
727
  //# sourceMappingURL=casino-wagering-bonus-slider-controller.js.map