@everymatrix/casino-tournaments-thumbnail-duration 1.43.4 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- ((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()})(this,function(){function H(){}function D(e){return e()}function U(){return Object.create(null)}function f(e){e.forEach(D)}function _(e){return"function"==typeof e}function G(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function $(e,...t){if(null==e)return H;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function A(e,t){e.appendChild(t)}function P(e,t,r){e.insertBefore(t,r||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function L(e){return document.createTextNode(e)}function N(){return L(" ")}function I(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function O(e,t){e.data!==(t=""+t)&&(e.data=t)}function F(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}let T;function p(e){T=e}let m=[],k=[],i=[],x=[],j=Promise.resolve(),V=!1;function X(e){i.push(e)}let K=new Set,o=0;function g(){if(0===o){let e=T;do{try{for(;o<m.length;){let e=m[o];o++,p(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),f(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(X))}}catch(e){throw m.length=0,o=0,e}for(p(null),m.length=0,o=0;k.length;)k.pop()();for(let e=0;e<i.length;e+=1){var n=i[e];K.has(n)||(K.add(n),n())}}while(i.length=0,m.length);for(;x.length;)x.pop()();V=!1,K.clear(),p(e)}}let z=new Set;function Y(n,t,e,r,i,o,s,a=[-1]){var h=T;p(n);let l=n.$$={fragment:null,ctx:[],props:o,update:H,not_equal:i,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:U(),dirty:a,skip_bound:!1,root:t.target||h.$$.root},u=(s&&s(l.root),!1);if(l.ctx=e?e(n,t.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return l.ctx&&i(l.ctx[e],l.ctx[e]=r)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](r),u)&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),V||(V=!0,j.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],l.update(),u=!0,f(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){o=t.target;let e=Array.from(o.childNodes);l.fragment&&l.fragment.l(e),e.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(z.delete(a),a.i(void 0));var c=n,s=t.customElement,{fragment:e,after_update:r}=c.$$;e&&e.m(t.target,t.anchor),s||X(()=>{var e=c.$$.on_mount.map(D).filter(_);c.$$.on_destroy?c.$$.on_destroy.push(...e):f(e),c.$$.on_mount=[]}),r.forEach(X),g()}p(h)}let Z,r=("function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let e=this.$$.on_mount;this.$$.on_disconnect=e.map(D).filter(_);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){f(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;let t=[],r=[];i.forEach(e=>(-1===n.indexOf(e)?t:r).push(e)),r.forEach(e=>e()),i=t}f(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=H}$on(e,t){if(!_(t))return H;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}),[]);function W(n,i=H){let o,s=new Set;function a(e){if(G(n,e)&&(n=e,o)){let e=!r.length;for(let e of s)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=H){let r=[e,t];return s.add(r),1===s.size&&(o=i(a)||H),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function e(e,a,t){let h=!Array.isArray(e),l=h?[e]:e,u=a.length<2;return{subscribe:W(t,t=>{let r=!1,n=[],i=0,o=H,s=()=>{var e;i||(o(),e=a(h?n[0]:n,t),u?t(e):o=_(e)?e:H)},e=l.map((e,t)=>$(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){f(e),o(),r=!1}}).subscribe}}function Q(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===q);var t}var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function J(e,t,r){return e.concat(t).map(function(e){return a(e,r)})}function ee(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function te(e,t){try{return t in e}catch(e){return!1}}function re(n,i,o){var s={};return o.isMergeableObject(n)&&ee(n).forEach(function(e){s[e]=a(n[e],o)}),ee(i).forEach(function(e){var t,r;(!te(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(te(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:h)(n[e],i[e],o):s[e]=a(i[e],o))}),s}function h(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||J,r.isMergeableObject=r.isMergeableObject||Q,r.cloneUnlessOtherwiseSpecified=a;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):re(e,t,r):a(t,r)}h.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return h(e,t,r)},{});throw new Error("first argument should be an array")};var ne=h,ie=function(e,t){return(ie=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d,b,E,y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function se(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function ae(e){return e.type===b.literal}function he(e){return e.type===b.number}function le(e){return e.type===b.date}function ue(e){return e.type===b.time}function ce(e){return e.type===b.select}function fe(e){return e.type===b.plural}function pe(e){return e.type===b.tag}function me(e){return e&&"object"==typeof e&&e.type===E.number}function ge(e){return e&&"object"==typeof e&&e.type===E.dateTime}(n=d=d||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=E=E||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,de=/(?:[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 be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function Be(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ye,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function He(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _e(e){return He(e)||{}}function Ae(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=y(y(y({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));continue;case"engineering":s=y(y(y({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ve,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=y(y({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=y(y({},s),Be(o)))}else ye.test(i.stem)?s=y(y({},s),Be(i.stem)):((o=He(i.stem))&&(s=y(y({},s),o)),(n=(e=>{var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t})(i.stem))&&(s=y(y({},s),n)))}return s}var Pe={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 Se=new RegExp("^".concat(n.source,"*")),Le=new RegExp("".concat(n.source,"*$"));function v(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Ie=!!Object.fromEntries,s=!!String.prototype.codePointAt,Oe=!!String.prototype.trimStart,Ce=!!String.prototype.trimEnd,we=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Re=!0;try{Re="a"===(null==(et=je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:et[0])}catch(H){Re=!1}var Me,De,Ue=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ge=Ne?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},$e=Ie?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];t[i[0]]=i[1]}return t},Fe=s?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},ke=Oe?function(e){return e.trimStart()}:function(e){return e.replace(Se,"")},xe=Ce?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function je(e,t){return new RegExp(e,t)}De=Re?(Me=je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Me.lastIndex=t,null!=(t=Me.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=Fe(e,t);if(void 0===i||Ke(i)||33<=(r=i)&&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;n.push(i),t+=65536<=i?2:1}return Ge.apply(void 0,n)};l.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},l.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(d.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},l.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Xe(this.char())?this.error(d.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(d.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:v(n,this.clonePosition())},err:null}:this.error(d.INVALID_TAG,v(e,this.clonePosition())))):this.error(d.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(d.INVALID_TAG,v(n,this.clonePosition()))},l.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},l.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},l.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},l.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ge.apply(void 0,t)},l.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ge(r))},l.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(d.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(d.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(d.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},l.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=De(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},l.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(d.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(f=xe(c.val)).length)return this.error(d.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));h={style:f,styleLocation:v(l,this.clonePosition())}}return(l=this.tryParseArgumentClose(n)).err?l:(p=v(n,this.clonePosition()),h&&Ue(null==h?void 0:h.style,"::",0)?(m=ke(h.style.slice(2)),"number"===s?(c=this.parseNumberSkeletonFromString(m,h.styleLocation)).err?c:{val:{type:b.number,value:r,location:p,style:c.val},err:null}:0===m.length?this.error(d.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=((e,t)=>{for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=(e=>{var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.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=e.language)&&(t=e.maximize().region),(Pe[t||""]||Pe[r||""]||Pe["".concat(r,"-001")]||Pe["001"])[0]})(t);for("H"!=h&&"k"!=h||(a=0);0<a--;)r+="a";for(;0<s--;)r=h+r}else r+="J"===i?"H":i}return r})(m,this.locale)),f={type:E.dateTime,pattern:u,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(de,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}},{val:{type:"date"===s?b.date:b.time,value:r,location:p,style:f},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:p,style:null!=(m=null==h?void 0:h.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,y({},u)));this.bumpSpace();var c,f=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),f=this.parseIdentifierIfPossible(),p=c.val}var m,h=this.tryParsePluralOrSelectOptions(e,s,t,f);return h.err?h:(l=this.tryParseArgumentClose(n)).err?l:(m=v(n,this.clonePosition()),"select"===s?{val:{type:b.select,value:r,options:$e(h.val),location:m},err:null}:{val:{type:b.plural,value:r,options:$e(h.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(d.INVALID_ARGUMENT_TYPE,v(o,a))}},l.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},l.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},l.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=(e=>{if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(be).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t})(e)}catch(e){return this.error(d.INVALID_NUMBER_SKELETON,t)}return{val:{type:E.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},l.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,h=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR,d.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=v(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?d.DUPLICATE_SELECT_ARGUMENT_SELECTOR:d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;var c=this.tryParseArgumentClose(u);if(c.err)return c;o.push([a,{value:l.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,h=c.location}return 0===o.length?this.error("select"===t?d.EXPECT_SELECT_ARGUMENT_SELECTOR:d.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(d.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},l.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=v(n,this.clonePosition());return i?we(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},l.prototype.offset=function(){return this.position.offset},l.prototype.isEOF=function(){return this.offset()===this.message.length},l.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},l.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},l.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},l.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},l.prototype.bumpIf=function(e){if(Ue(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},l.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},l.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},l.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ke(this.char());)this.bump()},l.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Ve=l;function l(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Xe(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ke(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function ze(e,t){t=y({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Ve(e,t).parse();if(e.err)throw(r=SyntaxError(d[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,ce(e)||fe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else he(e)&&me(e.style)||(le(e)||ue(e))&&ge(e.style)?delete e.style.location:pe(e)&&r(e.children)})}(e.val),e.val}function Ye(e,t){var r=t&&t.cache?t.cache:tt,n=t&&t.serializer?t.serializer:qe;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?Ze:We,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ze(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function We(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Qe(e,t,r,n,i){return r.bind(t,e,n,i)}var qe=function(){return JSON.stringify(arguments)};function Je(){this.cache=Object.create(null)}Je.prototype.get=function(e){return this.cache[e]},Je.prototype.set=function(e,t){this.cache[e]=t};var B,et,tt={create:function(){return new Je}},rt={variadic:function(e,t){return Qe(e,this,We,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(e,this,Ze,t.cache.create(),t.serializer)}};(et=B=B||{}).MISSING_VALUE="MISSING_VALUE",et.INVALID_VALUE="INVALID_VALUE",et.MISSING_INTL_API="MISSING_INTL_API";oe(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var C,nt,it,ot,st,at=mt,ht=(oe(pt,ot=at),pt),lt=(oe(ft,it=at),ft),ut=(oe(ct,nt=at),ct);function ct(e,t){return nt.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),B.MISSING_VALUE,t)||this}function ft(e,t,r){return it.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),B.INVALID_VALUE,r)||this}function pt(e,t,r,n){return ot.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),B.INVALID_VALUE,n)||this}function mt(e,t,r){e=st.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function gt(e,t,r,n,i,o,s){if(1===e.length&&ae(e[0]))return[{type:C.literal,value:e[0].value}];for(var a=[],h=0,l=e;h<l.length;h++){var u=l[h];if(ae(u))a.push({type:C.literal,value:u.value});else if(u.type===b.pound)"number"==typeof o&&a.push({type:C.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;if(!(i&&c in i))throw new ut(c,s);c=i[c];if(u.type===b.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?C.literal:C.object,value:c});else if(le(u)){var f="string"==typeof u.style?n.date[u.style]:ge(u.style)?u.style.parsedOptions:void 0;a.push({type:C.literal,value:r.getDateTimeFormat(t,f).format(c)})}else if(ue(u))f="string"==typeof u.style?n.time[u.style]:ge(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:C.literal,value:r.getDateTimeFormat(t,f).format(c)});else if(he(u))(f="string"==typeof u.style?n.number[u.style]:me(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(c*=f.scale||1),a.push({type:C.literal,value:r.getNumberFormat(t,f).format(c)});else{if(pe(u)){var p=u.children,m=u.value,g=i[m];if("function"!=typeof g)throw new lt(m,"function",s);m=g(gt(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?C.literal:C.object,value:e}}))}if(ce(u)){if(!(d=u.options[c]||u.options.other))throw new ht(u.value,c,Object.keys(u.options),s);a.push.apply(a,gt(d.value,t,r,n,i))}else if(fe(u)){if(!(d=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new at('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',B.MISSING_INTL_API,s);var g=r.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),d=u.options[g]||u.options.other}if(!d)throw new ht(u.value,c,Object.keys(u.options),s);a.push.apply(a,gt(d.value,t,r,n,i,c-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===C.literal&&t.type===C.literal?r.value+=t.value:e.push(t),e},[])}function dt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=C=C||{})[n.literal=0]="literal",n[n.object=1]="object";Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=ze,u.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 bt=u;function u(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===C.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return gt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=u.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?y(y(y({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=y(y({},r[t]),n[t]||{}),e},{})):r),e},y({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,se([void 0],t,!1)))},{cache:dt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:rt.variadic}),getDateTimeFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,se([void 0],t,!1)))},{cache:dt(t.dateTime),strategy:rt.variadic}),getPluralRules:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,se([void 0],t,!1)))},{cache:dt(t.pluralRules),strategy:rt.variadic})}}let c={},Et=(e,t,r)=>r&&(t in c||(c[t]={}),e in c[t]||(c[t][e]=r),r),yt=(t,r)=>{if(null!=r){if(r in c&&t in c[r])return c[r][t];var n=Gt(r);for(let e=0;e<n.length;e++){var i=((e,t)=>{if(!Bt(e))return null;e=(e=>vt[e]||null)(e);var n=t;if(null!=n){if(n in e)return e[n];var i=n.split(".");let r=e;for(let t=0;t<i.length;t++)if("object"==typeof r){if(0<t){let e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}})(n[e],t);if(i)return Et(t,r,i)}}},vt,Tt=W({});function Bt(e){return e in vt}function Ht(t,...r){delete c[t],Tt.update(e=>(e[t]=ne.all([e[t]||{},...r]),e))}e([Tt],([e])=>Object.keys(e)),Tt.subscribe(e=>vt=e);let _t={};function At(e){return _t[e]}function Pt(e){return null!=e&&Gt(e).some(e=>null==(e=At(e))?void 0:e.size)}function St(n,e){return Promise.all(e.map(e=>{return t=n,r=e,_t[t].delete(r),0===_t[t].size&&delete _t[t],e().then(e=>e.default||e);var t,r})).then(e=>Ht(n,...e))}let Lt={};let w={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};let Nt=W(!1);var It=Object.defineProperty,Ne=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?It(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Mt,Dt=W(null);function Ut(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gt(e,t=w.fallbackLocale){e=Ut(e);return t?[...new Set([...e,...Ut(t)])]:e}function R(){return null!=Mt?Mt:void 0}Dt.subscribe(e=>{Mt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});var s=Ne(((e,t)=>{for(var r in t=t||{})Ct.call(t,r)&&Rt(e,r,t[r]);if(Ot)for(var r of Ot(t))wt.call(t,r)&&Rt(e,r,t[r]);return e})({},Dt),Ie({set:t=>{if(t&&(e=>{if(null!=e){var t=Gt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Bt(r))return r}}})(t)&&Pt(t)){var r=w.loadingDelay;let e;return"undefined"!=typeof window&&null!=R()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),function e(t){var r;return Pt(t)?(r=Gt(t).map(e=>{var t=At(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Lt[t]=Promise.all(r.map(([e,t])=>St(e,t))).then(()=>{if(Pt(t))return e(t);delete Lt[t]}),Lt[t]):t in Lt?Lt[t]:Promise.resolve()}(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Dt.set(t)}})),Oe=r=>{let n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},$t=Object.defineProperty,Ft=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,jt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vt=(e,t)=>{for(var r in t=t||{})kt.call(t,r)&&jt(e,r,t[r]);if(Ft)for(var r of Ft(t))xt.call(t,r)&&jt(e,r,t[r]);return e},M=(e,t)=>{var r={};for(n in e)kt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&xt.call(e,n)&&(r[n]=e[n]);return r};let Xt=(e,t)=>{var r=w.formats;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kt=Oe(e=>{var{locale:t,format:r}=e,e=M(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Xt("number",r)),new Intl.NumberFormat(t,e)}),zt=Oe(e=>{var{locale:t,format:r}=e,e=M(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Xt("date",r):0===Object.keys(e).length&&(e=Xt("date","short")),new Intl.DateTimeFormat(t,e)}),Yt=Oe(e=>{var{locale:t,format:r}=e,e=M(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Xt("time",r):0===Object.keys(e).length&&(e=Xt("time","short")),new Intl.DateTimeFormat(t,e)}),Zt=Oe((e,t=R())=>new bt(e,t,w.formats,{ignoreTag:w.ignoreTag})),Wt=e([s,Tt],()=>(e,t={})=>{let r,n,i,o,s=t;"object"==typeof e&&(e=(s=e).id);var{values:a,locale:h=R(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=yt(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=w).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return u;let c=u;try{c=Zt(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Qt(e,t){Ht(e,t)}e([s],()=>(e,t)=>((e={})=>{var{locale:t=R()}=e,e=M(e,["locale"]);return Yt(Vt({locale:t},e))})(t).format(e)),e([s],()=>(e,t)=>((e={})=>{var{locale:t=R()}=e,e=M(e,["locale"]);return zt(Vt({locale:t},e))})(t).format(e)),e([s],()=>(e,t)=>((e={})=>{var{locale:t=R()}=e,e=M(e,["locale"]);return Kt(Vt({locale:t},e))})(t).format(e)),e([s,Tt],()=>(e,t=R())=>yt(e,t));let qt={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Jt(r){let n,i,o,s,a,h,l,u,c,f,p,m,g=r[10](r[0])+"",d=r[10](r[1])+"";function b(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?rr:0<e[5]?tr:er}let E=b(r),y=E(r);function v(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?or:0<e[5]?ir:0<e[4]?nr:void 0}let T=v(r),B=T&&T(r);return{c(){n=t("div"),i=t("div"),o=L(g),s=N(),a=t("div"),h=L(d),l=N(),u=t("div"),c=t("div"),y.c(),f=N(),B&&B.c(),I(i,"class","StartDate"),I(i,"part","StartDate"),I(a,"class","EndDate"),I(a,"part","EndDate"),I(n,"class","TournamentDates"),I(n,"part","TournamentDates"),I(c,"class","ProgressBar"),I(c,"part","ProgressBar"),I(u,"class","ProgressBarWrapper"),I(u,"part","ProgressBarWrapper")},m(e,t){P(e,n,t),A(n,i),A(i,o),A(n,s),A(n,a),A(a,h),P(e,l,t),P(e,u,t),A(u,c),y.m(c,null),A(c,f),B&&B.m(c,null),p||(e=r[9].call(null,u),m=e&&_(e.destroy)?e.destroy:H,p=!0)},p(e,t){1&t&&g!==(g=e[10](e[0])+"")&&O(o,g),2&t&&d!==(d=e[10](e[1])+"")&&O(h,d),E===(E=b(e))&&y?y.p(e,t):(y.d(1),(y=E(e))&&(y.c(),y.m(c,f))),T===(T=v(e))&&B?B.p(e,t):(B&&B.d(1),(B=T&&T(e))&&(B.c(),B.m(c,null)))},d(e){e&&S(n),e&&S(l),e&&S(u),y.d(),B&&B.d(),p=!1,m()}}}function er(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFill"),I(r,"part","ProgressBarFill"),F(r,"width",e[7]()+"%")},m(e,t){P(e,r,t)},p(e,t){128&t&&F(r,"width",e[7]()+"%")},d(e){e&&S(r)}}}function tr(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFillStarting"),I(r,"part","ProgressBarFillStarting")},m(e,t){P(e,r,t)},p:H,d(e){e&&S(r)}}}function rr(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFillEnd"),I(r,"part","ProgressBarFillEnd")},m(e,t){P(e,r,t)},p:H,d(e){e&&S(r)}}}function nr(e){let r,n,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){r=t("div"),n=L(e[6]),i=N(),o=L(s),I(r,"class","Remaining"),I(r,"part","Remaining")},m(e,t){P(e,r,t),A(r,n),A(r,i),A(r,o)},p(e,t){64&t&&O(n,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&O(o,s)},d(e){e&&S(r)}}}function ir(e){let r,n,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){r=t("div"),n=L(s),i=N(),o=L(a),I(r,"class","Remaining"),I(r,"part","Remaining")},m(e,t){P(e,r,t),A(r,n),A(r,i),A(r,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&O(n,s),32&t&&a!==(a=e[11](e[5])+"")&&O(o,a)},d(e){e&&S(r)}}}function or(e){let r,n,i=e[8]("tournamentsDuration.finished")+"";return{c(){r=t("div"),n=L(i),I(r,"class","Finished"),I(r,"part","Finished")},m(e,t){P(e,r,t),A(r,n)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&O(n,i)},d(e){e&&S(r)}}}function sr(r){let n,i=r[0]&&r[1]&&Jt(r);return{c(){n=t("div"),i&&i.c(),this.c=H,I(n,"class","TournamentDuration"),I(n,"part","TournamentDuration")},m(e,t){P(e,n,t),i&&i.m(n,null),r[16](n)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=Jt(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:H,o:H,d(e){e&&S(n),i&&i.d(),r[16](null)}}}function ar(t,e,r){let n,i,o;o=Wt,t.$$.on_destroy.push($(o,e=>r(8,i=e)));let s,{startdate:a=""}=e,{enddate:h=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:f=""}=e,{translationurl:p=""}=e,m="",g="",d="",b=(Object.keys(qt).forEach(e=>{Qt(e,qt[e])}),e=>new Date(e).getTime()),E=(e,t)=>(b(t)-b(e))/6e4,y=()=>{var e=new Date;r(4,m=E(e,h)),r(5,g=E(e,a)),r(6,d=v(m))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>(e=Math.floor(e))<10?"0"+e:""+e).join(":"):Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return e=()=>{let e=setInterval(()=>{a&&h&&y()},1e3);return()=>clearInterval(e)},(()=>{if(T)return T;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e),t.$$set=e=>{"startdate"in e&&r(0,a=e.startdate),"enddate"in e&&r(1,h=e.enddate),"status"in e&&r(2,l=e.status),"lang"in e&&r(12,u=e.lang),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,f=e.clientstylingurl),"translationurl"in e&&r(15,p=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&r(7,n=()=>{var e,t;return m<=0?100:(t=100/(e=E(a,h)),Math.floor((e-m)*t))}),19&t.$$.dirty&&a&&h&&y(),4096&t.$$.dirty&&u&&y(),4112&t.$$.dirty&&u&&v(m),32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qt(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=c,s.appendChild(e)),16392&t.$$.dirty&&s&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[a,h,l,s,m,g,d,n,i,y,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,f,p,function(e){k[e?"unshift":"push"](()=>{s=e,r(3,s)})}]}class hr extends Z{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:(e=>{var t,r={};for(t of e)r[t.name]=t.value;return r})(this.attributes),customElement:!0},ar,sr,G,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),g())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),g()}}return customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",hr),hr});
1
+ ((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()})(this,function(){function H(){}function U(e){return e()}function D(){return Object.create(null)}function f(e){e.forEach(U)}function _(e){return"function"==typeof e}function G(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function $(e,...t){if(null==e)return H;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function A(e,t){e.appendChild(t)}function P(e,t,r){e.insertBefore(t,r||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function L(e){return document.createTextNode(e)}function N(){return L(" ")}function I(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function O(e,t){e.data!==(t=""+t)&&(e.data=t)}function F(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}let T;function p(e){T=e}let m=[],k=[],i=[],x=[],j=Promise.resolve(),V=!1;function X(e){i.push(e)}let K=new Set,o=0;function g(){if(0===o){let e=T;do{try{for(;o<m.length;){let e=m[o];o++,p(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),f(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(X))}}catch(e){throw m.length=0,o=0,e}for(p(null),m.length=0,o=0;k.length;)k.pop()();for(let e=0;e<i.length;e+=1){var n=i[e];K.has(n)||(K.add(n),n())}}while(i.length=0,m.length);for(;x.length;)x.pop()();V=!1,K.clear(),p(e)}}let z=new Set;function Y(n,t,e,r,i,o,s,a=[-1]){var h=T;p(n);let l=n.$$={fragment:null,ctx:[],props:o,update:H,not_equal:i,bound:D(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:D(),dirty:a,skip_bound:!1,root:t.target||h.$$.root},u=(s&&s(l.root),!1);if(l.ctx=e?e(n,t.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return l.ctx&&i(l.ctx[e],l.ctx[e]=r)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](r),u)&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),V||(V=!0,j.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],l.update(),u=!0,f(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){o=t.target;let e=Array.from(o.childNodes);l.fragment&&l.fragment.l(e),e.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(z.delete(a),a.i(void 0));var c=n,s=t.customElement,{fragment:e,after_update:r}=c.$$;e&&e.m(t.target,t.anchor),s||X(()=>{var e=c.$$.on_mount.map(U).filter(_);c.$$.on_destroy?c.$$.on_destroy.push(...e):f(e),c.$$.on_mount=[]}),r.forEach(X),g()}p(h)}let Z,r=("function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let e=this.$$.on_mount;this.$$.on_disconnect=e.map(U).filter(_);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){f(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;let t=[],r=[];i.forEach(e=>(-1===n.indexOf(e)?t:r).push(e)),r.forEach(e=>e()),i=t}f(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=H}$on(e,t){if(!_(t))return H;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}),[]);function W(n,i=H){let o,s=new Set;function a(e){if(G(n,e)&&(n=e,o)){let e=!r.length;for(let e of s)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=H){let r=[e,t];return s.add(r),1===s.size&&(o=i(a)||H),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function e(e,a,t){let h=!Array.isArray(e),l=h?[e]:e,u=a.length<2;return{subscribe:W(t,t=>{let r=!1,n=[],i=0,o=H,s=()=>{var e;i||(o(),e=a(h?n[0]:n,t),u?t(e):o=_(e)?e:H)},e=l.map((e,t)=>$(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){f(e),o(),r=!1}}).subscribe}}function Q(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===q);var t}var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function J(e,t,r){return e.concat(t).map(function(e){return a(e,r)})}function ee(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function te(e,t){try{return t in e}catch(e){return!1}}function re(n,i,o){var s={};return o.isMergeableObject(n)&&ee(n).forEach(function(e){s[e]=a(n[e],o)}),ee(i).forEach(function(e){var t,r;(!te(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(te(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:h)(n[e],i[e],o):s[e]=a(i[e],o))}),s}function h(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||J,r.isMergeableObject=r.isMergeableObject||Q,r.cloneUnlessOtherwiseSpecified=a;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):re(e,t,r):a(t,r)}h.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return h(e,t,r)},{});throw new Error("first argument should be an array")};var ne=h,ie=function(e,t){return(ie=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d,b,E,y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function se(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function ae(e){return e.type===b.literal}function he(e){return e.type===b.number}function le(e){return e.type===b.date}function ue(e){return e.type===b.time}function ce(e){return e.type===b.select}function fe(e){return e.type===b.plural}function pe(e){return e.type===b.tag}function me(e){return e&&"object"==typeof e&&e.type===E.number}function ge(e){return e&&"object"==typeof e&&e.type===E.dateTime}(n=d=d||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=E=E||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,de=/(?:[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 be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function Be(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ye,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function He(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _e(e){return He(e)||{}}function Ae(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=y(y(y({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));continue;case"engineering":s=y(y(y({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ve,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=y(y({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=y(y({},s),Be(o)))}else ye.test(i.stem)?s=y(y({},s),Be(i.stem)):((o=He(i.stem))&&(s=y(y({},s),o)),(n=(e=>{var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t})(i.stem))&&(s=y(y({},s),n)))}return s}var Pe={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 Se=new RegExp("^".concat(n.source,"*")),Le=new RegExp("".concat(n.source,"*$"));function v(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Ie=!!Object.fromEntries,s=!!String.prototype.codePointAt,Oe=!!String.prototype.trimStart,we=!!String.prototype.trimEnd,Ce=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Me=!0;try{Me="a"===(null==(et=je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:et[0])}catch(H){Me=!1}var Re,Ue,De=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ge=Ne?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},$e=Ie?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];t[i[0]]=i[1]}return t},Fe=s?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},ke=Oe?function(e){return e.trimStart()}:function(e){return e.replace(Se,"")},xe=we?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function je(e,t){return new RegExp(e,t)}Ue=Me?(Re=je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Re.lastIndex=t,null!=(t=Re.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=Fe(e,t);if(void 0===i||Ke(i)||33<=(r=i)&&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;n.push(i),t+=65536<=i?2:1}return Ge.apply(void 0,n)};l.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},l.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(d.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},l.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Xe(this.char())?this.error(d.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(d.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:v(n,this.clonePosition())},err:null}:this.error(d.INVALID_TAG,v(e,this.clonePosition())))):this.error(d.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(d.INVALID_TAG,v(n,this.clonePosition()))},l.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},l.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},l.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},l.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ge.apply(void 0,t)},l.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ge(r))},l.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(d.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(d.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(d.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},l.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ue(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},l.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(d.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(f=xe(c.val)).length)return this.error(d.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));h={style:f,styleLocation:v(l,this.clonePosition())}}return(l=this.tryParseArgumentClose(n)).err?l:(p=v(n,this.clonePosition()),h&&De(null==h?void 0:h.style,"::",0)?(m=ke(h.style.slice(2)),"number"===s?(c=this.parseNumberSkeletonFromString(m,h.styleLocation)).err?c:{val:{type:b.number,value:r,location:p,style:c.val},err:null}:0===m.length?this.error(d.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=((e,t)=>{for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=(e=>{var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.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=e.language)&&(t=e.maximize().region),(Pe[t||""]||Pe[r||""]||Pe["".concat(r,"-001")]||Pe["001"])[0]})(t);for("H"!=h&&"k"!=h||(a=0);0<a--;)r+="a";for(;0<s--;)r=h+r}else r+="J"===i?"H":i}return r})(m,this.locale)),f={type:E.dateTime,pattern:u,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(de,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}},{val:{type:"date"===s?b.date:b.time,value:r,location:p,style:f},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:p,style:null!=(m=null==h?void 0:h.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,y({},u)));this.bumpSpace();var c,f=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),f=this.parseIdentifierIfPossible(),p=c.val}var m,h=this.tryParsePluralOrSelectOptions(e,s,t,f);return h.err?h:(l=this.tryParseArgumentClose(n)).err?l:(m=v(n,this.clonePosition()),"select"===s?{val:{type:b.select,value:r,options:$e(h.val),location:m},err:null}:{val:{type:b.plural,value:r,options:$e(h.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(d.INVALID_ARGUMENT_TYPE,v(o,a))}},l.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},l.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},l.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=(e=>{if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(be).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t})(e)}catch(e){return this.error(d.INVALID_NUMBER_SKELETON,t)}return{val:{type:E.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},l.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,h=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR,d.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=v(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?d.DUPLICATE_SELECT_ARGUMENT_SELECTOR:d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;var c=this.tryParseArgumentClose(u);if(c.err)return c;o.push([a,{value:l.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,h=c.location}return 0===o.length?this.error("select"===t?d.EXPECT_SELECT_ARGUMENT_SELECTOR:d.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(d.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},l.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=v(n,this.clonePosition());return i?Ce(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},l.prototype.offset=function(){return this.position.offset},l.prototype.isEOF=function(){return this.offset()===this.message.length},l.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},l.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},l.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},l.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},l.prototype.bumpIf=function(e){if(De(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},l.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},l.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},l.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ke(this.char());)this.bump()},l.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Ve=l;function l(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Xe(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ke(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function ze(e,t){t=y({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Ve(e,t).parse();if(e.err)throw(r=SyntaxError(d[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,ce(e)||fe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else he(e)&&me(e.style)||(le(e)||ue(e))&&ge(e.style)?delete e.style.location:pe(e)&&r(e.children)})}(e.val),e.val}function Ye(e,t){var r=t&&t.cache?t.cache:tt,n=t&&t.serializer?t.serializer:qe;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?Ze:We,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ze(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function We(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Qe(e,t,r,n,i){return r.bind(t,e,n,i)}var qe=function(){return JSON.stringify(arguments)};function Je(){this.cache=Object.create(null)}Je.prototype.get=function(e){return this.cache[e]},Je.prototype.set=function(e,t){this.cache[e]=t};var B,et,tt={create:function(){return new Je}},rt={variadic:function(e,t){return Qe(e,this,We,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(e,this,Ze,t.cache.create(),t.serializer)}};(et=B=B||{}).MISSING_VALUE="MISSING_VALUE",et.INVALID_VALUE="INVALID_VALUE",et.MISSING_INTL_API="MISSING_INTL_API";oe(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,nt,it,ot,st,at=mt,ht=(oe(pt,ot=at),pt),lt=(oe(ft,it=at),ft),ut=(oe(ct,nt=at),ct);function ct(e,t){return nt.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),B.MISSING_VALUE,t)||this}function ft(e,t,r){return it.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),B.INVALID_VALUE,r)||this}function pt(e,t,r,n){return ot.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),B.INVALID_VALUE,n)||this}function mt(e,t,r){e=st.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function gt(e,t,r,n,i,o,s){if(1===e.length&&ae(e[0]))return[{type:w.literal,value:e[0].value}];for(var a=[],h=0,l=e;h<l.length;h++){var u=l[h];if(ae(u))a.push({type:w.literal,value:u.value});else if(u.type===b.pound)"number"==typeof o&&a.push({type:w.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;if(!(i&&c in i))throw new ut(c,s);c=i[c];if(u.type===b.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?w.literal:w.object,value:c});else if(le(u)){var f="string"==typeof u.style?n.date[u.style]:ge(u.style)?u.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(t,f).format(c)})}else if(ue(u))f="string"==typeof u.style?n.time[u.style]:ge(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(t,f).format(c)});else if(he(u))(f="string"==typeof u.style?n.number[u.style]:me(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(c*=f.scale||1),a.push({type:w.literal,value:r.getNumberFormat(t,f).format(c)});else{if(pe(u)){var p=u.children,m=u.value,g=i[m];if("function"!=typeof g)throw new lt(m,"function",s);m=g(gt(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(ce(u)){if(!(d=u.options[c]||u.options.other))throw new ht(u.value,c,Object.keys(u.options),s);a.push.apply(a,gt(d.value,t,r,n,i))}else if(fe(u)){if(!(d=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new at('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',B.MISSING_INTL_API,s);var g=r.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),d=u.options[g]||u.options.other}if(!d)throw new ht(u.value,c,Object.keys(u.options),s);a.push.apply(a,gt(d.value,t,r,n,i,c-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===w.literal&&t.type===w.literal?r.value+=t.value:e.push(t),e},[])}function dt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=w=w||{})[n.literal=0]="literal",n[n.object=1]="object";Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=ze,u.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 bt=u;function u(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===w.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return gt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=u.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?y(y(y({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=y(y({},r[t]),n[t]||{}),e},{})):r),e},y({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,se([void 0],t,!1)))},{cache:dt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:rt.variadic}),getDateTimeFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,se([void 0],t,!1)))},{cache:dt(t.dateTime),strategy:rt.variadic}),getPluralRules:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,se([void 0],t,!1)))},{cache:dt(t.pluralRules),strategy:rt.variadic})}}let c={},Et=(e,t,r)=>r&&(t in c||(c[t]={}),e in c[t]||(c[t][e]=r),r),yt=(t,r)=>{if(null!=r){if(r in c&&t in c[r])return c[r][t];var n=Gt(r);for(let e=0;e<n.length;e++){var i=((e,t)=>{if(!Bt(e))return null;e=(e=>vt[e]||null)(e);var n=t;if(null!=n){if(n in e)return e[n];var i=n.split(".");let r=e;for(let t=0;t<i.length;t++)if("object"==typeof r){if(0<t){let e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}})(n[e],t);if(i)return Et(t,r,i)}}},vt,Tt=W({});function Bt(e){return e in vt}function Ht(t,...r){delete c[t],Tt.update(e=>(e[t]=ne.all([e[t]||{},...r]),e))}e([Tt],([e])=>Object.keys(e)),Tt.subscribe(e=>vt=e);let _t={};function At(e){return _t[e]}function Pt(e){return null!=e&&Gt(e).some(e=>null==(e=At(e))?void 0:e.size)}function St(n,e){return Promise.all(e.map(e=>{return t=n,r=e,_t[t].delete(r),0===_t[t].size&&delete _t[t],e().then(e=>e.default||e);var t,r})).then(e=>Ht(n,...e))}let Lt={};let C={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};let Nt=W(!1);var It=Object.defineProperty,Ne=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Mt=(e,t,r)=>t in e?It(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Rt,Ut=W(null);function Dt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gt(e,t=C.fallbackLocale){e=Dt(e);return t?[...new Set([...e,...Dt(t)])]:e}function M(){return null!=Rt?Rt:void 0}Ut.subscribe(e=>{Rt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});var s=Ne(((e,t)=>{for(var r in t=t||{})wt.call(t,r)&&Mt(e,r,t[r]);if(Ot)for(var r of Ot(t))Ct.call(t,r)&&Mt(e,r,t[r]);return e})({},Ut),Ie({set:t=>{if(t&&(e=>{if(null!=e){var t=Gt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Bt(r))return r}}})(t)&&Pt(t)){var r=C.loadingDelay;let e;return"undefined"!=typeof window&&null!=M()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),function e(t){var r;return Pt(t)?(r=Gt(t).map(e=>{var t=At(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Lt[t]=Promise.all(r.map(([e,t])=>St(e,t))).then(()=>{if(Pt(t))return e(t);delete Lt[t]}),Lt[t]):t in Lt?Lt[t]:Promise.resolve()}(t).then(()=>{Ut.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Ut.set(t)}})),Oe=r=>{let n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},$t=Object.defineProperty,Ft=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,jt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vt=(e,t)=>{for(var r in t=t||{})kt.call(t,r)&&jt(e,r,t[r]);if(Ft)for(var r of Ft(t))xt.call(t,r)&&jt(e,r,t[r]);return e},R=(e,t)=>{var r={};for(n in e)kt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&xt.call(e,n)&&(r[n]=e[n]);return r};let Xt=(e,t)=>{var r=C.formats;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kt=Oe(e=>{var{locale:t,format:r}=e,e=R(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Xt("number",r)),new Intl.NumberFormat(t,e)}),zt=Oe(e=>{var{locale:t,format:r}=e,e=R(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Xt("date",r):0===Object.keys(e).length&&(e=Xt("date","short")),new Intl.DateTimeFormat(t,e)}),Yt=Oe(e=>{var{locale:t,format:r}=e,e=R(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Xt("time",r):0===Object.keys(e).length&&(e=Xt("time","short")),new Intl.DateTimeFormat(t,e)}),Zt=Oe((e,t=M())=>new bt(e,t,C.formats,{ignoreTag:C.ignoreTag})),Wt=e([s,Tt],()=>(e,t={})=>{let r,n,i,o,s=t;"object"==typeof e&&(e=(s=e).id);var{values:a,locale:h=M(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=yt(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=C).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return u;let c=u;try{c=Zt(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Qt(e,t){Ht(e,t)}e([s],()=>(e,t)=>((e={})=>{var{locale:t=M()}=e,e=R(e,["locale"]);return Yt(Vt({locale:t},e))})(t).format(e)),e([s],()=>(e,t)=>((e={})=>{var{locale:t=M()}=e,e=R(e,["locale"]);return zt(Vt({locale:t},e))})(t).format(e)),e([s],()=>(e,t)=>((e={})=>{var{locale:t=M()}=e,e=R(e,["locale"]);return Kt(Vt({locale:t},e))})(t).format(e)),e([s,Tt],()=>(e,t=M())=>yt(e,t));let qt={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function Jt(r){let n,i,o,s,a,h,l,u,c,f,p,m,g=r[10](r[0])+"",d=r[10](r[1])+"";function b(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?rr:0<e[5]?tr:er}let E=b(r),y=E(r);function v(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?or:0<e[5]?ir:0<e[4]?nr:void 0}let T=v(r),B=T&&T(r);return{c(){n=t("div"),i=t("div"),o=L(g),s=N(),a=t("div"),h=L(d),l=N(),u=t("div"),c=t("div"),y.c(),f=N(),B&&B.c(),I(i,"class","StartDate"),I(i,"part","StartDate"),I(a,"class","EndDate"),I(a,"part","EndDate"),I(n,"class","TournamentDates"),I(n,"part","TournamentDates"),I(c,"class","ProgressBar"),I(c,"part","ProgressBar"),I(u,"class","ProgressBarWrapper"),I(u,"part","ProgressBarWrapper")},m(e,t){P(e,n,t),A(n,i),A(i,o),A(n,s),A(n,a),A(a,h),P(e,l,t),P(e,u,t),A(u,c),y.m(c,null),A(c,f),B&&B.m(c,null),p||(e=r[9].call(null,u),m=e&&_(e.destroy)?e.destroy:H,p=!0)},p(e,t){1&t&&g!==(g=e[10](e[0])+"")&&O(o,g),2&t&&d!==(d=e[10](e[1])+"")&&O(h,d),E===(E=b(e))&&y?y.p(e,t):(y.d(1),(y=E(e))&&(y.c(),y.m(c,f))),T===(T=v(e))&&B?B.p(e,t):(B&&B.d(1),(B=T&&T(e))&&(B.c(),B.m(c,null)))},d(e){e&&S(n),e&&S(l),e&&S(u),y.d(),B&&B.d(),p=!1,m()}}}function er(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFill"),I(r,"part","ProgressBarFill"),F(r,"width",e[7]()+"%")},m(e,t){P(e,r,t)},p(e,t){128&t&&F(r,"width",e[7]()+"%")},d(e){e&&S(r)}}}function tr(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFillStarting"),I(r,"part","ProgressBarFillStarting")},m(e,t){P(e,r,t)},p:H,d(e){e&&S(r)}}}function rr(e){let r;return{c(){I(r=t("div"),"class","ProgressBarFillEnd"),I(r,"part","ProgressBarFillEnd")},m(e,t){P(e,r,t)},p:H,d(e){e&&S(r)}}}function nr(e){let r,n,i,o,s=e[8]("left")+"";return{c(){r=t("div"),n=L(e[6]),i=N(),o=L(s),I(r,"class","Remaining"),I(r,"part","Remaining")},m(e,t){P(e,r,t),A(r,n),A(r,i),A(r,o)},p(e,t){64&t&&O(n,e[6]),256&t&&s!==(s=e[8]("left")+"")&&O(o,s)},d(e){e&&S(r)}}}function ir(e){let r,n,i,o,s=e[8]("starting")+"",a=e[11](e[5])+"";return{c(){r=t("div"),n=L(s),i=N(),o=L(a),I(r,"class","Remaining"),I(r,"part","Remaining")},m(e,t){P(e,r,t),A(r,n),A(r,i),A(r,o)},p(e,t){256&t&&s!==(s=e[8]("starting")+"")&&O(n,s),32&t&&a!==(a=e[11](e[5])+"")&&O(o,a)},d(e){e&&S(r)}}}function or(e){let r,n,i=e[8]("finished")+"";return{c(){r=t("div"),n=L(i),I(r,"class","Finished"),I(r,"part","Finished")},m(e,t){P(e,r,t),A(r,n)},p(e,t){256&t&&i!==(i=e[8]("finished")+"")&&O(n,i)},d(e){e&&S(r)}}}function sr(r){let n,i=r[0]&&r[1]&&Jt(r);return{c(){n=t("div"),i&&i.c(),this.c=H,I(n,"class","TournamentDuration"),I(n,"part","TournamentDuration")},m(e,t){P(e,n,t),i&&i.m(n,null),r[16](n)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=Jt(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:H,o:H,d(e){e&&S(n),i&&i.d(),r[16](null)}}}function ar(t,e,r){let n,i,o;o=Wt,t.$$.on_destroy.push($(o,e=>r(8,i=e)));let s,{startdate:a=""}=e,{enddate:h=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:f=""}=e,{translationurl:p=""}=e,m="",g="",d="",b=(Object.keys(qt).forEach(e=>{Qt(e,qt[e])}),e=>new Date(e).getTime()),E=(e,t)=>(b(t)-b(e))/6e4,y=()=>{var e=new Date;r(4,m=E(e,h)),r(5,g=E(e,a)),r(6,d=v(m))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>(e=Math.floor(e))<10?"0"+e:""+e).join(":"):Math.ceil(e/1440)+" "+i("days")};return e=()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);let e=setInterval(()=>{a&&h&&y()},1e3);return()=>clearInterval(e)},(()=>{if(T)return T;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e),t.$$set=e=>{"startdate"in e&&r(0,a=e.startdate),"enddate"in e&&r(1,h=e.enddate),"status"in e&&r(2,l=e.status),"lang"in e&&r(12,u=e.lang),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,f=e.clientstylingurl),"translationurl"in e&&r(15,p=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&r(7,n=()=>{var e,t;return m<=0?100:(t=100/(e=E(a,h)),Math.floor((e-m)*t))}),19&t.$$.dirty&&a&&h&&y(),4096&t.$$.dirty&&u&&y(),4112&t.$$.dirty&&u&&v(m),32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qt(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=c,s.appendChild(e)),16392&t.$$.dirty&&s&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[a,h,l,s,m,g,d,n,i,y,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,f,p,function(e){k[e?"unshift":"push"](()=>{s=e,r(3,s)})}]}class hr extends Z{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:(e=>{var t,r={};for(t of e)r[t.name]=t.value;return r})(this.attributes),customElement:!0},ar,sr,G,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),g())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),g()}}return customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",hr),hr});
2
2
  //# sourceMappingURL=casino-tournaments-thumbnail-duration.js.map