@everymatrix/casino-footer-v2 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-footer-v2.js +248 -235
- package/dist/casino-footer-v2.js.map +1 -1
- package/package.json +3 -4
package/dist/casino-footer-v2.js
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(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,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(u(t,n))}function h(t){return t&&i(t.destroy)?t.destroy:e}function d(e,t){e.appendChild(t)}function f(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function m(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function _(){return b(" ")}function v(){return b("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:k(e,t,n)}function T(e,t){t=""+t,e.
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(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,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(u(t,n))}function h(t){return t&&i(t.destroy)?t.destroy:e}function d(e,t){e.appendChild(t)}function f(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function _(){return b(" ")}function v(){return b("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:k(e,t,n)}function T(e,t){t=""+t,e.data!==t&&(e.data=t)}function S(e,t,n){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];if(r.__value===t)return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function x(e,t,n){e.classList[n?"add":"remove"](t)}function M(e){const t={};for(const n of e)t[n.name]=n.value;return t}function L(e){a=e}
|
2
|
+
/**
|
3
|
+
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
4
|
+
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
5
|
+
* it can be called from an external module).
|
6
|
+
*
|
7
|
+
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
8
|
+
*
|
9
|
+
* https://svelte.dev/docs#run-time-svelte-onmount
|
10
|
+
*/
|
11
|
+
function D(e){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(e)}const $=[],O=[];let P=[];const A=[],H=Promise.resolve();let F=!1;function I(e){P.push(e)}
|
2
12
|
// flush() calls callbacks in this order:
|
3
13
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
4
14
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
@@ -18,96 +28,109 @@
|
|
18
28
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
19
29
|
// function, guarantees this behavior.
|
20
30
|
const B=new Set;let C=0;// Do *not* move this inside the flush() function
|
21
|
-
function N(){
|
31
|
+
function N(){
|
32
|
+
// Do not reenter flush while dirty components are updated, as this can
|
33
|
+
// result in an infinite loop. Instead, let the inner flush handle it.
|
34
|
+
// Reentrancy is ok afterwards for bindings etc.
|
35
|
+
if(0!==C)return;const e=a;do{
|
22
36
|
// first, call beforeUpdate functions
|
23
37
|
// and update components
|
24
|
-
for(;C
|
38
|
+
try{for(;C<$.length;){const e=$[C];C++,L(e),R(e.$$)}}catch(e){
|
39
|
+
// reset dirty state to not end up in a deadlocked state and then rethrow
|
40
|
+
throw $.length=0,C=0,e}for(L(null),$.length=0,C=0;O.length;)O.pop()();
|
25
41
|
// then, once components are updated, call
|
26
42
|
// afterUpdate functions. This may cause
|
27
43
|
// subsequent updates...
|
28
44
|
for(let e=0;e<P.length;e+=1){const t=P[e];B.has(t)||(
|
29
45
|
// ...so guard against infinite loops
|
30
|
-
B.add(t),t())}P.length=0}while(
|
46
|
+
B.add(t),t())}P.length=0}while($.length);for(;A.length;)A.pop()();F=!1,B.clear(),L(e)}function R(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}
|
47
|
+
/**
|
48
|
+
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
49
|
+
*/const Y=new Set;const U="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function G(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];P.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),P=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),
|
50
|
+
// TODO null out other refs, including component.$$ (but need to
|
51
|
+
// preserve final state?)
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&($.push(e),F||(F=!0,H.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function V(o,s,l,u,c,h,d,f=[-1]){const m=a;L(o);const g=o.$$={fragment:null,ctx:[],
|
31
53
|
// state
|
32
54
|
props:h,update:e,not_equal:c,bound:n(),
|
33
55
|
// lifecycle
|
34
56
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
|
35
57
|
// everything else
|
36
|
-
callbacks:n(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};d&&d(g.root);let y=!1;if(g.ctx=l?l(o,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&
|
58
|
+
callbacks:n(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};d&&d(g.root);let y=!1;if(g.ctx=l?l(o,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&j(o,e)),t})):[],g.update(),y=!0,r(g.before_update),
|
37
59
|
// `false` as a special case of no DOM component
|
38
60
|
g.fragment=!!u&&u(g.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
39
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
40
62
|
g.fragment&&g.fragment.l(e),e.forEach(p)}else
|
41
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
42
|
-
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(Y.delete(b),b.i(_))),function(e,n,o,s){const{fragment:a,
|
64
|
+
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(Y.delete(b),b.i(_))),function(e,n,o,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(n,o),s||
|
43
65
|
// onMount happens before the initial afterUpdate
|
44
|
-
I((()=>{const n=
|
66
|
+
I((()=>{const n=e.$$.on_mount.map(t).filter(i);
|
67
|
+
// if the component was destroyed immediately
|
68
|
+
// it will update the `$$.on_destroy` reference to `null`.
|
69
|
+
// the destructured on_destroy may still reference to the old array
|
70
|
+
e.$$.on_destroy?e.$$.on_destroy.push(...n):
|
45
71
|
// Edge case - component was destroyed immediately,
|
46
72
|
// most likely as a result of a binding initialising
|
47
|
-
r(n),e.$$.on_mount=[]})),
|
48
|
-
/* ../casino-footer-thumbnail/src/CasinoFooterThumbnail.svelte generated by Svelte v3.
|
49
|
-
function
|
73
|
+
r(n),e.$$.on_mount=[]})),l.forEach(I)}(o,s.target,s.anchor,s.customElement),N()}var b,_;L(m)}let W;
|
74
|
+
/* ../casino-footer-thumbnail/src/CasinoFooterThumbnail.svelte generated by Svelte v3.58.0 */
|
75
|
+
function z(e){let t,n,r,i,o,s,a,u;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*sociallinkimage*/e[16])||k(r,"src",i),k(r,"title",o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15]),k(n,"class",s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",a="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",u=/*linktype*/e[19]?/*sociallinkurl*/e[15]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sociallinkurl*/+e[15]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem SocialItem"),k(t,"part","FooterItem SocialItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*sociallinkimage*/65536&t&&!l(r.src,i=/*sociallinkimage*/e[16])&&k(r,"src",i),/*sociallinktitle, sociallinkurl*/163840&t&&o!==(o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15])&&k(r,"title",o),/*sociallinkurl*/32768&t&&s!==(s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*sociallinkurl*/32768&t&&a!==(a="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",a),/*linktype, sociallinkurl, baseurl, lang*/6848512&t&&u!==(u=/*linktype*/e[19]?/*sociallinkurl*/e[15]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sociallinkurl*/+e[15])&&k(n,"href",u),/*target*/262144&t&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
50
76
|
// (94:25)
|
51
|
-
function
|
77
|
+
function Z(e){let t,n,r,i,o,s,a,u;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*licenseimage*/e[13])||k(r,"src",i),k(r,"title",o=/*licensetitle*/e[14]||/*licenseurl*/e[12]),k(n,"class",s="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",a="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",u=/*linktype*/e[19]?/*licenseurl*/e[12]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*licenseurl*/+e[12]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem"),k(t,"part","FooterItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*licenseimage*/8192&t&&!l(r.src,i=/*licenseimage*/e[13])&&k(r,"src",i),/*licensetitle, licenseurl*/20480&t&&o!==(o=/*licensetitle*/e[14]||/*licenseurl*/e[12])&&k(r,"title",o),/*licenseurl*/4096&t&&s!==(s="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*licenseurl*/4096&t&&a!==(a="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",a),/*linktype, licenseurl, baseurl, lang*/6819840&t&&u!==(u=/*linktype*/e[19]?/*licenseurl*/e[12]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*licenseurl*/+e[12])&&k(n,"href",u),/*target*/262144&t&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
52
78
|
// (82:28)
|
53
|
-
function
|
79
|
+
function X(e){let t,n,r,i,o,s,a,u,c,h,m=/*helperlinktitle*/e[11]&&Q(e);return{c(){t=g("div"),n=g("a"),r=g("img"),s=_(),m&&m.c(),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*helperlinkimage*/e[10])||k(r,"src",i),k(r,"title",o=/*helperlinktitle*/e[11]||/*helperlinkurl*/e[9]),k(n,"class",a=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",u=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*helperlinkurl*/e[9]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*helperlinkurl*/+e[9]),k(n,"target",/*target*/e[18]),k(t,"class",h="FooterItem HelperLinkItem "+(/*displaycolumn*/"true"==e[20]?"DisplayColumn":"")),k(t,"part","FooterItem HelperLinkItem")},m(e,i){f(e,t,i),d(t,n),d(n,r),d(n,s),m&&m.m(n,null)},p(e,s){/*helperlinkimage*/1024&s&&!l(r.src,i=/*helperlinkimage*/e[10])&&k(r,"src",i),/*helperlinktitle, helperlinkurl*/2560&s&&o!==(o=/*helperlinktitle*/e[11]||/*helperlinkurl*/e[9])&&k(r,"title",o),/*helperlinktitle*/e[11]?m?m.p(e,s):(m=Q(e),m.c(),m.m(n,null)):m&&(m.d(1),m=null),/*helperlinktitle, helperlinkurl*/2560&s&&a!==(a=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",a),/*helperlinktitle, helperlinkurl*/2560&s&&u!==(u=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",u),/*linktype, helperlinkurl, baseurl, lang*/6816256&s&&c!==(c=/*linktype*/e[19]?/*helperlinkurl*/e[9]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*helperlinkurl*/+e[9])&&k(n,"href",c),/*target*/262144&s&&k(n,"target",/*target*/e[18]),/*displaycolumn*/1048576&s&&h!==(h="FooterItem HelperLinkItem "+(/*displaycolumn*/"true"==e[20]?"DisplayColumn":""))&&k(t,"class",h)},d(e){e&&p(t),m&&m.d()}}}
|
54
80
|
// (73:24)
|
55
|
-
function
|
81
|
+
function K(e){let t,n,r,i,o,s,a,u;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*vendorimage*/e[7])||k(r,"src",i),k(r,"title",o=/*vendortitle*/e[8]||/*vendorurl*/e[6]),k(n,"class",s=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",a=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",u=/*linktype*/e[19]?/*vendorurl*/e[6]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*vendorurl*/+e[6]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem GameVendorItem"),k(t,"part","FooterItem GameVendorItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*vendorimage*/128&t&&!l(r.src,i=/*vendorimage*/e[7])&&k(r,"src",i),/*vendortitle, vendorurl*/320&t&&o!==(o=/*vendortitle*/e[8]||/*vendorurl*/e[6])&&k(r,"title",o),/*vendorurl*/64&t&&s!==(s=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*vendorurl*/64&t&&a!==(a=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",a),/*linktype, vendorurl, baseurl, lang*/6815808&t&&u!==(u=/*linktype*/e[19]?/*vendorurl*/e[6]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*vendorurl*/+e[6])&&k(n,"href",u),/*target*/262144&t&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
56
82
|
// (61:25)
|
57
|
-
function
|
83
|
+
function q(e){let t,n,r,i,o,s,a,u,c,h=/*paymenttitle*/e[5]&&ee(e);return{c(){t=g("div"),n=g("a"),r=g("img"),s=_(),h&&h.c(),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*paymentimage*/e[4])||k(r,"src",i),k(r,"title",o=/*paymenttitle*/e[5]||/*paymenturl*/e[3]),k(n,"class",a=/*paymenttitle*/(e[5]?"FooterPaymentLink":"")+" "+(/*paymenturl*/e[3]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",u=/*paymenttitle*/(e[5]?"FooterPaymentLink":"")+" "+(/*paymenturl*/e[3]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*paymenturl*/e[3]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*paymenturl*/+e[3]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem PaymentItem"),k(t,"part","FooterItem PaymentItem")},m(e,i){f(e,t,i),d(t,n),d(n,r),d(n,s),h&&h.m(n,null)},p(e,t){/*paymentimage*/16&t&&!l(r.src,i=/*paymentimage*/e[4])&&k(r,"src",i),/*paymenttitle, paymenturl*/40&t&&o!==(o=/*paymenttitle*/e[5]||/*paymenturl*/e[3])&&k(r,"title",o),/*paymenttitle*/e[5]?h?h.p(e,t):(h=ee(e),h.c(),h.m(n,null)):h&&(h.d(1),h=null),/*paymenttitle, paymenturl*/40&t&&a!==(a=/*paymenttitle*/(e[5]?"FooterPaymentLink":"")+" "+(/*paymenturl*/e[3]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",a),/*paymenttitle, paymenturl*/40&t&&u!==(u=/*paymenttitle*/(e[5]?"FooterPaymentLink":"")+" "+(/*paymenturl*/e[3]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",u),/*linktype, paymenturl, baseurl, lang*/6815752&t&&c!==(c=/*linktype*/e[19]?/*paymenturl*/e[3]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*paymenturl*/+e[3])&&k(n,"href",c),/*target*/262144&t&&k(n,"target",/*target*/e[18])},d(e){e&&p(t),h&&h.d()}}}
|
58
84
|
// (49:2) {#if sponsorimage}
|
59
|
-
function
|
85
|
+
function J(e){let t,n,r,i,o,s,a,u,c,h=/*sponsortitle*/e[2]&&te(e);return{c(){t=g("div"),n=g("a"),r=g("img"),s=_(),h&&h.c(),k(r,"class","FooterImage"),k(r,"part","FooterImage"),l(r.src,i=/*sponsorimage*/e[1])||k(r,"src",i),k(r,"title",o=/*sponsortitle*/e[2]||/*sponsorurl*/e[0]),k(n,"class",a=/*sponsortitle*/(e[2]?"FooterSponsorLink":"")+" "+(/*sponsorurl*/e[0]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",u=/*sponsortitle*/(e[2]?"FooterSponsorLink":"")+" "+(/*sponsorurl*/e[0]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*sponsorurl*/e[0]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sponsorurl*/+e[0]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem SponsorItem"),k(t,"part","FooterItem SponsorItem")},m(e,i){f(e,t,i),d(t,n),d(n,r),d(n,s),h&&h.m(n,null)},p(e,t){/*sponsorimage*/2&t&&!l(r.src,i=/*sponsorimage*/e[1])&&k(r,"src",i),/*sponsortitle, sponsorurl*/5&t&&o!==(o=/*sponsortitle*/e[2]||/*sponsorurl*/e[0])&&k(r,"title",o),/*sponsortitle*/e[2]?h?h.p(e,t):(h=te(e),h.c(),h.m(n,null)):h&&(h.d(1),h=null),/*sponsortitle, sponsorurl*/5&t&&a!==(a=/*sponsortitle*/(e[2]?"FooterSponsorLink":"")+" "+(/*sponsorurl*/e[0]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",a),/*sponsortitle, sponsorurl*/5&t&&u!==(u=/*sponsortitle*/(e[2]?"FooterSponsorLink":"")+" "+(/*sponsorurl*/e[0]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",u),/*linktype, sponsorurl, baseurl, lang*/6815745&t&&c!==(c=/*linktype*/e[19]?/*sponsorurl*/e[0]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sponsorurl*/+e[0])&&k(n,"href",c),/*target*/262144&t&&k(n,"target",/*target*/e[18])},d(e){e&&p(t),h&&h.d()}}}
|
60
86
|
// (89:8) {#if helperlinktitle}
|
61
|
-
function
|
87
|
+
function Q(e){let t,n;return{c(){t=g("p"),n=b(/*helperlinktitle*/e[11]),k(t,"class","HelperTitle"),k(t,"part","HelperTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*helperlinktitle*/2048&t&&T(n,/*helperlinktitle*/e[11])},d(e){e&&p(t)}}}
|
62
88
|
// (68:8) {#if paymenttitle}
|
63
|
-
function
|
89
|
+
function ee(e){let t,n;return{c(){t=g("p"),n=b(/*paymenttitle*/e[5]),k(t,"class","PaymentTitle"),k(t,"part","PaymentTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*paymenttitle*/32&t&&T(n,/*paymenttitle*/e[5])},d(e){e&&p(t)}}}
|
64
90
|
// (56:8) {#if sponsortitle}
|
65
|
-
function
|
66
|
-
return e[1]?
|
91
|
+
function te(e){let t,n;return{c(){t=g("p"),n=b(/*sponsortitle*/e[2]),k(t,"class","SponsorTitle"),k(t,"part","SponsorTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*sponsortitle*/4&t&&T(n,/*sponsortitle*/e[2])},d(e){e&&p(t)}}}function ne(t){let n;function r(e,t){/*sponsorimage*/
|
92
|
+
return e[1]?J:/*paymentimage*/e[4]?q:/*vendorimage*/e[7]?K:/*helperlinkimage*/e[10]?X:/*licenseimage*/e[13]?Z:/*sociallinkimage*/e[16]?z:void 0}let i=r(t),o=i&&i(t);return{c(){n=g("div"),o&&o.c(),this.c=e,k(n,"class","ThumbnailContainer"),k(n,"part","ThumbnailContainer")},m(e,r){f(e,n,r),o&&o.m(n,null)
|
67
93
|
/*div_binding*/,t[26](n)},p(e,[t]){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(n,null)))},i:e,o:e,d(e){e&&p(n),o&&o.d()
|
68
|
-
/*div_binding*/,t[26](null)}}}function
|
94
|
+
/*div_binding*/,t[26](null)}}}function re(e,t,n){let r,{sponsorurl:i=""}=t,{sponsorimage:o=""}=t,{sponsortitle:s=""}=t,{paymenturl:a=""}=t,{paymentimage:l=""}=t,{paymenttitle:u=""}=t,{vendorurl:c=""}=t,{vendorimage:h=""}=t,{vendortitle:d=""}=t,{helperlinkurl:f=""}=t,{helperlinkimage:p=""}=t,{helperlinktitle:m=""}=t,{licenseurl:g=""}=t,{licenseimage:y=""}=t,{licensetitle:b=""}=t,{sociallinkurl:_=""}=t,{sociallinkimage:v=""}=t,{sociallinktitle:w=""}=t,{target:k="_self"}=t,{linktype:E="false"}=t,{displaycolumn:T=""}=t,{baseurl:S=""}=t,{lang:x=""}=t,{clientstyling:M=""}=t,{clientstylingurl:L=""}=t;return e.$$set=e=>{"sponsorurl"in e&&n(0,i=e.sponsorurl),"sponsorimage"in e&&n(1,o=e.sponsorimage),"sponsortitle"in e&&n(2,s=e.sponsortitle),"paymenturl"in e&&n(3,a=e.paymenturl),"paymentimage"in e&&n(4,l=e.paymentimage),"paymenttitle"in e&&n(5,u=e.paymenttitle),"vendorurl"in e&&n(6,c=e.vendorurl),"vendorimage"in e&&n(7,h=e.vendorimage),"vendortitle"in e&&n(8,d=e.vendortitle),"helperlinkurl"in e&&n(9,f=e.helperlinkurl),"helperlinkimage"in e&&n(10,p=e.helperlinkimage),"helperlinktitle"in e&&n(11,m=e.helperlinktitle),"licenseurl"in e&&n(12,g=e.licenseurl),"licenseimage"in e&&n(13,y=e.licenseimage),"licensetitle"in e&&n(14,b=e.licensetitle),"sociallinkurl"in e&&n(15,_=e.sociallinkurl),"sociallinkimage"in e&&n(16,v=e.sociallinkimage),"sociallinktitle"in e&&n(17,w=e.sociallinktitle),"target"in e&&n(18,k=e.target),"linktype"in e&&n(19,E=e.linktype),"displaycolumn"in e&&n(20,T=e.displaycolumn),"baseurl"in e&&n(21,S=e.baseurl),"lang"in e&&n(22,x=e.lang),"clientstyling"in e&&n(24,M=e.clientstyling),"clientstylingurl"in e&&n(25,L=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/25165824&e.$$.dirty&&M&&r&&(()=>{let e=document.createElement("style");e.innerHTML=M,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/41943040&e.$$.dirty&&L&&r&&(()=>{let e=new URL(L),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,u,c,h,d,f,p,m,g,y,b,_,v,w,k,E,T,S,x,r,M,L,function(e){O[e?"unshift":"push"]((()=>{r=e,n(23,r)}))}]}"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
69
95
|
// @ts-ignore todo: improve typings
|
70
96
|
for(const e in this.$$.slotted)
|
71
97
|
// @ts-ignore todo: improve typings
|
72
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){
|
73
|
-
// TODO null out other refs, including component.$$ (but need to
|
74
|
-
// preserve final state?)
|
75
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){
|
98
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){G(this,1),this.$destroy=e}$on(t,n){
|
76
99
|
// TODO should this delegate to addEventListener?
|
77
|
-
const
|
78
|
-
/* ../casino-footer-section/src/CasinoFooterSection.svelte generated by Svelte v3.
|
79
|
-
function
|
100
|
+
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-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)}});
|
101
|
+
/* ../casino-footer-section/src/CasinoFooterSection.svelte generated by Svelte v3.58.0 */
|
102
|
+
function ie(e,t,n){const r=e.slice();return r[31]=t[n],r}function oe(e,t,n){const r=e.slice();return r[31]=t[n],r}function se(e,t,n){const r=e.slice();return r[31]=t[n],r}function ae(e,t,n){const r=e.slice();return r[31]=t[n],r}function le(e,t,n){const r=e.slice();return r[28]=t[n],r}function ue(e,t,n){const r=e.slice();return r[25]=t[n],r}
|
80
103
|
// (147:51)
|
81
|
-
function
|
104
|
+
function ce(e){let t,n=/*footersociallinks*/e[17],r=[];for(let t=0;t<n.length;t+=1)r[t]=ge(ie(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footersociallinks, clientstyling, clientstylingurl, baseurl, lang*/132992&i[0]){let o;for(n=/*footersociallinks*/e[17],o=0;o<n.length;o+=1){const s=ie(e,n,o);r[o]?r[o].p(s,i):(r[o]=ge(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
82
105
|
// (132:49)
|
83
|
-
function
|
106
|
+
function he(e){let t,n=/*footerlicenses*/e[16],r=[];for(let t=0;t<n.length;t+=1)r[t]=ye(oe(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footerlicenses, clientstyling, clientstylingurl, baseurl, lang*/67456&i[0]){let o;for(n=/*footerlicenses*/e[16],o=0;o<n.length;o+=1){const s=oe(e,n,o);r[o]?r[o].p(s,i):(r[o]=ye(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
84
107
|
// (116:51)
|
85
|
-
function
|
108
|
+
function de(e){let t,n,r=/*footerhelperlinks*/e[15],i=[];for(let t=0;t<r.length;t+=1)i[t]=be(se(e,r,t));return{c(){t=g("div");for(let e=0;e<i.length;e+=1)i[e].c();k(t,"class",n="FooterSectionInnerContainer "+(/*displaycolumn*/"true"==e[6]?"DisplayColumn":"")),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null)},p(e,o){if(/*footerhelperlinks, clientstyling, clientstylingurl, displaycolumn, baseurl, lang*/34752&o[0]){let n;for(r=/*footerhelperlinks*/e[15],n=0;n<r.length;n+=1){const s=se(e,r,n);i[n]?i[n].p(s,o):(i[n]=be(s),i[n].c(),i[n].m(t,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}/*displaycolumn*/64&o[0]&&n!==(n="FooterSectionInnerContainer "+(/*displaycolumn*/"true"==e[6]?"DisplayColumn":""))&&k(t,"class",n)},d(e){e&&p(t),m(i,e)}}}
|
86
109
|
// (101:47)
|
87
|
-
function
|
110
|
+
function fe(e){let t,n=/*footervendors*/e[14],r=[];for(let t=0;t<n.length;t+=1)r[t]=_e(ae(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footervendors, clientstyling, clientstylingurl, baseurl, lang*/18304&i[0]){let o;for(n=/*footervendors*/e[14],o=0;o<n.length;o+=1){const s=ae(e,n,o);r[o]?r[o].p(s,i):(r[o]=_e(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
88
111
|
// (86:48)
|
89
|
-
function
|
112
|
+
function pe(e){let t,n=/*footerpayment*/e[13],r=[];for(let t=0;t<n.length;t+=1)r[t]=ve(le(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footerpayment, clientstyling, clientstylingurl, baseurl, lang*/10112&i[0]){let o;for(n=/*footerpayment*/e[13],o=0;o<n.length;o+=1){const s=le(e,n,o);r[o]?r[o].p(s,i):(r[o]=ve(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
90
113
|
// (71:2) {#if sponsorflag && footersponsors.length}
|
91
|
-
function
|
114
|
+
function me(e){let t,n=/*footersponsors*/e[12],r=[];for(let t=0;t<n.length;t+=1)r[t]=we(ue(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footersponsors, clientstyling, clientstylingurl, baseurl, lang*/6016&i[0]){let o;for(n=/*footersponsors*/e[12],o=0;o<n.length;o+=1){const s=ue(e,n,o);r[o]?r[o].p(s,i):(r[o]=we(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
92
115
|
// (149:6) {#each footersociallinks as footerData}
|
93
|
-
function
|
116
|
+
function ge(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"sociallinkurl",n=/*footerData*/e[31].socialLinkUrl),E(t,"sociallinkimage",r=/*footerData*/e[31].socialLinkImage),E(t,"sociallinktitle",i=/*footerData*/e[31].socialLinkTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"linktype",o=/*footerData*/e[31]?.isExternalLink),E(t,"target",s=/*footerData*/e[31]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footersociallinks*/131072&a[0]&&n!==(n=/*footerData*/e[31].socialLinkUrl)&&E(t,"sociallinkurl",n),/*footersociallinks*/131072&a[0]&&r!==(r=/*footerData*/e[31].socialLinkImage)&&E(t,"sociallinkimage",r),/*footersociallinks*/131072&a[0]&&i!==(i=/*footerData*/e[31].socialLinkTitle)&&E(t,"sociallinktitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*footersociallinks*/131072&a[0]&&o!==(o=/*footerData*/e[31]?.isExternalLink)&&E(t,"linktype",o),/*footersociallinks*/131072&a[0]&&s!==(s=/*footerData*/e[31]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}
|
94
117
|
// (134:6) {#each footerlicenses as footerData}
|
95
|
-
function
|
118
|
+
function ye(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"licenseurl",n=/*footerData*/e[31].licenseUrl),E(t,"licenseimage",r=/*footerData*/e[31].licenseImage),E(t,"licensetitle",i=/*footerData*/e[31].licenseTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"linktype",o=/*footerData*/e[31]?.isExternalLink),E(t,"target",s=/*footerData*/e[31]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footerlicenses*/65536&a[0]&&n!==(n=/*footerData*/e[31].licenseUrl)&&E(t,"licenseurl",n),/*footerlicenses*/65536&a[0]&&r!==(r=/*footerData*/e[31].licenseImage)&&E(t,"licenseimage",r),/*footerlicenses*/65536&a[0]&&i!==(i=/*footerData*/e[31].licenseTitle)&&E(t,"licensetitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*footerlicenses*/65536&a[0]&&o!==(o=/*footerData*/e[31]?.isExternalLink)&&E(t,"linktype",o),/*footerlicenses*/65536&a[0]&&s!==(s=/*footerData*/e[31]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}
|
96
119
|
// (118:6) {#each footerhelperlinks as footerData}
|
97
|
-
function
|
120
|
+
function be(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"helperlinkurl",n=/*footerData*/e[31].helpLinkUrl),E(t,"helperlinkimage",r=/*footerData*/e[31].helpLinkImage),E(t,"helperlinktitle",i=/*footerData*/e[31].helpLinkTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"displaycolumn",/*displaycolumn*/e[6]),E(t,"linktype",o=/*footerData*/e[31]?.helpLinkType),E(t,"target",s=/*footerData*/e[31]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footerhelperlinks*/32768&a[0]&&n!==(n=/*footerData*/e[31].helpLinkUrl)&&E(t,"helperlinkurl",n),/*footerhelperlinks*/32768&a[0]&&r!==(r=/*footerData*/e[31].helpLinkImage)&&E(t,"helperlinkimage",r),/*footerhelperlinks*/32768&a[0]&&i!==(i=/*footerData*/e[31].helpLinkTitle)&&E(t,"helperlinktitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*displaycolumn*/64&a[0]&&E(t,"displaycolumn",/*displaycolumn*/e[6]),/*footerhelperlinks*/32768&a[0]&&o!==(o=/*footerData*/e[31]?.helpLinkType)&&E(t,"linktype",o),/*footerhelperlinks*/32768&a[0]&&s!==(s=/*footerData*/e[31]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}
|
98
121
|
// (103:6) {#each footervendors as footerData}
|
99
|
-
function
|
122
|
+
function _e(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"vendorurl",n=/*footerData*/e[31].gameVendorUrl),E(t,"vendorimage",r=/*footerData*/e[31].gameVendorImage),E(t,"vendortitle",i=/*footerData*/e[31].gameVendorTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"linktype",o=/*footerData*/e[31]?.isExternalLink),E(t,"target",s=/*footerData*/e[31]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footervendors*/16384&a[0]&&n!==(n=/*footerData*/e[31].gameVendorUrl)&&E(t,"vendorurl",n),/*footervendors*/16384&a[0]&&r!==(r=/*footerData*/e[31].gameVendorImage)&&E(t,"vendorimage",r),/*footervendors*/16384&a[0]&&i!==(i=/*footerData*/e[31].gameVendorTitle)&&E(t,"vendortitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*footervendors*/16384&a[0]&&o!==(o=/*footerData*/e[31]?.isExternalLink)&&E(t,"linktype",o),/*footervendors*/16384&a[0]&&s!==(s=/*footerData*/e[31]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}
|
100
123
|
// (88:4) {#each footerpayment as paymentData}
|
101
|
-
function
|
124
|
+
function ve(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"paymenturl",n=/*paymentData*/e[28].paymentMethodUrl),E(t,"paymentimage",r=/*paymentData*/e[28].paymentMethodImage),E(t,"paymenttitle",i=/*paymentData*/e[28].paymentMethodTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"linktype",o=/*paymentData*/e[28]?.isExternalLink),E(t,"target",s=/*paymentData*/e[28]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footerpayment*/8192&a[0]&&n!==(n=/*paymentData*/e[28].paymentMethodUrl)&&E(t,"paymenturl",n),/*footerpayment*/8192&a[0]&&r!==(r=/*paymentData*/e[28].paymentMethodImage)&&E(t,"paymentimage",r),/*footerpayment*/8192&a[0]&&i!==(i=/*paymentData*/e[28].paymentMethodTitle)&&E(t,"paymenttitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*footerpayment*/8192&a[0]&&o!==(o=/*paymentData*/e[28]?.isExternalLink)&&E(t,"linktype",o),/*footerpayment*/8192&a[0]&&s!==(s=/*paymentData*/e[28]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}
|
102
125
|
// (73:6) {#each footersponsors as sponsorData}
|
103
|
-
function
|
104
|
-
return e[0]&&/*footersponsors*/e[12].length?
|
126
|
+
function we(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"sponsorurl",n=/*sponsorData*/e[25].sponsorUrl),E(t,"sponsorimage",r=/*sponsorData*/e[25].sponsorImage),E(t,"sponsortitle",i=/*sponsorData*/e[25].sponsorTitle),E(t,"clientstyling",/*clientstyling*/e[9]),E(t,"clientstylingurl",/*clientstylingurl*/e[10]),E(t,"linktype",o=/*sponsorData*/e[25]?.isExternalLink),E(t,"target",s=/*sponsorData*/e[25]?.target),E(t,"baseurl",/*baseurl*/e[7]),E(t,"lang",/*lang*/e[8])},m(e,n){f(e,t,n)},p(e,a){/*footersponsors*/4096&a[0]&&n!==(n=/*sponsorData*/e[25].sponsorUrl)&&E(t,"sponsorurl",n),/*footersponsors*/4096&a[0]&&r!==(r=/*sponsorData*/e[25].sponsorImage)&&E(t,"sponsorimage",r),/*footersponsors*/4096&a[0]&&i!==(i=/*sponsorData*/e[25].sponsorTitle)&&E(t,"sponsortitle",i),/*clientstyling*/512&a[0]&&E(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&a[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*footersponsors*/4096&a[0]&&o!==(o=/*sponsorData*/e[25]?.isExternalLink)&&E(t,"linktype",o),/*footersponsors*/4096&a[0]&&s!==(s=/*sponsorData*/e[25]?.target)&&E(t,"target",s),/*baseurl*/128&a[0]&&E(t,"baseurl",/*baseurl*/e[7]),/*lang*/256&a[0]&&E(t,"lang",/*lang*/e[8])},d(e){e&&p(t)}}}function ke(t){let n;function r(e,t){/*sponsorflag*/
|
127
|
+
return e[0]&&/*footersponsors*/e[12].length?me:/*paymentflag*/e[1]&&/*footerpayment*/e[13].length?pe:/*vendorflag*/e[2]&&/*footervendors*/e[14].length?fe:/*helperflag*/e[3]&&/*footerhelperlinks*/e[15].length?de:/*licenseflag*/e[4]&&/*footerlicenses*/e[16].length?he:/*socialflag*/e[5]&&/*footersociallinks*/e[17].length?ce:void 0}let i=r(t),o=i&&i(t);return{c(){n=g("div"),o&&o.c(),this.c=e,k(n,"class","FooterSectionContainer"),k(n,"part","FooterSectionContainer")},m(e,r){f(e,n,r),o&&o.m(n,null)
|
105
128
|
/*div_binding*/,t[21](n)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(n,null)))},i:e,o:e,d(e){e&&p(n),o&&o.d()
|
106
|
-
/*div_binding*/,t[21](null)}}}function
|
129
|
+
/*div_binding*/,t[21](null)}}}function Ee(e,t,n){let r,{sponsorflag:i=""}=t,{paymentflag:o=""}=t,{vendorflag:s=""}=t,{helperflag:a=""}=t,{licenseflag:l=""}=t,{socialflag:u=""}=t,{target:c=""}=t,{displaycolumn:h=""}=t,{category:d=""}=t,{baseurl:f=""}=t,{lang:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{footertype:y=""}=t,b=[],_=[],v=[],w=[],k=[],E=[];const T=e=>{e.data&&"FooterData"===e.data.type&&(n(12,b=e.data.sponsorsRepeater),n(13,_=e.data.paymentMethodsRepeater),n(14,v=e.data.gameVendorsRepeater),n(15,w=e.data.helpLinksRepeater),n(16,k=e.data.licensesRepeater),n(17,E=e.data.socialLinksRepeater),d&&n(15,w=w.filter((e=>e.key==d))),
|
107
130
|
// casino-footer-v2 uses a different structure for the CMS data for the helper links
|
108
|
-
"footersecondary"===y&&n(15,w=w[0].value))};return D((()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}))),e.$$set=e=>{"sponsorflag"in e&&n(0,i=e.sponsorflag),"paymentflag"in e&&n(1,o=e.paymentflag),"vendorflag"in e&&n(2,s=e.vendorflag),"helperflag"in e&&n(3,a=e.helperflag),"licenseflag"in e&&n(4,l=e.licenseflag),"socialflag"in e&&n(5,u=e.socialflag),"target"in e&&n(18,c=e.target),"displaycolumn"in e&&n(6,h=e.displaycolumn),"category"in e&&n(19,d=e.category),"baseurl"in e&&n(7,f=e.baseurl),"lang"in e&&n(8,p=e.lang),"clientstyling"in e&&n(9,m=e.clientstyling),"clientstylingurl"in e&&n(10,g=e.clientstylingurl),"footertype"in e&&n(20,y=e.footertype)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/2560&e.$$.dirty[0]&&m&&r&&(()=>{let e=document.createElement("style");e.innerHTML=m,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/3072&e.$$.dirty[0]&&g&&r&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,u,h,f,p,m,g,r,b,_,v,w,k,E,c,d,y,function(e){
|
131
|
+
"footersecondary"===y&&n(15,w=w[0].value))};return D((()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}))),e.$$set=e=>{"sponsorflag"in e&&n(0,i=e.sponsorflag),"paymentflag"in e&&n(1,o=e.paymentflag),"vendorflag"in e&&n(2,s=e.vendorflag),"helperflag"in e&&n(3,a=e.helperflag),"licenseflag"in e&&n(4,l=e.licenseflag),"socialflag"in e&&n(5,u=e.socialflag),"target"in e&&n(18,c=e.target),"displaycolumn"in e&&n(6,h=e.displaycolumn),"category"in e&&n(19,d=e.category),"baseurl"in e&&n(7,f=e.baseurl),"lang"in e&&n(8,p=e.lang),"clientstyling"in e&&n(9,m=e.clientstyling),"clientstylingurl"in e&&n(10,g=e.clientstylingurl),"footertype"in e&&n(20,y=e.footertype)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/2560&e.$$.dirty[0]&&m&&r&&(()=>{let e=document.createElement("style");e.innerHTML=m,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/3072&e.$$.dirty[0]&&g&&r&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,u,h,f,p,m,g,r,b,_,v,w,k,E,c,d,y,function(e){O[e?"unshift":"push"]((()=>{r=e,n(11,r)}))}]}!customElements.get("casino-footer-thumbnail")&&customElements.define("casino-footer-thumbnail",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterItem{display:inline-block;padding:0 12px}.FooterItem .FooterSponsorLink,.FooterItem .FooterPaymentLink{display:block}.FooterItem .FooterSponsorLink{display:flex;align-items:center}.FooterItem .FooterPaymentLink,.FooterItem .FooterHelperLink{display:flex;align-items:center;justify-content:center}.FooterItem .FooterLinkDisabled{pointer-events:none;cursor:auto}.FooterItem .SponsorTitle,.FooterItem .PaymentTitle{font-size:9px;text-decoration:none;color:var(--emfe-w-color-gray-150, #828282);text-align:center}.FooterItem .HelperTitle{color:#111111;font-size:8px}.FooterItem.HelperLinkItem p{font-size:10px}.FooterItem .FooterItemAnchor{display:flex;flex-direction:column;gap:6px;text-decoration:none}.FooterItem.SocialItem .FooterItemAnchor{width:42px;height:42px}.FooterItem .FooterImage{min-height:38px}.SponsorTitle{margin:0}.FooterLink{display:block;text-align:center}.DisplayColumn .FooterItemAnchor{flex-direction:row}.DisplayColumn .FooterImage{height:16px;width:16px}.DisplayColumn.FooterItem.HelperLinkItem p{font-size:12px}@media only screen and (max-width: 768px){.FooterItem{padding:0 5px}.FooterItem.PaymentItem{padding:15px 5px}.FooterItem.GameVendorItem{padding:0 10px}}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},re,ne,o,{sponsorurl:0,sponsorimage:1,sponsortitle:2,paymenturl:3,paymentimage:4,paymenttitle:5,vendorurl:6,vendorimage:7,vendortitle:8,helperlinkurl:9,helperlinkimage:10,helperlinktitle:11,licenseurl:12,licenseimage:13,licensetitle:14,sociallinkurl:15,sociallinkimage:16,sociallinktitle:17,target:18,linktype:19,displaycolumn:20,baseurl:21,lang:22,clientstyling:24,clientstylingurl:25},null),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["sponsorurl","sponsorimage","sponsortitle","paymenturl","paymentimage","paymenttitle","vendorurl","vendorimage","vendortitle","helperlinkurl","helperlinkimage","helperlinktitle","licenseurl","licenseimage","licensetitle","sociallinkurl","sociallinkimage","sociallinktitle","target","linktype","displaycolumn","baseurl","lang","clientstyling","clientstylingurl"]}get sponsorurl(){return this.$$.ctx[0]}set sponsorurl(e){this.$$set({sponsorurl:e}),N()}get sponsorimage(){return this.$$.ctx[1]}set sponsorimage(e){this.$$set({sponsorimage:e}),N()}get sponsortitle(){return this.$$.ctx[2]}set sponsortitle(e){this.$$set({sponsortitle:e}),N()}get paymenturl(){return this.$$.ctx[3]}set paymenturl(e){this.$$set({paymenturl:e}),N()}get paymentimage(){return this.$$.ctx[4]}set paymentimage(e){this.$$set({paymentimage:e}),N()}get paymenttitle(){return this.$$.ctx[5]}set paymenttitle(e){this.$$set({paymenttitle:e}),N()}get vendorurl(){return this.$$.ctx[6]}set vendorurl(e){this.$$set({vendorurl:e}),N()}get vendorimage(){return this.$$.ctx[7]}set vendorimage(e){this.$$set({vendorimage:e}),N()}get vendortitle(){return this.$$.ctx[8]}set vendortitle(e){this.$$set({vendortitle:e}),N()}get helperlinkurl(){return this.$$.ctx[9]}set helperlinkurl(e){this.$$set({helperlinkurl:e}),N()}get helperlinkimage(){return this.$$.ctx[10]}set helperlinkimage(e){this.$$set({helperlinkimage:e}),N()}get helperlinktitle(){return this.$$.ctx[11]}set helperlinktitle(e){this.$$set({helperlinktitle:e}),N()}get licenseurl(){return this.$$.ctx[12]}set licenseurl(e){this.$$set({licenseurl:e}),N()}get licenseimage(){return this.$$.ctx[13]}set licenseimage(e){this.$$set({licenseimage:e}),N()}get licensetitle(){return this.$$.ctx[14]}set licensetitle(e){this.$$set({licensetitle:e}),N()}get sociallinkurl(){return this.$$.ctx[15]}set sociallinkurl(e){this.$$set({sociallinkurl:e}),N()}get sociallinkimage(){return this.$$.ctx[16]}set sociallinkimage(e){this.$$set({sociallinkimage:e}),N()}get sociallinktitle(){return this.$$.ctx[17]}set sociallinktitle(e){this.$$set({sociallinktitle:e}),N()}get target(){return this.$$.ctx[18]}set target(e){this.$$set({target:e}),N()}get linktype(){return this.$$.ctx[19]}set linktype(e){this.$$set({linktype:e}),N()}get displaycolumn(){return this.$$.ctx[20]}set displaycolumn(e){this.$$set({displaycolumn:e}),N()}get baseurl(){return this.$$.ctx[21]}set baseurl(e){this.$$set({baseurl:e}),N()}get lang(){return this.$$.ctx[22]}set lang(e){this.$$set({lang:e}),N()}get clientstyling(){return this.$$.ctx[24]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[25]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}});!customElements.get("casino-footer-section")&&customElements.define("casino-footer-section",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterSectionInnerContainer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.DisplayColumn{flex-direction:column;align-items:flex-start}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},Ee,ke,o,{sponsorflag:0,paymentflag:1,vendorflag:2,helperflag:3,licenseflag:4,socialflag:5,target:18,displaycolumn:6,category:19,baseurl:7,lang:8,clientstyling:9,clientstylingurl:10,footertype:20},null,[-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["sponsorflag","paymentflag","vendorflag","helperflag","licenseflag","socialflag","target","displaycolumn","category","baseurl","lang","clientstyling","clientstylingurl","footertype"]}get sponsorflag(){return this.$$.ctx[0]}set sponsorflag(e){this.$$set({sponsorflag:e}),N()}get paymentflag(){return this.$$.ctx[1]}set paymentflag(e){this.$$set({paymentflag:e}),N()}get vendorflag(){return this.$$.ctx[2]}set vendorflag(e){this.$$set({vendorflag:e}),N()}get helperflag(){return this.$$.ctx[3]}set helperflag(e){this.$$set({helperflag:e}),N()}get licenseflag(){return this.$$.ctx[4]}set licenseflag(e){this.$$set({licenseflag:e}),N()}get socialflag(){return this.$$.ctx[5]}set socialflag(e){this.$$set({socialflag:e}),N()}get target(){return this.$$.ctx[18]}set target(e){this.$$set({target:e}),N()}get displaycolumn(){return this.$$.ctx[6]}set displaycolumn(e){this.$$set({displaycolumn:e}),N()}get category(){return this.$$.ctx[19]}set category(e){this.$$set({category:e}),N()}get baseurl(){return this.$$.ctx[7]}set baseurl(e){this.$$set({baseurl:e}),N()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),N()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get footertype(){return this.$$.ctx[20]}set footertype(e){this.$$set({footertype:e}),N()}});var Te="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Te&&Te,Se={searchParams:"URLSearchParams"in Te,iterable:"Symbol"in Te&&"iterator"in Symbol,blob:"FileReader"in Te&&"Blob"in Te&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in Te,arrayBuffer:"ArrayBuffer"in Te};if(Se.arrayBuffer)var xe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Me=ArrayBuffer.isView||function(e){return e&&xe.indexOf(Object.prototype.toString.call(e))>-1};function Le(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 De(e){return"string"!=typeof e&&(e=String(e)),e}
|
109
132
|
// Build a destructive iterator for the value list
|
110
|
-
function
|
133
|
+
function $e(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Se.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Oe(e){this.map={},e instanceof Oe?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 Pe(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ae(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function He(e){var t=new FileReader,n=Ae(t);return t.readAsArrayBuffer(e),n}function Fe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ie(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
111
134
|
/*
|
112
135
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
113
136
|
provide useful test harness features such as flush. However, on
|
@@ -118,26 +141,26 @@ function Ae(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
118
141
|
semantic of setting Request.bodyUsed in the constructor before
|
119
142
|
_initBody is called.
|
120
143
|
*/
|
121
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
144
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Se.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Se.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Se.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se.arrayBuffer&&Se.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Fe(e.buffer),
|
122
145
|
// IE 10-11 can't handle a DataView body.
|
123
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
146
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):Se.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Me(e))?this._bodyArrayBuffer=Fe(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):Se.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Se.blob&&(this.blob=function(){var e=Pe(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=Pe(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(He)}),this.text=function(){var e,t,n,r=Pe(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Ae(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Se.formData&&(this.formData=function(){return this.text().then(Ne)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
124
147
|
// HTTP methods whose capitalization should be normalized
|
125
|
-
|
148
|
+
Oe.prototype.append=function(e,t){e=Le(e),t=De(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Oe.prototype.delete=function(e){delete this.map[Le(e)]},Oe.prototype.get=function(e){return e=Le(e),this.has(e)?this.map[e]:null},Oe.prototype.has=function(e){return this.map.hasOwnProperty(Le(e))},Oe.prototype.set=function(e,t){this.map[Le(e)]=De(t)},Oe.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Oe.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),$e(e)},Oe.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),$e(e)},Oe.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),$e(e)},Se.iterable&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);var Be=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ce(e,t){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof Ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Oe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Oe(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Be.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
126
149
|
// Search for a '_' parameter in the query string
|
127
150
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
128
151
|
// If it already exists then set the value with the current time
|
129
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
152
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ne(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Re(e,t){if(!(this instanceof Re))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 Oe(t.headers),this.url=t.url||"",this._initBody(e)}Ce.prototype.clone=function(){return new Ce(this,{body:this._bodyInit})},Ie.call(Ce.prototype),Ie.call(Re.prototype),Re.prototype.clone=function(){return new Re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Oe(this.headers),url:this.url})},Re.error=function(){var e=new Re(null,{status:0,statusText:""});return e.type="error",e};var Ye=[301,302,303,307,308];Re.redirect=function(e,t){if(-1===Ye.indexOf(t))throw new RangeError("Invalid status code");return new Re(null,{status:t,headers:{location:e}})};var Ue=Te.DOMException;try{new Ue}catch(e){(Ue=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Ue.prototype.constructor=Ue}function Ge(e,t){return new Promise((function(n,r){var i=new Ce(e,t);if(i.signal&&i.signal.aborted)return r(new Ue("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Oe,
|
130
153
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
131
154
|
// https://github.com/github/fetch/issues/748
|
132
155
|
// https://github.com/zloirock/core-js/issues/751
|
133
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new
|
156
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new Re(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Ue("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Te.location.href?Te.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Se.blob?o.responseType="blob":Se.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Oe?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,De(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
134
157
|
// DONE (success or failure)
|
135
|
-
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
158
|
+
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Ge.polyfill=!0,Te.fetch||(Te.fetch=Ge,Te.Headers=Oe,Te.Request=Ce,Te.Response=Re);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function je(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
136
159
|
// the whatwg-fetch polyfill installs the fetch() function
|
137
160
|
// on the global object (window or self)
|
138
161
|
|
139
162
|
// Return that as the export for use in Webpack, Browserify etc.
|
140
|
-
var
|
163
|
+
var Ve=self.fetch.bind(self),We=function(e,t){return We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},We(e,t)};
|
141
164
|
/******************************************************************************
|
142
165
|
Copyright (c) Microsoft Corporation.
|
143
166
|
|
@@ -152,7 +175,7 @@ var Ze=self.fetch.bind(self),Xe=function(e,t){return Xe=Object.setPrototypeOf||{
|
|
152
175
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
153
176
|
PERFORMANCE OF THIS SOFTWARE.
|
154
177
|
***************************************************************************** */
|
155
|
-
/* global Reflect, Promise */function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function qe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Je(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Qe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function et(e){return"function"==typeof e}function tt(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 nt=tt((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 rt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var it=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=qe(o),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 o.remove(this);var l=this.initialTeardown;if(et(l))try{l()}catch(e){i=e instanceof nt?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=qe(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{at(d)}catch(e){i=null!=i?i:[],e instanceof nt?i=Qe(Qe([],Je(i)),Je(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new nt(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)at(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).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)&&rt(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&rt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ot=it.EMPTY;function st(e){return e instanceof it||e&&"closed"in e&&et(e.remove)&&et(e.add)&&et(e.unsubscribe)}function at(e){et(e)?e():e.unsubscribe()}var lt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ut={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ut.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Qe([e,t],Je(n))):setTimeout.apply(void 0,Qe([e,t],Je(n)))},clearTimeout:function(e){var t=ut.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ct(){}var ht=null;function dt(e){if(lt.useDeprecatedSynchronousErrorHandling){var t=!ht;if(t&&(ht={errorThrown:!1,error:null}),e(),t){var n=ht,r=n.errorThrown,i=n.error;if(ht=null,r)throw i}}else e()}var ft=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,st(t)&&t.add(n)):n.destination=_t,n}return Ke(t,e),t.create=function(e,t,n){return new yt(e,t,n)},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}(it),pt=Function.prototype.bind;function mt(e,t){return pt.call(e,t)}var gt=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){bt(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){bt(e)}else bt(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){bt(e)}},e}(),yt=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;et(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&<.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&mt(t.next,o),error:t.error&&mt(t.error,o),complete:t.complete&&mt(t.complete,o)}):i=t;return s.destination=new gt(i),s}return Ke(t,e),t}(ft);function bt(e){var t;t=e,ut.setTimeout((function(){throw t}))}var _t={closed:!0,next:ct,error:function(e){throw e},complete:ct},vt="function"==typeof Symbol&&Symbol.observable||"@@observable";function wt(e){return e}function kt(e){return 0===e.length?wt:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Et=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ft||function(e){return e&&et(e.next)&&et(e.error)&&et(e.complete)}(r)&&st(r)?e:new yt(e,t,n);return dt((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Tt(t))((function(t,r){var i=new yt({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[vt]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kt(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Tt(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Tt(e){var t;return null!==(t=null!=e?e:lt.Promise)&&void 0!==t?t:Promise}var St=tt((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),xt=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 Ke(t,e),t.prototype.lift=function(e){var t=new Mt(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new St},t.prototype.next=function(e){var t=this;dt((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=qe(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;dt((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;dt((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,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?ot:(this.currentObservers=null,o.push(e),new it((function(){t.currentObservers=null,rt(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Et;return e.source=this,e},t.create=function(e,t){return new Mt(e,t)},t}(Et),Mt=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Ke(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.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,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:ot},t}(xt),Lt={now:function(){return(Lt.delegate||Date).now()},delegate:void 0},Dt=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Lt);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return Ke(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.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),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(xt);let Ot=[],$t={};
|
178
|
+
/* global Reflect, Promise */function ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}We(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ze(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ke(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function qe(e){return"function"==typeof e}function Je(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 Qe=Je((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 et(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tt=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Ze(o),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 o.remove(this);var l=this.initialTeardown;if(qe(l))try{l()}catch(e){i=e instanceof Qe?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Ze(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{it(d)}catch(e){i=null!=i?i:[],e instanceof Qe?i=Ke(Ke([],Xe(i)),Xe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Qe(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)it(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).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)&&et(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&et(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),nt=tt.EMPTY;function rt(e){return e instanceof tt||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function it(e){qe(e)?e():e.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},st={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=st.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ke([e,t],Xe(n))):setTimeout.apply(void 0,Ke([e,t],Xe(n)))},clearTimeout:function(e){var t=st.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function at(){}var lt=null;function ut(e){if(ot.useDeprecatedSynchronousErrorHandling){var t=!lt;if(t&&(lt={errorThrown:!1,error:null}),e(),t){var n=lt,r=n.errorThrown,i=n.error;if(lt=null,r)throw i}}else e()}var ct=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,rt(t)&&t.add(n)):n.destination=gt,n}return ze(t,e),t.create=function(e,t,n){return new pt(e,t,n)},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}(tt),ht=Function.prototype.bind;function dt(e,t){return ht.call(e,t)}var ft=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){mt(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){mt(e)}else mt(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){mt(e)}},e}(),pt=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;qe(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&ot.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&dt(t.next,o),error:t.error&&dt(t.error,o),complete:t.complete&&dt(t.complete,o)}):i=t;return s.destination=new ft(i),s}return ze(t,e),t}(ct);function mt(e){var t;t=e,st.setTimeout((function(){throw t}))}var gt={closed:!0,next:at,error:function(e){throw e},complete:at},yt="function"==typeof Symbol&&Symbol.observable||"@@observable";function bt(e){return e}var _t=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ct||function(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}(r)&&rt(r)?e:new pt(e,t,n);return ut((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=vt(t))((function(t,r){var i=new pt({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[yt]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?bt:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=vt(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function vt(e){var t;return null!==(t=null!=e?e:ot.Promise)&&void 0!==t?t:Promise}var wt=Je((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),kt=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 ze(t,e),t.prototype.lift=function(e){var t=new Et(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new wt},t.prototype.next=function(e){var t=this;ut((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Ze(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;ut((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ut((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,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?nt:(this.currentObservers=null,o.push(e),new tt((function(){t.currentObservers=null,et(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new _t;return e.source=this,e},t.create=function(e,t){return new Et(e,t)},t}(_t),Et=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ze(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.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,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:nt},t}(kt),Tt={now:function(){return(Tt.delegate||Date).now()},delegate:void 0},St=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Tt);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return ze(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.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),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(kt);let xt=[],Mt={};
|
156
179
|
/**
|
157
180
|
* @name topic
|
158
181
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
@@ -160,32 +183,36 @@ var Ze=self.fetch.bind(self),Xe=function(e,t){return Xe=Object.setPrototypeOf||{
|
|
160
183
|
* @param step [String] How many values to be buffed for new subscribers - default 0
|
161
184
|
* @returns ReplaySubject
|
162
185
|
*/
|
163
|
-
const
|
186
|
+
const Lt=[];
|
164
187
|
/**
|
165
188
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
166
189
|
* @param {*=}value initial value
|
167
190
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
168
191
|
*/
|
169
|
-
function
|
170
|
-
const e=!
|
192
|
+
function Dt(t,n=e){let r;const i=new Set;function s(e){if(o(t,e)&&(t=e,r)){// store is ready
|
193
|
+
const e=!Lt.length;for(const e of i)e[1](),Lt.push(e,t);if(e){for(let e=0;e<Lt.length;e+=2)Lt[e][0](Lt[e+1]);Lt.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return i.add(l),1===i.size&&(r=n(s)||e),o(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function $t(t,n,o){const s=!Array.isArray(t),a=s?[t]:t,l=n.length<2;return c=t=>{let o=!1;const c=[];let h=0,d=e;const f=()=>{if(h)return;d();const r=n(s?c[0]:c,t);l?t(r):d=i(r)?r:e},p=a.map(((e,t)=>u(e,(e=>{c[t]=e,h&=~(1<<t),o&&f()}),(()=>{h|=1<<t}))));return o=!0,f(),function(){r(p),d(),
|
194
|
+
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
195
|
+
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
196
|
+
// invoke this derived store.
|
197
|
+
o=!1}},{subscribe:Dt(o,c).subscribe};
|
171
198
|
/**
|
172
199
|
* Creates a `Readable` store that allows reading by subscription.
|
173
200
|
* @param value initial value
|
174
201
|
* @param {StartStopNotifier}start start and stop notifications for subscriptions
|
175
202
|
*/
|
176
|
-
var c}var
|
203
|
+
var c}var Ot=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===Pt}(e)}
|
177
204
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
178
|
-
(e)};var
|
205
|
+
(e)};var Pt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ct((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ht(e,t,n){return e.concat(t).map((function(e){return At(e,n)}))}function Ft(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function It(e,t){try{return t in e}catch(e){return!1}}
|
179
206
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
180
|
-
function
|
181
|
-
})(e,i)||(
|
207
|
+
function Bt(e,t,n){var r={};return n.isMergeableObject(e)&&Ft(e).forEach((function(t){r[t]=At(e[t],n)})),Ft(t).forEach((function(i){(function(e,t){return It(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
208
|
+
})(e,i)||(It(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return Ct;var n=t.customMerge(e);return"function"==typeof n?n:Ct}(i,n)(e[i],t[i],n):r[i]=At(t[i],n))})),r}function Ct(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ht,n.isMergeableObject=n.isMergeableObject||Ot,
|
182
209
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
183
210
|
// implementations can use it. The caller may not replace it.
|
184
|
-
n.cloneUnlessOtherwiseSpecified=
|
211
|
+
n.cloneUnlessOtherwiseSpecified=At;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Bt(e,t,n):At(t,n)}Ct.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ct(e,n,t)}),{})};var Nt=Ct,Rt=function(e,t){return Rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Rt(e,t)};function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ut,Gt,jt,Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vt.apply(this,arguments)};function Wt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
185
212
|
/**
|
186
213
|
* Type Guards
|
187
214
|
*/
|
188
|
-
function
|
215
|
+
function zt(e){return e.type===Gt.literal}function Zt(e){return e.type===Gt.argument}function Xt(e){return e.type===Gt.number}function Kt(e){return e.type===Gt.date}function qt(e){return e.type===Gt.time}function Jt(e){return e.type===Gt.select}function Qt(e){return e.type===Gt.plural}function en(e){return e.type===Gt.pound}function tn(e){return e.type===Gt.tag}function nn(e){return!(!e||"object"!=typeof e||e.type!==jt.number)}function rn(e){return!(!e||"object"!=typeof e||e.type!==jt.dateTime)}
|
189
216
|
// @generated from regex-gen.ts
|
190
217
|
!function(e){
|
191
218
|
/** Argument is unclosed (e.g. `{0`) */
|
@@ -247,7 +274,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
247
274
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
248
275
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
249
276
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
250
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
277
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Ut||(Ut={})),function(e){
|
251
278
|
/**
|
252
279
|
* Raw text
|
253
280
|
*/
|
@@ -284,7 +311,7 @@ e[e.pound=7]="pound",
|
|
284
311
|
/**
|
285
312
|
* XML-like tag
|
286
313
|
*/
|
287
|
-
e[e.tag=8]="tag"}(
|
314
|
+
e[e.tag=8]="tag"}(Gt||(Gt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(jt||(jt={}));var on=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sn=/(?:[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;
|
288
315
|
/**
|
289
316
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
290
317
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
@@ -296,7 +323,7 @@ e[e.tag=8]="tag"}(zt||(zt={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
296
323
|
* @public
|
297
324
|
* @param skeleton skeleton string
|
298
325
|
*/
|
299
|
-
function
|
326
|
+
function an(e){var t={};return e.replace(sn,(function(e){var n=e.length;switch(e[0]){
|
300
327
|
// Era
|
301
328
|
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
302
329
|
// Year
|
@@ -330,33 +357,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
330
357
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
331
358
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
332
359
|
// @generated from regex-gen.ts
|
333
|
-
var
|
360
|
+
var ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var un=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,cn=/^(@+)?(\+|#+)?[rs]?$/g,hn=/(\*)(0+)|(#+)(0+)|(0+)/g,dn=/^(0+)$/;function fn(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(cn,(function(e,n,r){
|
334
361
|
// @@@ case
|
335
|
-
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function
|
362
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function pn(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 mn(e){
|
336
363
|
// Engineering
|
337
|
-
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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
364
|
+
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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!dn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function gn(e){var t=pn(e);return t||{}}
|
338
365
|
/**
|
339
366
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
340
|
-
*/function
|
367
|
+
*/function yn(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.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=Vt(Vt(Vt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return Vt(Vt({},e),gn(t))}),{}));continue;case"engineering":t=Vt(Vt(Vt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return Vt(Vt({},e),gn(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
341
368
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
342
369
|
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(i.options[0]);continue;
|
343
370
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
344
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(
|
371
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(hn,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)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}
|
345
372
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
346
|
-
if(
|
373
|
+
if(dn.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(un.test(i.stem)){
|
347
374
|
// Precision
|
348
375
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
349
376
|
// precision-integer case
|
350
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
377
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(un,(function(e,n,r,i,o,s){
|
351
378
|
// .000* case (before ICU67 it was .000+)
|
352
379
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
353
380
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
354
|
-
"w"===o?t=
|
381
|
+
"w"===o?t=Vt(Vt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Vt(Vt({},t),fn(o)))}
|
355
382
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
356
|
-
else if(
|
383
|
+
else if(cn.test(i.stem))t=Vt(Vt({},t),fn(i.stem));else{var s=pn(i.stem);s&&(t=Vt(Vt({},t),s));var a=mn(i.stem);a&&(t=Vt(Vt({},t),a))}}return t}
|
357
384
|
// @generated from time-data-gen.ts
|
358
385
|
// prettier-ignore
|
359
|
-
var
|
386
|
+
var bn,_n={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"]};
|
360
387
|
/**
|
361
388
|
* Returns the best matching date time pattern if a date time skeleton
|
362
389
|
* pattern is provided with a locale. Follows the Unicode specification:
|
@@ -369,7 +396,7 @@ var kn,En={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
369
396
|
* of the given `locale` to the corresponding time pattern.
|
370
397
|
* @param locale
|
371
398
|
*/
|
372
|
-
function
|
399
|
+
function vn(e){var t=e.hourCycle;if(void 0===t&&
|
373
400
|
// @ts-ignore hourCycle(s) is not identified yet
|
374
401
|
e.hourCycles&&
|
375
402
|
// @ts-ignore
|
@@ -377,37 +404,37 @@ e.hourCycles.length&&(
|
|
377
404
|
// @ts-ignore
|
378
405
|
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")}
|
379
406
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
380
|
-
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(
|
407
|
+
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(_n[n||""]||_n[r||""]||_n["".concat(r,"-001")]||_n["001"])[0]}var wn=new RegExp("^".concat(on.source,"*")),kn=new RegExp("".concat(on.source,"*$"));function En(e,t){return{start:e,end:t}}
|
381
408
|
// #region Ponyfills
|
382
409
|
// Consolidate these variables up top for easier toggling during debugging
|
383
|
-
var
|
410
|
+
var Tn=!!String.prototype.startsWith,Sn=!!String.fromCodePoint,xn=!!Object.fromEntries,Mn=!!String.prototype.codePointAt,Ln=!!String.prototype.trimStart,Dn=!!String.prototype.trimEnd,$n=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},On=!0;try{
|
384
411
|
/**
|
385
412
|
* legacy Edge or Xbox One browser
|
386
413
|
* Unicode flag support: supported
|
387
414
|
* Pattern_Syntax support: not supported
|
388
415
|
* See https://github.com/formatjs/formatjs/issues/2822
|
389
416
|
*/
|
390
|
-
|
417
|
+
On="a"===(null===(bn=Nn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===bn?void 0:bn[0])}catch(e){On=!1}var Pn,An=Tn?// Native
|
391
418
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
392
|
-
function(e,t,n){return e.slice(n,n+t.length)===t},
|
393
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},
|
419
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},Hn=Sn?String.fromCodePoint:// IE11
|
420
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Fn=
|
394
421
|
// native
|
395
|
-
|
396
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},
|
422
|
+
xn?Object.fromEntries:// Ponyfill
|
423
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},In=Mn?// Native
|
397
424
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
398
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
425
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Bn=Ln?// Native
|
399
426
|
function(e){return e.trimStart()}:// Ponyfill
|
400
|
-
function(e){return e.replace(
|
427
|
+
function(e){return e.replace(wn,"")},Cn=Dn?// Native
|
401
428
|
function(e){return e.trimEnd()}:// Ponyfill
|
402
|
-
function(e){return e.replace(
|
429
|
+
function(e){return e.replace(kn,"")};
|
403
430
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
404
|
-
function
|
431
|
+
function Nn(e,t){return new RegExp(e,t)}
|
405
432
|
// #endregion
|
406
|
-
if(
|
433
|
+
if(On){
|
407
434
|
// Native
|
408
|
-
var
|
435
|
+
var Rn=Nn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pn=function(e,t){var n;return Rn.lastIndex=t,null!==(n=Rn.exec(e)[1])&&void 0!==n?n:""}}else
|
409
436
|
// IE11
|
410
|
-
|
437
|
+
Pn=function(e,t){for(var n=[];;){var r=In(e,t);if(void 0===r||jn(r)||Vn(r))break;n.push(r),t+=r>=65536?2:1}return Hn.apply(void 0,n)};var Yn=/** @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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Ut.UNMATCHED_CLOSING_TAG,En(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Un(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:Gt.pound,location:En(s,this.clonePosition())})}}}return{val:r,err:null}},
|
411
438
|
/**
|
412
439
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
413
440
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
@@ -429,14 +456,14 @@ In=function(e,t){for(var n=[];;){var r=Rn(e,t);if(void 0===r||Zn(r)||Xn(r))break
|
|
429
456
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
430
457
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
431
458
|
// Self closing tag
|
432
|
-
return{val:{type:
|
459
|
+
return{val:{type:Gt.literal,value:"<".concat(r,"/>"),location:En(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
|
433
460
|
// Expecting a close tag
|
434
|
-
if(this.bumpIf("</")){if(this.isEOF()||!
|
461
|
+
if(this.bumpIf("</")){if(this.isEOF()||!Un(this.char()))return this.error(Ut.INVALID_TAG,En(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Ut.UNMATCHED_CLOSING_TAG,En(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Gt.tag,value:r,children:o,location:En(n,this.clonePosition())},err:null}:this.error(Ut.INVALID_TAG,En(s,this.clonePosition())))}return this.error(Ut.UNCLOSED_TAG,En(n,this.clonePosition()))}return this.error(Ut.INVALID_TAG,En(n,this.clonePosition()))},
|
435
462
|
/**
|
436
463
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
437
464
|
*/
|
438
465
|
e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
|
439
|
-
for(this.bump();!this.isEOF()&&
|
466
|
+
for(this.bump();!this.isEOF()&&Gn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=En(n,this.clonePosition());return{val:{type:Gt.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Un(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
440
467
|
/** See `parseTag` function docs. */},
|
441
468
|
/**
|
442
469
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
@@ -458,67 +485,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
|
|
458
485
|
// Optional closing apostrophe.
|
459
486
|
this.bump();break}t.push(39),
|
460
487
|
// Bump one more time because we need to skip 2 characters.
|
461
|
-
this.bump()}else t.push(n);this.bump()}return
|
462
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
488
|
+
this.bump()}else t.push(n);this.bump()}return Hn.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),Hn(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
|
489
|
+
this.bumpSpace(),this.isEOF())return this.error(Ut.EXPECT_ARGUMENT_CLOSING_BRACE,En(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Ut.EMPTY_ARGUMENT,En(n,this.clonePosition()));
|
463
490
|
// argument name
|
464
|
-
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(
|
491
|
+
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Ut.MALFORMED_ARGUMENT,En(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ut.EXPECT_ARGUMENT_CLOSING_BRACE,En(n,this.clonePosition()));switch(this.char()){
|
465
492
|
// Simple argument: `{name}`
|
466
493
|
case 125/* `}` */:// `}`
|
467
|
-
return this.bump(),{val:{type:
|
494
|
+
return this.bump(),{val:{type:Gt.argument,
|
468
495
|
// value does not include the opening and closing braces.
|
469
|
-
value:r,location:
|
496
|
+
value:r,location:En(n,this.clonePosition())},err:null};
|
470
497
|
// Argument with options: `{name, format, ...}`
|
471
498
|
case 44/* `,` */:return this.bump(),// `,`
|
472
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
499
|
+
this.bumpSpace(),this.isEOF()?this.error(Ut.EXPECT_ARGUMENT_CLOSING_BRACE,En(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Ut.MALFORMED_ARGUMENT,En(n,this.clonePosition()))}},
|
473
500
|
/**
|
474
501
|
* Advance the parser until the end of the identifier, if it is currently on
|
475
502
|
* an identifier character. Return an empty string otherwise.
|
476
503
|
*/
|
477
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=
|
504
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Pn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:En(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
478
505
|
// Parse this range:
|
479
506
|
// {name, type, style}
|
480
507
|
// ^---^
|
481
508
|
switch(s){case"":
|
482
509
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
483
|
-
return this.error(
|
510
|
+
return this.error(Ut.EXPECT_ARGUMENT_TYPE,En(o,a));case"number":case"date":case"time":
|
484
511
|
// Parse this range:
|
485
512
|
// {name, number, style}
|
486
513
|
// ^-------^
|
487
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=
|
514
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=Cn(y.val)).length)return this.error(Ut.EXPECT_ARGUMENT_STYLE,En(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:En(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var c=En(r,this.clonePosition());
|
488
515
|
// Extract style or skeleton
|
489
|
-
if(l&&
|
516
|
+
if(l&&An(null==l?void 0:l.style,"::",0)){
|
490
517
|
// Skeleton starts with `::`.
|
491
|
-
var h=
|
518
|
+
var h=Bn(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:Gt.number,value:n,location:c,style:y.val},err:null};if(0===h.length)return this.error(Ut.EXPECT_DATE_TIME_SKELETON,c);var d=h;
|
492
519
|
// Get "best match" pattern only if locale is passed, if not, let it
|
493
520
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
494
521
|
// for unsupported patterns.
|
495
|
-
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=
|
522
|
+
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=vn(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var f={type:jt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?an(d):{}};return{val:{type:"date"===s?Gt.date:Gt.time,value:n,location:c,style:f},err:null}}
|
496
523
|
// Regular style or no style.
|
497
|
-
return{val:{type:"number"===s?
|
524
|
+
return{val:{type:"number"===s?Gt.number:"date"===s?Gt.date:Gt.time,value:n,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
498
525
|
// Parse this range:
|
499
526
|
// {name, plural, options}
|
500
527
|
// ^---------^
|
501
|
-
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
528
|
+
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ut.EXPECT_SELECT_ARGUMENT_OPTIONS,En(p,Vt({},p)));this.bumpSpace();
|
502
529
|
// Parse offset:
|
503
530
|
// {name, plural, offset:1, options}
|
504
531
|
// ^-----^
|
505
532
|
// or the first option:
|
506
533
|
// {name, plural, one {...} other {...}}
|
507
534
|
// ^--^
|
508
|
-
var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(
|
535
|
+
var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,En(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(Ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
509
536
|
// Parse another identifier for option parsing
|
510
|
-
this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var b,_=this.tryParsePluralOrSelectOptions(e,s,t,m);if(_.err)return _;if((b=this.tryParseArgumentClose(r)).err)return b;var v=
|
537
|
+
this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var b,_=this.tryParsePluralOrSelectOptions(e,s,t,m);if(_.err)return _;if((b=this.tryParseArgumentClose(r)).err)return b;var v=En(r,this.clonePosition());return"select"===s?{val:{type:Gt.select,value:n,options:Fn(_.val),location:v},err:null}:{val:{type:Gt.plural,value:n,options:Fn(_.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Ut.INVALID_ARGUMENT_TYPE,En(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
511
538
|
// Parse: {value, number, ::currency/GBP }
|
512
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
539
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(Ut.EXPECT_ARGUMENT_CLOSING_BRACE,En(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
513
540
|
/**
|
514
541
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
515
542
|
*/
|
516
543
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
517
544
|
// Treat apostrophe as quoting but include it in the style part.
|
518
545
|
// Find the end of the quoted literal text.
|
519
|
-
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
546
|
+
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,En(n,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 n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
520
547
|
// Parse the skeleton
|
521
|
-
for(var t=e.split(
|
548
|
+
for(var t=e.split(ln).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,u=a;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:a})}return n}(e)}catch(e){return this.error(Ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:jt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?yn(n):{}},err:null}},
|
522
549
|
/**
|
523
550
|
* @param nesting_level The current nesting level of messages.
|
524
551
|
* This can be positive when parsing message fragment in select or plural argument options.
|
@@ -535,24 +562,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
535
562
|
// ^--^
|
536
563
|
for(var i,o=!1,s=[],a=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
537
564
|
// Try parse `={number}` selector
|
538
|
-
var h=this.tryParseDecimalInteger(
|
565
|
+
var h=this.tryParseDecimalInteger(Ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=En(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
539
566
|
// Duplicate selector clauses
|
540
|
-
if(a.has(l))return this.error("select"===t?
|
567
|
+
if(a.has(l))return this.error("select"===t?Ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),
|
541
568
|
// Parse:
|
542
569
|
// one {one apple}
|
543
570
|
// ^----------^
|
544
|
-
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?
|
571
|
+
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,En(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:f.val,location:En(d,this.clonePosition())}]),
|
545
572
|
// Keep track of the existing selectors
|
546
573
|
a.add(l),
|
547
574
|
// Prep next selector clause.
|
548
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?
|
575
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?Ut.EXPECT_SELECT_ARGUMENT_SELECTOR:Ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,En(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Ut.MISSING_OTHER_CLAUSE,En(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=En(r,this.clonePosition());return i?$n(o*=n)?{val:o,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(){
|
549
576
|
// This is much faster than `Object.assign` or spread.
|
550
577
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
551
578
|
/**
|
552
579
|
* Return the code point at the current position of the parser.
|
553
580
|
* Throws if the index is out of bound.
|
554
581
|
*/
|
555
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
582
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=In(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}}},
|
556
583
|
/** Bump the parser to the next UTF-16 code unit. */
|
557
584
|
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,
|
558
585
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
@@ -563,7 +590,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
563
590
|
* following the prefix and return true. Otherwise, don't bump the parser
|
564
591
|
* and return false.
|
565
592
|
*/
|
566
|
-
e.prototype.bumpIf=function(e){if(
|
593
|
+
e.prototype.bumpIf=function(e){if(An(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
567
594
|
/**
|
568
595
|
* Bump the parser until the pattern character is found and return `true`.
|
569
596
|
* Otherwise bump to the end of the file and return `false`.
|
@@ -575,7 +602,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
|
|
575
602
|
*/
|
576
603
|
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}},
|
577
604
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
578
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
605
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&jn(this.char());)this.bump()},
|
579
606
|
/**
|
580
607
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
581
608
|
* If the input has been exhausted, then this returns null.
|
@@ -585,121 +612,107 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
585
612
|
* This check if codepoint is alphabet (lower & uppercase)
|
586
613
|
* @param codepoint
|
587
614
|
* @returns
|
588
|
-
*/function
|
615
|
+
*/function Un(e){return e>=97&&e<=122||e>=65&&e<=90}function Gn(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}
|
589
616
|
/**
|
590
617
|
* Code point equivalent of regex `\p{White_Space}`.
|
591
618
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
592
|
-
*/function
|
619
|
+
*/function jn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
593
620
|
/**
|
594
621
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
595
622
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
596
|
-
*/function
|
623
|
+
*/function Vn(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 Wn(e){e.forEach((function(e){if(delete e.location,Jt(e)||Qt(e))for(var t in e.options)delete e.options[t].location,Wn(e.options[t].value);else Xt(e)&&nn(e.style)||(Kt(e)||qt(e))&&rn(e.style)?delete e.style.location:tn(e)&&Wn(e.children)}))}function zn(e,t){void 0===t&&(t={}),t=Vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Yn(e,t).parse();if(n.err){var r=SyntaxError(Ut[n.err.kind]);
|
597
624
|
// @ts-expect-error Assign to error object
|
598
625
|
throw r.location=n.err.location,
|
599
626
|
// @ts-expect-error Assign to error object
|
600
|
-
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||
|
627
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Wn(n.val),n.val}
|
601
628
|
|
602
629
|
// Main
|
603
630
|
|
604
|
-
function
|
631
|
+
function Zn(e,t){var n=t&&t.cache?t.cache:nr,r=t&&t.serializer?t.serializer:Qn;return(t&&t.strategy?t.strategy:Jn)(e,{cache:n,serializer:r})}
|
605
632
|
|
606
633
|
// Strategy
|
607
634
|
|
608
|
-
function
|
635
|
+
function Xn(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function Kn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function qn(e,t,n,r,i){return n.bind(t,e,r,i)}function Jn(e,t){return qn(e,this,1===e.length?Xn:Kn,t.cache.create(),t.serializer)}
|
609
636
|
// Serializer
|
610
|
-
var
|
637
|
+
var Qn=function(){return JSON.stringify(arguments)};
|
611
638
|
|
612
639
|
// Cache
|
613
640
|
|
614
|
-
function
|
641
|
+
function er(){this.cache=Object.create(null)}er.prototype.get=function(e){return this.cache[e]},er.prototype.set=function(e,t){this.cache[e]=t};var tr,nr={create:function(){
|
615
642
|
// @ts-ignore
|
616
|
-
return new
|
643
|
+
return new er}},rr={variadic:function(e,t){return qn(e,this,Kn,t.cache.create(),t.serializer)},monadic:function(e,t){return qn(e,this,Xn,t.cache.create(),t.serializer)}};!function(e){
|
617
644
|
// When we have a placeholder but no value to format
|
618
645
|
e.MISSING_VALUE="MISSING_VALUE",
|
619
646
|
// When value supplied is invalid
|
620
647
|
e.INVALID_VALUE="INVALID_VALUE",
|
621
648
|
// When we need specific Intl API but it's not available
|
622
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(
|
649
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(tr||(tr={}));var ir,or=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return Yt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),sr=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),tr.INVALID_VALUE,i)||this}return Yt(t,e),t}(or),ar=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),tr.INVALID_VALUE,r)||this}return Yt(t,e),t}(or),lr=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),tr.MISSING_VALUE,n)||this}return Yt(t,e),t}(or);function ur(e){return"function"==typeof e}
|
623
650
|
// TODO(skeleton): add skeleton support
|
624
|
-
function
|
651
|
+
function cr(e,t,n,r,i,o,
|
625
652
|
// For debugging
|
626
653
|
s){
|
627
654
|
// Hot path for straight simple msg translations
|
628
|
-
if(1===e.length&&
|
655
|
+
if(1===e.length&&zt(e[0]))return[{type:ir.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
629
656
|
// Exit early for string parts.
|
630
|
-
if(
|
657
|
+
if(zt(c))a.push({type:ir.literal,value:c.value});else
|
631
658
|
// TODO: should this part be literal type?
|
632
659
|
// Replace `#` in plural rules with the actual numeric value.
|
633
|
-
if(
|
660
|
+
if(en(c))"number"==typeof o&&a.push({type:ir.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
|
634
661
|
// Enforce that all required values are provided by the caller.
|
635
|
-
if(!i||!(h in i))throw new
|
662
|
+
if(!i||!(h in i))throw new lr(h,s);var d=i[h];if(Zt(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?ir.literal:ir.object,value:d});else
|
636
663
|
// Recursively format plural and select parts' option — which can be a
|
637
664
|
// nested pattern structure. The choosing of the option to use is
|
638
665
|
// abstracted-by and delegated-to the part helper object.
|
639
|
-
if(
|
666
|
+
if(Kt(c)){var f="string"==typeof c.style?r.date[c.style]:rn(c.style)?c.style.parsedOptions:void 0;a.push({type:ir.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(qt(c)){f="string"==typeof c.style?r.time[c.style]:rn(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ir.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(Xt(c)){(f="string"==typeof c.style?r.number[c.style]:nn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:ir.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(tn(c)){var p=c.children,m=c.value,g=i[m];if(!ur(g))throw new ar(m,"function",s);var y=g(cr(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?ir.literal:ir.object,value:e}})))}if(Jt(c)){if(!(b=c.options[d]||c.options.other))throw new sr(c.value,d,Object.keys(c.options),s);a.push.apply(a,cr(b.value,t,n,r,i))}else if(Qt(c)){var b;if(!(b=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new or('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',tr.MISSING_INTL_API,s);var _=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[_]||c.options.other}if(!b)throw new sr(c.value,d,Object.keys(c.options),s);a.push.apply(a,cr(b.value,t,n,r,i,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===ir.literal&&t.type===ir.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
640
667
|
/*
|
641
668
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
642
669
|
Copyrights licensed under the New BSD License.
|
643
670
|
See the accompanying LICENSE file for terms.
|
644
671
|
*/
|
645
672
|
// -- MessageFormat --------------------------------------------------------
|
646
|
-
function
|
673
|
+
function hr(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?Vt(Vt(Vt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=Vt(Vt({},i[t]),o[t]||{}),e}),{})):i),n}),Vt({},e)):e}function dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ir||(ir={}));var fr=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
647
674
|
// Hot path for straight simple msg translations
|
648
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===
|
675
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===ir.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return cr(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},
|
649
676
|
// Defined first because it's used to build the format pattern.
|
650
677
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
651
678
|
// Parse string messages into an AST.
|
652
679
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.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.");
|
653
680
|
// Creates a new object with the specified `formats` merged with the default
|
654
681
|
// formats.
|
655
|
-
this.formats=
|
682
|
+
this.formats=hr(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Zn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Wt([void 0],t,!1)))}),{cache:dr(o.number),strategy:rr.variadic}),getDateTimeFormat:Zn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Wt([void 0],t,!1)))}),{cache:dr(o.dateTime),strategy:rr.variadic}),getPluralRules:Zn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Wt([void 0],t,!1)))}),{cache:dr(o.pluralRules),strategy:rr.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=zn,
|
656
683
|
// Default format options used as the prototype of the `formats` provided to the
|
657
684
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
658
685
|
// and Intl.DateTimeFormat instances.
|
659
|
-
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}(),
|
686
|
+
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}(),pr=fr;
|
660
687
|
/*
|
661
688
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
662
689
|
Copyrights licensed under the New BSD License.
|
663
690
|
See the accompanying LICENSE file for terms.
|
664
|
-
*/const
|
665
|
-
/*! *****************************************************************************
|
666
|
-
Copyright (c) Microsoft Corporation.
|
667
|
-
|
668
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
669
|
-
purpose with or without fee is hereby granted.
|
670
|
-
|
671
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
672
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
673
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
674
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
675
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
676
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
677
|
-
PERFORMANCE OF THIS SOFTWARE.
|
678
|
-
***************************************************************************** */function Pr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const Ar={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 Hr(){return Ar}const Fr=At(!1);let Ir;const Br=At(null);function Cr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Nr(e,t=Hr().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Rr(){return null!=Ir?Ir:void 0}Br.subscribe((e=>{Ir=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Yr=Object.assign(Object.assign({},Br),{set:e=>{if(e&&function(e){if(null==e)return;const t=Nr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Tr(n))return n}}(e)&&Dr(e)){const{loadingDelay:t}=Hr();let n;return"undefined"!=typeof window&&null!=Rr()&&t?n=window.setTimeout((()=>Fr.set(!0)),t):Fr.set(!0),$r(e).then((()=>{Br.set(e)})).finally((()=>{clearTimeout(n),Fr.set(!1)}))}return Br.set(e)}}),Ur=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Gr=(e,t)=>{const{formats:n}=Hr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},jr=Ur((e=>{var{locale:t,format:n}=e,r=Pr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Gr("number",n)),new Intl.NumberFormat(t,r)})),Vr=Ur((e=>{var{locale:t,format:n}=e,r=Pr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Gr("date",n):0===Object.keys(r).length&&(r=Gr("date","short")),new Intl.DateTimeFormat(t,r)})),Wr=Ur((e=>{var{locale:t,format:n}=e,r=Pr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Gr("time",n):0===Object.keys(r).length&&(r=Gr("time","short")),new Intl.DateTimeFormat(t,r)})),zr=Ur(((e,t=Rr())=>new br(e,t,Hr().formats,{ignoreTag:Hr().ignoreTag}))),Zr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Rr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=wr(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!==(o=null!==(i=null===(r=(n=Hr()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!a)return c;let h=c;try{h=zr(c,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Xr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=Pr(e,["locale"]);return Wr(Object.assign({locale:t},n))})(t).format(e),Kr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=Pr(e,["locale"]);return Vr(Object.assign({locale:t},n))})(t).format(e),qr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=Pr(e,["locale"]);return jr(Object.assign({locale:t},n))})(t).format(e),Jr=(e,t=Rr())=>wr(e,t),Qr=Ht([Yr,Er],(()=>Zr));Ht([Yr],(()=>Xr)),Ht([Yr],(()=>Kr)),Ht([Yr],(()=>qr)),Ht([Yr,Er],(()=>Jr)),window.emWidgets={topic:(e,t=0)=>{if(-1==Ot.indexOf(e)){let n=new Dt(t);$t[e]=n,Ot.push(e)}return $t[e]}};
|
691
|
+
*/const mr={},gr=(e,t,n)=>n?(t in mr||(mr[t]={}),e in mr[t]||(mr[t][e]=n),n):n,yr=(e,t)=>{if(null==t)return;if(t in mr&&e in mr[t])return mr[t][e];const n=Hr(t);for(let r=0;r<n.length;r++){const i=wr(n[r],e);if(i)return gr(e,t,i)}};let br;const _r=Dt({});function vr(e){return e in br}function wr(e,t){if(!vr(e))return null;const n=function(e){return br[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function kr(e,...t){delete mr[e],_r.update((n=>(n[e]=Nt.all([n[e]||{},...t]),n)))}$t([_r],(([e])=>Object.keys(e))),_r.subscribe((e=>br=e));const Er={};function Tr(e){return Er[e]}function Sr(e){return null!=e&&Hr(e).some((e=>{var t;return null===(t=Tr(e))||void 0===t?void 0:t.size}))}const xr={};function Mr(e){if(!Sr(e))return e in xr?xr[e]:Promise.resolve();const t=function(e){return Hr(e).map((e=>{const t=Tr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return xr[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Er[e].delete(t),0===Er[e].size&&delete Er[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>kr(e,...t)))}(e,t)))).then((()=>{if(Sr(e))return Mr(e);delete xr[e]})),xr[e]}const Lr={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 Dr(){return Lr}const $r=Dt(!1);let Or;const Pr=Dt(null);function Ar(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Hr(e,t=Dr().fallbackLocale){const n=Ar(e);return t?[...new Set([...n,...Ar(t)])]:n}function Fr(){return null!=Or?Or:void 0}Pr.subscribe((e=>{Or=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Ir={...Pr,set:e=>{if(e&&function(e){if(null==e)return;const t=Hr(e);for(let e=0;e<t.length;e++){const n=t[e];if(vr(n))return n}}(e)&&Sr(e)){const{loadingDelay:t}=Dr();let n;return"undefined"!=typeof window&&null!=Fr()&&t?n=window.setTimeout((()=>$r.set(!0)),t):$r.set(!0),Mr(e).then((()=>{Pr.set(e)})).finally((()=>{clearTimeout(n),$r.set(!1)}))}return Pr.set(e)}},Br=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Cr=(e,t)=>{const{formats:n}=Dr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Nr=Br((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Cr("number",t)),new Intl.NumberFormat(e,n)})),Rr=Br((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Cr("date",t):0===Object.keys(n).length&&(n=Cr("date","short")),new Intl.DateTimeFormat(e,n)})),Yr=Br((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Cr("time",t):0===Object.keys(n).length&&(n=Cr("time","short")),new Intl.DateTimeFormat(e,n)})),Ur=Br(((e,t=Fr())=>new pr(e,t,Dr().formats,{ignoreTag:Dr().ignoreTag}))),Gr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Fr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=yr(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!==(o=null!==(i=null===(r=(n=Dr()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!a)return c;let h=c;try{h=Ur(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},jr=(e,t)=>(({locale:e=Fr(),...t}={})=>Yr({locale:e,...t}))(t).format(e),Vr=(e,t)=>(({locale:e=Fr(),...t}={})=>Rr({locale:e,...t}))(t).format(e),Wr=(e,t)=>(({locale:e=Fr(),...t}={})=>Nr({locale:e,...t}))(t).format(e),zr=(e,t=Fr())=>yr(e,t),Zr=$t([Ir,_r],(()=>Gr));$t([Ir],(()=>jr)),$t([Ir],(()=>Vr)),$t([Ir],(()=>Wr)),$t([Ir,_r],(()=>zr)),window.emWidgets={topic:(e,t=0)=>{if(-1==xt.indexOf(e)){let n=new St(t);Mt[e]=n,xt.push(e)}return Mt[e]}};
|
679
692
|
/**
|
680
693
|
* @name isMobile
|
681
694
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
682
695
|
* @param {String} userAgent window.navigator.userAgent
|
683
696
|
* @returns {Boolean} true or false
|
684
697
|
*/
|
685
|
-
const
|
698
|
+
const Xr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
686
699
|
/**
|
687
700
|
* @name getDevice
|
688
701
|
* @description A method that returns the type of the device
|
689
702
|
* @param {String} userAgent window.navigator.userAgent
|
690
703
|
* @returns {String} Android/iPhone/iPad/PC
|
691
|
-
*/function
|
692
|
-
/* ../panic-button/src/PanicButton.svelte generated by Svelte v3.
|
704
|
+
*/function Kr(e,t){kr(e,t)}const qr={en:{panicButton:{panicButtonString:"Hold button for 3 seconds to take 24-hour timeout"}},"zh-hk":{panicButton:{panicButtonString:"长按3秒24小时即时锁定"}},fr:{panicButton:{panicButtonString:"Maintenez le bouton enfoncé pendant 3 secondes pour prendre un verrouillage instantané de 24 heures"}},ro:{panicButton:{panicButtonString:"Tine apasat 3 secunde pentru a lua o pauza de 24h"}},es:{panicButton:{panicButtonString:"Dar clic durante 3 segundos para tomar un descanso de 24 horas"}},de:{panicButton:{panicButtonString:"Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"}},hr:{panicButton:{panicButtonString:"Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata"}},sl:{panicButton:{panicButtonString:"Držite gumb 3 sekunde, da bi vzeli 24 urni premor"}},pl:{panicButton:{panicButtonString:"Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"}}};
|
705
|
+
/* ../panic-button/src/PanicButton.svelte generated by Svelte v3.58.0 */function Jr(t){let n,r,i,o,s,a=/*customtext*/(t[0]||/*$_*/t[5]("panicButton.panicButtonString"))+"";return{c(){n=g("div"),r=g("div"),i=g("button"),o=b(a),this.c=e,k(i,"class","PanicButton "+("PC"!==Xr(/*userAgent*/t[6])?"PanicButtonMobile":"")),k(i,"part","PanicButton "+("PC"!==Xr(/*userAgent*/t[6])?"PanicButtonMobile":"")),x(i,"PanicButtonAnimation",/*panicLoading*/t[4]),k(r,"class","PanicSection "+("PC"!==Xr(/*userAgent*/t[6])?"PanicSectionMobile":"")),k(r,"part","PanicSection "+("PC"!==Xr(/*userAgent*/t[6])?"PanicSectionMobile":"")),k(n,"class",s=/*alternativestyling*/"true"==t[1]?"PanicButtonV2":"")},m(e,s){f(e,n,s),d(n,r),d(r,i),d(i,o),
|
693
706
|
/*button_binding*/t[11](i),
|
694
707
|
/*div1_binding*/t[12](n)},p(e,[t]){/*customtext, $_*/33&t&&a!==(a=/*customtext*/(e[0]||/*$_*/e[5]("panicButton.panicButtonString"))+"")&&T(o,a),/*panicLoading*/16&t&&x(i,"PanicButtonAnimation",/*panicLoading*/e[4]),/*alternativestyling*/2&t&&s!==(s=/*alternativestyling*/"true"==e[1]?"PanicButtonV2":"")&&k(n,"class",s)},i:e,o:e,d(e){e&&p(n)
|
695
708
|
/*button_binding*/,t[11](null),
|
696
|
-
/*div1_binding*/t[12](null)}}}function
|
709
|
+
/*div1_binding*/t[12](null)}}}function Qr(e,t,n){let r;c(e,Zr,(e=>n(5,r=e)));let i,o,s,{lang:a="en"}=t,{customtext:l=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{alternativestyling:d=""}=t,{translationurl:f=""}=t,p=!1,m=0,g=window.navigator.userAgent;Object.keys(qr).forEach((e=>{Kr(e,qr[e])}));const y=()=>{m=0,n(4,p=!0),s=setInterval((()=>{m++,m>=2&&(window.postMessage({type:"PanicButtonClicked"},window.location.href),clearInterval(s),
|
697
710
|
//Analytics event
|
698
711
|
"function"==typeof gtag&>ag("event","PanicButtonClicked",{context:"PanicButton"}))}),1e3)},b=()=>{n(4,p=!1),clearInterval(s)};return D((()=>()=>{n(4,p=!1),null==i||i.removeEventListener("mousedown",y),null==i||i.removeEventListener("touchstart",y),
|
699
712
|
// on mouseup stop interval count
|
700
713
|
null==i||i.removeEventListener("mouseup",b),null==i||i.removeEventListener("touchend",b)})),e.$$set=e=>{"lang"in e&&n(7,a=e.lang),"customtext"in e&&n(0,l=e.customtext),"clientstyling"in e&&n(8,u=e.clientstyling),"clientstylingurl"in e&&n(9,h=e.clientstylingurl),"alternativestyling"in e&&n(1,d=e.alternativestyling),"translationurl"in e&&n(10,f=e.translationurl)},e.$$.update=()=>{var t;/*panicButton*/4&e.$$.dirty&&i&&(null==i||i.addEventListener("mousedown",y,!1),null==i||i.addEventListener("touchstart",y,!1),
|
701
714
|
// on mouseup stop interval count
|
702
|
-
null==i||i.addEventListener("mouseup",b,!1),null==i||i.addEventListener("touchend",b,!1)),/*lang*/128&e.$$.dirty&&a&&(t=a,
|
715
|
+
null==i||i.addEventListener("mouseup",b,!1),null==i||i.addEventListener("touchend",b,!1)),/*lang*/128&e.$$.dirty&&a&&(t=a,Ir.set(t)),/*clientstyling, customStylingContainer*/264&e.$$.dirty&&u&&o&&(()=>{let e=document.createElement("style");e.innerHTML=u,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/520&e.$$.dirty&&h&&o&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&f&&fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Kr(t,e[t])}))})).catch((e=>{console.log(e)}))},[l,d,i,o,p,r,g,a,u,h,f,function(e){O[e?"unshift":"push"]((()=>{i=e,n(2,i)}))},function(e){O[e?"unshift":"push"]((()=>{o=e,n(3,o)}))}]}!customElements.get("panic-button")&&customElements.define("panic-button",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=':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}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid #D0046C;background-color:#D0046C;font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid #D0046C;background-color:#D0046C;width:100% !important;height:30px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:#D0046C;width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid #F57F17;background-color:#F57F17;width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid #F57F17;background-color:#F57F17;font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:#F57F17;width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}',this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},Qr,Jr,o,{lang:7,customtext:0,clientstyling:8,clientstylingurl:9,alternativestyling:1,translationurl:10},null),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["lang","customtext","clientstyling","clientstylingurl","alternativestyling","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),N()}get customtext(){return this.$$.ctx[0]}set customtext(e){this.$$set({customtext:e}),N()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get alternativestyling(){return this.$$.ctx[1]}set alternativestyling(e){this.$$set({alternativestyling:e}),N()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),N()}});var ei=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return je(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
703
716
|
// This is done to register the method called with moment()
|
704
717
|
// without creating circular dependencies.
|
705
718
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
@@ -715,11 +728,11 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
|
|
715
728
|
function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
716
729
|
// Prevent infinite loop in case updateOffset creates new moment
|
717
730
|
// objects.
|
718
|
-
!1===v&&(v=!0,r.updateOffset(this),v=!1)}function E(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,M={};function L(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),M[e]||(T(t),M[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function
|
731
|
+
!1===v&&(v=!0,r.updateOffset(this),v=!1)}function E(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,M={};function L(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),M[e]||(T(t),M[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function $(e){var t,n;for(n in e)a(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
719
732
|
// Lenient ordinal parsing accepts just a number in addition to
|
720
733
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
721
734
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
722
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function
|
735
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(
|
723
736
|
// make sure changes to properties don't modify parent config
|
724
737
|
r[n]=f({},r[n]));return r}function P(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function H(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},N={};
|
725
738
|
// token: 'M'
|
@@ -743,14 +756,14 @@ xe=/\d{1,4}/,// 0 - 9999
|
|
743
756
|
Me=/[+-]?\d{1,6}/,// -999999 - 999999
|
744
757
|
Le=/\d+/,// 0 - inf
|
745
758
|
De=/[+-]?\d+/,// -inf - inf
|
746
|
-
|
747
|
-
|
759
|
+
$e=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
760
|
+
Oe=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
748
761
|
Pe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
749
762
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
750
763
|
// includes scottish gaelic two word and hyphenated months
|
751
764
|
Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(e,t,n){ge[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Fe(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ie(e))}
|
752
765
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
753
|
-
function Ie(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ce={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ce[e[n]]=i}function Re(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ye(e,t,n){null!=t&&a(Ce,e)&&Ce[e](t,n._a,n,e)}var Ue,Ge=0,
|
766
|
+
function Ie(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ce={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ce[e[n]]=i}function Re(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ye(e,t,n){null!=t&&a(Ce,e)&&Ce[e](t,n._a,n,e)}var Ue,Ge=0,Ve=1,We=2,ze=3,Ze=4,Xe=5,Ke=6,qe=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
754
767
|
// FORMATTING
|
755
768
|
Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
756
769
|
// I know
|
@@ -760,9 +773,9 @@ ne("month","M"),
|
|
760
773
|
// PRIORITY
|
761
774
|
se("month",8),
|
762
775
|
// PARSING
|
763
|
-
He("M",ke),He("MM",ke,be),He("MMM",(function(e,t){return t.monthsShortRegex(e)})),He("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[
|
776
|
+
He("M",ke),He("MM",ke,be),He("MMM",(function(e,t){return t.monthsShortRegex(e)})),He("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[Ve]=ce(e)-1})),Ne(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
764
777
|
// if we didn't find a month name, mark the date as invalid.
|
765
|
-
null!=i?t[
|
778
|
+
null!=i?t[Ve]=i:g(n).invalidMonth=e}));
|
766
779
|
// LOCALES
|
767
780
|
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ae,ot=Ae;function st(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
768
781
|
// this is not used
|
@@ -827,10 +840,10 @@ se("week",5),se("isoWeek",5),
|
|
827
840
|
He("w",ke),He("ww",ke,be),He("W",ke),He("WW",ke,be),Re(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var xt={dow:0,// Sunday is the first day of the week.
|
828
841
|
doy:6};function Mt(){return this._week.dow}function Lt(){return this._week.doy}
|
829
842
|
// MOMENTS
|
830
|
-
function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function
|
843
|
+
function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function $t(e){var t=Et(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
831
844
|
// FORMATTING
|
832
845
|
// HELPERS
|
833
|
-
function
|
846
|
+
function Ot(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
834
847
|
// LOCALES
|
835
848
|
function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),
|
836
849
|
// ALIASES
|
@@ -846,7 +859,7 @@ if(
|
|
846
859
|
// make the regex if we don't have it already
|
847
860
|
i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
|
848
861
|
// MOMENTS
|
849
|
-
function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e
|
862
|
+
function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function zt(e){if(!this.isValid())return null!=e?this:NaN;
|
850
863
|
// behaves the same as moment#day except
|
851
864
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
852
865
|
// as a setter, sunday should belong to the previous week.
|
@@ -868,7 +881,7 @@ return"p"===(e+"").toLowerCase().charAt(0)}R("H",["HH",2],0,"hour"),R("h",["hh",
|
|
868
881
|
// ALIASES
|
869
882
|
ne("hour","h"),
|
870
883
|
// PRIORITY
|
871
|
-
se("hour",13),He("a",tn),He("A",tn),He("H",ke),He("h",ke),He("k",ke),He("HH",ke,be),He("hh",ke,be),He("kk",ke,be),He("hmm",Ee),He("hmmss",Te),He("Hmm",Ee),He("Hmmss",Te),Ne(["H","HH"],
|
884
|
+
se("hour",13),He("a",tn),He("A",tn),He("H",ke),He("h",ke),He("k",ke),He("HH",ke,be),He("hh",ke,be),He("kk",ke,be),He("hmm",Ee),He("hmmss",Te),He("Hmm",Ee),He("Hmmss",Te),Ne(["H","HH"],ze),Ne(["k","kk"],(function(e,t,n){var r=ce(e);t[ze]=24===r?0:r})),Ne(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ne(["h","hh"],(function(e,t,n){t[ze]=ce(e),g(n).bigHour=!0})),Ne("hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r)),g(n).bigHour=!0})),Ne("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i)),g(n).bigHour=!0})),Ne("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r))})),Ne("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
872
885
|
// Setting the hour should keep the time, because the user explicitly
|
873
886
|
// specified which hour they want. So trying to maintain the same hour (in
|
874
887
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
@@ -885,7 +898,7 @@ break;t--}o++}return an}function pn(e){
|
|
885
898
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
886
899
|
return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
|
887
900
|
// TODO: Find a better way to register and load all the locales in Node
|
888
|
-
if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,
|
901
|
+
if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,je(),gn(n)}catch(e){
|
889
902
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
890
903
|
// when trying to find en-US, en_US, en-us for every format call
|
891
904
|
un[t]=null;// null means not found
|
@@ -897,7 +910,7 @@ function gn(e,t){var n;return e&&((n=u(t)?_n(e):yn(e,t))?
|
|
897
910
|
// moment.duration._locale = moment._locale = data;
|
898
911
|
an=n:"undefined"!=typeof console&&console.warn&&
|
899
912
|
//warn user if arguments are passed but the locale could not be set
|
900
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new P(
|
913
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new P(O(r,t)),cn[e]&&cn[e].forEach((function(e){yn(e.name,e.config)})),
|
901
914
|
// backwards compat for now: also set the locale
|
902
915
|
// make sure we set the locale AFTER all child locales have been
|
903
916
|
// created, so we won't end up with the child locale set.
|
@@ -905,9 +918,9 @@ gn(e),un[e]}
|
|
905
918
|
// useful for testing
|
906
919
|
return delete un[e],null}function bn(e,t){if(null!=t){var n,r,i=ln;null!=un[e]&&null!=un[e].parentLocale?
|
907
920
|
// Update existing child locale in-place to avoid memory-leaks
|
908
|
-
un[e].set(
|
921
|
+
un[e].set(O(un[e]._config,t)):(
|
909
922
|
// MERGE
|
910
|
-
null!=(r=mn(e))&&(i=r._config),t
|
923
|
+
null!=(r=mn(e))&&(i=r._config),t=O(i,t),null==r&&(
|
911
924
|
// updateLocale is called for creating a new locale
|
912
925
|
// Set abbr so it will have a name (getters return
|
913
926
|
// undefined otherwise).
|
@@ -919,7 +932,7 @@ null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)
|
|
919
932
|
// returns locale data
|
920
933
|
function _n(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
921
934
|
//short-circuit everything else
|
922
|
-
t=mn(e))return t;e=[e]}return fn(e)}function vn(){return x(un)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[
|
935
|
+
t=mn(e))return t;e=[e]}return fn(e)}function vn(){return x(un)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[We]<1||n[We]>et(n[Ge],n[Ve])?We:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ze]||0!==n[Xe]||0!==n[Ke])?ze:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[Ke]<0||n[Ke]>999?Ke:-1,g(e)._overflowDayOfYear&&(t<Ge||t>We)&&(t=We),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}
|
923
936
|
// iso 8601 regex
|
924
937
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
925
938
|
var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
|
@@ -928,17 +941,17 @@ xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+
|
|
928
941
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
929
942
|
Ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
930
943
|
// date from iso format
|
931
|
-
function
|
944
|
+
function $n(e){var t,n,r,i,o,s,a=e._i,l=kn.exec(a)||En.exec(a),u=Sn.length,c=xn.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(xn[t][1].exec(l[3])){
|
932
945
|
// match[2] should be 'T' or space
|
933
|
-
o=(l[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function
|
946
|
+
o=(l[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function On(e,t,n,r,i,o){var s=[Pn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){
|
934
947
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
935
|
-
return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hn(e,t,n){return!e||Ft.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Fn(e,t,n){if(e)return Dn[e];if(t)
|
948
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hn(e,t,n){return!e||Ft.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Fn(e,t,n){if(e)return Dn[e];if(t)
|
936
949
|
// the only allowed military tz is Z
|
937
950
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
938
951
|
// date and time from ref 2822 format
|
939
|
-
function In(e){var t,n=Ln.exec(An(e._i));if(n){if(t
|
952
|
+
function In(e){var t,n=Ln.exec(An(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!Hn(n[1],t,e))return;e._a=t,e._tzm=Fn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
940
953
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
941
|
-
function Bn(e){var t=Mn.exec(e._i);null===t?(
|
954
|
+
function Bn(e){var t=Mn.exec(e._i);null===t?($n(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
942
955
|
// Final attempt, use Input Fallback
|
943
956
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
944
957
|
// Pick the first defined of two or three arguments.
|
@@ -957,16 +970,16 @@ function Rn(e){var t,n,r,i,o,s=[];if(!e._d){
|
|
957
970
|
// * if year is given, don't default anything
|
958
971
|
for(r=Nn(e),
|
959
972
|
//compute day of the year from weeks and weekdays
|
960
|
-
e._w&&null==e._a[
|
973
|
+
e._w&&null==e._a[We]&&null==e._a[Ve]&&Yn(e),
|
961
974
|
//if the day of the year is set, figure out what it is
|
962
|
-
null!=e._dayOfYear&&(o=Cn(e._a[Ge],r[Ge]),(e._dayOfYear>gt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[
|
975
|
+
null!=e._dayOfYear&&(o=Cn(e._a[Ge],r[Ge]),(e._dayOfYear>gt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
963
976
|
// Zero out whatever was not defaulted, including time
|
964
977
|
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
965
978
|
// Check for 24:00:00.000
|
966
|
-
24===e._a[
|
979
|
+
24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?vt:_t).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
967
980
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
968
981
|
// with parseZone.
|
969
|
-
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[
|
982
|
+
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),
|
970
983
|
// check for mismatching day of week
|
971
984
|
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
|
972
985
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
@@ -994,11 +1007,11 @@ N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ye(o,n,e)):e._strict&&!n&&g(e).u
|
|
994
1007
|
// add remaining unparsed input length to the string
|
995
1008
|
g(e).charsLeftOver=c-h,u.length>0&&g(e).unusedInput.push(u),
|
996
1009
|
// clear _12h flag if hour is <= 12
|
997
|
-
e._a[
|
1010
|
+
e._a[ze]<=12&&!0===g(e).bigHour&&e._a[ze]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
998
1011
|
// handle meridiem
|
999
|
-
e._a[
|
1012
|
+
e._a[ze]=Gn(e._locale,e._a[ze],e._meridiem),null!==(
|
1000
1013
|
// handle era
|
1001
|
-
a=g(e).era)&&(e._a[Ge]=e._locale.erasConvertYear(a,e._a[Ge])),Rn(e),wn(e)}else In(e);else
|
1014
|
+
a=g(e).era)&&(e._a[Ge]=e._locale.erasConvertYear(a,e._a[Ge])),Rn(e),wn(e)}else In(e);else $n(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
1002
1015
|
// Fallback
|
1003
1016
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
1004
1017
|
// date from string and array of format strings
|
@@ -1041,7 +1054,7 @@ function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.len
|
|
1041
1054
|
// FORMATTING
|
1042
1055
|
function hr(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
|
1043
1056
|
// PARSING
|
1044
|
-
He("Z"
|
1057
|
+
He("Z",Oe),He("ZZ",Oe),Ne(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Oe,e)}));
|
1045
1058
|
// HELPERS
|
1046
1059
|
// timezone chunker
|
1047
1060
|
// '+10:00' > ['10', '00']
|
@@ -1067,7 +1080,7 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
1067
1080
|
// a second time. In case it wants us to change the offset again
|
1068
1081
|
// _changeInProgress == true case, then we have to adjust, because
|
1069
1082
|
// there is no such time in the given timezone.
|
1070
|
-
function gr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(
|
1083
|
+
function gr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(Oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Hr(this,Dr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function _r(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function vr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr($e,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Er(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
1071
1084
|
// ASP.NET json date format regex
|
1072
1085
|
r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
1073
1086
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
@@ -1075,15 +1088,15 @@ r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\
|
|
1075
1088
|
// and further modified to allow for strings containing both week and day
|
1076
1089
|
Lr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(e,t){var n,r,i,o=e,
|
1077
1090
|
// matching against regexp is expensive, do it on demand
|
1078
|
-
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[
|
1091
|
+
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[We])*n,h:ce(s[ze])*n,m:ce(s[Ze])*n,s:ce(s[Xe])*n,ms:ce(ur(1e3*s[Ke]))*n}):(s=Lr.exec(e))?(n="-"===s[1]?-1:1,o={y:$r(s[2],n),M:$r(s[3],n),w:$r(s[4],n),d:$r(s[5],n),h:$r(s[6],n),m:$r(s[7],n),s:$r(s[8],n)}):null==o?
|
1079
1092
|
// checks for null or undefined
|
1080
|
-
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Pr(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&a(e,"_locale")&&(r._locale=e._locale),lr(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function
|
1093
|
+
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Pr(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&a(e,"_locale")&&(r._locale=e._locale),lr(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function $r(e,t){
|
1081
1094
|
// We'd normally use ~~inp for this, but unfortunately it also
|
1082
1095
|
// converts floats to ints.
|
1083
1096
|
// inp may be undefined, so careful calling replace on it.
|
1084
1097
|
var n=e&&parseFloat(e.replace(",","."));
|
1085
1098
|
// apply sign while we're at it
|
1086
|
-
return(isNaN(n)?0:n)*t}function
|
1099
|
+
return(isNaN(n)?0:n)*t}function Or(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Or(e,t):((n=Or(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
1087
1100
|
// TODO: remove 'name' arg after deprecation is removed
|
1088
1101
|
function Ar(e,t){return function(n,r){var i;
|
1089
1102
|
//invert the arguments, but complain about it
|
@@ -1132,7 +1145,7 @@ return this.isValid()?this.toISOString():null}function Si(){return y(this)}funct
|
|
1132
1145
|
// truncate time
|
1133
1146
|
o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
|
1134
1147
|
// truncate time
|
1135
|
-
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function
|
1148
|
+
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function $i(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([o,s,a].indexOf(e)>=0)return l[r]}function Oi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
1136
1149
|
// truncate time
|
1137
1150
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
1138
1151
|
// truncate time
|
@@ -1161,7 +1174,7 @@ ne("quarter","Q"),
|
|
1161
1174
|
// PRIORITY
|
1162
1175
|
se("quarter",7),
|
1163
1176
|
// PARSING
|
1164
|
-
He("Q",ye),Ne("Q",(function(e,t){t[
|
1177
|
+
He("Q",ye),Ne("Q",(function(e,t){t[Ve]=3*(ce(e)-1)})),R("D",["DD",2],"Do","date"),
|
1165
1178
|
// ALIASES
|
1166
1179
|
ne("date","D"),
|
1167
1180
|
// PRIORITY
|
@@ -1169,7 +1182,7 @@ se("date",9),
|
|
1169
1182
|
// PARSING
|
1170
1183
|
He("D",ke),He("DD",ke,be),He("Do",(function(e,t){
|
1171
1184
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
1172
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ne(["D","DD"],
|
1185
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ne(["D","DD"],We),Ne("Do",(function(e,t){t[We]=ce(e.match(ke)[0])}));
|
1173
1186
|
// MOMENTS
|
1174
1187
|
var eo=he("Date",!0);
|
1175
1188
|
// FORMATTING
|
@@ -1213,7 +1226,7 @@ He("S",Se,ye),He("SS",Se,be),He("SSS",Se,_e),ro="SSSS";ro.length<=9;ro+="S")He(r
|
|
1213
1226
|
// MOMENTS
|
1214
1227
|
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=he("Milliseconds",!1),
|
1215
1228
|
// FORMATTING
|
1216
|
-
R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Kn(1e3*e)}function ho(){return Kn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Fr,uo.calendar=Gr,uo.clone=jr,uo.diff=qr,uo.endOf=bi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=Mi,uo.isAfter=Vr,uo.isBefore=Wr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=Kr,uo.isValid=Si,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=qn,uo.parsingFlags=xi,uo.set=me,uo.startOf=yi,uo.subtract=Ir,uo.toArray=ki,uo.toObject=Ei,uo.toDate=wi,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=vi,uo.valueOf=_i,uo.creationData=Li,uo.eraName=Pi,uo.eraNarrow=Ai,uo.eraAbbr=Hi,uo.eraYear=Fi,uo.year=yt,uo.isLeapYear=bt,uo.weekYear=Vi,uo.isoWeekYear=Wi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Dt,uo.isoWeek=uo.isoWeeks
|
1229
|
+
R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Kn(1e3*e)}function ho(){return Kn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Fr,uo.calendar=Gr,uo.clone=jr,uo.diff=qr,uo.endOf=bi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=Mi,uo.isAfter=Vr,uo.isBefore=Wr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=Kr,uo.isValid=Si,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=qn,uo.parsingFlags=xi,uo.set=me,uo.startOf=yi,uo.subtract=Ir,uo.toArray=ki,uo.toObject=Ei,uo.toDate=wi,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=vi,uo.valueOf=_i,uo.creationData=Li,uo.eraName=Pi,uo.eraNarrow=Ai,uo.eraAbbr=Hi,uo.eraYear=Fi,uo.year=yt,uo.isLeapYear=bt,uo.weekYear=Vi,uo.isoWeekYear=Wi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Dt,uo.isoWeek=uo.isoWeeks=$t,uo.weeksInYear=Xi,uo.weeksInWeekYear=Ki,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=Zi,uo.date=eo,uo.day=uo.days=Vt,uo.weekday=Wt,uo.isoWeekday=zt,uo.dayOfYear=to,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=gr,uo.utc=br,uo.local=_r,uo.parseZone=vr,uo.hasAlignedHourOffset=wr,uo.isDST=kr,uo.isLocal=Tr,uo.isUtcOffset=Sr,uo.isUtc=xr,uo.isUTC=xr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=S("dates accessor is deprecated. Use date instead.",eo),uo.months=S("months accessor is deprecated. Use month instead",ht),uo.years=S("years accessor is deprecated. Use year instead",yt),uo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),uo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Er);var po=P.prototype;function mo(e,t,n,r){var i=_n(),o=p().set(r,t);return i[n](o,e)}function go(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
|
1217
1230
|
// ()
|
1218
1231
|
// (5)
|
1219
1232
|
// (fmt, 5)
|
@@ -1222,7 +1235,7 @@ R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var uo=k.prototype;function co(e){r
|
|
1222
1235
|
// (true, 5)
|
1223
1236
|
// (true, fmt, 5)
|
1224
1237
|
// (true, fmt)
|
1225
|
-
function yo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function bo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function vo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=H,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=q,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set
|
1238
|
+
function yo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function bo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function vo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=H,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=q,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=$,po.eras=Di,po.erasParse=$i,po.erasConvertYear=Oi,po.erasAbbrRegex=Bi,po.erasNameRegex=Ii,po.erasNarrowRegex=Ci,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=St,po.firstDayOfYear=Lt,po.firstDayOfWeek=Mt,po.weekdays=Rt,po.weekdaysMin=Ut,po.weekdaysShort=Yt,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=Kt,po.isPM=nn,po.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
1226
1239
|
// Side effect imports
|
1227
1240
|
r.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",_n);var Eo=Math.abs;function To(){var e=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),e.milliseconds=Eo(e.milliseconds),e.seconds=Eo(e.seconds),e.minutes=Eo(e.minutes),e.hours=Eo(e.hours),e.months=Eo(e.months),e.years=Eo(e.years),this}function So(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
1228
1241
|
// supports only 2.0-style add(1, 's') or add(duration)
|
@@ -1231,21 +1244,21 @@ function xo(e,t){return So(this,e,t,1)}
|
|
1231
1244
|
function Mo(e,t){return So(this,e,t,-1)}function Lo(e){return e<0?Math.floor(e):Math.ceil(e)}function Do(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;
|
1232
1245
|
// if we have a mix of positive and negative values, bubble down first
|
1233
1246
|
// check: https://github.com/moment/moment/issues/2166
|
1234
|
-
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Lo(
|
1247
|
+
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Lo(Oo(a)+s),s=0,a=0),
|
1235
1248
|
// The following code bubbles up values, see the tests for
|
1236
1249
|
// examples of what that means.
|
1237
1250
|
l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,s+=ue(n/24),a+=
|
1238
1251
|
// convert days to months
|
1239
|
-
i=ue(
|
1252
|
+
i=ue($o(s)),s-=Lo(Oo(i)),
|
1240
1253
|
// 12 months -> 1 year
|
1241
|
-
r=ue(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function
|
1254
|
+
r=ue(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function $o(e){
|
1242
1255
|
// 400 years have 146097 days (taking into account leap year rules)
|
1243
1256
|
// 400 years have 12 months === 4800
|
1244
|
-
return 4800*e/146097}function
|
1257
|
+
return 4800*e/146097}function Oo(e){
|
1245
1258
|
// the reverse of daysToMonths
|
1246
|
-
return 146097*e/4800}function Po(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months
|
1259
|
+
return 146097*e/4800}function Po(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+$o(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
1247
1260
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
1248
|
-
t=this._days+Math.round(
|
1261
|
+
t=this._days+Math.round(Oo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
1249
1262
|
// Math.floor prevents floating point math errors here
|
1250
1263
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
1251
1264
|
// TODO: Use this.as('ms')?
|
@@ -1281,7 +1294,7 @@ R("X",0,0,"unix"),R("x",0,0,"valueOf"),
|
|
1281
1294
|
// PARSING
|
1282
1295
|
He("x",De),He("X",Pe),Ne("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ne("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
1283
1296
|
//! moment.js
|
1284
|
-
r.version="2.29.
|
1297
|
+
r.version="2.29.4",i(Kn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=bo,r.isDate=h,r.locale=gn,r.invalid=b,r.duration=Dr,r.isMoment=E,r.weekdays=vo,r.parseZone=ho,r.localeData=_n,r.isDuration=lr,r.monthsShort=_o,r.weekdaysMin=ko,r.defineLocale=yn,r.updateLocale=bn,r.locales=vn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Ur,r.prototype=uo,
|
1285
1298
|
// currently HTML5 input type only supports 24-hour formats
|
1286
1299
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
1287
1300
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
@@ -1291,69 +1304,69 @@ TIME:"HH:mm",// <input type="time" />
|
|
1291
1304
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
1292
1305
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
1293
1306
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
1294
|
-
MONTH:"YYYY-MM"},r}()}));function
|
1295
|
-
/* src/CasinoFooterV2.svelte generated by Svelte v3.
|
1307
|
+
MONTH:"YYYY-MM"},r}()}));function ti(e,t){kr(e,t)}const ni={en:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},de:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"}},fr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},ro:{casinoFooter:{timeText:"Ora",sessionTimer:"online de",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},es:{casinoFooter:{timeText:"Hora",sessionTimer:"tiempo sesión",panicButton:"Dar clic durante 3 segundos para tomar un descanso de 24 horas"}},pt:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},hr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata"}},sl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde, da bi vzeli 24 urni premor"}},pl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"}}},{document:ri}=U;
|
1308
|
+
/* src/CasinoFooterV2.svelte generated by Svelte v3.58.0 */function ii(e,t,n){const r=e.slice();return r[81]=t[n],r}function oi(e,t,n){const r=e.slice();return r[84]=t[n],r}function si(e,t,n){const r=e.slice();return r[87]=t[n],r}
|
1296
1309
|
// (293:2) {#if headScript}
|
1297
|
-
function
|
1310
|
+
function ai(e){let t,n;return{c(){t=g("script"),l(t.src,n=/*licenseScriptSrc*/e[23])||k(t,"src",n)},m(e,n){f(e,t,n)},p(e,r){/*licenseScriptSrc*/8388608&r[0]&&!l(t.src,n=/*licenseScriptSrc*/e[23])&&k(t,"src",n)},d(e){e&&p(t)}}}
|
1298
1311
|
// (304:2) {:else}
|
1299
|
-
function
|
1300
|
-
/*div2_binding*/,e[56](t)},p(e,t){/*helpLinksRepeater*/e[13]?y?y.p(e,t):(y=
|
1312
|
+
function li(e){let t,n,r,i,o,s,a,l,u,c,h,m,y=/*helpLinksRepeater*/e[13]&&hi(e),b=/*gameVendorsRepeater*/e[8]&&pi(e),v=/*paymentMethodsRepeater*/e[10]&&gi(e),w=/*panicbuttonenabled*/"true"===e[3]&&/*isLoggedIn*/e[25]&&bi(e),E=/*licensesRepeater*/e[15]&&_i(e),T=/*sponsorsRepeater*/e[12]&&ki(e),S=/*socialLinksRepeater*/e[17]&&Si(e),x=/*languageselectorenabled*/"true"===e[2]&&/*languagePackLoaded*/e[31]&&/*selectedLanguage*/e[26]&&Mi(e),M=/*copyright*/e[18]&&$i(e);return{c(){t=g("div"),n=g("div"),y&&y.c(),i=_(),o=g("div"),b&&b.c(),s=_(),v&&v.c(),a=_(),w&&w.c(),l=_(),E&&E.c(),u=_(),T&&T.c(),c=_(),S&&S.c(),h=_(),x&&x.c(),m=_(),M&&M.c(),k(n,"class",r="FooterSide "+(/*isOnMobile*/e[33]&&/*isLoggedIn*/e[25]&&/*panicbuttonenabled*/"true"===e[3]?"FooterSideMobile":"")),k(o,"class","FooterGrid"),k(t,"class","Footer")},m(r,p){f(r,t,p),d(t,n),y&&y.m(n,null),d(t,i),d(t,o),b&&b.m(o,null),d(o,s),v&&v.m(o,null),d(o,a),w&&w.m(o,null),d(o,l),E&&E.m(o,null),d(o,u),T&&T.m(o,null),d(o,c),S&&S.m(o,null),d(o,h),x&&x.m(o,null),d(o,m),M&&M.m(o,null)
|
1313
|
+
/*div2_binding*/,e[56](t)},p(e,t){/*helpLinksRepeater*/e[13]?y?y.p(e,t):(y=hi(e),y.c(),y.m(n,null)):y&&(y.d(1),y=null),/*isLoggedIn, panicbuttonenabled*/33554440&t[0]&&r!==(r="FooterSide "+(/*isOnMobile*/e[33]&&/*isLoggedIn*/e[25]&&/*panicbuttonenabled*/"true"===e[3]?"FooterSideMobile":""))&&k(n,"class",r),/*gameVendorsRepeater*/e[8]?b?b.p(e,t):(b=pi(e),b.c(),b.m(o,s)):b&&(b.d(1),b=null),/*paymentMethodsRepeater*/e[10]?v?v.p(e,t):(v=gi(e),v.c(),v.m(o,a)):v&&(v.d(1),v=null),/*panicbuttonenabled*/"true"===e[3]&&/*isLoggedIn*/e[25]?w?w.p(e,t):(w=bi(e),w.c(),w.m(o,l)):w&&(w.d(1),w=null),/*licensesRepeater*/e[15]?E?E.p(e,t):(E=_i(e),E.c(),E.m(o,u)):E&&(E.d(1),E=null),/*sponsorsRepeater*/e[12]?T?T.p(e,t):(T=ki(e),T.c(),T.m(o,c)):T&&(T.d(1),T=null),/*socialLinksRepeater*/e[17]?S?S.p(e,t):(S=Si(e),S.c(),S.m(o,h)):S&&(S.d(1),S=null),/*languageselectorenabled*/"true"===e[2]&&/*languagePackLoaded*/e[31]&&/*selectedLanguage*/e[26]?x?x.p(e,t):(x=Mi(e),x.c(),x.m(o,m)):x&&(x.d(1),x=null),/*copyright*/e[18]?M?M.p(e,t):(M=$i(e),M.c(),M.m(o,null)):M&&(M.d(1),M=null)},d(n){n&&p(t),y&&y.d(),b&&b.d(),v&&v.d(),w&&w.d(),E&&E.d(),T&&T.d(),S&&S.d(),x&&x.d(),M&&M.d()
|
1301
1314
|
/*div2_binding*/,e[56](null)}}}
|
1302
1315
|
// (302:2) {#if isLoading}
|
1303
|
-
function
|
1316
|
+
function ui(t){let n;return{c(){n=g("p"),n.textContent="Loading ...",k(n,"class","SearchLoading")},m(e,t){f(e,n,t)},p:e,d(e){e&&p(n)}}}
|
1304
1317
|
// (299:0) {#if hasErrors}
|
1305
|
-
function
|
1318
|
+
function ci(t){let n;return{c(){n=g("p"),n.textContent="500 Error - Internal Server Error",k(n,"class","SearchLoading")},m(e,t){f(e,n,t)},p:e,d(e){e&&p(n)}}}
|
1306
1319
|
// (309:8) {#if helpLinksRepeater}
|
1307
|
-
function
|
1320
|
+
function hi(e){let t,n=/*helpLinksRepeater*/e[13],r=[];for(let t=0;t<n.length;t+=1)r[t]=fi(si(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=v()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);f(e,t,n)},p(e,i){if(/*clientstyling, helpLinksRepeater, baseurl, lang*/8211&i[0]){let o;for(n=/*helpLinksRepeater*/e[13],o=0;o<n.length;o+=1){const s=si(e,n,o);r[o]?r[o].p(s,i):(r[o]=fi(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){m(r,e),e&&p(t)}}}
|
1308
1321
|
// (311:12) {#if category.key}
|
1309
|
-
function
|
1322
|
+
function di(e){let t,n,r=/*category*/e[87].key+"";return{c(){t=g("p"),n=b(r),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*helpLinksRepeater*/8192&t[0]&&r!==(r=/*category*/e[87].key+"")&&T(n,r)},d(e){e&&p(t)}}}
|
1310
1323
|
// (310:10) {#each helpLinksRepeater as category}
|
1311
|
-
function
|
1324
|
+
function fi(e){let t,n,r,i=/*category*/e[87].key&&di(e);return{c(){i&&i.c(),t=_(),n=g("casino-footer-section"),E(n,"helperflag","1"),E(n,"clientstyling",/*clientstyling*/e[0]),E(n,"category",r=/*category*/e[87].key),E(n,"displaycolumn","true"),E(n,"baseurl",/*baseurl*/e[4]),E(n,"lang",/*lang*/e[1]),E(n,"footertype","footersecondary")},m(e,r){i&&i.m(e,r),f(e,t,r),f(e,n,r)},p(e,o){/*category*/e[87].key?i?i.p(e,o):(i=di(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),/*clientstyling*/1&o[0]&&E(n,"clientstyling",/*clientstyling*/e[0]),/*helpLinksRepeater*/8192&o[0]&&r!==(r=/*category*/e[87].key)&&E(n,"category",r),/*baseurl*/16&o[0]&&E(n,"baseurl",/*baseurl*/e[4]),/*lang*/2&o[0]&&E(n,"lang",/*lang*/e[1])},d(e){i&&i.d(e),e&&p(t),e&&p(n)}}}
|
1312
1325
|
// (329:8) {#if gameVendorsRepeater}
|
1313
|
-
function
|
1326
|
+
function pi(e){let t,n,r,i,o=/*gameVendorsLinksTitle*/e[7]&&mi(e);return{c(){t=g("div"),n=g("div"),o&&o.c(),r=_(),i=g("casino-footer-section"),E(i,"vendorflag","1"),E(i,"clientstyling",/*clientstyling*/e[0]),E(i,"baseurl",/*baseurl*/e[4]),E(i,"lang",/*lang*/e[1]),E(i,"footertype","footersecondary"),k(t,"class","GridRow")},m(e,s){f(e,t,s),d(t,n),o&&o.m(n,null),d(n,r),d(n,i)},p(e,t){/*gameVendorsLinksTitle*/e[7]?o?o.p(e,t):(o=mi(e),o.c(),o.m(n,r)):o&&(o.d(1),o=null),/*clientstyling*/1&t[0]&&E(i,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&t[0]&&E(i,"baseurl",/*baseurl*/e[4]),/*lang*/2&t[0]&&E(i,"lang",/*lang*/e[1])},d(e){e&&p(t),o&&o.d()}}}
|
1314
1327
|
// (332:14) {#if gameVendorsLinksTitle}
|
1315
|
-
function
|
1328
|
+
function mi(e){let t,n;return{c(){t=g("p"),n=b(/*gameVendorsLinksTitle*/e[7]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*gameVendorsLinksTitle*/128&t[0]&&T(n,/*gameVendorsLinksTitle*/e[7])},d(e){e&&p(t)}}}
|
1316
1329
|
// (347:6) {#if paymentMethodsRepeater}
|
1317
|
-
function
|
1330
|
+
function gi(e){let t,n,r,i,o=/*paymentLinksTitle*/e[9]&&yi(e);return{c(){t=g("div"),n=g("div"),o&&o.c(),r=_(),i=g("casino-footer-section"),E(i,"paymentflag","1"),E(i,"clientstyling",/*clientstyling*/e[0]),E(i,"baseurl",/*baseurl*/e[4]),E(i,"lang",/*lang*/e[1]),E(i,"footertype","footersecondary"),k(t,"class","GridRow")},m(e,s){f(e,t,s),d(t,n),o&&o.m(n,null),d(n,r),d(n,i)},p(e,t){/*paymentLinksTitle*/e[9]?o?o.p(e,t):(o=yi(e),o.c(),o.m(n,r)):o&&(o.d(1),o=null),/*clientstyling*/1&t[0]&&E(i,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&t[0]&&E(i,"baseurl",/*baseurl*/e[4]),/*lang*/2&t[0]&&E(i,"lang",/*lang*/e[1])},d(e){e&&p(t),o&&o.d()}}}
|
1318
1331
|
// (350:12) {#if paymentLinksTitle}
|
1319
|
-
function
|
1332
|
+
function yi(e){let t,n;return{c(){t=g("p"),n=b(/*paymentLinksTitle*/e[9]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*paymentLinksTitle*/512&t[0]&&T(n,/*paymentLinksTitle*/e[9])},d(e){e&&p(t)}}}
|
1320
1333
|
// (366:6) {#if panicbuttonenabled === "true" && isLoggedIn}
|
1321
|
-
function
|
1334
|
+
function bi(e){let t;return{c(){t=g("panic-button"),E(t,"customtext",/*panicButtonCustomText*/e[32]),E(t,"alternativestyling","true"),E(t,"lang",/*lang*/e[1]),E(t,"clientstyling",/*clientstyling*/e[0])},m(e,n){f(e,t,n)},p(e,n){/*panicButtonCustomText*/2&n[1]&&E(t,"customtext",/*panicButtonCustomText*/e[32]),/*lang*/2&n[0]&&E(t,"lang",/*lang*/e[1]),/*clientstyling*/1&n[0]&&E(t,"clientstyling",/*clientstyling*/e[0])},d(e){e&&p(t)}}}
|
1322
1335
|
// (376:6) {#if licensesRepeater}
|
1323
|
-
function
|
1336
|
+
function _i(e){let t,n,r,i,o,s,a=/*licensesLinksTitle*/e[14]&&vi(e),l=/*licenseDesc*/e[19]&&wi(e);return{c(){t=g("div"),n=g("div"),a&&a.c(),r=_(),i=g("casino-footer-section"),o=_(),s=g("div"),l&&l.c(),E(i,"licenseflag","1"),E(i,"clientstyling",/*clientstyling*/e[0]),E(i,"baseurl",/*baseurl*/e[4]),E(i,"lang",/*lang*/e[1]),E(i,"footertype","footersecondary"),k(n,"class","LicenseLinks"),k(s,"class","LicenseDesc"),k(t,"class","GridRow")},m(e,u){f(e,t,u),d(t,n),a&&a.m(n,null),d(n,r),d(n,i),d(t,o),d(t,s),l&&l.m(s,null)},p(e,t){/*licensesLinksTitle*/e[14]?a?a.p(e,t):(a=vi(e),a.c(),a.m(n,r)):a&&(a.d(1),a=null),/*clientstyling*/1&t[0]&&E(i,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&t[0]&&E(i,"baseurl",/*baseurl*/e[4]),/*lang*/2&t[0]&&E(i,"lang",/*lang*/e[1]),/*licenseDesc*/e[19]?l?l.p(e,t):(l=wi(e),l.c(),l.m(s,null)):l&&(l.d(1),l=null)},d(e){e&&p(t),a&&a.d(),l&&l.d()}}}
|
1324
1337
|
// (379:12) {#if licensesLinksTitle}
|
1325
|
-
function
|
1338
|
+
function vi(e){let t,n;return{c(){t=g("p"),n=b(/*licensesLinksTitle*/e[14]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*licensesLinksTitle*/16384&t[0]&&T(n,/*licensesLinksTitle*/e[14])},d(e){e&&p(t)}}}
|
1326
1339
|
// (392:12) {#if licenseDesc}
|
1327
|
-
function
|
1340
|
+
function wi(e){let t,n,o,s,a,l,u;return{c(){t=g("div"),o=_(),s=g("div"),k(t,"class","DetailedLicenses"),k(s,"class","DetailedCustomLicenses")},m(r,i){f(r,t,i),f(r,o,i),f(r,s,i),l||(u=[h(n=/*setContent*/e[34].call(null,t,/*licenseDesc*/e[19])),h(a=/*setContent*/e[34].call(null,s,/*licenseScript*/e[24]))],l=!0)},p(e,t){n&&i(n.update)&&/*licenseDesc*/524288&t[0]&&n.update.call(null,/*licenseDesc*/e[19]),a&&i(a.update)&&/*licenseScript*/16777216&t[0]&&a.update.call(null,/*licenseScript*/e[24])},d(e){e&&p(t),e&&p(o),e&&p(s),l=!1,r(u)}}}
|
1328
1341
|
// (403:6) {#if sponsorsRepeater}
|
1329
|
-
function
|
1342
|
+
function ki(e){let t,n=/*sponsorsRepeater*/e[12]&&Ei(e);return{c(){t=g("div"),n&&n.c(),k(t,"class","GridRow")},m(e,r){f(e,t,r),n&&n.m(t,null)},p(e,r){/*sponsorsRepeater*/e[12]?n?n.p(e,r):(n=Ei(e),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(e){e&&p(t),n&&n.d()}}}
|
1330
1343
|
// (405:10) {#if sponsorsRepeater}
|
1331
|
-
function
|
1344
|
+
function Ei(e){let t,n,r,i=/*sponsorsLinksTitle*/e[11]&&Ti(e);return{c(){t=g("div"),i&&i.c(),n=_(),r=g("casino-footer-section"),E(r,"sponsorflag","1"),E(r,"clientstyling",/*clientstyling*/e[0]),E(r,"baseurl",/*baseurl*/e[4]),E(r,"lang",/*lang*/e[1]),E(r,"footertype","footersecondary")},m(e,o){f(e,t,o),i&&i.m(t,null),d(t,n),d(t,r)},p(e,o){/*sponsorsLinksTitle*/e[11]?i?i.p(e,o):(i=Ti(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),/*clientstyling*/1&o[0]&&E(r,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&o[0]&&E(r,"baseurl",/*baseurl*/e[4]),/*lang*/2&o[0]&&E(r,"lang",/*lang*/e[1])},d(e){e&&p(t),i&&i.d()}}}
|
1332
1345
|
// (407:12) {#if sponsorsLinksTitle}
|
1333
|
-
function
|
1346
|
+
function Ti(e){let t,n;return{c(){t=g("p"),n=b(/*sponsorsLinksTitle*/e[11]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*sponsorsLinksTitle*/2048&t[0]&&T(n,/*sponsorsLinksTitle*/e[11])},d(e){e&&p(t)}}}
|
1334
1347
|
// (424:8) {#if socialLinksRepeater}
|
1335
|
-
function
|
1348
|
+
function Si(e){let t,n,r,i=/*socialLinksTitle*/e[16]&&xi(e);return{c(){t=g("div"),i&&i.c(),n=_(),r=g("casino-footer-section"),E(r,"socialflag","1"),E(r,"clientstyling",/*clientstyling*/e[0]),E(r,"baseurl",/*baseurl*/e[4]),E(r,"lang",/*lang*/e[1]),E(r,"footertype","footersecondary"),k(t,"class","GridRow")},m(e,o){f(e,t,o),i&&i.m(t,null),d(t,n),d(t,r)},p(e,o){/*socialLinksTitle*/e[16]?i?i.p(e,o):(i=xi(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),/*clientstyling*/1&o[0]&&E(r,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&o[0]&&E(r,"baseurl",/*baseurl*/e[4]),/*lang*/2&o[0]&&E(r,"lang",/*lang*/e[1])},d(e){e&&p(t),i&&i.d()}}}
|
1336
1349
|
// (426:12) {#if socialLinksTitle}
|
1337
|
-
function
|
1350
|
+
function xi(e){let t,n;return{c(){t=g("p"),n=b(/*socialLinksTitle*/e[16]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*socialLinksTitle*/65536&t[0]&&T(n,/*socialLinksTitle*/e[16])},d(e){e&&p(t)}}}
|
1338
1351
|
// (441:6) {#if (languageselectorenabled==="true" && languagePackLoaded && selectedLanguage)}
|
1339
|
-
function
|
1340
|
-
/*div0_binding*/e[55](a),d(s,c),d(s,h),d(h,v),d(h,x),d(h,M),d(h,L),d(L,D)
|
1341
|
-
/*div0_binding*/e[55](null)
|
1352
|
+
function Mi(e){let t,n,i,o,s,a,u,c,h,v,E,x,M,L,D,$,O,P=/*languagesArray*/e[27],A=[];for(let t=0;t<P.length;t+=1)A[t]=Li(oi(e,P,t));let H=/*languages*/e[5],F=[];for(let t=0;t<H.length;t+=1)F[t]=Di(ii(e,H,t));return{c(){t=g("div"),n=g("div"),i=g("select");for(let e=0;e<A.length;e+=1)A[e].c();o=_(),s=g("div"),a=g("div"),u=g("ul");for(let e=0;e<F.length;e+=1)F[e].c();c=_(),h=g("button"),v=g("img"),x=b(/*languageDisplayName*/e[29]),M=_(),L=y("svg"),D=y("path"),k(i,"class","Item ItemLanguage"),/*selectedLanguage*/void 0===e[26]&&I((()=>/*select_change_handler*/e[53].call(i))),k(u,"id","LanguageList"),k(a,"class","LanguageDrawer hidden"),k(v,"class","LanguageFlag"),l(v.src,E=/*currentLanguageFlag*/e[30])||k(v,"src",E),k(D,"opacity","0.4"),k(D,"d","M0.94 0L4.00067 3.05467L7.06 0L8 0.940667L4.00067 4.94133L0 0.940667L0.94 0Z"),k(D,"fill","black"),k(L,"width","8"),k(L,"height","5"),k(L,"viewBox","0 0 8 5"),k(L,"fill","none"),k(L,"xmlns","http://www.w3.org/2000/svg"),k(h,"class","DrawerButton"),h.value=/*selectedLanguage*/e[26],k(s,"class","LanguageSelectorOverlay"),k(n,"class","LanguageSelectorContainer"),k(t,"class","GridRow")},m(r,l){f(r,t,l),d(t,n),d(n,i);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(i,null);S(i,/*selectedLanguage*/e[26],!0),d(n,o),d(n,s),d(s,a),d(a,u);for(let e=0;e<F.length;e+=1)F[e]&&F[e].m(u,null);
|
1353
|
+
/*div0_binding*/e[55](a),d(s,c),d(s,h),d(h,v),d(h,x),d(h,M),d(h,L),d(L,D),$||(O=[w(i,"change",/*select_change_handler*/e[53]),w(i,"change",/*change_handler*/e[54]),w(h,"click",/*toggleLanguageDrawer*/e[36])],$=!0)},p(e,t){if(/*languagesArray*/134217728&t[0]){let n;for(P=/*languagesArray*/e[27],n=0;n<P.length;n+=1){const r=oi(e,P,n);A[n]?A[n].p(r,t):(A[n]=Li(r),A[n].c(),A[n].m(i,null))}for(;n<A.length;n+=1)A[n].d(1);A.length=P.length}if(/*selectedLanguage, languagesArray*/201326592&t[0]&&S(i,/*selectedLanguage*/e[26]),/*languages*/32&t[0]|/*overlayOptionTrigger*/64&t[1]){let n;for(H=/*languages*/e[5],n=0;n<H.length;n+=1){const r=ii(e,H,n);F[n]?F[n].p(r,t):(F[n]=Di(r),F[n].c(),F[n].m(u,null))}for(;n<F.length;n+=1)F[n].d(1);F.length=H.length}/*currentLanguageFlag*/1073741824&t[0]&&!l(v.src,E=/*currentLanguageFlag*/e[30])&&k(v,"src",E),/*languageDisplayName*/536870912&t[0]&&T(x,/*languageDisplayName*/e[29]),/*selectedLanguage, languagesArray*/201326592&t[0]&&(h.value=/*selectedLanguage*/e[26])},d(n){n&&p(t),m(A,n),m(F,n),
|
1354
|
+
/*div0_binding*/e[55](null),$=!1,r(O)}}}
|
1342
1355
|
// (446:14) {#each languagesArray as operatorLanguage}
|
1343
|
-
function
|
1356
|
+
function Li(e){let t,n,r,i=/*operatorLanguage*/e[84]+"";return{c(){t=g("option"),n=b(i),t.__value=r=/*operatorLanguage*/e[84],t.value=t.__value,t.selected=!0},m(e,r){f(e,t,r),d(t,n)},p(e,o){/*languagesArray*/134217728&o[0]&&i!==(i=/*operatorLanguage*/e[84]+"")&&T(n,i),/*languagesArray*/134217728&o[0]&&r!==(r=/*operatorLanguage*/e[84])&&(t.__value=r,t.value=t.__value)},d(e){e&&p(t)}}}
|
1344
1357
|
// (455:18) {#each languages as language}
|
1345
|
-
function
|
1358
|
+
function Di(e){let t,n,r,i,o,s,a,u,c,h=/*language*/e[81].name+"";return{c(){t=g("li"),n=g("img"),i=g("a"),o=g("span"),s=b(h),k(n,"class","LanguageFlag"),l(n.src,r=/*language*/e[81].flag_icon_editable)||k(n,"src",r),k(i,"href","javascript:void(0)"),k(t,"class","OverlayLanguageOption"),k(t,"data-lang",a=/*language*/e[81].code)},m(r,a){f(r,t,a),d(t,n),d(t,i),d(i,o),d(o,s),u||(c=w(t,"click",/*overlayOptionTrigger*/e[37]),u=!0)},p(e,i){/*languages*/32&i[0]&&!l(n.src,r=/*language*/e[81].flag_icon_editable)&&k(n,"src",r),/*languages*/32&i[0]&&h!==(h=/*language*/e[81].name+"")&&T(s,h),/*languages*/32&i[0]&&a!==(a=/*language*/e[81].code)&&k(t,"data-lang",a)},d(e){e&&p(t),u=!1,c()}}}
|
1346
1359
|
// (471:6) {#if copyright}
|
1347
|
-
function
|
1348
|
-
return e[20]?
|
1360
|
+
function $i(e){let t,n,r,o;return{c(){t=g("div"),k(t,"class","CopyrightAreaRights CopyrightArea")},m(i,s){f(i,t,s),r||(o=h(n=/*setContent*/e[34].call(null,t,/*copyright*/e[18])),r=!0)},p(e,t){n&&i(n.update)&&/*copyright*/262144&t[0]&&n.update.call(null,/*copyright*/e[18])},d(e){e&&p(t),r=!1,o()}}}function Oi(t){let n,r,i,o=/*headScript*/t[22]&&ai(t);function s(e,t){/*hasErrors*/
|
1361
|
+
return e[20]?ci:/*isLoading*/e[21]?ui:li}let a=s(t),l=a(t);return{c(){o&&o.c(),n=g("link"),r=_(),l.c(),i=v(),this.c=e,k(n,"href","https://fonts.googleapis.com/css?family=Roboto Condensed"),k(n,"rel","stylesheet"),k(n,"type","text/css")},m(e,t){o&&o.m(ri.head,null),d(ri.head,n),f(e,r,t),l.m(e,t),f(e,i,t)},p(e,t){/*headScript*/e[22]?o?o.p(e,t):(o=ai(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(i.parentNode,i)))},i:e,o:e,d(e){o&&o.d(e),p(n),e&&p(r),l.d(e),e&&p(i)}}}function Pi(e,t,n){let r;c(e,Zr,(e=>n(68,r=e)));let i,o,s,a,l,u,h,{endpoint:d=""}=t,{lang:f="en"}=t,{env:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,{clockenabled:b=""}=t,{clocksecondsenabled:_=""}=t,{clockcustomformat:v=""}=t,{clocktext:w="Time:"}=t,{languageselectorenabled:k="true"}=t,{languageslist:E="en, ro"}=t,{languagedisplaytype:T="name"}=t,{session:S=""}=t,{userid:x=""}=t,{userendpoint:M=""}=t,{panicbuttonenabled:L="true"}=t,{sessiontimerenabled:$="true"}=t,{grouplink:P="true"}=t,{baseurl:A=""}=t,H=window.navigator.userAgent,F=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(H),I="",B=[],C="",N=[],R="",Y=[],U="",G=[],j="",V=[],W="",z=[],Z="",X="",K=!1,q=!1,J=!1,Q="",ee="",te=!1,ne="hr",re=[],ie=[],oe="",se="",ae=!1,le="",ue=document.createElement("p"),ce=document.createElement("p");!function({withLocale:e,translations:t}){Ir.subscribe((n=>{null==n&&(_r.set(t),Ir.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
1349
1362
|
/*dictionary.set(translations);
|
1350
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(
|
1363
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(ni).forEach((e=>{ti(e,ni[e])}));let he=r("casinoFooter.panicButton");const de=()=>{(function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),Ve(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))})(M,S).then((e=>{e.Guid,e.UserID,n(25,te=!0),fe(e)}),(e=>{n(25,te=!1),console.error("Error while checking the session - ",e)}))},fe=e=>{
|
1351
1364
|
// using Date instead of moment because they recommend in their docs to stop using it for new projects
|
1352
|
-
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ue.innerHTML=` ${r("casinoFooter.sessionTimer")} ${le}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=v?v:`hh:mm${"true"===_?":ss":""} (UTC Z)`;o=
|
1365
|
+
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ue.innerHTML=` ${r("casinoFooter.sessionTimer")} ${le}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=v?v:`hh:mm${"true"===_?":ss":""} (UTC Z)`;o=ei().format(e),ce.innerHTML=` ${w} ${o}`},me=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:ne},window.location.href)},ge=()=>{let e=!1;re.forEach(((t,r)=>{if(t.code==ne.toLowerCase()){let r="";switch(e=!0,n(30,se=t.flag_icon_editable),T){case"name":r=t.name;break;case"translatedName":r=t.translated_name;break;default:r=t.code}n(29,oe=r)}})),e||n(29,oe=ne)},ye=()=>{var e;e=f,Ir.set(e),n(32,he=r("casinoFooter.panicButton"))};D((()=>()=>{clearInterval(l),clearInterval(u)}));return e.$$set=e=>{"endpoint"in e&&n(38,d=e.endpoint),"lang"in e&&n(1,f=e.lang),"env"in e&&n(39,p=e.env),"clientstyling"in e&&n(0,m=e.clientstyling),"clientstylingurl"in e&&n(40,g=e.clientstylingurl),"translationurl"in e&&n(41,y=e.translationurl),"clockenabled"in e&&n(42,b=e.clockenabled),"clocksecondsenabled"in e&&n(43,_=e.clocksecondsenabled),"clockcustomformat"in e&&n(44,v=e.clockcustomformat),"clocktext"in e&&n(45,w=e.clocktext),"languageselectorenabled"in e&&n(2,k=e.languageselectorenabled),"languageslist"in e&&n(46,E=e.languageslist),"languagedisplaytype"in e&&n(47,T=e.languagedisplaytype),"session"in e&&n(48,S=e.session),"userid"in e&&n(49,x=e.userid),"userendpoint"in e&&n(50,M=e.userendpoint),"panicbuttonenabled"in e&&n(3,L=e.panicbuttonenabled),"sessiontimerenabled"in e&&n(51,$=e.sessiontimerenabled),"grouplink"in e&&n(52,P=e.grouplink),"baseurl"in e&&n(4,A=e.baseurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&f&&ye(),/*languageslist*/32768&e.$$.dirty[1]&&E&&(n(27,ie=E.replace(/ /g,"").split(",")),n(27,ie=ie.map((e=>e.toUpperCase())))),/*session, userid, userendpoint*/917504&e.$$.dirty[1]&&S&&x&&M&&de(),/*lang*/2&e.$$.dirty[0]|/*endpoint, env*/384&e.$$.dirty[1]&&d&&f&&p&&(()=>{let e=new URL(`${d}/${f}/footer-raw-data`);e.searchParams.append("env",p);let t=Xr(H);t&&("PC"===t?e.searchParams.append("device","dk"):e.searchParams.append("device","mtWeb")),"true"==P&&e.searchParams.append("helpLinks_groupby","helpLinkCategory"),n(21,q=!0),fetch(e.href).then((e=>e.json())).then((e=>{let t,r,o;n(21,q=!1),i=e,n(7,({gameVendorsLinksTitle:I,gameVendorsRepeater:B,paymentLinksTitle:C,paymentMethodsRepeater:N,sponsorsLinksTitle:R,sponsorsRepeater:Y,helpLinksTitle:U,helpLinksRepeater:G,licensesLinksTitle:j,licensesRepeater:V,socialLinksTitle:W,socialLinksRepeater:z,copyright:Z,licenseDesc:X,licenseHeadScriptSrc:t,licenseScriptBody:r,licenseEvent:o,language:re}=i),I,n(8,B),n(9,C),n(10,N),n(11,R),n(12,Y),n(13,G),n(14,j),n(15,V),n(16,W),n(17,z),n(18,Z),n(19,X),n(5,re)),re&&(n(31,ae=!0),ge()),(null==t?void 0:t.length)>0&&(n(22,J=!0),n(23,Q=t)),(null==r?void 0:r.length)>0&&n(24,ee=r),window.postMessage({type:o},window.location.href),window.postMessage({type:"FooterData",gameVendorsRepeater:B,paymentMethodsRepeater:N,sponsorsRepeater:Y,helpLinksRepeater:G,licensesRepeater:V,socialLinksRepeater:z},window.location.href)})).catch((e=>{n(20,K=!0),n(21,q=!1),console.error(e)}))})(),/*translationurl*/1024&e.$$.dirty[1]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ti(t,e[t])}))})).catch((e=>{console.log(e)})),/*clockenabled, clocksecondsenabled, clockcustomformat*/14336&e.$$.dirty[1]&&"false"!==b&&_&&v&&pe(),/*clockenabled, clocksecondsenabled*/6144&e.$$.dirty[1]&&"false"!==b&&_&&(s="true"==_?1e3:6e4)&&(l=setInterval((()=>{pe()}),s)),/*lang, languages*/34&e.$$.dirty[0]&&f&&n(26,ne=f)&&re&&re.length>0&&ge(),/*clientstyling, customStylingContainer*/65&e.$$.dirty[0]&&m&&h&&(()=>{let e=document.createElement("style");e.innerHTML=m,h.appendChild(e)})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstylingurl*/512&e.$$.dirty[1]&&g&&h&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,
|
1353
1366
|
// after the first call is made for the custom styling file, save the css inside clientstyling in order to avoid multiple fetches inside subwidgets
|
1354
1367
|
n(0,m=m?m+e:e),setTimeout((()=>{h.appendChild(t)}),1)}))})()},[m,f,k,L,A,re,h,I,B,C,N,R,Y,G,j,V,W,z,Z,X,K,q,J,Q,ee,te,ne,ie,a,oe,se,ae,he,F,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n),
|
1355
1368
|
//Add clock
|
1356
1369
|
"true"===b&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ce),
|
1357
1370
|
//Add session timer
|
1358
|
-
"true"
|
1371
|
+
"true"==$&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ue)},me,()=>{a.classList.toggle("hidden")},e=>{let t=e.target.closest(".OverlayLanguageOption");n(26,ne=t.getAttribute("data-lang")),me(),ge(),a.classList.toggle("hidden")},d,p,g,y,b,_,v,w,E,T,S,x,M,$,P,function(){ne=function(e){const t=e.querySelector(":checked");return t&&t.__value}(this),n(26,ne),n(1,f),n(5,re),n(27,ie)},()=>me(),function(e){O[e?"unshift":"push"]((()=>{a=e,n(28,a)}))},function(e){O[e?"unshift":"push"]((()=>{h=e,n(6,h)}))}]}class Ai extends W{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);text-align:center}.Footer{position:relative;background-color:#E8E9EB;display:flex;padding:21px 12px;flex-direction:row}.FooterSideMobile{margin-top:44px}.FooterSide{justify-content:center;height:100%;display:flex;flex-direction:column;background-color:#E8E9EB}.FooterSide .FooterTitle{font-family:"Roboto Condensed";font-weight:500;font-size:12px;color:#111;text-transform:uppercase;margin:21px 12px}.FooterGrid{font-weight:400;height:100%;display:flex;max-width:1200px;margin:auto;background-color:#E8E9EB;flex-direction:column;align-items:center;justify-content:center}.FooterGrid .GridRow{display:flex;flex-flow:row wrap;width:100%;align-items:flex-start;justify-content:center;align-items:center;padding:20px 0;text-align:left;max-width:1100px}.FooterGrid .GridRow p{display:inline;font-family:"Roboto";font-style:normal;font-weight:300;font-size:12px;color:#111}.FooterGrid .GridRow .LicenseDesc{flex:1;max-width:575px;line-height:1.3;display:flex;flex-direction:column;align-items:flex-start}.FooterGrid .GridRow .LicenseDesc .DetailedLicenses{font-size:10px;color:var(--emfe-w-color-gray-150, #828282)}.FooterGrid .CopyrightAreaRights{margin-top:10px}.FooterGrid .CopyrightTextArea p,.FooterGrid .CopyrightArea p{margin:0;color:var(--emfe-w-color-gray-150, #828282);font-size:9px}@media only screen and (max-width: 768px){.Footer{display:flex;flex-direction:column}.FooterSide{position:relative;margin-left:14px;margin-top:66px}.FooterGrid{padding:0}.FooterGrid:last-child{padding-bottom:50px}.GridRow{border-bottom:1px solid rgba(0, 0, 0, 0.05);gap:15px}.GridRow:last-child{border:none}}.ItemLanguage{display:none}#LanguageList{padding:0;margin:0}.LanguageSelectorContainer{position:relative}.LanguageSelectorOverlay{position:relative;font-size:12px}.DrawerButton{height:30px;width:150px;background:inherit;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-evenly;align-items:center;border-radius:0px;border:0;position:relative}.LanguageDrawer{position:absolute;background:#E8E9EB;width:150px;bottom:30px;padding:6px 0;left:7px}.LanguageDrawer.hidden{display:none}.LanguageFlag{margin-right:8px;background:black;border-radius:50%;width:16px;height:16px}.OverlayLanguageOption{justify-content:center;list-style:none;position:relative;height:35px;padding:0;justify-content:space-between;display:flex;flex-direction:row}.OverlayLanguageOption img{position:absolute;z-index:0;cursor:pointer;top:6px;left:12px}.OverlayLanguageOption a{text-decoration:none;color:black;display:inline-block;width:150px}.OverlayLanguageOption a span{width:100%;display:flex;justify-content:center;margin:4px 0}',this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},Pi,Oi,o,{endpoint:38,lang:1,env:39,clientstyling:0,clientstylingurl:40,translationurl:41,clockenabled:42,clocksecondsenabled:43,clockcustomformat:44,clocktext:45,languageselectorenabled:2,languageslist:46,languagedisplaytype:47,session:48,userid:49,userendpoint:50,panicbuttonenabled:3,sessiontimerenabled:51,grouplink:52,baseurl:4},null,[-1,-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","lang","env","clientstyling","clientstylingurl","translationurl","clockenabled","clocksecondsenabled","clockcustomformat","clocktext","languageselectorenabled","languageslist","languagedisplaytype","session","userid","userendpoint","panicbuttonenabled","sessiontimerenabled","grouplink","baseurl"]}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),N()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),N()}get env(){return this.$$.ctx[39]}set env(e){this.$$set({env:e}),N()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[40]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[41]}set translationurl(e){this.$$set({translationurl:e}),N()}get clockenabled(){return this.$$.ctx[42]}set clockenabled(e){this.$$set({clockenabled:e}),N()}get clocksecondsenabled(){return this.$$.ctx[43]}set clocksecondsenabled(e){this.$$set({clocksecondsenabled:e}),N()}get clockcustomformat(){return this.$$.ctx[44]}set clockcustomformat(e){this.$$set({clockcustomformat:e}),N()}get clocktext(){return this.$$.ctx[45]}set clocktext(e){this.$$set({clocktext:e}),N()}get languageselectorenabled(){return this.$$.ctx[2]}set languageselectorenabled(e){this.$$set({languageselectorenabled:e}),N()}get languageslist(){return this.$$.ctx[46]}set languageslist(e){this.$$set({languageslist:e}),N()}get languagedisplaytype(){return this.$$.ctx[47]}set languagedisplaytype(e){this.$$set({languagedisplaytype:e}),N()}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),N()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),N()}get userendpoint(){return this.$$.ctx[50]}set userendpoint(e){this.$$set({userendpoint:e}),N()}get panicbuttonenabled(){return this.$$.ctx[3]}set panicbuttonenabled(e){this.$$set({panicbuttonenabled:e}),N()}get sessiontimerenabled(){return this.$$.ctx[51]}set sessiontimerenabled(e){this.$$set({sessiontimerenabled:e}),N()}get grouplink(){return this.$$.ctx[52]}set grouplink(e){this.$$set({grouplink:e}),N()}get baseurl(){return this.$$.ctx[4]}set baseurl(e){this.$$set({baseurl:e}),N()}}return!customElements.get("casino-footer-v2")&&customElements.define("casino-footer-v2",Ai),Ai}));
|
1359
1372
|
//# sourceMappingURL=casino-footer-v2.js.map
|