@everymatrix/player-consents 0.7.6 → 0.9.0
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/components/GeneralAnimationLoading-B-XuIUYl.cjs +1 -0
- package/components/{GeneralAnimationLoading-CZAWpbQR.js → GeneralAnimationLoading-DWnrpKBQ.js} +196 -125
- package/components/PlayerConsents-DGKjS-tb.js +4877 -0
- package/components/PlayerConsents-T25o1YlM.cjs +3 -0
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/GeneralAnimationLoading-Cu5bMHUU.cjs +0 -1
- package/components/PlayerConsents-RWj0zq_u.js +0 -4290
- package/components/PlayerConsents-X75xsutn.cjs +0 -3
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var er=Object.defineProperty;var je=Object.getOwnPropertySymbols;var tr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable;var ze=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&&ze(e,r,t[r]);if(je)for(var r of je(t))rr.call(t,r)&&ze(e,r,t[r]);return e};var $=(e,t,r)=>new Promise((n,s)=>{var o=u=>{try{l(r.next(u))}catch(c){s(c)}},a=u=>{try{l(r.throw(u))}catch(c){s(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./GeneralAnimationLoading-Cu5bMHUU.cjs"),V=[];function nr(e,t){return{subscribe:fe(e,t).subscribe}}function fe(e,t=i.noop){let r;const n=new Set;function s(l){if(i.safe_not_equal(e,l)&&(e=l,r)){const u=!V.length;for(const c of n)c[1](),V.push(c,e);if(u){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function o(l){s(l(e))}function a(l,u=i.noop){const c=[l,u];return n.add(c),n.size===1&&(r=t(s,o)||i.noop),l(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:s,update:o,subscribe:a}}function J(e,t,r){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return nr(r,(a,l)=>{let u=!1;const c=[];let h=0,p=i.noop;const d=()=>{if(h)return;p();const T=t(n?c[0]:c,a,l);o?a(T):p=i.is_function(T)?T:i.noop},g=s.map((T,N)=>i.subscribe(T,C=>{c[N]=C,h&=~(1<<N),u&&d()},()=>{h|=1<<N}));return u=!0,d(),function(){i.run_all(g),p(),u=!1}})}function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ir=function(t){return or(t)&&!ar(t)};function or(e){return!!e&&typeof e=="object"}function ar(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hr(e)}var lr=typeof Symbol=="function"&&Symbol.for,ur=lr?Symbol.for("react.element"):60103;function hr(e){return e.$$typeof===ur}function cr(e){return Array.isArray(e)?[]:{}}function te(e,t){return t.clone!==!1&&t.isMergeableObject(e)?X(cr(e),e,t):e}function fr(e,t,r){return e.concat(t).map(function(n){return te(n,r)})}function dr(e,t){if(!t.customMerge)return X;var r=t.customMerge(e);return typeof r=="function"?r:X}function pr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Fe(e){return Object.keys(e).concat(pr(e))}function dt(e,t){try{return t in e}catch(r){return!1}}function mr(e,t){return dt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function gr(e,t,r){var n={};return r.isMergeableObject(e)&&Fe(e).forEach(function(s){n[s]=te(e[s],r)}),Fe(t).forEach(function(s){mr(e,s)||(dt(e,s)&&r.isMergeableObject(t[s])?n[s]=dr(s,r)(e[s],t[s],r):n[s]=te(t[s],r))}),n}function X(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||fr,r.isMergeableObject=r.isMergeableObject||ir,r.cloneUnlessOtherwiseSpecified=te;var n=Array.isArray(t),s=Array.isArray(e),o=n===s;return o?n?r.arrayMerge(e,t,r):gr(e,t,r):te(t,r)}X.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return X(n,s,r)},{})};var vr=X,br=vr;const Er=sr(br);var Ce=function(e,t){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Ce(e,t)};function de(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ce(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var y=function(){return y=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},y.apply(this,arguments)};function yr(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 s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function ve(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;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 be(e,t){var r=t&&t.cache?t.cache:Sr,n=t&&t.serializer?t.serializer:Hr,s=t&&t.strategy?t.strategy:xr;return s(e,{cache:r,serializer:n})}function _r(e){return e==null||typeof e=="number"||typeof e=="boolean"}function pt(e,t,r,n){var s=_r(n)?n:r(n),o=t.get(s);return typeof o=="undefined"&&(o=e.call(this,n),t.set(s,o)),o}function mt(e,t,r){var n=Array.prototype.slice.call(arguments,3),s=r(n),o=t.get(s);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(s,o)),o}function Ie(e,t,r,n,s){return r.bind(t,e,n,s)}function xr(e,t){var r=e.length===1?pt:mt;return Ie(e,this,r,t.cache.create(),t.serializer)}function Cr(e,t){return Ie(e,this,mt,t.cache.create(),t.serializer)}function Tr(e,t){return Ie(e,this,pt,t.cache.create(),t.serializer)}var Hr=function(){return JSON.stringify(arguments)};function Le(){this.cache=Object.create(null)}Le.prototype.get=function(e){return this.cache[e]};Le.prototype.set=function(e,t){this.cache[e]=t};var Sr={create:function(){return new Le}},Ee={variadic:Cr,monadic:Tr},v;(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"})(v||(v={}));var w;(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"})(w||(w={}));var Z;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Z||(Z={}));function Ve(e){return e.type===w.literal}function Ar(e){return e.type===w.argument}function gt(e){return e.type===w.number}function vt(e){return e.type===w.date}function bt(e){return e.type===w.time}function Et(e){return e.type===w.select}function yt(e){return e.type===w.plural}function Nr(e){return e.type===w.pound}function _t(e){return e.type===w.tag}function xt(e){return!!(e&&typeof e=="object"&&e.type===Z.number)}function Te(e){return!!(e&&typeof e=="object"&&e.type===Z.dateTime)}var Ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wr=/(?:[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 Br(e){var t={};return e.replace(wr,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 Pr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ir(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Pr).filter(function(d){return d.length>0}),r=[],n=0,s=t;n<s.length;n++){var o=s[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],u=a.slice(1),c=0,h=u;c<h.length;c++){var p=h[c];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:u})}return r}function Lr(e){return e.replace(/^(.*?)-/,"")}var Xe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Tt=/^(@+)?(\+|#+)?[rs]?$/g,Or=/(\*)(0+)|(#+)(0+)|(0+)/g,Ht=/^(0+)$/;function Ze(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Tt,function(r,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function St(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 Rr(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)),!Ht.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function We(e){var t={},r=St(e);return r||t}function Ur(e){for(var t={},r=0,n=e;r<n.length;r++){var s=n[r];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=Lr(s.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=y(y(y({},t),{notation:"scientific"}),s.options.reduce(function(u,c){return y(y({},u),We(c))},{}));continue;case"engineering":t=y(y(y({},t),{notation:"engineering"}),s.options.reduce(function(u,c){return y(y({},u),We(c))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Or,function(u,c,h,p,d,g){if(c)t.minimumIntegerDigits=h.length;else{if(p&&d)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ht.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Xe.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Xe,function(u,c,h,p,d,g){return h==="*"?t.minimumFractionDigits=c.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:d&&g?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+g.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=s.options[0];o==="w"?t=y(y({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=y(y({},t),Ze(o)));continue}if(Tt.test(s.stem)){t=y(y({},t),Ze(s.stem));continue}var a=St(s.stem);a&&(t=y(y({},t),a));var l=Rr(s.stem);l&&(t=y(y({},t),l))}return t}var ae={"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 Mr(e,t){for(var r="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===s;)o++,n++;var a=1+(o&1),l=o<2?1:3+(o>>1),u="a",c=kr(t);for((c=="H"||c=="k")&&(l=0);l-- >0;)r+=u;for(;a-- >0;)r=c+r}else s==="J"?r+="H":r+=s}return r}function kr(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 s=ae[n||""]||ae[r||""]||ae["".concat(r,"-001")]||ae["001"];return s[0]}var ye,Dr=new RegExp("^".concat(Ct.source,"*")),Gr=new RegExp("".concat(Ct.source,"*$"));function b(e,t){return{start:e,end:t}}var jr=!!String.prototype.startsWith&&"_a".startsWith("a",1),zr=!!String.fromCodePoint,Fr=!!Object.fromEntries,Vr=!!String.prototype.codePointAt,Xr=!!String.prototype.trimStart,Zr=!!String.prototype.trimEnd,Wr=!!Number.isSafeInteger,qr=Wr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},He=!0;try{var Jr=Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");He=((ye=Jr.exec("a"))===null||ye===void 0?void 0:ye[0])==="a"}catch(e){He=!1}var qe=jr?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Se=zr?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",s=t.length,o=0,a;s>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},Je=Fr?Object.fromEntries:function(t){for(var r={},n=0,s=t;n<s.length;n++){var o=s[n],a=o[0],l=o[1];r[a]=l}return r},At=Vr?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var s=t.charCodeAt(r),o;return s<55296||s>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Qr=Xr?function(t){return t.trimStart()}:function(t){return t.replace(Dr,"")},Yr=Zr?function(t){return t.trimEnd()}:function(t){return t.replace(Gr,"")};function Nt(e,t){return new RegExp(e,t)}var Ae;if(He){var Qe=Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ae=function(t,r){var n;Qe.lastIndex=r;var s=Qe.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else Ae=function(t,r){for(var n=[];;){var s=At(t,r);if(s===void 0||wt(s)||tn(s))break;n.push(s),r+=s>=65536?2:1}return Se.apply(void 0,n)};var Kr=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 s=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;s.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),s.push({type:w.pound,location:b(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ne(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;s.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;s.push(a.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:w.literal,value:"<".concat(s,"/>"),location:b(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,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ne(this.char()))return this.error(v.INVALID_TAG,b(l,this.clonePosition()));var u=this.clonePosition(),c=this.parseTagName();return s!==c?this.error(v.UNMATCHED_CLOSING_TAG,b(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:w.tag,value:s,children:a,location:b(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,b(l,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,b(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,b(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&en(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),s="";;){var o=this.tryParseQuote(r);if(o){s+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){s+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){s+=l;continue}break}var u=b(n,this.clonePosition());return{val:{type:w.literal,value:s,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$r(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 Se.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(),Se(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,b(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(v.MALFORMED_ARGUMENT,b(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:w.argument,value:s,location:b(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition())):this.parseArgumentOptions(t,r,s,n);default:return this.error(v.MALFORMED_ARGUMENT,b(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ae(this.message,r),s=r+n.length;this.bumpTo(s);var o=this.clonePosition(),a=b(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,s){var o,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,b(a,u));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var d=Yr(p.val);if(d.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));var g=b(h,this.clonePosition());c={style:d,styleLocation:g}}var T=this.tryParseArgumentClose(s);if(T.err)return T;var N=b(s,this.clonePosition());if(c&&qe(c==null?void 0:c.style,"::",0)){var C=Qr(c.style.slice(2));if(l==="number"){var p=this.parseNumberSkeletonFromString(C,c.styleLocation);return p.err?p:{val:{type:w.number,value:n,location:N,style:p.val},err:null}}else{if(C.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,N);var _=C;this.locale&&(_=Mr(C,this.locale));var d={type:Z.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Br(_):{}},P=l==="date"?w.date:w.time;return{val:{type:P,value:n,location:N,style:d},err:null}}}return{val:{type:l==="number"?w.number:l==="date"?w.date:w.time,value:n,location:N,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,b(x,y({},x)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),H=0;if(l!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),E=this.parseIdentifierIfPossible(),H=p.val}var S=this.tryParsePluralOrSelectOptions(t,l,r,E);if(S.err)return S;var T=this.tryParseArgumentClose(s);if(T.err)return T;var U=b(s,this.clonePosition());return l==="select"?{val:{type:w.select,value:n,options:Je(S.val),location:U},err:null}:{val:{type:w.plural,value:n,options:Je(S.val),offset:H,pluralType:l==="plural"?"cardinal":"ordinal",location:U},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,b(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,b(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 s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(s,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=Ir(t)}catch(s){return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:Z.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ur(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,s){for(var o,a=!1,l=[],u=new Set,c=s.value,h=s.location;;){if(c.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;h=b(p,this.clonePosition()),c=this.message.slice(p.offset,this.offset())}else break}if(u.has(c))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);c==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,r,n);if(T.err)return T;var N=this.tryParseArgumentClose(g);if(N.err)return N;l.push([c,{value:T.val,location:b(g,this.clonePosition())}]),u.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,h=o.location}return l.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(v.MISSING_OTHER_CLAUSE,b(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,a=a*10+(l-48),this.bump();else break}var u=b(s,this.clonePosition());return o?(a*=n,qr(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},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=At(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(qe(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()&&wt(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 Ne(e){return e>=97&&e<=122||e>=65&&e<=90}function $r(e){return Ne(e)||e===47}function en(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 wt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function tn(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 we(e){e.forEach(function(t){if(delete t.location,Et(t)||yt(t))for(var r in t.options)delete t.options[r].location,we(t.options[r].value);else gt(t)&&xt(t.style)||(vt(t)||bt(t))&&Te(t.style)?delete t.style.location:_t(t)&&we(t.children)})}function rn(e,t){t===void 0&&(t={}),t=y({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Kr(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||we(r.val),r.val}var W;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(W||(W={}));var pe=function(e){de(t,e);function t(r,n,s){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ye=function(e){de(t,e);function t(r,n,s,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),W.INVALID_VALUE,o)||this}return t}(pe),nn=function(e){de(t,e);function t(r,n,s){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),W.INVALID_VALUE,s)||this}return t}(pe),sn=function(e){de(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,'"'),W.MISSING_VALUE,n)||this}return t}(pe),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(L||(L={}));function on(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==L.literal||r.type!==L.literal?t.push(r):n.value+=r.value,t},[])}function an(e){return typeof e=="function"}function le(e,t,r,n,s,o,a){if(e.length===1&&Ve(e[0]))return[{type:L.literal,value:e[0].value}];for(var l=[],u=0,c=e;u<c.length;u++){var h=c[u];if(Ve(h)){l.push({type:L.literal,value:h.value});continue}if(Nr(h)){typeof o=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(o)});continue}var p=h.value;if(!(s&&p in s))throw new sn(p,a);var d=s[p];if(Ar(h)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),l.push({type:typeof d=="string"?L.literal:L.object,value:d});continue}if(vt(h)){var g=typeof h.style=="string"?n.date[h.style]:Te(h.style)?h.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,g).format(d)});continue}if(bt(h)){var g=typeof h.style=="string"?n.time[h.style]:Te(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,g).format(d)});continue}if(gt(h)){var g=typeof h.style=="string"?n.number[h.style]:xt(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(d=d*(g.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,g).format(d)});continue}if(_t(h)){var T=h.children,N=h.value,C=s[N];if(!an(C))throw new nn(N,"function",a);var _=le(T,t,r,n,s,o),P=C(_.map(function(H){return H.value}));Array.isArray(P)||(P=[P]),l.push.apply(l,P.map(function(H){return{type:typeof H=="string"?L.literal:L.object,value:H}}))}if(Et(h)){var x=h.options[d]||h.options.other;if(!x)throw new Ye(h.value,d,Object.keys(h.options),a);l.push.apply(l,le(x.value,t,r,n,s));continue}if(yt(h)){var x=h.options["=".concat(d)];if(!x){if(!Intl.PluralRules)throw new pe(`Intl.PluralRules is not available in this environment.
|
|
2
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,W.MISSING_INTL_API,a);var E=r.getPluralRules(t,{type:h.pluralType}).select(d-(h.offset||0));x=h.options[E]||h.options.other}if(!x)throw new Ye(h.value,d,Object.keys(h.options),a);l.push.apply(l,le(x.value,t,r,n,s,d-(h.offset||0)));continue}}return on(l)}function ln(e,t){return t?y(y(y({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=y(y({},e[n]),t[n]||{}),r},{})):e}function un(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ln(e[n],t[n]),r},y({},e)):e}function _e(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function hn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:be(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ve([void 0],r,!1)))},{cache:_e(e.number),strategy:Ee.variadic}),getDateTimeFormat:be(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ve([void 0],r,!1)))},{cache:_e(e.dateTime),strategy:Ee.variadic}),getPluralRules:be(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ve([void 0],r,!1)))},{cache:_e(e.pluralRules),strategy:Ee.variadic})}}var cn=function(){function e(t,r,n,s){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=o.formatToParts(u);if(c.length===1)return c[0].value;var h=c.reduce(function(p,d){return!p.length||d.type!==L.literal||typeof p[p.length-1]!="string"?p.push(d.value):p[p.length-1]+=d.value,p},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return le(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.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=s||{};a.formatters;var l=yr(a,["formatters"]);this.ast=e.__parse(t,y(y({},l),{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=un(e.formats,n),this.formatters=s&&s.formatters||hn(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=rn,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 fn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let s=0;s<r.length;s++)if(typeof n=="object"){if(s>0){const o=r.slice(s,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[s]]}else n=void 0;return n}const j={},dn=(e,t,r)=>r&&(t in j||(j[t]={}),e in j[t]||(j[t][e]=r),r),Bt=(e,t)=>{if(t==null)return;if(t in j&&e in j[t])return j[t][e];const r=me(t);for(let n=0;n<r.length;n++){const s=r[n],o=mn(s,e);if(o)return dn(e,t,o)}};let Oe;const ne=fe({});function pn(e){return Oe[e]||null}function Pt(e){return e in Oe}function mn(e,t){if(!Pt(e))return null;const r=pn(e);return fn(r,t)}function gn(e){if(e==null)return;const t=me(e);for(let r=0;r<t.length;r++){const n=t[r];if(Pt(n))return n}}function It(e,...t){delete j[e],ne.update(r=>(r[e]=Er.all([r[e]||{},...t]),r))}J([ne],([e])=>Object.keys(e));ne.subscribe(e=>Oe=e);const ue={};function vn(e,t){ue[e].delete(t),ue[e].size===0&&delete ue[e]}function Lt(e){return ue[e]}function bn(e){return me(e).map(t=>{const r=Lt(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Be(e){return e==null?!1:me(e).some(t=>{var r;return(r=Lt(t))==null?void 0:r.size})}function En(e,t){return Promise.all(t.map(n=>(vn(e,n),n().then(s=>s.default||s)))).then(n=>It(e,...n))}const ee={};function Ot(e){if(!Be(e))return e in ee?ee[e]:Promise.resolve();const t=bn(e);return ee[e]=Promise.all(t.map(([r,n])=>En(r,n))).then(()=>{if(Be(e))return Ot(e);delete ee[e]}),ee[e]}const yn={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"}}},_n={fallbackLocale:null,loadingDelay:200,formats:yn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},xn=_n;function q(){return xn}const xe=fe(!1);var Cn=Object.defineProperty,Tn=Object.defineProperties,Hn=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,$e=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nn=(e,t)=>{for(var r in t||(t={}))Sn.call(t,r)&&$e(e,r,t[r]);if(Ke)for(var r of Ke(t))An.call(t,r)&&$e(e,r,t[r]);return e},wn=(e,t)=>Tn(e,Hn(t));let Pe;const he=fe(null);function et(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function me(e,t=q().fallbackLocale){const r=et(e);return t?[...new Set([...r,...et(t)])]:r}function F(){return Pe!=null?Pe:void 0}he.subscribe(e=>{Pe=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Bn=e=>{if(e&&gn(e)&&Be(e)){const{loadingDelay:t}=q();let r;return typeof window!="undefined"&&F()!=null&&t?r=window.setTimeout(()=>xe.set(!0),t):xe.set(!0),Ot(e).then(()=>{he.set(e)}).finally(()=>{clearTimeout(r),xe.set(!1)})}return he.set(e)},Q=wn(Nn({},he),{set:Bn}),ge=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Pn=Object.defineProperty,ce=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,tt=(e,t,r)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Re=(e,t)=>{for(var r in t||(t={}))Rt.call(t,r)&&tt(e,r,t[r]);if(ce)for(var r of ce(t))Ut.call(t,r)&&tt(e,r,t[r]);return e},Y=(e,t)=>{var r={};for(var n in e)Rt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Ut.call(e,n)&&(r[n]=e[n]);return r};const re=(e,t)=>{const{formats:r}=q();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},In=ge(e=>{var t=e,{locale:r,format:n}=t,s=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=re("number",n)),new Intl.NumberFormat(r,s)}),Ln=ge(e=>{var t=e,{locale:r,format:n}=t,s=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=re("date",n):Object.keys(s).length===0&&(s=re("date","short")),new Intl.DateTimeFormat(r,s)}),On=ge(e=>{var t=e,{locale:r,format:n}=t,s=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=re("time",n):Object.keys(s).length===0&&(s=re("time","short")),new Intl.DateTimeFormat(r,s)}),Rn=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return In(Re({locale:r},n))},Un=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return Ln(Re({locale:r},n))},Mn=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return On(Re({locale:r},n))},kn=ge((e,t=F())=>new cn(e,t,q().formats,{ignoreTag:q().ignoreTag})),Dn=(e,t={})=>{var r,n,s,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:u=F(),default:c}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Bt(e,u);if(!h)h=(o=(s=(n=(r=q()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:c}))!=null?s:c)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let p=h;try{p=kn(h,u).format(l)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return p},Gn=(e,t)=>Mn(t).format(e),jn=(e,t)=>Un(t).format(e),zn=(e,t)=>Rn(t).format(e),Fn=(e,t=F())=>Bt(e,t),Vn=J([Q,ne],()=>Dn);J([Q],()=>Gn);J([Q],()=>jn);J([Q],()=>zn);J([Q,ne],()=>Fn);function rt(e,t){It(e,t)}function Xn(e){Q.set(e)}const O={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",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."},"zh-hk":{invalidUrl:"構建URL失敗:無效的URL",fetchConsentsError:"錯誤:無法獲取同意。",fetchPlayerConsentsError:"錯誤:無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤:無法獲取同意類別",updateConsentsError:"錯誤:無法更新同意。",saveChangesError:"錯誤:無法保存更改。",mustAcceptError:"必須接受強制同意。",title:"同意",description:"在這裡,您可以探索和管理有關我們如何收集和利用您的數據的偏好。您的隱私對我們很重要,這個工具使您能夠就您的在線體驗做出知情選擇。"},de:{invalidUrl:"Fehler beim Erstellen der URL: Ungültige URL",fetchConsentsError:"Fehler: Konnte Zustimmungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Spielerzustimmungen konnten nicht abgerufen werden.",fetchConsentsCategoriesError:"Fehler: Zustimmungskategorien konnten nicht abgerufen werden",updateConsentsError:"Fehler: Zustimmungen konnten nicht aktualisiert werden.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Obligatorische Zustimmungen müssen akzeptiert werden.",title:"Zustimmungen",description:"Hier können Sie Ihre Präferenzen erkunden und 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."},it:{invalidUrl:"Impossibile costruire l'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:"Consenso",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 permette di fare scelte informate sul tuo esperienza online."},fr:{invalidUrl:"Impossible de construire l'URL : URL non valide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements du joueur.",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",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 nous tient à cœur, et cet outil vous permet de prendre des décisions éclairées sur votre expérience en ligne."},es:{invalidUrl:"Error al construir la 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",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."},el:{invalidUrl:"Αποτυχία κατασκευής URL: Μη έγκυρο URL",fetchConsentsError:"Σφάλμα: Αδυναμία ανάκτησης συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Αδυναμία ανάκτησης συναινέσεων παίκτη.",fetchConsentsCategoriesError:"Σφάλμα: Αδυναμία ανάκτησης κατηγοριών συναίνεσης",updateConsentsError:"Σφάλμα: Αδυναμία ενημέρωσης συναινέσεων.",saveChangesError:"Σφάλμα: Αδυναμία αποθήκευσης αλλαγών.",mustAcceptError:"Οι υποχρεωτικές συναινέσεις πρέπει να γίνουν αποδεκτές.",title:"Συναινέσεις",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με τον τρόπο με τον οποίο συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας είναι σημαντική για εμάς, και αυτό το εργαλείο σας επιτρέπει να λαμβάνετε ενημερωμένες αποφάσεις σχετικά με την online εμπειρία σας."},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",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımız konusundaki tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemli ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli kararlar almanıza olanak tanır."},ru:{invalidUrl:"Не удалось построить URL: Неверный URL",fetchConsentsError:"Ошибка: Не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: Не удалось получить согласия игрока.",fetchConsentsCategoriesError:"Ошибка: Не удалось получить категории согласий",updateConsentsError:"Ошибка: Не удалось обновить согласия.",saveChangesError:"Ошибка: Не удалось сохранить изменения.",mustAcceptError:"Необходимо принять обязательные согласия.",title:"Согласия",description:"Здесь вы можете исследовать и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность имеет для нас значение, и этот инструмент позволяет вам принимать обоснованные решения о вашем онлайн-опыте."},ro:{invalidUrl:"Nu s-a putut construi URL-ul: URL invalid",fetchConsentsError:"Eroare: Nu s-au putut obține consimțăminte.",fetchPlayerConsentsError:"Eroare: Nu s-au putut obține consimțăminte ale jucătorului.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut obține categoriile de consimțământ",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțăminte.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțământele obligatorii trebuie acceptate.",title:"Consimțăminte",description:"Aici puteți explora și gestiona preferințele dvs. referitoare la modul în care colectăm și utilizăm datele dvs. Confidențialitatea dvs. este importantă pentru noi, iar acest instrument vă permite să luați decizii informate despre experiența dvs. online."},hr:{invalidUrl:"Neuspjelo sastavljanje URL-a: Nevaljani URL",fetchConsentsError:"Greška: Nije moguće dohvatiti suglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti suglasnosti igrača.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije suglasnosti",updateConsentsError:"Greška: Nije moguće ažurirati suglasnosti.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezna suglasnost mora biti prihvaćena.",title:"Suglasnosti",description:"Ovdje možete istražiti i upravljati svojim preferencijama u vezi s načinom na koji prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat omogućuje vam donošenje informiranih odluka o vašem online iskustvu."},hu:{invalidUrl:"Nem sikerült URL-t létrehozni: É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ékos hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulás kategóriákat",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a változásokat.",mustAcceptError:"Kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",description:"Itt felfedezheti és kezelheti az adatainak gyűjtésére és felhasználására vonatkozó preferenciáit. Fontos számunkra a magánélete, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élménye kapcsán."},pl:{invalidUrl:"Nie udało się skonstruować URL: Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie można pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie można pobrać zgód gracza.",fetchConsentsCategoriesError:"Błąd: Nie można pobrać kategorii zgód",updateConsentsError:"Błąd: Nie można zaktualizować zgód.",saveChangesError:"Błąd: Nie można zapisać zmian.",mustAcceptError:"Wymagane zgody muszą zostać zaakceptowane.",title:"Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi sposobu, w jaki zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a ten narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online."},pt:{invalidUrl:"Falha ao construir URL: URL inválido",fetchConsentsError:"Erro: Não foi possível obter consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter consentimentos do jogador.",fetchConsentsCategoriesError:"Erro: Não foi possível obter categorias de consentimento",updateConsentsError:"Erro: Não foi possível atualizar consentimentos.",saveChangesError:"Erro: Não foi possível salvar alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"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ê faça escolhas informadas sobre sua experiência online."},sl:{invalidUrl:"Napaka pri gradnji URL: Neveljaven URL",fetchConsentsError:"Napaka: Ne morem pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ne morem pridobiti soglasij igralca.",fetchConsentsCategoriesError:"Napaka: Ne morem pridobiti kategorij soglasja",updateConsentsError:"Napaka: Ne morem posodobiti soglasij.",saveChangesError:"Napaka: Spremembe ni mogoče shraniti.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",description:"Tu lahko raziščete in upravljate svoje preference glede načina, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost nam je pomembna, ta orodje pa vam omogoča, da sprejemate informirane odločitve o svoji spletni izkušnji."},sr:{invalidUrl:"Неуспело конструисање URL-а: Неважећи URL",fetchConsentsError:"Грешка: Није могуће добити сагласности.",fetchPlayerConsentsError:"Грешка: Није могуће добити сагласности играча.",fetchConsentsCategoriesError:"Грешка: Није могуће добити категорије сагласности",updateConsentsError:"Грешка: Није могуће ажурирати сагласности.",saveChangesError:"Грешка: Промене није могуће сачувати.",mustAcceptError:"Обавезне сагласности морају бити прихваћене.",title:"Сагласности",description:"Овде можете истражити и управљати вашим преференцијама у вези са тим како сакупљамо и користимо ваше податке. Ваша приватност је важна за нас, а ова алатка вам омогућава да донесете информисане одлуке о свом онлајн искуству."},"es-mx":{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",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."},"pt-br":{invalidUrl:"Falha ao construir URL: URL inválido",fetchConsentsError:"Erro: Não foi possível obter consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter consentimentos do jogador.",fetchConsentsCategoriesError:"Erro: Não foi possível obter categorias de consentimento",updateConsentsError:"Erro: Não foi possível atualizar consentimentos.",saveChangesError:"Erro: Não foi possível salvar alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"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ê faça escolhas informadas sobre sua experiência online."}};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(()=>require("./GeneralAnimationLoading-Cu5bMHUU.cjs")).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function Zn(e){let t,r;return{c(){t=i.svg_element("svg"),r=i.svg_element("path"),i.attr(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"),i.attr(t,"xmlns","http://www.w3.org/2000/svg"),i.attr(t,"viewBox","0 0 512 512")},m(n,s){i.insert(n,t,s),i.append(t,r)},p:i.noop,i:i.noop,o:i.noop,d(n){n&&i.detach(t)}}}class Wn extends i.SvelteComponent{constructor(t){super(),i.init(this,t,null,Zn,i.safe_not_equal,{})}}customElements.define("circle-exclamation-icon",i.create_custom_element(Wn,{},[],[],!0));function qn(e){i.append_styles(e,"svelte-ltld8s",'.DisplayNone.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:none}.ContainerCenter.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{margin-bottom:30px}.AccordionHeader.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{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-ltld8s.svelte-ltld8s.svelte-ltld8s{margin-bottom:10px}.AccordionContent.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:block;padding:10px 0}.AccordionContent.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltld8s .ConsentName.svelte-ltld8s.svelte-ltld8s{margin:0}.ConsentItem.svelte-ltld8s .ConsentDescription.svelte-ltld8s.svelte-ltld8s{font-size:0.8rem}.ToggleSwitch.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s.svelte-ltld8s{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:disabled+.Slider.svelte-ltld8s{opacity:0.1}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:focus+.Slider.svelte-ltld8s{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s{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-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s: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-ltld8s .Slider.Round.svelte-ltld8s.svelte-ltld8s{border-radius:34px}.ToggleSwitch.svelte-ltld8s .Slider.Round.svelte-ltld8s.svelte-ltld8s:before{border-radius:50%}.ConsentErrorContainer.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltld8s circle-exclamation-icon.svelte-ltld8s.svelte-ltld8s{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{color:var(--emw--color-error, #ed0909)}')}function nt(e,t,r){const n=e.slice();return n[48]=t[r],n[49]=t,n[50]=r,n}function st(e,t,r){const n=e.slice();return n[51]=t[r],n[52]=t,n[53]=r,n}function Jn(e){let t,r,n,s=(O[e[2]].title||O[e[2]].description)&&it(e),o=i.ensure_array_like(e[8]),a=[];for(let u=0;u<o.length;u+=1)a[u]=ct(nt(e,o,u));let l=e[6]&&ft(e);return{c(){s&&s.c(),t=i.space();for(let u=0;u<a.length;u+=1)a[u].c();r=i.space(),l&&l.c(),n=i.empty()},m(u,c){s&&s.m(u,c),i.insert(u,t,c);for(let h=0;h<a.length;h+=1)a[h]&&a[h].m(u,c);i.insert(u,r,c),l&&l.m(u,c),i.insert(u,n,c)},p(u,c){if(O[u[2]].title||O[u[2]].description?s?s.p(u,c):(s=it(u),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),c[0]&64264){o=i.ensure_array_like(u[8]);let h;for(h=0;h<o.length;h+=1){const p=nt(u,o,h);a[h]?a[h].p(p,c):(a[h]=ct(p),a[h].c(),a[h].m(r.parentNode,r))}for(;h<a.length;h+=1)a[h].d(1);a.length=o.length}u[6]?l?l.p(u,c):(l=ft(u),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(u){u&&(i.detach(t),i.detach(r),i.detach(n)),s&&s.d(u),i.destroy_each(a,u),l&&l.d(u)}}}function Qn(e){let t,r,n;return{c(){t=i.element("div"),r=i.element("strong"),n=i.text(e[7]),i.attr(r,"class","ErrorMessage svelte-ltld8s"),i.attr(t,"class","ContainerCenter svelte-ltld8s")},m(s,o){i.insert(s,t,o),i.append(t,r),i.append(r,n)},p(s,o){o[0]&128&&i.set_data(n,s[7])},d(s){s&&i.detach(t)}}}function Yn(e){let t;return{c(){t=i.element("general-animation-loading"),i.set_custom_element_data(t,"clientstyling",e[0]),i.set_custom_element_data(t,"clientstylingurl",e[1])},m(r,n){i.insert(r,t,n)},p(r,n){n[0]&1&&i.set_custom_element_data(t,"clientstyling",r[0]),n[0]&2&&i.set_custom_element_data(t,"clientstylingurl",r[1])},d(r){r&&i.detach(t)}}}function it(e){let t,r,n=O[e[2]].title&&ot(e),s=O[e[2]].description&&at(e);return{c(){t=i.element("div"),n&&n.c(),r=i.space(),s&&s.c(),i.attr(t,"class","PlayerConsentsHeader svelte-ltld8s")},m(o,a){i.insert(o,t,a),n&&n.m(t,null),i.append(t,r),s&&s.m(t,null)},p(o,a){O[o[2]].title?n?n.p(o,a):(n=ot(o),n.c(),n.m(t,r)):n&&(n.d(1),n=null),O[o[2]].description?s?s.p(o,a):(s=at(o),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(o){o&&i.detach(t),n&&n.d(),s&&s.d()}}}function ot(e){let t,r=O[e[2]].title+"",n;return{c(){t=i.element("h2"),n=i.text(r),i.attr(t,"class","PlayerConsentsTitle")},m(s,o){i.insert(s,t,o),i.append(t,n)},p(s,o){o[0]&4&&r!==(r=O[s[2]].title+"")&&i.set_data(n,r)},d(s){s&&i.detach(t)}}}function at(e){let t,r=O[e[2]].description+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","PlayerConsentsDescription")},m(s,o){i.insert(s,t,o),i.append(t,n)},p(s,o){o[0]&4&&r!==(r=O[s[2]].description+"")&&i.set_data(n,r)},d(s){s&&i.detach(t)}}}function lt(e){let t;return{c(){t=i.element("sup"),t.textContent="*",i.attr(t,"class","ConsentRequired svelte-ltld8s")},m(r,n){i.insert(r,t,n)},d(r){r&&i.detach(t)}}}function ut(e){let t,r=e[51].description+"",n;return{c(){t=i.element("p"),n=i.text(r),i.attr(t,"class","ConsentDescription svelte-ltld8s")},m(s,o){i.insert(s,t,o),i.append(t,n)},p(s,o){o[0]&768&&r!==(r=s[51].description+"")&&i.set_data(n,r)},d(s){s&&i.detach(t)}}}function ht(e){let t,r,n,s=e[51].friendlyName+"",o,a,l,u,c,h,p,d,g,T,N,C=e[51].mustAccept===!0&<(),_=e[3]==="true"&&ut(e);function P(){e[24].call(h,e[51])}function x(){return e[25](e[51])}return{c(){t=i.element("div"),r=i.element("div"),n=i.element("h4"),o=i.text(s),a=i.space(),C&&C.c(),l=i.space(),_&&_.c(),u=i.space(),c=i.element("label"),h=i.element("input"),d=i.space(),g=i.element("span"),i.attr(n,"class","ConsentName svelte-ltld8s"),i.attr(r,"class","ConsentContent"),i.attr(h,"type","checkbox"),h.disabled=p=e[51].mustAccept===!0&&e[12][e[51].tagCode]===!0,i.attr(h,"class","svelte-ltld8s"),i.attr(g,"class","Slider Round svelte-ltld8s"),i.attr(c,"class","ToggleSwitch svelte-ltld8s"),i.attr(t,"class","ConsentItem svelte-ltld8s")},m(E,H){i.insert(E,t,H),i.append(t,r),i.append(r,n),i.append(n,o),i.append(n,a),C&&C.m(n,null),i.append(r,l),_&&_.m(r,null),i.append(t,u),i.append(t,c),i.append(c,h),h.checked=e[13][e[51].tagCode],i.append(c,d),i.append(c,g),T||(N=[i.listen(h,"change",P),i.listen(h,"change",x)],T=!0)},p(E,H){e=E,H[0]&768&&s!==(s=e[51].friendlyName+"")&&i.set_data(o,s),e[51].mustAccept===!0?C||(C=lt(),C.c(),C.m(n,null)):C&&(C.d(1),C=null),e[3]==="true"?_?_.p(e,H):(_=ut(e),_.c(),_.m(r,null)):_&&(_.d(1),_=null),H[0]&4864&&p!==(p=e[51].mustAccept===!0&&e[12][e[51].tagCode]===!0)&&(h.disabled=p),H[0]&8960&&(h.checked=e[13][e[51].tagCode])},d(E){E&&i.detach(t),C&&C.d(),_&&_.d(),T=!1,i.run_all(N)}}}function ct(e){let t,r,n,s=e[48].friendlyName+"",o,a,l,u,c,h,p,d,g,T;function N(){e[21].call(u,e[48])}function C(){return e[22](e[48])}function _(...E){return e[23](e[48],...E)}let P=i.ensure_array_like(e[9].filter(_)),x=[];for(let E=0;E<P.length;E+=1)x[E]=ht(st(e,P,E));return{c(){t=i.element("div"),r=i.element("div"),n=i.element("h3"),o=i.text(s),a=i.space(),l=i.element("label"),u=i.element("input"),c=i.space(),h=i.element("span"),p=i.space(),d=i.element("div");for(let E=0;E<x.length;E+=1)x[E].c();i.attr(u,"type","checkbox"),i.attr(u,"class","svelte-ltld8s"),i.attr(h,"class","Slider Round svelte-ltld8s"),i.attr(l,"class","ToggleSwitch Big svelte-ltld8s"),i.attr(r,"class","AccordionHeader svelte-ltld8s"),i.attr(d,"class","AccordionContent svelte-ltld8s"),i.attr(t,"class","AccordionItem svelte-ltld8s")},m(E,H){i.insert(E,t,H),i.append(t,r),i.append(r,n),i.append(n,o),i.append(r,a),i.append(r,l),i.append(l,u),u.checked=e[11][e[48].categoryTagCode],i.append(l,c),i.append(l,h),i.append(t,p),i.append(t,d);for(let S=0;S<x.length;S+=1)x[S]&&x[S].m(d,null);g||(T=[i.listen(u,"change",N),i.listen(u,"change",C)],g=!0)},p(E,H){if(e=E,H[0]&256&&s!==(s=e[48].friendlyName+"")&&i.set_data(o,s),H[0]&2304&&(u.checked=e[11][e[48].categoryTagCode]),H[0]&45832){P=i.ensure_array_like(e[9].filter(_));let S;for(S=0;S<P.length;S+=1){const U=st(e,P,S);x[S]?x[S].p(U,H):(x[S]=ht(U),x[S].c(),x[S].m(d,null))}for(;S<x.length;S+=1)x[S].d(1);x.length=P.length}},d(E){E&&i.detach(t),i.destroy_each(x,E),g=!1,i.run_all(T)}}}function ft(e){let t,r,n,s,o;return{c(){t=i.element("div"),r=i.element("circle-exclamation-icon"),n=i.space(),s=i.element("strong"),o=i.text(e[6]),i.set_custom_element_data(r,"class","svelte-ltld8s"),i.attr(s,"class","ErrorMessage svelte-ltld8s"),i.attr(t,"class","ConsentErrorContainer svelte-ltld8s")},m(a,l){i.insert(a,t,l),i.append(t,r),i.append(t,n),i.append(t,s),i.append(s,o)},p(a,l){l[0]&64&&i.set_data(o,a[6])},d(a){a&&i.detach(t)}}}function Kn(e){let t,r,n;function s(l,u){return l[10]?Yn:l[7]?Qn:Jn}let o=s(e),a=o(e);return{c(){t=i.element("div"),r=i.element("div"),a.c(),i.attr(r,"class","ConsentsContainer"),i.attr(t,"class",n=i.null_to_empty(e[5]?"DisplayNone":"")+" svelte-ltld8s")},m(l,u){i.insert(l,t,u),i.append(t,r),a.m(r,null),e[26](r)},p(l,u){o===(o=s(l))&&a?a.p(l,u):(a.d(1),a=o(l),a&&(a.c(),a.m(r,null))),u[0]&32&&n!==(n=i.null_to_empty(l[5]?"DisplayNone":"")+" svelte-ltld8s")&&i.attr(t,"class",n)},i:i.noop,o:i.noop,d(l){l&&i.detach(t),a.d(),e[26](null)}}}function $n(e,t,r){let n;i.component_subscribe(e,Vn,f=>r(33,n=f));let{session:s=""}=t,{userid:o=""}=t,{endpoint:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{lang:c="en"}=t,{displayconsentdescription:h=""}=t,{translationurl:p=""}=t,d=!1,g,T=!1,N=!1,C="",_="",P="",x="",E=[],H=[],S=[],U=!0,se=!0,R={},ie={},M={},I={};Object.keys(O).forEach(f=>{rt(f,O[f])});const kt=()=>{Xn(c)},Dt=()=>{let f=new URL(p);fetch(f.href).then(m=>m.json()).then(m=>{Object.keys(m).forEach(B=>{rt(B,m[B])})}).catch(m=>{console.log(m)})},Gt=()=>{let f=document.createElement("style");f.innerHTML=l,g.appendChild(f)},jt=()=>{try{r(5,d=!0);let f=new URL(u),m=document.createElement("style");fetch(f.href).then(B=>B.text()).then(B=>{m.innerHTML=B,setTimeout(()=>{g.appendChild(m)},1),setTimeout(()=>{r(5,d=!1)},500)})}catch(f){const m=f instanceof TypeError?n("invalidUrl"):f.message;oe(m)}},zt=()=>{s&&(C=s,N=!0),o&&(_=o)},oe=(f,m=!1)=>{m?r(7,x=f):(Wt(),r(6,P=f))},K=(f,m,B,k=!1)=>$(this,null,function*(){try{const A=yield fetch(f,B);if(!A.ok)throw new Error(n(m));const D=yield A.json();return N?D:D.filter(z=>z.showOnRegister===!0)}catch(A){throw oe(A instanceof TypeError?n(m):A.message,k),A}}),Ft=()=>$(this,null,function*(){try{let f=[],m=[];N?[f,m]=yield Ue():f=yield Ue(),r(10,U=!1),r(9,H=[...f]),r(8,E=Vt(H).sort((B,k)=>B.categoryTagCode.localeCompare(k.categoryTagCode))),r(11,R=Xt(E)),ie=G({},R),S=[...m],Zt()}catch(f){throw r(10,U=!1),oe(f instanceof TypeError?n("invalidUrl"):f.message,!0),f}}),Ue=()=>$(this,null,function*(){const f=new URL(`${a}/api/v1/gm/consents`);if(f.searchParams.append("Status","Active"),!N)return yield K(f.href,"fetchConsentsError",{method:"GET"},!0);const m=new URL(`${a}/api/v1/gm/user-consents/${_}`);return yield Promise.all([K(f.href,"fetchConsentsError",{method:"GET"},!0),K(m.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":C,"Content-Type":"application/json"}})])}),Vt=f=>{const m=new Map;return f.forEach(B=>{m.has(B.category.categoryTagCode)||m.set(B.category.categoryTagCode,B.category)}),Array.from(m.values())},Xt=f=>{const m=localStorage.getItem("categoryToggle"+_);if(m===null){const B=f.reduce((k,A)=>(k[A.categoryTagCode]=!1,k),{});return localStorage.setItem("categoryToggle"+_,JSON.stringify(B)),B}else return JSON.parse(m)},Zt=()=>{H.forEach(f=>{const m=S.find(B=>B.tagCode===f.tagCode);r(12,M[f.tagCode]=m&&m.status==="Accepted",M)}),r(13,I=G({},M))},Wt=()=>{r(13,I=G({},M)),r(11,R=G({},ie))},Me=()=>$(this,null,function*(){if(!se)return;se=!1;const f=[],m=[],B=H.filter(A=>A.mustAccept===!0&&(!I[A.tagCode]||I[A.tagCode]===!1));if(window.postMessage({type:"HasMandatoryConsents",data:B.length>0}),Object.keys(I).forEach(A=>{const D=S.find(z=>z.tagCode===A);I[A]!==M[A]&&(D?f.push({tagCode:A,status:I[A]?"Accepted":"Denied"}):m.push({tagCode:A,status:I[A]?"Accepted":"Denied"}))}),!N){localStorage.setItem("categoryToggle"+_,JSON.stringify(R)),ie=G({},R),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(m)},window.location.href),se=!0;return}const k=new URL(`${a}/api/v1/gm/user-consents/${_}`);try{const A=yield Promise.allSettled([m.length>0&&K(k.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":C,"Content-Type":"application/json"},body:JSON.stringify({userConsents:m})}),f.length>0&&K(k.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":C,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})})]);A.forEach((D,z)=>{if(D.status==="rejected"||D.value.ok===!1){const Ge=z<m.length?m[z]:f[z-m.length];r(13,I[Ge.tagCode]=M[Ge.tagCode],I)}}),A.every(D=>D.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+_,JSON.stringify(R)),ie=G({},R),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,M=G({},I)))}catch(A){oe(A instanceof TypeError?n("saveChangesError"):A.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{se=!0}}),ke=f=>{H.filter(m=>m.category.categoryTagCode===f).forEach(m=>{m.mustAccept&&M[m.tagCode]===!0||r(13,I[m.tagCode]=R[f]||!1,I)}),Me()},De=f=>{r(11,R[f.categoryTagCode]=!1,R),Me()};i.onMount(()=>{setTimeout(()=>{r(20,T=!0)},50)});function qt(f){R[f.categoryTagCode]=this.checked,r(11,R)}const Jt=f=>ke(f.categoryTagCode),Qt=(f,m)=>m.category.categoryTagCode===f.categoryTagCode;function Yt(f){I[f.tagCode]=this.checked,r(13,I)}const Kt=f=>De(f.category);function $t(f){i.binding_callbacks[f?"unshift":"push"](()=>{g=f,r(4,g)})}return e.$$set=f=>{"session"in f&&r(16,s=f.session),"userid"in f&&r(17,o=f.userid),"endpoint"in f&&r(18,a=f.endpoint),"clientstyling"in f&&r(0,l=f.clientstyling),"clientstylingurl"in f&&r(1,u=f.clientstylingurl),"lang"in f&&r(2,c=f.lang),"displayconsentdescription"in f&&r(3,h=f.displayconsentdescription),"translationurl"in f&&r(19,p=f.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&T&&(zt(),Ft()),e.$$.dirty[0]&19&&g&&(l&&Gt(),u&&jt()),e.$$.dirty[0]&4&&c&&kt(),e.$$.dirty[0]&524288&&p&&Dt()},[l,u,c,h,g,d,P,x,E,H,U,R,M,I,ke,De,s,o,a,p,T,qt,Jt,Qt,Yt,Kt,$t]}class Mt extends i.SvelteComponent{constructor(t){super(),i.init(this,t,$n,Kn,i.safe_not_equal,{session:16,userid:17,endpoint:18,clientstyling:0,clientstylingurl:1,lang:2,displayconsentdescription:3,translationurl:19},qn,[-1,-1])}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),i.flush()}get userid(){return this.$$.ctx[17]}set userid(t){this.$$set({userid:t}),i.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),i.flush()}get displayconsentdescription(){return this.$$.ctx[3]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),i.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}}i.create_custom_element(Mt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},lang:{},displayconsentdescription:{},translationurl:{}},[],[],!0);exports.default=Mt;
|