@everymatrix/pam-player-profile-controller 1.87.25 → 1.87.27
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/cjs/index.cjs.js +1 -1
- package/dist/cjs/pam-player-addresses_6.cjs.entry.js +5 -5
- package/dist/cjs/pam-player-profile-controller-fd943b58.js +597 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/pam-player-addresses_6.entry.js +6 -6
- package/dist/esm/pam-player-profile-controller-26029d9e.js +592 -0
- package/dist/pam-player-profile-controller/index.esm.js +1 -1
- package/dist/pam-player-profile-controller/pam-player-addresses_6.entry.js +1 -1
- package/dist/pam-player-profile-controller/pam-player-profile-controller-26029d9e.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/pam-player-profile-controller-cb48c67b.js +0 -538
- package/dist/esm/pam-player-profile-controller-0d279063.js +0 -533
- package/dist/pam-player-profile-controller/pam-player-profile-controller-0d279063.js +0 -1
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-85501c28.js');
|
|
4
|
+
|
|
5
|
+
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name setClientStyling
|
|
9
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
10
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
11
|
+
* @param {string} clientStyling The style content
|
|
12
|
+
*/
|
|
13
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
14
|
+
if (stylingContainer) {
|
|
15
|
+
const sheet = document.createElement('style');
|
|
16
|
+
sheet.innerHTML = clientStyling;
|
|
17
|
+
stylingContainer.appendChild(sheet);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @name setClientStylingURL
|
|
23
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
24
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
25
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
26
|
+
*/
|
|
27
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
28
|
+
if (!stylingContainer || !clientStylingUrl) return;
|
|
29
|
+
|
|
30
|
+
const url = new URL(clientStylingUrl);
|
|
31
|
+
|
|
32
|
+
fetch(url.href)
|
|
33
|
+
.then((res) => res.text())
|
|
34
|
+
.then((data) => {
|
|
35
|
+
const cssFile = document.createElement('style');
|
|
36
|
+
cssFile.innerHTML = data;
|
|
37
|
+
if (stylingContainer) {
|
|
38
|
+
stylingContainer.appendChild(cssFile);
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
.catch((err) => {
|
|
42
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @name setStreamLibrary
|
|
48
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
49
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
50
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
51
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
52
|
+
* @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
|
|
53
|
+
*/
|
|
54
|
+
function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
|
|
55
|
+
if (!window.emMessageBus) return;
|
|
56
|
+
|
|
57
|
+
const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
|
|
58
|
+
|
|
59
|
+
if (!supportAdoptStyle || !useAdoptedStyleSheets) {
|
|
60
|
+
subscription = getStyleTagSubscription(stylingContainer, domain);
|
|
61
|
+
|
|
62
|
+
return subscription;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!window[StyleCacheKey]) {
|
|
66
|
+
window[StyleCacheKey] = {};
|
|
67
|
+
}
|
|
68
|
+
subscription = getAdoptStyleSubscription(stylingContainer, domain);
|
|
69
|
+
|
|
70
|
+
const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
|
|
71
|
+
const wrappedUnsubscribe = () => {
|
|
72
|
+
if (window[StyleCacheKey][domain]) {
|
|
73
|
+
const cachedObject = window[StyleCacheKey][domain];
|
|
74
|
+
cachedObject.refCount > 1
|
|
75
|
+
? (cachedObject.refCount = cachedObject.refCount - 1)
|
|
76
|
+
: delete window[StyleCacheKey][domain];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
originalUnsubscribe();
|
|
80
|
+
};
|
|
81
|
+
subscription.unsubscribe = wrappedUnsubscribe;
|
|
82
|
+
|
|
83
|
+
return subscription;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function getStyleTagSubscription(stylingContainer, domain) {
|
|
87
|
+
const sheet = document.createElement('style');
|
|
88
|
+
|
|
89
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
90
|
+
if (stylingContainer) {
|
|
91
|
+
sheet.innerHTML = data;
|
|
92
|
+
stylingContainer.appendChild(sheet);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
98
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
99
|
+
if (!stylingContainer) return;
|
|
100
|
+
|
|
101
|
+
const shadowRoot = stylingContainer.getRootNode();
|
|
102
|
+
const cacheStyleObject = window[StyleCacheKey];
|
|
103
|
+
let cachedStyle = cacheStyleObject[domain]?.sheet;
|
|
104
|
+
|
|
105
|
+
if (!cachedStyle) {
|
|
106
|
+
cachedStyle = new CSSStyleSheet();
|
|
107
|
+
cachedStyle.replaceSync(data);
|
|
108
|
+
cacheStyleObject[domain] = {
|
|
109
|
+
sheet: cachedStyle,
|
|
110
|
+
refCount: 1
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const currentSheets = shadowRoot.adoptedStyleSheets || [];
|
|
117
|
+
if (!currentSheets.includes(cachedStyle)) {
|
|
118
|
+
shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
124
|
+
const TRANSLATIONS = {
|
|
125
|
+
"en": {
|
|
126
|
+
"title": "Player Profile",
|
|
127
|
+
"saveButton": "Save Changes",
|
|
128
|
+
"successMessage": "Your changes have been saved!",
|
|
129
|
+
"errorMessageProfileUpdate": "An error has occured when attempting to update the profile information",
|
|
130
|
+
"errorMessageAddressesUpdate": "An error has occured when attempting to update the addresses information",
|
|
131
|
+
"errorMessageContactsUpdate": "An error has occured when attempting to update the contacts information",
|
|
132
|
+
"errorMessageDocumentsUpdate": "An error has occured when attempting to update the documents information",
|
|
133
|
+
"errorMessageFetch": "An error has occured when attempting to fetch the profile information"
|
|
134
|
+
},
|
|
135
|
+
"zh-hk": {
|
|
136
|
+
"title": "玩家資料",
|
|
137
|
+
"saveButton": "保存更改",
|
|
138
|
+
"successMessage": "您的更改已保存!",
|
|
139
|
+
"errorMessageProfileUpdate": "嘗試更新個人資料信息時發生錯誤",
|
|
140
|
+
"errorMessageAddressesUpdate": "嘗試更新地址信息時發生錯誤",
|
|
141
|
+
"errorMessageContactsUpdate": "嘗試更新聯絡人信息時發生錯誤",
|
|
142
|
+
"errorMessageDocumentsUpdate": "嘗試更新文件信息時發生錯誤",
|
|
143
|
+
"errorMessageFetch": "在嘗試獲取個人資料時發生錯誤"
|
|
144
|
+
},
|
|
145
|
+
"fr": {
|
|
146
|
+
"title": "Profil du joueur",
|
|
147
|
+
"saveButton": "Enregistrer les modifications",
|
|
148
|
+
"successMessage": "Vos modifications ont été enregistrées !",
|
|
149
|
+
"errorMessageProfileUpdate": "Une erreur s'est produite lors de la tentative de mise à jour des informations de profil",
|
|
150
|
+
"errorMessageAddressesUpdate": "Une erreur s'est produite lors de la tentative de mise à jour des informations d'adresses",
|
|
151
|
+
"errorMessageContactsUpdate": "Une erreur s'est produite lors de la tentative de mise à jour des informations de contact",
|
|
152
|
+
"errorMessageDocumentsUpdate": "Une erreur s'est produite lors de la tentative de mise à jour des informations des documents",
|
|
153
|
+
"errorMessageFetch": "Une erreur est survenue lors de la tentative de récupération des informations de profil"
|
|
154
|
+
},
|
|
155
|
+
"ro": {
|
|
156
|
+
"title": "Profil jucător",
|
|
157
|
+
"saveButton": "Salvează modificările",
|
|
158
|
+
"successMessage": "Modificările dvs. au fost salvate!",
|
|
159
|
+
"errorMessageProfileUpdate": "A apărut o eroare la încercarea de a actualiza informațiile profilului",
|
|
160
|
+
"errorMessageAddressesUpdate": "A apărut o eroare la încercarea de a actualiza informațiile adreselor",
|
|
161
|
+
"errorMessageContactsUpdate": "A apărut o eroare la încercarea de a actualiza informațiile de contact",
|
|
162
|
+
"errorMessageDocumentsUpdate": "A apărut o eroare la încercarea de a actualiza informațiile documentelor",
|
|
163
|
+
"errorMessageFetch": "A apărut o eroare la încercarea de a obține informațiile profilului"
|
|
164
|
+
},
|
|
165
|
+
"tr": {
|
|
166
|
+
"title": "Oyuncu Profili",
|
|
167
|
+
"saveButton": "Değişiklikleri Kaydet",
|
|
168
|
+
"successMessage": "Değişiklikleriniz kaydedildi!",
|
|
169
|
+
"errorMessageProfileUpdate": "Profil bilgilerini güncellemeye çalışırken bir hata oluştu",
|
|
170
|
+
"errorMessageAddressesUpdate": "Adres bilgilerini güncellemeye çalışırken bir hata oluştu",
|
|
171
|
+
"errorMessageContactsUpdate": "Kişi bilgilerini güncellemeye çalışırken bir hata oluştu",
|
|
172
|
+
"errorMessageDocumentsUpdate": "Belgelerin bilgilerini güncellemeye çalışırken bir hata oluştu",
|
|
173
|
+
"errorMessageFetch": "Profil bilgilerini almak için yapılan işlemde bir hata oluştu"
|
|
174
|
+
},
|
|
175
|
+
"es": {
|
|
176
|
+
"title": "Perfil del jugador",
|
|
177
|
+
"saveButton": "Guardar cambios",
|
|
178
|
+
"successMessage": "¡Tus cambios han sido guardados!",
|
|
179
|
+
"errorMessageProfileUpdate": "Se ha producido un error al intentar actualizar la información del perfil",
|
|
180
|
+
"errorMessageAddressesUpdate": "Se ha producido un error al intentar actualizar la información de las direcciones",
|
|
181
|
+
"errorMessageContactsUpdate": "Se ha producido un error al intentar actualizar la información de contactos",
|
|
182
|
+
"errorMessageDocumentsUpdate": "Se ha producido un error al intentar actualizar la información de los documentos",
|
|
183
|
+
"errorMessageFetch": "Se ha producido un error al intentar obtener la información del perfil"
|
|
184
|
+
},
|
|
185
|
+
"pt": {
|
|
186
|
+
"title": "Perfil do Jogador",
|
|
187
|
+
"saveButton": "Salvar alterações",
|
|
188
|
+
"successMessage": "Suas alterações foram salvas!",
|
|
189
|
+
"errorMessageProfileUpdate": "Ocorreu um erro ao tentar atualizar as informações do perfil",
|
|
190
|
+
"errorMessageAddressesUpdate": "Ocorreu um erro ao tentar atualizar as informações dos endereços",
|
|
191
|
+
"errorMessageContactsUpdate": "Ocorreu um erro ao tentar atualizar as informações de contato",
|
|
192
|
+
"errorMessageDocumentsUpdate": "Ocorreu um erro ao tentar atualizar as informações dos documentos",
|
|
193
|
+
"errorMessageFetch": "Ocorreu um erro ao tentar buscar as informações do perfil"
|
|
194
|
+
},
|
|
195
|
+
"hr": {
|
|
196
|
+
"title": "Profil igrača",
|
|
197
|
+
"saveButton": "Spremi promjene",
|
|
198
|
+
"successMessage": "Vaše promjene su spremljene!",
|
|
199
|
+
"errorMessageProfileUpdate": "Došlo je do pogreške prilikom pokušaja ažuriranja informacija o profilu",
|
|
200
|
+
"errorMessageAddressesUpdate": "Došlo je do pogreške prilikom pokušaja ažuriranja informacija o adresama",
|
|
201
|
+
"errorMessageContactsUpdate": "Došlo je do pogreške prilikom pokušaja ažuriranja informacija o kontaktima",
|
|
202
|
+
"errorMessageDocumentsUpdate": "Došlo je do pogreške prilikom pokušaja ažuriranja informacija o dokumentima",
|
|
203
|
+
"errorMessageFetch": "Došlo je do greške prilikom pokušaja dobijanja informacija o profilu"
|
|
204
|
+
},
|
|
205
|
+
"pt-br": {
|
|
206
|
+
"title": "Perfil do Jogador",
|
|
207
|
+
"saveButton": "Salvar alterações",
|
|
208
|
+
"successMessage": "Suas alterações foram salvas!",
|
|
209
|
+
"errorMessageProfileUpdate": "Ocorreu um erro ao tentar atualizar as informações do perfil",
|
|
210
|
+
"errorMessageAddressesUpdate": "Ocorreu um erro ao tentar atualizar as informações dos endereços",
|
|
211
|
+
"errorMessageContactsUpdate": "Ocorreu um erro ao tentar atualizar as informações de contato",
|
|
212
|
+
"errorMessageDocumentsUpdate": "Ocorreu um erro ao tentar atualizar as informações dos documentos",
|
|
213
|
+
"errorMessageFetch": "Ocorreu um erro ao tentar buscar as informações do perfil"
|
|
214
|
+
},
|
|
215
|
+
"es-mx": {
|
|
216
|
+
"title": "Perfil del jugador",
|
|
217
|
+
"saveButton": "Guardar cambios",
|
|
218
|
+
"successMessage": "¡Tus cambios han sido guardados!",
|
|
219
|
+
"errorMessageProfileUpdate": "Se ha producido un error al intentar actualizar la información del perfil",
|
|
220
|
+
"errorMessageAddressesUpdate": "Se ha producido un error al intentar actualizar la información de las direcciones",
|
|
221
|
+
"errorMessageContactsUpdate": "Se ha producido un error al intentar actualizar la información de contactos",
|
|
222
|
+
"errorMessageDocumentsUpdate": "Se ha producido un error al intentar actualizar la información de los documentos",
|
|
223
|
+
"errorMessageFetch": "Se ha producido un error al intentar obtener la información del perfil"
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
const translate = (key, customLang, values) => {
|
|
227
|
+
let lang = TRANSLATIONS[customLang] ? customLang : DEFAULT_LANGUAGE;
|
|
228
|
+
let translation = TRANSLATIONS[lang][key];
|
|
229
|
+
if (values !== undefined) {
|
|
230
|
+
for (const [key, value] of Object.entries(values.values)) {
|
|
231
|
+
const regex = new RegExp(`{${key}}`, 'g');
|
|
232
|
+
translation = translation.replace(regex, value);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return translation;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @name isMobile
|
|
240
|
+
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
241
|
+
* @param {String} userAgent window.navigator.userAgent
|
|
242
|
+
* @returns {Boolean} true or false
|
|
243
|
+
*/
|
|
244
|
+
const isMobile = (userAgent) => {
|
|
245
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
246
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
247
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
248
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
var PlayerConsentsBOZrluYI = {};
|
|
252
|
+
|
|
253
|
+
var GeneralAnimationLoadingBEgo5n3Q = {};
|
|
254
|
+
|
|
255
|
+
(function (exports) {
|
|
256
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=PlayerConsentsBOZrluYI;function f(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function m(e){let t;return {c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(l,r){i.insert(l,t,r),e[4](t);},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null);}}}function y(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n,a;i.onMount(()=>()=>{});function u(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n);});}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`,a);},[n,r,c,d,u]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,y,m,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},f);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush();}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
|
|
257
|
+
}(GeneralAnimationLoadingBEgo5n3Q));
|
|
258
|
+
|
|
259
|
+
var an=Object.defineProperty,sn=Object.defineProperties;var ln=Object.getOwnPropertyDescriptors;var Tt=Object.getOwnPropertySymbols;var cn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable;var Je=(e,t,r)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W=(e,t)=>{for(var r in t||(t={}))cn.call(t,r)&&Je(e,r,t[r]);if(Tt)for(var r of Tt(t))un.call(t,r)&&Je(e,r,t[r]);return e},Qe=(e,t)=>sn(e,ln(t));var U=(e,t,r)=>(Je(e,typeof t!="symbol"?t+"":t,r),r);var re=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c));}catch(l){i(l);}},a=c=>{try{s(r.throw(c));}catch(l){i(l);}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next());});function $(){}function nr(e){return e()}function Mt(){return Object.create(null)}function me(e){e.forEach(nr);}function _t(e){return typeof e=="function"}function Fe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function hn(e){return Object.keys(e).length===0}function ir(e,...t){if(e==null){for(const n of t)n(void 0);return $}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function dn(e,t,r){e.$$.on_destroy.push(ir(t,r));}function x(e,t){e.appendChild(t);}function or(e,t,r){const n=mn(e);if(!n.getElementById(t)){const i=w("style");i.id=t,i.textContent=r,fn(n,i);}}function mn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function fn(e,t){return x(e.head||e,t),t.sheet}function z(e,t,r){e.insertBefore(t,r||null);}function B(e){e.parentNode&&e.parentNode.removeChild(e);}function yt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t);}function w(e){return document.createElement(e)}function ot(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ee(e){return document.createTextNode(e)}function F(){return ee(" ")}function pn(){return ee("")}function Ce(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function k(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r);}function K(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:k(e,t,r);}function gn(e){return Array.from(e.childNodes)}function Me(e,t){t=""+t,e.data!==t&&(e.data=t);}class ar{constructor(t=!1){U(this,"is_svg",!1);U(this,"e");U(this,"n");U(this,"t");U(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,r,n=null){this.e||(this.is_svg?this.e=ot(r.nodeName):this.e=w(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let r=0;r<this.n.length;r+=1)z(this.t,this.n[r],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(B);}}function _n(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0;}),t}let Se;function Ee(e){Se=e;}function yn(){if(!Se)throw new Error("Function called outside component initialization");return Se}function sr(e){yn().$$.on_mount.push(e);}const oe=[],xe=[];let se=[];const Nt=[],vn=Promise.resolve();let at=!1;function bn(){at||(at=!0,vn.then(X));}function st(e){se.push(e);}const Ye=new Set;let ne=0;function X(){if(ne!==0)return;const e=Se;do{try{for(;ne<oe.length;){const t=oe[ne];ne++,Ee(t),kn(t.$$);}}catch(t){throw oe.length=0,ne=0,t}for(Ee(null),oe.length=0,ne=0;xe.length;)xe.pop()();for(let t=0;t<se.length;t+=1){const r=se[t];Ye.has(r)||(Ye.add(r),r());}se.length=0;}while(oe.length);for(;Nt.length;)Nt.pop()();at=!1,Ye.clear(),Ee(e);}function kn(e){if(e.fragment!==null){e.update(),me(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(st);}}function En(e){const t=[],r=[];se.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),se=t;}const Cn=new Set;function Sn(e,t){e&&e.i&&(Cn.delete(e),e.i(t));}function le(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),st(()=>{const o=e.$$.on_mount.map(nr).filter(_t);e.$$.on_destroy?e.$$.on_destroy.push(...o):me(o),e.$$.on_mount=[];}),i.forEach(st);}function wn(e,t){const r=e.$$;r.fragment!==null&&(En(r.after_update),me(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[]);}function Tn(e,t){e.$$.dirty[0]===-1&&(oe.push(e),bn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function vt(e,t,r,n,i,o,a=null,s=[-1]){const c=Se;Ee(e);const l=e.$$={fragment:null,ctx:[],props:o,update:$,not_equal:i,bound:Mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Mt(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let u=!1;if(l.ctx=r?r(e,t.props||{},(d,m,...y)=>{const g=y.length?y[0]:m;return l.ctx&&i(l.ctx[d],l.ctx[d]=g)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](g),u&&Tn(e,d)),m}):[],l.update(),u=!0,me(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const d=gn(t.target);l.fragment&&l.fragment.l(d),d.forEach(B);}else l.fragment&&l.fragment.c();t.intro&&Sn(e.$$.fragment),xn(e,t.target,t.anchor),X();}Ee(c);}let lr;typeof HTMLElement=="function"&&(lr=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"});}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i);}super.addEventListener(t,r,n);}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r));}}connectedCallback(){return re(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return ()=>{let a;return {c:function(){a=w("slot"),o!=="default"&&k(a,"name",o);},m:function(l,u){z(l,a,u);},d:function(l){l&&B(a);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=_n(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=je(a,o.value,this.$$p_d,"toProp"));}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Qe(W({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=je(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a);}this.$$r=!1;};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s);}this.$$l={};}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function je(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bt(e,t,r,n,i,o){let a=class extends lr{constructor(){super(e,r,i),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){var l;c=je(s,c,t),this.$$d[s]=c,(l=this.$$c)==null||l.$set({[s]:c});}});}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var c;return (c=this.$$c)==null?void 0:c[s]}});}),e.element=a,a}class kt{constructor(){U(this,"$$");U(this,"$$set");}$destroy(){wn(this,1),this.$destroy=$;}$on(t,r){if(!_t(r))return $;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1);}}$set(t){this.$$set&&!hn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const Mn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mn);const ae="__WIDGET_GLOBAL_STYLE_CACHE__";function cr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r);}}function ur(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i);}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n);});}function hr(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Nn(e,t),r;window[ae]||(window[ae]={}),r=An(e,t);const o=r.unsubscribe.bind(r),a=()=>{if(window[ae][t]){const s=window[ae][t];s.refCount>1?s.refCount=s.refCount-1:delete window[ae][t];}o();};return r.unsubscribe=a,r}function Nn(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r));})}function An(e,t){return window.emMessageBus.subscribe(t,r=>{var s;if(!e)return;const n=e.getRootNode(),i=window[ae];let o=(s=i[t])==null?void 0:s.sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(o)||(n.adoptedStyleSheets=[...a,o]);})}const ie=[];function Hn(e,t){return {subscribe:$e(e,t).subscribe}}function $e(e,t=$){let r;const n=new Set;function i(s){if(Fe(e,s)&&(e=s,r)){const c=!ie.length;for(const l of n)l[1](),ie.push(l,e);if(c){for(let l=0;l<ie.length;l+=2)ie[l][0](ie[l+1]);ie.length=0;}}}function o(s){i(s(e));}function a(s,c=$){const l=[s,c];return n.add(l),n.size===1&&(r=t(i,o)||$),s(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:a}}function fe(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Hn(r,(a,s)=>{let c=!1;const l=[];let u=0,d=$;const m=()=>{if(u)return;d();const g=t(n?l[0]:l,a,s);o?a(g):d=_t(g)?g:$;},y=i.map((g,f)=>ir(g,S=>{l[f]=S,u&=~(1<<f),c&&m();},()=>{u|=1<<f;}));return c=!0,m(),function(){me(y),d(),c=!1;}})}function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bn=function(t){return On(t)&&!zn(t)};function On(e){return !!e&&typeof e=="object"}function zn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||In(e)}var Ln=typeof Symbol=="function"&&Symbol.for,jn=Ln?Symbol.for("react.element"):60103;function In(e){return e.$$typeof===jn}function Rn(e){return Array.isArray(e)?[]:{}}function we(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ce(Rn(e),e,t):e}function Un(e,t,r){return e.concat(t).map(function(n){return we(n,r)})}function Dn(e,t){if(!t.customMerge)return ce;var r=t.customMerge(e);return typeof r=="function"?r:ce}function Gn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function At(e){return Object.keys(e).concat(Gn(e))}function dr(e,t){try{return t in e}catch(r){return !1}}function Fn(e,t){return dr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $n(e,t,r){var n={};return r.isMergeableObject(e)&&At(e).forEach(function(i){n[i]=we(e[i],r);}),At(t).forEach(function(i){Fn(e,i)||(dr(e,i)&&r.isMergeableObject(t[i])?n[i]=Dn(i,r)(e[i],t[i],r):n[i]=we(t[i],r));}),n}function ce(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Un,r.isMergeableObject=r.isMergeableObject||Bn,r.cloneUnlessOtherwiseSpecified=we;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):$n(e,t,r):we(t,r)}ce.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ce(n,i,r)},{})};var Vn=ce,Xn=Vn;const qn=Pn(Xn);var lt=function(e,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},lt(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lt(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var Z=function(){return Z=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},Z.apply(this,arguments)};function Wn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function et(e,t){var r=t&&t.cache?t.cache:ti,n=t&&t.serializer?t.serializer:Kn,i=t&&t.strategy?t.strategy:Qn;return i(e,{cache:r,serializer:n})}function Zn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Jn(e,t,r,n){var i=Zn(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function mr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function fr(e,t,r,n,i){return r.bind(t,e,n,i)}function Qn(e,t){var r=e.length===1?Jn:mr;return fr(e,this,r,t.cache.create(),t.serializer)}function Yn(e,t){return fr(e,this,mr,t.cache.create(),t.serializer)}var Kn=function(){return JSON.stringify(arguments)},ei=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),ti={create:function(){return new ei}},tt={variadic:Yn},Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},Ue.apply(this,arguments)};var N;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(N||(N={}));var P;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(P||(P={}));var ue;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(ue||(ue={}));function Ht(e){return e.type===P.literal}function ri(e){return e.type===P.argument}function pr(e){return e.type===P.number}function gr(e){return e.type===P.date}function _r(e){return e.type===P.time}function yr(e){return e.type===P.select}function vr(e){return e.type===P.plural}function ni(e){return e.type===P.pound}function br(e){return e.type===P.tag}function kr(e){return !!(e&&typeof e=="object"&&e.type===ue.number)}function ct(e){return !!(e&&typeof e=="object"&&e.type===ue.dateTime)}var Er=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ii=/(?:[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;function oi(e){var t={};return e.replace(ii,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var O=function(){return O=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},O.apply(this,arguments)};var ai=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function si(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ai).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c});}return r}function li(e){return e.replace(/^(.*?)-/,"")}var Pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Cr=/^(@+)?(\+|#+)?[rs]?$/g,ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Sr=/^(0+)$/;function Bt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Cr,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function xr(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 ui(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function Ot(e){var t={},r=xr(e);return r||t}function hi(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];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=li(i.options[0]);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=O(O(O({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return O(O({},c),Ot(l))},{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return O(O({},c),Ot(l))},{}));continue;case"notation-simple":t.notation="standard";continue;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;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ci,function(c,l,u,d,m,y){if(l)t.minimumIntegerDigits=u.length;else {if(d&&m)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Sr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Pt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Pt,function(c,l,u,d,m,y){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&y?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+y.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=O(O({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=O(O({},t),Bt(o)));continue}if(Cr.test(i.stem)){t=O(O({},t),Bt(i.stem));continue}var a=xr(i.stem);a&&(t=O(O({},t),a));var s=ui(i.stem);s&&(t=O(O({},t),s));}return t}var Le={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function di(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),s=o<2?1:3+(o>>1),c="a",l=mi(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r;}else i==="J"?r+="H":r+=i;}return r}function mi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(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")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Le[n||""]||Le[r||""]||Le["".concat(r,"-001")]||Le["001"];return i[0]}var rt,fi=new RegExp("^".concat(Er.source,"*")),pi=new RegExp("".concat(Er.source,"*$"));function A(e,t){return {start:e,end:t}}var gi=!!String.prototype.startsWith&&"_a".startsWith("a",1),_i=!!String.fromCodePoint,yi=!!Object.fromEntries,vi=!!String.prototype.codePointAt,bi=!!String.prototype.trimStart,ki=!!String.prototype.trimEnd,Ei=!!Number.isSafeInteger,Ci=Ei?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ut=!0;try{var Si=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ut=((rt=Si.exec("a"))===null||rt===void 0?void 0:rt[0])==="a";}catch(e){ut=!1;}var zt=gi?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ht=_i?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320);}return n},Lt=yi?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],s=o[1];r[a]=s;}return r},wr=vi?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},xi=bi?function(t){return t.trimStart()}:function(t){return t.replace(fi,"")},wi=ki?function(t){return t.trimEnd()}:function(t){return t.replace(pi,"")};function Tr(e,t){return new RegExp(e,t)}var dt;if(ut){var jt=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dt=function(t,r){var n;jt.lastIndex=r;var i=jt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else dt=function(t,r){for(var n=[];;){var i=wr(t,r);if(i===void 0||Mr(i)||Ai(i))break;n.push(i),r+=i>=65536?2:1;}return ht.apply(void 0,n)};var Ti=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:P.pound,location:A(s,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(N.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&mt(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val);}else {var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:P.literal,value:"<".concat(i,"/>"),location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mt(this.char()))return this.error(N.INVALID_TAG,A(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(N.UNMATCHED_CLOSING_TAG,A(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:A(n,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(N.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(N.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ni(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=A(n,this.clonePosition());return {val:{type:P.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mi(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ht.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ht(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(N.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(N.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=dt(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=A(t,o);return {value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(N.EXPECT_ARGUMENT_TYPE,A(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=wi(d.val);if(m.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var y=A(u,this.clonePosition());l={style:m,styleLocation:y};}var g=this.tryParseArgumentClose(i);if(g.err)return g;var f=A(i,this.clonePosition());if(l&&zt(l==null?void 0:l.style,"::",0)){var S=xi(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(S,l.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:f,style:d.val},err:null}}else {if(S.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,f);var _=S;this.locale&&(_=di(S,this.locale));var m={type:ue.dateTime,pattern:_,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?oi(_):{}},v=s==="date"?P.date:P.time;return {val:{type:v,value:n,location:f,style:m},err:null}}}return {val:{type:s==="number"?P.number:s==="date"?P.date:P.time,value:n,location:f,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,A(C,Ue({},C)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),H=this.parseIdentifierIfPossible(),E=d.val;}var L=this.tryParsePluralOrSelectOptions(t,s,r,H);if(L.err)return L;var g=this.tryParseArgumentClose(i);if(g.err)return g;var J=A(i,this.clonePosition());return s==="select"?{val:{type:P.select,value:n,options:Lt(L.val),location:J},err:null}:{val:{type:P.plural,value:n,options:Lt(L.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:J},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,A(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=si(t);}catch(i){return this.error(N.INVALID_NUMBER_SKELETON,r)}return {val:{type:ue.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hi(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;u=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset());}else break}if(c.has(l))return this.error(r==="select"?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(a=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var f=this.tryParseArgumentClose(y);if(f.err)return f;s.push([l,{value:g.val,location:A(y,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location;}return s.length===0?this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(N.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=A(i,this.clonePosition());return o?(a*=n,Ci(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=wr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Mr(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function mt(e){return e>=97&&e<=122||e>=65&&e<=90}function Mi(e){return mt(e)||e===47}function Ni(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||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}function Mr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ai(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===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>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||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||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===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>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===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>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||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||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ft(e){e.forEach(function(t){if(delete t.location,yr(t)||vr(t))for(var r in t.options)delete t.options[r].location,ft(t.options[r].value);else pr(t)&&kr(t.style)||(gr(t)||_r(t))&&ct(t.style)?delete t.style.location:br(t)&&ft(t.children);});}function Hi(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ti(e,t).parse();if(r.err){var n=SyntaxError(N[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||ft(r.val),r.val}var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(he||(he={}));var Xe=function(e){Ve(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),It=function(e){Ve(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(Xe),Pi=function(e){Ve(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return t}(Xe),Bi=function(e){Ve(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),he.MISSING_VALUE,n)||this}return t}(Xe),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(G||(G={}));function Oi(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==G.literal||r.type!==G.literal?t.push(r):n.value+=r.value,t},[])}function zi(e){return typeof e=="function"}function Ie(e,t,r,n,i,o,a){if(e.length===1&&Ht(e[0]))return [{type:G.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(Ht(u)){s.push({type:G.literal,value:u.value});continue}if(ni(u)){typeof o=="number"&&s.push({type:G.literal,value:r.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new Bi(d,a);var m=i[d];if(ri(u)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?G.literal:G.object,value:m});continue}if(gr(u)){var y=typeof u.style=="string"?n.date[u.style]:ct(u.style)?u.style.parsedOptions:void 0;s.push({type:G.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(_r(u)){var y=typeof u.style=="string"?n.time[u.style]:ct(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:G.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(pr(u)){var y=typeof u.style=="string"?n.number[u.style]:kr(u.style)?u.style.parsedOptions:void 0;y&&y.scale&&(m=m*(y.scale||1)),s.push({type:G.literal,value:r.getNumberFormat(t,y).format(m)});continue}if(br(u)){var g=u.children,f=u.value,S=i[f];if(!zi(S))throw new Pi(f,"function",a);var _=Ie(g,t,r,n,i,o),v=S(_.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(E){return {type:typeof E=="string"?G.literal:G.object,value:E}}));}if(yr(u)){var C=u.options[m]||u.options.other;if(!C)throw new It(u.value,m,Object.keys(u.options),a);s.push.apply(s,Ie(C.value,t,r,n,i));continue}if(vr(u)){var C=u.options["=".concat(m)];if(!C){if(!Intl.PluralRules)throw new Xe(`Intl.PluralRules is not available in this environment.
|
|
260
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
261
|
+
`,he.MISSING_INTL_API,a);var H=r.getPluralRules(t,{type:u.pluralType}).select(m-(u.offset||0));C=u.options[H]||u.options.other;}if(!C)throw new It(u.value,m,Object.keys(u.options),a);s.push.apply(s,Ie(C.value,t,r,n,i,m-(u.offset||0)));continue}}return Oi(s)}function Li(e,t){return t?Z(Z(Z({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Z(Z({},e[n]),t[n]||{}),r},{})):e}function ji(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Li(e[n],t[n]),r},Z({},e)):e}function nt(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function Ii(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.number),strategy:tt.variadic}),getDateTimeFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.dateTime),strategy:tt.variadic}),getPluralRules:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.pluralRules),strategy:tt.variadic})}}var Ri=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,m){return !d.length||m.type!==G.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Ie(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return {locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};var s=Wn(a,["formatters"]);this.ast=e.__parse(t,Z(Z({},s),{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.");this.formats=ji(e.formats,n),this.formatters=i&&i.formatters||Ii(this.formatterCache);}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(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Hi,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}();function Ui(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const Y={},Di=(e,t,r)=>r&&(t in Y||(Y[t]={}),e in Y[t]||(Y[t][e]=r),r),Nr=(e,t)=>{if(t==null)return;if(t in Y&&e in Y[t])return Y[t][e];const r=qe(t);for(let n=0;n<r.length;n++){const i=r[n],o=Fi(i,e);if(o)return Di(e,t,o)}};let Et;const Ne=$e({});function Gi(e){return Et[e]||null}function Ar(e){return e in Et}function Fi(e,t){if(!Ar(e))return null;const r=Gi(e);return Ui(r,t)}function $i(e){if(e==null)return;const t=qe(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ar(n))return n}}function Hr(e,...t){delete Y[e],Ne.update(r=>(r[e]=qn.all([r[e]||{},...t]),r));}fe([Ne],([e])=>Object.keys(e));Ne.subscribe(e=>Et=e);const Re={};function Vi(e,t){Re[e].delete(t),Re[e].size===0&&delete Re[e];}function Pr(e){return Re[e]}function Xi(e){return qe(e).map(t=>{const r=Pr(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function pt(e){return e==null?!1:qe(e).some(t=>{var r;return (r=Pr(t))==null?void 0:r.size})}function qi(e,t){return Promise.all(t.map(n=>(Vi(e,n),n().then(i=>i.default||i)))).then(n=>Hr(e,...n))}const ke={};function Br(e){if(!pt(e))return e in ke?ke[e]:Promise.resolve();const t=Xi(e);return ke[e]=Promise.all(t.map(([r,n])=>qi(r,n))).then(()=>{if(pt(e))return Br(e);delete ke[e];}),ke[e]}const Wi={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"}}},Zi={fallbackLocale:null,loadingDelay:200,formats:Wi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ji=Zi;function de(){return Ji}const it=$e(!1);var Qi=Object.defineProperty,Yi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,Ut=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t)=>{for(var r in t||(t={}))eo.call(t,r)&&Ut(e,r,t[r]);if(Rt)for(var r of Rt(t))to.call(t,r)&&Ut(e,r,t[r]);return e},no=(e,t)=>Yi(e,Ki(t));let gt;const De=$e(null);function Dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function qe(e,t=de().fallbackLocale){const r=Dt(e);return t?[...new Set([...r,...Dt(t)])]:r}function te(){return gt!=null?gt:void 0}De.subscribe(e=>{gt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const io=e=>{if(e&&$i(e)&&pt(e)){const{loadingDelay:t}=de();let r;return typeof window!="undefined"&&te()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),Br(e).then(()=>{De.set(e);}).finally(()=>{clearTimeout(r),it.set(!1);})}return De.set(e)},pe=no(ro({},De),{set:io}),We=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var oo=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Gt=(e,t,r)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Gt(e,r,t[r]);if(Ge)for(var r of Ge(t))zr.call(t,r)&&Gt(e,r,t[r]);return e},ge=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ge)for(var n of Ge(e))t.indexOf(n)<0&&zr.call(e,n)&&(r[n]=e[n]);return r};const Te=(e,t)=>{const{formats:r}=de();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ao=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Te("number",n)),new Intl.NumberFormat(r,i)}),so=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Te("date",n):Object.keys(i).length===0&&(i=Te("date","short")),new Intl.DateTimeFormat(r,i)}),lo=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Te("time",n):Object.keys(i).length===0&&(i=Te("time","short")),new Intl.DateTimeFormat(r,i)}),co=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return ao(Ct({locale:r},n))},uo=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return so(Ct({locale:r},n))},ho=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return lo(Ct({locale:r},n))},mo=We((e,t=te())=>new Ri(e,t,de().formats,{ignoreTag:de().ignoreTag})),fo=(e,t={})=>{var r,n,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:s,locale:c=te(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Nr(e,c);if(!u)u=(o=(i=(n=(r=de()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!s)return u;let d=u;try{d=mo(u,c).format(s);}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message);}return d},po=(e,t)=>ho(t).format(e),go=(e,t)=>uo(t).format(e),_o=(e,t)=>co(t).format(e),yo=(e,t=te())=>Nr(e,t),vo=fe([pe,Ne],()=>fo);fe([pe],()=>po);fe([pe],()=>go);fe([pe],()=>_o);fe([pe,Ne],()=>yo);function Ft(e,t){Hr(e,t);}function bo(e){pe.set(e);}const $t={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingBEgo5n3Q).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ko(e){let t,r;return {c(){t=ot("svg"),r=ot("path"),k(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),k(t,"xmlns","http://www.w3.org/2000/svg"),k(t,"viewBox","0 0 512 512");},m(n,i){z(n,t,i),x(t,r);},p:$,i:$,o:$,d(n){n&&B(t);}}}class Eo extends kt{constructor(t){super(),vt(this,t,null,ko,Fe,{});}}customElements.define("circle-exclamation-icon",bt(Eo,{},[],[],!0));function Co(e){or(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function Vt(e,t,r){const n=e.slice();return n[64]=t[r],n}function Xt(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function qt(e,t,r){const n=e.slice();return n[64]=t[r],n}function So(e){let t,r,n=le(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Wt(Vt(e,n,o));return {c(){t=w("div"),r=w("form");for(let o=0;o<i.length;o+=1)i[o].c();k(r,"class","checkbox svelte-etk3ty"),k(t,"class","legacyStyle");},m(o,a){z(o,t,a),x(t,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(r,null);e[31](r);},p(o,a){if(a[0]&590336){n=le(o[9]);let s;for(s=0;s<n.length;s+=1){const c=Vt(o,n,s);i[s]?i[s].p(c,a):(i[s]=Wt(c),i[s].c(),i[s].m(r,null));}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length;}},d(o){o&&B(t),yt(i,o),e[31](null);}}}function xo(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",a,s,c,l,u,d=t&&Zt(e),m=le(e[8]),y=[];for(let f=0;f<m.length;f+=1)y[f]=tr(Xt(e,m,f));let g=e[6]&&rr(e);return {c(){d&&d.c(),r=F();for(let f=0;f<y.length;f+=1)y[f].c();n=F(),i=w("button"),s=F(),g&&g.c(),c=pn(),k(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=a=!e[14];},m(f,S){d&&d.m(f,S),z(f,r,S);for(let _=0;_<y.length;_+=1)y[_]&&y[_].m(f,S);z(f,n,S),z(f,i,S),i.innerHTML=o,z(f,s,S),g&&g.m(f,S),z(f,c,S),l||(u=Ce(i,"click",e[17]),l=!0);},p(f,S){if(S[0]&65536&&(t=f[16]("title")||f[16]("description")),t?d?d.p(f,S):(d=Zt(f),d.c(),d.m(r.parentNode,r)):d&&(d.d(1),d=null),S[0]&867088){m=le(f[8]);let _;for(_=0;_<m.length;_+=1){const v=Xt(f,m,_);y[_]?y[_].p(v,S):(y[_]=tr(v),y[_].c(),y[_].m(n.parentNode,n));}for(;_<y.length;_+=1)y[_].d(1);y.length=m.length;}S[0]&65536&&o!==(o=(f[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),S[0]&16384&&a!==(a=!f[14])&&(i.disabled=a),f[6]?g?g.p(f,S):(g=rr(f),g.c(),g.m(c.parentNode,c)):g&&(g.d(1),g=null);},d(f){f&&(B(r),B(n),B(i),B(s),B(c)),d&&d.d(f),yt(y,f),g&&g.d(f),l=!1,u();}}}function wo(e){let t,r,n;return {c(){t=w("div"),r=w("strong"),n=ee(e[7]),k(r,"class","ErrorMessage svelte-etk3ty"),k(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){z(i,t,o),x(t,r),x(r,n);},p(i,o){o[0]&128&&Me(n,i[7]);},d(i){i&&B(t);}}}function To(e){let t;return {c(){t=w("general-animation-loading"),K(t,"clientstyling",e[1]),K(t,"clientstylingurl",e[2]),K(t,"mbsource",e[3]);},m(r,n){z(r,t,n);},p(r,n){n[0]&2&&K(t,"clientstyling",r[1]),n[0]&4&&K(t,"clientstylingurl",r[2]),n[0]&8&&K(t,"mbsource",r[3]);},d(r){r&&B(t);}}}function Wt(e){let t,r,n,i,o,a,s,c,l=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",u=e[64].mustAccept?" *":"",d,m,y,g,f,S,_,v,C;function H(...E){return e[30](e[64],...E)}return {c(){t=w("div"),r=w("input"),o=F(),a=w("label"),s=w("div"),c=new ar(!1),d=ee(u),y=F(),g=w("small"),S=F(),k(r,"class","checkbox__input svelte-etk3ty"),k(r,"type","checkbox"),r.checked=n=e[64].status==="1",k(r,"id",i=`${e[64].tagCode}__input`),c.a=d,k(s,"class","checkbox__label-text svelte-etk3ty"),k(a,"class","checkbox__label svelte-etk3ty"),k(a,"for",m=`${e[64].tagCode}__input`),k(g,"class","checkbox__error-message svelte-etk3ty"),k(g,"id",f="checkBoxError__"+e[64].tagCode),k(t,"class",_="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,L){z(E,t,L),x(t,r),x(t,o),x(t,a),x(a,s),c.m(l,s),x(s,d),x(t,y),x(t,g),x(t,S),v||(C=Ce(r,"input",H),v=!0);},p(E,L){e=E,L[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),L[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&k(r,"id",i),L[0]&66048&&l!==(l=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&c.p(l),L[0]&512&&u!==(u=e[64].mustAccept?" *":"")&&Me(d,u),L[0]&512&&m!==(m=`${e[64].tagCode}__input`)&&k(a,"for",m),L[0]&512&&f!==(f="checkBoxError__"+e[64].tagCode)&&k(g,"id",f),L[0]&512&&_!==(_="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&k(t,"class",_);},d(E){E&&B(t),v=!1,C();}}}function Zt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&Jt(e),a=i&&Qt(e);return {c(){t=w("div"),o&&o.c(),n=F(),a&&a.c(),k(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(s,c){z(s,t,c),o&&o.m(t,null),x(t,n),a&&a.m(t,null);},p(s,c){c[0]&65536&&(r=s[16]("title")),r?o?o.p(s,c):(o=Jt(s),o.c(),o.m(t,n)):o&&(o.d(1),o=null),c[0]&65536&&(i=s[16]("description")),i?a?a.p(s,c):(a=Qt(s),a.c(),a.m(t,null)):a&&(a.d(1),a=null);},d(s){s&&B(t),o&&o.d(),a&&a.d();}}}function Jt(e){let t,r=e[16]("title")+"",n;return {c(){t=w("h2"),n=ee(r),k(t,"class","PlayerConsentsTitle");},m(i,o){z(i,t,o),x(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&Me(n,r);},d(i){i&&B(t);}}}function Qt(e){let t,r=e[16]("description")+"",n;return {c(){t=w("p"),n=ee(r),k(t,"class","PlayerConsentsDescription");},m(i,o){z(i,t,o),x(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&Me(n,r);},d(i){i&&B(t);}}}function Yt(e){let t;return {c(){t=w("sup"),t.textContent="*",k(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){z(r,t,n);},d(r){r&&B(t);}}}function Kt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=w("p"),k(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){z(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&B(t);}}}function er(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",a,s,c,l,u,d,m,y,g,f,S,_=e[64].mustAccept===!0&&Yt(),v=e[4]==="true"&&Kt(e);function C(...H){return e[29](e[64],...H)}return {c(){t=w("div"),r=w("div"),n=w("h4"),i=new ar(!1),a=F(),_&&_.c(),s=F(),v&&v.c(),c=F(),l=w("label"),u=w("input"),y=F(),g=w("span"),i.a=a,k(n,"class","ConsentName svelte-etk3ty"),k(r,"class","ConsentContent"),k(u,"type","checkbox"),u.disabled=d=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,u.checked=m=e[13][e[64].tagCode],k(u,"class","svelte-etk3ty"),k(g,"class","Slider Round svelte-etk3ty"),k(l,"class","ToggleSwitch svelte-etk3ty"),k(t,"class","ConsentItem svelte-etk3ty");},m(H,E){z(H,t,E),x(t,r),x(r,n),i.m(o,n),x(n,a),_&&_.m(n,null),x(r,s),v&&v.m(r,null),x(t,c),x(t,l),x(l,u),x(l,y),x(l,g),f||(S=Ce(u,"input",C),f=!0);},p(H,E){e=H,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?_||(_=Yt(),_.c(),_.m(n,null)):_&&(_.d(1),_=null),e[4]==="true"?v?v.p(e,E):(v=Kt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&d!==(d=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(u.disabled=d),E[0]&8960&&m!==(m=e[13][e[64].tagCode])&&(u.checked=m);},d(H){H&&B(t),_&&_.d(),v&&v.d(),f=!1,S();}}}function tr(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,a,s,c,l,u,d,m,y;function g(){e[26].call(s,e[61]);}function f(){return e[27](e[61])}function S(...C){return e[28](e[61],...C)}let _=le(e[9].filter(S)),v=[];for(let C=0;C<_.length;C+=1)v[C]=er(qt(e,_,C));return {c(){t=w("div"),r=w("div"),n=w("h3"),o=F(),a=w("label"),s=w("input"),c=F(),l=w("span"),u=F(),d=w("div");for(let C=0;C<v.length;C+=1)v[C].c();k(s,"type","checkbox"),k(s,"class","svelte-etk3ty"),k(l,"class","Slider Round svelte-etk3ty"),k(a,"class","ToggleSwitch Big svelte-etk3ty"),k(r,"class","AccordionHeader svelte-etk3ty"),k(d,"class","AccordionContent svelte-etk3ty"),k(t,"class","AccordionItem svelte-etk3ty");},m(C,H){z(C,t,H),x(t,r),x(r,n),n.innerHTML=i,x(r,o),x(r,a),x(a,s),s.checked=e[11][e[61].categoryTagCode],x(a,c),x(a,l),x(t,u),x(t,d);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(d,null);m||(y=[Ce(s,"change",g),Ce(s,"change",f)],m=!0);},p(C,H){if(e=C,H[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),H[0]&2304&&(s.checked=e[11][e[61].categoryTagCode]),H[0]&602896){_=le(e[9].filter(S));let E;for(E=0;E<_.length;E+=1){const L=qt(e,_,E);v[E]?v[E].p(L,H):(v[E]=er(L),v[E].c(),v[E].m(d,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=_.length;}},d(C){C&&B(t),yt(v,C),m=!1,me(y);}}}function rr(e){let t,r,n,i,o;return {c(){t=w("div"),r=w("circle-exclamation-icon"),n=F(),i=w("strong"),o=ee(e[6]),K(r,"class","svelte-etk3ty"),k(i,"class","ErrorMessage svelte-etk3ty"),k(t,"class","ConsentErrorContainer svelte-etk3ty");},m(a,s){z(a,t,s),x(t,r),x(t,n),x(t,i),x(i,o);},p(a,s){s[0]&64&&Me(o,a[6]);},d(a){a&&B(t);}}}function Mo(e){let t,r;function n(a,s){if(a[10])return To;if(a[7])return wo;if(a[0])return xo;if(!a[0])return So}let i=n(e),o=i&&i(e);return {c(){t=w("div"),r=w("div"),o&&o.c(),k(r,"class","ConsentsContainer svelte-etk3ty"),k(t,"class",""+" svelte-etk3ty");},m(a,s){z(a,t,s),x(t,r),o&&o.m(r,null),e[32](r);},p(a,s){i===(i=n(a))&&o?o.p(a,s):(o&&o.d(1),o=i&&i(a),o&&(o.c(),o.m(r,null)));},i:$,o:$,d(a){a&&B(t),o&&o.d(),e[32](null);}}}function No(e,t,r){let n;dn(e,vo,h=>r(16,n=h));let{session:i=""}=t,{userid:o=""}=t,{endpoint:a=""}=t,{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:l}=t,{lang:u="en"}=t,{displayconsentdescription:d=""}=t,{translationurl:m=""}=t,{modalconsents:y="false"}=t,g,f,S=!1,_=!1,v="",C="",H="",E="",L=[],J=[],j=[],_e=!0,Ae=!0,V={},He={},Q={},D={},ye,Pe,R={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},Be=!1;Object.keys($t).forEach(h=>{Ft(h,$t[h]);});const jr=()=>{bo(u);},Ir=()=>{let h=new URL(m);fetch(h.href).then(p=>p.json()).then(p=>{Object.keys(p).forEach(M=>{Ft(M,p[M]);});}).catch(p=>{console.log(p);});},Rr=()=>{i&&(v=i,_=!0),o&&(C=o);},Oe=(h,p=!1)=>{p?r(7,E=h):(Vr(),r(6,H=h));},ve=(h,p,M,b=!1)=>re(this,null,function*(){try{const T=yield fetch(h,M);if(!T.ok)throw new Error(n(p));const I=yield T.json();return _?I:I.filter(q=>q.showOnRegister===!0)}catch(T){throw Oe(T instanceof TypeError?n(p):T.message,b),T}}),Ur=()=>re(this,null,function*(){try{let h=[],p=[];if(_?[h,p]=yield St():h=yield St(),r(10,_e=!1),J=[...h],r(8,L=Gr(J).sort((M,b)=>M.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,V=Fr(L)),He=W({},V),r(9,j=[...p]),J.forEach(M=>{let b=j.find(T=>T.tagCode===M.tagCode);b||(b=Qe(W({},M),{status:R.denied.value}),j.push(b)),b.description=M.description,b.orderNumber=M.orderNumber;}),y==="true"){if(r(9,j=j.filter(M=>M.status===R.expired.value)),j.length!==0)return;Oe(n("wrongModalConfig"),!0);}$r();}catch(h){throw r(10,_e=!1),Oe(h instanceof TypeError?n("invalidUrl"):h.message,!0),h}}),St=()=>re(this,null,function*(){const h=new URL(`${a}/api/v1/gm/consents`);if(h.searchParams.append("Status","Active"),!_)return yield ve(h.href,"fetchConsentsError",{method:"GET"},!0);const p=new URL(`${a}/api/v1/gm/user-consents/${C}`);return yield Promise.all([ve(h.href,"fetchConsentsError",{method:"GET"},!0),ve(p.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":v,"Content-Type":"application/json"}})])}),Dr=()=>{Be=!1;const h=new URL(`${a}/api/v2/gm/legislation/consents`),p={"Content-Type":"application/json",Accept:"application/json"},M={method:"GET",headers:p};fetch(h.href,M).then(b=>b.ok?b.json():(Be=!0,b.json().then(T=>(console.error(T),ze(T))))).then(b=>{if(!Be){if(J=b,localStorage.getItem("playerConsents")){try{r(9,j=JSON.parse(localStorage.getItem("playerConsents")));}catch(T){return console.error(T),ze(T)}return}return r(9,j=J.map(T=>({id:T.id,status:R.denied.key,friendlyName:T.friendlyName,tagCode:T.tagCode,selected:null,mustAccept:T.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(j)),j}}).catch(b=>(console.error(b),ze(b))).finally(()=>{r(10,_e=!1);});},Gr=h=>{const p=new Map;return h.forEach(M=>{p.has(M.category.categoryTagCode)||p.set(M.category.categoryTagCode,M.category);}),Array.from(p.values())},Fr=h=>{const p=localStorage.getItem("categoryToggle"+C);if(p===null){const M=h.reduce((b,T)=>(b[T.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(M)),M}else return JSON.parse(p)},$r=()=>{j.forEach(h=>{r(12,Q[h.tagCode]=h.status===R.accepted.value,Q);}),r(13,D=W({},Q));},Vr=()=>{r(13,D=W({},Q)),r(11,V=W({},He));},Xr=()=>re(this,null,function*(){if(!Ae)return;Ae=!1;const h=[],p=[];if(Object.keys(D).forEach(b=>{const T=j.find(I=>I.tagCode===b);D[b]!==Q[b]&&(T?h.push({tagCode:b,status:D[b]?R.accepted.value:R.denied.value}):p.push({tagCode:b,status:D[b]?R.accepted.value:R.denied.value}));}),!_){localStorage.setItem("categoryToggle"+C,JSON.stringify(V)),He=W({},V),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(p)},window.location.href),Ae=!0;return}const M=new URL(`${a}/api/v1/gm/user-consents/${C}`);try{const b=yield Promise.allSettled([p.length>0&&ve(M.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:p})}),h.length>0&&ve(M.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:h})})]);b.forEach((T,I)=>{if(T.status==="rejected"||T.value.ok===!1){const q=I<p.length?p[I]:h[I-p.length];r(13,D[q.tagCode]=Q[q.tagCode],D);}}),b.every(T=>T.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+C,JSON.stringify(V)),He=W({},V),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,Q=W({},D)));}catch(b){Oe(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{Ae=!0,r(14,ye=!1);}}),qr=h=>{const p=new URL(`${a}/api/v2/gm/legislation/consents`),M={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:j,registrationId:h},T={method:"POST",body:JSON.stringify(b),headers:M};fetch(p.href,T).then(I=>{I.ok||(Be=!0);}).catch(I=>(console.error(I),ze(I))).finally(()=>{r(10,_e=!1);});},xt=h=>{j.filter(p=>p.category.categoryTagCode===h).forEach(p=>{p.status=p.status===R.denied.value?R.accepted.value:R.denied.value,r(13,D[p.tagCode]=V[h]||!1,D);}),r(14,ye=wt());},Ze=(h,p,M)=>{const b=j.find(q=>q.id===M),T=p?"value":"key";let I;if(!p&&b.mustAccept){const q=Array.from(Pe.children);for(const be of q)if(I=Array.from(be.children).find(on=>on.getAttribute("id")===`checkBoxError__${b.tagCode}`),I)break}if(b.status===R.accepted[T]?(b.status=R.denied[T],I&&(I.innerHTML=n("requiredError"))):(b.status=R.accepted[T],I&&(I.innerHTML="")),p){r(13,D[b.tagCode]=!D[b.tagCode],D);const q=j.filter(be=>be.category.categoryTagCode===p.categoryTagCode).every(be=>be.status!==R.denied.value);r(11,V[p.categoryTagCode]=q,V);}Wr();},Wr=((h,p)=>{let M;return function(...b){const T=this;clearTimeout(M),M=setTimeout(()=>{h.apply(T,b);},p);}})(()=>Zr(),500),Zr=()=>{r(14,ye=wt()),i||(window.postMessage({type:"isConsentsValid",isValid:ye}),localStorage.setItem("playerConsents",JSON.stringify(j)));},wt=()=>j.filter(p=>j.some(M=>p.tagCode===M.tagCode&&M.mustAccept&&(p.status===R.denied.key||p.status===R.denied.value))).length===0,ze=h=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:h}},window.location.href);},Jr=h=>{h.data&&h.data.type!=="setUpPlayerConsents"||qr(h.data.registerid);};sr(()=>{setTimeout(()=>{r(25,S=!0);},50);const h=p=>Jr(p);return window.addEventListener("message",h),()=>{window.removeEventListener("message",h);}});function Qr(h){V[h.categoryTagCode]=this.checked,r(11,V);}const Yr=h=>xt(h.categoryTagCode),Kr=(h,p)=>p.category.categoryTagCode===h.categoryTagCode,en=(h,p)=>Ze(p,h.category,h.id),tn=(h,p)=>Ze(p,null,h.id);function rn(h){xe[h?"unshift":"push"](()=>{Pe=h,r(15,Pe);});}function nn(h){xe[h?"unshift":"push"](()=>{g=h,r(5,g);});}return e.$$set=h=>{"session"in h&&r(0,i=h.session),"userid"in h&&r(20,o=h.userid),"endpoint"in h&&r(21,a=h.endpoint),"clientstyling"in h&&r(1,s=h.clientstyling),"clientstylingurl"in h&&r(2,c=h.clientstylingurl),"mbsource"in h&&r(3,l=h.mbsource),"lang"in h&&r(22,u=h.lang),"displayconsentdescription"in h&&r(4,d=h.displayconsentdescription),"translationurl"in h&&r(23,m=h.translationurl),"modalconsents"in h&&r(24,y=h.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&S&&i&&(Rr(),Ur()),e.$$.dirty[0]&1&&(i||Dr()),e.$$.dirty[0]&34&&s&&g&&cr(g,s),e.$$.dirty[0]&36&&c&&g&&ur(g,c),e.$$.dirty[0]&40&&g&&hr(g,`${l}.Style`,f),e.$$.dirty[0]&4194304&&u&&jr(),e.$$.dirty[0]&8388608&&m&&Ir();},[i,s,c,l,d,g,H,E,L,j,_e,V,Q,D,ye,Pe,n,Xr,xt,Ze,o,a,u,m,y,S,Qr,Yr,Kr,en,tn,rn,nn]}class Lr extends kt{constructor(t){super(),vt(this,t,No,Mo,Fe,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},Co,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),X();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),X();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),X();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),X();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),X();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),X();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),X();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),X();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),X();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),X();}}bt(Lr,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);const Ao=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"}));PlayerConsentsBOZrluYI.PlayerConsents_ce=Ao;PlayerConsentsBOZrluYI.SvelteComponent=kt;PlayerConsentsBOZrluYI.append_styles=or;PlayerConsentsBOZrluYI.binding_callbacks=xe;PlayerConsentsBOZrluYI.create_custom_element=bt;PlayerConsentsBOZrluYI.detach=B;PlayerConsentsBOZrluYI.element=w;PlayerConsentsBOZrluYI.flush=X;PlayerConsentsBOZrluYI.init=vt;PlayerConsentsBOZrluYI.insert=z;PlayerConsentsBOZrluYI.noop=$;PlayerConsentsBOZrluYI.onMount=sr;PlayerConsentsBOZrluYI.safe_not_equal=Fe;PlayerConsentsBOZrluYI.setClientStyling=cr;PlayerConsentsBOZrluYI.setClientStylingURL=ur;PlayerConsentsBOZrluYI.setStreamStyling=hr;
|
|
262
|
+
|
|
263
|
+
if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsBOZrluYI).then(e=>e.PlayerConsents_ce).then(({default:e})=>{!customElements.get("player-consents")&&customElements.define("player-consents",e.element);});}
|
|
264
|
+
|
|
265
|
+
const pamPlayerProfileControllerCss = ":host{display:block}button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.errorContainer{font-family:\"Roboto\";font-style:normal;font-family:sans-serif;display:flex;flex-direction:column;gap:24px;width:100%;height:100%}.errorContainer .errorMessage{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:var(--emw-font-size-small, 13px);display:block;justify-content:center;text-align:center}.PlayerProfileControllerWrapper{color:var(--emw--pam-typography, var(--emw-color-contrast, #07072A));background:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;display:flex;flex-direction:column;gap:20px;border-radius:var(--emw--border-radius-large, 10px)}.PlayerProfileControllerWrapper h2{font-size:var(--emw--font-size-x-large, 24px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper .ConsentsWrapper{background:var(--emw-color-pale, var(--emw--color-gray-100, #E6E6E6));border-radius:var(--emw--border-radius-large, 10px);padding:50px;margin-top:15px}.PlayerProfileControllerWrapper .ButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton{display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);font-size:var(--emw--size-standard, 16px);text-transform:uppercase;transition-duration:var(--emw--transition-medium, 250ms);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton.Disabled{opacity:0.3;cursor:not-allowed}.PlayerProfileControllerWrapper.Mobile{padding:20px 15px;background:var(--emw-color-gray-50, #F9F8F8);max-width:unset;border-radius:var(--emw--border-radius-small, 5px)}.PlayerProfileControllerWrapper.Mobile .ReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerProfileControllerWrapper.Mobile .ReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper.Mobile h2{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper.Mobile .ButtonsArea{grid-column-gap:10px;width:100%;grid-template-columns:1fr 1fr}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw-button-typography, var(--emw-color-white, #FFFFFF))}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton.Disabled{color:var(--emw-color-gray-300, #58586B)}";
|
|
266
|
+
const PamPlayerProfileControllerStyle0 = pamPlayerProfileControllerCss;
|
|
267
|
+
|
|
268
|
+
const PlayerProfileController = class {
|
|
269
|
+
constructor(hostRef) {
|
|
270
|
+
index.registerInstance(this, hostRef);
|
|
271
|
+
this.data = {};
|
|
272
|
+
this.validStatus = {};
|
|
273
|
+
this.numUpdateDataReceived = 0;
|
|
274
|
+
this.numUpdateDataExpected = 0;
|
|
275
|
+
this.numUpdateDataSuccessful = 0;
|
|
276
|
+
this.sectionsToUpdate = [];
|
|
277
|
+
this.updateFunctionMap = {
|
|
278
|
+
'PROFILE': this.updateDataProfile.bind(this),
|
|
279
|
+
'ADDRESSES': this.updateDataAddresses.bind(this),
|
|
280
|
+
'DOCUMENTS': this.updateDataDocuments.bind(this),
|
|
281
|
+
'CONTACTS': this.updateDataContacts.bind(this)
|
|
282
|
+
};
|
|
283
|
+
this.sendSuccessNotification = () => {
|
|
284
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.lang) } }, window.location.href);
|
|
285
|
+
};
|
|
286
|
+
this.sendErrorNotification = (errorKey) => {
|
|
287
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: translate(errorKey, this.lang) } }, window.location.href);
|
|
288
|
+
};
|
|
289
|
+
this.sendData = (section) => {
|
|
290
|
+
let data = {};
|
|
291
|
+
switch (section) {
|
|
292
|
+
case 'PROFILE':
|
|
293
|
+
data = this.data;
|
|
294
|
+
break;
|
|
295
|
+
case 'ADDRESSES':
|
|
296
|
+
data['addresses'] = this.data.addresses;
|
|
297
|
+
break;
|
|
298
|
+
case 'CONTACTS':
|
|
299
|
+
data['contacts'] = this.data.contacts;
|
|
300
|
+
break;
|
|
301
|
+
case 'DOCUMENTS':
|
|
302
|
+
data['documents'] = this.data.documents;
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
window.postMessage({ type: `${section}_DATA`, data: data });
|
|
306
|
+
};
|
|
307
|
+
this.messageHandler = (message) => {
|
|
308
|
+
var _a, _b, _c;
|
|
309
|
+
let section = (_a = message.data) === null || _a === void 0 ? void 0 : _a.type.split('_')[0];
|
|
310
|
+
switch ((_b = message.data) === null || _b === void 0 ? void 0 : _b.type) {
|
|
311
|
+
case 'PROFILE_LOADED':
|
|
312
|
+
case 'ADDRESSES_LOADED':
|
|
313
|
+
case 'CONTACTS_LOADED':
|
|
314
|
+
case 'DOCUMENTS_LOADED':
|
|
315
|
+
this.sendData(section);
|
|
316
|
+
break;
|
|
317
|
+
case 'PROFILE_VALIDITY':
|
|
318
|
+
case 'ADDRESSES_VALIDITY':
|
|
319
|
+
case 'CONTACTS_VALIDITY':
|
|
320
|
+
case 'DOCUMENTS_VALIDITY':
|
|
321
|
+
this.validStatus[section] = message.data.data;
|
|
322
|
+
this.updateSubmitButtonStatus();
|
|
323
|
+
break;
|
|
324
|
+
case 'PROFILE_UPDATE_DATA':
|
|
325
|
+
case 'ADDRESSES_UPDATE_DATA':
|
|
326
|
+
case 'CONTACTS_UPDATE_DATA':
|
|
327
|
+
case 'DOCUMENTS_UPDATE_DATA':
|
|
328
|
+
const sectionToUpdate = (_c = message.data) === null || _c === void 0 ? void 0 : _c.type.split('_')[0];
|
|
329
|
+
this.sectionsToUpdate.push(sectionToUpdate);
|
|
330
|
+
this.numUpdateDataReceived += 1;
|
|
331
|
+
// update this.data with the data received
|
|
332
|
+
for (const key of Object.keys(message.data.data)) {
|
|
333
|
+
this.data[key] = message.data.data[key];
|
|
334
|
+
}
|
|
335
|
+
// check if all subwidgets have sent their update data before making the update calls
|
|
336
|
+
if (this.numUpdateDataReceived === this.numUpdateDataExpected) {
|
|
337
|
+
this.updateDataRecursive(0);
|
|
338
|
+
}
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
this.updateDataRecursive = (idx) => {
|
|
343
|
+
const section = this.sectionsToUpdate[idx];
|
|
344
|
+
if (idx >= this.sectionsToUpdate.length) {
|
|
345
|
+
if (this.numUpdateDataSuccessful === this.numUpdateDataExpected) {
|
|
346
|
+
this.sendSuccessNotification();
|
|
347
|
+
}
|
|
348
|
+
this.resetState();
|
|
349
|
+
return null;
|
|
350
|
+
}
|
|
351
|
+
const updateFn = this.updateFunctionMap[section];
|
|
352
|
+
updateFn()
|
|
353
|
+
.then((success) => {
|
|
354
|
+
success ? ++this.numUpdateDataSuccessful : this.sendErrorNotification(`errorMessage${this.toTitle(section)}Update`);
|
|
355
|
+
this.updateDataRecursive(++idx);
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Promise for fetching the response and returning the response or the erorr message
|
|
360
|
+
* @param res - response from the API
|
|
361
|
+
*/
|
|
362
|
+
this.handleFetchResponse = async (res) => {
|
|
363
|
+
var _a;
|
|
364
|
+
if (res.status >= 300) {
|
|
365
|
+
this.isError = true;
|
|
366
|
+
let response = await res.json();
|
|
367
|
+
this.errorCode = (_a = response.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
|
|
368
|
+
this.errorMessage = this.errorCode ? translate(this.errorCode, this.lang) : translate('errorMessageFetch', this.lang);
|
|
369
|
+
window.postMessage({
|
|
370
|
+
type: 'WidgetNotification',
|
|
371
|
+
data: {
|
|
372
|
+
type: 'error',
|
|
373
|
+
message: this.errorMessage
|
|
374
|
+
}
|
|
375
|
+
}, window.location.href);
|
|
376
|
+
return Promise.reject(this.errorMessage);
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
this.isError = false;
|
|
380
|
+
if (res.headers.get('content-type')) {
|
|
381
|
+
let response = await res.json();
|
|
382
|
+
return Promise.resolve(response);
|
|
383
|
+
}
|
|
384
|
+
return Promise.resolve();
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
this.getData = () => {
|
|
388
|
+
const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`, this.endpoint);
|
|
389
|
+
const headers = new Headers();
|
|
390
|
+
headers.append('X-SessionID', this.session);
|
|
391
|
+
const options = {
|
|
392
|
+
method: 'GET',
|
|
393
|
+
headers: headers
|
|
394
|
+
};
|
|
395
|
+
return new Promise((resolve, reject) => {
|
|
396
|
+
fetch(url.href, options)
|
|
397
|
+
.then((res) => this.handleFetchResponse(res))
|
|
398
|
+
.then(res => {
|
|
399
|
+
this.data = res.player;
|
|
400
|
+
resolve();
|
|
401
|
+
})
|
|
402
|
+
.catch((error) => {
|
|
403
|
+
console.log(error);
|
|
404
|
+
reject();
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
this.sendDataRequest = (e) => {
|
|
409
|
+
if (e)
|
|
410
|
+
e.preventDefault();
|
|
411
|
+
this.isSubmitButtonAvailable = false;
|
|
412
|
+
Object.values(this.validStatus).forEach(v => {
|
|
413
|
+
if (v)
|
|
414
|
+
this.numUpdateDataExpected += 1;
|
|
415
|
+
});
|
|
416
|
+
for (const [section, isValid] of Object.entries(this.validStatus)) {
|
|
417
|
+
if (isValid)
|
|
418
|
+
window.postMessage({ type: `${section}_SEND_DATA` });
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
this.updateSubmitButtonStatus = () => {
|
|
422
|
+
this.isSubmitButtonAvailable = Object.values(this.validStatus).some(v => v);
|
|
423
|
+
};
|
|
424
|
+
this.toTitle = (value) => value.charAt(0).toUpperCase() + value.substring(1).toLowerCase();
|
|
425
|
+
this.toggleScreen = () => {
|
|
426
|
+
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
|
|
427
|
+
};
|
|
428
|
+
this.userId = undefined;
|
|
429
|
+
this.session = undefined;
|
|
430
|
+
this.endpoint = undefined;
|
|
431
|
+
this.lang = 'en';
|
|
432
|
+
this.mbSource = undefined;
|
|
433
|
+
this.clientStyling = undefined;
|
|
434
|
+
this.clientStylingUrl = undefined;
|
|
435
|
+
this.translationUrl = undefined;
|
|
436
|
+
this.addProfile = 'true';
|
|
437
|
+
this.addAddresses = undefined;
|
|
438
|
+
this.addContacts = undefined;
|
|
439
|
+
this.addDocuments = undefined;
|
|
440
|
+
this.addConsents = undefined;
|
|
441
|
+
this.dobFormat = 'DD/MM/YYYY';
|
|
442
|
+
this.isFullAddressDisplayed = undefined;
|
|
443
|
+
this.isPermanentAdressEditable = 'false';
|
|
444
|
+
this.isTemporaryAdressEditable = 'true';
|
|
445
|
+
this.isContactVerificationStatusDisplayed = 'false';
|
|
446
|
+
this.isPhoneNumberEditable = 'true';
|
|
447
|
+
this.isDocumentsEditable = 'false';
|
|
448
|
+
this.isMobile = isMobile(window.navigator.userAgent);
|
|
449
|
+
this.limitStylingAppends = false;
|
|
450
|
+
this.isLoading = true;
|
|
451
|
+
this.isSubmitButtonAvailable = false;
|
|
452
|
+
this.isError = false;
|
|
453
|
+
this.errorMessage = '';
|
|
454
|
+
this.errorCode = '';
|
|
455
|
+
}
|
|
456
|
+
handleStylingChange(newValue, oldValue) {
|
|
457
|
+
if (newValue !== oldValue)
|
|
458
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
459
|
+
}
|
|
460
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
461
|
+
if (newValue !== oldValue)
|
|
462
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
463
|
+
}
|
|
464
|
+
async componentWillLoad() {
|
|
465
|
+
await this.getData().finally(() => this.isLoading = false);
|
|
466
|
+
}
|
|
467
|
+
componentDidLoad() {
|
|
468
|
+
if (this.stylingContainer) {
|
|
469
|
+
if (window.emMessageBuss != undefined) {
|
|
470
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
if (this.clientStyling)
|
|
474
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
475
|
+
if (this.clientStylingUrl)
|
|
476
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
window.addEventListener('message', this.messageHandler, false);
|
|
480
|
+
}
|
|
481
|
+
disconnectedCallback() {
|
|
482
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
483
|
+
window.removeEventListener('message', this.messageHandler, false);
|
|
484
|
+
}
|
|
485
|
+
resetState() {
|
|
486
|
+
this.getData().then(() => {
|
|
487
|
+
for (const section of this.sectionsToUpdate) {
|
|
488
|
+
this.sendData(section);
|
|
489
|
+
}
|
|
490
|
+
this.validStatus = {};
|
|
491
|
+
this.numUpdateDataReceived = 0;
|
|
492
|
+
this.numUpdateDataExpected = 0;
|
|
493
|
+
this.numUpdateDataSuccessful = 0;
|
|
494
|
+
this.sectionsToUpdate = [];
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
updateDataProfile() {
|
|
498
|
+
const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`, this.endpoint);
|
|
499
|
+
const headers = new Headers();
|
|
500
|
+
headers.append('X-SessionId', this.session);
|
|
501
|
+
headers.append('Content-Type', 'application/problem+json; charset=utf-8');
|
|
502
|
+
const reqParams = {
|
|
503
|
+
method: 'PUT',
|
|
504
|
+
headers,
|
|
505
|
+
body: JSON.stringify(this.data)
|
|
506
|
+
};
|
|
507
|
+
return new Promise((resolve) => {
|
|
508
|
+
fetch(url, reqParams)
|
|
509
|
+
.then(res => resolve(res.ok));
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
updateDataDocuments() {
|
|
513
|
+
const promises = [];
|
|
514
|
+
for (const document of this.data.documents) {
|
|
515
|
+
const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/documents/${document['documentId']}/`, this.endpoint);
|
|
516
|
+
const headers = new Headers();
|
|
517
|
+
headers.append('X-SessionId', this.session);
|
|
518
|
+
headers.append('Content-Type', 'application/json-patch+json');
|
|
519
|
+
const reqParams = {
|
|
520
|
+
method: 'PUT',
|
|
521
|
+
headers,
|
|
522
|
+
body: JSON.stringify(document)
|
|
523
|
+
};
|
|
524
|
+
const promise = new Promise((resolve) => {
|
|
525
|
+
fetch(url, reqParams)
|
|
526
|
+
.then(res => resolve(res.ok));
|
|
527
|
+
});
|
|
528
|
+
promises.push(promise);
|
|
529
|
+
}
|
|
530
|
+
return Promise.all(promises).then(successArr => successArr.every(v => v));
|
|
531
|
+
}
|
|
532
|
+
updateDataAddresses() {
|
|
533
|
+
const promises = [];
|
|
534
|
+
for (const address of this.data.addresses) {
|
|
535
|
+
const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/addresses/${address['addressId']}/`, this.endpoint);
|
|
536
|
+
const headers = new Headers();
|
|
537
|
+
headers.append('X-SessionId', this.session);
|
|
538
|
+
headers.append('Content-Type', 'application/json-patch+json');
|
|
539
|
+
const reqParams = {
|
|
540
|
+
method: 'PUT',
|
|
541
|
+
headers,
|
|
542
|
+
body: JSON.stringify(address)
|
|
543
|
+
};
|
|
544
|
+
const promise = new Promise((resolve) => {
|
|
545
|
+
fetch(url, reqParams)
|
|
546
|
+
.then(res => resolve(res.ok));
|
|
547
|
+
});
|
|
548
|
+
promises.push(promise);
|
|
549
|
+
}
|
|
550
|
+
return Promise.all(promises).then(successArr => successArr.every(v => v));
|
|
551
|
+
}
|
|
552
|
+
updateDataContacts() {
|
|
553
|
+
const promises = [];
|
|
554
|
+
for (const contact of this.data.contacts) {
|
|
555
|
+
const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/contacts/${contact['contactId']}/`, this.endpoint);
|
|
556
|
+
const headers = new Headers();
|
|
557
|
+
headers.append('X-SessionId', this.session);
|
|
558
|
+
headers.append('Content-Type', 'application/json-patch+json');
|
|
559
|
+
const reqParams = {
|
|
560
|
+
method: 'PUT',
|
|
561
|
+
headers,
|
|
562
|
+
body: JSON.stringify(contact)
|
|
563
|
+
};
|
|
564
|
+
const promise = new Promise((resolve) => {
|
|
565
|
+
fetch(url, reqParams)
|
|
566
|
+
.then(res => resolve(res.ok));
|
|
567
|
+
});
|
|
568
|
+
promises.push(promise);
|
|
569
|
+
}
|
|
570
|
+
return Promise.all(promises).then(successArr => successArr.every(v => v));
|
|
571
|
+
}
|
|
572
|
+
render() {
|
|
573
|
+
if (!this.isLoading && this.isError) {
|
|
574
|
+
return (index.h("div", { class: "errorContainer" }, index.h("p", { class: "errorMessage", innerHTML: this.errorMessage })));
|
|
575
|
+
}
|
|
576
|
+
return (index.h("div", { ref: el => this.stylingContainer = el }, this.isLoading
|
|
577
|
+
? index.h("div", { class: "Loading" }, index.h("p", null, "Still Loading..."))
|
|
578
|
+
: index.h("form", { class: `PlayerProfileControllerWrapper ${this.isMobile ? 'Mobile' : ''}` }, this.isMobile
|
|
579
|
+
? index.h("div", { class: "ReturnButton", onClick: this.toggleScreen }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, index.h("g", { transform: "translate(-20 -158)" }, index.h("g", { transform: "translate(20 158)" }, index.h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), index.h("h2", null, translate('title', this.lang)))
|
|
580
|
+
: index.h("h2", null, translate('title', this.lang)), this.addProfile === 'true' &&
|
|
581
|
+
index.h("pam-player-profile", { lang: this.lang, "dob-format": this.dobFormat, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addContacts === 'true' &&
|
|
582
|
+
index.h("pam-player-contacts", { lang: this.lang, "is-verification-status-displayed": this.isContactVerificationStatusDisplayed, "is-phone-number-editable": this.isPhoneNumberEditable, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addAddresses === 'true' &&
|
|
583
|
+
index.h("pam-player-addresses", { lang: this.lang, "is-permanent-adress-editable": this.isPermanentAdressEditable, "is-temporary-adress-editable": this.isTemporaryAdressEditable, "is-full-address-displayed": this.isFullAddressDisplayed, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addDocuments === 'true' &&
|
|
584
|
+
index.h("pam-player-documents", { lang: this.lang, "is-editable": this.isDocumentsEditable, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), index.h("section", { class: "ButtonsArea" }, index.h("button", { class: `SaveButton ${this.isSubmitButtonAvailable ? '' : 'Disabled'}`, onClick: this.sendDataRequest }, translate('saveButton'))), this.addConsents === 'true' &&
|
|
585
|
+
index.h("div", { class: "ConsentsWrapper" }, index.h("pam-player-consents", { lang: this.lang, endpoint: this.endpoint, userid: this.userId, session: this.session, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, displayconsentdescription: "false" })))));
|
|
586
|
+
}
|
|
587
|
+
static get watchers() { return {
|
|
588
|
+
"clientStyling": ["handleStylingChange"],
|
|
589
|
+
"clientStylingUrl": ["handleStylingUrlChange"]
|
|
590
|
+
}; }
|
|
591
|
+
};
|
|
592
|
+
PlayerProfileController.style = PamPlayerProfileControllerStyle0;
|
|
593
|
+
|
|
594
|
+
exports.PlayerProfileController = PlayerProfileController;
|
|
595
|
+
exports.setClientStyling = setClientStyling;
|
|
596
|
+
exports.setClientStylingURL = setClientStylingURL;
|
|
597
|
+
exports.setStreamStyling = setStreamStyling;
|