@everymatrix/casino-promotions 1.4.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function y(){}function S(t){return t()}function P(){return Object.create(null)}function F(t){t.forEach(S)}function x(t){return"function"==typeof t}function L(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let O,W,C;function Y(t,e){return(O=O||document.createElement("a")).href=e,t===O.href}function M(t,...e){if(null==t)return y;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function $(t,e){t.appendChild(e)}function j(t,e,r){t.insertBefore(e,r||null)}function z(t){t.parentNode.removeChild(t)}function q(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function V(t){return document.createElement(t)}function Z(t){return document.createTextNode(t)}function e(){return Z(" ")}function X(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function K(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function J(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function Q(t,e,r,o){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,o?"important":"")}function R(t){C=t}const U=[],D=[],G=[],k=[],tt=Promise.resolve();let et=!1;function rt(){et||(et=!0,tt.then(g))}function ot(t){G.push(t)}const nt=new Set;let it=0;function g(){const t=C;do{for(;it<U.length;){const t=U[it];it++,R(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),F(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(ot))}for(R(null),U.length=0,it=0;D.length;)D.pop()();for(let t=0;t<G.length;t+=1){const o=G[t];nt.has(o)||(nt.add(o),o())}}while(G.length=0,U.length);for(;k.length;)k.pop()();et=!1,nt.clear(),R(t)}const st=new Set;let at;"function"==typeof HTMLElement&&(at=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(S).filter(x);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){F(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(F(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=y}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const r=[];function lt(o,n=y){let i;const s=new Set;function a(t){if(L(o,t)&&(o=t,i)){const t=!r.length;for(const t of s)t[1](),r.push(t,o);if(t){for(let t=0;t<r.length;t+=2)r[t][0](r[t+1]);r.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=y){const r=[t,e];return s.add(r),1===s.size&&(i=n(a)||y),t(o),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function t(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,h=a.length<2;return{subscribe:lt(e,e=>{let r=!1;const o=[];let n=0,i=y;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),h?e(t):i=x(t)?t:y)},t=c.map((t,e)=>M(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){F(t),i()}}).subscribe}}function ct(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ht));var e}var ht="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ut(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function pt(t,e,r){return t.concat(e).map(function(t){return ut(t,r)})}function ft(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function dt(t,e){try{return e in t}catch(t){return!1}}function mt(o,n,i){var s={};return i.isMergeableObject(o)&&ft(o).forEach(function(t){s[t]=ut(o[t],i)}),ft(n).forEach(function(e){var t,r;(!dt(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(dt(o,e)&&i.isMergeableObject(n[e])?s[e]=function(t){if(!t.customMerge)return a;t=t.customMerge(e);return"function"==typeof t?t:a}(i)(o[e],n[e],i):s[e]=ut(n[e],i))}),s}function a(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||pt,r.isMergeableObject=r.isMergeableObject||ct,r.cloneUnlessOtherwiseSpecified=ut;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):mt(t,e,r):ut(e,r)}a.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return a(t,e,r)},{});throw new Error("first argument should be an array")};var bt=a,yt=function(t,e){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function gt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}yt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var m,_,b,v=function(){return(v=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function _t(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function vt(t){return t.type===_.literal}function Et(t){return t.type===_.number}function wt(t){return t.type===_.date}function Tt(t){return t.type===_.time}function At(t){return t.type===_.select}function Bt(t){return t.type===_.plural}function Ht(t){return t.type===_.tag}function St(t){return t&&"object"==typeof t&&t.type===b.number}function Pt(t){return t&&"object"==typeof t&&t.type===b.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=_=_||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=b=b||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xt=/(?:[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;var Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,It=/^(@+)?(\+|#+)?[rs]?$/g,Nt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ct=/^(0+)$/;function Mt(t){var o={};return"r"===t[t.length-1]?o.roundingPriority="morePrecision":"s"===t[t.length-1]&&(o.roundingPriority="lessPrecision"),t.replace(It,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function Rt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ut(t){return Rt(t)||{}}function Dt(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=v(v(v({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return v(v({},t),Ut(e))},{}));continue;case"engineering":s=v(v(v({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return v(v({},t),Ut(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Nt,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ct.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(Ot.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ot,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var i=n.options[0];"w"===i?s=v(v({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=v(v({},s),Mt(i)))}else It.test(n.stem)?s=v(v({},s),Mt(n.stem)):((i=Rt(n.stem))&&(s=v(v({},s),i)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ct.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=v(v({},s),o)))}return s}var Gt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var kt=new RegExp("^".concat(o.source,"*")),Ft=new RegExp("".concat(o.source,"*$"));function E(t,e){return{start:t,end:e}}var o=!!String.prototype.startsWith,$t=!!String.fromCodePoint,jt=!!Object.fromEntries,zt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,Xt=!!String.prototype.trimEnd,Kt=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Wt=!0;try{Wt="a"===(null==(de=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:de[0])}catch(y){Wt=!1}var Yt,qt,Zt=o?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Jt=$t?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Qt=jt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},te=zt?function(t,e){return t.codePointAt(e)}:function(t,e){var r,o=t.length;if(!(e<0||o<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===o||(o=t.charCodeAt(e+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},ee=Vt?function(t){return t.trimStart()}:function(t){return t.replace(kt,"")},re=Xt?function(t){return t.trimEnd()}:function(t){return t.replace(Ft,"")};function oe(t,e){return new RegExp(t,e)}qt=Wt?(Yt=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Yt.lastIndex=e,null!=(e=Yt.exec(t)[1])?e:""}):function(t,e){for(var r,o=[];;){var n=te(t,e);if(void 0===n||se(n)||(33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;o.push(n),e+=65536<=n?2:1}return Jt.apply(void 0,o)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ie(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:_.pound,location:E(i,this.clonePosition())})}}}return{val:o,err:null}},n.prototype.parseTag=function(t,e){var r=this.clonePosition(),o=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_.literal,value:"<".concat(o,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ie(this.char()))return this.error(m.INVALID_TAG,E(t,this.clonePosition()));var n=this.clonePosition();return o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_.tag,value:o,children:e,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(t,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(m.INVALID_TAG,E(r,this.clonePosition()))},n.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=E(r,this.clonePosition());return{val:{type:_.literal,value:o,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},n.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Jt.apply(void 0,e)},n.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Jt(r))},n.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_.argument,value:o,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=qt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:E(t,this.clonePosition())}},n.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(f=re(d.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:E(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(o)).err)return c;var h=E(o,this.clonePosition());if(l&&Zt(null==l?void 0:l.style,"::",0)){var u=ee(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?d:{val:{type:_.number,value:r,location:h,style:d.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,f=(this.locale&&(p=function(t,e){for(var r="",o=0;o<t.length;o++){var n=t.charAt(o);if("j"===n){for(var i=0;o+1<t.length&&t.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=t.language)&&(e=t.maximize().region),(Gt[e||""]||Gt[r||""]||Gt["".concat(r,"-001")]||Gt["001"])[0]}(e);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale)),{type:b.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(xt,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"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":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-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":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<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""}),n):{}});return{val:{type:"date"===s?_.date:_.time,value:r,location:h,style:f},err:null}}return{val:{type:"number"===s?_.number:"date"===s?_.date:_.time,value:r,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,v({},p)));this.bumpSpace();var d,f=this.parseIdentifierIfPossible(),h=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=d.val}l=this.tryParsePluralOrSelectOptions(t,s,e,f);if(l.err)return l;if((c=this.tryParseArgumentClose(o)).err)return c;u=E(o,this.clonePosition());return"select"===s?{val:{type:_.select,value:r,options:Qt(l.val),location:u},err:null}:{val:{type:_.plural,value:r,options:Qt(l.val),offset:h,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,E(i,a))}},n.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(Lt).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(m.INVALID_NUMBER_SKELETON,e)}return{val:{type:b.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Dt(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=E(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,r);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;i.push([a,{value:c.val,location:E(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===e?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},n.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=E(o,this.clonePosition());return n?Kt(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=te(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},n.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},n.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},n.prototype.bumpIf=function(t){if(Zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&se(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var ne=n;function n(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function ie(t){return 97<=t&&t<=122||65<=t&&t<=90}function se(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function ae(t,e){e=v({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new ne(t,e).parse();if(t.err)throw(r=SyntaxError(m[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,At(t)||Bt(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Et(t)&&St(t.style)||(wt(t)||Tt(t))&&Pt(t.style)?delete t.style.location:Ht(t)&&r(t.children)})}(t.val),t.val}function le(t,e){var r=e&&e.cache?e.cache:me,o=e&&e.serializer?e.serializer:pe;return(e&&e.strategy?e.strategy:function(t,e){return ue(t,this,1===t.length?ce:he,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ce(t,e,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=e.get(r);return void 0===n&&(n=t.call(this,o),e.set(r,n)),n}function he(t,e,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),n=e.get(r);return void 0===n&&(n=t.apply(this,o),e.set(r,n)),n}function ue(t,e,r,o,n){return r.bind(e,t,o,n)}var pe=function(){return JSON.stringify(arguments)};function fe(){this.cache=Object.create(null)}fe.prototype.get=function(t){return this.cache[t]},fe.prototype.set=function(t,e){this.cache[t]=e};var w,de,me={create:function(){return new fe}},be={variadic:function(t,e){return ue(t,this,he,e.cache.create(),e.serializer)},monadic:function(t,e){return ue(t,this,ce,e.cache.create(),e.serializer)}};(de=w=w||{}).MISSING_VALUE="MISSING_VALUE",de.INVALID_VALUE="INVALID_VALUE",de.MISSING_INTL_API="MISSING_INTL_API";gt(Pe,ve=Error),Pe.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,ye,ge,_e,ve,Ee=Pe,we=(gt(Se,_e=Ee),Se),Te=(gt(He,ge=Ee),He),Ae=(gt(Be,ye=Ee),Be);function Be(t,e){return ye.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),w.MISSING_VALUE,e)||this}function He(t,e,r){return ge.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),w.INVALID_VALUE,r)||this}function Se(t,e,r,o){return _e.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),w.INVALID_VALUE,o)||this}function Pe(t,e,r){t=ve.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function xe(t,e,r,o,n,i,s){if(1===t.length&&vt(t[0]))return[{type:T.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var h=c[l];if(vt(h))a.push({type:T.literal,value:h.value});else if(h.type===_.pound)"number"==typeof i&&a.push({type:T.literal,value:r.getNumberFormat(e).format(i)});else{var u=h.value;if(!(n&&u in n))throw new Ae(u,s);u=n[u];if(h.type===_.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(wt(h)){var p="string"==typeof h.style?o.date[h.style]:Pt(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(u)})}else if(Tt(h))p="string"==typeof h.style?o.time[h.style]:Pt(h.style)?h.style.parsedOptions:o.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(u)});else if(Et(h))(p="string"==typeof h.style?o.number[h.style]:St(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(e,p).format(u)});else{if(Ht(h)){var f=h.children,d=h.value,m=n[d];if("function"!=typeof m)throw new Te(d,"function",s);d=m(xe(f,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?T.literal:T.object,value:t}}))}if(At(h)){if(!(b=h.options[u]||h.options.other))throw new we(h.value,u,Object.keys(h.options),s);a.push.apply(a,xe(b.value,e,r,o,n))}else if(Bt(h)){if(!(b=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new Ee('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',w.MISSING_INTL_API,s);var m=r.getPluralRules(e,{type:h.pluralType}).select(u-(h.offset||0)),b=h.options[m]||h.options.other}if(!b)throw new we(h.value,u,Object.keys(h.options),s);a.push.apply(a,xe(b.value,e,r,o,n,u-(h.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===T.literal&&e.type===T.literal?r.value+=e.value:t.push(e),t},[])}function Le(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(o=T=T||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},l.__parse=ae,l.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"}}};var Oe=l;function l(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===T.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return xe(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=l.resolveLocale(e),"string"==typeof t){if(this.message=t,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=l.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?v(v(v({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=v(v({},r[e]),o[e]||{}),t},{})):r),t},v({},n)):n),this.formatters=o&&o.formatters||{getNumberFormat:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,_t([void 0],e,!1)))},{cache:Le((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:be.variadic}),getDateTimeFormat:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,_t([void 0],e,!1)))},{cache:Le(e.dateTime),strategy:be.variadic}),getPluralRules:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,_t([void 0],e,!1)))},{cache:Le(e.pluralRules),strategy:be.variadic})}}const i={},Ie=(t,e,r)=>r&&(e in i||(i[e]={}),t in i[e]||(i[e][t]=r),r),Ne=(e,r)=>{if(null!=r){if(r in i&&e in i[r])return i[r][e];var o=We(r);for(let t=0;t<o.length;t++){var n=function(t,r){if(!Me(t))return null;t=function(t){return Ce[t]||null}(t);{var o=r;if(null==o)return;if(o in t)return t[o];const n=o.split(".");let e=t;for(let t=0;t<n.length;t++)if("object"==typeof e){if(0<t){const o=n.slice(t,n.length).join(".");if(o in e){e=e[o];break}}e=e[n[t]]}else e=void 0;return e}}(o[t],e);if(n)return Ie(e,r,n)}}};let Ce;const I=lt({});function Me(t){return t in Ce}function Re(e,...r){delete i[e],I.update(t=>(t[e]=bt.all([t[e]||{},...r]),t))}t([I],([t])=>Object.keys(t)),I.subscribe(t=>Ce=t);const Ue={};function De(t){return Ue[t]}function Ge(t){return null!=t&&We(t).some(t=>{return null==(t=De(t))?void 0:t.size})}const ke={};function Fe(t){if(!Ge(t))return t in ke?ke[t]:Promise.resolve();const e=We(t).map(t=>{var e=De(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return ke[t]=Promise.all(e.map(([t,e])=>{{var o=t;t=e;const r=Promise.all(t.map(t=>{var e=o,r=t;return Ue[e].delete(r),0===Ue[e].size&&delete Ue[e],t().then(t=>t.default||t)}));return r.then(t=>Re(o,...t))}})).then(()=>{if(Ge(t))return Fe(t);delete ke[t]}),ke[t]}function $e(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const je={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const ze=lt(!1);let Ve;const Xe=lt(null);function Ke(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function We(t,e=je.fallbackLocale){t=Ke(t);return e?[...new Set([...t,...Ke(e)])]:t}function h(){return null!=Ve?Ve:void 0}Xe.subscribe(t=>{Ve=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const N=Object.assign(Object.assign({},Xe),{set:e=>{if(e&&function(t){if(null!=t){var e=We(t);for(let t=0;t<e.length;t++){var r=e[t];if(Me(r))return r}}}(e)&&Ge(e)){var r=je["loadingDelay"];let t;return"undefined"!=typeof window&&null!=h()&&r?t=window.setTimeout(()=>ze.set(!0),r):ze.set(!0),Fe(e).then(()=>{Xe.set(e)}).finally(()=>{clearTimeout(t),ze.set(!1)})}return Xe.set(e)}}),Ye=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},qe=(t,e)=>{var r=je["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Ze=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=qe("number",r)),new Intl.NumberFormat(e,t)}),Je=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=qe("date",r):0===Object.keys(t).length&&(t=qe("date","short")),new Intl.DateTimeFormat(e,t)}),Qe=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=qe("time",r):0===Object.keys(t).length&&(t=qe("time","short")),new Intl.DateTimeFormat(e,t)}),tr=Ye((t,e=h())=>new Oe(t,e,je.formats,{ignoreTag:je.ignoreTag})),er=t([N,I],()=>(t,e={})=>{var r,o;let n=e;"object"==typeof t&&(t=(n=t).id);var{values:i,locale:s=h(),default:a}=n;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ne(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=je).handleMissingMessage)?void 0:r.call(o,{locale:s,id:t,defaultValue:a}))?r:a)?o:t;if(!i)return l;let c=l;try{c=tr(l,s).format(i)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c});function rr(t,e){Re(t,e)}t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Qe(Object.assign({locale:e},t))})(e).format(t)),t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Je(Object.assign({locale:e},t))})(e).format(t)),t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Ze(Object.assign({locale:e},t))})(e).format(t)),t([N,I],()=>(t,e=h())=>Ne(t,e));var or,nr,c="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==c&&c,ir="URLSearchParams"in c,sr="Symbol"in c&&"iterator"in Symbol,ar="FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch(t){return!1}}(),lr="FormData"in c,cr="ArrayBuffer"in c;function hr(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function ur(t){return t="string"!=typeof t?String(t):t}function pr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return sr&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function fr(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function dr(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function mr(t){var e=new FileReader,r=dr(e);return e.readAsArrayBuffer(t),r}function br(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function yr(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:ar&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:lr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ir&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():cr&&ar&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=br(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):cr&&(ArrayBuffer.prototype.isPrototypeOf(t)||nr(t))?this._bodyArrayBuffer=br(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ir&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ar&&(this.blob=function(){var t=fr(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?fr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(mr)}),this.text=function(){var t,e,r=fr(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=dr(t=new FileReader),t.readAsText(r),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},lr&&(this.formData=function(){return this.text().then(_r)}),this.json=function(){return this.text().then(JSON.parse)},this}cr&&(or=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],nr=ArrayBuffer.isView||function(t){return t&&-1<or.indexOf(Object.prototype.toString.call(t))}),u.prototype.append=function(t,e){t=hr(t),e=ur(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},u.prototype.delete=function(t){delete this.map[hr(t)]},u.prototype.get=function(t){return t=hr(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(hr(t))},u.prototype.set=function(t,e){this.map[hr(t)]=ur(e)},u.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),pr(r)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),pr(e)},u.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),pr(r)},sr&&(u.prototype[Symbol.iterator]=u.prototype.entries);var gr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function p(t,e){if(!(this instanceof p))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(e=e||{}).body;if(t instanceof p){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new u(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new u(e.headers)),this.method=(r=(t=e.method||this.method||"GET").toUpperCase(),-1<gr.indexOf(r)?r:t),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function _r(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(e=(t=t.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function f(t,e){if(!(this instanceof f))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},yr.call(p.prototype),yr.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},f.error=function(){var t=new f(null,{status:0,statusText:""});return t.type="error",t};var vr=[301,302,303,307,308],Er=(f.redirect=function(t,e){if(-1===vr.indexOf(e))throw new RangeError("Invalid status code");return new f(null,{status:e,headers:{location:t}})},c.DOMException);try{new Er}catch(y){(Er=function(t,e){this.message=t,this.name=e;e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Er.prototype.constructor=Er}function wr(o,s){return new Promise(function(n,t){var e=new p(o,s);if(e.signal&&e.signal.aborted)return t(new Er("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new u,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var t=t.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)},o=(e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){n(new f(o,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new Er("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&c.location.href?c.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(ar?i.responseType="blob":cr&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof u?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,ur(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}wr.polyfill=!0,c.fetch||(c.fetch=wr,c.Headers=u,c.Request=p,c.Response=f),self.fetch.bind(self);var Tr=function(t,e){return(Tr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Ar(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Tr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Br(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&o>=t.length?void 0:t)&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function Sr(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function d(t){return"function"==typeof t}function Pr(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var xr=Pr(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Lr(t,e){t&&0<=(e=t.indexOf(e))&&t.splice(e,1)}s.prototype.unsubscribe=function(){var t,e,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Br(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(d(i))try{i()}catch(t){n=t instanceof xr?t.errors:[t]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Br(i),c=l.next();!c.done;c=l.next()){var h=c.value;try{Cr(h)}catch(t){n=null!=n?n:[],t instanceof xr?n=Sr(Sr([],Hr(n)),Hr(t.errors)):n.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new xr(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Cr(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(e=this._finalizers)?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&Lr(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=(($t=new s).closed=!0,$t);var Or=s,Ir=Or.EMPTY;function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}function Nr(t){return t instanceof Or||t&&"closed"in t&&d(t.remove)&&d(t.add)&&d(t.unsubscribe)}function Cr(t){d(t)?t():t.unsubscribe()}var Mr=void 0,Rr=!1,Ur=!1,Dr={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Dr.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,Sr([t,e],Hr(r))):setTimeout.apply(void 0,Sr([t,e],Hr(r)))},clearTimeout:function(t){var e=Dr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(){}var kr=null;function Fr(t){if(Rr){var e=!kr;if(e&&(kr={errorThrown:!1,error:null}),t(),e){var e=kr,r=e.errorThrown,e=e.error;if(kr=null,r)throw e}}else t()}Ar(A,$r=Or),A.create=function(t,e,r){return new Wr(t,e,r)},A.prototype.next=function(t){this.isStopped||this._next(t)},A.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},A.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},A.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,$r.prototype.unsubscribe.call(this),this.destination=null)},A.prototype._next=function(t){this.destination.next(t)},A.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},A.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var $r,jr=A,zr=Function.prototype.bind;function A(t){var e=$r.call(this)||this;return e.isStopped=!1,t?Nr(e.destination=t)&&t.add(e):e.destination=Jr,e}function Vr(t,e){return zr.call(t,e)}qr.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Zr(t)}},qr.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Zr(t)}else Zr(t)},qr.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Zr(t)}};var Xr,Kr=qr,Wr=(Ar(Yr,Xr=jr),Yr);function Yr(t,e,r){var o=Xr.call(this)||this,r=d(t)||!t?{next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:o&&Ur?((e=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},{next:t.next&&Vr(t.next,e),error:t.error&&Vr(t.error,e),complete:t.complete&&Vr(t.complete,e)}):t;return o.destination=new Kr(r),o}function qr(t){this.partialObserver=t}function Zr(t){var e=t;Dr.setTimeout(function(){throw e})}var Jr={closed:!0,next:Gr,error:function(t){throw t},complete:Gr},jt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qr(t){return t}B.prototype.lift=function(t){var e=new B;return e.source=this,e.operator=t,e},B.prototype.subscribe=function(t,e,r){var o,n=this,i=(o=t)&&o instanceof jr||o&&d(o.next)&&d(o.error)&&d(o.complete)&&Nr(o)?t:new Wr(t,e,r);return Fr(function(){var t=n.operator,e=n.source;i.add(t?t.call(i,e):e?n._subscribe(i):n._trySubscribe(i))}),i},B.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},B.prototype.forEach=function(o,t){var n=this;return new(t=eo(t))(function(t,e){var r=new Wr({next:function(t){try{o(t)}catch(t){e(t),r.unsubscribe()}},error:e,complete:t});n.subscribe(r)})},B.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},B.prototype[jt]=function(){return this},B.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Qr:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},B.prototype.toPromise=function(t){var o=this;return new(t=eo(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},B.create=function(t){return new B(t)};var to=B;function B(t){t&&(this._subscribe=t)}function eo(t){return null!=(t=null!=t?t:Mr)?t:Promise}var ro,oo,no,io=Pr(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),zt=(Ar(H,no=to),H.prototype.lift=function(t){var e=new so(this,this);return e.operator=t,e},H.prototype._throwIfClosed=function(){if(this.closed)throw new io},H.prototype.next=function(n){var i=this;Fr(function(){var e,t;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=Br(i.currentObservers),o=r.next();!o.done;o=r.next())o.value.next(n)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},H.prototype.error=function(e){var r=this;Fr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},H.prototype.complete=function(){var e=this;Fr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},H.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(H.prototype,"observed",{get:function(){var t;return 0<(null==(t=this.observers)?void 0:t.length)},enumerable:!1,configurable:!0}),H.prototype._trySubscribe=function(t){return this._throwIfClosed(),no.prototype._trySubscribe.call(this,t)},H.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},H.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,o=this.isStopped,n=this.observers;return r||o?Ir:(this.currentObservers=null,n.push(t),new Or(function(){e.currentObservers=null,Lr(n,t)}))},H.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,o=this.isStopped;e?t.error(r):o&&t.complete()},H.prototype.asObservable=function(){var t=new to;return t.source=this,t},H.create=function(t,e){return new so(t,e)},H),so=(Ar(ho,oo=zt),ho.prototype.next=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.next)&&r.call(e,t)},ho.prototype.error=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.error)&&r.call(e,t)},ho.prototype.complete=function(){var t,e;null!=(e=null==(t=this.destination)?void 0:t.complete)&&e.call(t)},ho.prototype._subscribe=function(t){var e;return null!=(e=null==(e=this.source)?void 0:e.subscribe(t))?e:Ir},ho),ao={now:function(){return(ao.delegate||Date).now()},delegate:void 0},lo=(Ar(co,ro=zt),co.prototype.next=function(t){var e=this,r=e.isStopped,o=e._buffer,n=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(o.push(t),n||o.push(i.now()+e)),this._trimBuffer(),ro.prototype.next.call(this,t)},co.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!t.closed;n+=r?1:2)t.next(o[n]);return this._checkFinalizedStatuses(t),e},co.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*t;if(t<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},co);function co(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=ao);var o=ro.call(this)||this;return o._bufferSize=t,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,e),o}function ho(t,e){var r=oo.call(this)||this;return r.destination=t,r.source=e,r}function H(){var t=no.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let uo=[],po={};window.emWidgets={topic:(t,e=0)=>{return-1==uo.indexOf(t)&&(e=new lo(e),po[t]=e,uo.push(t)),po[t]}};const fo={en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment."}},zh:{promotions:{promotionsTitle:"促銷活動",promotionsButton:"更多信息",promotionsNone:"目前沒有促銷活動。"}},fr:{promotions:{promotionsTitle:"Promotions",promotionsButton:"Plus d'informations",promotionsNone:"Il n'y a pas de promotions disponibles pour le moment."}},tr:{promotions:{promotionsTitle:"Promosyonlar",promotionsButton:"Daha fazla bilgi",promotionsNone:"Şu anda herhangi bir promosyon bulunmamaktadır."}},ro:{promotions:{promotionsTitle:"Promotii",promotionsButton:"Detalii",promotionsNone:"Nu avem promotii disponibile momentan."}},es:{promotions:{promotionsTitle:"Promociones",promotionsButton:"Mas informaciones",promotionsNone:"Actualmente no hay promociones disponibles."}},pt:{promotions:{promotionsTitle:"Promoções",promotionsButton:"Mais informações",promotionsNone:"Não há promoções disponíveis no momento."}}};function mo(t,e,r){const o=t.slice();return o[38]=e[r],o[40]=r,o}function bo(t,e,r){const o=t.slice();return o[41]=e[r],o}function yo(t,e,r){const o=t.slice();return o[44]=e[r],o}function go(t,e,r){const o=t.slice();return o[41]=e[r],o}function _o(r){let o,i,n,s,a,l,c,h,u,p,f,d,m,b,y,g,t,_,v,E,w,T,A,B,U,H,S,P,D,x,G,L=r[13]("promotions.promotionsTitle")+"";function k(t){return 0<t[4].length?Eo:vo}let O=k(r),I=O(r),N=r[10],C=[];for(let t=0;t<N.length;t+=1)C[t]=Ao(bo(r,N,t));let M=r[11],R=[];for(let t=0;t<M.length;t+=1)R[t]=Bo(mo(r,M,t));return{c(){o=V("section"),i=V("div"),n=V("h1"),s=Z(L),a=e(),I.c(),l=e(),c=V("div"),h=V("div"),u=e(),p=V("div"),(f=V("div")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',d=e(),m=V("div"),b=V("picture");for(let t=0;t<C.length;t+=1)C[t].c();y=e(),g=V("img"),_=e(),v=V("div"),E=V("div"),w=V("ul");for(let t=0;t<R.length;t+=1)R[t].c();T=e(),A=V("div"),B=V("h3"),U=e(),H=V("div"),K(n,"class","promotions__title"),K(n,"part","promotions__title"),K(h,"class","modal__backdrop"),K(h,"part","modal__backdrop"),K(f,"class","modal__close"),K(f,"part","modal__close"),Y(g.src,t=r[9])||K(g,"src",t),K(g,"alt",r[7]),K(b,"class","modal__picture"),K(b,"part","modal__picture"),K(m,"class","modal__header"),K(m,"part","modal__header"),K(w,"class","modal__tabs"),K(w,"part","modal__tabs"),K(B,"class","modal__body_title"),K(B,"part","modal__body_title"),K(H,"class","modal__tab_content"),K(H,"part","modal__tab_content"),K(A,"class","modal__tabContentWrapper"),K(A,"part","modal__tabContentWrapper"),K(E,"class","modal__body_content"),K(E,"part","modal__body_content"),K(v,"class","modal__body"),K(v,"part","modal__body"),K(p,"class","modal__content"),K(p,"part","modal__content"),K(c,"class","promo__modal modal"),K(c,"part","promo__modal modal"),K(i,"class",S="promotions "+r[5]),K(i,"part",P="promotions "+r[5]),Q(i,"max-width",r[0]+"px"),ot(()=>r[25].call(i)),K(o,"class","promotion__section"),K(o,"part","promotion__section")},m(t,e){j(t,o,e),$(o,i),$(i,n),$(n,s),$(i,a),I.m(i,null),$(i,l),$(i,c),$(c,h),$(c,u),$(c,p),$(p,f),$(p,d),$(p,m),$(m,b);for(let t=0;t<C.length;t+=1)C[t].m(b,null);$(b,y),$(b,g),$(p,_),$(p,v),$(v,E),$(E,w);for(let t=0;t<R.length;t+=1)R[t].m(w,null);$(E,T),$(E,A),$(A,B),B.innerHTML=r[7],$(A,U),$(A,H),H.innerHTML=r[8],r[24](E),D=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=V("iframe"),o=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===W){W=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){W=!0}}return W}());let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=X(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=X(r.contentWindow,"resize",e)}),$(t,r),()=>{(o||n&&r.contentWindow)&&n(),z(r)}}(i,r[25].bind(i)),r[26](i),r[27](o),x||(G=[X(h,"click",r[15]),X(f,"click",r[15])],x=!0)},p(e,r){if(8192&r[0]&&L!==(L=e[13]("promotions.promotionsTitle")+"")&&J(s,L),O===(O=k(e))&&I?I.p(e,r):(I.d(1),(I=O(e))&&(I.c(),I.m(i,l))),1024&r[0]){let t;for(N=e[10],t=0;t<N.length;t+=1){var o=bo(e,N,t);C[t]?C[t].p(o,r):(C[t]=Ao(o),C[t].c(),C[t].m(b,y))}for(;t<C.length;t+=1)C[t].d(1);C.length=N.length}if(512&r[0]&&!Y(g.src,t=e[9])&&K(g,"src",t),128&r[0]&&K(g,"alt",e[7]),67584&r[0]){let t;for(M=e[11],t=0;t<M.length;t+=1){var n=mo(e,M,t);R[t]?R[t].p(n,r):(R[t]=Bo(n),R[t].c(),R[t].m(w,null))}for(;t<R.length;t+=1)R[t].d(1);R.length=M.length}128&r[0]&&(B.innerHTML=e[7]),256&r[0]&&(H.innerHTML=e[8]),32&r[0]&&S!==(S="promotions "+e[5])&&K(i,"class",S),32&r[0]&&P!==(P="promotions "+e[5])&&K(i,"part",P),1&r[0]&&Q(i,"max-width",e[0]+"px")},d(t){t&&z(o),I.d(),q(C,t),q(R,t),r[24](null),D(),r[26](null),r[27](null),x=!1,F(G)}}}function vo(t){let r,o,n=t[13]("promotions.promotionsNone")+"";return{c(){r=V("p"),o=Z(n),K(r,"class","promotions__none")},m(t,e){j(t,r,e),$(r,o)},p(t,e){8192&e[0]&&n!==(n=t[13]("promotions.promotionsNone")+"")&&J(o,n)},d(t){t&&z(r)}}}function Eo(e){let n,i=e[4],s=[];for(let t=0;t<i.length;t+=1)s[t]=To(yo(e,i,t));return{c(){n=V("div");for(let t=0;t<s.length;t+=1)s[t].c();K(n,"class","promotions__grid"),K(n,"part","promotions__grid")},m(t,e){j(t,n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(e,r){if(24592&r[0]){let t;for(i=e[4],t=0;t<i.length;t+=1){var o=yo(e,i,t);s[t]?s[t].p(o,r):(s[t]=To(o),s[t].c(),s[t].m(n,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){t&&z(n),q(s,t)}}}function wo(t){let r,o,n;return{c(){K(r=V("source"),"srcset",o=t[41].pictureSource),K(r,"media",n="("+t[41].media+")")},m(t,e){j(t,r,e)},p(t,e){16&e[0]&&o!==(o=t[41].pictureSource)&&K(r,"srcset",o),16&e[0]&&n!==(n="("+t[41].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function To(r){let o,n,i,s,a,l,c,h,u,p,f,d,m,b,y,g,_,v=r[44].title+"",E=r[44].content.split("</p>")[0]+"",w=r[13]("promotions.promotionsButton")+"",T=r[44].image.sources,A=[];for(let t=0;t<T.length;t+=1)A[t]=wo(go(r,T,t));return{c(){o=V("div"),n=V("picture");for(let t=0;t<A.length;t+=1)A[t].c();i=e(),s=V("img"),c=e(),h=V("div"),u=V("h2"),p=e(),f=V("div"),d=e(),m=V("button"),b=Z(w),y=e(),Y(s.src,a=r[44].image.src)||K(s,"src",a),K(s,"alt",l=r[44].title),K(n,"class","promo__picture"),K(n,"part","promo__picture"),K(u,"class","promo__title"),K(u,"part","promo__title"),K(f,"class","promo__content text--ellipsis"),K(f,"part","promo__content text--ellipsis"),K(m,"class","promo__button"),K(m,"part","promo__button"),K(h,"class","promo__details"),K(h,"part","promo__details"),K(o,"class","promo"),K(o,"part","promo")},m(t,e){j(t,o,e),$(o,n);for(let t=0;t<A.length;t+=1)A[t].m(n,null);$(n,i),$(n,s),$(o,c),$(o,h),$(h,u),u.innerHTML=v,$(h,p),$(h,f),f.innerHTML=E,$(h,d),$(h,m),$(m,b),$(o,y),g||(_=X(m,"click",function(){x(r[14](r[44]))&&r[14](r[44]).apply(this,arguments)}),g=!0)},p(t,e){if(r=t,16&e[0]){let t;for(T=r[44].image.sources,t=0;t<T.length;t+=1){const s=go(r,T,t);A[t]?A[t].p(s,e):(A[t]=wo(s),A[t].c(),A[t].m(n,i))}for(;t<A.length;t+=1)A[t].d(1);A.length=T.length}16&e[0]&&!Y(s.src,a=r[44].image.src)&&K(s,"src",a),16&e[0]&&l!==(l=r[44].title)&&K(s,"alt",l),16&e[0]&&v!==(v=r[44].title+"")&&(u.innerHTML=v),16&e[0]&&E!==(E=r[44].content.split("</p>")[0]+"")&&(f.innerHTML=E),8192&e[0]&&w!==(w=r[13]("promotions.promotionsButton")+"")&&J(b,w)},d(t){t&&z(o),q(A,t),g=!1,_()}}}function Ao(t){let r,o,n;return{c(){K(r=V("source"),"srcset",o=t[41].pictureSource),K(r,"media",n="("+t[41].media+")")},m(t,e){j(t,r,e)},p(t,e){1024&e[0]&&o!==(o=t[41].pictureSource)&&K(r,"srcset",o),1024&e[0]&&n!==(n="("+t[41].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function Bo(r){let o,n,t,i,s,a=r[38].tabDesc+"";return{c(){o=V("li"),n=Z(a),K(o,"class","modal__tab"),K(o,"part","modal__tab"),K(o,"id",t="tab-"+r[40])},m(t,e){j(t,o,e),$(o,n),i||(s=X(o,"click",function(){x(r[16](r[38],r[40]))&&r[16](r[38],r[40]).apply(this,arguments)}),i=!0)},p(t,e){r=t,2048&e[0]&&a!==(a=r[38].tabDesc+"")&&J(n,a)},d(t){t&&z(o),i=!1,s()}}}function Ho(t){let r,o=!0!==t[3]&&_o(t);return{c(){r=V("div"),o&&o.c(),this.c=y,K(r,"class","promotion__wrapper")},m(t,e){j(t,r,e),o&&o.m(r,null)},p(t,e){!0!==t[3]?o?o.p(t,e):((o=_o(t)).c(),o.m(r,null)):o&&(o.d(1),o=null)},i:y,o:y,d(t){t&&z(r),o&&o.d()}}}function So(t,e,r){let o;var n,i,s=er;t.$$.on_destroy.push(M(s,t=>r(13,o=t)));let a,l,c,h,u,p,f,{endpoint:d=""}=e,{lang:m=""}=e,{env:b=""}=e,{containermaxwidth:y=""}=e,{userroles:g=""}=e,{translationurl:_=""}=e,{clientstyling:v=""}=e,{clientstylingurl:E=""}=e,w=!1,T=[],A=window.navigator.userAgent,B,H,S,P,x=[];({withLocale:n,translations:i}={withLocale:"en",translations:{}}),N.subscribe(t=>{null==t&&(I.set(i),N.set(n))}),Object.keys(fo).forEach(t=>{rr(t,fo[t])});const L=(t,e)=>{f.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=f.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");f.querySelector("#tab-"+e).classList.add("modal__tab--active")},O={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return t.$$set=t=>{"endpoint"in t&&r(17,d=t.endpoint),"lang"in t&&r(18,m=t.lang),"env"in t&&r(19,b=t.env),"containermaxwidth"in t&&r(0,y=t.containermaxwidth),"userroles"in t&&r(20,g=t.userroles),"translationurl"in t&&r(21,_=t.translationurl),"clientstyling"in t&&r(22,v=t.clientstyling),"clientstylingurl"in t&&r(23,E=t.clientstylingurl)},t.$$.update=()=>{if(4&t.$$.dirty[0]&&r(5,c=Object.entries(O).reduce((t,[e,r])=>[...t,l>=r?e:""],[]).join(" ")),262144&t.$$.dirty[0]&&m&&(e=m,N.set(e)),2097152&t.$$.dirty[0]&&_&&fetch(_).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{rr(t,e[t])})}).catch(t=>{console.log(t)}),1966080&t.$$.dirty[0]&&d&&m&&b&&g){r(3,w=!0);let t=new URL(`${d}/${m}/promotions?env=`+b);t.searchParams.append("userRoles",g),(e=(e=A).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")&&("PC"==e?t.searchParams.append("device","dk"):"iPad"==e||"iPhone"==e?t.searchParams.append("device","ios"):t.searchParams.append("device","mtWeb")),fetch(t.href).then(t=>t.json()).then(t=>{r(3,w=!1),r(4,T=t)}).catch(t=>{r(3,w=!1),console.error(t)})}if(4194306&t.$$.dirty[0]&&v&&a){let t=document.createElement("style");t.innerHTML=v,a.appendChild(t)}if(8388610&t.$$.dirty[0]&&E&&a){let e=document.createElement("style");fetch(new URL(E)).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{a.appendChild(e)},1)})}var e},[y,a,l,w,T,c,h,"","",{},[],x,f,o,async t=>{r(7,B=t.title),r(8,H=t.content),r(9,S=t.image.src),r(10,P=t.image.sources),r(11,x=[{order:"0",tabContent:H,tabDesc:"Description"},...t.tabs]),u=h.querySelector(".modal"),p=window.document.querySelector("body"),u.classList.add("modal--open"),p.style.overflow="hidden",rt(),await tt,L(x[0],0),"function"==typeof gtag&&gtag("event","MoreInfo",{context:"PromotionsWidget"})},()=>{u=h.querySelector(".modal"),p=window.document.querySelector("body"),u.classList.remove("modal--open"),p.style.overflow="initial"},L,d,m,b,g,_,v,E,function(t){D[t?"unshift":"push"](()=>{f=t,r(12,f)})},function(){l=this.clientWidth,r(2,l)},function(t){D[t?"unshift":"push"](()=>{h=t,r(6,h)})},function(t){D[t?"unshift":"push"](()=>{a=t,r(1,a)})}]}class Po extends at{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__wrapper{min-height:100vh;--bg-color:var(--emfe-w-color-contrast, #07072A);background-color:var(--bg-color)}.promotion__section{--bg-color:var(--emfe-w-color-contrast, #07072A);--text-color:var(--emfe-w-color-white, #FFFFFF);--text-color-black:var(--emfe-w-color-black, #000000);--text-color-red:var(--emfe-w-color-secondary, #FD2839);--border-color:var(--emfe-w-color-gray-300, #58586B);--modal-bg-color:var(--emfe-w-color-gray-50, #F9F8F8);--modal-tabs-text-color:var(--emfe-w-color-gray-150, #828282);--modal-tabs-color:var(--emfe-w-color-gray-100, #E6E6E6);--modal-active-tab-color:var(--emfe-w-color-contrast, #07072A);--modal-title-color:var(--emfe-w-color-primary, #D0046C);min-height:100vh;width:100%;background-color:var(--bg-color)}.promotions{margin:0 auto;padding:24px 0;color:var(--text-color)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0;text-align:center;font-size:30px}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--border-color);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--text-color)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background:black;background:linear-gradient(0deg, black 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--text-color);border:1px solid var(--text-color);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--modal-title-color);border:1px solid var(--modal-title-color)}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--bg-color);opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--modal-bg-color);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--text-color);background-color:rgba(20, 20, 32, 0.3);border-radius:50%}.modal__close:hover{color:var(--text-color-red)}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--text-color-black);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--modal-title-color)}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:'';position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--modal-tabs-color);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--modal-tabs-text-color);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--modal-active-tab-color);z-index:130}.modal__tab--active:before{content:'';left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--modal-active-tab-color)}.modal__tab:hover{color:var(--bg-color)}</style>";{var n=this,e={target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},r=So,i=Ho,s=L,a={endpoint:17,lang:18,env:19,containermaxwidth:0,userroles:20,translationurl:21,clientstyling:22,clientstylingurl:23},l=null,c=[-1,-1],h=C;R(n);const p=n.$$={fragment:null,ctx:null,props:a,update:y,not_equal:s,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:P(),dirty:c,skip_bound:!1,root:e.target||h.$$.root};l&&l(p.root);let o=!1;if(p.ctx=r?r(n,e.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),o&&(r=t,-1===(t=n).$$.dirty[0]&&(U.push(t),rt(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],p.update(),o=!0,F(p.before_update),p.fragment=!!i&&i(p.ctx),e.target){if(e.hydrate){a=e.target;const y=Array.from(a.childNodes);p.fragment&&p.fragment.l(y),y.forEach(z)}else p.fragment&&p.fragment.c();e.intro&&(c=n.$$.fragment)&&c.i&&(st.delete(c),c.i(void 0));{var u=n;l=e.target;r=e.anchor;i=e.customElement;const{fragment:f,on_mount:d,on_destroy:m,after_update:b}=u.$$;f&&f.m(l,r),i||ot(()=>{var t=d.map(S).filter(x);m?m.push(...t):F(t),u.$$.on_mount=[]}),b.forEach(ot)}g()}R(h)}t&&(t.target&&j(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth","userroles","translationurl","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[17]}set endpoint(t){this.$$set({endpoint:t}),g()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),g()}get env(){return this.$$.ctx[19]}set env(t){this.$$set({env:t}),g()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$$set({containermaxwidth:t}),g()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),g()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),g()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",Po),Po});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function y(){}function S(t){return t()}function P(){return Object.create(null)}function F(t){t.forEach(S)}function x(t){return"function"==typeof t}function L(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let O,W,C;function Y(t,e){return(O=O||document.createElement("a")).href=e,t===O.href}function M(t,...e){if(null==t)return y;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function $(t,e){t.appendChild(e)}function j(t,e,r){t.insertBefore(e,r||null)}function z(t){t.parentNode.removeChild(t)}function q(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function V(t){return document.createElement(t)}function Z(t){return document.createTextNode(t)}function e(){return Z(" ")}function X(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function K(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function J(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function Q(t,e,r,o){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,o?"important":"")}function R(t){C=t}const U=[],D=[],G=[],k=[],tt=Promise.resolve();let et=!1;function rt(){et||(et=!0,tt.then(g))}function ot(t){G.push(t)}const nt=new Set;let it=0;function g(){const t=C;do{for(;it<U.length;){const t=U[it];it++,R(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),F(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(ot))}for(R(null),U.length=0,it=0;D.length;)D.pop()();for(let t=0;t<G.length;t+=1){const o=G[t];nt.has(o)||(nt.add(o),o())}}while(G.length=0,U.length);for(;k.length;)k.pop()();et=!1,nt.clear(),R(t)}const st=new Set;let at;"function"==typeof HTMLElement&&(at=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(S).filter(x);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){F(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(F(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=y}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const r=[];function lt(o,n=y){let i;const s=new Set;function a(t){if(L(o,t)&&(o=t,i)){const t=!r.length;for(const t of s)t[1](),r.push(t,o);if(t){for(let t=0;t<r.length;t+=2)r[t][0](r[t+1]);r.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=y){const r=[t,e];return s.add(r),1===s.size&&(i=n(a)||y),t(o),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function t(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,h=a.length<2;return{subscribe:lt(e,e=>{let r=!1;const o=[];let n=0,i=y;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),h?e(t):i=x(t)?t:y)},t=c.map((t,e)=>M(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){F(t),i()}}).subscribe}}function ct(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ht));var e}var ht="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ut(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function pt(t,e,r){return t.concat(e).map(function(t){return ut(t,r)})}function ft(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function dt(t,e){try{return e in t}catch(t){return!1}}function mt(o,n,i){var s={};return i.isMergeableObject(o)&&ft(o).forEach(function(t){s[t]=ut(o[t],i)}),ft(n).forEach(function(e){var t,r;(!dt(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(dt(o,e)&&i.isMergeableObject(n[e])?s[e]=function(t){if(!t.customMerge)return a;t=t.customMerge(e);return"function"==typeof t?t:a}(i)(o[e],n[e],i):s[e]=ut(n[e],i))}),s}function a(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||pt,r.isMergeableObject=r.isMergeableObject||ct,r.cloneUnlessOtherwiseSpecified=ut;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):mt(t,e,r):ut(e,r)}a.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return a(t,e,r)},{});throw new Error("first argument should be an array")};var bt=a,yt=function(t,e){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function gt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}yt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var m,_,b,v=function(){return(v=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function _t(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function vt(t){return t.type===_.literal}function Et(t){return t.type===_.number}function wt(t){return t.type===_.date}function Tt(t){return t.type===_.time}function At(t){return t.type===_.select}function Bt(t){return t.type===_.plural}function Ht(t){return t.type===_.tag}function St(t){return t&&"object"==typeof t&&t.type===b.number}function Pt(t){return t&&"object"==typeof t&&t.type===b.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=_=_||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=b=b||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xt=/(?:[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;var Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,It=/^(@+)?(\+|#+)?[rs]?$/g,Nt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ct=/^(0+)$/;function Mt(t){var o={};return"r"===t[t.length-1]?o.roundingPriority="morePrecision":"s"===t[t.length-1]&&(o.roundingPriority="lessPrecision"),t.replace(It,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function Rt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ut(t){return Rt(t)||{}}function Dt(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=v(v(v({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return v(v({},t),Ut(e))},{}));continue;case"engineering":s=v(v(v({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return v(v({},t),Ut(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Nt,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ct.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(Ot.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ot,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var i=n.options[0];"w"===i?s=v(v({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=v(v({},s),Mt(i)))}else It.test(n.stem)?s=v(v({},s),Mt(n.stem)):((i=Rt(n.stem))&&(s=v(v({},s),i)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ct.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=v(v({},s),o)))}return s}var Gt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var kt=new RegExp("^".concat(o.source,"*")),Ft=new RegExp("".concat(o.source,"*$"));function E(t,e){return{start:t,end:e}}var o=!!String.prototype.startsWith,$t=!!String.fromCodePoint,jt=!!Object.fromEntries,zt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,Xt=!!String.prototype.trimEnd,Kt=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Wt=!0;try{Wt="a"===(null==(de=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:de[0])}catch(y){Wt=!1}var Yt,qt,Zt=o?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Jt=$t?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Qt=jt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},te=zt?function(t,e){return t.codePointAt(e)}:function(t,e){var r,o=t.length;if(!(e<0||o<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===o||(o=t.charCodeAt(e+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},ee=Vt?function(t){return t.trimStart()}:function(t){return t.replace(kt,"")},re=Xt?function(t){return t.trimEnd()}:function(t){return t.replace(Ft,"")};function oe(t,e){return new RegExp(t,e)}qt=Wt?(Yt=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Yt.lastIndex=e,null!=(e=Yt.exec(t)[1])?e:""}):function(t,e){for(var r,o=[];;){var n=te(t,e);if(void 0===n||se(n)||(33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;o.push(n),e+=65536<=n?2:1}return Jt.apply(void 0,o)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ie(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:_.pound,location:E(i,this.clonePosition())})}}}return{val:o,err:null}},n.prototype.parseTag=function(t,e){var r=this.clonePosition(),o=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_.literal,value:"<".concat(o,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ie(this.char()))return this.error(m.INVALID_TAG,E(t,this.clonePosition()));var n=this.clonePosition();return o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_.tag,value:o,children:e,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(t,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(m.INVALID_TAG,E(r,this.clonePosition()))},n.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=E(r,this.clonePosition());return{val:{type:_.literal,value:o,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},n.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Jt.apply(void 0,e)},n.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Jt(r))},n.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_.argument,value:o,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=qt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:E(t,this.clonePosition())}},n.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(f=re(d.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:E(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(o)).err)return c;var h=E(o,this.clonePosition());if(l&&Zt(null==l?void 0:l.style,"::",0)){var u=ee(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?d:{val:{type:_.number,value:r,location:h,style:d.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,f=(this.locale&&(p=function(t,e){for(var r="",o=0;o<t.length;o++){var n=t.charAt(o);if("j"===n){for(var i=0;o+1<t.length&&t.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=t.language)&&(e=t.maximize().region),(Gt[e||""]||Gt[r||""]||Gt["".concat(r,"-001")]||Gt["001"])[0]}(e);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale)),{type:b.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(xt,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"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":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-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":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<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""}),n):{}});return{val:{type:"date"===s?_.date:_.time,value:r,location:h,style:f},err:null}}return{val:{type:"number"===s?_.number:"date"===s?_.date:_.time,value:r,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,v({},p)));this.bumpSpace();var d,f=this.parseIdentifierIfPossible(),h=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=d.val}l=this.tryParsePluralOrSelectOptions(t,s,e,f);if(l.err)return l;if((c=this.tryParseArgumentClose(o)).err)return c;u=E(o,this.clonePosition());return"select"===s?{val:{type:_.select,value:r,options:Qt(l.val),location:u},err:null}:{val:{type:_.plural,value:r,options:Qt(l.val),offset:h,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,E(i,a))}},n.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(Lt).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(m.INVALID_NUMBER_SKELETON,e)}return{val:{type:b.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Dt(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=E(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,r);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;i.push([a,{value:c.val,location:E(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===e?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},n.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=E(o,this.clonePosition());return n?Kt(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=te(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},n.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},n.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},n.prototype.bumpIf=function(t){if(Zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&se(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var ne=n;function n(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function ie(t){return 97<=t&&t<=122||65<=t&&t<=90}function se(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function ae(t,e){e=v({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new ne(t,e).parse();if(t.err)throw(r=SyntaxError(m[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,At(t)||Bt(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Et(t)&&St(t.style)||(wt(t)||Tt(t))&&Pt(t.style)?delete t.style.location:Ht(t)&&r(t.children)})}(t.val),t.val}function le(t,e){var r=e&&e.cache?e.cache:me,o=e&&e.serializer?e.serializer:pe;return(e&&e.strategy?e.strategy:function(t,e){return ue(t,this,1===t.length?ce:he,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ce(t,e,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=e.get(r);return void 0===n&&(n=t.call(this,o),e.set(r,n)),n}function he(t,e,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),n=e.get(r);return void 0===n&&(n=t.apply(this,o),e.set(r,n)),n}function ue(t,e,r,o,n){return r.bind(e,t,o,n)}var pe=function(){return JSON.stringify(arguments)};function fe(){this.cache=Object.create(null)}fe.prototype.get=function(t){return this.cache[t]},fe.prototype.set=function(t,e){this.cache[t]=e};var w,de,me={create:function(){return new fe}},be={variadic:function(t,e){return ue(t,this,he,e.cache.create(),e.serializer)},monadic:function(t,e){return ue(t,this,ce,e.cache.create(),e.serializer)}};(de=w=w||{}).MISSING_VALUE="MISSING_VALUE",de.INVALID_VALUE="INVALID_VALUE",de.MISSING_INTL_API="MISSING_INTL_API";gt(Pe,ve=Error),Pe.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,ye,ge,_e,ve,Ee=Pe,we=(gt(Se,_e=Ee),Se),Te=(gt(He,ge=Ee),He),Ae=(gt(Be,ye=Ee),Be);function Be(t,e){return ye.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),w.MISSING_VALUE,e)||this}function He(t,e,r){return ge.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),w.INVALID_VALUE,r)||this}function Se(t,e,r,o){return _e.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),w.INVALID_VALUE,o)||this}function Pe(t,e,r){t=ve.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function xe(t,e,r,o,n,i,s){if(1===t.length&&vt(t[0]))return[{type:T.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var h=c[l];if(vt(h))a.push({type:T.literal,value:h.value});else if(h.type===_.pound)"number"==typeof i&&a.push({type:T.literal,value:r.getNumberFormat(e).format(i)});else{var u=h.value;if(!(n&&u in n))throw new Ae(u,s);u=n[u];if(h.type===_.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(wt(h)){var p="string"==typeof h.style?o.date[h.style]:Pt(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(u)})}else if(Tt(h))p="string"==typeof h.style?o.time[h.style]:Pt(h.style)?h.style.parsedOptions:o.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(u)});else if(Et(h))(p="string"==typeof h.style?o.number[h.style]:St(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(e,p).format(u)});else{if(Ht(h)){var f=h.children,d=h.value,m=n[d];if("function"!=typeof m)throw new Te(d,"function",s);d=m(xe(f,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?T.literal:T.object,value:t}}))}if(At(h)){if(!(b=h.options[u]||h.options.other))throw new we(h.value,u,Object.keys(h.options),s);a.push.apply(a,xe(b.value,e,r,o,n))}else if(Bt(h)){if(!(b=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new Ee('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',w.MISSING_INTL_API,s);var m=r.getPluralRules(e,{type:h.pluralType}).select(u-(h.offset||0)),b=h.options[m]||h.options.other}if(!b)throw new we(h.value,u,Object.keys(h.options),s);a.push.apply(a,xe(b.value,e,r,o,n,u-(h.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===T.literal&&e.type===T.literal?r.value+=e.value:t.push(e),t},[])}function Le(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(o=T=T||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},l.__parse=ae,l.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"}}};var Oe=l;function l(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===T.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return xe(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=l.resolveLocale(e),"string"==typeof t){if(this.message=t,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=l.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?v(v(v({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=v(v({},r[e]),o[e]||{}),t},{})):r),t},v({},n)):n),this.formatters=o&&o.formatters||{getNumberFormat:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,_t([void 0],e,!1)))},{cache:Le((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:be.variadic}),getDateTimeFormat:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,_t([void 0],e,!1)))},{cache:Le(e.dateTime),strategy:be.variadic}),getPluralRules:le(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,_t([void 0],e,!1)))},{cache:Le(e.pluralRules),strategy:be.variadic})}}const i={},Ie=(t,e,r)=>r&&(e in i||(i[e]={}),t in i[e]||(i[e][t]=r),r),Ne=(e,r)=>{if(null!=r){if(r in i&&e in i[r])return i[r][e];var o=We(r);for(let t=0;t<o.length;t++){var n=function(t,r){if(!Me(t))return null;t=function(t){return Ce[t]||null}(t);{var o=r;if(null==o)return;if(o in t)return t[o];const n=o.split(".");let e=t;for(let t=0;t<n.length;t++)if("object"==typeof e){if(0<t){const o=n.slice(t,n.length).join(".");if(o in e){e=e[o];break}}e=e[n[t]]}else e=void 0;return e}}(o[t],e);if(n)return Ie(e,r,n)}}};let Ce;const I=lt({});function Me(t){return t in Ce}function Re(e,...r){delete i[e],I.update(t=>(t[e]=bt.all([t[e]||{},...r]),t))}t([I],([t])=>Object.keys(t)),I.subscribe(t=>Ce=t);const Ue={};function De(t){return Ue[t]}function Ge(t){return null!=t&&We(t).some(t=>{return null==(t=De(t))?void 0:t.size})}const ke={};function Fe(t){if(!Ge(t))return t in ke?ke[t]:Promise.resolve();const e=We(t).map(t=>{var e=De(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return ke[t]=Promise.all(e.map(([t,e])=>{{var o=t;t=e;const r=Promise.all(t.map(t=>{var e=o,r=t;return Ue[e].delete(r),0===Ue[e].size&&delete Ue[e],t().then(t=>t.default||t)}));return r.then(t=>Re(o,...t))}})).then(()=>{if(Ge(t))return Fe(t);delete ke[t]}),ke[t]}function $e(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const je={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const ze=lt(!1);let Ve;const Xe=lt(null);function Ke(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function We(t,e=je.fallbackLocale){t=Ke(t);return e?[...new Set([...t,...Ke(e)])]:t}function h(){return null!=Ve?Ve:void 0}Xe.subscribe(t=>{Ve=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const N=Object.assign(Object.assign({},Xe),{set:e=>{if(e&&function(t){if(null!=t){var e=We(t);for(let t=0;t<e.length;t++){var r=e[t];if(Me(r))return r}}}(e)&&Ge(e)){var r=je["loadingDelay"];let t;return"undefined"!=typeof window&&null!=h()&&r?t=window.setTimeout(()=>ze.set(!0),r):ze.set(!0),Fe(e).then(()=>{Xe.set(e)}).finally(()=>{clearTimeout(t),ze.set(!1)})}return Xe.set(e)}}),Ye=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},qe=(t,e)=>{var r=je["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Ze=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=qe("number",r)),new Intl.NumberFormat(e,t)}),Je=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=qe("date",r):0===Object.keys(t).length&&(t=qe("date","short")),new Intl.DateTimeFormat(e,t)}),Qe=Ye(t=>{var{locale:e,format:r}=t,t=$e(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=qe("time",r):0===Object.keys(t).length&&(t=qe("time","short")),new Intl.DateTimeFormat(e,t)}),tr=Ye((t,e=h())=>new Oe(t,e,je.formats,{ignoreTag:je.ignoreTag})),er=t([N,I],()=>(t,e={})=>{var r,o;let n=e;"object"==typeof t&&(t=(n=t).id);var{values:i,locale:s=h(),default:a}=n;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ne(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=je).handleMissingMessage)?void 0:r.call(o,{locale:s,id:t,defaultValue:a}))?r:a)?o:t;if(!i)return l;let c=l;try{c=tr(l,s).format(i)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c});function rr(t,e){Re(t,e)}t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Qe(Object.assign({locale:e},t))})(e).format(t)),t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Je(Object.assign({locale:e},t))})(e).format(t)),t([N],()=>(t,e)=>((t={})=>{var{locale:e=h()}=t,t=$e(t,["locale"]);return Ze(Object.assign({locale:e},t))})(e).format(t)),t([N,I],()=>(t,e=h())=>Ne(t,e));var or,nr,c="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==c&&c,ir="URLSearchParams"in c,sr="Symbol"in c&&"iterator"in Symbol,ar="FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch(t){return!1}}(),lr="FormData"in c,cr="ArrayBuffer"in c;function hr(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function ur(t){return t="string"!=typeof t?String(t):t}function pr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return sr&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function fr(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function dr(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function mr(t){var e=new FileReader,r=dr(e);return e.readAsArrayBuffer(t),r}function br(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function yr(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:ar&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:lr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ir&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():cr&&ar&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=br(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):cr&&(ArrayBuffer.prototype.isPrototypeOf(t)||nr(t))?this._bodyArrayBuffer=br(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ir&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ar&&(this.blob=function(){var t=fr(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?fr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(mr)}),this.text=function(){var t,e,r=fr(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=dr(t=new FileReader),t.readAsText(r),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},lr&&(this.formData=function(){return this.text().then(_r)}),this.json=function(){return this.text().then(JSON.parse)},this}cr&&(or=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],nr=ArrayBuffer.isView||function(t){return t&&-1<or.indexOf(Object.prototype.toString.call(t))}),u.prototype.append=function(t,e){t=hr(t),e=ur(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},u.prototype.delete=function(t){delete this.map[hr(t)]},u.prototype.get=function(t){return t=hr(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(hr(t))},u.prototype.set=function(t,e){this.map[hr(t)]=ur(e)},u.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),pr(r)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),pr(e)},u.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),pr(r)},sr&&(u.prototype[Symbol.iterator]=u.prototype.entries);var gr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function p(t,e){if(!(this instanceof p))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(e=e||{}).body;if(t instanceof p){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new u(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new u(e.headers)),this.method=(r=(t=e.method||this.method||"GET").toUpperCase(),-1<gr.indexOf(r)?r:t),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function _r(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(e=(t=t.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function f(t,e){if(!(this instanceof f))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},yr.call(p.prototype),yr.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},f.error=function(){var t=new f(null,{status:0,statusText:""});return t.type="error",t};var vr=[301,302,303,307,308],Er=(f.redirect=function(t,e){if(-1===vr.indexOf(e))throw new RangeError("Invalid status code");return new f(null,{status:e,headers:{location:t}})},c.DOMException);try{new Er}catch(y){(Er=function(t,e){this.message=t,this.name=e;e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Er.prototype.constructor=Er}function wr(o,s){return new Promise(function(n,t){var e=new p(o,s);if(e.signal&&e.signal.aborted)return t(new Er("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new u,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var t=t.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)},o=(e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){n(new f(o,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new Er("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&c.location.href?c.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(ar?i.responseType="blob":cr&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof u?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,ur(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}wr.polyfill=!0,c.fetch||(c.fetch=wr,c.Headers=u,c.Request=p,c.Response=f),self.fetch.bind(self);var Tr=function(t,e){return(Tr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Ar(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Tr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Br(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&o>=t.length?void 0:t)&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function Sr(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function d(t){return"function"==typeof t}function Pr(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var xr=Pr(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Lr(t,e){t&&0<=(e=t.indexOf(e))&&t.splice(e,1)}s.prototype.unsubscribe=function(){var t,e,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Br(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(d(i))try{i()}catch(t){n=t instanceof xr?t.errors:[t]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Br(i),c=l.next();!c.done;c=l.next()){var h=c.value;try{Cr(h)}catch(t){n=null!=n?n:[],t instanceof xr?n=Sr(Sr([],Hr(n)),Hr(t.errors)):n.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new xr(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Cr(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(e=this._finalizers)?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&Lr(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=(($t=new s).closed=!0,$t);var Or=s,Ir=Or.EMPTY;function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}function Nr(t){return t instanceof Or||t&&"closed"in t&&d(t.remove)&&d(t.add)&&d(t.unsubscribe)}function Cr(t){d(t)?t():t.unsubscribe()}var Mr=void 0,Rr=!1,Ur=!1,Dr={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Dr.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,Sr([t,e],Hr(r))):setTimeout.apply(void 0,Sr([t,e],Hr(r)))},clearTimeout:function(t){var e=Dr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(){}var kr=null;function Fr(t){if(Rr){var e=!kr;if(e&&(kr={errorThrown:!1,error:null}),t(),e){var e=kr,r=e.errorThrown,e=e.error;if(kr=null,r)throw e}}else t()}Ar(A,$r=Or),A.create=function(t,e,r){return new Wr(t,e,r)},A.prototype.next=function(t){this.isStopped||this._next(t)},A.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},A.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},A.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,$r.prototype.unsubscribe.call(this),this.destination=null)},A.prototype._next=function(t){this.destination.next(t)},A.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},A.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var $r,jr=A,zr=Function.prototype.bind;function A(t){var e=$r.call(this)||this;return e.isStopped=!1,t?Nr(e.destination=t)&&t.add(e):e.destination=Jr,e}function Vr(t,e){return zr.call(t,e)}qr.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Zr(t)}},qr.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Zr(t)}else Zr(t)},qr.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Zr(t)}};var Xr,Kr=qr,Wr=(Ar(Yr,Xr=jr),Yr);function Yr(t,e,r){var o=Xr.call(this)||this,r=d(t)||!t?{next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:o&&Ur?((e=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},{next:t.next&&Vr(t.next,e),error:t.error&&Vr(t.error,e),complete:t.complete&&Vr(t.complete,e)}):t;return o.destination=new Kr(r),o}function qr(t){this.partialObserver=t}function Zr(t){var e=t;Dr.setTimeout(function(){throw e})}var Jr={closed:!0,next:Gr,error:function(t){throw t},complete:Gr},jt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qr(t){return t}B.prototype.lift=function(t){var e=new B;return e.source=this,e.operator=t,e},B.prototype.subscribe=function(t,e,r){var o,n=this,i=(o=t)&&o instanceof jr||o&&d(o.next)&&d(o.error)&&d(o.complete)&&Nr(o)?t:new Wr(t,e,r);return Fr(function(){var t=n.operator,e=n.source;i.add(t?t.call(i,e):e?n._subscribe(i):n._trySubscribe(i))}),i},B.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},B.prototype.forEach=function(o,t){var n=this;return new(t=eo(t))(function(t,e){var r=new Wr({next:function(t){try{o(t)}catch(t){e(t),r.unsubscribe()}},error:e,complete:t});n.subscribe(r)})},B.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},B.prototype[jt]=function(){return this},B.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Qr:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},B.prototype.toPromise=function(t){var o=this;return new(t=eo(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},B.create=function(t){return new B(t)};var to=B;function B(t){t&&(this._subscribe=t)}function eo(t){return null!=(t=null!=t?t:Mr)?t:Promise}var ro,oo,no,io=Pr(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),zt=(Ar(H,no=to),H.prototype.lift=function(t){var e=new so(this,this);return e.operator=t,e},H.prototype._throwIfClosed=function(){if(this.closed)throw new io},H.prototype.next=function(n){var i=this;Fr(function(){var e,t;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=Br(i.currentObservers),o=r.next();!o.done;o=r.next())o.value.next(n)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},H.prototype.error=function(e){var r=this;Fr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},H.prototype.complete=function(){var e=this;Fr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},H.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(H.prototype,"observed",{get:function(){var t;return 0<(null==(t=this.observers)?void 0:t.length)},enumerable:!1,configurable:!0}),H.prototype._trySubscribe=function(t){return this._throwIfClosed(),no.prototype._trySubscribe.call(this,t)},H.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},H.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,o=this.isStopped,n=this.observers;return r||o?Ir:(this.currentObservers=null,n.push(t),new Or(function(){e.currentObservers=null,Lr(n,t)}))},H.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,o=this.isStopped;e?t.error(r):o&&t.complete()},H.prototype.asObservable=function(){var t=new to;return t.source=this,t},H.create=function(t,e){return new so(t,e)},H),so=(Ar(ho,oo=zt),ho.prototype.next=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.next)&&r.call(e,t)},ho.prototype.error=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.error)&&r.call(e,t)},ho.prototype.complete=function(){var t,e;null!=(e=null==(t=this.destination)?void 0:t.complete)&&e.call(t)},ho.prototype._subscribe=function(t){var e;return null!=(e=null==(e=this.source)?void 0:e.subscribe(t))?e:Ir},ho),ao={now:function(){return(ao.delegate||Date).now()},delegate:void 0},lo=(Ar(co,ro=zt),co.prototype.next=function(t){var e=this,r=e.isStopped,o=e._buffer,n=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(o.push(t),n||o.push(i.now()+e)),this._trimBuffer(),ro.prototype.next.call(this,t)},co.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!t.closed;n+=r?1:2)t.next(o[n]);return this._checkFinalizedStatuses(t),e},co.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*t;if(t<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},co);function co(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=ao);var o=ro.call(this)||this;return o._bufferSize=t,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,e),o}function ho(t,e){var r=oo.call(this)||this;return r.destination=t,r.source=e,r}function H(){var t=no.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let uo=[],po={};window.emWidgets={topic:(t,e=0)=>{return-1==uo.indexOf(t)&&(e=new lo(e),po[t]=e,uo.push(t)),po[t]}};const fo={en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment."}},zh:{promotions:{promotionsTitle:"促銷活動",promotionsButton:"更多信息",promotionsNone:"目前沒有促銷活動。"}},fr:{promotions:{promotionsTitle:"Promotions",promotionsButton:"Plus d'informations",promotionsNone:"Il n'y a pas de promotions disponibles pour le moment."}},tr:{promotions:{promotionsTitle:"Promosyonlar",promotionsButton:"Daha fazla bilgi",promotionsNone:"Şu anda herhangi bir promosyon bulunmamaktadır."}},ro:{promotions:{promotionsTitle:"Promotii",promotionsButton:"Detalii",promotionsNone:"Nu avem promotii disponibile momentan."}},es:{promotions:{promotionsTitle:"Promociones",promotionsButton:"Más información",promotionsNone:"No hay promociones disponibles en este momento."}},pt:{promotions:{promotionsTitle:"Promoções",promotionsButton:"Mais informações",promotionsNone:"Não há promoções disponíveis no momento."}}};function mo(t,e,r){const o=t.slice();return o[38]=e[r],o[40]=r,o}function bo(t,e,r){const o=t.slice();return o[41]=e[r],o}function yo(t,e,r){const o=t.slice();return o[44]=e[r],o}function go(t,e,r){const o=t.slice();return o[41]=e[r],o}function _o(r){let o,i,n,s,a,l,c,h,u,p,f,d,m,b,y,g,t,_,v,E,w,T,A,B,U,H,S,P,D,x,G,L=r[13]("promotions.promotionsTitle")+"";function k(t){return 0<t[4].length?Eo:vo}let O=k(r),I=O(r),N=r[10],C=[];for(let t=0;t<N.length;t+=1)C[t]=Ao(bo(r,N,t));let M=r[11],R=[];for(let t=0;t<M.length;t+=1)R[t]=Bo(mo(r,M,t));return{c(){o=V("section"),i=V("div"),n=V("h1"),s=Z(L),a=e(),I.c(),l=e(),c=V("div"),h=V("div"),u=e(),p=V("div"),(f=V("div")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',d=e(),m=V("div"),b=V("picture");for(let t=0;t<C.length;t+=1)C[t].c();y=e(),g=V("img"),_=e(),v=V("div"),E=V("div"),w=V("ul");for(let t=0;t<R.length;t+=1)R[t].c();T=e(),A=V("div"),B=V("h3"),U=e(),H=V("div"),K(n,"class","promotions__title"),K(n,"part","promotions__title"),K(h,"class","modal__backdrop"),K(h,"part","modal__backdrop"),K(f,"class","modal__close"),K(f,"part","modal__close"),Y(g.src,t=r[9])||K(g,"src",t),K(g,"alt",r[7]),K(b,"class","modal__picture"),K(b,"part","modal__picture"),K(m,"class","modal__header"),K(m,"part","modal__header"),K(w,"class","modal__tabs"),K(w,"part","modal__tabs"),K(B,"class","modal__body_title"),K(B,"part","modal__body_title"),K(H,"class","modal__tab_content"),K(H,"part","modal__tab_content"),K(A,"class","modal__tabContentWrapper"),K(A,"part","modal__tabContentWrapper"),K(E,"class","modal__body_content"),K(E,"part","modal__body_content"),K(v,"class","modal__body"),K(v,"part","modal__body"),K(p,"class","modal__content"),K(p,"part","modal__content"),K(c,"class","promo__modal modal"),K(c,"part","promo__modal modal"),K(i,"class",S="promotions "+r[5]),K(i,"part",P="promotions "+r[5]),Q(i,"max-width",r[0]+"px"),ot(()=>r[25].call(i)),K(o,"class","promotion__section"),K(o,"part","promotion__section")},m(t,e){j(t,o,e),$(o,i),$(i,n),$(n,s),$(i,a),I.m(i,null),$(i,l),$(i,c),$(c,h),$(c,u),$(c,p),$(p,f),$(p,d),$(p,m),$(m,b);for(let t=0;t<C.length;t+=1)C[t].m(b,null);$(b,y),$(b,g),$(p,_),$(p,v),$(v,E),$(E,w);for(let t=0;t<R.length;t+=1)R[t].m(w,null);$(E,T),$(E,A),$(A,B),B.innerHTML=r[7],$(A,U),$(A,H),H.innerHTML=r[8],r[24](E),D=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=V("iframe"),o=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===W){W=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){W=!0}}return W}());let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=X(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=X(r.contentWindow,"resize",e)}),$(t,r),()=>{(o||n&&r.contentWindow)&&n(),z(r)}}(i,r[25].bind(i)),r[26](i),r[27](o),x||(G=[X(h,"click",r[15]),X(f,"click",r[15])],x=!0)},p(e,r){if(8192&r[0]&&L!==(L=e[13]("promotions.promotionsTitle")+"")&&J(s,L),O===(O=k(e))&&I?I.p(e,r):(I.d(1),(I=O(e))&&(I.c(),I.m(i,l))),1024&r[0]){let t;for(N=e[10],t=0;t<N.length;t+=1){var o=bo(e,N,t);C[t]?C[t].p(o,r):(C[t]=Ao(o),C[t].c(),C[t].m(b,y))}for(;t<C.length;t+=1)C[t].d(1);C.length=N.length}if(512&r[0]&&!Y(g.src,t=e[9])&&K(g,"src",t),128&r[0]&&K(g,"alt",e[7]),67584&r[0]){let t;for(M=e[11],t=0;t<M.length;t+=1){var n=mo(e,M,t);R[t]?R[t].p(n,r):(R[t]=Bo(n),R[t].c(),R[t].m(w,null))}for(;t<R.length;t+=1)R[t].d(1);R.length=M.length}128&r[0]&&(B.innerHTML=e[7]),256&r[0]&&(H.innerHTML=e[8]),32&r[0]&&S!==(S="promotions "+e[5])&&K(i,"class",S),32&r[0]&&P!==(P="promotions "+e[5])&&K(i,"part",P),1&r[0]&&Q(i,"max-width",e[0]+"px")},d(t){t&&z(o),I.d(),q(C,t),q(R,t),r[24](null),D(),r[26](null),r[27](null),x=!1,F(G)}}}function vo(t){let r,o,n=t[13]("promotions.promotionsNone")+"";return{c(){r=V("p"),o=Z(n),K(r,"class","promotions__none")},m(t,e){j(t,r,e),$(r,o)},p(t,e){8192&e[0]&&n!==(n=t[13]("promotions.promotionsNone")+"")&&J(o,n)},d(t){t&&z(r)}}}function Eo(e){let n,i=e[4],s=[];for(let t=0;t<i.length;t+=1)s[t]=To(yo(e,i,t));return{c(){n=V("div");for(let t=0;t<s.length;t+=1)s[t].c();K(n,"class","promotions__grid"),K(n,"part","promotions__grid")},m(t,e){j(t,n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(e,r){if(24592&r[0]){let t;for(i=e[4],t=0;t<i.length;t+=1){var o=yo(e,i,t);s[t]?s[t].p(o,r):(s[t]=To(o),s[t].c(),s[t].m(n,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){t&&z(n),q(s,t)}}}function wo(t){let r,o,n;return{c(){K(r=V("source"),"srcset",o=t[41].pictureSource),K(r,"media",n="("+t[41].media+")")},m(t,e){j(t,r,e)},p(t,e){16&e[0]&&o!==(o=t[41].pictureSource)&&K(r,"srcset",o),16&e[0]&&n!==(n="("+t[41].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function To(r){let o,n,i,s,a,l,c,h,u,p,f,d,m,b,y,g,_,v=r[44].title+"",E=r[44].content.split("</p>")[0]+"",w=r[13]("promotions.promotionsButton")+"",T=r[44].image.sources,A=[];for(let t=0;t<T.length;t+=1)A[t]=wo(go(r,T,t));return{c(){o=V("div"),n=V("picture");for(let t=0;t<A.length;t+=1)A[t].c();i=e(),s=V("img"),c=e(),h=V("div"),u=V("h2"),p=e(),f=V("div"),d=e(),m=V("button"),b=Z(w),y=e(),Y(s.src,a=r[44].image.src)||K(s,"src",a),K(s,"alt",l=r[44].title),K(n,"class","promo__picture"),K(n,"part","promo__picture"),K(u,"class","promo__title"),K(u,"part","promo__title"),K(f,"class","promo__content text--ellipsis"),K(f,"part","promo__content text--ellipsis"),K(m,"class","promo__button"),K(m,"part","promo__button"),K(h,"class","promo__details"),K(h,"part","promo__details"),K(o,"class","promo"),K(o,"part","promo")},m(t,e){j(t,o,e),$(o,n);for(let t=0;t<A.length;t+=1)A[t].m(n,null);$(n,i),$(n,s),$(o,c),$(o,h),$(h,u),u.innerHTML=v,$(h,p),$(h,f),f.innerHTML=E,$(h,d),$(h,m),$(m,b),$(o,y),g||(_=X(m,"click",function(){x(r[14](r[44]))&&r[14](r[44]).apply(this,arguments)}),g=!0)},p(t,e){if(r=t,16&e[0]){let t;for(T=r[44].image.sources,t=0;t<T.length;t+=1){const s=go(r,T,t);A[t]?A[t].p(s,e):(A[t]=wo(s),A[t].c(),A[t].m(n,i))}for(;t<A.length;t+=1)A[t].d(1);A.length=T.length}16&e[0]&&!Y(s.src,a=r[44].image.src)&&K(s,"src",a),16&e[0]&&l!==(l=r[44].title)&&K(s,"alt",l),16&e[0]&&v!==(v=r[44].title+"")&&(u.innerHTML=v),16&e[0]&&E!==(E=r[44].content.split("</p>")[0]+"")&&(f.innerHTML=E),8192&e[0]&&w!==(w=r[13]("promotions.promotionsButton")+"")&&J(b,w)},d(t){t&&z(o),q(A,t),g=!1,_()}}}function Ao(t){let r,o,n;return{c(){K(r=V("source"),"srcset",o=t[41].pictureSource),K(r,"media",n="("+t[41].media+")")},m(t,e){j(t,r,e)},p(t,e){1024&e[0]&&o!==(o=t[41].pictureSource)&&K(r,"srcset",o),1024&e[0]&&n!==(n="("+t[41].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function Bo(r){let o,n,t,i,s,a=r[38].tabDesc+"";return{c(){o=V("li"),n=Z(a),K(o,"class","modal__tab"),K(o,"part","modal__tab"),K(o,"id",t="tab-"+r[40])},m(t,e){j(t,o,e),$(o,n),i||(s=X(o,"click",function(){x(r[16](r[38],r[40]))&&r[16](r[38],r[40]).apply(this,arguments)}),i=!0)},p(t,e){r=t,2048&e[0]&&a!==(a=r[38].tabDesc+"")&&J(n,a)},d(t){t&&z(o),i=!1,s()}}}function Ho(t){let r,o=!0!==t[3]&&_o(t);return{c(){r=V("div"),o&&o.c(),this.c=y,K(r,"class","promotion__wrapper")},m(t,e){j(t,r,e),o&&o.m(r,null)},p(t,e){!0!==t[3]?o?o.p(t,e):((o=_o(t)).c(),o.m(r,null)):o&&(o.d(1),o=null)},i:y,o:y,d(t){t&&z(r),o&&o.d()}}}function So(t,e,r){let o;var n,i,s=er;t.$$.on_destroy.push(M(s,t=>r(13,o=t)));let a,l,c,h,u,p,f,{endpoint:d=""}=e,{lang:m=""}=e,{env:b=""}=e,{containermaxwidth:y=""}=e,{userroles:g=""}=e,{translationurl:_=""}=e,{clientstyling:v=""}=e,{clientstylingurl:E=""}=e,w=!1,T=[],A=window.navigator.userAgent,B,H,S,P,x=[];({withLocale:n,translations:i}={withLocale:"en",translations:{}}),N.subscribe(t=>{null==t&&(I.set(i),N.set(n))}),Object.keys(fo).forEach(t=>{rr(t,fo[t])});const L=(t,e)=>{f.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=f.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");f.querySelector("#tab-"+e).classList.add("modal__tab--active")},O={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return t.$$set=t=>{"endpoint"in t&&r(17,d=t.endpoint),"lang"in t&&r(18,m=t.lang),"env"in t&&r(19,b=t.env),"containermaxwidth"in t&&r(0,y=t.containermaxwidth),"userroles"in t&&r(20,g=t.userroles),"translationurl"in t&&r(21,_=t.translationurl),"clientstyling"in t&&r(22,v=t.clientstyling),"clientstylingurl"in t&&r(23,E=t.clientstylingurl)},t.$$.update=()=>{if(4&t.$$.dirty[0]&&r(5,c=Object.entries(O).reduce((t,[e,r])=>[...t,l>=r?e:""],[]).join(" ")),262144&t.$$.dirty[0]&&m&&(e=m,N.set(e)),2097152&t.$$.dirty[0]&&_&&fetch(_).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{rr(t,e[t])})}).catch(t=>{console.log(t)}),1966080&t.$$.dirty[0]&&d&&m&&b&&g){r(3,w=!0);let t=new URL(`${d}/${m}/promotions?env=`+b);t.searchParams.append("userRoles",g),(e=(e=A).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")&&("PC"==e?t.searchParams.append("device","dk"):"iPad"==e||"iPhone"==e?t.searchParams.append("device","ios"):t.searchParams.append("device","mtWeb")),fetch(t.href).then(t=>t.json()).then(t=>{r(3,w=!1),r(4,T=t)}).catch(t=>{r(3,w=!1),console.error(t)})}if(4194306&t.$$.dirty[0]&&v&&a){let t=document.createElement("style");t.innerHTML=v,a.appendChild(t)}if(8388610&t.$$.dirty[0]&&E&&a){let e=document.createElement("style");fetch(new URL(E)).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{a.appendChild(e)},1)})}var e},[y,a,l,w,T,c,h,"","",{},[],x,f,o,async t=>{r(7,B=t.title),r(8,H=t.content),r(9,S=t.image.src),r(10,P=t.image.sources),r(11,x=[{order:"0",tabContent:H,tabDesc:"Description"},...t.tabs]),u=h.querySelector(".modal"),p=window.document.querySelector("body"),u.classList.add("modal--open"),p.style.overflow="hidden",rt(),await tt,L(x[0],0),"function"==typeof gtag&&gtag("event","MoreInfo",{context:"PromotionsWidget"})},()=>{u=h.querySelector(".modal"),p=window.document.querySelector("body"),u.classList.remove("modal--open"),p.style.overflow="initial"},L,d,m,b,g,_,v,E,function(t){D[t?"unshift":"push"](()=>{f=t,r(12,f)})},function(){l=this.clientWidth,r(2,l)},function(t){D[t?"unshift":"push"](()=>{h=t,r(6,h)})},function(t){D[t?"unshift":"push"](()=>{a=t,r(1,a)})}]}class Po extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__wrapper{min-height:100vh;--bg-color:var(--emfe-w-color-contrast, #07072A);background-color:var(--bg-color)}.promotion__section{--bg-color:var(--emfe-w-color-contrast, #07072A);--text-color:var(--emfe-w-color-white, #FFFFFF);--text-color-black:var(--emfe-w-color-black, #000000);--text-color-red:var(--emfe-w-color-secondary, #FD2839);--border-color:var(--emfe-w-color-gray-300, #58586B);--modal-bg-color:var(--emfe-w-color-gray-50, #F9F8F8);--modal-tabs-text-color:var(--emfe-w-color-gray-150, #828282);--modal-tabs-color:var(--emfe-w-color-gray-100, #E6E6E6);--modal-active-tab-color:var(--emfe-w-color-contrast, #07072A);--modal-title-color:var(--emfe-w-color-primary, #D0046C);min-height:100vh;width:100%;background-color:var(--bg-color)}.promotions{margin:0 auto;padding:24px 0;color:var(--text-color)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0;text-align:center;font-size:30px}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--border-color);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--text-color)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgb(0, 0, 0);background:linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--text-color);border:1px solid var(--text-color);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--modal-title-color);border:1px solid var(--modal-title-color)}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--bg-color);opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--modal-bg-color);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--text-color);background-color:rgba(20, 20, 32, 0.3);border-radius:50%}.modal__close:hover{color:var(--text-color-red)}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--text-color-black);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--modal-title-color)}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:"";position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--modal-tabs-color);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--modal-tabs-text-color);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--modal-active-tab-color);z-index:130}.modal__tab--active:before{content:"";left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--modal-active-tab-color)}.modal__tab:hover{color:var(--bg-color)}</style>';{var n=this,e={target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},r=So,i=Ho,s=L,a={endpoint:17,lang:18,env:19,containermaxwidth:0,userroles:20,translationurl:21,clientstyling:22,clientstylingurl:23},l=null,c=[-1,-1],h=C;R(n);const p=n.$$={fragment:null,ctx:null,props:a,update:y,not_equal:s,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:P(),dirty:c,skip_bound:!1,root:e.target||h.$$.root};l&&l(p.root);let o=!1;if(p.ctx=r?r(n,e.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),o&&(r=t,-1===(t=n).$$.dirty[0]&&(U.push(t),rt(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],p.update(),o=!0,F(p.before_update),p.fragment=!!i&&i(p.ctx),e.target){if(e.hydrate){a=e.target;const y=Array.from(a.childNodes);p.fragment&&p.fragment.l(y),y.forEach(z)}else p.fragment&&p.fragment.c();e.intro&&(c=n.$$.fragment)&&c.i&&(st.delete(c),c.i(void 0));{var u=n;l=e.target;r=e.anchor;i=e.customElement;const{fragment:f,on_mount:d,on_destroy:m,after_update:b}=u.$$;f&&f.m(l,r),i||ot(()=>{var t=d.map(S).filter(x);m?m.push(...t):F(t),u.$$.on_mount=[]}),b.forEach(ot)}g()}R(h)}t&&(t.target&&j(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth","userroles","translationurl","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[17]}set endpoint(t){this.$$set({endpoint:t}),g()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),g()}get env(){return this.$$.ctx[19]}set env(t){this.$$set({env:t}),g()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$$set({containermaxwidth:t}),g()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),g()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),g()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",Po),Po});
2
2
  //# sourceMappingURL=casino-promotions.js.map