@everymatrix/casino-bonuses-controller 1.98.12 → 1.98.14

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,6 +1,6 @@
1
- "use strict";var zd=Object.defineProperty,$d=Object.defineProperties;var Vd=Object.getOwnPropertyDescriptors;var tr=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable;var di=(n,e,t)=>e in n?zd(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pt=(n,e)=>{for(var t in e||(e={}))Ko.call(e,t)&&di(n,t,e[t]);if(tr)for(var t of tr(e))Jo.call(e,t)&&di(n,t,e[t]);return n},nr=(n,e)=>$d(n,Vd(e));var Qo=(n,e)=>{var t={};for(var r in n)Ko.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&tr)for(var r of tr(n))e.indexOf(r)<0&&Jo.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(di(n,typeof e!="symbol"?e+"":e,t),t);var Ue=(n,e,t)=>new Promise((r,i)=>{var o=l=>{try{a(t.next(l))}catch(u){i(u)}},s=l=>{try{a(t.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((t=t.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Me(){}function k(n,e){for(const t in e)n[t]=e[t];return n}function yl(n){return n()}function es(){return Object.create(null)}function qe(n){n.forEach(yl)}function zn(n){return typeof n=="function"}function $n(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let rr;function ts(n,e){return n===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,n===rr.href)}function Wd(n){return Object.keys(n).length===0}function wl(n,...e){if(n==null){for(const r of e)r(void 0);return Me}const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Cl(n,e,t){n.$$.on_destroy.push(wl(e,t))}function Vn(n,e,t,r){if(n){const i=El(n,e,t,r);return n[0](i)}}function El(n,e,t,r){return n[1]&&r?k(t.ctx.slice(),n[1](r(e))):t.ctx}function Wn(n,e,t,r){if(n[2]&&r){const i=n[2](r(t));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function jn(n,e,t,r,i,o){if(i){const s=El(e,t,r,o);n.p(s,i)}}function Gn(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let r=0;r<t;r++)e[r]=-1;return e}return-1}function jd(n){return n&&zn(n.destroy)?n.destroy:Me}const Gd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Lr(n,e,t){const r=Yd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,qd(r,i)}}function Yd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function qd(n,e){return p(n.head||n,e),e.sheet}function N(n,e,t){n.insertBefore(e,t||null)}function O(n){n.parentNode&&n.parentNode.removeChild(n)}function yt(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function E(n){return document.createElement(n)}function te(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function D(n){return document.createTextNode(n)}function z(){return D(" ")}function nt(){return D("")}function Pe(n,e,t,r){return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function m(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}const Xd=["width","height"];function T(n,e){const t=Object.getOwnPropertyDescriptors(n.__proto__);for(const r in e)e[r]==null?n.removeAttribute(r):r==="style"?n.style.cssText=e[r]:r==="__value"?n.value=n[r]=e[r]:t[r]&&t[r].set&&Xd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function xl(n,e){for(const t in e)m(n,t,e[t])}function $e(n,e,t){const r=e.toLowerCase();r in n?n[r]=typeof n[r]=="boolean"&&t===""?!0:t:e in n?n[e]=typeof n[e]=="boolean"&&t===""?!0:t:m(n,e,t)}function Al(n){return n===""?null:+n}function Zd(n){return Array.from(n.childNodes)}function fe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Kd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~Gd.indexOf(t)?Kd(n,e):fe(n,e)}function vr(n,e){n.value=e==null?"":e}function ns(n,e,t,r){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,"")}function le(n,e,t){n.classList.toggle(e,!!t)}function Jd(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let kn;function xn(n){kn=n}function Qd(){if(!kn)throw new Error("Function called outside component initialization");return kn}function Hr(n){Qd().$$.on_mount.push(n)}const Wt=[],st=[];let Yt=[];const rs=[],ec=Promise.resolve();let Ri=!1;function tc(){Ri||(Ri=!0,ec.then(de))}function Fi(n){Yt.push(n)}const ci=new Set;let Ut=0;function de(){if(Ut!==0)return;const n=kn;do{try{for(;Ut<Wt.length;){const e=Wt[Ut];Ut++,xn(e),nc(e.$$)}}catch(e){throw Wt.length=0,Ut=0,e}for(xn(null),Wt.length=0,Ut=0;st.length;)st.pop()();for(let e=0;e<Yt.length;e+=1){const t=Yt[e];ci.has(t)||(ci.add(t),t())}Yt.length=0}while(Wt.length);for(;rs.length;)rs.pop()();Ri=!1,ci.clear(),xn(n)}function nc(n){if(n.fragment!==null){n.update(),qe(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Fi)}}function rc(n){const e=[],t=[];Yt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Yt=e}const hr=new Set;let Pt;function Tl(){Pt={r:0,c:[],p:Pt}}function Pl(){Pt.r||qe(Pt.c),Pt=Pt.p}function Ze(n,e){n&&n.i&&(hr.delete(n),n.i(e))}function ut(n,e,t,r){if(n&&n.o){if(hr.has(n))return;hr.add(n),Pt.c.push(()=>{hr.delete(n),r&&(t&&n.d(1),r())}),n.o(e)}else r&&r()}function Re(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function ke(n,e){const t={},r={},i={$$scope:1};let o=n.length;for(;o--;){const s=n[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);n[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in t||(t[s]=void 0);return t}function ic(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),Fi(()=>{const o=n.$$.on_mount.map(yl).filter(zn);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach(Fi)}function oc(n,e){const t=n.$$;t.fragment!==null&&(rc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sc(n,e){n.$$.dirty[0]===-1&&(Wt.push(n),tc(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Rr(n,e,t,r,i,o,s=null,a=[-1]){const l=kn;xn(n);const u=n.$$={fragment:null,ctx:[],props:o,update:Me,not_equal:i,bound:es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:es(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=t?t(n,e.props||{},(c,h,...f)=>{const _=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=_)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](_),d&&sc(n,c)),h}):[],u.update(),d=!0,qe(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Zd(e.target);u.fragment&&u.fragment.l(c),c.forEach(O)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),ic(n,e.target,e.anchor),de()}xn(l)}let Sl;typeof HTMLElement=="function"&&(Sl=class extends HTMLElement{constructor(e,t,r){super();Ye(this,"$$ctor");Ye(this,"$$s");Ye(this,"$$c");Ye(this,"$$cn",!1);Ye(this,"$$d",{});Ye(this,"$$r",!1);Ye(this,"$$p_d",{});Ye(this,"$$l",{});Ye(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){N(u,s,d)},d:function(u){u&&O(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Jd(this);for(const o of this.$$s)o in r&&(t[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=fr(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nr(pt({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=fr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fr(n,e,t,r){var o;const i=(o=t[n])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Fr(n,e,t,r,i,o){let s=class extends Sl{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=fr(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),n.element=s,s}class Ur{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){oc(this,1),this.$destroy=Me}$on(e,t){if(!zn(t))return Me;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Wd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ac="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ac);const zt=[];function lc(n,e){return{subscribe:zr(n,e).subscribe}}function zr(n,e=Me){let t;const r=new Set;function i(a){if($n(n,a)&&(n=a,t)){const l=!zt.length;for(const u of r)u[1](),zt.push(u,n);if(l){for(let u=0;u<zt.length;u+=2)zt[u][0](zt[u+1]);zt.length=0}}}function o(a){i(a(n))}function s(a,l=Me){const u=[a,l];return r.add(u),r.size===1&&(t=e(i,o)||Me),a(n),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function an(n,e,t){const r=!Array.isArray(n),i=r?[n]:n;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return lc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const _=e(r?u[0]:u,s,a);o?s(_):c=zn(_)?_:Me},f=i.map((_,b)=>wl(_,w=>{u[b]=w,d&=~(1<<b),l&&h()},()=>{d|=1<<b}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function uc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dc=function(e){return cc(e)&&!hc(e)};function cc(n){return!!n&&typeof n=="object"}function hc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||mc(n)}var fc=typeof Symbol=="function"&&Symbol.for,pc=fc?Symbol.for("react.element"):60103;function mc(n){return n.$$typeof===pc}function _c(n){return Array.isArray(n)?[]:{}}function Dn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Jt(_c(n),n,e):n}function gc(n,e,t){return n.concat(e).map(function(r){return Dn(r,t)})}function bc(n,e){if(!e.customMerge)return Jt;var t=e.customMerge(n);return typeof t=="function"?t:Jt}function vc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function is(n){return Object.keys(n).concat(vc(n))}function kl(n,e){try{return e in n}catch(t){return!1}}function yc(n,e){return kl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function wc(n,e,t){var r={};return t.isMergeableObject(n)&&is(n).forEach(function(i){r[i]=Dn(n[i],t)}),is(e).forEach(function(i){yc(n,i)||(kl(n,i)&&t.isMergeableObject(e[i])?r[i]=bc(i,t)(n[i],e[i],t):r[i]=Dn(e[i],t))}),r}function Jt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||gc,t.isMergeableObject=t.isMergeableObject||dc,t.cloneUnlessOtherwiseSpecified=Dn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):wc(n,e,t):Dn(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Jt(r,i,t)},{})};var Cc=Jt,Ec=Cc;const xc=uc(Ec);var Ui=function(n,e){return Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Ui(n,e)};function $r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ui(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Ac(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function hi(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function fi(n,e){var t=e&&e.cache?e.cache:Bc,r=e&&e.serializer?e.serializer:Dc,i=e&&e.strategy?e.strategy:Sc;return i(n,{cache:t,serializer:r})}function Tc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Pc(n,e,t,r){var i=Tc(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function Dl(n,e,t){var r=Array.prototype.slice.call(arguments,3),i=t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.apply(this,r),e.set(i,o)),o}function Ml(n,e,t,r,i){return t.bind(e,n,r,i)}function Sc(n,e){var t=n.length===1?Pc:Dl;return Ml(n,this,t,e.cache.create(),e.serializer)}function kc(n,e){return Ml(n,this,Dl,e.cache.create(),e.serializer)}var Dc=function(){return JSON.stringify(arguments)},Mc=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(e){return this.cache[e]},n.prototype.set=function(e,t){this.cache[e]=t},n}(),Bc={create:function(){return new Mc}},pi={variadic:kc},yr=function(){return yr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yr.apply(this,arguments)};var ce;(function(n){n[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"})(ce||(ce={}));var Ee;(function(n){n[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"})(Ee||(Ee={}));var Qt;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Qt||(Qt={}));function os(n){return n.type===Ee.literal}function Oc(n){return n.type===Ee.argument}function Bl(n){return n.type===Ee.number}function Ol(n){return n.type===Ee.date}function Il(n){return n.type===Ee.time}function Nl(n){return n.type===Ee.select}function Ll(n){return n.type===Ee.plural}function Ic(n){return n.type===Ee.pound}function Hl(n){return n.type===Ee.tag}function Rl(n){return!!(n&&typeof n=="object"&&n.type===Qt.number)}function zi(n){return!!(n&&typeof n=="object"&&n.type===Qt.dateTime)}var Fl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Nc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Lc(n){var e={};return n.replace(Nc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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""}),e}var Se=function(){return Se=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Se.apply(this,arguments)};var Hc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Rc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Hc).filter(function(h){return h.length>0}),t=[],r=0,i=e;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Fc(n){return n.replace(/^(.*?)-/,"")}var ss=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ul=/^(@+)?(\+|#+)?[rs]?$/g,Uc=/(\*)(0+)|(#+)(0+)|(0+)/g,zl=/^(0+)$/;function as(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Ul,function(t,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function $l(n){switch(n){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 zc(n){var e;if(n[0]==="E"&&n[1]==="E"?(e={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(e={notation:"scientific"},n=n.slice(1)),e){var t=n.slice(0,2);if(t==="+!"?(e.signDisplay="always",n=n.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",n=n.slice(2)),!zl.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function ls(n){var e={},t=$l(n);return t||e}function $c(n){for(var e={},t=0,r=n;t<r.length;t++){var i=r[t];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Fc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Se(Se(Se({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Se(Se({},l),ls(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),ls(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Uc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(zl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ss.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ss,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Se(Se({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Se(Se({},e),as(o)));continue}if(Ul.test(i.stem)){e=Se(Se({},e),as(i.stem));continue}var s=$l(i.stem);s&&(e=Se(Se({},e),s));var a=zc(i.stem);a&&(e=Se(Se({},e),a))}return e}var ir={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Vc(n,e){for(var t="",r=0;r<n.length;r++){var i=n.charAt(r);if(i==="j"){for(var o=0;r+1<n.length&&n.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Wc(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else i==="J"?t+="H":t+=i}return t}function Wc(n){var e=n.hourCycle;if(e===void 0&&n.hourCycles&&n.hourCycles.length&&(e=n.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=n.language,r;t!=="root"&&(r=n.maximize().region);var i=ir[r||""]||ir[t||""]||ir["".concat(t,"-001")]||ir["001"];return i[0]}var mi,jc=new RegExp("^".concat(Fl.source,"*")),Gc=new RegExp("".concat(Fl.source,"*$"));function he(n,e){return{start:n,end:e}}var Yc=!!String.prototype.startsWith&&"_a".startsWith("a",1),qc=!!String.fromCodePoint,Xc=!!Object.fromEntries,Zc=!!String.prototype.codePointAt,Kc=!!String.prototype.trimStart,Jc=!!String.prototype.trimEnd,Qc=!!Number.isSafeInteger,eh=Qc?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},$i=!0;try{var th=Wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=((mi=th.exec("a"))===null||mi===void 0?void 0:mi[0])==="a"}catch(n){$i=!1}var us=Yc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Vi=qc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ds=Xc?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];t[s]=a}return t},Vl=Zc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var i=e.charCodeAt(t),o;return i<55296||i>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},nh=Kc?function(e){return e.trimStart()}:function(e){return e.replace(jc,"")},rh=Jc?function(e){return e.trimEnd()}:function(e){return e.replace(Gc,"")};function Wl(n,e){return new RegExp(n,e)}var Wi;if($i){var cs=Wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wi=function(e,t){var r;cs.lastIndex=t;var i=cs.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else Wi=function(e,t){for(var r=[];;){var i=Vl(e,t);if(i===void 0||jl(i)||ah(i))break;r.push(i),t+=i>=65536?2:1}return Vi.apply(void 0,r)};var ih=function(){function n(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ji(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ji(this.char()))return this.error(ce.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&sh(this.char());)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(t);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=he(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!oh(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Vi.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Vi(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Wi(this.message,t),i=t+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(e,o);return{value:r,location:s}},n.prototype.parseArgumentOptions=function(e,t,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,he(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=rh(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=he(i,this.clonePosition());if(u&&us(u==null?void 0:u.style,"::",0)){var w=nh(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(w,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:b,style:c.val},err:null}}else{if(w.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,b);var v=w;this.locale&&(v=Vc(w,this.locale));var h={type:Qt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Lc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:b,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,he(A,yr({},A)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,t,y);if(x.err)return x;var _=this.tryParseArgumentClose(i);if(_.err)return _;var F=he(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ds(x.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:ds(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,he(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Rc(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?$c(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,r);if(_.err)return _;var b=this.tryParseArgumentClose(f);if(b.err)return b;a.push([u,{value:_.val,location:he(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=he(i,this.clonePosition());return o?(s*=r,eh(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Vl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},n.prototype.bumpIf=function(e){if(us(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&jl(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},n}();function ji(n){return n>=97&&n<=122||n>=65&&n<=90}function oh(n){return ji(n)||n===47}function sh(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function jl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function ah(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function Gi(n){n.forEach(function(e){if(delete e.location,Nl(e)||Ll(e))for(var t in e.options)delete e.options[t].location,Gi(e.options[t].value);else Bl(e)&&Rl(e.style)||(Ol(e)||Il(e))&&zi(e.style)?delete e.style.location:Hl(e)&&Gi(e.children)})}function lh(n,e){e===void 0&&(e={}),e=yr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new ih(n,e).parse();if(t.err){var r=SyntaxError(ce[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Gi(t.val),t.val}var en;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(en||(en={}));var Vr=function(n){$r(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),hs=function(n){$r(e,n);function e(t,r,i,o){return n.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),en.INVALID_VALUE,o)||this}return e}(Vr),uh=function(n){$r(e,n);function e(t,r,i){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),en.INVALID_VALUE,i)||this}return e}(Vr),dh=function(n){$r(e,n);function e(t,r){return n.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),en.MISSING_VALUE,r)||this}return e}(Vr),ze;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(ze||(ze={}));function ch(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==ze.literal||t.type!==ze.literal?e.push(t):r.value+=t.value,e},[])}function hh(n){return typeof n=="function"}function pr(n,e,t,r,i,o,s){if(n.length===1&&os(n[0]))return[{type:ze.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(os(d)){a.push({type:ze.literal,value:d.value});continue}if(Ic(d)){typeof o=="number"&&a.push({type:ze.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new dh(c,s);var h=i[c];if(Oc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ze.literal:ze.object,value:h});continue}if(Ol(d)){var f=typeof d.style=="string"?r.date[d.style]:zi(d.style)?d.style.parsedOptions:void 0;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Il(d)){var f=typeof d.style=="string"?r.time[d.style]:zi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Bl(d)){var f=typeof d.style=="string"?r.number[d.style]:Rl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ze.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(Hl(d)){var _=d.children,b=d.value,w=i[b];if(!hh(w))throw new uh(b,"function",s);var v=pr(_,e,t,r,i,o),g=w(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?ze.literal:ze.object,value:S}}))}if(Nl(d)){var A=d.options[h]||d.options.other;if(!A)throw new hs(d.value,h,Object.keys(d.options),s);a.push.apply(a,pr(A.value,e,t,r,i));continue}if(Ll(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Vr(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var $d=Object.defineProperty,Wd=Object.defineProperties;var jd=Object.getOwnPropertyDescriptors;var rr=Object.getOwnPropertySymbols;var Qo=Object.prototype.hasOwnProperty,es=Object.prototype.propertyIsEnumerable;var hi=(n,e,t)=>e in n?$d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pt=(n,e)=>{for(var t in e||(e={}))Qo.call(e,t)&&hi(n,t,e[t]);if(rr)for(var t of rr(e))es.call(e,t)&&hi(n,t,e[t]);return n},ir=(n,e)=>Wd(n,jd(e));var ts=(n,e)=>{var t={};for(var r in n)Qo.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&rr)for(var r of rr(n))e.indexOf(r)<0&&es.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(hi(n,typeof e!="symbol"?e+"":e,t),t);var Ue=(n,e,t)=>new Promise((r,i)=>{var o=l=>{try{a(t.next(l))}catch(u){i(u)}},s=l=>{try{a(t.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((t=t.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Be(){}function k(n,e){for(const t in e)n[t]=e[t];return n}function Cl(n){return n()}function ns(){return Object.create(null)}function qe(n){n.forEach(Cl)}function Un(n){return typeof n=="function"}function zn(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let or;function rs(n,e){return n===e?!0:(or||(or=document.createElement("a")),or.href=e,n===or.href)}function Gd(n){return Object.keys(n).length===0}function El(n,...e){if(n==null){for(const r of e)r(void 0);return Be}const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function xl(n,e,t){n.$$.on_destroy.push(El(e,t))}function Vn(n,e,t,r){if(n){const i=Tl(n,e,t,r);return n[0](i)}}function Tl(n,e,t,r){return n[1]&&r?k(t.ctx.slice(),n[1](r(e))):t.ctx}function $n(n,e,t,r){if(n[2]&&r){const i=n[2](r(t));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function Wn(n,e,t,r,i,o){if(i){const s=Tl(e,t,r,o);n.p(s,i)}}function jn(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let r=0;r<t;r++)e[r]=-1;return e}return-1}function Yd(n){return n&&Un(n.destroy)?n.destroy:Be}const qd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Rr(n,e,t){const r=Xd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,Zd(r,i)}}function Xd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Zd(n,e){return p(n.head||n,e),e.sheet}function L(n,e,t){n.insertBefore(e,t||null)}function I(n){n.parentNode&&n.parentNode.removeChild(n)}function yt(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function E(n){return document.createElement(n)}function te(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function M(n){return document.createTextNode(n)}function z(){return M(" ")}function nt(){return M("")}function Ae(n,e,t,r){return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function m(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}const Kd=["width","height"];function P(n,e){const t=Object.getOwnPropertyDescriptors(n.__proto__);for(const r in e)e[r]==null?n.removeAttribute(r):r==="style"?n.style.cssText=e[r]:r==="__value"?n.value=n[r]=e[r]:t[r]&&t[r].set&&Kd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function Al(n,e){for(const t in e)m(n,t,e[t])}function Ve(n,e,t){const r=e.toLowerCase();r in n?n[r]=typeof n[r]=="boolean"&&t===""?!0:t:e in n?n[e]=typeof n[e]=="boolean"&&t===""?!0:t:m(n,e,t)}function Pl(n){return n===""?null:+n}function Jd(n){return Array.from(n.childNodes)}function pe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Qd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function ie(n,e,t){~qd.indexOf(t)?Qd(n,e):pe(n,e)}function yr(n,e){n.value=e==null?"":e}function is(n,e,t,r){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,"")}function le(n,e,t){n.classList.toggle(e,!!t)}function ec(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Sn;function En(n){Sn=n}function tc(){if(!Sn)throw new Error("Function called outside component initialization");return Sn}function Fr(n){tc().$$.on_mount.push(n)}const $t=[],lt=[];let Gt=[];const os=[],nc=Promise.resolve();let Ui=!1;function rc(){Ui||(Ui=!0,nc.then(de))}function zi(n){Gt.push(n)}const fi=new Set;let Ft=0;function de(){if(Ft!==0)return;const n=Sn;do{try{for(;Ft<$t.length;){const e=$t[Ft];Ft++,En(e),ic(e.$$)}}catch(e){throw $t.length=0,Ft=0,e}for(En(null),$t.length=0,Ft=0;lt.length;)lt.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];fi.has(t)||(fi.add(t),t())}Gt.length=0}while($t.length);for(;os.length;)os.pop()();Ui=!1,fi.clear(),En(n)}function ic(n){if(n.fragment!==null){n.update(),qe(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(zi)}}function oc(n){const e=[],t=[];Gt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Gt=e}const fr=new Set;let At;function Sl(){At={r:0,c:[],p:At}}function kl(){At.r||qe(At.c),At=At.p}function Ke(n,e){n&&n.i&&(fr.delete(n),n.i(e))}function ct(n,e,t,r){if(n&&n.o){if(fr.has(n))return;fr.add(n),At.c.push(()=>{fr.delete(n),r&&(t&&n.d(1),r())}),n.o(e)}else r&&r()}function Re(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function ke(n,e){const t={},r={},i={$$scope:1};let o=n.length;for(;o--;){const s=n[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);n[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in t||(t[s]=void 0);return t}function sc(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),zi(()=>{const o=n.$$.on_mount.map(Cl).filter(Un);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach(zi)}function ac(n,e){const t=n.$$;t.fragment!==null&&(oc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lc(n,e){n.$$.dirty[0]===-1&&($t.push(n),rc(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Ur(n,e,t,r,i,o,s=null,a=[-1]){const l=Sn;En(n);const u=n.$$={fragment:null,ctx:[],props:o,update:Be,not_equal:i,bound:ns(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ns(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=t?t(n,e.props||{},(c,h,...f)=>{const _=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=_)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](_),d&&lc(n,c)),h}):[],u.update(),d=!0,qe(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Jd(e.target);u.fragment&&u.fragment.l(c),c.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&Ke(n.$$.fragment),sc(n,e.target,e.anchor),de()}En(l)}let Dl;typeof HTMLElement=="function"&&(Dl=class extends HTMLElement{constructor(e,t,r){super();Ye(this,"$$ctor");Ye(this,"$$s");Ye(this,"$$c");Ye(this,"$$cn",!1);Ye(this,"$$d",{});Ye(this,"$$r",!1);Ye(this,"$$p_d",{});Ye(this,"$$l",{});Ye(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){L(u,s,d)},d:function(u){u&&I(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ec(this);for(const o of this.$$s)o in r&&(t[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=pr(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ir(pt({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=pr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function pr(n,e,t,r){var o;const i=(o=t[n])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function zr(n,e,t,r,i,o){let s=class extends Dl{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=pr(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),n.element=s,s}class Vr{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){ac(this,1),this.$destroy=Be}$on(e,t){if(!Un(t))return Be;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Gd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const uc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(uc);const Ut=[];function dc(n,e){return{subscribe:$r(n,e).subscribe}}function $r(n,e=Be){let t;const r=new Set;function i(a){if(zn(n,a)&&(n=a,t)){const l=!Ut.length;for(const u of r)u[1](),Ut.push(u,n);if(l){for(let u=0;u<Ut.length;u+=2)Ut[u][0](Ut[u+1]);Ut.length=0}}}function o(a){i(a(n))}function s(a,l=Be){const u=[a,l];return r.add(u),r.size===1&&(t=e(i,o)||Be),a(n),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function sn(n,e,t){const r=!Array.isArray(n),i=r?[n]:n;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return dc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Be;const h=()=>{if(d)return;c();const _=e(r?u[0]:u,s,a);o?s(_):c=Un(_)?_:Be},f=i.map((_,b)=>El(_,w=>{u[b]=w,d&=~(1<<b),l&&h()},()=>{d|=1<<b}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function cc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var hc=function(e){return fc(e)&&!pc(e)};function fc(n){return!!n&&typeof n=="object"}function pc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||gc(n)}var mc=typeof Symbol=="function"&&Symbol.for,_c=mc?Symbol.for("react.element"):60103;function gc(n){return n.$$typeof===_c}function bc(n){return Array.isArray(n)?[]:{}}function kn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Kt(bc(n),n,e):n}function vc(n,e,t){return n.concat(e).map(function(r){return kn(r,t)})}function yc(n,e){if(!e.customMerge)return Kt;var t=e.customMerge(n);return typeof t=="function"?t:Kt}function wc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function ss(n){return Object.keys(n).concat(wc(n))}function Ml(n,e){try{return e in n}catch(t){return!1}}function Cc(n,e){return Ml(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Ec(n,e,t){var r={};return t.isMergeableObject(n)&&ss(n).forEach(function(i){r[i]=kn(n[i],t)}),ss(e).forEach(function(i){Cc(n,i)||(Ml(n,i)&&t.isMergeableObject(e[i])?r[i]=yc(i,t)(n[i],e[i],t):r[i]=kn(e[i],t))}),r}function Kt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||vc,t.isMergeableObject=t.isMergeableObject||hc,t.cloneUnlessOtherwiseSpecified=kn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):Ec(n,e,t):kn(e,t)}Kt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Kt(r,i,t)},{})};var xc=Kt,Tc=xc;const Ac=cc(Tc);var Vi=function(n,e){return Vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Vi(n,e)};function Wr(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Vi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Pc(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function pi(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function mi(n,e){var t=e&&e.cache?e.cache:Ic,r=e&&e.serializer?e.serializer:Bc,i=e&&e.strategy?e.strategy:Dc;return i(n,{cache:t,serializer:r})}function Sc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function kc(n,e,t,r){var i=Sc(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function Bl(n,e,t){var r=Array.prototype.slice.call(arguments,3),i=t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.apply(this,r),e.set(i,o)),o}function Ol(n,e,t,r,i){return t.bind(e,n,r,i)}function Dc(n,e){var t=n.length===1?kc:Bl;return Ol(n,this,t,e.cache.create(),e.serializer)}function Mc(n,e){return Ol(n,this,Bl,e.cache.create(),e.serializer)}var Bc=function(){return JSON.stringify(arguments)},Oc=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(e){return this.cache[e]},n.prototype.set=function(e,t){this.cache[e]=t},n}(),Ic={create:function(){return new Oc}},_i={variadic:Mc},wr=function(){return wr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wr.apply(this,arguments)};var he;(function(n){n[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"})(he||(he={}));var Ee;(function(n){n[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"})(Ee||(Ee={}));var Jt;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Jt||(Jt={}));function as(n){return n.type===Ee.literal}function Nc(n){return n.type===Ee.argument}function Il(n){return n.type===Ee.number}function Nl(n){return n.type===Ee.date}function Ll(n){return n.type===Ee.time}function Hl(n){return n.type===Ee.select}function Rl(n){return n.type===Ee.plural}function Lc(n){return n.type===Ee.pound}function Fl(n){return n.type===Ee.tag}function Ul(n){return!!(n&&typeof n=="object"&&n.type===Jt.number)}function $i(n){return!!(n&&typeof n=="object"&&n.type===Jt.dateTime)}var zl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Rc(n){var e={};return n.replace(Hc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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""}),e}var Se=function(){return Se=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Se.apply(this,arguments)};var Fc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Uc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Fc).filter(function(h){return h.length>0}),t=[],r=0,i=e;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function zc(n){return n.replace(/^(.*?)-/,"")}var ls=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vl=/^(@+)?(\+|#+)?[rs]?$/g,Vc=/(\*)(0+)|(#+)(0+)|(0+)/g,$l=/^(0+)$/;function us(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Vl,function(t,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Wl(n){switch(n){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 $c(n){var e;if(n[0]==="E"&&n[1]==="E"?(e={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(e={notation:"scientific"},n=n.slice(1)),e){var t=n.slice(0,2);if(t==="+!"?(e.signDisplay="always",n=n.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",n=n.slice(2)),!$l.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function ds(n){var e={},t=Wl(n);return t||e}function Wc(n){for(var e={},t=0,r=n;t<r.length;t++){var i=r[t];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=zc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Se(Se(Se({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Se(Se({},l),ds(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),ds(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Vc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if($l.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ls.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ls,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Se(Se({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Se(Se({},e),us(o)));continue}if(Vl.test(i.stem)){e=Se(Se({},e),us(i.stem));continue}var s=Wl(i.stem);s&&(e=Se(Se({},e),s));var a=$c(i.stem);a&&(e=Se(Se({},e),a))}return e}var sr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function jc(n,e){for(var t="",r=0;r<n.length;r++){var i=n.charAt(r);if(i==="j"){for(var o=0;r+1<n.length&&n.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Gc(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else i==="J"?t+="H":t+=i}return t}function Gc(n){var e=n.hourCycle;if(e===void 0&&n.hourCycles&&n.hourCycles.length&&(e=n.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=n.language,r;t!=="root"&&(r=n.maximize().region);var i=sr[r||""]||sr[t||""]||sr["".concat(t,"-001")]||sr["001"];return i[0]}var gi,Yc=new RegExp("^".concat(zl.source,"*")),qc=new RegExp("".concat(zl.source,"*$"));function fe(n,e){return{start:n,end:e}}var Xc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Zc=!!String.fromCodePoint,Kc=!!Object.fromEntries,Jc=!!String.prototype.codePointAt,Qc=!!String.prototype.trimStart,eh=!!String.prototype.trimEnd,th=!!Number.isSafeInteger,nh=th?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Wi=!0;try{var rh=Gl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wi=((gi=rh.exec("a"))===null||gi===void 0?void 0:gi[0])==="a"}catch(n){Wi=!1}var cs=Xc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ji=Zc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},hs=Kc?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];t[s]=a}return t},jl=Jc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var i=e.charCodeAt(t),o;return i<55296||i>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},ih=Qc?function(e){return e.trimStart()}:function(e){return e.replace(Yc,"")},oh=eh?function(e){return e.trimEnd()}:function(e){return e.replace(qc,"")};function Gl(n,e){return new RegExp(n,e)}var Gi;if(Wi){var fs=Gl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gi=function(e,t){var r;fs.lastIndex=t;var i=fs.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else Gi=function(e,t){for(var r=[];;){var i=jl(e,t);if(i===void 0||Yl(i)||uh(i))break;r.push(i),t+=i>=65536?2:1}return ji.apply(void 0,r)};var sh=function(){function n(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:fe(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(he.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Yi(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:fe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yi(this.char()))return this.error(he.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(he.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:fe(r,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(he.UNCLOSED_TAG,fe(r,this.clonePosition()))}else return this.error(he.INVALID_TAG,fe(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&lh(this.char());)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(t);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=fe(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ah(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return ji.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),ji(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(he.EMPTY_ARGUMENT,fe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(he.MALFORMED_ARGUMENT,fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:fe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(he.MALFORMED_ARGUMENT,fe(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Gi(this.message,t),i=t+r.length;this.bumpTo(i);var o=this.clonePosition(),s=fe(e,o);return{value:r,location:s}},n.prototype.parseArgumentOptions=function(e,t,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,fe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=oh(c.val);if(h.length===0)return this.error(he.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=fe(i,this.clonePosition());if(u&&cs(u==null?void 0:u.style,"::",0)){var w=ih(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(w,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:b,style:c.val},err:null}}else{if(w.length===0)return this.error(he.EXPECT_DATE_TIME_SKELETON,b);var v=w;this.locale&&(v=jc(w,this.locale));var h={type:Jt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Rc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:b,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(T,wr({},T)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,t,y);if(x.err)return x;var _=this.tryParseArgumentClose(i);if(_.err)return _;var R=fe(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:hs(x.val),location:R},err:null}:{val:{type:Ee.plural,value:r,options:hs(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(he.INVALID_ARGUMENT_TYPE,fe(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Uc(e)}catch(i){return this.error(he.INVALID_NUMBER_SKELETON,t)}return{val:{type:Jt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Wc(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,r);if(_.err)return _;var b=this.tryParseArgumentClose(f);if(b.err)return b;a.push([u,{value:_.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(t==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(he.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=fe(i,this.clonePosition());return o?(s*=r,nh(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=jl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},n.prototype.bumpIf=function(e){if(cs(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&Yl(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},n}();function Yi(n){return n>=97&&n<=122||n>=65&&n<=90}function ah(n){return Yi(n)||n===47}function lh(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function Yl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function uh(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function qi(n){n.forEach(function(e){if(delete e.location,Hl(e)||Rl(e))for(var t in e.options)delete e.options[t].location,qi(e.options[t].value);else Il(e)&&Ul(e.style)||(Nl(e)||Ll(e))&&$i(e.style)?delete e.style.location:Fl(e)&&qi(e.children)})}function dh(n,e){e===void 0&&(e={}),e=wr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new sh(n,e).parse();if(t.err){var r=SyntaxError(he[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||qi(t.val),t.val}var Qt;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Qt||(Qt={}));var jr=function(n){Wr(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ps=function(n){Wr(e,n);function e(t,r,i,o){return n.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Qt.INVALID_VALUE,o)||this}return e}(jr),ch=function(n){Wr(e,n);function e(t,r,i){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Qt.INVALID_VALUE,i)||this}return e}(jr),hh=function(n){Wr(e,n);function e(t,r){return n.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Qt.MISSING_VALUE,r)||this}return e}(jr),ze;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(ze||(ze={}));function fh(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==ze.literal||t.type!==ze.literal?e.push(t):r.value+=t.value,e},[])}function ph(n){return typeof n=="function"}function mr(n,e,t,r,i,o,s){if(n.length===1&&as(n[0]))return[{type:ze.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(as(d)){a.push({type:ze.literal,value:d.value});continue}if(Lc(d)){typeof o=="number"&&a.push({type:ze.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new hh(c,s);var h=i[c];if(Nc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ze.literal:ze.object,value:h});continue}if(Nl(d)){var f=typeof d.style=="string"?r.date[d.style]:$i(d.style)?d.style.parsedOptions:void 0;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ll(d)){var f=typeof d.style=="string"?r.time[d.style]:$i(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Il(d)){var f=typeof d.style=="string"?r.number[d.style]:Ul(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ze.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(Fl(d)){var _=d.children,b=d.value,w=i[b];if(!ph(w))throw new ch(b,"function",s);var v=mr(_,e,t,r,i,o),g=w(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?ze.literal:ze.object,value:S}}))}if(Hl(d)){var T=d.options[h]||d.options.other;if(!T)throw new ps(d.value,h,Object.keys(d.options),s);a.push.apply(a,mr(T.value,e,t,r,i));continue}if(Rl(d)){var T=d.options["=".concat(h)];if(!T){if(!Intl.PluralRules)throw new jr(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,en.MISSING_INTL_API,s);var y=t.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[y]||d.options.other}if(!A)throw new hs(d.value,h,Object.keys(d.options),s);a.push.apply(a,pr(A.value,e,t,r,i,h-(d.offset||0)));continue}}return ch(a)}function fh(n,e){return e?tt(tt(tt({},n||{}),e||{}),Object.keys(n).reduce(function(t,r){return t[r]=tt(tt({},n[r]),e[r]||{}),t},{})):n}function ph(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=fh(n[r],e[r]),t},tt({},n)):n}function _i(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function mh(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.number),strategy:pi.variadic}),getDateTimeFormat:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.dateTime),strategy:pi.variadic}),getPluralRules:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.pluralRules),strategy:pi.variadic})}}var _h=function(){function n(e,t,r,i){t===void 0&&(t=n.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==ze.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return pr(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=n.resolveLocale(t),typeof e=="string"){if(this.message=e,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Ac(s,["formatters"]);this.ast=n.__parse(e,tt(tt({},a),{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=ph(n.formats,r),this.formatters=i&&i.formatters||mh(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},n.__parse=lh,n.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"}}},n}();function gh(n,e){if(e==null)return;if(e in n)return n[e];const t=e.split(".");let r=n;for(let i=0;i<t.length;i++)if(typeof r=="object"){if(i>0){const o=t.slice(i,t.length).join(".");if(o in r){r=r[o];break}}r=r[t[i]]}else r=void 0;return r}const gt={},bh=(n,e,t)=>t&&(e in gt||(gt[e]={}),n in gt[e]||(gt[e][n]=t),t),Gl=(n,e)=>{if(e==null)return;if(e in gt&&n in gt[e])return gt[e][n];const t=Wr(e);for(let r=0;r<t.length;r++){const i=t[r],o=yh(i,n);if(o)return bh(n,e,o)}};let Ao;const Yn=zr({});function vh(n){return Ao[n]||null}function Yl(n){return n in Ao}function yh(n,e){if(!Yl(n))return null;const t=vh(n);return gh(t,e)}function wh(n){if(n==null)return;const e=Wr(n);for(let t=0;t<e.length;t++){const r=e[t];if(Yl(r))return r}}function ql(n,...e){delete gt[n],Yn.update(t=>(t[n]=xc.all([t[n]||{},...e]),t))}an([Yn],([n])=>Object.keys(n));Yn.subscribe(n=>Ao=n);const mr={};function Ch(n,e){mr[n].delete(e),mr[n].size===0&&delete mr[n]}function Xl(n){return mr[n]}function Eh(n){return Wr(n).map(e=>{const t=Xl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Yi(n){return n==null?!1:Wr(n).some(e=>{var t;return(t=Xl(e))==null?void 0:t.size})}function xh(n,e){return Promise.all(e.map(r=>(Ch(n,r),r().then(i=>i.default||i)))).then(r=>ql(n,...r))}const pn={};function Zl(n){if(!Yi(n))return n in pn?pn[n]:Promise.resolve();const e=Eh(n);return pn[n]=Promise.all(e.map(([t,r])=>xh(t,r))).then(()=>{if(Yi(n))return Zl(n);delete pn[n]}),pn[n]}const Ah={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"}}},Th={fallbackLocale:null,loadingDelay:200,formats:Ah,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ph=Th;function tn(){return Ph}const gi=zr(!1);var Sh=Object.defineProperty,kh=Object.defineProperties,Dh=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,Mh=Object.prototype.hasOwnProperty,Bh=Object.prototype.propertyIsEnumerable,ps=(n,e,t)=>e in n?Sh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Oh=(n,e)=>{for(var t in e||(e={}))Mh.call(e,t)&&ps(n,t,e[t]);if(fs)for(var t of fs(e))Bh.call(e,t)&&ps(n,t,e[t]);return n},Ih=(n,e)=>kh(n,Dh(e));let qi;const wr=zr(null);function ms(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Wr(n,e=tn().fallbackLocale){const t=ms(n);return e?[...new Set([...t,...ms(e)])]:t}function It(){return qi!=null?qi:void 0}wr.subscribe(n=>{qi=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Nh=n=>{if(n&&wh(n)&&Yi(n)){const{loadingDelay:e}=tn();let t;return typeof window!="undefined"&&It()!=null&&e?t=window.setTimeout(()=>gi.set(!0),e):gi.set(!0),Zl(n).then(()=>{wr.set(n)}).finally(()=>{clearTimeout(t),gi.set(!1)})}return wr.set(n)},ln=Ih(Oh({},wr),{set:Nh}),jr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Lh=Object.defineProperty,Cr=Object.getOwnPropertySymbols,Kl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,_s=(n,e,t)=>e in n?Lh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,To=(n,e)=>{for(var t in e||(e={}))Kl.call(e,t)&&_s(n,t,e[t]);if(Cr)for(var t of Cr(e))Jl.call(e,t)&&_s(n,t,e[t]);return n},un=(n,e)=>{var t={};for(var r in n)Kl.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Cr)for(var r of Cr(n))e.indexOf(r)<0&&Jl.call(n,r)&&(t[r]=n[r]);return t};const Mn=(n,e)=>{const{formats:t}=tn();if(n in t&&e in t[n])return t[n][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${n} format.`)},Hh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Mn("number",r)),new Intl.NumberFormat(t,i)}),Rh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Mn("date",r):Object.keys(i).length===0&&(i=Mn("date","short")),new Intl.DateTimeFormat(t,i)}),Fh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Mn("time",r):Object.keys(i).length===0&&(i=Mn("time","short")),new Intl.DateTimeFormat(t,i)}),Uh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Hh(To({locale:t},r))},zh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Rh(To({locale:t},r))},$h=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Fh(To({locale:t},r))},Vh=jr((n,e=It())=>new _h(n,e,tn().formats,{ignoreTag:tn().ignoreTag})),Wh=(n,e={})=>{var t,r,i,o;let s=e;typeof n=="object"&&(s=n,n=s.id);const{values:a,locale:l=It(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Gl(n,l);if(!d)d=(o=(i=(r=(t=tn()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:n,defaultValue:u}))!=null?i:u)!=null?o:n;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${n}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Vh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},jh=(n,e)=>$h(e).format(n),Gh=(n,e)=>zh(e).format(n),Yh=(n,e)=>Uh(e).format(n),qh=(n,e=It())=>Gl(n,e),Ql=an([ln,Yn],()=>Wh);an([ln],()=>jh);an([ln],()=>Gh);an([ln],()=>Yh);an([ln,Yn],()=>qh);function Er(n,e){ql(n,e)}function eu(n){ln.set(n)}/*! *****************************************************************************
3
+ `,Qt.MISSING_INTL_API,s);var y=t.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));T=d.options[y]||d.options.other}if(!T)throw new ps(d.value,h,Object.keys(d.options),s);a.push.apply(a,mr(T.value,e,t,r,i,h-(d.offset||0)));continue}}return fh(a)}function mh(n,e){return e?tt(tt(tt({},n||{}),e||{}),Object.keys(n).reduce(function(t,r){return t[r]=tt(tt({},n[r]),e[r]||{}),t},{})):n}function _h(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=mh(n[r],e[r]),t},tt({},n)):n}function bi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function gh(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,pi([void 0],t,!1)))},{cache:bi(n.number),strategy:_i.variadic}),getDateTimeFormat:mi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,pi([void 0],t,!1)))},{cache:bi(n.dateTime),strategy:_i.variadic}),getPluralRules:mi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,pi([void 0],t,!1)))},{cache:bi(n.pluralRules),strategy:_i.variadic})}}var bh=function(){function n(e,t,r,i){t===void 0&&(t=n.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==ze.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return mr(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=n.resolveLocale(t),typeof e=="string"){if(this.message=e,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Pc(s,["formatters"]);this.ast=n.__parse(e,tt(tt({},a),{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=_h(n.formats,r),this.formatters=i&&i.formatters||gh(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},n.__parse=dh,n.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"}}},n}();function vh(n,e){if(e==null)return;if(e in n)return n[e];const t=e.split(".");let r=n;for(let i=0;i<t.length;i++)if(typeof r=="object"){if(i>0){const o=t.slice(i,t.length).join(".");if(o in r){r=r[o];break}}r=r[t[i]]}else r=void 0;return r}const gt={},yh=(n,e,t)=>t&&(e in gt||(gt[e]={}),n in gt[e]||(gt[e][n]=t),t),ql=(n,e)=>{if(e==null)return;if(e in gt&&n in gt[e])return gt[e][n];const t=Gr(e);for(let r=0;r<t.length;r++){const i=t[r],o=Ch(i,n);if(o)return yh(n,e,o)}};let Po;const Gn=$r({});function wh(n){return Po[n]||null}function Xl(n){return n in Po}function Ch(n,e){if(!Xl(n))return null;const t=wh(n);return vh(t,e)}function Eh(n){if(n==null)return;const e=Gr(n);for(let t=0;t<e.length;t++){const r=e[t];if(Xl(r))return r}}function Zl(n,...e){delete gt[n],Gn.update(t=>(t[n]=Ac.all([t[n]||{},...e]),t))}sn([Gn],([n])=>Object.keys(n));Gn.subscribe(n=>Po=n);const _r={};function xh(n,e){_r[n].delete(e),_r[n].size===0&&delete _r[n]}function Kl(n){return _r[n]}function Th(n){return Gr(n).map(e=>{const t=Kl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Xi(n){return n==null?!1:Gr(n).some(e=>{var t;return(t=Kl(e))==null?void 0:t.size})}function Ah(n,e){return Promise.all(e.map(r=>(xh(n,r),r().then(i=>i.default||i)))).then(r=>Zl(n,...r))}const fn={};function Jl(n){if(!Xi(n))return n in fn?fn[n]:Promise.resolve();const e=Th(n);return fn[n]=Promise.all(e.map(([t,r])=>Ah(t,r))).then(()=>{if(Xi(n))return Jl(n);delete fn[n]}),fn[n]}const Ph={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"}}},Sh={fallbackLocale:null,loadingDelay:200,formats:Ph,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},kh=Sh;function en(){return kh}const vi=$r(!1);var Dh=Object.defineProperty,Mh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,_s=(n,e,t)=>e in n?Dh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Nh=(n,e)=>{for(var t in e||(e={}))Oh.call(e,t)&&_s(n,t,e[t]);if(ms)for(var t of ms(e))Ih.call(e,t)&&_s(n,t,e[t]);return n},Lh=(n,e)=>Mh(n,Bh(e));let Zi;const Cr=$r(null);function gs(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gr(n,e=en().fallbackLocale){const t=gs(n);return e?[...new Set([...t,...gs(e)])]:t}function Ot(){return Zi!=null?Zi:void 0}Cr.subscribe(n=>{Zi=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Hh=n=>{if(n&&Eh(n)&&Xi(n)){const{loadingDelay:e}=en();let t;return typeof window!="undefined"&&Ot()!=null&&e?t=window.setTimeout(()=>vi.set(!0),e):vi.set(!0),Jl(n).then(()=>{Cr.set(n)}).finally(()=>{clearTimeout(t),vi.set(!1)})}return Cr.set(n)},an=Lh(Nh({},Cr),{set:Hh}),Yr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Rh=Object.defineProperty,Er=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,bs=(n,e,t)=>e in n?Rh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,So=(n,e)=>{for(var t in e||(e={}))Ql.call(e,t)&&bs(n,t,e[t]);if(Er)for(var t of Er(e))eu.call(e,t)&&bs(n,t,e[t]);return n},ln=(n,e)=>{var t={};for(var r in n)Ql.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Er)for(var r of Er(n))e.indexOf(r)<0&&eu.call(n,r)&&(t[r]=n[r]);return t};const Dn=(n,e)=>{const{formats:t}=en();if(n in t&&e in t[n])return t[n][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${n} format.`)},Fh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Dn("number",r)),new Intl.NumberFormat(t,i)}),Uh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Dn("date",r):Object.keys(i).length===0&&(i=Dn("date","short")),new Intl.DateTimeFormat(t,i)}),zh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Dn("time",r):Object.keys(i).length===0&&(i=Dn("time","short")),new Intl.DateTimeFormat(t,i)}),Vh=(n={})=>{var e=n,{locale:t=Ot()}=e,r=ln(e,["locale"]);return Fh(So({locale:t},r))},$h=(n={})=>{var e=n,{locale:t=Ot()}=e,r=ln(e,["locale"]);return Uh(So({locale:t},r))},Wh=(n={})=>{var e=n,{locale:t=Ot()}=e,r=ln(e,["locale"]);return zh(So({locale:t},r))},jh=Yr((n,e=Ot())=>new bh(n,e,en().formats,{ignoreTag:en().ignoreTag})),Gh=(n,e={})=>{var t,r,i,o;let s=e;typeof n=="object"&&(s=n,n=s.id);const{values:a,locale:l=Ot(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=ql(n,l);if(!d)d=(o=(i=(r=(t=en()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:n,defaultValue:u}))!=null?i:u)!=null?o:n;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${n}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=jh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},Yh=(n,e)=>Wh(e).format(n),qh=(n,e)=>$h(e).format(n),Xh=(n,e)=>Vh(e).format(n),Zh=(n,e=Ot())=>ql(n,e),tu=sn([an,Gn],()=>Gh);sn([an],()=>Yh);sn([an],()=>qh);sn([an],()=>Xh);sn([an,Gn],()=>Zh);function xr(n,e){Zl(n,e)}function nu(n){an.set(n)}/*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
5
5
 
6
6
  Permission to use, copy, modify, and/or distribute this software for any
@@ -13,9 +13,9 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
13
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */var Xi=function(n,e){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Xi(n,e)};function qn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Zi(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function Ji(n,e,t){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||e)}function at(n){return typeof n=="function"}function tu(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var bi=tu(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
16
+ ***************************************************************************** */var Ki=function(n,e){return Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Ki(n,e)};function Yn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ki(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ji(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qi(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function eo(n,e,t){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||e)}function ut(n){return typeof n=="function"}function ru(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var yi=ru(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
17
17
  `+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Qi(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Gr=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Zi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){e={error:b}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(b){o=b instanceof bi?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Zi(c),f=h.next();!f.done;f=h.next()){var _=f.value;try{gs(_)}catch(b){o=o!=null?o:[],b instanceof bi?o=Ji(Ji([],Ki(o)),Ki(b.errors)):o.push(b)}}}catch(b){r={error:b}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new bi(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)gs(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Qi(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Qi(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),nu=Gr.EMPTY;function ru(n){return n instanceof Gr||n&&"closed"in n&&at(n.remove)&&at(n.add)&&at(n.unsubscribe)}function gs(n){at(n)?n():n.unsubscribe()}var Xh={Promise:void 0},Zh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Ji([n,e],Ki(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Kh(n){Zh.setTimeout(function(){throw n})}function bs(){}function _r(n){n()}var iu=function(n){qn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ru(t)&&t.add(r)):r.destination=ef,r}return e.create=function(t,r,i){return new eo(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Gr),Jh=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){or(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){or(r)}else or(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){or(t)}},n}(),eo=function(n){qn(e,n);function e(t,r,i){var o=n.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=t,o.destination=new Jh(s),o}return e}(iu);function or(n){Kh(n)}function Qh(n){throw n}var ef={closed:!0,next:bs,error:Qh,complete:bs},tf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nf(n){return n}function rf(n){return n.length===0?nf:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var vs=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=sf(e)?e:new eo(e,t,r);return _r(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=ys(t),new t(function(i,o){var s=new eo({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[tf]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=ys(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function ys(n){var e;return(e=n!=null?n:Xh.Promise)!==null&&e!==void 0?e:Promise}function of(n){return n&&at(n.next)&&at(n.error)&&at(n.complete)}function sf(n){return n&&n instanceof iu||of(n)&&ru(n)}var af=tu(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ou=function(n){qn(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new ws(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new af},e.prototype.next=function(t){var r=this;_r(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Zi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;_r(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;_r(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?nu:(this.currentObservers=null,a.push(t),new Gr(function(){r.currentObservers=null,Qi(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new vs;return t.source=this,t},e.create=function(t,r){return new ws(t,r)},e}(vs),ws=function(n){qn(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:nu},e}(ou),su={now:function(){return(su.delegate||Date).now()},delegate:void 0},lf=function(n){qn(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=su);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+l)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(ou);const Cs=[],Es={},uf=(n,e=0)=>{if(Cs.indexOf(n)==-1){const t=new lf(e);Es[n]=t,Cs.push(n)}return Es[n]};window.emWidgets={topic:uf};const au=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const xr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},jt="__WIDGET_GLOBAL_STYLE_CACHE__";function Yr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function qr(n,e){if(!n||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,n&&n.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Xr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=df(n,e),t;window[jt]||(window[jt]={}),t=cf(n,e);const o=t.unsubscribe.bind(t),s=()=>{if(window[jt][e]){const a=window[jt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[jt][e]}o()};return t.unsubscribe=s,t}function df(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function cf(n,e){return window.emMessageBus.subscribe(e,t=>{if(!n)return;const r=n.getRootNode(),i=window[jt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function Ar(n){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(n)}function dt(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function He(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Ke(n){He(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Ar(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function hf(n,e){He(2,arguments);var t=Ke(n),r=dt(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),o=new Date(t.getTime());o.setMonth(t.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(t.setFullYear(o.getFullYear(),o.getMonth(),i),t)}function ff(n,e){He(2,arguments);var t=Ke(n).getTime(),r=dt(e);return new Date(t+r)}var pf={};function Zr(){return pf}function mf(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function _f(n){return He(1,arguments),n instanceof Date||Ar(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function gf(n){if(He(1,arguments),!_f(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function bf(n,e){He(2,arguments);var t=dt(e);return ff(n,-t)}var vf=864e5;function yf(n){He(1,arguments);var e=Ke(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/vf)+1}function Tr(n){He(1,arguments);var e=1,t=Ke(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function lu(n){He(1,arguments);var e=Ke(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Tr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=Tr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function wf(n){He(1,arguments);var e=lu(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Tr(t);return r}var Cf=6048e5;function Ef(n){He(1,arguments);var e=Ke(n),t=Tr(e).getTime()-wf(e).getTime();return Math.round(t/Cf)+1}function Pr(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=Zr(),c=dt((t=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ke(n),f=h.getUTCDay(),_=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}function uu(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=Ke(n),c=d.getUTCFullYear(),h=Zr(),f=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(c+1,0,f),_.setUTCHours(0,0,0,0);var b=Pr(_,e),w=new Date(0);w.setUTCFullYear(c,0,f),w.setUTCHours(0,0,0,0);var v=Pr(w,e);return d.getTime()>=b.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function xf(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=Zr(),c=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=uu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var _=Pr(f,e);return _}var Af=6048e5;function Tf(n,e){He(1,arguments);var t=Ke(n),r=Pr(t,e).getTime()-xf(t,e).getTime();return Math.round(r/Af)+1}function ve(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var mt={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ve(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ve(r+1,2)},d:function(e,t){return ve(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return ve(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ve(e.getUTCHours(),t.length)},m:function(e,t){return ve(e.getUTCMinutes(),t.length)},s:function(e,t){return ve(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ve(o,t.length)}},$t={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pf={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return mt.y(e,t)},Y:function(e,t,r,i){var o=uu(e,i),s=o>0?o:1-o;if(t==="YY"){var a=s%100;return ve(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ve(s,t.length)},R:function(e,t){var r=lu(e);return ve(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ve(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return ve(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return ve(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return mt.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return ve(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var o=Tf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ve(o,t.length)},I:function(e,t,r){var i=Ef(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ve(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):mt.d(e,t)},D:function(e,t,r){var i=yf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ve(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ve(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ve(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return ve(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),o;switch(i===12?o=$t.noon:i===0?o=$t.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),o;switch(i>=17?o=$t.evening:i>=12?o=$t.afternoon:i>=4?o=$t.morning:o=$t.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return mt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mt.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ve(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ve(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):mt.s(e,t)},S:function(e,t){return mt.S(e,t)},X:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return As(s);case"XXXX":case"XX":return Tt(s);case"XXXXX":case"XXX":default:return Tt(s,":")}},x:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return As(s);case"xxxx":case"xx":return Tt(s);case"xxxxx":case"xxx":default:return Tt(s,":")}},O:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xs(s,":");case"OOOO":default:return"GMT"+Tt(s,":")}},z:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xs(s,":");case"zzzz":default:return"GMT"+Tt(s,":")}},t:function(e,t,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ve(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ve(s,t.length)}};function xs(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),o=r%60;if(o===0)return t+String(i);var s=e;return t+String(i)+s+ve(o,2)}function As(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ve(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ve(Math.floor(i/60),2),s=ve(i%60,2);return r+o+t+s}var Ts=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},du=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Sf=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ts(e,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Ts(i,t)).replace("{{time}}",du(o,t))},kf={p:du,P:Sf},Df=["D","DD"],Mf=["YY","YYYY"];function Bf(n){return Df.indexOf(n)!==-1}function Of(n){return Mf.indexOf(n)!==-1}function Ps(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var If={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nf=function(e,t,r){var i,o=If[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function vi(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var Lf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ff={date:vi({formats:Lf,defaultWidth:"full"}),time:vi({formats:Hf,defaultWidth:"full"}),dateTime:vi({formats:Rf,defaultWidth:"full"})},Uf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zf=function(e,t,r,i){return Uf[e]};function mn(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&n.formattingValues){var o=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):o;i=n.formattingValues[s]||n.formattingValues[o]}else{var a=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[l]||n.values[a]}var u=n.argumentCallback?n.argumentCallback(e):e;return i[u]}}var $f={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Vf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Gf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qf=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Xf={ordinalNumber:qf,era:mn({values:$f,defaultWidth:"wide"}),quarter:mn({values:Vf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:mn({values:Wf,defaultWidth:"wide"}),day:mn({values:jf,defaultWidth:"wide"}),dayPeriod:mn({values:Gf,defaultWidth:"wide",formattingValues:Yf,defaultFormattingWidth:"wide"})};function _n(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Kf(a,function(c){return c.test(s)}):Zf(a,function(c){return c.test(s)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function Zf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Kf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function Jf(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Qf=/^(\d+)(th|st|nd|rd)?/i,ep=/\d+/i,tp={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},np={any:[/^b/i,/^(a|c)/i]},rp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ip={any:[/1/i,/2/i,/3/i,/4/i]},op={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sp={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ap={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},up={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cp={ordinalNumber:Jf({matchPattern:Qf,parsePattern:ep,valueCallback:function(e){return parseInt(e,10)}}),era:_n({matchPatterns:tp,defaultMatchWidth:"wide",parsePatterns:np,defaultParseWidth:"any"}),quarter:_n({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_n({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any"}),day:_n({matchPatterns:ap,defaultMatchWidth:"wide",parsePatterns:lp,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:up,defaultMatchWidth:"any",parsePatterns:dp,defaultParseWidth:"any"})},hp={code:"en-US",formatDistance:Nf,formatLong:Ff,formatRelative:zf,localize:Xf,match:cp,options:{weekStartsOn:0,firstWeekContainsDate:1}},fp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mp=/^'([^]*?)'?$/,_p=/''/g,gp=/[a-zA-Z]/;function An(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,_,b,w;He(2,arguments);var v=String(e),g=Zr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:hp,y=dt((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=dt((c=(h=(f=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(b=g.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=Ke(n);if(!gf(x))throw new RangeError("Invalid time value");var F=mf(x),j=bf(x,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:A,_originalDate:x},R=v.match(pp).map(function(I){var V=I[0];if(V==="p"||V==="P"){var Z=kf[V];return Z(I,A.formatLong)}return I}).join("").match(fp).map(function(I){if(I==="''")return"'";var V=I[0];if(V==="'")return bp(I);var Z=Pf[V];if(Z)return Of(I)&&Ps(I,e,String(n)),Bf(I)&&Ps(I,e,String(n)),Z(j,I,A.localize,G);if(V.match(gp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return I}).join("");return R}function bp(n){var e=n.match(mp);return e?e[1].replace(_p,"'"):n}function Ss(n,e){He(2,arguments);var t=dt(e);return hf(n,-t)}/**
18
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function to(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var qr=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ji(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){e={error:b}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(ut(d))try{d()}catch(b){o=b instanceof yi?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Ji(c),f=h.next();!f.done;f=h.next()){var _=f.value;try{vs(_)}catch(b){o=o!=null?o:[],b instanceof yi?o=eo(eo([],Qi(o)),Qi(b.errors)):o.push(b)}}}catch(b){r={error:b}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new yi(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)vs(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&to(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&to(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),iu=qr.EMPTY;function ou(n){return n instanceof qr||n&&"closed"in n&&ut(n.remove)&&ut(n.add)&&ut(n.unsubscribe)}function vs(n){ut(n)?n():n.unsubscribe()}var Kh={Promise:void 0},Jh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,eo([n,e],Qi(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Qh(n){Jh.setTimeout(function(){throw n})}function ys(){}function gr(n){n()}var su=function(n){Yn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ou(t)&&t.add(r)):r.destination=nf,r}return e.create=function(t,r,i){return new no(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(qr),ef=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){ar(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){ar(r)}else ar(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ar(t)}},n}(),no=function(n){Yn(e,n);function e(t,r,i){var o=n.call(this)||this,s;return ut(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=t,o.destination=new ef(s),o}return e}(su);function ar(n){Qh(n)}function tf(n){throw n}var nf={closed:!0,next:ys,error:tf,complete:ys},rf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function of(n){return n}function sf(n){return n.length===0?of:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var ws=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=lf(e)?e:new no(e,t,r);return gr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=Cs(t),new t(function(i,o){var s=new no({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[rf]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=Cs(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function Cs(n){var e;return(e=n!=null?n:Kh.Promise)!==null&&e!==void 0?e:Promise}function af(n){return n&&ut(n.next)&&ut(n.error)&&ut(n.complete)}function lf(n){return n&&n instanceof su||af(n)&&ou(n)}var uf=ru(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),au=function(n){Yn(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Es(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new uf},e.prototype.next=function(t){var r=this;gr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Ji(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;gr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;gr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?iu:(this.currentObservers=null,a.push(t),new qr(function(){r.currentObservers=null,to(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new ws;return t.source=this,t},e.create=function(t,r){return new Es(t,r)},e}(ws),Es=function(n){Yn(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:iu},e}(au),lu={now:function(){return(lu.delegate||Date).now()},delegate:void 0},df=function(n){Yn(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=lu);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+l)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(au);const xs=[],Ts={},cf=(n,e=0)=>{if(xs.indexOf(n)==-1){const t=new df(e);Ts[n]=t,xs.push(n)}return Ts[n]};window.emWidgets={topic:cf};const uu=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const Tr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},Wt="__WIDGET_GLOBAL_STYLE_CACHE__";function Xr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function Zr(n,e){if(!n||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,n&&n.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Kr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=hf(n,e),t;window[Wt]||(window[Wt]={}),t=ff(n,e);const o=t.unsubscribe.bind(t),s=()=>{if(window[Wt][e]){const a=window[Wt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[Wt][e]}o()};return t.unsubscribe=s,t}function hf(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function ff(n,e){return window.emMessageBus.subscribe(e,t=>{if(!n)return;const r=n.getRootNode(),i=window[Wt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function Ar(n){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(n)}function ht(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Le(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Je(n){Le(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Ar(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pf(n,e){Le(2,arguments);var t=Je(n),r=ht(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),o=new Date(t.getTime());o.setMonth(t.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(t.setFullYear(o.getFullYear(),o.getMonth(),i),t)}function mf(n,e){Le(2,arguments);var t=Je(n).getTime(),r=ht(e);return new Date(t+r)}var _f={};function Jr(){return _f}function gf(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bf(n){return Le(1,arguments),n instanceof Date||Ar(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function vf(n){if(Le(1,arguments),!bf(n)&&typeof n!="number")return!1;var e=Je(n);return!isNaN(Number(e))}function yf(n,e){Le(2,arguments);var t=ht(e);return mf(n,-t)}var wf=864e5;function Cf(n){Le(1,arguments);var e=Je(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/wf)+1}function Pr(n){Le(1,arguments);var e=1,t=Je(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function du(n){Le(1,arguments);var e=Je(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Pr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=Pr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Ef(n){Le(1,arguments);var e=du(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Pr(t);return r}var xf=6048e5;function Tf(n){Le(1,arguments);var e=Je(n),t=Pr(e).getTime()-Ef(e).getTime();return Math.round(t/xf)+1}function Sr(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Jr(),c=ht((t=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Je(n),f=h.getUTCDay(),_=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}function cu(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Je(n),c=d.getUTCFullYear(),h=Jr(),f=ht((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(c+1,0,f),_.setUTCHours(0,0,0,0);var b=Sr(_,e),w=new Date(0);w.setUTCFullYear(c,0,f),w.setUTCHours(0,0,0,0);var v=Sr(w,e);return d.getTime()>=b.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function Af(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Jr(),c=ht((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=cu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var _=Sr(f,e);return _}var Pf=6048e5;function Sf(n,e){Le(1,arguments);var t=Je(n),r=Sr(t,e).getTime()-Af(t,e).getTime();return Math.round(r/Pf)+1}function ve(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var mt={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ve(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ve(r+1,2)},d:function(e,t){return ve(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return ve(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ve(e.getUTCHours(),t.length)},m:function(e,t){return ve(e.getUTCMinutes(),t.length)},s:function(e,t){return ve(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ve(o,t.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kf={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return mt.y(e,t)},Y:function(e,t,r,i){var o=cu(e,i),s=o>0?o:1-o;if(t==="YY"){var a=s%100;return ve(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ve(s,t.length)},R:function(e,t){var r=du(e);return ve(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ve(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return ve(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return ve(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return mt.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return ve(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var o=Sf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ve(o,t.length)},I:function(e,t,r){var i=Tf(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ve(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):mt.d(e,t)},D:function(e,t,r){var i=Cf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ve(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ve(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ve(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return ve(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),o;switch(i===12?o=zt.noon:i===0?o=zt.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),o;switch(i>=17?o=zt.evening:i>=12?o=zt.afternoon:i>=4?o=zt.morning:o=zt.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return mt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mt.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ve(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ve(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):mt.s(e,t)},S:function(e,t){return mt.S(e,t)},X:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Ps(s);case"XXXX":case"XX":return Tt(s);case"XXXXX":case"XXX":default:return Tt(s,":")}},x:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return Ps(s);case"xxxx":case"xx":return Tt(s);case"xxxxx":case"xxx":default:return Tt(s,":")}},O:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+As(s,":");case"OOOO":default:return"GMT"+Tt(s,":")}},z:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+As(s,":");case"zzzz":default:return"GMT"+Tt(s,":")}},t:function(e,t,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ve(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ve(s,t.length)}};function As(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),o=r%60;if(o===0)return t+String(i);var s=e;return t+String(i)+s+ve(o,2)}function Ps(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ve(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ve(Math.floor(i/60),2),s=ve(i%60,2);return r+o+t+s}var Ss=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},hu=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Df=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ss(e,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Ss(i,t)).replace("{{time}}",hu(o,t))},Mf={p:hu,P:Df},Bf=["D","DD"],Of=["YY","YYYY"];function If(n){return Bf.indexOf(n)!==-1}function Nf(n){return Of.indexOf(n)!==-1}function ks(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Lf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Hf=function(e,t,r){var i,o=Lf[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function wi(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var Rf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ff={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Uf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zf={date:wi({formats:Rf,defaultWidth:"full"}),time:wi({formats:Ff,defaultWidth:"full"}),dateTime:wi({formats:Uf,defaultWidth:"full"})},Vf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$f=function(e,t,r,i){return Vf[e]};function pn(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&n.formattingValues){var o=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):o;i=n.formattingValues[s]||n.formattingValues[o]}else{var a=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[l]||n.values[a]}var u=n.argumentCallback?n.argumentCallback(e):e;return i[u]}}var Wf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zf=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Kf={ordinalNumber:Zf,era:pn({values:Wf,defaultWidth:"wide"}),quarter:pn({values:jf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pn({values:Gf,defaultWidth:"wide"}),day:pn({values:Yf,defaultWidth:"wide"}),dayPeriod:pn({values:qf,defaultWidth:"wide",formattingValues:Xf,defaultFormattingWidth:"wide"})};function mn(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Qf(a,function(c){return c.test(s)}):Jf(a,function(c){return c.test(s)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function Jf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Qf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function ep(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var tp=/^(\d+)(th|st|nd|rd)?/i,np=/\d+/i,rp={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ip={any:[/^b/i,/^(a|c)/i]},op={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sp={any:[/1/i,/2/i,/3/i,/4/i]},ap={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lp={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},up={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cp={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fp={ordinalNumber:ep({matchPattern:tp,parsePattern:np,valueCallback:function(e){return parseInt(e,10)}}),era:mn({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any"}),quarter:mn({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mn({matchPatterns:ap,defaultMatchWidth:"wide",parsePatterns:lp,defaultParseWidth:"any"}),day:mn({matchPatterns:up,defaultMatchWidth:"wide",parsePatterns:dp,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:cp,defaultMatchWidth:"any",parsePatterns:hp,defaultParseWidth:"any"})},pp={code:"en-US",formatDistance:Hf,formatLong:zf,formatRelative:$f,localize:Kf,match:fp,options:{weekStartsOn:0,firstWeekContainsDate:1}},mp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gp=/^'([^]*?)'?$/,bp=/''/g,vp=/[a-zA-Z]/;function xn(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,_,b,w;Le(2,arguments);var v=String(e),g=Jr(),T=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:pp,y=ht((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=ht((c=(h=(f=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(b=g.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var x=Je(n);if(!vf(x))throw new RangeError("Invalid time value");var R=gf(x),G=yf(x,R),j={firstWeekContainsDate:y,weekStartsOn:S,locale:T,_originalDate:x},F=v.match(_p).map(function(O){var $=O[0];if($==="p"||$==="P"){var X=Mf[$];return X(O,T.formatLong)}return O}).join("").match(mp).map(function(O){if(O==="''")return"'";var $=O[0];if($==="'")return yp(O);var X=kf[$];if(X)return Nf(O)&&ks(O,e,String(n)),If(O)&&ks(O,e,String(n)),X(G,O,T.localize,j);if($.match(vp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return O}).join("");return F}function yp(n){var e=n.match(gp);return e?e[1].replace(bp,"'"):n}function Ds(n,e){Le(2,arguments);var t=ht(e);return pf(n,-t)}/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -23,43 +23,43 @@ PERFORMANCE OF THIS SOFTWARE.
23
23
  * @license
24
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
25
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
26
- */class vp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(vp);/**
26
+ */class wp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(wp);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const gr=globalThis,Po=gr.ShadowRoot&&(gr.ShadyCSS===void 0||gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,So=Symbol(),ks=new WeakMap;let ko=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==So)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Po&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=ks.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(t,e))}return e}toString(){return this.cssText}};const yp=n=>new ko(typeof n=="string"?n:n+"",void 0,So),me=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,i,o)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[o+1],n[0]);return new ko(t,n,So)},cu=(n,e)=>{if(Po)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=gr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},Ds=Po?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return yp(t)})(n):n;/**
30
+ */const br=globalThis,ko=br.ShadowRoot&&(br.ShadyCSS===void 0||br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Do=Symbol(),Ms=new WeakMap;let Mo=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Do)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(ko&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Ms.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ms.set(t,e))}return e}toString(){return this.cssText}};const Cp=n=>new Mo(typeof n=="string"?n:n+"",void 0,Do),me=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,i,o)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[o+1],n[0]);return new Mo(t,n,Do)},fu=(n,e)=>{if(ko)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=br.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},Bs=ko?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Cp(t)})(n):n;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:wp,defineProperty:Cp,getOwnPropertyDescriptor:Ep,getOwnPropertyNames:xp,getOwnPropertySymbols:Ap,getPrototypeOf:Tp}=Object,bt=globalThis,Ms=bt.trustedTypes,Pp=Ms?Ms.emptyScript:"",yi=bt.reactiveElementPolyfillSupport,Tn=(n,e)=>n,to={toAttribute(n,e){switch(e){case Boolean:n=n?Pp:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch(r){t=null}}return t}},hu=(n,e)=>!wp(n,e),Bs={attribute:!0,type:String,converter:to,reflect:!1,useDefault:!1,hasChanged:hu};var pl,ml;(pl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ml=bt.litPropertyMetadata)!=null||(bt.litPropertyMetadata=new WeakMap);let Gt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Bs){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&Cp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=Ep(this.prototype,e))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Bs}static _$Ei(){if(this.hasOwnProperty(Tn("elementProperties")))return;const e=Tp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Tn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tn("properties"))){const t=this.properties,r=[...xp(t),...Ap(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(Ds(i))}else e!==void 0&&t.push(Ds(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return cu(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var o;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:to).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,t){var o,s,a;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=r.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:to;this._$Em=i;const d=u.fromAttribute(t,l.type);this[i]=(a=d!=null?d:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:d,this._$Em=null}}requestUpdate(e,t,r,i=!1,o){var s,a;if(e!==void 0){const l=this.constructor;if(i===!1&&(o=this[e]),r!=null||(r=l.getPropertyOptions(e)),!(((s=r.hasChanged)!=null?s:hu)(o,t)||r.useDefault&&r.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:o},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var _l;Gt.elementStyles=[],Gt.shadowRootOptions={mode:"open"},Gt[Tn("elementProperties")]=new Map,Gt[Tn("finalized")]=new Map,yi==null||yi({ReactiveElement:Gt}),((_l=bt.reactiveElementVersions)!=null?_l:bt.reactiveElementVersions=[]).push("2.1.2");/**
34
+ */const{is:Ep,defineProperty:xp,getOwnPropertyDescriptor:Tp,getOwnPropertyNames:Ap,getOwnPropertySymbols:Pp,getPrototypeOf:Sp}=Object,bt=globalThis,Os=bt.trustedTypes,kp=Os?Os.emptyScript:"",Ci=bt.reactiveElementPolyfillSupport,Tn=(n,e)=>n,ro={toAttribute(n,e){switch(e){case Boolean:n=n?kp:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch(r){t=null}}return t}},pu=(n,e)=>!Ep(n,e),Is={attribute:!0,type:String,converter:ro,reflect:!1,useDefault:!1,hasChanged:pu};var _l,gl;(_l=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(gl=bt.litPropertyMetadata)!=null||(bt.litPropertyMetadata=new WeakMap);let jt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Is){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&xp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=Tp(this.prototype,e))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Is}static _$Ei(){if(this.hasOwnProperty(Tn("elementProperties")))return;const e=Sp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Tn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tn("properties"))){const t=this.properties,r=[...Ap(t),...Pp(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(Bs(i))}else e!==void 0&&t.push(Bs(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return fu(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var o;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:ro).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,t){var o,s,a;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=r.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:ro;this._$Em=i;const d=u.fromAttribute(t,l.type);this[i]=(a=d!=null?d:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:d,this._$Em=null}}requestUpdate(e,t,r,i=!1,o){var s,a;if(e!==void 0){const l=this.constructor;if(i===!1&&(o=this[e]),r!=null||(r=l.getPropertyOptions(e)),!(((s=r.hasChanged)!=null?s:pu)(o,t)||r.useDefault&&r.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:o},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var bl;jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[Tn("elementProperties")]=new Map,jt[Tn("finalized")]=new Map,Ci==null||Ci({ReactiveElement:jt}),((bl=bt.reactiveElementVersions)!=null?bl:bt.reactiveElementVersions=[]).push("2.1.2");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const Pn=globalThis,Os=n=>n,Sr=Pn.trustedTypes,Is=Sr?Sr.createPolicy("lit-html",{createHTML:n=>n}):void 0,fu="$lit$",_t=`lit$${Math.random().toFixed(9).slice(2)}$`,pu="?"+_t,Sp=`<${pu}>`,Ot=document,Bn=()=>Ot.createComment(""),On=n=>n===null||typeof n!="object"&&typeof n!="function",Do=Array.isArray,kp=n=>Do(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",wi=`[
39
- \f\r]`,gn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ns=/-->/g,Ls=/>/g,At=RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Rs=/"/g,mu=/^(?:script|style|textarea|title)$/i,nn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Fs=new WeakMap,St=Ot.createTreeWalker(Ot,129);function _u(n,e){if(!Do(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Is!==void 0?Is.createHTML(e):e}const Dp=(n,e)=>{const t=n.length-1,r=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=gn;for(let a=0;a<t;a++){const l=n[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===gn?d[1]==="!--"?s=Ns:d[1]!==void 0?s=Ls:d[2]!==void 0?(mu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=At):d[3]!==void 0&&(s=At):s===At?d[0]===">"?(s=i!=null?i:gn,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?At:d[3]==='"'?Rs:Hs):s===Rs||s===Hs?s=At:s===Ns||s===Ls?s=gn:(s=At,i=void 0);const f=s===At&&n[a+1].startsWith("/>")?" ":"";o+=s===gn?l+Sp:c>=0?(r.push(u),l.slice(0,c)+fu+l.slice(c)+_t+f):l+_t+(c===-2?a:f)}return[_u(n,o+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class In{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,d]=Dp(e,t);if(this.el=In.createElement(u,r),St.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=St.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(fu)){const h=d[s++],f=i.getAttribute(c).split(_t),_=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:_[2],strings:f,ctor:_[1]==="."?Bp:_[1]==="?"?Op:_[1]==="@"?Ip:Kr}),i.removeAttribute(c)}else c.startsWith(_t)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(mu.test(i.tagName)){const c=i.textContent.split(_t),h=c.length-1;if(h>0){i.textContent=Sr?Sr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Bn()),St.nextNode(),l.push({type:2,index:++o});i.append(c[h],Bn())}}}else if(i.nodeType===8)if(i.data===pu)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_t,c+1))!==-1;)l.push({type:7,index:o}),c+=_t.length-1}o++}}static createElement(e,t){const r=Ot.createElement("template");return r.innerHTML=e,r}}function rn(n,e,t=n,r){var s,a,l;if(e===nn)return e;let i=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const o=On(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=i:t._$Cl=i),i!==void 0&&(e=rn(n,i._$AS(n,e.values),i,r)),e}class Mp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:r}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:Ot).importNode(t,!0);St.currentNode=i;let o=St.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Xn(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Np(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=St.nextNode(),s++)}return St.currentNode=Ot,i}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Xn{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,i){var o;this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=rn(this,e,t),On(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==nn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):kp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&On(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ot.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=In.createElement(_u(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(t);else{const s=new Mp(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=Fs.get(e.strings);return t===void 0&&Fs.set(e.strings,t=new In(e)),t}k(e){Do(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const o of e)i===t.length?t.push(r=new Xn(this.O(Bn()),this.O(Bn()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const i=Os(e).nextSibling;Os(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Kr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,o){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,i){const o=this.strings;let s=!1;if(o===void 0)e=rn(this,e,t,0),s=!On(e)||e!==this._$AH&&e!==nn,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=rn(this,a[r+l],t,l),u===nn&&(u=this._$AH[l]),s||(s=!On(u)||u!==this._$AH[l]),u===Ie?e=Ie:e!==Ie&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Bp extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Op extends Kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Ip extends Kr{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=rn(this,e,t,0))!=null?s:Ie)===nn)return;const r=this._$AH,i=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Ie&&(r===Ie||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Np{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){rn(this,e)}}const Ci=Pn.litHtmlPolyfillSupport;var gl;Ci==null||Ci(In,Xn),((gl=Pn.litHtmlVersions)!=null?gl:Pn.litHtmlVersions=[]).push("3.3.3");const Lp=(n,e,t)=>{var o,s;const r=(o=t==null?void 0:t.renderBefore)!=null?o:e;let i=r._$litPart$;if(i===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=i=new Xn(e.insertBefore(Bn(),a),a,void 0,t!=null?t:{})}return i._$AI(n),i};/**
38
+ */const An=globalThis,Ns=n=>n,kr=An.trustedTypes,Ls=kr?kr.createPolicy("lit-html",{createHTML:n=>n}):void 0,mu="$lit$",_t=`lit$${Math.random().toFixed(9).slice(2)}$`,_u="?"+_t,Dp=`<${_u}>`,Bt=document,Mn=()=>Bt.createComment(""),Bn=n=>n===null||typeof n!="object"&&typeof n!="function",Bo=Array.isArray,Mp=n=>Bo(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Ei=`[
39
+ \f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Rs=/>/g,xt=RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Fs=/'/g,Us=/"/g,gu=/^(?:script|style|textarea|title)$/i,tn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),zs=new WeakMap,Pt=Bt.createTreeWalker(Bt,129);function bu(n,e){if(!Bo(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ls!==void 0?Ls.createHTML(e):e}const Bp=(n,e)=>{const t=n.length-1,r=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=_n;for(let a=0;a<t;a++){const l=n[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===_n?d[1]==="!--"?s=Hs:d[1]!==void 0?s=Rs:d[2]!==void 0?(gu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=xt):d[3]!==void 0&&(s=xt):s===xt?d[0]===">"?(s=i!=null?i:_n,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?xt:d[3]==='"'?Us:Fs):s===Us||s===Fs?s=xt:s===Hs||s===Rs?s=_n:(s=xt,i=void 0);const f=s===xt&&n[a+1].startsWith("/>")?" ":"";o+=s===_n?l+Dp:c>=0?(r.push(u),l.slice(0,c)+mu+l.slice(c)+_t+f):l+_t+(c===-2?a:f)}return[bu(n,o+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class On{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,d]=Bp(e,t);if(this.el=On.createElement(u,r),Pt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=Pt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(mu)){const h=d[s++],f=i.getAttribute(c).split(_t),_=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:_[2],strings:f,ctor:_[1]==="."?Ip:_[1]==="?"?Np:_[1]==="@"?Lp:Qr}),i.removeAttribute(c)}else c.startsWith(_t)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(gu.test(i.tagName)){const c=i.textContent.split(_t),h=c.length-1;if(h>0){i.textContent=kr?kr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Mn()),Pt.nextNode(),l.push({type:2,index:++o});i.append(c[h],Mn())}}}else if(i.nodeType===8)if(i.data===_u)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_t,c+1))!==-1;)l.push({type:7,index:o}),c+=_t.length-1}o++}}static createElement(e,t){const r=Bt.createElement("template");return r.innerHTML=e,r}}function nn(n,e,t=n,r){var s,a,l;if(e===tn)return e;let i=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const o=Bn(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=i:t._$Cl=i),i!==void 0&&(e=nn(n,i._$AS(n,e.values),i,r)),e}class Op{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:r}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:Bt).importNode(t,!0);Pt.currentNode=i;let o=Pt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new qn(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Hp(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=Pt.nextNode(),s++)}return Pt.currentNode=Bt,i}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class qn{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,i){var o;this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=nn(this,e,t),Bn(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==tn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Mp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&Bn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Bt.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=On.createElement(bu(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(t);else{const s=new Op(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=zs.get(e.strings);return t===void 0&&zs.set(e.strings,t=new On(e)),t}k(e){Bo(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const o of e)i===t.length?t.push(r=new qn(this.O(Mn()),this.O(Mn()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const i=Ns(e).nextSibling;Ns(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Qr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,o){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,i){const o=this.strings;let s=!1;if(o===void 0)e=nn(this,e,t,0),s=!Bn(e)||e!==this._$AH&&e!==tn,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=nn(this,a[r+l],t,l),u===tn&&(u=this._$AH[l]),s||(s=!Bn(u)||u!==this._$AH[l]),u===Ie?e=Ie:e!==Ie&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ip extends Qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Np extends Qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Lp extends Qr{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=nn(this,e,t,0))!=null?s:Ie)===tn)return;const r=this._$AH,i=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Ie&&(r===Ie||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Hp{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){nn(this,e)}}const xi=An.litHtmlPolyfillSupport;var vl;xi==null||xi(On,qn),((vl=An.litHtmlVersions)!=null?vl:An.litHtmlVersions=[]).push("3.3.3");const Rp=(n,e,t)=>{var o,s;const r=(o=t==null?void 0:t.renderBefore)!=null?o:e;let i=r._$litPart$;if(i===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=i=new qn(e.insertBefore(Mn(),a),a,void 0,t!=null?t:{})}return i._$AI(n),i};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */const Mt=globalThis;class qt extends Gt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return nn}}var bl;qt._$litElement$=!0,qt.finalized=!0,(bl=Mt.litElementHydrateSupport)==null||bl.call(Mt,{LitElement:qt});const Ei=Mt.litElementPolyfillSupport;Ei==null||Ei({LitElement:qt});var vl;((vl=Mt.litElementVersions)!=null?vl:Mt.litElementVersions=[]).push("4.2.2");/**
44
+ */const Dt=globalThis;class Yt extends jt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Rp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return tn}}var yl;Yt._$litElement$=!0,Yt.finalized=!0,(yl=Dt.litElementHydrateSupport)==null||yl.call(Dt,{LitElement:Yt});const Ti=Dt.litElementPolyfillSupport;Ti==null||Ti({LitElement:Yt});var wl;((wl=Dt.litElementVersions)!=null?wl:Dt.litElementVersions=[]).push("4.2.2");/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const Hp=n=>class extends n{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,i){super.attributeChangedCallback(t,r,i),t==="theme"&&this._set_theme(i)}};/**
48
+ */const Fp=n=>class extends n{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,i){super.attributeChangedCallback(t,r,i),t==="theme"&&this._set_theme(i)}};/**
49
49
  * @license
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
- */const gu=[],no=new Set,Mo=new Set;function bu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Rp(n){return bu(customElements.get(n))}function Fp(n=[]){return[n].flat(1/0).filter(e=>e instanceof ko?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function vu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function yu(n){return n.map(e=>e.cssText).join(`
53
- `)}const kr="vaadin-themable-mixin-style";function Up(n,e){const t=document.createElement("style");t.id=kr,t.textContent=yu(n),e.content.appendChild(t)}function zp(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof qt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),cu(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(kr),r=e.prototype._template;t.textContent=r.content.getElementById(kr).textContent}}function $p(n){no.forEach(e=>{const t=e.deref();t instanceof n?zp(t):t||no.delete(e)})}function wu(n){if(n.prototype instanceof qt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(kr).textContent=yu(n.getStylesForThis())}Mo.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&wu(t)})}function Vp(n,e){const t=n.__themes;return!t||!e?!1:t.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function De(n,e,t={}){e=Fp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):gu.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&Mo.forEach(r=>{if(vu(n,r)&&Rp(r)){const i=customElements.get(r);Vp(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),wu(i),$p(i)}})}function ro(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():gu}function Wp(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function Cu(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=ro().find(i=>i.moduleId===t);r?e.push(...Cu(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function jp(n){const e=`${n}-default-theme`,t=ro().filter(r=>r.moduleId!==e&&vu(r.themeFor,n)).map(r=>nr(pt({},r),{styles:[...Cu(r),...r.styles],includePriority:Wp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:ro().filter(r=>r.moduleId===e)}const Nt=n=>class extends Hp(n){constructor(){super(),no.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Mo.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||bu(this)||Up(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=n.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...i,...jp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
52
+ */const vu=[],io=new Set,Oo=new Set;function yu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Up(n){return yu(customElements.get(n))}function zp(n=[]){return[n].flat(1/0).filter(e=>e instanceof Mo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function wu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Cu(n){return n.map(e=>e.cssText).join(`
53
+ `)}const Dr="vaadin-themable-mixin-style";function Vp(n,e){const t=document.createElement("style");t.id=Dr,t.textContent=Cu(n),e.content.appendChild(t)}function $p(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof Yt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),fu(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(Dr),r=e.prototype._template;t.textContent=r.content.getElementById(Dr).textContent}}function Wp(n){io.forEach(e=>{const t=e.deref();t instanceof n?$p(t):t||io.delete(e)})}function Eu(n){if(n.prototype instanceof Yt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(Dr).textContent=Cu(n.getStylesForThis())}Oo.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&Eu(t)})}function jp(n,e){const t=n.__themes;return!t||!e?!1:t.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function De(n,e,t={}){e=zp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):vu.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&Oo.forEach(r=>{if(wu(n,r)&&Up(r)){const i=customElements.get(r);jp(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Eu(i),Wp(i)}})}function oo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():vu}function Gp(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function xu(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=oo().find(i=>i.moduleId===t);r?e.push(...xu(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function Yp(n){const e=`${n}-default-theme`,t=oo().filter(r=>r.moduleId!==e&&wu(r.themeFor,n)).map(r=>ir(pt({},r),{styles:[...xu(r),...r.styles],includePriority:Gp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:oo().filter(r=>r.moduleId===e)}const It=n=>class extends Fp(n){constructor(){super(),io.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Oo.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||yu(this)||Vp(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=n.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...i,...Yp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const Gp=(n,...e)=>{const t=document.createElement("style");t.id=n,t.textContent=e.map(r=>r.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dn=(n,...e)=>{Gp(`lumo-${n}`,e)};/**
57
+ */const qp=(n,...e)=>{const t=document.createElement("style");t.id=n,t.textContent=e.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},un=(n,...e)=>{qp(`lumo-${n}`,e)};/**
59
59
  * @license
60
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
61
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
62
- */const Yp=me`
62
+ */const Xp=me`
63
63
  :host {
64
64
  --lumo-size-xs: 1.625rem;
65
65
  --lumo-size-s: 1.875rem;
@@ -74,11 +74,11 @@ PERFORMANCE OF THIS SOFTWARE.
74
74
  /* For backwards compatibility */
75
75
  --lumo-icon-size: var(--lumo-icon-size-m);
76
76
  }
77
- `;dn("sizing-props",Yp);/**
77
+ `;un("sizing-props",Xp);/**
78
78
  * @license
79
79
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
80
80
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
81
- */const qp=me`
81
+ */const Zp=me`
82
82
  :host {
83
83
  /* Square */
84
84
  --lumo-space-xs: 0.25rem;
@@ -101,11 +101,11 @@ PERFORMANCE OF THIS SOFTWARE.
101
101
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
102
102
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
103
103
  }
104
- `;dn("spacing-props",qp);/**
104
+ `;un("spacing-props",Zp);/**
105
105
  * @license
106
106
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
107
107
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
108
- */const Xp=me`
108
+ */const Kp=me`
109
109
  :host {
110
110
  /* Border radius */
111
111
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -205,11 +205,11 @@ PERFORMANCE OF THIS SOFTWARE.
205
205
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
206
206
  --vaadin-input-field-value-font-weight: 500;
207
207
  }
208
- `;dn("style-props",Xp);/**
208
+ `;un("style-props",Kp);/**
209
209
  * @license
210
210
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
211
211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
212
- */const Zp=me`
212
+ */const Jp=me`
213
213
  :host {
214
214
  /* Base (background) */
215
215
  --lumo-base-color: #fff;
@@ -294,7 +294,7 @@ PERFORMANCE OF THIS SOFTWARE.
294
294
  --lumo-disabled-text-color: GrayText;
295
295
  }
296
296
  }
297
- `;dn("color-props",Zp);const Kp=me`
297
+ `;un("color-props",Jp);const Qp=me`
298
298
  [theme~='dark'] {
299
299
  /* Base (background) */
300
300
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -412,11 +412,11 @@ PERFORMANCE OF THIS SOFTWARE.
412
412
  pre code {
413
413
  background: transparent;
414
414
  }
415
- `;De("",Kp,{moduleId:"lumo-color"});/**
415
+ `;De("",Qp,{moduleId:"lumo-color"});/**
416
416
  * @license
417
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
418
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
419
- */const Jp=me`
419
+ */const em=me`
420
420
  :host {
421
421
  /* prettier-ignore */
422
422
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -436,7 +436,7 @@ PERFORMANCE OF THIS SOFTWARE.
436
436
  --lumo-line-height-s: 1.375;
437
437
  --lumo-line-height-m: 1.625;
438
438
  }
439
- `,Qp=me`
439
+ `,tm=me`
440
440
  body,
441
441
  :host {
442
442
  font-family: var(--lumo-font-family);
@@ -528,11 +528,11 @@ PERFORMANCE OF THIS SOFTWARE.
528
528
  border-left: none;
529
529
  border-right: 2px solid var(--lumo-contrast-30pct);
530
530
  }
531
- `;De("",Qp,{moduleId:"lumo-typography"});dn("typography-props",Jp);/**
531
+ `;De("",tm,{moduleId:"lumo-typography"});un("typography-props",em);/**
532
532
  * @license
533
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
534
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
535
- */const Eu=me`
535
+ */const Tu=me`
536
536
  :host {
537
537
  top: var(--lumo-space-m);
538
538
  right: var(--lumo-space-m);
@@ -597,11 +597,11 @@ PERFORMANCE OF THIS SOFTWARE.
597
597
  opacity: 1;
598
598
  }
599
599
  }
600
- `;De("",Eu,{moduleId:"lumo-overlay"});/**
600
+ `;De("",Tu,{moduleId:"lumo-overlay"});/**
601
601
  * @license
602
602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
603
603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
604
- */const xu=me`
604
+ */const Au=me`
605
605
  :host([opening]),
606
606
  :host([closing]) {
607
607
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -631,7 +631,7 @@ PERFORMANCE OF THIS SOFTWARE.
631
631
  opacity: 0;
632
632
  }
633
633
  }
634
- `;De("",xu,{moduleId:"lumo-menu-overlay-core"});const em=me`
634
+ `;De("",Au,{moduleId:"lumo-menu-overlay-core"});const nm=me`
635
635
  /* Small viewport (bottom sheet) styles */
636
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
637
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -693,7 +693,7 @@ PERFORMANCE OF THIS SOFTWARE.
693
693
  transform: translateY(150%);
694
694
  }
695
695
  }
696
- `,Au=[Eu,xu,em];De("",Au,{moduleId:"lumo-menu-overlay"});const tm=me`
696
+ `,Pu=[Tu,Au,nm];De("",Pu,{moduleId:"lumo-menu-overlay"});const rm=me`
697
697
  [part='overlay'] {
698
698
  /*
699
699
  Width:
@@ -738,7 +738,7 @@ PERFORMANCE OF THIS SOFTWARE.
738
738
  max-height: 70vh;
739
739
  }
740
740
  }
741
- `;De("vaadin-date-picker-overlay",[Au,tm],{moduleId:"lumo-date-picker-overlay"});const nm=me`
741
+ `;De("vaadin-date-picker-overlay",[Pu,rm],{moduleId:"lumo-date-picker-overlay"});const im=me`
742
742
  :host {
743
743
  /* Sizing */
744
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1014,7 +1014,7 @@ PERFORMANCE OF THIS SOFTWARE.
1014
1014
  margin-left: 0;
1015
1015
  margin-right: 0;
1016
1016
  }
1017
- `;De("vaadin-button",nm,{moduleId:"lumo-button"});De("vaadin-date-picker-year",me`
1017
+ `;De("vaadin-button",im,{moduleId:"lumo-button"});De("vaadin-date-picker-year",me`
1018
1018
  :host([current]) [part='year-number'] {
1019
1019
  color: var(--lumo-primary-text-color);
1020
1020
  }
@@ -1517,7 +1517,7 @@ PERFORMANCE OF THIS SOFTWARE.
1517
1517
  * @license
1518
1518
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1519
1519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1520
- */const rm=me`
1520
+ */const om=me`
1521
1521
  @font-face {
1522
1522
  font-family: 'lumo-icons';
1523
1523
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -1570,11 +1570,11 @@ PERFORMANCE OF THIS SOFTWARE.
1570
1570
  --lumo-icons-upload: '\\ea29';
1571
1571
  --lumo-icons-user: '\\ea2a';
1572
1572
  }
1573
- `;dn("font-icons",rm);/**
1573
+ `;un("font-icons",om);/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
- */const Tu=me`
1577
+ */const Su=me`
1578
1578
  [part$='button'] {
1579
1579
  flex: none;
1580
1580
  width: 1em;
@@ -1601,11 +1601,11 @@ PERFORMANCE OF THIS SOFTWARE.
1601
1601
  font-family: 'lumo-icons';
1602
1602
  display: block;
1603
1603
  }
1604
- `;De("",Tu,{moduleId:"lumo-field-button"});/**
1604
+ `;De("",Su,{moduleId:"lumo-field-button"});/**
1605
1605
  * @license
1606
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1607
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1608
- */const im=me`
1608
+ */const sm=me`
1609
1609
  :host {
1610
1610
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1611
1611
  }
@@ -1665,7 +1665,7 @@ PERFORMANCE OF THIS SOFTWARE.
1665
1665
  * @license
1666
1666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1667
1667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1668
- */const Pu=me`
1668
+ */const ku=me`
1669
1669
  [part='label'] {
1670
1670
  align-self: flex-start;
1671
1671
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1777,11 +1777,11 @@ PERFORMANCE OF THIS SOFTWARE.
1777
1777
  margin-left: 0;
1778
1778
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1779
1779
  }
1780
- `;De("",Pu,{moduleId:"lumo-required-field"});/**
1780
+ `;De("",ku,{moduleId:"lumo-required-field"});/**
1781
1781
  * @license
1782
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1783
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1784
- */const om=me`
1784
+ */const am=me`
1785
1785
  :host {
1786
1786
  --lumo-text-field-size: var(--lumo-size-m);
1787
1787
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1912,7 +1912,7 @@ PERFORMANCE OF THIS SOFTWARE.
1912
1912
  [part='clear-button']::before {
1913
1913
  content: var(--lumo-icons-cross);
1914
1914
  }
1915
- `,Su=[Pu,Tu,im,om];De("",Su,{moduleId:"lumo-input-field-shared-styles"});const sm=me`
1915
+ `,Du=[ku,Su,sm,am];De("",Du,{moduleId:"lumo-input-field-shared-styles"});const lm=me`
1916
1916
  [part='toggle-button']::before {
1917
1917
  content: var(--lumo-icons-calendar);
1918
1918
  }
@@ -1934,7 +1934,7 @@ PERFORMANCE OF THIS SOFTWARE.
1934
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1935
1935
  --_lumo-text-field-overflow-mask-image: none;
1936
1936
  }
1937
- `;De("vaadin-date-picker",[Su,sm],{moduleId:"lumo-date-picker"});/**
1937
+ `;De("vaadin-date-picker",[Du,lm],{moduleId:"lumo-date-picker"});/**
1938
1938
  @license
1939
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1940
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1950,7 +1950,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1950
1950
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1951
1951
  Code distributed by Google as part of the polymer project is also
1952
1952
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1953
- */let am=/(url\()([^)]*)(\))/g,lm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,sr,je;function Sn(n,e){if(n&&lm.test(n)||n==="//")return n;if(sr===void 0){sr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",sr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),sr)try{return new URL(n,e).href}catch(t){return n}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=n,je.anchor.href||n}function Bo(n,e){return n.replace(am,function(t,r,i,o){return r+"'"+Sn(i.replace(/["']/g,""),e)+"'"+o})}function Oo(n){return n.substring(0,n.lastIndexOf("/")+1)}/**
1953
+ */let um=/(url\()([^)]*)(\))/g,dm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,lr,je;function Pn(n,e){if(n&&dm.test(n)||n==="//")return n;if(lr===void 0){lr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",lr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),lr)try{return new URL(n,e).href}catch(t){return n}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=n,je.anchor.href||n}function Io(n,e){return n.replace(um,function(t,r,i,o){return r+"'"+Pn(i.replace(/["']/g,""),e)+"'"+o})}function No(n){return n.substring(0,n.lastIndexOf("/")+1)}/**
1954
1954
  @license
1955
1955
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1956
1956
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1958,7 +1958,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1958
1958
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1959
1959
  Code distributed by Google as part of the polymer project is also
1960
1960
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1961
- */const ku=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const um=ku&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const n=new CSSStyleSheet;n.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[n],e.shadowRoot.adoptedStyleSheets[0]===n}catch(n){return!1}})();let dm=window.Polymer&&window.Polymer.rootPath||Oo(document.baseURI||window.location.href),Dr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Mr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,cm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Du=window.Polymer&&window.Polymer.legacyOptimizations||!1,Mu=window.Polymer&&window.Polymer.legacyWarnings||!1,hm=window.Polymer&&window.Polymer.syncInitialRender||!1,io=window.Polymer&&window.Polymer.legacyUndefined||!1,fm=window.Polymer&&window.Polymer.orderedComputed||!1,Us=window.Polymer&&window.Polymer.removeNestedTemplates||!1,pm=window.Polymer&&window.Polymer.fastDomIf||!1,zs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let mm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1961
+ */const Mu=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const cm=Mu&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const n=new CSSStyleSheet;n.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[n],e.shadowRoot.adoptedStyleSheets[0]===n}catch(n){return!1}})();let hm=window.Polymer&&window.Polymer.rootPath||No(document.baseURI||window.location.href),Mr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Br=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,fm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Bu=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ou=window.Polymer&&window.Polymer.legacyWarnings||!1,pm=window.Polymer&&window.Polymer.syncInitialRender||!1,so=window.Polymer&&window.Polymer.legacyUndefined||!1,mm=window.Polymer&&window.Polymer.orderedComputed||!1,Vs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,_m=window.Polymer&&window.Polymer.fastDomIf||!1,$s=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let gm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1962
1962
  @license
1963
1963
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1964
1964
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1966,7 +1966,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1966
1966
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1967
1967
  Code distributed by Google as part of the polymer project is also
1968
1968
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1969
- */let _m=0;const Be=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=_m++;function r(i){let o=i.__mixinSet;if(o&&o[t])return i;let s=e,a=s.get(i);if(!a){a=n(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1969
+ */let bm=0;const Oe=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=bm++;function r(i){let o=i.__mixinSet;if(o&&o[t])return i;let s=e,a=s.get(i);if(!a){a=n(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1970
1970
  @license
1971
1971
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1972
1972
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1974,7 +1974,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1974
1974
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1975
1975
  Code distributed by Google as part of the polymer project is also
1976
1976
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1977
- */let Io={},Bu={};function $s(n,e){Io[n]=Bu[n.toLowerCase()]=e}function Vs(n){return Io[n]||Bu[n.toLowerCase()]}function gm(n){n.querySelector("style")&&console.warn("dom-module %s has style outside template",n.id)}class Nn extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Vs(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Sn(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Oo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Mr&&Vs(e)!==void 0)throw $s(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,$s(e,this),gm(this)}}}Nn.prototype.modules=Io;customElements.define("dom-module",Nn);/**
1977
+ */let Lo={},Iu={};function Ws(n,e){Lo[n]=Iu[n.toLowerCase()]=e}function js(n){return Lo[n]||Iu[n.toLowerCase()]}function vm(n){n.querySelector("style")&&console.warn("dom-module %s has style outside template",n.id)}class In extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=js(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Pn(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=No(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Br&&js(e)!==void 0)throw Ws(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Ws(e,this),vm(this)}}}In.prototype.modules=Lo;customElements.define("dom-module",In);/**
1978
1978
  @license
1979
1979
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1980
1980
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1982,7 +1982,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1982
1982
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1983
1983
  Code distributed by Google as part of the polymer project is also
1984
1984
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1985
- */const bm="link[rel=import][type~=css]",vm="include",Ws="shady-unscoped";function Ou(n){return Nn.import(n)}function js(n){let e=n.body?n.body:n;const t=Bo(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function ym(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...wm(e[r]));return t}function wm(n){const e=Ou(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Nu(e));const r=e.querySelector("template");r&&t.push(...Iu(r,e.assetpath)),e._styles=t}return e._styles}function Iu(n,e){if(!n._styles){const t=[],r=n.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(vm);s&&t.push(...ym(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Bo(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function Cm(n){let e=Ou(n);return e?Nu(e):[]}function Nu(n){const e=[],t=n.querySelectorAll(bm);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(Ws);if(s&&!o._unscopedStyle){const a=js(o);a.setAttribute(Ws,""),o._unscopedStyle=a}else o._style||(o._style=js(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
1985
+ */const ym="link[rel=import][type~=css]",wm="include",Gs="shady-unscoped";function Nu(n){return In.import(n)}function Ys(n){let e=n.body?n.body:n;const t=Io(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function Cm(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Em(e[r]));return t}function Em(n){const e=Nu(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Hu(e));const r=e.querySelector("template");r&&t.push(...Lu(r,e.assetpath)),e._styles=t}return e._styles}function Lu(n,e){if(!n._styles){const t=[],r=n.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(wm);s&&t.push(...Cm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Io(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function xm(n){let e=Nu(n);return e?Hu(e):[]}function Hu(n){const e=[],t=n.querySelectorAll(ym);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(Gs);if(s&&!o._unscopedStyle){const a=Ys(o);a.setAttribute(Gs,""),o._unscopedStyle=a}else o._style||(o._style=Ys(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
1986
1986
  @license
1987
1987
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1988
1988
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1990,7 +1990,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1990
1990
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1991
1991
  Code distributed by Google as part of the polymer project is also
1992
1992
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1993
- */const Le=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?n=>ShadyDOM.patch(n):n=>n;/**
1993
+ */const Ne=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?n=>ShadyDOM.patch(n):n=>n;/**
1994
1994
  @license
1995
1995
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1996
1996
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1998,7 +1998,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1998
1998
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1999
1999
  Code distributed by Google as part of the polymer project is also
2000
2000
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2001
- */function oo(n){return n.indexOf(".")>=0}function Lt(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Lu(n,e){return n.indexOf(e+".")===0}function Ln(n,e){return e.indexOf(n+".")===0}function Hn(n,e,t){return e+t.slice(n.length)}function Em(n,e){return n===e||Lu(n,e)||Ln(n,e)}function Cn(n){if(Array.isArray(n)){let e=[];for(let t=0;t<n.length;t++){let r=n[t].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return n}function Hu(n){return Array.isArray(n)?Cn(n).split("."):n.toString().split(".")}function Ve(n,e,t){let r=n,i=Hu(e);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return t&&(t.path=i.join(".")),r}function Gs(n,e,t){let r=n,i=Hu(e),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=t}else r[e]=t;return i.join(".")}/**
2001
+ */function ao(n){return n.indexOf(".")>=0}function Nt(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Ru(n,e){return n.indexOf(e+".")===0}function Nn(n,e){return e.indexOf(n+".")===0}function Ln(n,e,t){return e+t.slice(n.length)}function Tm(n,e){return n===e||Ru(n,e)||Nn(n,e)}function wn(n){if(Array.isArray(n)){let e=[];for(let t=0;t<n.length;t++){let r=n[t].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return n}function Fu(n){return Array.isArray(n)?wn(n).split("."):n.toString().split(".")}function $e(n,e,t){let r=n,i=Fu(e);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return t&&(t.path=i.join(".")),r}function qs(n,e,t){let r=n,i=Fu(e),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=t}else r[e]=t;return i.join(".")}/**
2002
2002
  @license
2003
2003
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2004
2004
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2006,7 +2006,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2006
2006
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2007
2007
  Code distributed by Google as part of the polymer project is also
2008
2008
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2009
- */const Br={},xm=/-[a-z]/g,Am=/([A-Z])/g;function Ru(n){return Br[n]||(Br[n]=n.indexOf("-")<0?n:n.replace(xm,e=>e[1].toUpperCase()))}function Jr(n){return Br[n]||(Br[n]=n.replace(Am,"-$1").toLowerCase())}/**
2009
+ */const Or={},Am=/-[a-z]/g,Pm=/([A-Z])/g;function Uu(n){return Or[n]||(Or[n]=n.indexOf("-")<0?n:n.replace(Am,e=>e[1].toUpperCase()))}function ei(n){return Or[n]||(Or[n]=n.replace(Pm,"-$1").toLowerCase())}/**
2010
2010
  @license
2011
2011
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2012
2012
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2014,7 +2014,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2014
2014
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2015
2015
  Code distributed by Google as part of the polymer project is also
2016
2016
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2017
- */let Tm=0,Fu=0,Xt=[],Pm=0,so=!1,Uu=document.createTextNode("");new window.MutationObserver(Sm).observe(Uu,{characterData:!0});function Sm(){so=!1;const n=Xt.length;for(let e=0;e<n;e++){let t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,n),Fu+=n}const km={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},zu={run(n){return so||(so=!0,Uu.textContent=Pm++),Xt.push(n),Tm++},cancel(n){const e=n-Fu;if(e>=0){if(!Xt[e])throw new Error("invalid async handle: "+n);Xt[e]=null}}};/**
2017
+ */let Sm=0,zu=0,qt=[],km=0,lo=!1,Vu=document.createTextNode("");new window.MutationObserver(Dm).observe(Vu,{characterData:!0});function Dm(){lo=!1;const n=qt.length;for(let e=0;e<n;e++){let t=qt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}qt.splice(0,n),zu+=n}const Mm={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},$u={run(n){return lo||(lo=!0,Vu.textContent=km++),qt.push(n),Sm++},cancel(n){const e=n-zu;if(e>=0){if(!qt[e])throw new Error("invalid async handle: "+n);qt[e]=null}}};/**
2018
2018
  @license
2019
2019
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2020
2020
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2022,7 +2022,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2022
2022
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2023
2023
  Code distributed by Google as part of the polymer project is also
2024
2024
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2025
- */const Dm=zu,$u=Be(n=>{class e extends n{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?function(){}:function(o){this._setPendingProperty(r,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Dm.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Le(r)),s===void 0?r.removeAttribute(o):r.setAttribute(o,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
2025
+ */const Bm=$u,Wu=Oe(n=>{class e extends n{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?function(){}:function(o){this._setPendingProperty(r,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Bm.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Ne(r)),s===void 0?r.removeAttribute(o):r.setAttribute(o,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
2026
2026
  @license
2027
2027
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2028
2028
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2030,7 +2030,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2030
2030
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2031
2031
  Code distributed by Google as part of the polymer project is also
2032
2032
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2033
- */const Vu={};let ar=HTMLElement.prototype;for(;ar;){let n=Object.getOwnPropertyNames(ar);for(let e=0;e<n.length;e++)Vu[n[e]]=!0;ar=Object.getPrototypeOf(ar)}const Mm=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Bm(n,e){if(!Vu[e]){let t=n[e];t!==void 0&&(n.__data?n._setPendingProperty(e,t):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[e]=t))}}const Om=Be(n=>{const e=$u(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Ru(i[o]))}static attributeNameForProperty(i){return Jr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(Mm(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){Bm(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return t});/**
2033
+ */const ju={};let ur=HTMLElement.prototype;for(;ur;){let n=Object.getOwnPropertyNames(ur);for(let e=0;e<n.length;e++)ju[n[e]]=!0;ur=Object.getPrototypeOf(ur)}const Om=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Im(n,e){if(!ju[e]){let t=n[e];t!==void 0&&(n.__data?n._setPendingProperty(e,t):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[e]=t))}}const Nm=Oe(n=>{const e=Wu(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Uu(i[o]))}static attributeNameForProperty(i){return ei(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(Om(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){Im(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return t});/**
2034
2034
  @license
2035
2035
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2036
2036
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2038,7 +2038,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2038
2038
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2039
2039
  Code distributed by Google as part of the polymer project is also
2040
2040
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2041
- */const Im={"dom-if":!0,"dom-repeat":!0};let Ys=!1,qs=!1;function Nm(){if(!Ys){Ys=!0;const n=document.createElement("textarea");n.placeholder="a",qs=n.placeholder===n.textContent}return qs}function Lm(n){Nm()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Hm=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const i=t.getAttribute(r);if(n&&r.startsWith("on-")){e.setAttribute(r,n.createScript(i,r));return}e.setAttribute(r,i)}})();function Rm(n){let e=n.getAttribute("is");if(e&&Im[e]){let t=n;for(t.removeAttribute("is"),n=t.ownerDocument.createElement(e),t.parentNode.replaceChild(n,t),n.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Hm(n,t,r),t.removeAttribute(r)}}return n}function Wu(n,e){let t=e.parentInfo&&Wu(n,e.parentInfo);if(t){for(let r=t.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return n}function Fm(n,e,t,r){r.id&&(e[r.id]=t)}function Um(n,e,t){if(t.events&&t.events.length)for(let r=0,i=t.events,o;r<i.length&&(o=i[r]);r++)n._addMethodEventListenerToNode(e,o.name,o.value,n)}function zm(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function $m(n,e,t){return n=n._methodHost||n,function(i){n[t]?n[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Vm=Be(n=>{class e extends n{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),Lm(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Rm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,o,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:a}),!0):s==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=Wu(a,c);Fm(this,a.$,h,c),zm(this,h,c,i),Um(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=$m(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return e});/**
2041
+ */const Lm={"dom-if":!0,"dom-repeat":!0};let Xs=!1,Zs=!1;function Hm(){if(!Xs){Xs=!0;const n=document.createElement("textarea");n.placeholder="a",Zs=n.placeholder===n.textContent}return Zs}function Rm(n){Hm()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Fm=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const i=t.getAttribute(r);if(n&&r.startsWith("on-")){e.setAttribute(r,n.createScript(i,r));return}e.setAttribute(r,i)}})();function Um(n){let e=n.getAttribute("is");if(e&&Lm[e]){let t=n;for(t.removeAttribute("is"),n=t.ownerDocument.createElement(e),t.parentNode.replaceChild(n,t),n.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Fm(n,t,r),t.removeAttribute(r)}}return n}function Gu(n,e){let t=e.parentInfo&&Gu(n,e.parentInfo);if(t){for(let r=t.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return n}function zm(n,e,t,r){r.id&&(e[r.id]=t)}function Vm(n,e,t){if(t.events&&t.events.length)for(let r=0,i=t.events,o;r<i.length&&(o=i[r]);r++)n._addMethodEventListenerToNode(e,o.name,o.value,n)}function $m(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Wm(n,e,t){return n=n._methodHost||n,function(i){n[t]?n[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const jm=Oe(n=>{class e extends n{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),Rm(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Um(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,o,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:a}),!0):s==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=Gu(a,c);zm(this,a.$,h,c),$m(this,h,c,i),Vm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Wm(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return e});/**
2042
2042
  * @fileoverview
2043
2043
  * @suppress {checkPrototypalTypes}
2044
2044
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2049
2049
  * Google as part of the polymer project is also subject to an additional IP
2050
2050
  * rights grant found at http://polymer.github.io/PATENTS.txt
2051
- */let Rn=0;const Fn=[],_e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ju="__computeInfo",Wm=/[A-Z]/;function xi(n,e,t){let r=n[e];if(!r)r=n[e]={};else if(!n.hasOwnProperty(e)&&(r=n[e]=Object.create(n[e]),t))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function En(n,e,t,r,i,o){if(e){let s=!1;const a=Rn++;for(let l in t){let u=i?Lt(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||No(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(n,l,t,r,f.info,i,o),s=!0)}return s}return!1}function jm(n,e,t,r,i,o,s,a){let l=!1,u=s?Lt(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==t)&&(!s||No(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function No(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Lu(t,n))||!!(e.wildcard&&Ln(t,n))}else return!0}function Xs(n,e,t,r,i){let o=typeof i.method=="string"?n[i.method]:i.method,s=i.property;o?o.call(n,n.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Gm(n,e,t,r,i){let o=n[_e.NOTIFY],s,a=Rn++;for(let u in e)e[u]&&(o&&jm(n,o,a,u,t,r,i)||i&&Ym(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ym(n,e,t){let r=Lt(e);if(r!==e){let i=Jr(r)+"-changed";return Gu(n,i,t[e],e),!0}return!1}function Gu(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Le(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function qm(n,e,t,r,i,o){let a=(o?Lt(e):e)!=e?e:null,l=a?Ve(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),Gu(n,i.eventName,l,a)}function Xm(n,e,t,r,i){let o,s=n.detail,a=s&&s.path;a?(r=Hn(t,r,a),o=s&&s.value):o=n.currentTarget[t],o=i?!o:o,(!e[_e.READ_ONLY]||!e[_e.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Zm(n,e,t,r,i){let o=n.__data[e];Dr&&(o=Dr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Km(n,e,t,r){let i=n[_e.COMPUTE];if(i)if(fm){Rn++;const o=Qm(n),s=[];for(let l in e)Zs(l,i,s,o,r);let a;for(;a=s.shift();)Yu(n,"",e,t,a)&&Zs(a.methodInfo,i,s,o,r);Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),n.__dataPending=null}else{let o=e;for(;En(n,i,o,t,r);)Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),o=n.__dataPending,n.__dataPending=null}}const Jm=(n,e,t)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=t.get(e[s].methodInfo)-t.get(n.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,n)},Zs=(n,e,t,r,i)=>{const o=i?Lt(n):n,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Rn&&(!i||No(n,l.trigger))&&(l.info.lastRun=Rn,Jm(l.info,t,r))}};function Qm(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[_e.COMPUTE];let{counts:r,ready:i,total:o}=e_(n),s;for(;s=i.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${n.localName} incomplete; circular?`),n.constructor.__orderedComputedDeps=e}return e}function e_(n){const e=n[ju],t={},r=n[_e.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:t,ready:i,total:o}}function Yu(n,e,t,r,i){let o=ao(n,e,t,r,i);if(o===Fn)return!1;let s=i.methodInfo;return n.__dataHasAccessor&&n.__dataHasAccessor[s]?n._setPendingProperty(s,o,!0):(n[s]=o,!1)}function t_(n,e,t){let r=n.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Ln(o,e)?(i=Hn(o,s,e),n._setPendingPropertyOrPath(i,t,!0,!0)):Ln(s,e)&&(i=Hn(s,o,e),n._setPendingPropertyOrPath(i,t,!0,!0))}}}function Ai(n,e,t,r,i,o,s){t.bindings=t.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(t.bindings.push(a),s_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Jr(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,n_(n,e,a,d,l)}}function n_(n,e,t,r,i){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:t,part:r,evaluator:n};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Xu(l),l.wildcard=!0),n._addTemplatePropertyEffect(e,l.rootProperty,{fn:r_,info:s,trigger:l})}}}function r_(n,e,t,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hn(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&n._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(n,u,e,t,r,o);d!==Fn&&i_(n,a,l,u,d)}}function i_(n,e,t,r,i){if(i=o_(e,i,t,r),Dr&&(i=Dr(i,t.target,t.kind,e)),t.kind=="attribute")n._valueToNodeAttribute(e,i,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[_e.READ_ONLY]||!e[_e.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function o_(n,e,t,r){if(t.isCompound){let i=n.__dataCompoundStorage[t.target];i[r.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(n.localName==="input"||n.localName==="textarea"))&&(e=e==null?"":e),e}function s_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function a_(n,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=t[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];l_(s,u),u_(s,n,u)}s.__dataHost=n}}function l_(n,e){if(e.isCompound){let t=n.__dataCompoundStorage||(n.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;t[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(n=Le(n)),n[o]=e.literal)}}function u_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Xm(i,e,t.target,r.source,r.negate)})}}function Ks(n,e,t,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||n._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return o&&n._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function ao(n,e,t,r,i){let o=n._methodHost||n,s=o[i.methodName];if(s){let a=n._marshalArgs(i.args,e,t);return a===Fn?Fn:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const d_=[],qu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",c_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",h_="(?:'(?:[^'\\\\]|\\\\.)*')",f_='(?:"(?:[^"\\\\]|\\\\.)*")',p_="(?:"+h_+"|"+f_+")",Js="(?:("+qu+"|"+c_+"|"+p_+")\\s*)",m_="(?:"+Js+"(?:,\\s*"+Js+")*)",__="(?:\\(\\s*(?:"+m_+"?)\\)\\s*)",g_="("+qu+"\\s*"+__+"?)",b_="(\\[\\[|{{)\\s*",v_="(?:]]|}})",y_="(?:(!)\\s*)?",w_=b_+y_+g_+v_,Qs=new RegExp(w_,"g");function ea(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function Ti(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:d_};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return C_(i,r)}else return r}return null}function C_(n,e){return e.args=n.map(function(t){let r=Xu(t);return r.literal||(e.static=!1),r},this),e}function Xu(n){let e=n.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Lt(e),t.structured=oo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ta(n,e,t){let r=Ve(n,t);return r===void 0&&(r=e[t]),r}function Zu(n,e,t,r){const i={indexSplices:r};io&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),io&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function bn(n,e,t,r,i,o){Zu(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function E_(n){return n[0].toUpperCase()+n.substring(1)}const Lo=Be(n=>{const e=Vm(Om(n));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _e}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(vn.length){let i=vn[vn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[_e.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==_e.READ_ONLY);let a=xi(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=xi(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,_e.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,_e.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,_e.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,_e.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Lt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=Ve(this,i);if(i=Gs(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return t_(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Le(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&oo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[_e.NOTIFY]&&this[_e.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[_e.READ_ONLY]||!this[_e.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Km(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),En(this,this[_e.REFLECT],o,s,a),En(this,this[_e.OBSERVE],o,s,a),l&&Gm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[_e.PROPAGATE]&&En(this,this[_e.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{En(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=Cn(i),o=Cn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=Cn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=Ve(this,i,s);Zu(this,a,s.path,o)}get(i,o){return Ve(o||this,i)}set(i,o,s){s?Gs(s,i,o):(!this[_e.READ_ONLY]||!this[_e.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=Ve(this,i,s),l=a.length,u=a.push(...o);return o.length&&bn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=Ve(this,i,o),a=!!s.length,l=s.pop();return a&&bn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=Ve(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&bn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=Ve(this,i,o),a=!!s.length,l=s.shift();return a&&bn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=Ve(this,i,s),l=a.unshift(...o);return o.length&&bn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=Ve(this,i,a),s=a.path}else Array.isArray(i)?s=Cn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,_e.READ_ONLY),o&&(this["_set"+E_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,_e.OBSERVE,{fn:Xs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,_e.OBSERVE,{fn:Xs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Ti(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Ks(this,s,_e.OBSERVE,ao,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,_e.NOTIFY,{fn:qm,info:{eventName:Jr(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,_e.REFLECT,{fn:Zm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Ti(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Ks(this,a,_e.COMPUTE,Yu,i,s);xi(this,ju)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:_,literal:b}=i[u];if(!b)if(f){const w=Ln(c,o),v=ta(a,s,w?o:c);_={path:w?o:c,value:v,base:w?Ve(a,c):v}}else _=h?ta(a,s,c):a[c];if(io&&!this._overrideLegacyUndefined&&_===void 0&&i.length>1)return Fn;l[u]=_}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(o)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),vn.push(this);let s=super._stampTemplate(i,o);if(vn.pop(),o.nodeList=s.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=o,a_(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=o;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let d=0;d<u.length;d++){let c=u[d];Le(Le(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=ea(l)||" ",Ai(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";Wm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=ea(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Ru(a)),Ai(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Us&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(pm&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Us||(s.parentInfo.noted=!0));else{let f="{";for(let _ in h){let b=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Ai(this,o,s,"property","_host_"+_,b)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Qs.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",_=-1;u=="{"&&(_=c.indexOf("::"))>0&&(f=c.substring(_+2),c=c.substring(0,_),h=!0);let b=Ti(c),w=[];if(b){let{args:v,methodName:g}=b;for(let y=0;y<v.length;y++){let S=v[y];S.literal||w.push(S)}let A=o.dynamicFns;(A&&A[g]||b.static)&&(w.push(g),b.dynamicFn=!0)}else w.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:b,dependencies:w,event:f}),a=Qs.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=ao(i,s,a,l,o.signature):s!=o.source?d=Ve(i,o.source):u&&oo(s)?d=Ve(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),vn=[];/**
2051
+ */let Hn=0;const Rn=[],_e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Yu="__computeInfo",Gm=/[A-Z]/;function Ai(n,e,t){let r=n[e];if(!r)r=n[e]={};else if(!n.hasOwnProperty(e)&&(r=n[e]=Object.create(n[e]),t))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function Cn(n,e,t,r,i,o){if(e){let s=!1;const a=Hn++;for(let l in t){let u=i?Nt(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||Ho(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(n,l,t,r,f.info,i,o),s=!0)}return s}return!1}function Ym(n,e,t,r,i,o,s,a){let l=!1,u=s?Nt(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==t)&&(!s||Ho(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function Ho(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Ru(t,n))||!!(e.wildcard&&Nn(t,n))}else return!0}function Ks(n,e,t,r,i){let o=typeof i.method=="string"?n[i.method]:i.method,s=i.property;o?o.call(n,n.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function qm(n,e,t,r,i){let o=n[_e.NOTIFY],s,a=Hn++;for(let u in e)e[u]&&(o&&Ym(n,o,a,u,t,r,i)||i&&Xm(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Xm(n,e,t){let r=Nt(e);if(r!==e){let i=ei(r)+"-changed";return qu(n,i,t[e],e),!0}return!1}function qu(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Ne(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function Zm(n,e,t,r,i,o){let a=(o?Nt(e):e)!=e?e:null,l=a?$e(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),qu(n,i.eventName,l,a)}function Km(n,e,t,r,i){let o,s=n.detail,a=s&&s.path;a?(r=Ln(t,r,a),o=s&&s.value):o=n.currentTarget[t],o=i?!o:o,(!e[_e.READ_ONLY]||!e[_e.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Jm(n,e,t,r,i){let o=n.__data[e];Mr&&(o=Mr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Qm(n,e,t,r){let i=n[_e.COMPUTE];if(i)if(mm){Hn++;const o=t_(n),s=[];for(let l in e)Js(l,i,s,o,r);let a;for(;a=s.shift();)Xu(n,"",e,t,a)&&Js(a.methodInfo,i,s,o,r);Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),n.__dataPending=null}else{let o=e;for(;Cn(n,i,o,t,r);)Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),o=n.__dataPending,n.__dataPending=null}}const e_=(n,e,t)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=t.get(e[s].methodInfo)-t.get(n.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,n)},Js=(n,e,t,r,i)=>{const o=i?Nt(n):n,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Hn&&(!i||Ho(n,l.trigger))&&(l.info.lastRun=Hn,e_(l.info,t,r))}};function t_(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[_e.COMPUTE];let{counts:r,ready:i,total:o}=n_(n),s;for(;s=i.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${n.localName} incomplete; circular?`),n.constructor.__orderedComputedDeps=e}return e}function n_(n){const e=n[Yu],t={},r=n[_e.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:t,ready:i,total:o}}function Xu(n,e,t,r,i){let o=uo(n,e,t,r,i);if(o===Rn)return!1;let s=i.methodInfo;return n.__dataHasAccessor&&n.__dataHasAccessor[s]?n._setPendingProperty(s,o,!0):(n[s]=o,!1)}function r_(n,e,t){let r=n.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Nn(o,e)?(i=Ln(o,s,e),n._setPendingPropertyOrPath(i,t,!0,!0)):Nn(s,e)&&(i=Ln(s,o,e),n._setPendingPropertyOrPath(i,t,!0,!0))}}}function Pi(n,e,t,r,i,o,s){t.bindings=t.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(t.bindings.push(a),l_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||ei(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,i_(n,e,a,d,l)}}function i_(n,e,t,r,i){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:t,part:r,evaluator:n};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Ku(l),l.wildcard=!0),n._addTemplatePropertyEffect(e,l.rootProperty,{fn:o_,info:s,trigger:l})}}}function o_(n,e,t,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Ln(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&n._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(n,u,e,t,r,o);d!==Rn&&s_(n,a,l,u,d)}}function s_(n,e,t,r,i){if(i=a_(e,i,t,r),Mr&&(i=Mr(i,t.target,t.kind,e)),t.kind=="attribute")n._valueToNodeAttribute(e,i,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[_e.READ_ONLY]||!e[_e.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function a_(n,e,t,r){if(t.isCompound){let i=n.__dataCompoundStorage[t.target];i[r.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(n.localName==="input"||n.localName==="textarea"))&&(e=e==null?"":e),e}function l_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function u_(n,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=t[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];d_(s,u),c_(s,n,u)}s.__dataHost=n}}function d_(n,e){if(e.isCompound){let t=n.__dataCompoundStorage||(n.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;t[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(n=Ne(n)),n[o]=e.literal)}}function c_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Km(i,e,t.target,r.source,r.negate)})}}function Qs(n,e,t,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||n._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return o&&n._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function uo(n,e,t,r,i){let o=n._methodHost||n,s=o[i.methodName];if(s){let a=n._marshalArgs(i.args,e,t);return a===Rn?Rn:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const h_=[],Zu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",f_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",p_="(?:'(?:[^'\\\\]|\\\\.)*')",m_='(?:"(?:[^"\\\\]|\\\\.)*")',__="(?:"+p_+"|"+m_+")",ea="(?:("+Zu+"|"+f_+"|"+__+")\\s*)",g_="(?:"+ea+"(?:,\\s*"+ea+")*)",b_="(?:\\(\\s*(?:"+g_+"?)\\)\\s*)",v_="("+Zu+"\\s*"+b_+"?)",y_="(\\[\\[|{{)\\s*",w_="(?:]]|}})",C_="(?:(!)\\s*)?",E_=y_+C_+v_+w_,ta=new RegExp(E_,"g");function na(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function Si(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:h_};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return x_(i,r)}else return r}return null}function x_(n,e){return e.args=n.map(function(t){let r=Ku(t);return r.literal||(e.static=!1),r},this),e}function Ku(n){let e=n.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Nt(e),t.structured=ao(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ra(n,e,t){let r=$e(n,t);return r===void 0&&(r=e[t]),r}function Ju(n,e,t,r){const i={indexSplices:r};so&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),so&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function gn(n,e,t,r,i,o){Ju(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function T_(n){return n[0].toUpperCase()+n.substring(1)}const Ro=Oe(n=>{const e=jm(Nm(n));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _e}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(bn.length){let i=bn[bn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[_e.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==_e.READ_ONLY);let a=Ai(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=Ai(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,_e.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,_e.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,_e.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,_e.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Nt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=$e(this,i);if(i=qs(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return r_(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Ne(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&ao(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[_e.NOTIFY]&&this[_e.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[_e.READ_ONLY]||!this[_e.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Qm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Cn(this,this[_e.REFLECT],o,s,a),Cn(this,this[_e.OBSERVE],o,s,a),l&&qm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[_e.PROPAGATE]&&Cn(this,this[_e.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{Cn(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=wn(i),o=wn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=wn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=$e(this,i,s);Ju(this,a,s.path,o)}get(i,o){return $e(o||this,i)}set(i,o,s){s?qs(s,i,o):(!this[_e.READ_ONLY]||!this[_e.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=$e(this,i,s),l=a.length,u=a.push(...o);return o.length&&gn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.pop();return a&&gn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=$e(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&gn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.shift();return a&&gn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=$e(this,i,s),l=a.unshift(...o);return o.length&&gn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=$e(this,i,a),s=a.path}else Array.isArray(i)?s=wn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,_e.READ_ONLY),o&&(this["_set"+T_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,_e.OBSERVE,{fn:Ks,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,_e.OBSERVE,{fn:Ks,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Si(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Qs(this,s,_e.OBSERVE,uo,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,_e.NOTIFY,{fn:Zm,info:{eventName:ei(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,_e.REFLECT,{fn:Jm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Si(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Qs(this,a,_e.COMPUTE,Xu,i,s);Ai(this,Yu)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:_,literal:b}=i[u];if(!b)if(f){const w=Nn(c,o),v=ra(a,s,w?o:c);_={path:w?o:c,value:v,base:w?$e(a,c):v}}else _=h?ra(a,s,c):a[c];if(so&&!this._overrideLegacyUndefined&&_===void 0&&i.length>1)return Rn;l[u]=_}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(o)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),bn.push(this);let s=super._stampTemplate(i,o);if(bn.pop(),o.nodeList=s.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=o,u_(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=o;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let d=0;d<u.length;d++){let c=u[d];Ne(Ne(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=na(l)||" ",Pi(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";Gm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=na(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Uu(a)),Pi(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Vs&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(_m&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Vs||(s.parentInfo.noted=!0));else{let f="{";for(let _ in h){let b=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Pi(this,o,s,"property","_host_"+_,b)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=ta.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",_=-1;u=="{"&&(_=c.indexOf("::"))>0&&(f=c.substring(_+2),c=c.substring(0,_),h=!0);let b=Si(c),w=[];if(b){let{args:v,methodName:g}=b;for(let y=0;y<v.length;y++){let S=v[y];S.literal||w.push(S)}let T=o.dynamicFns;(T&&T[g]||b.static)&&(w.push(g),b.dynamicFn=!0)}else w.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:b,dependencies:w,event:f}),a=ta.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=uo(i,s,a,l,o.signature):s!=o.source?d=$e(i,o.source):u&&ao(s)?d=$e(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),bn=[];/**
2052
2052
  @license
2053
2053
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2054
2054
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2064,7 +2064,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2064
2064
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2065
2065
  Code distributed by Google as part of the polymer project is also
2066
2066
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2067
- */function x_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const A_=Be(n=>{const e=$u(n);function t(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?s:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let s=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(s=x_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
2067
+ */function A_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const P_=Oe(n=>{const e=Wu(n);function t(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?s:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let s=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(s=A_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
2068
2068
  * @fileoverview
2069
2069
  * @suppress {checkPrototypalTypes}
2070
2070
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2075
2075
  * Google as part of the polymer project is also subject to an additional IP
2076
2076
  * rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */const T_="3.5.2",na=window.ShadyCSS&&window.ShadyCSS.cssBuild,P_=Be(n=>{const e=A_(Lo(n));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!na){const h=u.content.querySelectorAll("style"),f=Iu(u),_=Cm(d),b=u.content.firstElementChild;for(let v=0;v<_.length;v++){let g=_[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,b)}let w=0;for(let v=0;v<f.length;v++){let g=f[v],A=h[w];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):w++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),mm&&na&&um){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!Mr||cm)&&(u=Nn.import(l,"template"),Mr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return T_}static _finalizeClass(){e._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Du||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=Oo(u.url);else{const d=Nn.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=dm,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Bo(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?Sn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=Le(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=Sn(this.importPath)),Sn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Mu&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2077
+ */const S_="3.5.2",ia=window.ShadyCSS&&window.ShadyCSS.cssBuild,k_=Oe(n=>{const e=P_(Ro(n));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!ia){const h=u.content.querySelectorAll("style"),f=Lu(u),_=xm(d),b=u.content.firstElementChild;for(let v=0;v<_.length;v++){let g=_[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,b)}let w=0;for(let v=0;v<f.length;v++){let g=f[v],T=h[w];T!==g?(g=g.cloneNode(!0),T.parentNode.insertBefore(g,T)):w++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),gm&&ia&&cm){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!Br||fm)&&(u=In.import(l,"template"),Br&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return S_}static _finalizeClass(){e._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Bu||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=No(u.url);else{const d=In.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=hm,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Io(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?Pn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=Ne(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),pm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=Pn(this.importPath)),Pn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Ou&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,7 +2082,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const ra=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Ku{constructor(e,t){Qu(e,t);const r=t.reduce((i,o,s)=>i+Ju(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Ju(n){if(n instanceof Ku)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function S_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Ku)return Ju(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Ht=function(e,...t){Qu(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+S_(s)+e[a+1],e[0]);return ra&&(i=ra.createHTML(i)),r.innerHTML=i,r},Qu=(n,e)=>{if(!Array.isArray(n)||!Array.isArray(n.raw)||e.length!==n.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2085
+ */const oa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Qu{constructor(e,t){td(e,t);const r=t.reduce((i,o,s)=>i+ed(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function ed(n){if(n instanceof Qu)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function D_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Qu)return ed(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Lt=function(e,...t){td(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+D_(s)+e[a+1],e[0]);return oa&&(i=oa.createHTML(i)),r.innerHTML=i,r},td=(n,e)=>{if(!Array.isArray(n)||!Array.isArray(n.raw)||e.length!==n.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2086
2086
  @license
2087
2087
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2088
2088
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2090,19 +2090,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2090
2090
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2091
2091
  Code distributed by Google as part of the polymer project is also
2092
2092
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2093
- */const wt=P_(HTMLElement);/**
2093
+ */const wt=k_(HTMLElement);/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2097
- */const it=[];function lo(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function uo(){return document.documentElement.getAttribute("dir")}function k_(){const n=uo();it.forEach(e=>{lo(e,n)})}const D_=new MutationObserver(k_);D_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Qr=n=>class extends n{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),lo(this,uo(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=uo(),s=i===o&&it.indexOf(this)===-1,a=!i&&r&&it.indexOf(this)===-1;s||a?(this.__subscribe(),lo(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=it.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,i){i==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,i)}_attributeToProperty(t,r,i){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,i)}__subscribe(){it.includes(this)||it.push(this)}__unsubscribe(){it.includes(this)&&it.splice(it.indexOf(this),1)}};/**
2097
+ */const st=[];function co(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function ho(){return document.documentElement.getAttribute("dir")}function M_(){const n=ho();st.forEach(e=>{co(e,n)})}const B_=new MutationObserver(M_);B_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ti=n=>class extends n{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),co(this,ho(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=ho(),s=i===o&&st.indexOf(this)===-1,a=!i&&r&&st.indexOf(this)===-1;s||a?(this.__subscribe(),co(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=st.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,i){i==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,i)}_attributeToProperty(t,r,i){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,i)}__subscribe(){st.includes(this)||st.push(this)}__unsubscribe(){st.includes(this)&&st.splice(st.indexOf(this),1)}};/**
2098
2098
  * @license
2099
2099
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2100
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2101
- */const M_=n=>class extends n{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2101
+ */const O_=n=>class extends n{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2102
2102
  * @license
2103
2103
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2104
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2105
- */const B_=me`
2105
+ */const I_=me`
2106
2106
  :host {
2107
2107
  display: flex;
2108
2108
  align-items: center;
@@ -2171,15 +2171,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2171
2171
  * @license
2172
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2173
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
- */De("vaadin-input-container",B_,{moduleId:"vaadin-input-container-styles"});class O_ extends M_(Nt(Qr(wt))){static get is(){return"vaadin-input-container"}static get template(){return Ht`
2174
+ */De("vaadin-input-container",I_,{moduleId:"vaadin-input-container-styles"});class N_ extends O_(It(ti(wt))){static get is(){return"vaadin-input-container"}static get template(){return Lt`
2175
2175
  <slot name="prefix"></slot>
2176
2176
  <slot></slot>
2177
2177
  <slot name="suffix"></slot>
2178
- `}}rt(O_);/**
2178
+ `}}rt(N_);/**
2179
2179
  * @license
2180
2180
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2181
2181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
- */const I_=me`
2182
+ */const L_=me`
2183
2183
  :host {
2184
2184
  z-index: 200;
2185
2185
  position: fixed;
@@ -2242,7 +2242,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2242
2242
  * @license
2243
2243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2244
2244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2245
- */let Ho=!1;window.addEventListener("keydown",()=>{Ho=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ho=!1},{capture:!0});function co(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Ro(){return Ho}function N_(n){const e=n.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(n);return t.visibility==="hidden"||t.display==="none"}function L_(n,e){const t=Math.max(n.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function H_(n,e){const t=[];for(;n.length>0&&e.length>0;)L_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function ho(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=ho(n.slice(0,t)),i=ho(n.slice(t));return H_(r,i)}function ed(n){return n.matches('[tabindex="-1"]')?!1:n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function R_(n){return n.getRootNode().activeElement===n}function F_(n){if(!ed(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function td(n,e){if(n.nodeType!==Node.ELEMENT_NODE||N_(n))return!1;const t=n,r=F_(t);let i=r>0;r>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(s=>{i=td(s,e)||i}),i}function U_(n){const e=[];return td(n,e)?ho(e):e}/**
2245
+ */let Fo=!1;window.addEventListener("keydown",()=>{Fo=!0},{capture:!0});window.addEventListener("mousedown",()=>{Fo=!1},{capture:!0});function fo(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Uo(){return Fo}function H_(n){const e=n.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(n);return t.visibility==="hidden"||t.display==="none"}function R_(n,e){const t=Math.max(n.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function F_(n,e){const t=[];for(;n.length>0&&e.length>0;)R_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function po(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=po(n.slice(0,t)),i=po(n.slice(t));return F_(r,i)}function nd(n){return n.matches('[tabindex="-1"]')?!1:n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function U_(n){return n.getRootNode().activeElement===n}function z_(n){if(!nd(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function rd(n,e){if(n.nodeType!==Node.ELEMENT_NODE||H_(n))return!1;const t=n,r=z_(t);let i=r>0;r>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(s=>{i=rd(s,e)||i}),i}function V_(n){const e=[];return rd(n,e)?po(e):e}/**
2246
2246
  @license
2247
2247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2248
2248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2250,63 +2250,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2250
2250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2251
2251
  Code distributed by Google as part of the polymer project is also
2252
2252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2253
- */let fo=!1,z_=[],nd=[];function $_(){fo=!0,requestAnimationFrame(function(){fo=!1,V_(z_),setTimeout(function(){W_(nd)})})}function V_(n){for(;n.length;)rd(n.shift())}function W_(n){for(let e=0,t=n.length;e<t;e++)rd(n.shift())}function rd(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function id(n,e,t){fo||$_(),nd.push([n,e,t])}/**
2253
+ */let mo=!1,$_=[],id=[];function W_(){mo=!0,requestAnimationFrame(function(){mo=!1,j_($_),setTimeout(function(){G_(id)})})}function j_(n){for(;n.length;)od(n.shift())}function G_(n){for(let e=0,t=n.length;e<t;e++)od(n.shift())}function od(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function sd(n,e,t){mo||W_(),id.push([n,e,t])}/**
2254
2254
  * @license
2255
2255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2256
2256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2257
- */const ei=n=>n.test(navigator.userAgent),po=n=>n.test(navigator.platform),j_=n=>n.test(navigator.vendor);ei(/Android/u);ei(/Chrome/u)&&j_(/Google Inc/u);ei(/Firefox/u);const G_=po(/^iPad/u)||po(/^Mac/u)&&navigator.maxTouchPoints>1,Y_=po(/^iPhone/u),od=Y_||G_;ei(/^((?!chrome|android).)*safari/iu);const q_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
2257
+ */const ni=n=>n.test(navigator.userAgent),_o=n=>n.test(navigator.platform),Y_=n=>n.test(navigator.vendor);ni(/Android/u);ni(/Chrome/u)&&Y_(/Google Inc/u);ni(/Firefox/u);const q_=_o(/^iPad/u)||_o(/^Mac/u)&&navigator.maxTouchPoints>1,X_=_o(/^iPhone/u),ad=X_||q_;ni(/^((?!chrome|android).)*safari/iu);const Z_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
2258
2258
  * @license
2259
2259
  * Copyright (c) 2017 Anton Korzunov
2260
2260
  * SPDX-License-Identifier: MIT
2261
- */let Vt=new WeakMap,lr=new WeakMap,ur={},Pi=0;const ia=n=>n&&n.nodeType===Node.ELEMENT_NODE,Si=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},X_=(n,e)=>ia(n)?e.map(t=>{if(!ia(t))return Si(t,"is not a valid element"),null;let r=t;for(;r&&r!==n;){if(n.contains(r))return t;r=r.getRootNode().host}return Si(t,"is not contained inside",n),null}).filter(t=>!!t):(Si(n,"is not a valid element"),[]),Z_=(n,e,t,r)=>{const i=X_(e,Array.isArray(n)?n:[n]);ur[t]||(ur[t]=new WeakMap);const o=ur[t],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))d(_);else{const b=_.getAttribute(r),w=b!==null&&b!=="false",v=(Vt.get(_)||0)+1,g=(o.get(_)||0)+1;Vt.set(_,v),o.set(_,g),s.push(_),v===1&&w&&lr.set(_,!0),g===1&&_.setAttribute(t,"true"),w||_.setAttribute(r,"true")}})};return d(e),a.clear(),Pi+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(lr.has(c)?lr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),Pi-=1,Pi||(Vt=new WeakMap,Vt=new WeakMap,lr=new WeakMap,ur={})}},sd=(n,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(n)?n:[n]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Z_(r,e,t,"aria-hidden")};/**
2261
+ */let Vt=new WeakMap,dr=new WeakMap,cr={},ki=0;const sa=n=>n&&n.nodeType===Node.ELEMENT_NODE,Di=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},K_=(n,e)=>sa(n)?e.map(t=>{if(!sa(t))return Di(t,"is not a valid element"),null;let r=t;for(;r&&r!==n;){if(n.contains(r))return t;r=r.getRootNode().host}return Di(t,"is not contained inside",n),null}).filter(t=>!!t):(Di(n,"is not a valid element"),[]),J_=(n,e,t,r)=>{const i=K_(e,Array.isArray(n)?n:[n]);cr[t]||(cr[t]=new WeakMap);const o=cr[t],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))d(_);else{const b=_.getAttribute(r),w=b!==null&&b!=="false",v=(Vt.get(_)||0)+1,g=(o.get(_)||0)+1;Vt.set(_,v),o.set(_,g),s.push(_),v===1&&w&&dr.set(_,!0),g===1&&_.setAttribute(t,"true"),w||_.setAttribute(r,"true")}})};return d(e),a.clear(),ki+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(dr.has(c)?dr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),ki-=1,ki||(Vt=new WeakMap,Vt=new WeakMap,dr=new WeakMap,cr={})}},ld=(n,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(n)?n:[n]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),J_(r,e,t,"aria-hidden")};/**
2262
2262
  * @license
2263
2263
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2264
2264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2265
- */class K_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=sd(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2265
+ */class Q_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=ld(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2266
2266
  * @license
2267
2267
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2268
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */class J_{saveFocus(e){this.focusNode=e||co()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;co()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2269
+ */class e0{saveFocus(e){this.focusNode=e||fo()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;fo()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2270
2270
  * @license
2271
2271
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2272
2272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2273
- */const ki=[];class Q_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return U_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(R_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ki.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ki.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ki).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,i=this.__focusedElementIndex,o=(t.length+i+r)%t.length,s=t[o];s.focus(),s.localName==="input"&&s.select()}}/**
2273
+ */const Mi=[];class t0{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return V_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(U_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Mi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Mi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Mi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,i=this.__focusedElementIndex,o=(t.length+i+r)%t.length,s=t[o];s.focus(),s.localName==="input"&&s.select()}}/**
2274
2274
  * @license
2275
2275
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2276
2276
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2277
- */const cn=Be(n=>typeof n.prototype.addController=="function"?n:class extends n{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
2277
+ */const dn=Oe(n=>typeof n.prototype.addController=="function"?n:class extends n{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
2278
2278
  * @license
2279
2279
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2280
2280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2281
- */const e0=n=>class extends cn(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new K_(this),this.__focusTrapController=new Q_(this),this.__focusRestorationController=new J_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!Ro();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=co();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const i=t.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2281
+ */const n0=n=>class extends dn(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Q_(this),this.__focusTrapController=new t0(this),this.__focusRestorationController=new e0}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!Uo();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=fo();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const i=t.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2282
2282
  * @license
2283
2283
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2284
2284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2285
- */const ad=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),mo=()=>ad().filter(n=>n.$.overlay),t0=n=>n===mo().pop(),n0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return t0(this)}bringToFront(){let t="";const r=ad().filter(i=>i!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),mo().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=mo();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2285
+ */const ud=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),go=()=>ud().filter(n=>n.$.overlay),r0=n=>n===go().pop(),i0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return r0(this)}bringToFront(){let t="";const r=ud().filter(i=>i!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),go().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=go();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2286
2286
  * @license
2287
2287
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2288
2288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2289
- */const r0=n=>class extends e0(n0(n)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),od&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),id(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const i=`__${t}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2289
+ */const o0=n=>class extends n0(i0(n)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),ad&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),sd(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const i=`__${t}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2290
2290
  * @license
2291
2291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2292
2292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2293
- */function i0(n){const e=[];for(;n;){if(n.nodeType===Node.DOCUMENT_NODE){e.push(n);break}if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(n),n=n.host;continue}if(n.assignedSlot){n=n.assignedSlot;continue}n=n.parentNode}return e}function Fo(n){return n?new Set(n.split(" ")):new Set}function ti(n){return n?[...n].join(" "):""}function ld(n,e,t){const r=Fo(n.getAttribute(e));r.add(t),n.setAttribute(e,ti(r))}function o0(n,e,t){const r=Fo(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,ti(r))}function s0(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
2293
+ */function s0(n){const e=[];for(;n;){if(n.nodeType===Node.DOCUMENT_NODE){e.push(n);break}if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(n),n=n.host;continue}if(n.assignedSlot){n=n.assignedSlot;continue}n=n.parentNode}return e}function zo(n){return n?new Set(n.split(" ")):new Set}function ri(n){return n?[...n].join(" "):""}function dd(n,e,t){const r=zo(n.getAttribute(e));r.add(t),n.setAttribute(e,ri(r))}function a0(n,e,t){const r=zo(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,ri(r))}function l0(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
2294
2294
  * @license
2295
2295
  * Copyright (c) 2024 Vaadin Ltd.
2296
2296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2297
- */function a0(n,e){let t=null;const r=document.documentElement;function i(){t&&t.disconnect(),t=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=n.getBoundingClientRect();if(s||e(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),_=Math.floor(r.clientHeight-(u+c)),b=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-_}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function A(y){let S=y[0].intersectionRatio;if(S!==a){if(!g)return o();S===0&&(S=1e-7),o(!1,S)}g=!1}t=new IntersectionObserver(A,v),t.observe(n)}return o(!0),i}/**
2297
+ */function u0(n,e){let t=null;const r=document.documentElement;function i(){t&&t.disconnect(),t=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=n.getBoundingClientRect();if(s||e(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),_=Math.floor(r.clientHeight-(u+c)),b=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-_}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function T(y){let S=y[0].intersectionRatio;if(S!==a){if(!g)return o();S===0&&(S=1e-7),o(!1,S)}g=!1}t=new IntersectionObserver(T,v),t.observe(n)}return o(!0),i}/**
2298
2298
  * @license
2299
2299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2300
2300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2301
- */const Di={start:"top",end:"bottom"},Mi={start:"left",end:"right"},oa=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),l0=n=>class extends n{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=i0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=a0(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,oa.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,oa.observe(r))),t){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,Di,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Mi,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(t,r){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,o,this.__margins,s,this.noHorizontalOverlap,Mi)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,i,this.__margins,o,this.noVerticalOverlap,Di)}__shouldAlignStart(t,r,i,o,s,a,l){const u=i-t[a?l.end:l.start]-o[l.end],d=t[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(t,r,i){let o;if(t===r.end){if(r.end===Di.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===Mi.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(t,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-t[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2301
+ */const Bi={start:"top",end:"bottom"},Oi={start:"left",end:"right"},aa=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),d0=n=>class extends n{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=s0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=u0(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,aa.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,aa.observe(r))),t){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,Bi,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Oi,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(t,r){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,o,this.__margins,s,this.noHorizontalOverlap,Oi)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,i,this.__margins,o,this.noVerticalOverlap,Bi)}__shouldAlignStart(t,r,i,o,s,a,l){const u=i-t[a?l.end:l.start]-o[l.end],d=t[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(t,r,i){let o;if(t===r.end){if(r.end===Bi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===Oi.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(t,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-t[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2302
2302
  * @license
2303
2303
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2304
2304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
- */const u0=n=>class extends l0(r0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ed(t.composedPath()[0])&&t.preventDefault()}};/**
2305
+ */const c0=n=>class extends d0(o0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!nd(t.composedPath()[0])&&t.preventDefault()}};/**
2306
2306
  * @license
2307
2307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2308
2308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2309
- */const d0=me`
2309
+ */const h0=me`
2310
2310
  [part='overlay'] {
2311
2311
  display: flex;
2312
2312
  flex: auto;
@@ -2325,14 +2325,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2325
2325
  * @license
2326
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2327
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */De("vaadin-date-picker-overlay",[I_,d0],{moduleId:"vaadin-date-picker-overlay-styles"});class c0 extends u0(Qr(Nt(wt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ht`
2328
+ */De("vaadin-date-picker-overlay",[L_,h0],{moduleId:"vaadin-date-picker-overlay-styles"});class f0 extends c0(ti(It(wt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Lt`
2329
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2330
2330
  <div part="overlay" id="overlay">
2331
2331
  <div part="content" id="content">
2332
2332
  <slot></slot>
2333
2333
  </div>
2334
2334
  </div>
2335
- `}}rt(c0);const h0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,br=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function f0(){function n(){return!0}return ud(n)}function p0(){try{return m0()?!0:_0()?br?!g0():!f0():!1}catch(n){return!1}}function m0(){return localStorage.getItem("vaadin.developmentmode.force")}function _0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function g0(){return!!(br&&Object.keys(br).map(e=>br[e]).filter(e=>e.productionMode).length>0)}function ud(n,e){if(typeof n!="function")return;const t=h0.exec(n.toString());if(t)try{n=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return n(e)}window.Vaadin=window.Vaadin||{};const sa=function(n,e){if(window.Vaadin.developmentMode)return ud(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=p0());function b0(){/*! vaadin-dev-mode:start
2335
+ `}}rt(f0);const p0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,vr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function m0(){function n(){return!0}return cd(n)}function _0(){try{return g0()?!0:b0()?vr?!v0():!m0():!1}catch(n){return!1}}function g0(){return localStorage.getItem("vaadin.developmentmode.force")}function b0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function v0(){return!!(vr&&Object.keys(vr).map(e=>vr[e]).filter(e=>e.productionMode).length>0)}function cd(n,e){if(typeof n!="function")return;const t=p0.exec(n.toString());if(t)try{n=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return n(e)}window.Vaadin=window.Vaadin||{};const la=function(n,e){if(window.Vaadin.developmentMode)return cd(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=_0());function y0(){/*! vaadin-dev-mode:start
2336
2336
  (function () {
2337
2337
  'use strict';
2338
2338
 
@@ -2810,7 +2810,7 @@ try {
2810
2810
 
2811
2811
  }());
2812
2812
 
2813
- vaadin-dev-mode:end **/}const v0=function(){if(typeof sa=="function")return sa(b0)};/**
2813
+ vaadin-dev-mode:end **/}const w0=function(){if(typeof la=="function")return la(y0)};/**
2814
2814
  * @license
2815
2815
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2816
2816
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2818,7 +2818,7 @@ try {
2818
2818
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2819
2819
  * Code distributed by Google as part of the polymer project is also
2820
2820
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2821
- */let aa=0,dd=0;const Zt=[];let _o=!1;function y0(){_o=!1;const n=Zt.length;for(let e=0;e<n;e++){const t=Zt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Zt.splice(0,n),dd+=n}const Or={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},w0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},C0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},E0={run(n){_o||(_o=!0,queueMicrotask(()=>y0())),Zt.push(n);const e=aa;return aa+=1,e},cancel(n){const e=n-dd;if(e>=0){if(!Zt[e])throw new Error(`invalid async handle: ${n}`);Zt[e]=null}}};/**
2821
+ */let ua=0,hd=0;const Xt=[];let bo=!1;function C0(){bo=!1;const n=Xt.length;for(let e=0;e<n;e++){const t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,n),hd+=n}const Ir={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},E0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},x0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},T0={run(n){bo||(bo=!0,queueMicrotask(()=>C0())),Xt.push(n);const e=ua;return ua+=1,e},cancel(n){const e=n-hd;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${n}`);Xt[e]=null}}};/**
2822
2822
  @license
2823
2823
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2824
2824
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2826,31 +2826,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2826
2826
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2827
2827
  Code distributed by Google as part of the polymer project is also
2828
2828
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2829
- */const go=new Set;let on=class bo{static debounce(e,t,r){return e instanceof bo?e._cancelAsync():e=new bo,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,go.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),go.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function x0(n){go.add(n)}/**
2829
+ */const vo=new Set;let rn=class yo{static debounce(e,t,r){return e instanceof yo?e._cancelAsync():e=new yo,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,vo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),vo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function A0(n){vo.add(n)}/**
2830
2830
  * @license
2831
2831
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2832
2832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2833
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){v0()};let Bi;const la=new Set,cd=n=>class extends Qr(n){static finalize(){super.finalize();const{is:t}=this;t&&!la.has(t)&&(window.Vaadin.registrations.push(this),la.add(t),window.Vaadin.developmentModeCallback&&(Bi=on.debounce(Bi,C0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),x0(Bi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2833
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){w0()};let Ii;const da=new Set,fd=n=>class extends ti(n){static finalize(){super.finalize();const{is:t}=this;t&&!da.has(t)&&(window.Vaadin.registrations.push(this),da.add(t),window.Vaadin.developmentModeCallback&&(Ii=rn.debounce(Ii,x0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),A0(Ii)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2834
2834
  * @license
2835
2835
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2836
2836
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2837
- */class A0{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],i=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=e.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(t.length||r.length||i.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:r}),this._storedNodes=e}}/**
2837
+ */class P0{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],i=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=e.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(t.length||r.length||i.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:r}),this._storedNodes=e}}/**
2838
2838
  * @license
2839
2839
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2840
2840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2841
- */let T0=0;function hd(){return T0++}/**
2841
+ */let S0=0;function pd(){return S0++}/**
2842
2842
  * @license
2843
2843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2844
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2845
- */class kt extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${hd()}`}constructor(e,t,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=o,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.defaultNode=i)),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new A0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!s0(l)&&!s.includes(l));o.length&&(this.nodes=s.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2845
+ */class St extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${pd()}`}constructor(e,t,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=o,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.defaultNode=i)),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new P0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!l0(l)&&!s.includes(l));o.length&&(this.nodes=s.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2846
2846
  * @license
2847
2847
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2848
2848
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2849
- */class fd extends kt{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2849
+ */class md extends St{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2850
2850
  * @license
2851
2851
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2852
2852
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2853
- */const P0=me`
2853
+ */const k0=me`
2854
2854
  :host {
2855
2855
  display: inline-block;
2856
2856
  position: relative;
@@ -2910,7 +2910,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2910
2910
  outline-color: GrayText;
2911
2911
  }
2912
2912
  }
2913
- `,S0=n=>n`
2913
+ `,D0=n=>n`
2914
2914
  <div class="vaadin-button-container">
2915
2915
  <span part="prefix" aria-hidden="true">
2916
2916
  <slot name="prefix"></slot>
@@ -2931,39 +2931,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2931
2931
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2932
2932
  Code distributed by Google as part of the polymer project is also
2933
2933
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2934
- */const k0=n=>n,pd=typeof document.head.style.touchAction=="string",vo="__polymerGestures",Oi="__polymerGesturesHandled",yo="__polymerGesturesTouchAction",ua=25,da=5,D0=2,M0=["mousedown","mousemove","mouseup","click"],B0=[0,1,4,2],O0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Uo(n){return M0.indexOf(n)>-1}let I0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){I0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function N0(n){Uo(n)}const L0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),H0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Bt(n){const e=n.type;if(!Uo(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!O0&&(r=B0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function R0(n){if(n.type==="click"){if(n.detail===0)return!0;const e=vt(n);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=n.pageX,i=n.pageY;return!(r>=t.left&&r<=t.right&&i>=t.top&&i<=t.bottom)}return!1}const ot={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function F0(n){let e="auto";const t=_d(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[yo]){e=i[yo];break}return e}function md(n,e,t){n.movefn=e,n.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const _d=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],zo={},Dt=[];function U0(n,e){let t=document.elementFromPoint(n,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(n,e),i===r)break;r&&(t=r)}return t}function vt(n){const e=_d(n);return e.length>0?e[0]:n.target}function z0(n){const e=n.type,r=n.currentTarget[vo];if(!r)return;const i=r[e];if(!i)return;if(!n[Oi]&&(n[Oi]={},e.startsWith("touch"))){const s=n.changedTouches[0];if(e==="touchstart"&&n.touches.length===1&&(ot.touch.id=s.identifier),ot.touch.id!==s.identifier)return;pd||(e==="touchstart"||e==="touchmove")&&$0(n)}const o=n[Oi];if(!o.skip){for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(n.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](n))}}function $0(n){const e=n.changedTouches[0],t=n.type;if(t==="touchstart")ot.touch.x=e.clientX,ot.touch.y=e.clientY,ot.touch.scrollDecided=!1;else if(t==="touchmove"){if(ot.touch.scrollDecided)return;ot.touch.scrollDecided=!0;const r=F0(n);let i=!1;const o=Math.abs(ot.touch.x-e.clientX),s=Math.abs(ot.touch.y-e.clientY);n.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?n.preventDefault():Ir("track")}}function et(n,e,t){return zo[e]?(V0(n,e,t),!0):!1}function V0(n,e,t){const r=zo[e],i=r.deps,o=r.name;let s=n[vo];s||(n[vo]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(L0&&Uo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,z0,N0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&gd(n,r.touchAction)}function $o(n){Dt.push(n),n.emits.forEach(e=>{zo[e]=n})}function W0(n){for(let e=0,t;e<Dt.length;e++){t=Dt[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===n)return t}return null}function gd(n,e){pd&&n instanceof HTMLElement&&E0.run(()=>{n.style.touchAction=e}),n[yo]=e}function Vo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,k0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Ir(n){const e=W0(n);e.info&&(e.info.prevent=!0)}$o({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=vt(n),t=this,r=o=>{Bt(o)||(yn("up",e,o),Kt(t.info))},i=o=>{Bt(o)&&yn("up",e,o),Kt(t.info)};md(this.info,r,i),yn("down",e,n)},touchstart(n){yn("down",vt(n),n.changedTouches[0],n)},touchend(n){yn("up",vt(n),n.changedTouches[0],n)}});function yn(n,e,t,r){e&&Vo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Ir(i)}})}$o({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(n){this.moves.length>D0&&this.moves.shift(),this.moves.push(n)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=vt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;ca(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Ir("tap"),t.info.addMove({x:s,y:a}),Bt(o)||(t.info.state="end",Kt(t.info)),e&&Ii(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Kt(t.info)};md(this.info,r,i),this.info.x=n.clientX,this.info.y=n.clientY},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(n){const e=vt(n),t=n.changedTouches[0],r=t.clientX,i=t.clientY;ca(this.info,r,i)&&(this.info.state==="start"&&Ir("tap"),this.info.addMove({x:r,y:i}),Ii(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(n){const e=vt(n),t=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ii(this.info,e,t))}});function ca(n,e,t){if(n.prevent)return!1;if(n.started)return!0;const r=Math.abs(n.x-e),i=Math.abs(n.y-t);return r>=da||i>=da}function Ii(n,e,t){if(!e)return;const r=n.moves[n.moves.length-2],i=n.moves[n.moves.length-1],o=i.x-n.x,s=i.y-n.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),Vo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return U0(t.clientX,t.clientY)}})}$o({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(n){Bt(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Bt(n)&&ha(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){ha(this.info,n.changedTouches[0],n)}});function ha(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=vt(t||e);!o||H0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=ua&&i<=ua||R0(e))&&(n.prevent||Vo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
2934
+ */const M0=n=>n,_d=typeof document.head.style.touchAction=="string",wo="__polymerGestures",Ni="__polymerGesturesHandled",Co="__polymerGesturesTouchAction",ca=25,ha=5,B0=2,O0=["mousedown","mousemove","mouseup","click"],I0=[0,1,4,2],N0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Vo(n){return O0.indexOf(n)>-1}let L0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){L0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function H0(n){Vo(n)}const R0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),F0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Mt(n){const e=n.type;if(!Vo(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!N0&&(r=I0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function U0(n){if(n.type==="click"){if(n.detail===0)return!0;const e=vt(n);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=n.pageX,i=n.pageY;return!(r>=t.left&&r<=t.right&&i>=t.top&&i<=t.bottom)}return!1}const at={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function z0(n){let e="auto";const t=bd(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[Co]){e=i[Co];break}return e}function gd(n,e,t){n.movefn=e,n.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Zt(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const bd=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],$o={},kt=[];function V0(n,e){let t=document.elementFromPoint(n,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(n,e),i===r)break;r&&(t=r)}return t}function vt(n){const e=bd(n);return e.length>0?e[0]:n.target}function $0(n){const e=n.type,r=n.currentTarget[wo];if(!r)return;const i=r[e];if(!i)return;if(!n[Ni]&&(n[Ni]={},e.startsWith("touch"))){const s=n.changedTouches[0];if(e==="touchstart"&&n.touches.length===1&&(at.touch.id=s.identifier),at.touch.id!==s.identifier)return;_d||(e==="touchstart"||e==="touchmove")&&W0(n)}const o=n[Ni];if(!o.skip){for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(n.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](n))}}function W0(n){const e=n.changedTouches[0],t=n.type;if(t==="touchstart")at.touch.x=e.clientX,at.touch.y=e.clientY,at.touch.scrollDecided=!1;else if(t==="touchmove"){if(at.touch.scrollDecided)return;at.touch.scrollDecided=!0;const r=z0(n);let i=!1;const o=Math.abs(at.touch.x-e.clientX),s=Math.abs(at.touch.y-e.clientY);n.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?n.preventDefault():Nr("track")}}function et(n,e,t){return $o[e]?(j0(n,e,t),!0):!1}function j0(n,e,t){const r=$o[e],i=r.deps,o=r.name;let s=n[wo];s||(n[wo]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(R0&&Vo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,$0,H0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&vd(n,r.touchAction)}function Wo(n){kt.push(n),n.emits.forEach(e=>{$o[e]=n})}function G0(n){for(let e=0,t;e<kt.length;e++){t=kt[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===n)return t}return null}function vd(n,e){_d&&n instanceof HTMLElement&&T0.run(()=>{n.style.touchAction=e}),n[Co]=e}function jo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,M0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Nr(n){const e=G0(n);e.info&&(e.info.prevent=!0)}Wo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Zt(this.info)},mousedown(n){if(!Mt(n))return;const e=vt(n),t=this,r=o=>{Mt(o)||(vn("up",e,o),Zt(t.info))},i=o=>{Mt(o)&&vn("up",e,o),Zt(t.info)};gd(this.info,r,i),vn("down",e,n)},touchstart(n){vn("down",vt(n),n.changedTouches[0],n)},touchend(n){vn("up",vt(n),n.changedTouches[0],n)}});function vn(n,e,t,r){e&&jo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Nr(i)}})}Wo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(n){this.moves.length>B0&&this.moves.shift(),this.moves.push(n)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Zt(this.info)},mousedown(n){if(!Mt(n))return;const e=vt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;fa(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Nr("tap"),t.info.addMove({x:s,y:a}),Mt(o)||(t.info.state="end",Zt(t.info)),e&&Li(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Zt(t.info)};gd(this.info,r,i),this.info.x=n.clientX,this.info.y=n.clientY},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(n){const e=vt(n),t=n.changedTouches[0],r=t.clientX,i=t.clientY;fa(this.info,r,i)&&(this.info.state==="start"&&Nr("tap"),this.info.addMove({x:r,y:i}),Li(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(n){const e=vt(n),t=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Li(this.info,e,t))}});function fa(n,e,t){if(n.prevent)return!1;if(n.started)return!0;const r=Math.abs(n.x-e),i=Math.abs(n.y-t);return r>=ha||i>=ha}function Li(n,e,t){if(!e)return;const r=n.moves[n.moves.length-2],i=n.moves[n.moves.length-1],o=i.x-n.x,s=i.y-n.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),jo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return V0(t.clientX,t.clientY)}})}Wo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(n){Mt(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Mt(n)&&pa(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){pa(this.info,n.changedTouches[0],n)}});function pa(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=vt(t||e);!o||F0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=ca&&i<=ca||U0(e))&&(n.prevent||jo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
2935
2935
  * @license
2936
2936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2937
2937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2938
- */const bd=Be(n=>class extends n{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2938
+ */const yd=Oe(n=>class extends n{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2939
2939
  * @license
2940
2940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2941
2941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2942
- */const ni=Be(n=>class extends n{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2942
+ */const ii=Oe(n=>class extends n{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2943
2943
  * @license
2944
2944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2945
2945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2946
- */const j0=n=>class extends bd(ni(n)){get _activeKeys(){return[" "]}ready(){super.ready(),et(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),et(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2946
+ */const Y0=n=>class extends yd(ii(n)){get _activeKeys(){return[" "]}ready(){super.ready(),et(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),et(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2947
2947
  * @license
2948
2948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2949
2949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2950
- */const Wo=Be(n=>class extends n{get _keyboardActive(){return Ro()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2950
+ */const Go=Oe(n=>class extends n{get _keyboardActive(){return Uo()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2951
2951
  * @license
2952
2952
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2953
2953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2954
- */const vd=n=>class extends bd(n){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2954
+ */const wd=n=>class extends yd(n){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2955
2955
  * @license
2956
2956
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2957
2957
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2958
- */const G0=n=>class extends j0(vd(Wo(n))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2958
+ */const q0=n=>class extends Y0(wd(Go(n))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2959
2959
  * @license
2960
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2961
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2962
- */De("vaadin-button",P0,{moduleId:"vaadin-button-styles"});class Y0 extends G0(cd(Nt(cn(wt)))){static get is(){return"vaadin-button"}static get template(){return S0(Ht)}ready(){super.ready(),this._tooltipController=new fd(this),this.addController(this._tooltipController)}}rt(Y0);/**
2962
+ */De("vaadin-button",k0,{moduleId:"vaadin-button-styles"});class X0 extends q0(fd(It(dn(wt)))){static get is(){return"vaadin-button"}static get template(){return D0(Lt)}ready(){super.ready(),this._tooltipController=new md(this),this.addController(this._tooltipController)}}rt(X0);/**
2963
2963
  * @license
2964
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2965
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2966
- */function q0(n){let e=n.getDay();e===0&&(e=7);const t=4-e,r=new Date(n.getTime()+t*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function wo(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function lt(n,e,t=wo){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function jo(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function sn(n,e,t,r){let i=!1;if(typeof r=="function"&&n){const o=jo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function yd(n,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const i=Math.abs(n.getTime()-r.getTime()),o=Math.abs(t.getTime()-n.getTime());return i<o?r:t})}function wd(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function X0(n,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(n.getFullYear()/100)*100;return n<new Date(i-50,t,r)?i-=100:n>new Date(i+50,t,r)&&(i+=100),i}function wn(n){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(n);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Z0(n){const e=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",i=n.year;i<0?(i=-i,t="-",r="000000"):n.year>=1e4&&(t="+",r="000000");const o=t+e(i,r),s=e(n.month+1),a=e(n.day);return[o,s,a].join("-")}function K0(n){return n instanceof Date?Z0({year:n.getFullYear(),month:n.getMonth(),day:n.getDate()}):""}/**
2966
+ */function Z0(n){let e=n.getDay();e===0&&(e=7);const t=4-e,r=new Date(n.getTime()+t*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function Eo(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function dt(n,e,t=Eo){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function Yo(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function on(n,e,t,r){let i=!1;if(typeof r=="function"&&n){const o=Yo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function Cd(n,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const i=Math.abs(n.getTime()-r.getTime()),o=Math.abs(t.getTime()-n.getTime());return i<o?r:t})}function Ed(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function K0(n,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(n.getFullYear()/100)*100;return n<new Date(i-50,t,r)?i-=100:n>new Date(i+50,t,r)&&(i+=100),i}function yn(n){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(n);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function J0(n){const e=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",i=n.year;i<0?(i=-i,t="-",r="000000"):n.year>=1e4&&(t="+",r="000000");const o=t+e(i,r),s=e(n.month+1),a=e(n.day);return[o,s,a].join("-")}function Q0(n){return n instanceof Date?J0({year:n.getFullYear(),month:n.getMonth(),day:n.getDate()}):""}/**
2967
2967
  @license
2968
2968
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2969
2969
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2971,7 +2971,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2971
2971
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2972
2972
  Code distributed by Google as part of the polymer project is also
2973
2973
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2974
- */class Nr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Un.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Un.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,r){return e instanceof Nr?e._cancelAsync():e=new Nr,e.setConfig(t,r),e}}let Un=new Set;const J0=function(n){Un.add(n)},Q0=function(){const n=!!Un.size;return Un.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};/**
2974
+ */class Lr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Fn.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fn.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,r){return e instanceof Lr?e._cancelAsync():e=new Lr,e.setConfig(t,r),e}}let Fn=new Set;const eg=function(n){Fn.add(n)},tg=function(){const n=!!Fn.size;return Fn.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};/**
2975
2975
  @license
2976
2976
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2977
2977
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2979,11 +2979,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2979
2979
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2980
2980
  Code distributed by Google as part of the polymer project is also
2981
2981
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2982
- */const Go=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Q0();while(n||e)};/**
2982
+ */const qo=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=tg();while(n||e)};/**
2983
2983
  * @license
2984
2984
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2985
2985
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2986
- */const Cd=document.createElement("template");Cd.innerHTML=`
2986
+ */const xd=document.createElement("template");xd.innerHTML=`
2987
2987
  <style>
2988
2988
  :host {
2989
2989
  display: block;
@@ -3033,11 +3033,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3033
3033
  <div class="buffer"></div>
3034
3034
  <div id="fullHeight"></div>
3035
3035
  </div>
3036
- `;class Ed extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Cd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Go()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,i=e<this._buffers[0].translateY+t;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=on.debounce(this._debouncerScrollFinish,Or.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=on.debounce(this._debouncerUpdateClones,Or.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${hd()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,t.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3036
+ `;class Td extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(xd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),qo()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,i=e<this._buffers[0].translateY+t;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=rn.debounce(this._debouncerScrollFinish,Ir.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=rn.debounce(this._debouncerUpdateClones,Ir.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${pd()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,t.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3037
3037
  * @license
3038
3038
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3040
- */const xd=document.createElement("template");xd.innerHTML=`
3040
+ */const Ad=document.createElement("template");Ad.innerHTML=`
3041
3041
  <style>
3042
3042
  :host {
3043
3043
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3049,11 +3049,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3049
3049
  height: 100%;
3050
3050
  }
3051
3051
  </style>
3052
- `;class eg extends Ed{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(xd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=wd(t)}}rt(eg);/**
3052
+ `;class ng extends Td{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ad.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Ed(t)}}rt(ng);/**
3053
3053
  * @license
3054
3054
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3055
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3056
- */const Ad=document.createElement("template");Ad.innerHTML=`
3056
+ */const Pd=document.createElement("template");Pd.innerHTML=`
3057
3057
  <style>
3058
3058
  :host {
3059
3059
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3087,15 +3087,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3087
3087
  border-left-color: #000;
3088
3088
  }
3089
3089
  </style>
3090
- `;class tg extends Ed{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ad.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}rt(tg);/**
3090
+ `;class rg extends Td{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Pd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}rt(rg);/**
3091
3091
  * @license
3092
3092
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3093
3093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3094
- */const ng=n=>class extends n{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3094
+ */const ig=n=>class extends n{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3095
3095
  * @license
3096
3096
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3097
3097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3098
- */class rg extends Nt(ng(wt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ht`
3098
+ */class og extends It(ig(wt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Lt`
3099
3099
  <style>
3100
3100
  :host {
3101
3101
  display: block;
@@ -3104,7 +3104,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3104
3104
  </style>
3105
3105
  <div part="year-number">[[year]]</div>
3106
3106
  <div part="year-separator" aria-hidden="true"></div>
3107
- `}}rt(rg);/**
3107
+ `}}rt(og);/**
3108
3108
  @license
3109
3109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3110
3110
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3112,7 +3112,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3112
3112
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3113
3113
  Code distributed by Google as part of the polymer project is also
3114
3114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3115
- */function Yo(n,e,t,r,i){let o;i&&(o=typeof t=="object"&&t!==null,o&&(r=n.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return o&&s&&(n.__dataTemp[e]=t),s}const qo=Be(n=>{class e extends n{_shouldPropertyChange(r,i,o){return Yo(this,r,i,o,!0)}}return e}),ig=Be(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Yo(this,r,i,o,this.mutableData)}}return e});qo._mutablePropertyChange=Yo;/**
3115
+ */function Xo(n,e,t,r,i){let o;i&&(o=typeof t=="object"&&t!==null,o&&(r=n.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return o&&s&&(n.__dataTemp[e]=t),s}const Zo=Oe(n=>{class e extends n{_shouldPropertyChange(r,i,o){return Xo(this,r,i,o,!0)}}return e}),sg=Oe(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Xo(this,r,i,o,this.mutableData)}}return e});Zo._mutablePropertyChange=Xo;/**
3116
3116
  @license
3117
3117
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3118
3118
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3120,7 +3120,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3120
3120
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3121
3121
  Code distributed by Google as part of the polymer project is also
3122
3122
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3123
- */let Co=null;function Eo(){return Co}Eo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Eo,writable:!0}});const Td=Lo(Eo),og=qo(Td);function sg(n,e){Co=n,Object.setPrototypeOf(n,e.prototype),new e,Co=null}const ag=Lo(class{});function lg(n,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!n!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)n?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(n)r.__polymerReplaced__=document.createComment("hidden-slot"),Le(Le(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Le(Le(i).parentNode).replaceChild(r,i)}else r.style&&(n?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=n,r._showHideChildren&&r._showHideChildren(n)}}class Ct extends ag{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let i=this.root.firstChild;i;i=i.nextSibling)t.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,r)}}_showHideChildren(e){lg(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const ug=qo(Ct);function fa(n){let e=n.__dataHost;return e&&e._methodHost||e}function dg(n,e,t){let r=t.mutableData?ug:Ct;xo.mixin&&(r=xo.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),fg(i,n,e,t),i}function cg(n,e,t,r){let i=t.forwardHostProp;if(i&&e.hasHostProps){const o=n.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(o){let l=t.mutableData?og:Td;class u extends l{}s=e.templatizeTemplateClass=u}else{const l=n.constructor;class u extends l{}s=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:hg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Mu&&r&&_g(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)sg(n,s),n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in n){const u=n[l];delete n[l],n.__data[l]=u}}}}function hg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function fg(n,e,t,r){let i=t.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pg(o,s)})}if(r.forwardHostProp&&e.__dataHost)for(let o in i)t.hasHostProps||(t.hasHostProps=!0),n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:mg()})}function pg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function mg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function xo(n,e,t){if(Mr&&!fa(n))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},n.__templatizeOwner)throw new Error("A <template> can only be templatized once");n.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(n),o=i.templatizeInstanceClass;o||(o=dg(n,i,t),i.templatizeInstanceClass=o);const s=fa(n);cg(n,i,t,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=n,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function _g(n,e,t){const r=t.constructor._properties,{propertyEffects:i}=n,{instanceProps:o}=e;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function gg(n,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=n)e=t.__dataHost;else return t;else e=Le(e).parentNode;return null}/**
3123
+ */let xo=null;function To(){return xo}To.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:To,writable:!0}});const Sd=Ro(To),ag=Zo(Sd);function lg(n,e){xo=n,Object.setPrototypeOf(n,e.prototype),new e,xo=null}const ug=Ro(class{});function dg(n,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!n!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)n?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(n)r.__polymerReplaced__=document.createComment("hidden-slot"),Ne(Ne(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Ne(Ne(i).parentNode).replaceChild(r,i)}else r.style&&(n?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=n,r._showHideChildren&&r._showHideChildren(n)}}class Ct extends ug{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let i=this.root.firstChild;i;i=i.nextSibling)t.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,r)}}_showHideChildren(e){dg(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const cg=Zo(Ct);function ma(n){let e=n.__dataHost;return e&&e._methodHost||e}function hg(n,e,t){let r=t.mutableData?cg:Ct;Ao.mixin&&(r=Ao.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),mg(i,n,e,t),i}function fg(n,e,t,r){let i=t.forwardHostProp;if(i&&e.hasHostProps){const o=n.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(o){let l=t.mutableData?ag:Sd;class u extends l{}s=e.templatizeTemplateClass=u}else{const l=n.constructor;class u extends l{}s=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:pg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Ou&&r&&bg(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)lg(n,s),n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in n){const u=n[l];delete n[l],n.__data[l]=u}}}}function pg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function mg(n,e,t,r){let i=t.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:_g(o,s)})}if(r.forwardHostProp&&e.__dataHost)for(let o in i)t.hasHostProps||(t.hasHostProps=!0),n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gg()})}function _g(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function gg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function Ao(n,e,t){if(Br&&!ma(n))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},n.__templatizeOwner)throw new Error("A <template> can only be templatized once");n.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(n),o=i.templatizeInstanceClass;o||(o=hg(n,i,t),i.templatizeInstanceClass=o);const s=ma(n);fg(n,i,t,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=n,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function bg(n,e,t){const r=t.constructor._properties,{propertyEffects:i}=n,{instanceProps:o}=e;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function vg(n,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=n)e=t.__dataHost;else return t;else e=Ne(e).parentNode;return null}/**
3124
3124
  @license
3125
3125
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3126
3126
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3128,7 +3128,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3128
3128
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3129
3129
  Code distributed by Google as part of the polymer project is also
3130
3130
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3131
- */let pa=!1;function bg(){if(Du&&!ku){if(!pa){pa=!0;const n=document.createElement("style");n.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(n)}return!0}return!1}/**
3131
+ */let _a=!1;function yg(){if(Bu&&!Mu){if(!_a){_a=!0;const n=document.createElement("style");n.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(n)}return!0}return!1}/**
3132
3132
  @license
3133
3133
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3134
3134
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3136,15 +3136,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3136
3136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3137
3137
  Code distributed by Google as part of the polymer project is also
3138
3138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3139
- */const vg=ig(wt);class ma extends vg{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!zs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),bg()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Le(Le(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=xo(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(Em(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Hn(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Nr.debounce(this.__renderDebouncer,t>0?km.after(t):zu,e.bind(this)),J0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Go()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!zs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,i,o)=>this.__filterFn(e[r],i,o))),this.__sortFn&&t.sort((r,i)=>this.__sortFn(e[r],e[i])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<t;o++){let s=this.__instances[o],a=r[o],l=e[a];i[a]=o,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,o,a)}for(let s=this.__instances.length-1;s>=o;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const r=Le(t.root);for(let i=0;i<t.children.length;i++){let o=t.children[i];r.appendChild(o)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){const i=this.__stampInstance(e,t,r);let o=this.__instances[t+1],s=o?o.children[0]:this;return Le(Le(this).parentNode).insertBefore(i.root,s),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return gg(this.template,e)}}customElements.define(ma.is,ma);/**
3139
+ */const wg=sg(wt);class ga extends wg{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!$s,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),yg()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Ne(Ne(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Ao(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(Tm(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Ln(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Lr.debounce(this.__renderDebouncer,t>0?Mm.after(t):$u,e.bind(this)),eg(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),qo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!$s||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,i,o)=>this.__filterFn(e[r],i,o))),this.__sortFn&&t.sort((r,i)=>this.__sortFn(e[r],e[i])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<t;o++){let s=this.__instances[o],a=r[o],l=e[a];i[a]=o,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,o,a)}for(let s=this.__instances.length-1;s>=o;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const r=Ne(t.root);for(let i=0;i<t.children.length;i++){let o=t.children[i];r.appendChild(o)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){const i=this.__stampInstance(e,t,r);let o=this.__instances[t+1],s=o?o.children[0]:this;return Ne(Ne(this).parentNode).insertBefore(i.root,s),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return vg(this.template,e)}}customElements.define(ga.is,ga);/**
3140
3140
  * @license
3141
3141
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3142
3142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3143
- */const yg=n=>class extends Wo(n){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(t=>lt(t.date,this.focusedDate))}ready(){super.ready(),et(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,i){const o=new Date(0,0);o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===t.getMonth()&&i.getDate()-r.getDate()>=0?!1:!sn(o,r,i)&&!sn(s,r,i)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(i=>lt(i,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return lt(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=t.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(t){return t.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((i,o)=>!i&&o?o:i);return q0(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3143
+ */const Cg=n=>class extends Go(n){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(t=>dt(t.date,this.focusedDate))}ready(){super.ready(),et(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,i){const o=new Date(0,0);o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===t.getMonth()&&i.getDate()-r.getDate()>=0?!1:!on(o,r,i)&&!on(s,r,i)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(i=>dt(i,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return dt(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=t.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(t){return t.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((i,o)=>!i&&o?o:i);return Z0(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3144
3144
  * @license
3145
3145
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3146
3146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3147
- */const wg=me`
3147
+ */const Eg=me`
3148
3148
  :host {
3149
3149
  display: block;
3150
3150
  }
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */De("vaadin-month-calendar",wg,{moduleId:"vaadin-month-calendar-styles"});class Cg extends yg(Nt(wt)){static get template(){return Ht`
3207
+ */De("vaadin-month-calendar",Eg,{moduleId:"vaadin-month-calendar-styles"});class xg extends Cg(It(wt)){static get template(){return Lt`
3208
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3209
3209
  <table
3210
3210
  id="monthGrid"
@@ -3246,19 +3246,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3246
3246
  </template>
3247
3247
  </tbody>
3248
3248
  </table>
3249
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,o,s){const a=["date"],l=e>wo(new Date),u=e<wo(new Date);return this.__isDayDisabled(e,i,o,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!sn(e,t,r,i)}__getDayAriaDisabled(e,t,r,i){if(!(e===void 0||t===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,t,r,i))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}rt(Cg);/**
3249
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,o,s){const a=["date"],l=e>Eo(new Date),u=e<Eo(new Date);return this.__isDayDisabled(e,i,o,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return dt(e,t)}__isDaySelected(e,t){return dt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!on(e,t,r,i)}__getDayAriaDisabled(e,t,r,i){if(!(e===void 0||t===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,t,r,i))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}rt(xg);/**
3250
3250
  * @license
3251
3251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3252
3252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3253
- */class Pd{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3253
+ */class kd{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3254
3254
  * @license
3255
3255
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3256
3256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3257
- */const Eg=n=>class extends n{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(t=>t.focusableDateElement).find(Boolean)}_addListeners(){gd(this.$.scrollers,"pan-y"),et(this.$.scrollers,"track",this._track.bind(this)),et(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),et(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),et(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Pd(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new kt(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),et(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new kt(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),et(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new kt(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new kt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),et(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,i,o,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,r,i,o,s,a,l,u,d,c){t&&t.length&&t.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(t,r,i){t&&t.length&&t.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=on.debounce(this._debouncer,Or.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(jo(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const i=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return wd(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){lt(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&lt(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return Ue(this,null,function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{id(this,()=>{Go(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(yd(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,i){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const i=new Date(0,0);i.setFullYear(t.getFullYear()),r==="minDate"?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return sn(t,r,i,o)}_isTodayAllowed(t,r,i){return this._dateAllowed(this._getTodayMidnight(),t,r,i)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3257
+ */const Tg=n=>class extends n{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(t=>t.focusableDateElement).find(Boolean)}_addListeners(){vd(this.$.scrollers,"pan-y"),et(this.$.scrollers,"track",this._track.bind(this)),et(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),et(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),et(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new kd(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new St(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),et(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new St(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),et(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new St(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new St(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),et(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,i,o,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,r,i,o,s,a,l,u,d,c){t&&t.length&&t.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(t,r,i){t&&t.length&&t.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=rn.debounce(this._debouncer,Ir.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(Yo(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const i=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Ed(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){dt(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&dt(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return Ue(this,null,function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{sd(this,()=>{qo(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(Cd(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,i){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const i=new Date(0,0);i.setFullYear(t.getFullYear()),r==="minDate"?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return on(t,r,i,o)}_isTodayAllowed(t,r,i){return this._dateAllowed(this._getTodayMidnight(),t,r,i)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3258
3258
  * @license
3259
3259
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3260
3260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3261
- */const xg=me`
3261
+ */const Ag=me`
3262
3262
  :host {
3263
3263
  display: flex;
3264
3264
  flex-direction: column;
@@ -3322,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3322
3322
  * @license
3323
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3325
- */De("vaadin-date-picker-overlay-content",xg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ag extends Eg(cn(Nt(Qr(wt)))){static get template(){return Ht`
3325
+ */De("vaadin-date-picker-overlay-content",Ag,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Pg extends Tg(dn(It(ti(wt)))){static get template(){return Lt`
3326
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3327
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3328
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3342,92 +3342,92 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3342
3342
  <slot name="today-button"></slot>
3343
3343
  <slot name="cancel-button"></slot>
3344
3344
  </div>
3345
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(Ag);/**
3345
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(Pg);/**
3346
3346
  * @license
3347
3347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3348
3348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3349
- */const Sd=Be(n=>class extends Wo(vd(n)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3349
+ */const Dd=Oe(n=>class extends Go(wd(n)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3350
3350
  * @license
3351
3351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3352
3352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3353
- */const Ni=new WeakMap;function Tg(n){return Ni.has(n)||Ni.set(n,new Set),Ni.get(n)}function Pg(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Sg=Be(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=Tg(t);this.slotStyles.forEach(i=>{r.has(i)||(Pg(i,t),r.add(i))})}});/**
3353
+ */const Hi=new WeakMap;function Sg(n){return Hi.has(n)||Hi.set(n,new Set),Hi.get(n)}function kg(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Dg=Oe(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=Sg(t);this.slotStyles.forEach(i=>{r.has(i)||(kg(i,t),r.add(i))})}});/**
3354
3354
  * @license
3355
3355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3356
3356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3357
- */const kd=Be(n=>class extends n{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3357
+ */const Md=Oe(n=>class extends n{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3358
3358
  * @license
3359
3359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3360
3360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3361
- */const kg=n=>class extends kd(ni(n)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),q_||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3361
+ */const Mg=n=>class extends Md(ii(n)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Z_||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3362
3362
  * @license
3363
3363
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3364
3364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3365
- */const Li=new Map;function Xo(n){return Li.has(n)||Li.set(n,new WeakMap),Li.get(n)}function Dd(n,e){n&&n.removeAttribute(e)}function Md(n,e){if(!n||!e)return;const t=Xo(e);if(t.has(n))return;const r=Fo(n.getAttribute(e));t.set(n,new Set(r))}function Dg(n,e){if(!n||!e)return;const t=Xo(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):ld(n,e,ti(r)),t.delete(n)}function Hi(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Xo(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Md(n,e),Dd(n,e)),o0(n,e,i);const l=r||ti(a);l&&ld(n,e,l)}function Mg(n,e){Md(n,e),Dd(n,e)}/**
3365
+ */const Ri=new Map;function Ko(n){return Ri.has(n)||Ri.set(n,new WeakMap),Ri.get(n)}function Bd(n,e){n&&n.removeAttribute(e)}function Od(n,e){if(!n||!e)return;const t=Ko(e);if(t.has(n))return;const r=zo(n.getAttribute(e));t.set(n,new Set(r))}function Bg(n,e){if(!n||!e)return;const t=Ko(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):dd(n,e,ri(r)),t.delete(n)}function Fi(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Ko(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Od(n,e),Bd(n,e)),a0(n,e,i);const l=r||ri(a);l&&dd(n,e,l)}function Og(n,e){Od(n,e),Bd(n,e)}/**
3366
3366
  * @license
3367
3367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3368
3368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3369
- */class Bg{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Mg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Dg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Hi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3369
+ */class Ig{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Og(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Bg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Fi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Fi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Fi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3370
3370
  * @license
3371
3371
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3372
3372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3373
- */const Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let dr;function Og(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),dr=on.debounce(dr,w0,()=>{Xe.setAttribute("role","alert")})):(dr&&dr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.textContent=n},r)}/**
3373
+ */const Ze=document.createElement("div");Ze.style.position="fixed";Ze.style.clip="rect(0px, 0px, 0px, 0px)";Ze.setAttribute("aria-live","polite");document.body.appendChild(Ze);let hr;function Ng(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Ze.removeAttribute("aria-live"),Ze.removeAttribute("role"),hr=rn.debounce(hr,E0,()=>{Ze.setAttribute("role","alert")})):(hr&&hr.cancel(),Ze.removeAttribute("role"),Ze.setAttribute("aria-live",t)),Ze.textContent="",setTimeout(()=>{Ze.textContent=n},r)}/**
3374
3374
  * @license
3375
3375
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3376
3376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3377
- */class Zo extends kt{constructor(e,t,r,i={}){super(e,t,r,nr(pt({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
3377
+ */class Jo extends St{constructor(e,t,r,i={}){super(e,t,r,ir(pt({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
3378
3378
  * @license
3379
3379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3380
3380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3381
- */class Ig extends Zo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,i=!!(r&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i&&Og(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
3381
+ */class Lg extends Jo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,i=!!(r&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i&&Ng(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
3382
3382
  * @license
3383
3383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3384
3384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3385
- */class Ng extends Zo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3385
+ */class Hg extends Jo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3386
3386
  * @license
3387
3387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3388
3388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3389
- */class Lg extends Zo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3389
+ */class Rg extends Jo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3390
3390
  * @license
3391
3391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3392
3392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3393
- */const Hg=Be(n=>class extends cn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Lg(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3393
+ */const Fg=Oe(n=>class extends dn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Rg(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3397
- */const Bd=Be(n=>class extends n{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3397
+ */const Id=Oe(n=>class extends n{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3398
3398
  * @license
3399
3399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3400
3400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3401
- */const Rg=n=>class extends Bd(Hg(cn(n))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Bg(this),this._helperController=new Ng(this),this._errorController=new Ig(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3401
+ */const Ug=n=>class extends Id(Fg(dn(n))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Ig(this),this._helperController=new Hg(this),this._errorController=new Lg(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3402
3402
  * @license
3403
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3405
- */const Fg=Be(n=>class extends n{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,t[i])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,t[i])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3405
+ */const zg=Oe(n=>class extends n{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,t[i])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,t[i])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3406
3406
  * @license
3407
3407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3408
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */const Od=Be(n=>class extends Fg(Bd(kd(n))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3409
+ */const Nd=Oe(n=>class extends zg(Id(Md(n))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3410
3410
  * @license
3411
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3412
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const Ug=n=>class extends Sg(Sd(Od(Rg(kg(ni(n)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3413
+ */const Vg=n=>class extends Dg(Dd(Nd(Ug(Mg(ii(n)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3414
3414
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3415
3415
  font: inherit;
3416
3416
  color: inherit;
3417
3417
  }
3418
- `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=on.debounce(this._preventInputDebouncer,Or.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3418
+ `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=rn.debounce(this._preventInputDebouncer,Ir.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3419
3419
  * @license
3420
3420
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3421
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3422
- */class zg extends kt{constructor(e,t,r={}){const{uniqueIdPrefix:i}=r;super(e,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3422
+ */class $g extends St{constructor(e,t,r={}){const{uniqueIdPrefix:i}=r;super(e,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3423
3423
  * @license
3424
3424
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3425
3425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3426
- */class $g{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
3426
+ */class Wg{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
3427
3427
  * @license
3428
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const Vg=me`
3430
+ */const jg=me`
3431
3431
  [part='clear-button'] {
3432
3432
  display: none;
3433
3433
  cursor: default;
@@ -3444,7 +3444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3444
3444
  * @license
3445
3445
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3446
3446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3447
- */const Wg=me`
3447
+ */const Gg=me`
3448
3448
  :host {
3449
3449
  display: inline-flex;
3450
3450
  outline: none;
@@ -3482,7 +3482,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3482
3482
  * @license
3483
3483
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3484
3484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3485
- */const jg=me`
3485
+ */const Yg=me`
3486
3486
  [class$='container'] {
3487
3487
  display: flex;
3488
3488
  flex-direction: column;
@@ -3494,23 +3494,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3494
3494
  * @license
3495
3495
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3496
3496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3497
- */const Gg=[Wg,jg,Vg];/**
3497
+ */const qg=[Gg,Yg,jg];/**
3498
3498
  * @license
3499
3499
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3500
3500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3501
- */const Yg=n=>class extends n{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3501
+ */const Xg=n=>class extends n{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3502
3502
  * @license
3503
3503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3504
3504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3505
- */class qg{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
3505
+ */class Zg{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
3506
3506
  * @license
3507
3507
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3508
3508
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3509
- */const Xg=n=>class extends Yg(cn(Sd(Od(ni(n))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const r=String(t.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),i=new Date;let o,s=i.getMonth(),a=i.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,o=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?wn(this.referenceDate):new Date;a=X0(l,a,s,o)}}else r.length===2?(s=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(t,r)=>`${t} ${r}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:od},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!Ro()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Pd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new qg(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=wn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(jo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||sn(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),r&&i&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,i,o,s,a){return!t||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(t){return K0(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const i=wn(t);if(t&&!i){this.value=r;return}t?lt(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,i,o,s,a,l,u,d){t&&(t.i18n=r,t.label=i,t.minDate=o,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=d)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const i=t.focusedDate||r;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[o,t];this.__showOthers=sd(s)}_getInitialPosition(){const t=wn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||sn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?yd(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,lt(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return wn(t)}};/**
3509
+ */const Kg=n=>class extends Xg(dn(Dd(Nd(ii(n))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const r=String(t.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),i=new Date;let o,s=i.getMonth(),a=i.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,o=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?yn(this.referenceDate):new Date;a=K0(l,a,s,o)}}else r.length===2?(s=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(t,r)=>`${t} ${r}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ad},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!Uo()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new kd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Zg(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=yn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Yo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||on(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),r&&i&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,i,o,s,a){return!t||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(t){return Q0(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const i=yn(t);if(t&&!i){this.value=r;return}t?dt(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,i,o,s,a,l,u,d){t&&(t.i18n=r,t.label=i,t.minDate=o,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=d)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const i=t.focusedDate||r;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[o,t];this.__showOthers=ld(s)}_getInitialPosition(){const t=yn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||on(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Cd(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,dt(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return yn(t)}};/**
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */const Zg=me`
3513
+ */const Jg=me`
3514
3514
  :host([opened]) {
3515
3515
  pointer-events: auto;
3516
3516
  }
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */De("vaadin-date-picker",[Gg,Zg],{moduleId:"vaadin-date-picker-styles"});class Kg extends Xg(Ug(Nt(cd(wt)))){static get is(){return"vaadin-date-picker"}static get template(){return Ht`
3530
+ */De("vaadin-date-picker",[qg,Jg],{moduleId:"vaadin-date-picker-styles"});class Qg extends Kg(Vg(It(fd(wt)))){static get is(){return"vaadin-date-picker"}static get template(){return Lt`
3531
3531
  <div class="vaadin-date-picker-container">
3532
3532
  <div part="label">
3533
3533
  <slot name="label"></slot>
@@ -3569,9 +3569,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3569
3569
  ></vaadin-date-picker-overlay>
3570
3570
 
3571
3571
  <slot name="tooltip"></slot>
3572
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new zg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new $g(this.inputElement,this._labelController)),this._tooltipController=new fd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}rt(Kg);const oe={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},_a=[oe.ACTIVE,oe.COMPLETED,oe.CLAIMABLE],ri={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},Jg=6,Qg=3,cr={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function eb(n){Lr(n,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function tb(n){let e,t,r;return{c(){e=E("span"),t=D(n[0]),r=D(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){N(i,e,o),p(e,t),p(e,r)},p(i,o){o&1&&fe(t,i[0])},d(i){i&&O(e)}}}function nb(n){let e,t,r,i,o,s,a,l,u;const d=n[10].default,c=Vn(d,n,n[9],null),h=c||tb(n);return{c(){e=E("div"),t=te("svg"),r=te("circle"),i=te("circle"),s=te("circle"),a=z(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",n[5]),m(i,"stroke-dashoffset",o=n[4]()),le(i,"Completed",n[1]===oe.COMPLETED),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),le(s,"Completed",n[1]===oe.COMPLETED),m(t,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,_){N(f,e,_),p(e,t),p(t,r),p(t,i),n[11](i),p(t,s),p(e,a),p(e,l),h&&h.m(l,null),n[12](e),u=!0},p(f,[_]){(!u||_&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||_&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||_&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||_&512)&&jn(c,d,f,f[9],u?Wn(d,f[9],_,null):Gn(f[9]),null):h&&h.p&&(!u||_&1)&&h.p(f,u?_:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&O(e),n[11](null),h&&h.d(f),n[12](null)}}}let ga=64.5;function rb(n,e,t){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(ga*2),f,_;Hr(()=>()=>{});function b(v){st[v?"unshift":"push"](()=>{c=v,t(3,c)})}function w(v){st[v?"unshift":"push"](()=>{f=v,t(2,f)})}return n.$$set=v=>{"value"in v&&t(0,s=v.value),"status"in v&&t(1,a=v.status),"mbsource"in v&&t(6,l=v.mbsource),"clientstyling"in v&&t(7,u=v.clientstyling),"clientstylingurl"in v&&t(8,d=v.clientstylingurl),"$$scope"in v&&t(9,o=v.$$scope)},n.$$.update=()=>{n.$$.dirty&132&&u&&f&&Yr(f,u),n.$$.dirty&260&&d&&f&&qr(f,d),n.$$.dirty&68&&l&&f&&Xr(f,`${l}.Style`,_),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(ga*2);return s<0&&t(0,s=0),s>100&&t(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,b,w]}class ib extends Ur{constructor(e){super(),Rr(this,e,rb,nb,$n,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},eb)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",Fr(ib,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ba=n=>ob[n],ob={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function sb(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ab(n){var r,i,o;const e=(i=(r=n.items)!=null?r:n.bonuses)!=null?i:[],t=(o=n.total)!=null?o:0;return{list:Array.isArray(e)?e:[],total:t}}function lb(n){return typeof n=="string"&&n.trim().length>0}function ub(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function db(n){const{limit:e,language:t,offset:r,bonusStatus:i,bonusCalendarStartDate:o,bonusCalendarEndDate:s,invalidDate:a,lastMonth:l,maxDate:u}=n,d={pagination:`limit=${e},offset=${r}`,language:t,sortOrder:"desc",expand:"freeSpin"};switch(i){case oe.COMPLETED:{const c=o!==""&&!a?o:l,h=s!==""&&!a?s:u,f=new Date(h);f.setUTCHours(23,59,59),d.startTime=new Date(c).toISOString(),d.endTime=f.toISOString(),d.type=cr.TYPES,d.status=cr.STATUS_COMPLETED;break}case oe.ACTIVE:d.type=cr.TYPES,d.status=cr.STATUS_ACTIVE;break}return d}function L(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function cb(n){Lr(n,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function va(n,e,t){const r=n.slice();return r[82]=e[t],r[84]=t,r}function ya(n,e,t){const r=n.slice();return r[85]=e[t],r}function wa(n,e,t){const r=n.slice();return r[76]=e[t],r}function Ca(n,e,t){const r=n.slice();return r[79]=e[t],r}function Ea(n,e,t){const r=n.slice();return r[88]=e[t],r[90]=t,r}function xa(n){var ee;let e,t,r,i,o,s=n[33](n[5]).indexOf("Casino")>-1,a,l=n[33](n[5]).indexOf("Sports")>-1,u,d=(n[5].name||((ee=n[5].presentation)==null?void 0:ee.name.content))+"",c,h,f,_,b,w,v,g=s&&Aa(),A=l&&Ta(),y=[L("TitleIcon")],S={};for(let C=0;C<y.length;C+=1)S=k(S,y[C]);let x=[L("BonusCardRowTitle")],F={};for(let C=0;C<x.length;C+=1)F=k(F,x[C]);function j(C,B){if(C[0]===oe.ACTIVE)return fb;if(C[0]===oe.COMPLETED)return hb}let G=j(n),R=G&&G(n),I=[L("BonusCardHeader")],V={};for(let C=0;C<I.length;C+=1)V=k(V,I[C]);let Z=pb(n),J=n[10]&&za(n);function H(C,B){return C[14]?Ib:Ob}let M=H(n),ie=M(n),ge=[L("BonusCardFooter")],ue={};for(let C=0;C<ge.length;C+=1)ue=k(ue,ge[C]);let q=[L("BonusCardInfo")],ae={};for(let C=0;C<q.length;C+=1)ae=k(ae,q[C]);let K=n[9]&&Za(n),se=[L("BonusCard")],Q={};for(let C=0;C<se.length;C+=1)Q=k(Q,se[C]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),A&&A.c(),u=z(),c=D(d),h=z(),R&&R.c(),f=z(),Z&&Z.c(),_=z(),b=E("div"),J&&J.c(),w=z(),ie.c(),v=z(),K&&K.c(),T(o,S),T(i,F),T(r,V),T(b,ue),le(b,"Active",n[11]||n[12]),T(t,ae),T(e,Q)},m(C,B){N(C,e,B),p(e,t),p(t,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),R&&R.m(r,null),p(t,f),Z&&Z.m(t,null),p(t,_),p(t,b),J&&J.m(b,null),p(b,w),ie.m(b,null),p(e,v),K&&K.m(e,null),n[58](e)},p(C,B){var pe;B[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g||(g=Aa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),B[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A||(A=Ta(),A.c(),A.m(o,null)):A&&(A.d(1),A=null),B[0]&32&&d!==(d=(C[5].name||((pe=C[5].presentation)==null?void 0:pe.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(C))&&R?R.p(C,B):(R&&R.d(1),R=G&&G(C),R&&(R.c(),R.m(r,null))),Z.p(C,B),C[10]?J?J.p(C,B):(J=za(C),J.c(),J.m(b,w)):J&&(J.d(1),J=null),M===(M=H(C))&&ie?ie.p(C,B):(ie.d(1),ie=M(C),ie&&(ie.c(),ie.m(b,null))),B[0]&6144&&le(b,"Active",C[11]||C[12]),C[9]?K?K.p(C,B):(K=Za(C),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(C){C&&O(e),g&&g.d(),A&&A.d(),R&&R.d(),Z&&Z.d(),J&&J.d(),ie.d(),K&&K.d(),n[58](null)}}}function Aa(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,_=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],b={};for(let w=0;w<_.length;w+=1)b=k(b,_[w]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=te("path"),h=te("circle"),f=te("circle"),m(t,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(t,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),xl(e,b)},m(w,v){N(w,e,v),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},d(w){w&&O(e)}}}function Ta(n){let e,t,r,i,o,s,a=[L("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),m(t,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(t,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),xl(e,l)},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s)},d(u){u&&O(e)}}}function hb(n){let e,t=n[25](`bonusCard.${n[5].status}`)+"",r,i=[L("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&t!==(t=s[25](`bonusCard.${s[5].status}`)+"")&&re(r,t,o.contenteditable)},d(s){s&&O(e)}}}function fb(n){let e,t,r,i,o,s=[L("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),t=te("svg"),r=te("path"),i=z(),o=D(n[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(t,"width","24"),m(t,"height","28"),m(t,"viewBox","0 0 24 28"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg"),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(t,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&re(o,l[18],a.contenteditable)},d(l){l&&O(e)}}}function pb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?_b:mb}let o=i(n),s=o(n),a=[L("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(n[0]===oe.ACTIVE||n[0]===oe.COMPLETED)&&Ra(n),d=[L("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),t=E("div"),s.c(),r=z(),u&&u.c(),T(t,l),T(e,c)},m(h,f){N(h,e,f),p(e,t),s.m(t,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(t,null))),h[0]===oe.ACTIVE||h[0]===oe.COMPLETED?u?u.p(h,f):(u=Ra(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&O(e),s.d(),u&&u.d()}}}function mb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,_,b,w=n[25](`bonusType.${n[5].type}`)+"",v,g,A,y,S,x,F=[L("BonusCardLabel")],j={};for(let C=0;C<F.length;C+=1)j=k(j,F[C]);function G(C,B){return C[0]===oe.ACTIVE?bb:gb}let R=G(n),I=R(n),V=[L("BonusCardRowText")],Z={};for(let C=0;C<V.length;C+=1)Z=k(Z,V[C]);let J=[L("BonusCardRow")],H={};for(let C=0;C<J.length;C+=1)H=k(H,J[C]);let M=[L("BonusCardLabel")],ie={};for(let C=0;C<M.length;C+=1)ie=k(ie,M[C]);let ge=[L("BonusCardRowText","Type")],ue={};for(let C=0;C<ge.length;C+=1)ue=k(ue,ge[C]);let q=[L("BonusCardRow")],ae={};for(let C=0;C<q.length;C+=1)ae=k(ae,q[C]);let K=n[5].type==="standard"&&Pa(n),se=n[5].type==="freeBet"&&Sa(n),Q=n[5].type==="freeRound"&&ka(n),ee=n[5].type==="wagering"&&Ba(n);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),I.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),_=z(),b=E("span"),v=D(w),g=z(),K&&K.c(),A=z(),se&&se.c(),y=z(),Q&&Q.c(),S=z(),ee&&ee.c(),x=nt(),T(t,j),T(a,Z),le(a,"StatusActive",n[0]===oe.ACTIVE),le(a,"StatusCompleted",n[0]===oe.COMPLETED),le(a,"StatusClaimable",n[0]===oe.CLAIMABLE),T(e,H),T(d,ie),T(b,ue),T(u,ae)},m(C,B){N(C,e,B),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),I.m(a,null),N(C,l,B),N(C,u,B),p(u,d),p(d,h),p(d,f),p(u,_),p(u,b),p(b,v),N(C,g,B),K&&K.m(C,B),N(C,A,B),se&&se.m(C,B),N(C,y,B),Q&&Q.m(C,B),N(C,S,B),ee&&ee.m(C,B),N(C,x,B)},p(C,B){B[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),R===(R=G(C))&&I?I.p(C,B):(I.d(1),I=R(C),I&&(I.c(),I.m(a,null))),B[0]&1&&le(a,"StatusActive",C[0]===oe.ACTIVE),B[0]&1&&le(a,"StatusCompleted",C[0]===oe.COMPLETED),B[0]&1&&le(a,"StatusClaimable",C[0]===oe.CLAIMABLE),B[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&re(h,c,ie.contenteditable),B[0]&33554464&&w!==(w=C[25](`bonusType.${C[5].type}`)+"")&&re(v,w,ue.contenteditable),C[5].type==="standard"?K?K.p(C,B):(K=Pa(C),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null),C[5].type==="freeBet"?se?se.p(C,B):(se=Sa(C),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),C[5].type==="freeRound"?Q?Q.p(C,B):(Q=ka(C),Q.c(),Q.m(S.parentNode,S)):Q&&(Q.d(1),Q=null),C[5].type==="wagering"?ee?ee.p(C,B):(ee=Ba(C),ee.c(),ee.m(x.parentNode,x)):ee&&(ee.d(1),ee=null)},d(C){C&&(O(e),O(l),O(u),O(g),O(A),O(y),O(S),O(x)),I.d(),K&&K.d(C),se&&se.d(C),Q&&Q.d(C),ee&&ee.d(C)}}}function _b(n){let e,t,r=n[25]("bonusCard.bonusType")+"",i,o,s,a,l=n[25](`bonusType.${n[5].type}`)+"",u,d,c,h,f,_,b,w,v=n[25]("bonusCard.validity")+"",g,A,y,S,x=n[32](n[5])+"",F,j,G,R,I=n[25]("bonusCard.validUntil")+"",V,Z,J,H,M=n[39](n[5].trigger.endTime)+"",ie,ge=[L("BonusCardLabel")],ue={};for(let $=0;$<ge.length;$+=1)ue=k(ue,ge[$]);let q=[L("BonusCardRowText","Type")],ae={};for(let $=0;$<q.length;$+=1)ae=k(ae,q[$]);let K=[L("BonusCardRow")],se={};for(let $=0;$<K.length;$+=1)se=k(se,K[$]);let Q=n[5].type==="standard"&&Ia(n),ee=n[5].type==="freeBet"&&Na(n),C=n[5].type==="freeRound"&&La(n),B=n[5].type==="wagering"&&Ha(n),pe=[L("BonusCardLabel")],Oe={};for(let $=0;$<pe.length;$+=1)Oe=k(Oe,pe[$]);let X=[L("BonusCardRowText")],W={};for(let $=0;$<X.length;$+=1)W=k(W,X[$]);let xe=[L("BonusCardRow")],Ce={};for(let $=0;$<xe.length;$+=1)Ce=k(Ce,xe[$]);let Fe=[L("BonusCardLabel")],ct={};for(let $=0;$<Fe.length;$+=1)ct=k(ct,Fe[$]);let ht=[L("BonusCardRowText")],Je={};for(let $=0;$<ht.length;$+=1)Je=k(Je,ht[$]);let Rt=[L("BonusCardRow")],Et={};for(let $=0;$<Rt.length;$+=1)Et=k(Et,Rt[$]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),Q&&Q.c(),c=z(),ee&&ee.c(),h=z(),C&&C.c(),f=z(),B&&B.c(),_=z(),b=E("p"),w=E("span"),g=D(v),A=D(":"),y=z(),S=E("span"),F=D(x),j=z(),G=E("p"),R=E("span"),V=D(I),Z=D(":"),J=z(),H=E("span"),ie=D(M),T(t,ue),T(a,ae),T(e,se),T(w,Oe),T(S,W),T(b,Ce),T(R,ct),T(H,Je),T(G,Et)},m($,ye){N($,e,ye),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N($,d,ye),Q&&Q.m($,ye),N($,c,ye),ee&&ee.m($,ye),N($,h,ye),C&&C.m($,ye),N($,f,ye),B&&B.m($,ye),N($,_,ye),N($,b,ye),p(b,w),p(w,g),p(w,A),p(b,y),p(b,S),p(S,F),N($,j,ye),N($,G,ye),p(G,R),p(R,V),p(R,Z),p(G,J),p(G,H),p(H,ie)},p($,ye){ye[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&re(i,r,ue.contenteditable),ye[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&re(u,l,ae.contenteditable),$[5].type==="standard"?Q?Q.p($,ye):(Q=Ia($),Q.c(),Q.m(c.parentNode,c)):Q&&(Q.d(1),Q=null),$[5].type==="freeBet"?ee?ee.p($,ye):(ee=Na($),ee.c(),ee.m(h.parentNode,h)):ee&&(ee.d(1),ee=null),$[5].type==="freeRound"?C?C.p($,ye):(C=La($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?B?B.p($,ye):(B=Ha($),B.c(),B.m(_.parentNode,_)):B&&(B.d(1),B=null),ye[0]&33554432&&v!==(v=$[25]("bonusCard.validity")+"")&&re(g,v,Oe.contenteditable),ye[0]&32&&x!==(x=$[32]($[5])+"")&&re(F,x,W.contenteditable),ye[0]&33554432&&I!==(I=$[25]("bonusCard.validUntil")+"")&&re(V,I,ct.contenteditable),ye[0]&32&&M!==(M=$[39]($[5].trigger.endTime)+"")&&re(ie,M,Je.contenteditable)},d($){$&&(O(e),O(d),O(c),O(h),O(f),O(_),O(b),O(j),O(G)),Q&&Q.d($),ee&&ee.d($),C&&C.d($),B&&B.d($)}}}function gb(n){let e=n[25](`bonusCard.${n[5].status}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&fe(t,e)},d(r){r&&O(t)}}}function bb(n){let e=n[25](`bonusCard.${n[0]}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&fe(t,e)},d(r){r&&O(t)}}}function Pa(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,_=n[5].amount+"",b,w,v,g,A,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,G=n[29](n[5])+n[17]+"",R,I,V=[L("BonusCardLabel")],Z={};for(let B=0;B<V.length;B+=1)Z=k(Z,V[B]);let J=[L("BonusCardRowText")],H={};for(let B=0;B<J.length;B+=1)H=k(H,J[B]);let M=[L("BonusCardRow")],ie={};for(let B=0;B<M.length;B+=1)ie=k(ie,M[B]);let ge=[L("BonusCardLabel")],ue={};for(let B=0;B<ge.length;B+=1)ue=k(ue,ge[B]);function q(B,pe){return B[5].initialWagerRequirementAmount>=2147483647?yb:vb}let ae=q(n),K=ae(n),se=[L("BonusCardRowText")],Q={};for(let B=0;B<se.length;B+=1)Q=k(Q,se[B]);let ee=[L("BonusCardRow")],C={};for(let B=0;B<ee.length;B+=1)C=k(C,ee[B]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=D(` /
3573
- `),f=E("span"),b=D(_),w=D(n[17]),v=z(),g=E("p"),A=E("span"),S=D(y),x=D(":"),F=z(),j=E("span"),R=D(G),I=D(` /
3574
- `),K.c(),T(t,Z),le(l,"BonusAmount",n[0]===oe.ACTIVE),le(f,"Amount",n[0]===oe.ACTIVE),T(a,H),T(e,ie),T(A,ue),T(j,Q),T(g,C)},m(B,pe){N(B,e,pe),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,b),p(f,w),N(B,v,pe),N(B,g,pe),p(g,A),p(A,S),p(A,x),p(g,F),p(g,j),p(j,R),p(j,I),K.m(j,null)},p(B,pe){pe[0]&33554432&&r!==(r=B[25]("bonusCard.bonusAmount")+"")&&re(i,r,Z.contenteditable),pe[0]&32&&u!==(u=B[5].remainingAmount+"")&&fe(d,u),pe[0]&131072&&fe(c,B[17]),pe[0]&1&&le(l,"BonusAmount",B[0]===oe.ACTIVE),pe[0]&32&&_!==(_=B[5].amount+"")&&fe(b,_),pe[0]&131072&&fe(w,B[17]),pe[0]&1&&le(f,"Amount",B[0]===oe.ACTIVE),pe[0]&33554432&&y!==(y=B[25]("bonusCard.wageredAmount")+"")&&re(S,y,ue.contenteditable),pe[0]&131104&&G!==(G=B[29](B[5])+B[17]+"")&&re(R,G,Q.contenteditable),ae===(ae=q(B))&&K?K.p(B,pe):(K.d(1),K=ae(B),K&&(K.c(),K.m(j,null)))},d(B){B&&(O(e),O(v),O(g)),K.d()}}}function vb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(t,e)},d(r){r&&O(t)}}}function yb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function Sa(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h=[L("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=[L("BonusCardRowText")],b={};for(let g=0;g<_.length;g+=1)b=k(b,_[g]);let w=[L("BonusCardRow")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),le(l,"BonusAmount",n[0]===oe.ACTIVE),T(a,b),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),A[0]&131072&&fe(c,g[17]),A[0]&1&&le(l,"BonusAmount",g[0]===oe.ACTIVE)},d(g){g&&O(e)}}}function ka(n){let e,t=n[5].status===oe.ACTIVE&&Da(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5].status===oe.ACTIVE?t?t.p(r,i):(t=Da(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&O(e),t&&t.d(r)}}}function Da(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[5].numberOfFreeSpin+"",u,d,c,h,f=n[25]("bonusCard.game")+"",_,b,w,v,g,A,y,S,x,F,j,G,R,I,V,Z,J,H,M,ie=[L("BonusCardLabel")],ge={};for(let W=0;W<ie.length;W+=1)ge=k(ge,ie[W]);let ue=[L("BonusCardRowText")],q={};for(let W=0;W<ue.length;W+=1)q=k(q,ue[W]);let ae=[L("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=k(K,ae[W]);let se=[L("BonusCardLabel")],Q={};for(let W=0;W<se.length;W+=1)Q=k(Q,se[W]);let ee=Re(n[23]),C=[];for(let W=0;W<ee.length;W+=1)C[W]=Ma(Ea(n,ee,W));let B=[L("BonusCardRowText")],pe={};for(let W=0;W<B.length;W+=1)pe=k(pe,B[W]);let Oe=[L("BonusCardRow")],X={};for(let W=0;W<Oe.length;W+=1)X=k(X,Oe[W]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("div"),h=E("div"),_=D(f),b=D(":"),w=z(),v=E("div"),g=E("div"),A=E("button"),y=te("svg"),S=te("path"),F=z(),j=E("div"),G=E("span");for(let W=0;W<C.length;W+=1)C[W].c();R=z(),I=E("button"),V=te("svg"),Z=te("path"),T(t,ge),T(a,q),T(e,K),T(h,Q),m(S,"stroke-linecap","round"),m(S,"stroke-linejoin","round"),m(S,"stroke-width","2"),m(S,"d","M15 19l-7-7 7-7"),m(y,"fill","none"),m(y,"stroke","currentColor"),m(y,"viewBox","0 0 24 24"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=n[24]==0,le(A,"Hide",n[23].length<=3),m(G,"class","Games"),ns(G,"transform","translateX("+n[24]+"px)"),m(j,"class","Main"),m(Z,"stroke-linecap","round"),m(Z,"stroke-linejoin","round"),m(Z,"stroke-width","2"),m(Z,"d","M9 5l7 7-7 7"),m(V,"fill","none"),m(V,"stroke","currentColor"),m(V,"viewBox","0 0 24 24"),m(V,"xmlns","http://www.w3.org/2000/svg"),m(I,"class","SliderNavButton"),m(I,"part","SliderNavButton"),I.disabled=J=n[24]<=-(n[23].length-3)*100,le(I,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),T(v,pe),T(c,X)},m(W,xe){N(W,e,xe),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(W,d,xe),N(W,c,xe),p(c,h),p(h,_),p(h,b),p(c,w),p(c,v),p(v,g),p(g,A),p(A,y),p(y,S),p(g,F),p(g,j),p(j,G);for(let Ce=0;Ce<C.length;Ce+=1)C[Ce]&&C[Ce].m(G,null);p(g,R),p(g,I),p(I,V),p(V,Z),H||(M=[Pe(A,"click",n[51]),Pe(I,"click",n[55])],H=!0)},p(W,xe){if(xe[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&re(i,r,ge.contenteditable),xe[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&re(u,l,q.contenteditable),xe[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&re(_,f,Q.contenteditable),xe[0]&16777216&&x!==(x=W[24]==0)&&(A.disabled=x),xe[0]&8388608&&le(A,"Hide",W[23].length<=3),xe[0]&48234496|xe[1]&7168){ee=Re(W[23]);let Ce;for(Ce=0;Ce<ee.length;Ce+=1){const Fe=Ea(W,ee,Ce);C[Ce]?C[Ce].p(Fe,xe):(C[Ce]=Ma(Fe),C[Ce].c(),C[Ce].m(G,null))}for(;Ce<C.length;Ce+=1)C[Ce].d(1);C.length=ee.length}xe[0]&16777216&&ns(G,"transform","translateX("+W[24]+"px)"),xe[0]&25165824&&J!==(J=W[24]<=-(W[23].length-3)*100)&&(I.disabled=J),xe[0]&8388608&&le(I,"Hide",W[23].length<=3)},d(W){W&&(O(e),O(d),O(c)),yt(C,W),H=!1,qe(M)}}}function Ma(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,_;function b(){return n[52](n[88])}function w(){return n[53](n[90])}return{c(){e=E("span"),t=E("span"),i=D(r),a=z(),l=E("img"),h=z(),m(t,"class",o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":"")),ts(l.src,u=n[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[88].name),m(l,"title",c=n[88].name),m(e,"class","Game"),m(e,"part","Game")},m(v,g){N(v,e,g),p(e,t),p(t,i),p(e,a),p(e,l),p(e,h),f||(_=[Pe(e,"click",b),Pe(e,"mouseenter",w),Pe(e,"mouseleave",n[54])],f=!0)},p(v,g){n=v,g[0]&33554432&&r!==(r=n[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!ts(l.src,u=n[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[88].name)&&m(l,"title",c)},d(v){v&&O(e),f=!1,qe(_)}}}function Ba(n){let e,t,r=n[25]("bonusCard.wageringType")+"",i,o,s,a,l=n[25](`bonusCard.${n[5].wageringType}`)+"",u,d,c,h,f=n[25]("bonusCard.wagered")+"",_,b,w,v,g=[L("BonusCardLabel")],A={};for(let H=0;H<g.length;H+=1)A=k(A,g[H]);let y=[L("BonusCardRowText")],S={};for(let H=0;H<y.length;H+=1)S=k(S,y[H]);let x=[L("BonusCardRow")],F={};for(let H=0;H<x.length;H+=1)F=k(F,x[H]);let j=[L("BonusCardLabel")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=n[5].wageringType==="money"&&Oa(n),I=[L("BonusCardRowText")],V={};for(let H=0;H<I.length;H+=1)V=k(V,I[H]);let Z=[L("BonusCardRow")],J={};for(let H=0;H<Z.length;H+=1)J=k(J,Z[H]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("p"),h=E("span"),_=D(f),b=D(":"),w=z(),v=E("span"),R&&R.c(),T(t,A),T(a,S),T(e,F),T(h,G),T(v,V),T(c,J)},m(H,M){N(H,e,M),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(H,d,M),N(H,c,M),p(c,h),p(h,_),p(h,b),p(c,w),p(c,v),R&&R.m(v,null)},p(H,M){M[0]&33554432&&r!==(r=H[25]("bonusCard.wageringType")+"")&&re(i,r,A.contenteditable),M[0]&33554464&&l!==(l=H[25](`bonusCard.${H[5].wageringType}`)+"")&&re(u,l,S.contenteditable),M[0]&33554432&&f!==(f=H[25]("bonusCard.wagered")+"")&&re(_,f,G.contenteditable),H[5].wageringType==="money"?R?R.p(H,M):(R=Oa(H),R.c(),R.m(v,null)):R&&(R.d(1),R=null)},d(H){H&&(O(e),O(d),O(c)),R&&R.d()}}}function Oa(n){let e;function t(o,s){return o[0]===oe.ACTIVE?Cb:wb}let r=t(n),i=r(n);return{c(){i.c(),e=nt()},m(o,s){i.m(o,s),N(o,e,s)},p(o,s){r===(r=t(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&O(e),i.d(o)}}}function wb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?xb:Eb}let s=o(n),a=s(n);return{c(){t=D(e),r=D(` /
3575
- `),a.c(),i=nt()},m(l,u){N(l,t,u),N(l,r,u),a.m(l,u),N(l,i,u)},p(l,u){u[0]&131104&&e!==(e=l[29](l[5])+l[17]+"")&&fe(t,e),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(O(t),O(r),O(i)),a.d(l)}}}function Cb(n){var d;let e=n[30](n[5])+"",t,r,i,o,s=((d=n[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){t=D(e),r=z(),i=D(n[17]),o=D(` /
3576
- `),a=D(s),l=z(),u=D(n[17])},m(c,h){N(c,t,h),N(c,r,h),N(c,i,h),N(c,o,h),N(c,a,h),N(c,l,h),N(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&fe(t,e),h[0]&131072&&fe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&fe(a,s),h[0]&131072&&fe(u,c[17])},d(c){c&&(O(t),O(r),O(i),O(o),O(a),O(l),O(u))}}}function Eb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(t,e)},d(r){r&&O(t)}}}function xb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function Ia(n){var ge,ue;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((ue=(ge=n[5].wallet.standard)==null?void 0:ge.initialAmount)==null?void 0:ue.fixedAmount)+"",d,c,h,f,_,b=n[25]("bonusCard.wageringRequirement")+"",w,v,g,A,y=n[37](n[5])+n[17]+"",S,x=[L("BonusCardLabel")],F={};for(let q=0;q<x.length;q+=1)F=k(F,x[q]);let j=[L("BonusCardRowText")],G={};for(let q=0;q<j.length;q+=1)G=k(G,j[q]);let R=[L("BonusCardRow")],I={};for(let q=0;q<R.length;q+=1)I=k(I,R[q]);let V=[L("BonusCardLabel")],Z={};for(let q=0;q<V.length;q+=1)Z=k(Z,V[q]);let J=[L("BonusCardRowText")],H={};for(let q=0;q<J.length;q+=1)H=k(H,J[q]);let M=[L("BonusCardRow")],ie={};for(let q=0;q<M.length;q+=1)ie=k(ie,M[q]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=z(),f=E("p"),_=E("span"),w=D(b),v=D(":"),g=z(),A=E("span"),S=D(y),T(t,F),T(a,G),T(e,I),T(_,Z),T(A,H),T(f,ie)},m(q,ae){N(q,e,ae),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),N(q,h,ae),N(q,f,ae),p(f,_),p(_,w),p(_,v),p(f,g),p(f,A),p(A,S)},p(q,ae){var K,se;ae[0]&33554432&&r!==(r=q[25]("bonusCard.bonusAmount")+"")&&re(i,r,F.contenteditable),ae[0]&32&&u!==(u=q[36]((se=(K=q[5].wallet.standard)==null?void 0:K.initialAmount)==null?void 0:se.fixedAmount)+"")&&fe(d,u),ae[0]&131072&&fe(c,q[17]),ae[0]&33554432&&b!==(b=q[25]("bonusCard.wageringRequirement")+"")&&re(w,b,Z.contenteditable),ae[0]&131104&&y!==(y=q[37](q[5])+q[17]+"")&&re(S,y,H.contenteditable)},d(q){q&&(O(e),O(h),O(f))}}}function Na(n){var g,A;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((A=(g=n[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[L("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=k(f,h[y]);let _=[L("BonusCardRowText")],b={};for(let y=0;y<_.length;y+=1)b=k(b,_[y]);let w=[L("BonusCardRow")],v={};for(let y=0;y<w.length;y+=1)v=k(v,w[y]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),T(a,b),T(e,v)},m(y,S){N(y,e,S),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(y,S){var x,F;S[0]&33554432&&r!==(r=y[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),S[0]&32&&u!==(u=y[36]((F=(x=y[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:F.fixedAmount)+"")&&fe(d,u),S[0]&131072&&fe(c,y[17])},d(y){y&&O(e)}}}function La(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[38](n[5])+"",u,d=[L("BonusCardLabel")],c={};for(let w=0;w<d.length;w+=1)c=k(c,d[w]);let h=[L("BonusCardRowText")],f={};for(let w=0;w<h.length;w+=1)f=k(f,h[w]);let _=[L("BonusCardRow")],b={};for(let w=0;w<_.length;w+=1)b=k(b,_[w]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),T(t,c),T(a,f),T(e,b)},m(w,v){N(w,e,v),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u)},p(w,v){v[0]&33554432&&r!==(r=w[25]("bonusCard.roundNumber")+"")&&re(i,r,c.contenteditable),v[0]&32&&l!==(l=w[38](w[5])+"")&&re(u,l,f.contenteditable)},d(w){w&&O(e)}}}function Ha(n){let e,t,r=n[25]("bonusCard.levels")+"",i,o,s,a,l=[L("BonusCardLabel")],u={};for(let v=0;v<l.length;v+=1)u=k(u,l[v]);function d(v,g){return v[8]>0?Tb:Ab}let c=d(n),h=c(n),f=[L("BonusCardRowText")],_={};for(let v=0;v<f.length;v+=1)_=k(_,f[v]);let b=[L("BonusCardRow")],w={};for(let v=0;v<b.length;v+=1)w=k(w,b[v]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),h.c(),T(t,u),T(a,_),T(e,w)},m(v,g){N(v,e,g),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),h.m(a,null)},p(v,g){g[0]&33554432&&r!==(r=v[25]("bonusCard.levels")+"")&&re(i,r,u.contenteditable),c===(c=d(v))&&h?h.p(v,g):(h.d(1),h=c(v),h&&(h.c(),h.m(a,null)))},d(v){v&&O(e),h.d()}}}function Ab(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function Tb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&fe(e,t[8])},d(t){t&&O(e)}}}function Ra(n){let e,t,r=n[5].type==="standard"&&Fa(n),i=n[5].type==="wagering"&&Ua(n);return{c(){r&&r.c(),e=z(),i&&i.c(),t=nt()},m(o,s){r&&r.m(o,s),N(o,e,s),i&&i.m(o,s),N(o,t,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=Fa(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Ua(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(O(e),O(t)),r&&r.d(o),i&&i.d(o)}}}function Fa(n){let e,t,r,i=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[L("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("div"),t=E("casino-bonus-progress"),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t)},p(l,u){T(t,o=ke(i,[L("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&O(e)}}}function Ua(n){var S;let e,t,r,i,o,s=n[25]("bonusCard.level")+"",a,l,u=(((S=n[5].wageringProgress)==null?void 0:S.currentLevel)||1)+"",d,c,h=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],f={};for(let x=0;x<h.length;x+=1)f=k(f,h[x]);function _(x,F){return x[8]>0?Sb:Pb}let b=_(n),w=b(n),v=[L("CircularProgressText")],g={};for(let x=0;x<v.length;x+=1)g=k(g,v[x]);let A=[L("BonusCardProgress")],y={};for(let x=0;x<A.length;x+=1)y=k(y,A[x]);return{c(){e=E("div"),t=E("casino-bonus-progress"),i=z(),o=E("div"),a=D(s),l=D(": "),d=D(u),c=D(` /
3577
- `),w.c(),T(t,f),T(o,g),T(e,y)},m(x,F){N(x,e,F),p(e,t),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),w.m(o,null)},p(x,F){var j;T(t,f=ke(h,[L("CircularProgress"),F[0]&32&&r!==(r=x[31](x[5]))&&{value:r},F[0]&1&&{status:x[0]},F[0]&4&&{clientstyling:x[2]},F[0]&8&&{clientstylingurl:x[3]},F[0]&2&&{mbsource:x[1]}])),F[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&re(a,s,g.contenteditable),F[0]&32&&u!==(u=(((j=x[5].wageringProgress)==null?void 0:j.currentLevel)||1)+"")&&re(d,u,g.contenteditable),b===(b=_(x))&&w?w.p(x,F):(w.d(1),w=b(x),w&&(w.c(),w.m(o,null)))},d(x){x&&O(e),w.d()}}}function Pb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function Sb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&fe(e,t[8])},d(t){t&&O(e)}}}function za(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,_=[L("BonusCardAdditionalTitle")],b={};for(let R=0;R<_.length;R+=1)b=k(b,_[R]);function w(R,I){return R[11]?kb:Db}let v=w(n),g=v(n),A=[L("BonusCardAdditionalButton")],y={};for(let R=0;R<A.length;R+=1)y=k(y,A[R]);let S=[L("BonusCardAdditionalHeader")],x={};for(let R=0;R<S.length;R+=1)x=k(x,S[R]);let F=n[11]&&$a(n),j=[L("BonusCardAdditional")],G={};for(let R=0;R<j.length;R+=1)G=k(G,j[R]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=z(),l=D(a),u=z(),d=E("span"),g.c(),c=z(),F&&F.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,b),T(d,y),T(t,x),le(t,"Active",n[11]),T(e,G)},m(R,I){N(R,e,I),p(e,t),p(t,r),p(r,i),p(i,o),p(r,s),p(r,l),p(t,u),p(t,d),g.m(d,null),p(e,c),F&&F.m(e,null),h||(f=Pe(t,"click",n[56]),h=!0)},p(R,I){I[0]&33554432&&a!==(a=R[25]("bonusCard.rewards")+"")&&re(l,a,b.contenteditable),v!==(v=w(R))&&(g.d(1),g=v(R),g&&(g.c(),g.m(d,null))),I[0]&2048&&le(t,"Active",R[11]),R[11]?F?F.p(R,I):(F=$a(R),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(R){R&&O(e),g.d(),F&&F.d(),h=!1,f()}}}function kb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&O(e)}}}function Db(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&O(e)}}}function $a(n){let e,t=n[5].type==="wagering"&&Va(n),r=[L("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),t&&t.c(),T(e,i)},m(o,s){N(o,e,s),t&&t.m(e,null)},p(o,s){o[5].type==="wagering"?t?t.p(o,s):(t=Va(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&O(e),t&&t.d()}}}function Va(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Bb;if(l[5].levels)return Mb}let o=i(n),s=o&&o(n),a=t&&qa(n);return{c(){s&&s.c(),e=z(),a&&a.c(),r=nt()},m(l,u){s&&s.m(l,u),N(l,e,u),a&&a.m(l,u),N(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(t=l[5].levels.length>Number(l[4])),t?a?a.p(l,u):(a=qa(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(O(e),O(r)),s&&s.d(l),a&&a.d(l)}}}function Mb(n){let e,t=Re(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=ja(va(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&24){t=Re(i[5].levels.slice(0,i[4]));let s;for(s=0;s<t.length;s+=1){const a=va(i,t,s);r[s]?r[s].p(a,o):(r[s]=ja(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&O(e),yt(r,i)}}}function Bb(n){let e,t=Re(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ya(wa(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&512){t=Re(i[40](i[5],i[7]));let s;for(s=0;s<t.length;s+=1){const a=wa(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ya(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&O(e),yt(r,i)}}}function Wa(n){let e=n[35](n[82],n[85])+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(t,e)},d(r){r&&O(t)}}}function ja(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[84])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=Re(n[82].bonuses),b=[];for(let g=0;g<_.length;g+=1)b[g]=Wa(ya(n,_,g));let w=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&re(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&re(a,s,f.contenteditable),A[0]&48|A[1]&16){_=Re(g[82].bonuses);let y;for(y=0;y<_.length;y+=1){const S=ya(g,_,y);b[y]?b[y].p(S,A):(b[y]=Wa(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&O(e),yt(b,g)}}}function Ga(n){let e=n[79]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(t,e)},d(r){r&&O(t)}}}function Ya(n){let e,t,r=n[25](`bonusCard.${n[76].label}`)+"",i,o,s=n[25]("bonusCard.level")+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=Re(n[76].desc),b=[];for(let g=0;g<_.length;g+=1)b[g]=Ga(Ca(n,_,g));let w=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&re(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&re(a,s,f.contenteditable),A[0]&160|A[1]&512){_=Re(g[76].desc);let y;for(y=0;y<_.length;y+=1){const S=Ca(g,_,y);b[y]?b[y].p(S,A):(b[y]=Ga(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&O(e),yt(b,g)}}}function qa(n){let e,t=n[25]("bonusCard.allRewards")+"",r,i,o,s=[L("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=D(t),T(e,a)},m(l,u){N(l,e,u),p(e,r),i||(o=Pe(e,"click",n[28]),i=!0)},p(l,u){u[0]&33554432&&t!==(t=l[25]("bonusCard.allRewards")+"")&&re(r,t,a.contenteditable)},d(l){l&&O(e),i=!1,o()}}}function Ob(n){let e,t,r,i,o,s,a,l,u,d,c=n[25]("bonusCard.terms")+"",h,f=[L("BonusCardTermsLink"),{href:n[20]},{target:"__blank"}],_={};for(let v=0;v<f.length;v+=1)_=k(_,f[v]);let b=[L("BonusCardTerms")],w={};for(let v=0;v<b.length;v+=1)w=k(w,b[v]);return{c(){e=E("div"),t=E("a"),r=te("svg"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=z(),h=D(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),T(t,_),T(e,w)},m(v,g){N(v,e,g),p(e,t),p(t,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(t,d),p(t,h)},p(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&re(h,c,_.contenteditable),T(t,_=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&O(e)}}}function Ib(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,_,b,w,v,g,A=[L("BonusCardTermsTitle")],y={};for(let H=0;H<A.length;H+=1)y=k(y,A[H]);function S(H,M){return H[12]?Nb:Lb}let x=S(n),F=x(n),j=[L("BonusCardTermsButton")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=[L("BonusCardTermsHeader")],I={};for(let H=0;H<R.length;H+=1)I=k(I,R[H]);let V=n[12]&&Xa(n),Z=[L("BonusCardTerms")],J={};for(let H=0;H<Z.length;H+=1)J=k(J,Z[H]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=z(),f=D(h),_=z(),b=E("span"),F.c(),w=z(),V&&V.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,y),T(b,G),T(t,I),le(t,"Active",n[12]),T(e,J)},m(H,M){N(H,e,M),p(e,t),p(t,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(t,_),p(t,b),F.m(b,null),p(e,w),V&&V.m(e,null),v||(g=Pe(t,"click",n[57]),v=!0)},p(H,M){M[0]&33554432&&h!==(h=H[25]("bonusCard.terms")+"")&&re(f,h,y.contenteditable),x!==(x=S(H))&&(F.d(1),F=x(H),F&&(F.c(),F.m(b,null))),M[0]&4096&&le(t,"Active",H[12]),H[12]?V?V.p(H,M):(V=Xa(H),V.c(),V.m(e,null)):V&&(V.d(1),V=null)},d(H){H&&O(e),F.d(),V&&V.d(),v=!1,g()}}}function Nb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&O(e)}}}function Lb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&O(e)}}}function Xa(n){let e,t,r,i,o=[L("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),e.innerHTML="",T(e,s)},m(a,l){N(a,e,l),r||(i=jd(t=n[44].call(null,e,n[16].terms_and_conditions)),r=!0)},p(a,l){t&&zn(t.update)&&l[0]&65536&&t.update.call(null,a[16].terms_and_conditions)},d(a){a&&O(e),r=!1,i()}}}function Za(n){let e,t,r,i=n[0]===oe.CLAIMABLE&&Ka(n),o=n[0]===oe.ACTIVE&&n[5].status===oe.ACTIVE&&Qa(n),s=[L("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[L("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),t=E("div"),i&&i.c(),r=z(),o&&o.c(),T(t,a),T(e,u)},m(d,c){N(d,e,c),p(e,t),i&&i.m(t,null),p(t,r),o&&o.m(t,null)},p(d,c){d[0]===oe.CLAIMABLE?i?i.p(d,c):(i=Ka(d),i.c(),i.m(t,r)):i&&(i.d(1),i=null),d[0]===oe.ACTIVE&&d[5].status===oe.ACTIVE?o?o.p(d,c):(o=Qa(d),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(d){d&&O(e),i&&i.d(),o&&o.d()}}}function Ka(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,_,b=n[15]===!0&&Ja(n),w=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<w.length;x+=1)v=k(v,w[x]);let g=[L("BonusJoinButton"),{type:"button"},{disabled:h=!n[13]}],A={};for(let x=0;x<g.length;x+=1)A=k(A,g[x]);let y=[L("BonusCardJoinWrapper")],S={};for(let x=0;x<y.length;x+=1)S=k(S,y[x]);return{c(){e=E("div"),b&&b.c(),t=z(),r=E("span"),i=te("svg"),o=te("path"),s=z(),a=D(n[19]),l=z(),u=E("button"),c=D(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,v),T(u,A),T(e,S)},m(x,F){N(x,e,F),b&&b.m(e,null),p(e,t),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(_=Pe(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?b?b.p(x,F):(b=Ja(x),b.c(),b.m(e,t)):b&&(b.d(1),b=null),F[0]&524288&&re(a,x[19],v.contenteditable),F[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&re(c,d,A.contenteditable),T(u,A=ke(g,[L("BonusJoinButton"),{type:"button"},F[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&O(e),b&&b.d(),f=!1,_()}}}function Ja(n){let e,t=n[25]("bonusCard.error")+"",r,i=[L("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&t!==(t=s[25]("bonusCard.error")+"")&&re(r,t,o.contenteditable)},d(s){s&&O(e)}}}function Qa(n){let e,t=n[25]("bonusCard.forfeit")+"",r,i,o,s,a=[L("BonusForfeitButton"),{type:"button"},{disabled:i=!n[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=D(t),T(e,l)},m(u,d){N(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Pe(e,"click",n[27]),o=!0)},p(u,d){d[0]&33554432&&t!==(t=u[25]("bonusCard.forfeit")+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[L("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&O(e),o=!1,s()}}}function Hb(n){let e,t=n[5]&&xa(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5]?t?t.p(r,i):(t=xa(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Me,o:Me,d(r){r&&O(e),t&&t.d(r)}}}function Rb(n,e,t){let r;Cl(n,Ql,P=>t(25,r=P));let{rawbonus:i=""}=e,{lang:o="en"}=e,{status:s=""}=e,{mbsource:a}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{cmsendpoint:d=""}=e,{translationurl:c=""}=e,{levelcountlimit:h=""}=e,{currency:f=""}=e,_=null,b=[],w,v=!1,g=!1,A=!1,y=!1,S=!0,x=!1,F=!1,j={},G,R,I="",V=1e3*30,Z,J,H="",M=!1,ie,ge=[],ue=0,q=!1;const ae=()=>{fetch(c).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ne=>{Er(ne,U[ne])})}).catch(U=>{console.log(U)})};Object.keys(xr).forEach(P=>{Er(P,xr[P])});const K=P=>P.some(U=>Array.isArray(U==null?void 0:U.bonuses)&&U.bonuses.length>0);Hr(()=>(window.addEventListener("message",Oe,!1),()=>{window.removeEventListener("message",Oe)}));const se=()=>{var P,U;try{t(5,_=JSON.parse(i))}catch(ne){t(5,_=null)}_&&(t(17,G=ba(_.currency||f)),t(7,b=ee(_.levels||((U=(P=_.wallet)==null?void 0:P.wagering)==null?void 0:U.levels))),t(10,g=_.type==="wagering"&&K(b)),g||t(11,A=!1),_.type==="freeRound"&&t(23,ge=Q(_.freeSpin)),Fe())},Q=P=>{if(!P||!P.vendorGamesDetail)return[];let U=[];return Object.keys(P.vendorGamesDetail).length>0&&Object.keys(P.vendorGamesDetail).forEach(ne=>{U=P.vendorGamesDetail[ne]}),U},ee=P=>{if(!P)return[];const U=[];let ne=!1;return P.map((be,we)=>{const ft=be,{maxRepeats:Te,completedTime:Ge}=ft,Qe=Qo(ft,["maxRepeats","completedTime"]);Te===0&&(ne=!0,U.push(pt({},Qe)));for(let We=0;We<Te;We++)U.push(pt({},Qe))}),ne?t(8,w=0):t(8,w=U.length),U},C=()=>{t(13,S=!1),t(15,F=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},B=()=>{t(13,S=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},pe=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},Oe=P=>{switch(P.data.type){case"OnBonusClaimedDone":t(13,S=!0);break;case"OnBonusForfeitedDone":t(13,S=!0);break;case"OnBonusClaimError":P.data.bonusCode===_.code&&t(15,F=!0);break}},X=(P,U)=>({remainder:P%U,quotient:Math.floor(P/U)}),W=P=>{const U=new Date;return new Date(P).getTime()-U.getTime()},xe=P=>{const U=W(P)/6e4,{quotient:ne,remainder:be}=X(U,1440),{quotient:we,remainder:Te}=X(be,60),Ge=Math.floor(Te),Qe=We=>Math.abs(We)<10?`0${We}`:We;return[{value:ne,symbol:"d"},{value:we,symbol:"h"},{value:Ge,symbol:"m"}].map(We=>Qe(We.value)+We.symbol).join(" ")},Ce=(P,U,ne,be)=>{const we=W(P);we<0?ne():(be(xe(P)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Fe=()=>{var be;if(!_)return;const P=(we,Te,Ge)=>{Ce(we,V,()=>Te(Ge),Te)},U=r("bonusCard.expired"),ne=_.endTime||((be=_.trigger)==null?void 0:be.endTime);ne&&P(ne,we=>{t(19,I=we),t(18,R=we)},U),_.expiryDate&&P(_.expiryDate,we=>t(18,R=we),U)},ct=P=>{let U=(P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount).toFixed(2);return P.status===oe.RELEASED&&P.type==="wagering"&&(U=(Number(U)+P.remainingAmount).toFixed(2)),parseFloat(U).toString()},ht=P=>{var U,ne;return(((U=P.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=P.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},Je=P=>{var be,we,Te;let U,ne;return P.type==="wagering"&&P.status===oe.ACTIVE&&P.wageringType==="money"?(ne=(be=P.wageringProgress)==null?void 0:be.currentLevelIncrement,ne!=0&&(U=((((we=P.wageringProgress)==null?void 0:we.currentLevelIncrement)-((Te=P.wageringProgress)==null?void 0:Te.gap))/ne*100).toFixed(2))):P.status===oe.RELEASED?U=100:(ne=P.initialWagerRequirementAmount,ne!=0&&(U=((P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount)/ne*100).toFixed(2))),Number(U)},Rt=P=>{if(!P.wallet)return"";const U=["freeBet","freeRound"].includes(P.type)?P.wallet[P.type]:P.wallet,{validityMinutes:ne,expiryTime:be}=U;if(ne===0)return be?An(new Date(be),"yyyy-MM-dd HH:mm:ss"):r("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${r(we===1?"bonusCard.day":"bonusCard.days")}`},Et=P=>{if(P.products)return P.products;{let U=[];return P.wallet&&(P.wallet.casino&&U.push("Casino"),P.wallet.sports&&U.push("Sports")),U}},$=(P,U)=>{const ne=r(`bonusType.${U.type}`),be=ba(U.amountCurrency||_.currency||f);return U.mode==="percentage"?`${U.bonusAmount*100}% ${r("bonusCard.upTo")} ${be}${U.capAmount} ${ne}`:U.mode==="fixed"?`${be}${U.bonusAmount} ${ne}`:ne},ye=(P,U)=>{const ne=Qe=>Qe===0?0:P.slice(0,Qe).reduce((ft,We)=>ft+We.maxRepeats,0),be=P[U],Te=ne(U)+1,Ge=Te+be.maxRepeats-1;return be.maxRepeats>1?`${Te}-${Ge}`:`${U+1}`},Zn=(P,U)=>{switch(U.type){case"standard":case"freeBet":return $(P,U);case"freeRound":return r("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return r("bonusCard.enrollTo",{values:{name:r(`bonusType.${U.type}`)}});default:return""}},Kn=P=>{var U,ne;return Number((ne=(U=P==null?void 0:P[f])!=null?U:P==null?void 0:P.EUR)!=null?ne:0)},oi=P=>{var be,we,Te,Ge;const U=Kn((Te=(we=(be=P.wallet)==null?void 0:be.standard)==null?void 0:we.initialAmount)==null?void 0:Te.fixedAmount),ne=((Ge=P.wallet)==null?void 0:Ge.wageringRequirementCoefficient)||0;return Number((U*ne).toFixed(2))},si=P=>{var be,we,Te;const U=(we=(be=P.wallet)==null?void 0:be.freeRound)==null?void 0:we.vendor;if(!U)return 0;const ne=Object.keys(U)[0];return((Te=U[ne])==null?void 0:Te.roundNumber)||0},ai=P=>P===void 0?"":An(new Date(P),"yyyy-MM-dd HH:mm:ss"),li=(P,U)=>{var Ge,Qe,ft;const ne=((Ge=P.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,be=U.length-1,we=((ft=(Qe=P.levels)==null?void 0:Qe[0])==null?void 0:ft.maxRepeats)===0,Te=We=>We.filter(fn=>fn.index>=0&&fn.index<=be||we).map(fn=>{const er=U[fn.index]||U[0];return{label:fn.label,desc:((er==null?void 0:er.bonuses)||[]).map(Ud=>Zn(er,Ud))}});switch(P.status){case oe.ACTIVE:return Te([{label:"current",index:ne},{label:"next",index:ne+1}]);case void 0:case null:case"":return Te([{label:"first",index:0},{label:"next",index:1}]);default:return Te([{label:"last",index:be},{label:"previous",index:be-1}])}},ui=P=>{var U,ne;t(20,H=P.url?P.url:(ne=(U=P.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Y=P=>{window.postMessage({type:"BonusGameAction",gameId:P.id,name:P.name,gameLaunchUrl:P.href},window.location.href)},Ae=P=>{t(21,M=!0),t(22,ie=P)},Ne=()=>{t(21,M=!1),t(22,ie=-1)},xt=P=>{fetch(`${d}/${o}/bonuses-information/${P}`).then(U=>U.json()).then(U=>{U&&U[P]&&(t(14,x=!0),t(16,j=U[P]))})},hn=(P,U)=>{const ne=document.createElement("div");ne.innerHTML=U,P.append(ne)},Nd=()=>t(24,ue+=300),Ld=P=>Y(P),Hd=P=>Ae(P),Jn=()=>Ne(),Qn=()=>t(24,ue-=300),Ft=()=>{t(11,A=!A)},Rd=()=>{t(12,y=!y)};function Fd(P){st[P?"unshift":"push"](()=>{Z=P,t(6,Z)})}return n.$$set=P=>{"rawbonus"in P&&t(45,i=P.rawbonus),"lang"in P&&t(46,o=P.lang),"status"in P&&t(0,s=P.status),"mbsource"in P&&t(1,a=P.mbsource),"clientstyling"in P&&t(2,l=P.clientstyling),"clientstylingurl"in P&&t(3,u=P.clientstylingurl),"cmsendpoint"in P&&t(47,d=P.cmsendpoint),"translationurl"in P&&t(48,c=P.translationurl),"levelcountlimit"in P&&t(4,h=P.levelcountlimit),"currency"in P&&t(49,f=P.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(s===oe.CLAIMABLE&&t(9,v=!0),s===oe.ACTIVE&&t(9,v=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,q=!!(i&&o&&s)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&i&&o&&s&&se(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&q&&_&&(o&&eu(o),d?xt(_.bonusId||_.id):ui(_)),n.$$.dirty[0]&68&&l&&Z&&Yr(Z,l),n.$$.dirty[0]&72&&u&&Z&&qr(Z,u),n.$$.dirty[0]&66&&a&&Z&&Xr(Z,`${a}.Style`,J),n.$$.dirty[1]&131072&&c&&ae()},[s,a,l,u,h,_,Z,b,w,v,g,A,y,S,x,F,j,G,R,I,H,M,ie,ge,ue,r,C,B,pe,ct,ht,Je,Rt,Et,ye,Zn,Kn,oi,si,ai,li,Y,Ae,Ne,hn,i,o,d,c,f,q,Nd,Ld,Hd,Jn,Qn,Ft,Rd,Fd]}class Fb extends Ur{constructor(e){super(),Rr(this,e,Rb,Hb,$n,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},cb,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",Fr(Fb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Ub({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>Vb(r)?$b({totalPages:i,limit:r,currentPage:t}):zb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:"&gt;",value:t>=i?i:t+1}]}function zb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function $b({totalPages:n,limit:e,currentPage:t}){const r=e*2+2,i=1+r,o=n-r,s=i+2;return t<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):t>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):t>=i-e&&t<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:t-e+(l-2)}:l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:t+e+1}:{type:"number",value:t-e+(l-2)}):[]}function Vb(n){return n*2+3+2}function Wb(n){Lr(n,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function el(n,e,t){const r=n.slice();return r[29]=e[t],r}const jb=n=>({}),tl=n=>({}),Gb=n=>({}),nl=n=>({}),Yb=n=>({}),rl=n=>({}),qb=n=>({value:n[0]&32}),il=n=>({value:n[29].value});function Xb(n){let e;const t=n[21].next,r=Vn(t,n,n[20],tl),i=r||Qb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,jb):Gn(o[20]),tl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Zb(n){let e;const t=n[21].prev,r=Vn(t,n,n[20],nl),i=r||ev();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,Gb):Gn(o[20]),nl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Kb(n){let e;const t=n[21].ellipsis,r=Vn(t,n,n[20],rl),i=r||tv();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,Yb):Gn(o[20]),rl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Jb(n){let e;const t=n[21].number,r=Vn(t,n,n[20],il),i=r||nv(n);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,qb):Gn(o[20]),il):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Qb(n){let e;return{c(){e=D(">")},m(t,r){N(t,e,r)},d(t){t&&O(e)}}}function ev(n){let e;return{c(){e=D("<")},m(t,r){N(t,e,r)},d(t){t&&O(e)}}}function tv(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function nv(n){let e,t=n[29].value+"",r;return{c(){e=E("span"),r=D(t)},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&32&&t!==(t=i[29].value+"")&&fe(r,t)},d(i){i&&O(e)}}}function ol(n){let e,t,r,i,o,s,a,l;const u=[Jb,Kb,Zb,Xb],d=[];function c(f,_){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(t=c(n))&&(r=d[t]=u[t](n));function h(){return n[22](n[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1,m(e,"class","option"),m(e,"role","presentation"),le(e,"number",n[29].type==="number"),le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),le(e,"active",n[29].type==="number"&&n[29].value===n[1])},m(f,_){N(f,e,_),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Pe(e,"click",h),a=!0)},p(f,_){n=f;let b=t;t=c(n),t===b?~t&&d[t].p(n,_):(r&&(Tl(),ut(d[b],1,1,()=>{d[b]=null}),Pl()),~t?(r=d[t],r?r.p(n,_):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||_[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1))&&(e.disabled=o),(!s||_[0]&32)&&le(e,"number",n[29].type==="number"),(!s||_[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),(!s||_[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),(!s||_[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),(!s||_[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||_[0]&34)&&le(e,"active",n[29].type==="number"&&n[29].value===n[1])},i(f){s||(Ze(r),s=!0)},o(f){ut(r),s=!1},d(f){f&&O(e),~t&&d[t].d(),a=!1,l()}}}function sl(n){let e,t,r,i,o,s,a,l;return{c(){e=E("div"),t=E("span"),t.textContent="Go To Page",r=z(),i=E("input"),o=z(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),vr(i,n[3]),p(e,o),p(e,s),a||(l=[Pe(i,"input",n[23]),Pe(i,"change",n[24]),Pe(s,"click",n[25])],a=!0)},p(u,d){d[0]&8&&Al(i.value)!==u[3]&&vr(i,u[3])},d(u){u&&O(e),a=!1,qe(l)}}}function rv(n){let e,t,r,i,o,s,a=Re(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=ol(el(n,a,c));const u=c=>ut(l[c],1,1,()=>{l[c]=null});let d=n[7]&&sl(n);return{c(){e=E("div"),t=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(t,"class",r="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(t,"part",i="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){N(c,e,h),p(e,t);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null);p(e,o),d&&d.m(e,null),n[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Re(c[5]);let f;for(f=0;f<a.length;f+=1){const _=el(c,a,f);l[f]?(l[f].p(_,h),Ze(l[f],1)):(l[f]=ol(_),l[f].c(),Ze(l[f],1),l[f].m(t,null))}for(Tl(),f=a.length;f<l.length;f+=1)u(f);Pl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"part",i),c[7]?d?d.p(c,h):(d=sl(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ze(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)ut(l[h]);s=!1},d(c){c&&O(e),yt(l,c),d&&d.d(),n[26](null)}}}function iv(n,e,t){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:_=""}=e,{mbsource:b}=e,{clientstyling:w=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,A,y=!1,S;au(g)&&(y=!0);let x,F,j;const G=M=>{window.postMessage({type:"PaginationChange",page:M.value})},R=M=>{t(4,F=M>a?a:M)};Hr(()=>()=>{});const I=M=>G(M);function V(){x=Al(this.value),t(3,x)}const Z=()=>R(x),J=()=>G({value:F});function H(M){st[M?"unshift":"push"](()=>{S=M,t(0,S)})}return n.$$set=M=>{"totalitems"in M&&t(10,d=M.totalitems),"pagesize"in M&&t(11,c=M.pagesize),"currentpage"in M&&t(12,h=M.currentpage),"limit"in M&&t(13,f=M.limit),"showinput"in M&&t(14,_=M.showinput),"mbsource"in M&&t(15,b=M.mbsource),"clientstyling"in M&&t(16,w=M.clientstyling),"clientstylingurl"in M&&t(17,v=M.clientstylingurl),"$$scope"in M&&t(20,u=M.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&w&&S&&Yr(S,w),n.$$.dirty[0]&131073&&v&&S&&qr(S,v),n.$$.dirty[0]&32769&&b&&S&&Xr(S,`${b}.Style`,A),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=_),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=Ub({totalItems:r,pageSize:s,currentPage:o,limit:f})),n.$$.dirty[0]&786432&&t(6,a=Math.ceil(r/s))},[S,o,y,x,F,j,a,i,G,R,d,c,h,f,_,b,w,v,s,r,u,l,I,V,Z,J,H]}class ov extends Ur{constructor(e){super(),Rr(this,e,iv,rv,$n,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Wb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",Fr(ov,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function ii(t){return Ue(this,arguments,function*(n,e={}){const r=typeof n=="string"?n:n.toString(),i=yield fetch(r,e);let o=null;try{o=yield i.json()}catch(a){o=null}if(i.ok&&o)return o;const s={success:!1,errorMessage:typeof(o==null?void 0:o.errorMessage)=="string"&&o.errorMessage.trim()?o.errorMessage:i.statusText||String(i.status),errorCode:typeof(o==null?void 0:o.errorCode)=="number"?o.errorCode:void 0};return pt(pt({},o||{}),s)})}function sv(n,e,t){return Ue(this,null,function*(){const r=`${n}${ri.CLAIM}`;return ii(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function av(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),ii(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function lv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ii(r,{headers:i})})}function uv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ii(r,{headers:i})})}function dv(n){Lr(n,"svelte-1i2lkdw",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #e6e6e6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586b));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #ffffff));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00aeef))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #ffffff));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53b65a));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6d6d6d));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #ffffff));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #ffffff));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4e5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9c9c9c));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #ffffff));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #f39c12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#f4f4f4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #fd2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #d1d1d1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #c1c1c1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #ffffff))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00aeef);background:var(--emw--color-primary-50, #fbecf4);color:var(--emw--color-primary, #00aeef)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #fd2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #ffffff));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00aeef));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #f9f8f8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586b));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586b));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));color:var(--emw--bonus-modal-text, var(--emw--color-white, #ffffff))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function al(n,e,t){const r=n.slice();return r[63]=e[t],r}function ll(n,e,t){const r=n.slice();return r[66]=e[t],r}function ul(n){let e,t=n[29](`bonusCard.${n[66]}`)+"",r,i,o,s,a=[{type:"button"},n[28]("BonusStatusFilter"),{disabled:n[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return n[43](n[66])}return{c(){e=E("button"),r=D(t),i=z(),T(e,l),le(e,"active",n[66]===n[25])},m(d,c){N(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Pe(e,"click",u),o=!0)},p(d,c){n=d,c[0]&536870912&&t!==(t=n[29](`bonusCard.${n[66]}`)+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[{type:"button"},c[0]&268435456&&n[28]("BonusStatusFilter"),c[0]&8192&&{disabled:n[13]}])),le(e,"active",n[66]===n[25])},d(d){d&&O(e),o=!1,s()}}}function cv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,_,b,w,v=n[29]("bonus.to")+"",g,A,y,S,x,F=n[29]("bonus.filter")+"",j,G,R,I,V=[L("BonusCalendarTitle")],Z={};for(let X=0;X<V.length;X+=1)Z=k(Z,V[X]);let J=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],H={};for(let X=0;X<J.length;X+=1)H=k(H,J[X]);let M=[n[28]("BonusCalendarStartDate")],ie={};for(let X=0;X<M.length;X+=1)ie=k(ie,M[X]);let ge=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],ue={};for(let X=0;X<ge.length;X+=1)ue=k(ue,ge[X]);let q=[n[28]("BonusCalendarEndDate")],ae={};for(let X=0;X<q.length;X+=1)ae=k(ae,q[X]);let K=[n[28]("BonusCalendarContainer")],se={};for(let X=0;X<K.length;X+=1)se=k(se,K[X]);let Q=[n[28]("BonusFilterButton"),{disabled:G=n[13]||n[21]}],ee={};for(let X=0;X<Q.length;X+=1)ee=k(ee,Q[X]);let C=[L("BonusCalendarContent")],B={};for(let X=0;X<C.length;X+=1)B=k(B,C[X]);let pe=[n[28]("BonusCalendarWrapper")],Oe={};for(let X=0;X<pe.length;X+=1)Oe=k(Oe,pe[X]);return{c(){e=E("div"),t=E("div"),i=D(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=D(d),h=z(),f=E("vaadin-date-picker"),_=z(),b=E("div"),w=E("label"),g=D(v),A=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=D(F),T(t,Z),m(u,"for","BonusCalendarStartDate"),T(f,H),T(l,ie),m(w,"for","BonusCalendarEndDate"),T(y,ue),T(b,ae),T(a,se),T(x,ee),T(s,B),T(e,Oe)},m(X,W){N(X,e,W),p(e,t),p(t,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),n[46](f),p(a,_),p(a,b),p(b,w),p(w,g),p(b,A),p(b,y),n[47](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),R||(I=[Pe(f,"validated",n[37]),Pe(y,"validated",n[37]),Pe(x,"click",n[48])],R=!0)},p(X,W){W[0]&536870912&&r!==(r=X[29]("bonus.canlendarTitle")+"")&&re(i,r,Z.contenteditable),W[0]&536870912&&d!==(d=X[29]("bonus.from")+"")&&fe(c,d),T(f,H=ke(J,[{min:X[30]},{max:X[31]},W[0]&8388608&&{value:X[23]},{placeholder:"From"},L("VaadinDatePicker")])),T(l,ie=ke(M,[W[0]&268435456&&X[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=X[29]("bonus.to")+"")&&fe(g,v),T(y,ue=ke(ge,[{min:X[30]},{max:X[31]},W[0]&16777216&&{value:X[24]},{placeholder:"To"},L("VaadinDatePicker")])),T(b,ae=ke(q,[W[0]&268435456&&X[28]("BonusCalendarEndDate")])),T(a,se=ke(K,[W[0]&268435456&&X[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=X[29]("bonus.filter")+"")&&re(j,F,ee.contenteditable),T(x,ee=ke(Q,[W[0]&268435456&&X[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=X[13]||X[21])&&{disabled:G}])),T(e,Oe=ke(pe,[W[0]&268435456&&X[28]("BonusCalendarWrapper")]))},d(X){X&&O(e),n[46](null),n[47](null),R=!1,qe(I)}}}function hv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,_,b,w,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],A={};for(let I=0;I<g.length;I+=1)A=k(A,g[I]);let y=[n[28]("BonusClaimButton"),{disabled:_=n[19]||!n[26]}],S={};for(let I=0;I<y.length;I+=1)S=k(S,y[I]);let x=[n[28]("BonusCodeWrapper")],F={};for(let I=0;I<x.length;I+=1)F=k(F,x[I]);let j=n[20]&&dl(n),G=[n[28]("BonusCodeContainer")],R={};for(let I=0;I<G.length;I+=1)R=k(R,G[I]);return{c(){e=E("div"),t=E("label"),r=E("span"),r.textContent="*",o=D(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=D(h),b=z(),j&&j.c(),m(r,"class","Asterisk"),m(t,"for","BonusCode"),T(l,A),T(c,S),T(a,F),T(e,R)},m(I,V){N(I,e,V),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),vr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,b),j&&j.m(e,null),w||(v=[Pe(l,"input",n[44]),Pe(l,"keyup",n[36]),Pe(c,"click",n[45])],w=!0)},p(I,V){V[0]&536870912&&i!==(i=I[29]("bonus.bonusCode")+"")&&fe(o,i),T(l,A=ke(g,[V[0]&268435456&&I[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},V[0]&536870912&&u!==(u=I[29]("bonus.placeholder"))&&{placeholder:u}])),V[0]&262144&&l.value!==I[18]&&vr(l,I[18]),V[0]&536870912&&h!==(h=I[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),T(c,S=ke(y,[V[0]&268435456&&I[28]("BonusClaimButton"),V[0]&67633152&&_!==(_=I[19]||!I[26])&&{disabled:_}])),T(a,F=ke(x,[V[0]&268435456&&I[28]("BonusCodeWrapper")])),I[20]?j?j.p(I,V):(j=dl(I),j.c(),j.m(e,null)):j&&(j.d(1),j=null),T(e,R=ke(G,[V[0]&268435456&&I[28]("BonusCodeContainer")]))},d(I){I&&O(e),j&&j.d(),w=!1,qe(v)}}}function dl(n){let e,t=n[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=D(t),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.invalidBonusCode")+"")&&fe(r,t)},d(i){i&&O(e)}}}function fv(n){let e,t;function r(a,l){return a[12].length>0?gv:a[14]?_v:mv}let i=r(n),o=i(n),s=n[12].length!==0&&hl(n);return{c(){o.c(),e=z(),s&&s.c(),t=nt()},m(a,l){o.m(a,l),N(a,e,l),s&&s.m(a,l),N(a,t,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=hl(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(a){a&&(O(e),O(t)),o.d(a),s&&s.d(a)}}}function pv(n){let e,t=[L("ModalLoader")],r={};for(let i=0;i<t.length;i+=1)r=k(r,t[i]);return{c(){e=E("div"),T(e,r)},m(i,o){N(i,e,o)},p:Me,d(i){i&&O(e)}}}function mv(n){let e,t=n[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=D(t),m(e,"class","NoBonus")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.noBonus")+"")&&fe(r,t)},d(i){i&&O(e)}}}function _v(n){let e,t=n[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=D(t),i=D(": "),o=D(n[14]),m(e,"class","BonusError")},m(s,a){N(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&t!==(t=s[29]("bonus.error")+"")&&fe(r,t),a[0]&16384&&fe(o,s[14])},d(s){s&&O(e)}}}function gv(n){let e,t=Re(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=cl(al(n,t,s));let i=[L("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();T(e,o)},m(s,a){N(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){t=Re(s[12]);let l;for(l=0;l<t.length;l+=1){const u=al(s,t,l);r[l]?r[l].p(u,a):(r[l]=cl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(s){s&&O(e),yt(r,s)}}}function cl(n){let e,t,r,i=[{rawbonus:JSON.stringify(n[63]),status:n[25],cmsendpoint:n[3],lang:n[0],clientstyling:n[5],clientstylingurl:n[6],mbsource:n[4],translationurl:n[7],levelcountlimit:n[8],currency:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[n[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),t=E("casino-bonus-card"),r=z(),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(e,r)},p(l,u){T(t,o=ke(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[63]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),T(e,a=ke(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&O(e)}}}function hl(n){let e;return{c(){e=E("casino-bonus-pagination"),$e(e,"totalitems",n[16]),$e(e,"currentpage",n[15]),$e(e,"pagesize",n[2]),$e(e,"limit",n[17]),$e(e,"clientstyling",n[5]),$e(e,"clientstylingurl",n[6]),$e(e,"mbsource",n[4])},m(t,r){N(t,e,r)},p(t,r){r[0]&65536&&$e(e,"totalitems",t[16]),r[0]&32768&&$e(e,"currentpage",t[15]),r[0]&4&&$e(e,"pagesize",t[2]),r[0]&131072&&$e(e,"limit",t[17]),r[0]&32&&$e(e,"clientstyling",t[5]),r[0]&64&&$e(e,"clientstylingurl",t[6]),r[0]&16&&$e(e,"mbsource",t[4])},d(t){t&&O(e)}}}function fl(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,_=n[29]("bonus.forfeitConfirm")+"",b,w,v,g=[L("ModalText")],A={};for(let M=0;M<g.length;M+=1)A=k(A,g[M]);let y=[L("ModalCancel")],S={};for(let M=0;M<y.length;M+=1)S=k(S,y[M]);let x=[L("ModalConfirm")],F={};for(let M=0;M<x.length;M+=1)F=k(F,x[M]);let j=[L("ModalButtons")],G={};for(let M=0;M<j.length;M+=1)G=k(G,j[M]);let R=[L("ModalBody")],I={};for(let M=0;M<R.length;M+=1)I=k(I,R[M]);let V=[L("ModalContent")],Z={};for(let M=0;M<V.length;M+=1)Z=k(Z,V[M]);let J=[n[28]("ModalWrapper")],H={};for(let M=0;M<J.length;M+=1)H=k(H,J[M]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),s=D(o),a=z(),l=E("div"),u=E("button"),c=D(d),h=z(),f=E("button"),b=D(_),T(i,A),T(u,S),T(f,F),T(l,G),T(r,I),T(t,Z),T(e,H)},m(M,ie){N(M,e,ie),p(e,t),p(t,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,b),f.autofocus&&f.focus(),w||(v=[Pe(u,"click",n[34]),Pe(f,"click",n[49])],w=!0)},p(M,ie){ie[0]&536870912&&o!==(o=M[29]("bonus.forfeitMessage")+"")&&re(s,o,A.contenteditable),ie[0]&536870912&&d!==(d=M[29]("bonus.forfeitCancel")+"")&&re(c,d,S.contenteditable),ie[0]&536870912&&_!==(_=M[29]("bonus.forfeitConfirm")+"")&&re(b,_,F.contenteditable),T(e,H=ke(J,[ie[0]&268435456&&M[28]("ModalWrapper")]))},d(M){M&&O(e),w=!1,qe(v)}}}function bv(n){let e,t,r,i,o,s,a=Re(_a),l=[];for(let y=0;y<a.length;y+=1)l[y]=ul(ll(n,a,y));let u=[n[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]===oe.CLAIMABLE)return hv;if(y[25]===oe.COMPLETED)return cv}let h=c(n),f=h&&h(n);function _(y,S){return y[13]?pv:fv}let b=_(n),w=b(n),v=n[22]&&fl(n),g=[L("BonusesController")],A={};for(let y=0;y<g.length;y+=1)A=k(A,g[y]);return{c(){e=E("div"),t=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),w.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),T(t,d),T(e,A)},m(y,S){N(y,e,S),p(e,t),p(t,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),w.m(e,null),p(e,s),v&&v.m(e,null),n[50](e)},p(y,S){if(S[0]&838868992|S[1]&16){a=Re(_a);let x;for(x=0;x<a.length;x+=1){const F=ll(y,a,x);l[x]?l[x].p(F,S):(l[x]=ul(F),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}T(t,d=ke(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),b===(b=_(y))&&w?w.p(y,S):(w.d(1),w=b(y),w&&(w.c(),w.m(e,s))),y[22]?v?v.p(y,S):(v=fl(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Me,o:Me,d(y){y&&O(e),yt(l,y),f&&f.d(),w.d(),v&&v.d(),n[50](null)}}}function vv(n,e,t){let r,i,o;Cl(n,Ql,Y=>t(29,o=Y));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:b=""}=e,{levelcountlimit:w="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,A=!1,y=[],S=!0,x="",F="",j=1,G=0,R=2,I=An(Ss(new Date,Jg),"yyyy-MM-dd"),V=An(new Date,"yyyy-MM-dd"),Z=An(Ss(new Date,Qg),"yyyy-MM-dd"),J,H,M="",ie=!0,ge=!1,ue=!1,q=!1,ae=Z,K=V,se,Q,ee=oe.ACTIVE,C=!0,B="";au(g)&&(A=!0,R=1);const pe=()=>{fetch(b).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(Ne=>{Er(Ne,Ae[Ne])})}).catch(Ae=>{console.log(Ae)})};Object.keys(xr).forEach(Y=>{Er(Y,xr[Y])}),Hr(()=>(window.addEventListener("message",Oe,!1),()=>{se==null||se.removeEventListener("change",ht),Q==null||Q.removeEventListener("change",Je),window.removeEventListener("message",Oe)}));const Oe=Y=>{switch(Y.data.type){case"PaginationChange":t(15,j=Y.data.page),Fe(j);break;case"OnBonusClaimed":W(Y.data.bonusCode);break;case"OnBonusForfeit":t(27,B=Y.data.bonus.id),t(22,q=!0);break}},X=()=>Ue(this,null,function*(){Fe(1)}),W=(Y,Ae)=>Ue(this,null,function*(){t(26,C=!1);const Ne=yield sv(s,l,{bonusCode:Y,currency:u});if(!Ne.success){F=Ne.errorMessage||"",Ae?t(20,ge=!0):window.postMessage({type:"OnBonusClaimError",message:F,bonusCode:Y}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,C=!0);return}t(20,ge=!1),Fe(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,C=!0)}),xe=Y=>Ue(this,null,function*(){t(26,C=!1);const Ae=yield av(s,l,{bonusWalletID:Y});if(!Ae.success){t(14,x=Ae.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,C=!0),t(22,q=!1);return}Fe(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,C=!0),t(22,q=!1)}),Ce=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,q=!1)},Fe=Y=>Ue(this,null,function*(){j!==Y&&t(15,j=Y);const Ae=(Y-1)*Number(d);t(13,S=!0),t(12,y=[]);const Ne=yield ct(s,l,Ae,{lang:a,limit:d});if(!Ne.success){t(14,x=Ne.errorMessage),t(13,S=!1);return}const{list:xt,total:hn}=ab(Ne);t(16,G=hn),t(12,y=xt),t(13,S=!1)}),ct=(hn,Nd,Ld,...Hd)=>Ue(this,[hn,Nd,Ld,...Hd],function*(Y,Ae,Ne,xt={}){const{limit:Jn="",lang:Qn=a}=xt;switch(ee){case oe.CLAIMABLE:{const Ft={pagination:`limit=${Jn},offset=${Ne}`,language:Qn};return v===!0&&(Ft.selectable=v),yield uv(Y,Ae,Ft)}default:{const Ft=db({limit:Jn,language:Qn,offset:Ne,bonusStatus:ee,bonusCalendarStartDate:ae,bonusCalendarEndDate:K,invalidDate:ue,lastMonth:Z,maxDate:V});return yield lv(Y,Ae,Ft)}}}),ht=Y=>{t(23,ae=Y.target.value)},Je=Y=>{t(24,K=Y.target.value)},Rt=()=>{se.removeEventListener("change",ht),Q.removeEventListener("change",Je),se.addEventListener("change",ht,!1),Q.addEventListener("change",Je,!1)},Et=()=>{t(20,ge=!1),t(19,ie=!lb(M))},$=Y=>{const{valid:Ae}=Y.detail,{start:Ne,end:xt}=sb(ae,K);t(23,ae=Ne),t(24,K=xt);const hn=ub(ae,K,Ae);t(21,ue=hn.invalidDate)},ye=Y=>{t(25,ee=Y),Fe(1)};function Zn(){M=this.value,t(18,M)}const Kn=()=>{W(M,!0)};function oi(Y){st[Y?"unshift":"push"](()=>{se=Y,t(10,se)})}function si(Y){st[Y?"unshift":"push"](()=>{Q=Y,t(11,Q)})}const ai=()=>Fe(1),li=()=>xe(B);function ui(Y){st[Y?"unshift":"push"](()=>{J=Y,t(9,J)})}return n.$$set=Y=>{"endpoint"in Y&&t(38,s=Y.endpoint),"lang"in Y&&t(0,a=Y.lang),"session"in Y&&t(39,l=Y.session),"currency"in Y&&t(1,u=Y.currency),"limit"in Y&&t(2,d=Y.limit),"cmsendpoint"in Y&&t(3,c=Y.cmsendpoint),"mbsource"in Y&&t(4,h=Y.mbsource),"clientstyling"in Y&&t(5,f=Y.clientstyling),"clientstylingurl"in Y&&t(6,_=Y.clientstylingurl),"translationurl"in Y&&t(7,b=Y.translationurl),"levelcountlimit"in Y&&t(8,w=Y.levelcountlimit),"onlyoneclick"in Y&&t(40,v=Y.onlyoneclick)},n.$$.update=()=>{n.$$.dirty[0]&3072&&se&&Q&&Rt(),n.$$.dirty[1]&1024&&t(28,r=(Y,Ae="")=>L(`${Y}${A?` ${Y}Mobile`:""}`,Ae)),n.$$.dirty[0]&1&&a&&eu(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(42,i=s&&l&&a&&d),n.$$.dirty[1]&2048&&i&&X(),n.$$.dirty[0]&544&&f&&J&&Yr(J,f),n.$$.dirty[0]&576&&_&&J&&qr(J,_),n.$$.dirty[0]&528&&h&&J&&Xr(J,`${h}.Style`,H),n.$$.dirty[0]&128&&b&&pe()},[a,u,d,c,h,f,_,b,w,J,se,Q,y,S,x,j,G,R,M,ie,ge,ue,q,ae,K,ee,C,B,r,o,I,V,W,xe,Ce,Fe,Et,$,s,l,v,A,i,ye,Zn,Kn,oi,si,ai,li,ui]}class Id extends Ur{constructor(e){super(),Rr(this,e,vv,bv,$n,{endpoint:38,lang:0,session:39,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8,onlyoneclick:40},dv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),de()}}Fr(Id,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Id;
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $g(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Wg(this.inputElement,this._labelController)),this._tooltipController=new md(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}rt(Qg);const oe={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},ba=[oe.ACTIVE,oe.COMPLETED,oe.CLAIMABLE],oi={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},eb=6,tb=3,Ld=["standard","freeBet","freeRound","cashBack","stakeBack","oddsBoost","wagering"],Hr={TYPES:Ld.join(","),STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function nb(n){Rr(n,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function rb(n){let e,t,r;return{c(){e=E("span"),t=M(n[0]),r=M(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){L(i,e,o),p(e,t),p(e,r)},p(i,o){o&1&&pe(t,i[0])},d(i){i&&I(e)}}}function ib(n){let e,t,r,i,o,s,a,l,u;const d=n[10].default,c=Vn(d,n,n[9],null),h=c||rb(n);return{c(){e=E("div"),t=te("svg"),r=te("circle"),i=te("circle"),s=te("circle"),a=z(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",n[5]),m(i,"stroke-dashoffset",o=n[4]()),le(i,"Completed",n[1]===oe.COMPLETED),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),le(s,"Completed",n[1]===oe.COMPLETED),m(t,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,_){L(f,e,_),p(e,t),p(t,r),p(t,i),n[11](i),p(t,s),p(e,a),p(e,l),h&&h.m(l,null),n[12](e),u=!0},p(f,[_]){(!u||_&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||_&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||_&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||_&512)&&Wn(c,d,f,f[9],u?$n(d,f[9],_,null):jn(f[9]),null):h&&h.p&&(!u||_&1)&&h.p(f,u?_:-1)},i(f){u||(Ke(h,f),u=!0)},o(f){ct(h,f),u=!1},d(f){f&&I(e),n[11](null),h&&h.d(f),n[12](null)}}}let va=64.5;function ob(n,e,t){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(va*2),f,_;Fr(()=>()=>{});function b(v){lt[v?"unshift":"push"](()=>{c=v,t(3,c)})}function w(v){lt[v?"unshift":"push"](()=>{f=v,t(2,f)})}return n.$$set=v=>{"value"in v&&t(0,s=v.value),"status"in v&&t(1,a=v.status),"mbsource"in v&&t(6,l=v.mbsource),"clientstyling"in v&&t(7,u=v.clientstyling),"clientstylingurl"in v&&t(8,d=v.clientstylingurl),"$$scope"in v&&t(9,o=v.$$scope)},n.$$.update=()=>{n.$$.dirty&132&&u&&f&&Xr(f,u),n.$$.dirty&260&&d&&f&&Zr(f,d),n.$$.dirty&68&&l&&f&&Kr(f,`${l}.Style`,_),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(va*2);return s<0&&t(0,s=0),s>100&&t(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,b,w]}class sb extends Vr{constructor(e){super(),Ur(this,e,ob,ib,zn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},nb)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",zr(sb,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ya=n=>ab[n],ab={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function lb(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ub(n){return typeof n!="string"||!n.trim()?[]:n.split(",").map(e=>e.trim()).filter(Boolean)}function Hd(n=[]){if(!n.length)return Hr.TYPES;const e=new Set(n.map(r=>r.toLowerCase())),t=Ld.filter(r=>!e.has(r.toLowerCase()));return t.length>0?t.join(","):Hr.TYPES}function db(n){var r,i,o;const e=(i=(r=n.items)!=null?r:n.bonuses)!=null?i:[],t=(o=n.total)!=null?o:0;return{list:Array.isArray(e)?e:[],total:t}}function cb(n){return typeof n=="string"&&n.trim().length>0}function hb(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function fb(n){const{limit:e,language:t,offset:r,bonusStatus:i,bonusCalendarStartDate:o,bonusCalendarEndDate:s,invalidDate:a,lastMonth:l,maxDate:u,excludedTypes:d=[]}=n,c=Hd(d),h={pagination:`limit=${e},offset=${r}`,language:t,sortOrder:"desc",expand:"freeSpin"};switch(i){case oe.COMPLETED:{const f=o!==""&&!a?o:l,_=s!==""&&!a?s:u,b=new Date(_);b.setUTCHours(23,59,59),h.startTime=new Date(f).toISOString(),h.endTime=b.toISOString(),h.type=c,h.status=Hr.STATUS_COMPLETED;break}case oe.ACTIVE:h.type=c,h.status=Hr.STATUS_ACTIVE;break}return h}function H(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function pb(n){Rr(n,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function wa(n,e,t){const r=n.slice();return r[82]=e[t],r[84]=t,r}function Ca(n,e,t){const r=n.slice();return r[85]=e[t],r}function Ea(n,e,t){const r=n.slice();return r[76]=e[t],r}function xa(n,e,t){const r=n.slice();return r[79]=e[t],r}function Ta(n,e,t){const r=n.slice();return r[88]=e[t],r[90]=t,r}function Aa(n){var J;let e,t,r,i,o,s=n[33](n[5]).indexOf("Casino")>-1,a,l=n[33](n[5]).indexOf("Sports")>-1,u,d=(n[5].name||((J=n[5].presentation)==null?void 0:J.name.content))+"",c,h,f,_,b,w,v,g=s&&Pa(),T=l&&Sa(),y=[H("TitleIcon")],S={};for(let C=0;C<y.length;C+=1)S=k(S,y[C]);let x=[H("BonusCardRowTitle")],R={};for(let C=0;C<x.length;C+=1)R=k(R,x[C]);function G(C,D){if(C[0]===oe.ACTIVE)return _b;if(C[0]===oe.COMPLETED)return mb}let j=G(n),F=j&&j(n),O=[H("BonusCardHeader")],$={};for(let C=0;C<O.length;C+=1)$=k($,O[C]);let X=gb(n),ne=n[10]&&$a(n);function B(C,D){return C[14]?Hb:Lb}let N=B(n),re=N(n),be=[H("BonusCardFooter")],ue={};for(let C=0;C<be.length;C+=1)ue=k(ue,be[C]);let Z=[H("BonusCardInfo")],ae={};for(let C=0;C<Z.length;C+=1)ae=k(ae,Z[C]);let K=n[9]&&Ja(n),se=[H("BonusCard")],Q={};for(let C=0;C<se.length;C+=1)Q=k(Q,se[C]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),T&&T.c(),u=z(),c=M(d),h=z(),F&&F.c(),f=z(),X&&X.c(),_=z(),b=E("div"),ne&&ne.c(),w=z(),re.c(),v=z(),K&&K.c(),P(o,S),P(i,R),P(r,$),P(b,ue),le(b,"Active",n[11]||n[12]),P(t,ae),P(e,Q)},m(C,D){L(C,e,D),p(e,t),p(t,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),T&&T.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(t,f),X&&X.m(t,null),p(t,_),p(t,b),ne&&ne.m(b,null),p(b,w),re.m(b,null),p(e,v),K&&K.m(e,null),n[58](e)},p(C,D){var ce;D[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g||(g=Pa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),D[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?T||(T=Sa(),T.c(),T.m(o,null)):T&&(T.d(1),T=null),D[0]&32&&d!==(d=(C[5].name||((ce=C[5].presentation)==null?void 0:ce.name.content))+"")&&ie(c,d,R.contenteditable),j===(j=G(C))&&F?F.p(C,D):(F&&F.d(1),F=j&&j(C),F&&(F.c(),F.m(r,null))),X.p(C,D),C[10]?ne?ne.p(C,D):(ne=$a(C),ne.c(),ne.m(b,w)):ne&&(ne.d(1),ne=null),N===(N=B(C))&&re?re.p(C,D):(re.d(1),re=N(C),re&&(re.c(),re.m(b,null))),D[0]&6144&&le(b,"Active",C[11]||C[12]),C[9]?K?K.p(C,D):(K=Ja(C),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(C){C&&I(e),g&&g.d(),T&&T.d(),F&&F.d(),X&&X.d(),ne&&ne.d(),re.d(),K&&K.d(),n[58](null)}}}function Pa(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,_=[H("CasinoIcon"),{viewBox:"0 0 41 41"}],b={};for(let w=0;w<_.length;w+=1)b=k(b,_[w]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=te("path"),h=te("circle"),f=te("circle"),m(t,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(t,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),Al(e,b)},m(w,v){L(w,e,v),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},d(w){w&&I(e)}}}function Sa(n){let e,t,r,i,o,s,a=[H("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),m(t,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(t,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),Al(e,l)},m(u,d){L(u,e,d),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s)},d(u){u&&I(e)}}}function mb(n){let e,t=n[25](`bonusCard.${n[5].status}`)+"",r,i=[H("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=M(t),P(e,o)},m(s,a){L(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&t!==(t=s[25](`bonusCard.${s[5].status}`)+"")&&ie(r,t,o.contenteditable)},d(s){s&&I(e)}}}function _b(n){let e,t,r,i,o,s=[H("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),t=te("svg"),r=te("path"),i=z(),o=M(n[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(t,"width","24"),m(t,"height","28"),m(t,"viewBox","0 0 24 28"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg"),P(e,a)},m(l,u){L(l,e,u),p(e,t),p(t,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&ie(o,l[18],a.contenteditable)},d(l){l&&I(e)}}}function gb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?vb:bb}let o=i(n),s=o(n),a=[H("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(n[0]===oe.ACTIVE||n[0]===oe.COMPLETED)&&Ua(n),d=[H("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),t=E("div"),s.c(),r=z(),u&&u.c(),P(t,l),P(e,c)},m(h,f){L(h,e,f),p(e,t),s.m(t,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(t,null))),h[0]===oe.ACTIVE||h[0]===oe.COMPLETED?u?u.p(h,f):(u=Ua(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&I(e),s.d(),u&&u.d()}}}function bb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,_,b,w=n[25](`bonusType.${n[5].type}`)+"",v,g,T,y,S,x,R=[H("BonusCardLabel")],G={};for(let C=0;C<R.length;C+=1)G=k(G,R[C]);function j(C,D){return C[0]===oe.ACTIVE?wb:yb}let F=j(n),O=F(n),$=[H("BonusCardRowText")],X={};for(let C=0;C<$.length;C+=1)X=k(X,$[C]);let ne=[H("BonusCardRow")],B={};for(let C=0;C<ne.length;C+=1)B=k(B,ne[C]);let N=[H("BonusCardLabel")],re={};for(let C=0;C<N.length;C+=1)re=k(re,N[C]);let be=[H("BonusCardRowText","Type")],ue={};for(let C=0;C<be.length;C+=1)ue=k(ue,be[C]);let Z=[H("BonusCardRow")],ae={};for(let C=0;C<Z.length;C+=1)ae=k(ae,Z[C]);let K=n[5].type==="standard"&&ka(n),se=n[5].type==="freeBet"&&Da(n),Q=n[5].type==="freeRound"&&Ma(n),J=n[5].type==="wagering"&&Ia(n);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),O.c(),l=z(),u=E("p"),d=E("span"),h=M(c),f=M(":"),_=z(),b=E("span"),v=M(w),g=z(),K&&K.c(),T=z(),se&&se.c(),y=z(),Q&&Q.c(),S=z(),J&&J.c(),x=nt(),P(t,G),P(a,X),le(a,"StatusActive",n[0]===oe.ACTIVE),le(a,"StatusCompleted",n[0]===oe.COMPLETED),le(a,"StatusClaimable",n[0]===oe.CLAIMABLE),P(e,B),P(d,re),P(b,ue),P(u,ae)},m(C,D){L(C,e,D),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),O.m(a,null),L(C,l,D),L(C,u,D),p(u,d),p(d,h),p(d,f),p(u,_),p(u,b),p(b,v),L(C,g,D),K&&K.m(C,D),L(C,T,D),se&&se.m(C,D),L(C,y,D),Q&&Q.m(C,D),L(C,S,D),J&&J.m(C,D),L(C,x,D)},p(C,D){D[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&ie(i,r,G.contenteditable),F===(F=j(C))&&O?O.p(C,D):(O.d(1),O=F(C),O&&(O.c(),O.m(a,null))),D[0]&1&&le(a,"StatusActive",C[0]===oe.ACTIVE),D[0]&1&&le(a,"StatusCompleted",C[0]===oe.COMPLETED),D[0]&1&&le(a,"StatusClaimable",C[0]===oe.CLAIMABLE),D[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&ie(h,c,re.contenteditable),D[0]&33554464&&w!==(w=C[25](`bonusType.${C[5].type}`)+"")&&ie(v,w,ue.contenteditable),C[5].type==="standard"?K?K.p(C,D):(K=ka(C),K.c(),K.m(T.parentNode,T)):K&&(K.d(1),K=null),C[5].type==="freeBet"?se?se.p(C,D):(se=Da(C),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),C[5].type==="freeRound"?Q?Q.p(C,D):(Q=Ma(C),Q.c(),Q.m(S.parentNode,S)):Q&&(Q.d(1),Q=null),C[5].type==="wagering"?J?J.p(C,D):(J=Ia(C),J.c(),J.m(x.parentNode,x)):J&&(J.d(1),J=null)},d(C){C&&(I(e),I(l),I(u),I(g),I(T),I(y),I(S),I(x)),O.d(),K&&K.d(C),se&&se.d(C),Q&&Q.d(C),J&&J.d(C)}}}function vb(n){let e,t,r=n[25]("bonusCard.bonusType")+"",i,o,s,a,l=n[25](`bonusType.${n[5].type}`)+"",u,d,c,h,f,_,b,w,v=n[25]("bonusCard.validity")+"",g,T,y,S,x=n[32](n[5])+"",R,G,j,F,O=n[25]("bonusCard.validUntil")+"",$,X,ne,B,N=n[39](n[5].trigger.endTime)+"",re,be=[H("BonusCardLabel")],ue={};for(let V=0;V<be.length;V+=1)ue=k(ue,be[V]);let Z=[H("BonusCardRowText","Type")],ae={};for(let V=0;V<Z.length;V+=1)ae=k(ae,Z[V]);let K=[H("BonusCardRow")],se={};for(let V=0;V<K.length;V+=1)se=k(se,K[V]);let Q=n[5].type==="standard"&&La(n),J=n[5].type==="freeBet"&&Ha(n),C=n[5].type==="freeRound"&&Ra(n),D=n[5].type==="wagering"&&Fa(n),ce=[H("BonusCardLabel")],Me={};for(let V=0;V<ce.length;V+=1)Me=k(Me,ce[V]);let Y=[H("BonusCardRowText")],W={};for(let V=0;V<Y.length;V+=1)W=k(W,Y[V]);let xe=[H("BonusCardRow")],Ce={};for(let V=0;V<xe.length;V+=1)Ce=k(Ce,xe[V]);let Xe=[H("BonusCardLabel")],it={};for(let V=0;V<Xe.length;V+=1)it=k(it,Xe[V]);let Ht=[H("BonusCardRowText")],Fe={};for(let V=0;V<Ht.length;V+=1)Fe=k(Fe,Ht[V]);let Rt=[H("BonusCardRow")],ot={};for(let V=0;V<Rt.length;V+=1)ot=k(ot,Rt[V]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),Q&&Q.c(),c=z(),J&&J.c(),h=z(),C&&C.c(),f=z(),D&&D.c(),_=z(),b=E("p"),w=E("span"),g=M(v),T=M(":"),y=z(),S=E("span"),R=M(x),G=z(),j=E("p"),F=E("span"),$=M(O),X=M(":"),ne=z(),B=E("span"),re=M(N),P(t,ue),P(a,ae),P(e,se),P(w,Me),P(S,W),P(b,Ce),P(F,it),P(B,Fe),P(j,ot)},m(V,ye){L(V,e,ye),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),L(V,d,ye),Q&&Q.m(V,ye),L(V,c,ye),J&&J.m(V,ye),L(V,h,ye),C&&C.m(V,ye),L(V,f,ye),D&&D.m(V,ye),L(V,_,ye),L(V,b,ye),p(b,w),p(w,g),p(w,T),p(b,y),p(b,S),p(S,R),L(V,G,ye),L(V,j,ye),p(j,F),p(F,$),p(F,X),p(j,ne),p(j,B),p(B,re)},p(V,ye){ye[0]&33554432&&r!==(r=V[25]("bonusCard.bonusType")+"")&&ie(i,r,ue.contenteditable),ye[0]&33554464&&l!==(l=V[25](`bonusType.${V[5].type}`)+"")&&ie(u,l,ae.contenteditable),V[5].type==="standard"?Q?Q.p(V,ye):(Q=La(V),Q.c(),Q.m(c.parentNode,c)):Q&&(Q.d(1),Q=null),V[5].type==="freeBet"?J?J.p(V,ye):(J=Ha(V),J.c(),J.m(h.parentNode,h)):J&&(J.d(1),J=null),V[5].type==="freeRound"?C?C.p(V,ye):(C=Ra(V),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),V[5].type==="wagering"?D?D.p(V,ye):(D=Fa(V),D.c(),D.m(_.parentNode,_)):D&&(D.d(1),D=null),ye[0]&33554432&&v!==(v=V[25]("bonusCard.validity")+"")&&ie(g,v,Me.contenteditable),ye[0]&32&&x!==(x=V[32](V[5])+"")&&ie(R,x,W.contenteditable),ye[0]&33554432&&O!==(O=V[25]("bonusCard.validUntil")+"")&&ie($,O,it.contenteditable),ye[0]&32&&N!==(N=V[39](V[5].trigger.endTime)+"")&&ie(re,N,Fe.contenteditable)},d(V){V&&(I(e),I(d),I(c),I(h),I(f),I(_),I(b),I(G),I(j)),Q&&Q.d(V),J&&J.d(V),C&&C.d(V),D&&D.d(V)}}}function yb(n){let e=n[25](`bonusCard.${n[5].status}`)+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function wb(n){let e=n[25](`bonusCard.${n[0]}`)+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function ka(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,_=n[5].amount+"",b,w,v,g,T,y=n[25]("bonusCard.wageredAmount")+"",S,x,R,G,j=n[29](n[5])+n[17]+"",F,O,$=[H("BonusCardLabel")],X={};for(let D=0;D<$.length;D+=1)X=k(X,$[D]);let ne=[H("BonusCardRowText")],B={};for(let D=0;D<ne.length;D+=1)B=k(B,ne[D]);let N=[H("BonusCardRow")],re={};for(let D=0;D<N.length;D+=1)re=k(re,N[D]);let be=[H("BonusCardLabel")],ue={};for(let D=0;D<be.length;D+=1)ue=k(ue,be[D]);function Z(D,ce){return D[5].initialWagerRequirementAmount>=2147483647?Eb:Cb}let ae=Z(n),K=ae(n),se=[H("BonusCardRowText")],Q={};for(let D=0;D<se.length;D+=1)Q=k(Q,se[D]);let J=[H("BonusCardRow")],C={};for(let D=0;D<J.length;D+=1)C=k(C,J[D]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),h=M(` /
3573
+ `),f=E("span"),b=M(_),w=M(n[17]),v=z(),g=E("p"),T=E("span"),S=M(y),x=M(":"),R=z(),G=E("span"),F=M(j),O=M(` /
3574
+ `),K.c(),P(t,X),le(l,"BonusAmount",n[0]===oe.ACTIVE),le(f,"Amount",n[0]===oe.ACTIVE),P(a,B),P(e,re),P(T,ue),P(G,Q),P(g,C)},m(D,ce){L(D,e,ce),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,b),p(f,w),L(D,v,ce),L(D,g,ce),p(g,T),p(T,S),p(T,x),p(g,R),p(g,G),p(G,F),p(G,O),K.m(G,null)},p(D,ce){ce[0]&33554432&&r!==(r=D[25]("bonusCard.bonusAmount")+"")&&ie(i,r,X.contenteditable),ce[0]&32&&u!==(u=D[5].remainingAmount+"")&&pe(d,u),ce[0]&131072&&pe(c,D[17]),ce[0]&1&&le(l,"BonusAmount",D[0]===oe.ACTIVE),ce[0]&32&&_!==(_=D[5].amount+"")&&pe(b,_),ce[0]&131072&&pe(w,D[17]),ce[0]&1&&le(f,"Amount",D[0]===oe.ACTIVE),ce[0]&33554432&&y!==(y=D[25]("bonusCard.wageredAmount")+"")&&ie(S,y,ue.contenteditable),ce[0]&131104&&j!==(j=D[29](D[5])+D[17]+"")&&ie(F,j,Q.contenteditable),ae===(ae=Z(D))&&K?K.p(D,ce):(K.d(1),K=ae(D),K&&(K.c(),K.m(G,null)))},d(D){D&&(I(e),I(v),I(g)),K.d()}}}function Cb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Eb(n){let e;return{c(){e=M("∞")},m(t,r){L(t,e,r)},p:Be,d(t){t&&I(e)}}}function Da(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h=[H("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=[H("BonusCardRowText")],b={};for(let g=0;g<_.length;g+=1)b=k(b,_[g]);let w=[H("BonusCardRow")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),P(t,f),le(l,"BonusAmount",n[0]===oe.ACTIVE),P(a,b),P(e,v)},m(g,T){L(g,e,T),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,T){T[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&ie(i,r,f.contenteditable),T[0]&32&&u!==(u=g[5].remainingAmount+"")&&pe(d,u),T[0]&131072&&pe(c,g[17]),T[0]&1&&le(l,"BonusAmount",g[0]===oe.ACTIVE)},d(g){g&&I(e)}}}function Ma(n){let e,t=n[5].status===oe.ACTIVE&&Ba(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),L(r,e,i)},p(r,i){r[5].status===oe.ACTIVE?t?t.p(r,i):(t=Ba(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&I(e),t&&t.d(r)}}}function Ba(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[5].numberOfFreeSpin+"",u,d,c,h,f=n[25]("bonusCard.game")+"",_,b,w,v,g,T,y,S,x,R,G,j,F,O,$,X,ne,B,N,re=[H("BonusCardLabel")],be={};for(let W=0;W<re.length;W+=1)be=k(be,re[W]);let ue=[H("BonusCardRowText")],Z={};for(let W=0;W<ue.length;W+=1)Z=k(Z,ue[W]);let ae=[H("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=k(K,ae[W]);let se=[H("BonusCardLabel")],Q={};for(let W=0;W<se.length;W+=1)Q=k(Q,se[W]);let J=Re(n[23]),C=[];for(let W=0;W<J.length;W+=1)C[W]=Oa(Ta(n,J,W));let D=[H("BonusCardRowText")],ce={};for(let W=0;W<D.length;W+=1)ce=k(ce,D[W]);let Me=[H("BonusCardRow")],Y={};for(let W=0;W<Me.length;W+=1)Y=k(Y,Me[W]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),c=E("div"),h=E("div"),_=M(f),b=M(":"),w=z(),v=E("div"),g=E("div"),T=E("button"),y=te("svg"),S=te("path"),R=z(),G=E("div"),j=E("span");for(let W=0;W<C.length;W+=1)C[W].c();F=z(),O=E("button"),$=te("svg"),X=te("path"),P(t,be),P(a,Z),P(e,K),P(h,Q),m(S,"stroke-linecap","round"),m(S,"stroke-linejoin","round"),m(S,"stroke-width","2"),m(S,"d","M15 19l-7-7 7-7"),m(y,"fill","none"),m(y,"stroke","currentColor"),m(y,"viewBox","0 0 24 24"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(T,"class","SliderNavButton"),m(T,"part","SliderNavButton"),T.disabled=x=n[24]==0,le(T,"Hide",n[23].length<=3),m(j,"class","Games"),is(j,"transform","translateX("+n[24]+"px)"),m(G,"class","Main"),m(X,"stroke-linecap","round"),m(X,"stroke-linejoin","round"),m(X,"stroke-width","2"),m(X,"d","M9 5l7 7-7 7"),m($,"fill","none"),m($,"stroke","currentColor"),m($,"viewBox","0 0 24 24"),m($,"xmlns","http://www.w3.org/2000/svg"),m(O,"class","SliderNavButton"),m(O,"part","SliderNavButton"),O.disabled=ne=n[24]<=-(n[23].length-3)*100,le(O,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),P(v,ce),P(c,Y)},m(W,xe){L(W,e,xe),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),L(W,d,xe),L(W,c,xe),p(c,h),p(h,_),p(h,b),p(c,w),p(c,v),p(v,g),p(g,T),p(T,y),p(y,S),p(g,R),p(g,G),p(G,j);for(let Ce=0;Ce<C.length;Ce+=1)C[Ce]&&C[Ce].m(j,null);p(g,F),p(g,O),p(O,$),p($,X),B||(N=[Ae(T,"click",n[51]),Ae(O,"click",n[55])],B=!0)},p(W,xe){if(xe[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&ie(i,r,be.contenteditable),xe[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&ie(u,l,Z.contenteditable),xe[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&ie(_,f,Q.contenteditable),xe[0]&16777216&&x!==(x=W[24]==0)&&(T.disabled=x),xe[0]&8388608&&le(T,"Hide",W[23].length<=3),xe[0]&48234496|xe[1]&7168){J=Re(W[23]);let Ce;for(Ce=0;Ce<J.length;Ce+=1){const Xe=Ta(W,J,Ce);C[Ce]?C[Ce].p(Xe,xe):(C[Ce]=Oa(Xe),C[Ce].c(),C[Ce].m(j,null))}for(;Ce<C.length;Ce+=1)C[Ce].d(1);C.length=J.length}xe[0]&16777216&&is(j,"transform","translateX("+W[24]+"px)"),xe[0]&25165824&&ne!==(ne=W[24]<=-(W[23].length-3)*100)&&(O.disabled=ne),xe[0]&8388608&&le(O,"Hide",W[23].length<=3)},d(W){W&&(I(e),I(d),I(c)),yt(C,W),B=!1,qe(N)}}}function Oa(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,_;function b(){return n[52](n[88])}function w(){return n[53](n[90])}return{c(){e=E("span"),t=E("span"),i=M(r),a=z(),l=E("img"),h=z(),m(t,"class",o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":"")),rs(l.src,u=n[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[88].name),m(l,"title",c=n[88].name),m(e,"class","Game"),m(e,"part","Game")},m(v,g){L(v,e,g),p(e,t),p(t,i),p(e,a),p(e,l),p(e,h),f||(_=[Ae(e,"click",b),Ae(e,"mouseenter",w),Ae(e,"mouseleave",n[54])],f=!0)},p(v,g){n=v,g[0]&33554432&&r!==(r=n[25]("bonusCard.playNow")+"")&&pe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!rs(l.src,u=n[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[88].name)&&m(l,"title",c)},d(v){v&&I(e),f=!1,qe(_)}}}function Ia(n){let e,t,r=n[25]("bonusCard.wageringType")+"",i,o,s,a,l=n[25](`bonusCard.${n[5].wageringType}`)+"",u,d,c,h,f=n[25]("bonusCard.wagered")+"",_,b,w,v,g=[H("BonusCardLabel")],T={};for(let B=0;B<g.length;B+=1)T=k(T,g[B]);let y=[H("BonusCardRowText")],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let x=[H("BonusCardRow")],R={};for(let B=0;B<x.length;B+=1)R=k(R,x[B]);let G=[H("BonusCardLabel")],j={};for(let B=0;B<G.length;B+=1)j=k(j,G[B]);let F=n[5].wageringType==="money"&&Na(n),O=[H("BonusCardRowText")],$={};for(let B=0;B<O.length;B+=1)$=k($,O[B]);let X=[H("BonusCardRow")],ne={};for(let B=0;B<X.length;B+=1)ne=k(ne,X[B]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),c=E("p"),h=E("span"),_=M(f),b=M(":"),w=z(),v=E("span"),F&&F.c(),P(t,T),P(a,S),P(e,R),P(h,j),P(v,$),P(c,ne)},m(B,N){L(B,e,N),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),L(B,d,N),L(B,c,N),p(c,h),p(h,_),p(h,b),p(c,w),p(c,v),F&&F.m(v,null)},p(B,N){N[0]&33554432&&r!==(r=B[25]("bonusCard.wageringType")+"")&&ie(i,r,T.contenteditable),N[0]&33554464&&l!==(l=B[25](`bonusCard.${B[5].wageringType}`)+"")&&ie(u,l,S.contenteditable),N[0]&33554432&&f!==(f=B[25]("bonusCard.wagered")+"")&&ie(_,f,j.contenteditable),B[5].wageringType==="money"?F?F.p(B,N):(F=Na(B),F.c(),F.m(v,null)):F&&(F.d(1),F=null)},d(B){B&&(I(e),I(d),I(c)),F&&F.d()}}}function Na(n){let e;function t(o,s){return o[0]===oe.ACTIVE?Tb:xb}let r=t(n),i=r(n);return{c(){i.c(),e=nt()},m(o,s){i.m(o,s),L(o,e,s)},p(o,s){r===(r=t(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&I(e),i.d(o)}}}function xb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Pb:Ab}let s=o(n),a=s(n);return{c(){t=M(e),r=M(` /
3575
+ `),a.c(),i=nt()},m(l,u){L(l,t,u),L(l,r,u),a.m(l,u),L(l,i,u)},p(l,u){u[0]&131104&&e!==(e=l[29](l[5])+l[17]+"")&&pe(t,e),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(I(t),I(r),I(i)),a.d(l)}}}function Tb(n){var d;let e=n[30](n[5])+"",t,r,i,o,s=((d=n[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){t=M(e),r=z(),i=M(n[17]),o=M(` /
3576
+ `),a=M(s),l=z(),u=M(n[17])},m(c,h){L(c,t,h),L(c,r,h),L(c,i,h),L(c,o,h),L(c,a,h),L(c,l,h),L(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&pe(t,e),h[0]&131072&&pe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&pe(a,s),h[0]&131072&&pe(u,c[17])},d(c){c&&(I(t),I(r),I(i),I(o),I(a),I(l),I(u))}}}function Ab(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Pb(n){let e;return{c(){e=M("∞")},m(t,r){L(t,e,r)},p:Be,d(t){t&&I(e)}}}function La(n){var be,ue;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((ue=(be=n[5].wallet.standard)==null?void 0:be.initialAmount)==null?void 0:ue.fixedAmount)+"",d,c,h,f,_,b=n[25]("bonusCard.wageringRequirement")+"",w,v,g,T,y=n[37](n[5])+n[17]+"",S,x=[H("BonusCardLabel")],R={};for(let Z=0;Z<x.length;Z+=1)R=k(R,x[Z]);let G=[H("BonusCardRowText")],j={};for(let Z=0;Z<G.length;Z+=1)j=k(j,G[Z]);let F=[H("BonusCardRow")],O={};for(let Z=0;Z<F.length;Z+=1)O=k(O,F[Z]);let $=[H("BonusCardLabel")],X={};for(let Z=0;Z<$.length;Z+=1)X=k(X,$[Z]);let ne=[H("BonusCardRowText")],B={};for(let Z=0;Z<ne.length;Z+=1)B=k(B,ne[Z]);let N=[H("BonusCardRow")],re={};for(let Z=0;Z<N.length;Z+=1)re=k(re,N[Z]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),h=z(),f=E("p"),_=E("span"),w=M(b),v=M(":"),g=z(),T=E("span"),S=M(y),P(t,R),P(a,j),P(e,O),P(_,X),P(T,B),P(f,re)},m(Z,ae){L(Z,e,ae),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),L(Z,h,ae),L(Z,f,ae),p(f,_),p(_,w),p(_,v),p(f,g),p(f,T),p(T,S)},p(Z,ae){var K,se;ae[0]&33554432&&r!==(r=Z[25]("bonusCard.bonusAmount")+"")&&ie(i,r,R.contenteditable),ae[0]&32&&u!==(u=Z[36]((se=(K=Z[5].wallet.standard)==null?void 0:K.initialAmount)==null?void 0:se.fixedAmount)+"")&&pe(d,u),ae[0]&131072&&pe(c,Z[17]),ae[0]&33554432&&b!==(b=Z[25]("bonusCard.wageringRequirement")+"")&&ie(w,b,X.contenteditable),ae[0]&131104&&y!==(y=Z[37](Z[5])+Z[17]+"")&&ie(S,y,B.contenteditable)},d(Z){Z&&(I(e),I(h),I(f))}}}function Ha(n){var g,T;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((T=(g=n[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:T.fixedAmount)+"",d,c,h=[H("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=k(f,h[y]);let _=[H("BonusCardRowText")],b={};for(let y=0;y<_.length;y+=1)b=k(b,_[y]);let w=[H("BonusCardRow")],v={};for(let y=0;y<w.length;y+=1)v=k(v,w[y]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),P(t,f),P(a,b),P(e,v)},m(y,S){L(y,e,S),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(y,S){var x,R;S[0]&33554432&&r!==(r=y[25]("bonusCard.bonusAmount")+"")&&ie(i,r,f.contenteditable),S[0]&32&&u!==(u=y[36]((R=(x=y[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:R.fixedAmount)+"")&&pe(d,u),S[0]&131072&&pe(c,y[17])},d(y){y&&I(e)}}}function Ra(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[38](n[5])+"",u,d=[H("BonusCardLabel")],c={};for(let w=0;w<d.length;w+=1)c=k(c,d[w]);let h=[H("BonusCardRowText")],f={};for(let w=0;w<h.length;w+=1)f=k(f,h[w]);let _=[H("BonusCardRow")],b={};for(let w=0;w<_.length;w+=1)b=k(b,_[w]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),P(t,c),P(a,f),P(e,b)},m(w,v){L(w,e,v),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u)},p(w,v){v[0]&33554432&&r!==(r=w[25]("bonusCard.roundNumber")+"")&&ie(i,r,c.contenteditable),v[0]&32&&l!==(l=w[38](w[5])+"")&&ie(u,l,f.contenteditable)},d(w){w&&I(e)}}}function Fa(n){let e,t,r=n[25]("bonusCard.levels")+"",i,o,s,a,l=[H("BonusCardLabel")],u={};for(let v=0;v<l.length;v+=1)u=k(u,l[v]);function d(v,g){return v[8]>0?kb:Sb}let c=d(n),h=c(n),f=[H("BonusCardRowText")],_={};for(let v=0;v<f.length;v+=1)_=k(_,f[v]);let b=[H("BonusCardRow")],w={};for(let v=0;v<b.length;v+=1)w=k(w,b[v]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),h.c(),P(t,u),P(a,_),P(e,w)},m(v,g){L(v,e,g),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),h.m(a,null)},p(v,g){g[0]&33554432&&r!==(r=v[25]("bonusCard.levels")+"")&&ie(i,r,u.contenteditable),c===(c=d(v))&&h?h.p(v,g):(h.d(1),h=c(v),h&&(h.c(),h.m(a,null)))},d(v){v&&I(e),h.d()}}}function Sb(n){let e;return{c(){e=M("∞")},m(t,r){L(t,e,r)},p:Be,d(t){t&&I(e)}}}function kb(n){let e;return{c(){e=M(n[8])},m(t,r){L(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function Ua(n){let e,t,r=n[5].type==="standard"&&za(n),i=n[5].type==="wagering"&&Va(n);return{c(){r&&r.c(),e=z(),i&&i.c(),t=nt()},m(o,s){r&&r.m(o,s),L(o,e,s),i&&i.m(o,s),L(o,t,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=za(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Va(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(I(e),I(t)),r&&r.d(o),i&&i.d(o)}}}function za(n){let e,t,r,i=[H("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[H("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("div"),t=E("casino-bonus-progress"),P(t,o),P(e,a)},m(l,u){L(l,e,u),p(e,t)},p(l,u){P(t,o=ke(i,[H("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&I(e)}}}function Va(n){var S;let e,t,r,i,o,s=n[25]("bonusCard.level")+"",a,l,u=(((S=n[5].wageringProgress)==null?void 0:S.currentLevel)||1)+"",d,c,h=[H("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],f={};for(let x=0;x<h.length;x+=1)f=k(f,h[x]);function _(x,R){return x[8]>0?Mb:Db}let b=_(n),w=b(n),v=[H("CircularProgressText")],g={};for(let x=0;x<v.length;x+=1)g=k(g,v[x]);let T=[H("BonusCardProgress")],y={};for(let x=0;x<T.length;x+=1)y=k(y,T[x]);return{c(){e=E("div"),t=E("casino-bonus-progress"),i=z(),o=E("div"),a=M(s),l=M(": "),d=M(u),c=M(` /
3577
+ `),w.c(),P(t,f),P(o,g),P(e,y)},m(x,R){L(x,e,R),p(e,t),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),w.m(o,null)},p(x,R){var G;P(t,f=ke(h,[H("CircularProgress"),R[0]&32&&r!==(r=x[31](x[5]))&&{value:r},R[0]&1&&{status:x[0]},R[0]&4&&{clientstyling:x[2]},R[0]&8&&{clientstylingurl:x[3]},R[0]&2&&{mbsource:x[1]}])),R[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&ie(a,s,g.contenteditable),R[0]&32&&u!==(u=(((G=x[5].wageringProgress)==null?void 0:G.currentLevel)||1)+"")&&ie(d,u,g.contenteditable),b===(b=_(x))&&w?w.p(x,R):(w.d(1),w=b(x),w&&(w.c(),w.m(o,null)))},d(x){x&&I(e),w.d()}}}function Db(n){let e;return{c(){e=M("∞")},m(t,r){L(t,e,r)},p:Be,d(t){t&&I(e)}}}function Mb(n){let e;return{c(){e=M(n[8])},m(t,r){L(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function $a(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,_=[H("BonusCardAdditionalTitle")],b={};for(let F=0;F<_.length;F+=1)b=k(b,_[F]);function w(F,O){return F[11]?Bb:Ob}let v=w(n),g=v(n),T=[H("BonusCardAdditionalButton")],y={};for(let F=0;F<T.length;F+=1)y=k(y,T[F]);let S=[H("BonusCardAdditionalHeader")],x={};for(let F=0;F<S.length;F+=1)x=k(x,S[F]);let R=n[11]&&Wa(n),G=[H("BonusCardAdditional")],j={};for(let F=0;F<G.length;F+=1)j=k(j,G[F]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=z(),l=M(a),u=z(),d=E("span"),g.c(),c=z(),R&&R.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),P(r,b),P(d,y),P(t,x),le(t,"Active",n[11]),P(e,j)},m(F,O){L(F,e,O),p(e,t),p(t,r),p(r,i),p(i,o),p(r,s),p(r,l),p(t,u),p(t,d),g.m(d,null),p(e,c),R&&R.m(e,null),h||(f=Ae(t,"click",n[56]),h=!0)},p(F,O){O[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&ie(l,a,b.contenteditable),v!==(v=w(F))&&(g.d(1),g=v(F),g&&(g.c(),g.m(d,null))),O[0]&2048&&le(t,"Active",F[11]),F[11]?R?R.p(F,O):(R=Wa(F),R.c(),R.m(e,null)):R&&(R.d(1),R=null)},d(F){F&&I(e),g.d(),R&&R.d(),h=!1,f()}}}function Bb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){L(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Ob(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){L(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Wa(n){let e,t=n[5].type==="wagering"&&ja(n),r=[H("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),t&&t.c(),P(e,i)},m(o,s){L(o,e,s),t&&t.m(e,null)},p(o,s){o[5].type==="wagering"?t?t.p(o,s):(t=ja(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&I(e),t&&t.d()}}}function ja(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Nb;if(l[5].levels)return Ib}let o=i(n),s=o&&o(n),a=t&&Za(n);return{c(){s&&s.c(),e=z(),a&&a.c(),r=nt()},m(l,u){s&&s.m(l,u),L(l,e,u),a&&a.m(l,u),L(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(t=l[5].levels.length>Number(l[4])),t?a?a.p(l,u):(a=Za(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(I(e),I(r)),s&&s.d(l),a&&a.d(l)}}}function Ib(n){let e,t=Re(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ya(wa(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);L(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&24){t=Re(i[5].levels.slice(0,i[4]));let s;for(s=0;s<t.length;s+=1){const a=wa(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ya(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),yt(r,i)}}}function Nb(n){let e,t=Re(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Xa(Ea(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);L(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&512){t=Re(i[40](i[5],i[7]));let s;for(s=0;s<t.length;s+=1){const a=Ea(i,t,s);r[s]?r[s].p(a,o):(r[s]=Xa(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),yt(r,i)}}}function Ga(n){let e=n[35](n[82],n[85])+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ya(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[84])+"",a,l,u,d,c,h=[H("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=Re(n[82].bonuses),b=[];for(let g=0;g<_.length;g+=1)b[g]=Ga(Ca(n,_,g));let w=[H("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=z(),a=M(s),l=M(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),P(t,f),P(e,v)},m(g,T){L(g,e,T),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,T){if(T[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&ie(i,r,f.contenteditable),T[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&ie(a,s,f.contenteditable),T[0]&48|T[1]&16){_=Re(g[82].bonuses);let y;for(y=0;y<_.length;y+=1){const S=Ca(g,_,y);b[y]?b[y].p(S,T):(b[y]=Ga(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&I(e),yt(b,g)}}}function qa(n){let e=n[79]+"",t;return{c(){t=M(e)},m(r,i){L(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Xa(n){let e,t,r=n[25](`bonusCard.${n[76].label}`)+"",i,o,s=n[25]("bonusCard.level")+"",a,l,u,d,c,h=[H("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=Re(n[76].desc),b=[];for(let g=0;g<_.length;g+=1)b[g]=qa(xa(n,_,g));let w=[H("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=z(),a=M(s),l=M(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),P(t,f),P(e,v)},m(g,T){L(g,e,T),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,T){if(T[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&ie(i,r,f.contenteditable),T[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&ie(a,s,f.contenteditable),T[0]&160|T[1]&512){_=Re(g[76].desc);let y;for(y=0;y<_.length;y+=1){const S=xa(g,_,y);b[y]?b[y].p(S,T):(b[y]=qa(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&I(e),yt(b,g)}}}function Za(n){let e,t=n[25]("bonusCard.allRewards")+"",r,i,o,s=[H("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=M(t),P(e,a)},m(l,u){L(l,e,u),p(e,r),i||(o=Ae(e,"click",n[28]),i=!0)},p(l,u){u[0]&33554432&&t!==(t=l[25]("bonusCard.allRewards")+"")&&ie(r,t,a.contenteditable)},d(l){l&&I(e),i=!1,o()}}}function Lb(n){let e,t,r,i,o,s,a,l,u,d,c=n[25]("bonusCard.terms")+"",h,f=[H("BonusCardTermsLink"),{href:n[20]},{target:"__blank"}],_={};for(let v=0;v<f.length;v+=1)_=k(_,f[v]);let b=[H("BonusCardTerms")],w={};for(let v=0;v<b.length;v+=1)w=k(w,b[v]);return{c(){e=E("div"),t=E("a"),r=te("svg"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=z(),h=M(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),P(t,_),P(e,w)},m(v,g){L(v,e,g),p(e,t),p(t,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(t,d),p(t,h)},p(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&ie(h,c,_.contenteditable),P(t,_=ke(f,[H("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&I(e)}}}function Hb(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,_,b,w,v,g,T=[H("BonusCardTermsTitle")],y={};for(let B=0;B<T.length;B+=1)y=k(y,T[B]);function S(B,N){return B[12]?Rb:Fb}let x=S(n),R=x(n),G=[H("BonusCardTermsButton")],j={};for(let B=0;B<G.length;B+=1)j=k(j,G[B]);let F=[H("BonusCardTermsHeader")],O={};for(let B=0;B<F.length;B+=1)O=k(O,F[B]);let $=n[12]&&Ka(n),X=[H("BonusCardTerms")],ne={};for(let B=0;B<X.length;B+=1)ne=k(ne,X[B]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=z(),f=M(h),_=z(),b=E("span"),R.c(),w=z(),$&&$.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),P(r,y),P(b,j),P(t,O),le(t,"Active",n[12]),P(e,ne)},m(B,N){L(B,e,N),p(e,t),p(t,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(t,_),p(t,b),R.m(b,null),p(e,w),$&&$.m(e,null),v||(g=Ae(t,"click",n[57]),v=!0)},p(B,N){N[0]&33554432&&h!==(h=B[25]("bonusCard.terms")+"")&&ie(f,h,y.contenteditable),x!==(x=S(B))&&(R.d(1),R=x(B),R&&(R.c(),R.m(b,null))),N[0]&4096&&le(t,"Active",B[12]),B[12]?$?$.p(B,N):($=Ka(B),$.c(),$.m(e,null)):$&&($.d(1),$=null)},d(B){B&&I(e),R.d(),$&&$.d(),v=!1,g()}}}function Rb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){L(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Fb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){L(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Ka(n){let e,t,r,i,o=[H("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),e.innerHTML="",P(e,s)},m(a,l){L(a,e,l),r||(i=Yd(t=n[44].call(null,e,n[16].terms_and_conditions)),r=!0)},p(a,l){t&&Un(t.update)&&l[0]&65536&&t.update.call(null,a[16].terms_and_conditions)},d(a){a&&I(e),r=!1,i()}}}function Ja(n){let e,t,r,i=n[0]===oe.CLAIMABLE&&Qa(n),o=n[0]===oe.ACTIVE&&n[5].status===oe.ACTIVE&&tl(n),s=[H("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[H("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),t=E("div"),i&&i.c(),r=z(),o&&o.c(),P(t,a),P(e,u)},m(d,c){L(d,e,c),p(e,t),i&&i.m(t,null),p(t,r),o&&o.m(t,null)},p(d,c){d[0]===oe.CLAIMABLE?i?i.p(d,c):(i=Qa(d),i.c(),i.m(t,r)):i&&(i.d(1),i=null),d[0]===oe.ACTIVE&&d[5].status===oe.ACTIVE?o?o.p(d,c):(o=tl(d),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(d){d&&I(e),i&&i.d(),o&&o.d()}}}function Qa(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,_,b=n[15]===!0&&el(n),w=[H("BonusCardJoinCountdown")],v={};for(let x=0;x<w.length;x+=1)v=k(v,w[x]);let g=[H("BonusJoinButton"),{type:"button"},{disabled:h=!n[13]}],T={};for(let x=0;x<g.length;x+=1)T=k(T,g[x]);let y=[H("BonusCardJoinWrapper")],S={};for(let x=0;x<y.length;x+=1)S=k(S,y[x]);return{c(){e=E("div"),b&&b.c(),t=z(),r=E("span"),i=te("svg"),o=te("path"),s=z(),a=M(n[19]),l=z(),u=E("button"),c=M(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),P(r,v),P(u,T),P(e,S)},m(x,R){L(x,e,R),b&&b.m(e,null),p(e,t),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(_=Ae(u,"click",n[26]),f=!0)},p(x,R){x[15]===!0?b?b.p(x,R):(b=el(x),b.c(),b.m(e,t)):b&&(b.d(1),b=null),R[0]&524288&&ie(a,x[19],v.contenteditable),R[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&ie(c,d,T.contenteditable),P(u,T=ke(g,[H("BonusJoinButton"),{type:"button"},R[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&I(e),b&&b.d(),f=!1,_()}}}function el(n){let e,t=n[25]("bonusCard.error")+"",r,i=[H("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=M(t),P(e,o)},m(s,a){L(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&t!==(t=s[25]("bonusCard.error")+"")&&ie(r,t,o.contenteditable)},d(s){s&&I(e)}}}function tl(n){let e,t=n[25]("bonusCard.forfeit")+"",r,i,o,s,a=[H("BonusForfeitButton"),{type:"button"},{disabled:i=!n[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=M(t),P(e,l)},m(u,d){L(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Ae(e,"click",n[27]),o=!0)},p(u,d){d[0]&33554432&&t!==(t=u[25]("bonusCard.forfeit")+"")&&ie(r,t,l.contenteditable),P(e,l=ke(a,[H("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&I(e),o=!1,s()}}}function Ub(n){let e,t=n[5]&&Aa(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),L(r,e,i)},p(r,i){r[5]?t?t.p(r,i):(t=Aa(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Be,o:Be,d(r){r&&I(e),t&&t.d(r)}}}function zb(n,e,t){let r;xl(n,tu,A=>t(25,r=A));let{rawbonus:i=""}=e,{lang:o="en"}=e,{status:s=""}=e,{mbsource:a}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{cmsendpoint:d=""}=e,{translationurl:c=""}=e,{levelcountlimit:h=""}=e,{currency:f=""}=e,_=null,b=[],w,v=!1,g=!1,T=!1,y=!1,S=!0,x=!1,R=!1,G={},j,F,O="",$=1e3*30,X,ne,B="",N=!1,re,be=[],ue=0,Z=!1;const ae=()=>{fetch(c).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ee=>{xr(ee,U[ee])})}).catch(U=>{console.log(U)})};Object.keys(Tr).forEach(A=>{xr(A,Tr[A])});const K=A=>A.some(U=>Array.isArray(U==null?void 0:U.bonuses)&&U.bonuses.length>0);Fr(()=>(window.addEventListener("message",Me,!1),()=>{window.removeEventListener("message",Me)}));const se=()=>{var A,U;try{t(5,_=JSON.parse(i))}catch(ee){t(5,_=null)}_&&(t(17,j=ya(_.currency||f)),t(7,b=J(_.levels||((U=(A=_.wallet)==null?void 0:A.wagering)==null?void 0:U.levels))),t(10,g=_.type==="wagering"&&K(b)),g||t(11,T=!1),_.type==="freeRound"&&t(23,be=Q(_.freeSpin)),Xe())},Q=A=>{if(!A||!A.vendorGamesDetail)return[];let U=[];return Object.keys(A.vendorGamesDetail).length>0&&Object.keys(A.vendorGamesDetail).forEach(ee=>{U=A.vendorGamesDetail[ee]}),U},J=A=>{if(!A)return[];const U=[];let ee=!1;return A.map((ge,we)=>{const ft=ge,{maxRepeats:Te,completedTime:Ge}=ft,Qe=ts(ft,["maxRepeats","completedTime"]);Te===0&&(ee=!0,U.push(pt({},Qe)));for(let We=0;We<Te;We++)U.push(pt({},Qe))}),ee?t(8,w=0):t(8,w=U.length),U},C=()=>{t(13,S=!1),t(15,R=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},D=()=>{t(13,S=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},ce=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},Me=A=>{switch(A.data.type){case"OnBonusClaimedDone":t(13,S=!0);break;case"OnBonusForfeitedDone":t(13,S=!0);break;case"OnBonusClaimError":A.data.bonusCode===_.code&&t(15,R=!0);break}},Y=(A,U)=>({remainder:A%U,quotient:Math.floor(A/U)}),W=A=>{const U=new Date;return new Date(A).getTime()-U.getTime()},xe=A=>{const U=W(A)/6e4,{quotient:ee,remainder:ge}=Y(U,1440),{quotient:we,remainder:Te}=Y(ge,60),Ge=Math.floor(Te),Qe=We=>Math.abs(We)<10?`0${We}`:We;return[{value:ee,symbol:"d"},{value:we,symbol:"h"},{value:Ge,symbol:"m"}].map(We=>Qe(We.value)+We.symbol).join(" ")},Ce=(A,U,ee,ge)=>{const we=W(A);we<0?ee():(ge(xe(A)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Xe=()=>{var ge;if(!_)return;const A=(we,Te,Ge)=>{Ce(we,$,()=>Te(Ge),Te)},U=r("bonusCard.expired"),ee=_.endTime||((ge=_.trigger)==null?void 0:ge.endTime);ee&&A(ee,we=>{t(19,O=we),t(18,F=we)},U),_.expiryDate&&A(_.expiryDate,we=>t(18,F=we),U)},it=A=>{let U=(A.initialWagerRequirementAmount-A.remainingWagerRequirementAmount).toFixed(2);return A.status===oe.RELEASED&&A.type==="wagering"&&(U=(Number(U)+A.remainingAmount).toFixed(2)),parseFloat(U).toString()},Ht=A=>{var U,ee;return(((U=A.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ee=A.wageringProgress)==null?void 0:ee.gap)).toFixed(2)},Fe=A=>{var ge,we,Te;let U,ee;return A.type==="wagering"&&A.status===oe.ACTIVE&&A.wageringType==="money"?(ee=(ge=A.wageringProgress)==null?void 0:ge.currentLevelIncrement,ee!=0&&(U=((((we=A.wageringProgress)==null?void 0:we.currentLevelIncrement)-((Te=A.wageringProgress)==null?void 0:Te.gap))/ee*100).toFixed(2))):A.status===oe.RELEASED?U=100:(ee=A.initialWagerRequirementAmount,ee!=0&&(U=((A.initialWagerRequirementAmount-A.remainingWagerRequirementAmount)/ee*100).toFixed(2))),Number(U)},Rt=A=>{if(!A.wallet)return"";const U=["freeBet","freeRound"].includes(A.type)?A.wallet[A.type]:A.wallet,{validityMinutes:ee,expiryTime:ge}=U;if(ee===0)return ge?xn(new Date(ge),"yyyy-MM-dd HH:mm:ss"):r("bonusCard.infinite");const we=Math.round(ee/1440);return`${we} ${r(we===1?"bonusCard.day":"bonusCard.days")}`},ot=A=>{if(A.products)return A.products;{let U=[];return A.wallet&&(A.wallet.casino&&U.push("Casino"),A.wallet.sports&&U.push("Sports")),U}},V=(A,U)=>{const ee=r(`bonusType.${U.type}`),ge=ya(U.amountCurrency||_.currency||f);return U.mode==="percentage"?`${U.bonusAmount*100}% ${r("bonusCard.upTo")} ${ge}${U.capAmount} ${ee}`:U.mode==="fixed"?`${ge}${U.bonusAmount} ${ee}`:ee},ye=(A,U)=>{const ee=Qe=>Qe===0?0:A.slice(0,Qe).reduce((ft,We)=>ft+We.maxRepeats,0),ge=A[U],Te=ee(U)+1,Ge=Te+ge.maxRepeats-1;return ge.maxRepeats>1?`${Te}-${Ge}`:`${U+1}`},Xn=(A,U)=>{switch(U.type){case"standard":case"freeBet":return V(A,U);case"freeRound":return r("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return r("bonusCard.enrollTo",{values:{name:r(`bonusType.${U.type}`)}});default:return""}},Zn=A=>{var U,ee;return Number((ee=(U=A==null?void 0:A[f])!=null?U:A==null?void 0:A.EUR)!=null?ee:0)},ai=A=>{var ge,we,Te,Ge;const U=Zn((Te=(we=(ge=A.wallet)==null?void 0:ge.standard)==null?void 0:we.initialAmount)==null?void 0:Te.fixedAmount),ee=((Ge=A.wallet)==null?void 0:Ge.wageringRequirementCoefficient)||0;return Number((U*ee).toFixed(2))},li=A=>{var ge,we,Te;const U=(we=(ge=A.wallet)==null?void 0:ge.freeRound)==null?void 0:we.vendor;if(!U)return 0;const ee=Object.keys(U)[0];return((Te=U[ee])==null?void 0:Te.roundNumber)||0},ui=A=>A===void 0?"":xn(new Date(A),"yyyy-MM-dd HH:mm:ss"),di=(A,U)=>{var Ge,Qe,ft;const ee=((Ge=A.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,ge=U.length-1,we=((ft=(Qe=A.levels)==null?void 0:Qe[0])==null?void 0:ft.maxRepeats)===0,Te=We=>We.filter(hn=>hn.index>=0&&hn.index<=ge||we).map(hn=>{const nr=U[hn.index]||U[0];return{label:hn.label,desc:((nr==null?void 0:nr.bonuses)||[]).map(Vd=>Xn(nr,Vd))}});switch(A.status){case oe.ACTIVE:return Te([{label:"current",index:ee},{label:"next",index:ee+1}]);case void 0:case null:case"":return Te([{label:"first",index:0},{label:"next",index:1}]);default:return Te([{label:"last",index:ge},{label:"previous",index:ge-1}])}},ci=A=>{var U,ee;t(20,B=A.url?A.url:(ee=(U=A.presentation)==null?void 0:U.url)==null?void 0:ee.content)},Kn=A=>{window.postMessage({type:"BonusGameAction",gameId:A.id,name:A.name,gameLaunchUrl:A.href},window.location.href)},Jn=A=>{t(21,N=!0),t(22,re=A)},Qn=()=>{t(21,N=!1),t(22,re=-1)},q=A=>{fetch(`${d}/${o}/bonuses-information/${A}`).then(U=>U.json()).then(U=>{U&&U[A]&&(t(14,x=!0),t(16,G=U[A]))})},Pe=(A,U)=>{const ee=document.createElement("div");ee.innerHTML=U,A.append(ee)},He=()=>t(24,ue+=300),Et=A=>Kn(A),cn=A=>Jn(A),Fd=()=>Qn(),Ud=()=>t(24,ue-=300),zd=()=>{t(11,T=!T)},er=()=>{t(12,y=!y)};function tr(A){lt[A?"unshift":"push"](()=>{X=A,t(6,X)})}return n.$$set=A=>{"rawbonus"in A&&t(45,i=A.rawbonus),"lang"in A&&t(46,o=A.lang),"status"in A&&t(0,s=A.status),"mbsource"in A&&t(1,a=A.mbsource),"clientstyling"in A&&t(2,l=A.clientstyling),"clientstylingurl"in A&&t(3,u=A.clientstylingurl),"cmsendpoint"in A&&t(47,d=A.cmsendpoint),"translationurl"in A&&t(48,c=A.translationurl),"levelcountlimit"in A&&t(4,h=A.levelcountlimit),"currency"in A&&t(49,f=A.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(s===oe.CLAIMABLE&&t(9,v=!0),s===oe.ACTIVE&&t(9,v=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,Z=!!(i&&o&&s)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&i&&o&&s&&se(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&Z&&_&&(o&&nu(o),d?q(_.bonusId||_.id):ci(_)),n.$$.dirty[0]&68&&l&&X&&Xr(X,l),n.$$.dirty[0]&72&&u&&X&&Zr(X,u),n.$$.dirty[0]&66&&a&&X&&Kr(X,`${a}.Style`,ne),n.$$.dirty[1]&131072&&c&&ae()},[s,a,l,u,h,_,X,b,w,v,g,T,y,S,x,R,G,j,F,O,B,N,re,be,ue,r,C,D,ce,it,Ht,Fe,Rt,ot,ye,Xn,Zn,ai,li,ui,di,Kn,Jn,Qn,Pe,i,o,d,c,f,Z,He,Et,cn,Fd,Ud,zd,er,tr]}class Vb extends Vr{constructor(e){super(),Ur(this,e,zb,Ub,zn,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},pb,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",zr(Vb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function $b({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>Gb(r)?jb({totalPages:i,limit:r,currentPage:t}):Wb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:"&gt;",value:t>=i?i:t+1}]}function Wb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function jb({totalPages:n,limit:e,currentPage:t}){const r=e*2+2,i=1+r,o=n-r,s=i+2;return t<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):t>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):t>=i-e&&t<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:t-e+(l-2)}:l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:t+e+1}:{type:"number",value:t-e+(l-2)}):[]}function Gb(n){return n*2+3+2}function Yb(n){Rr(n,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function nl(n,e,t){const r=n.slice();return r[29]=e[t],r}const qb=n=>({}),rl=n=>({}),Xb=n=>({}),il=n=>({}),Zb=n=>({}),ol=n=>({}),Kb=n=>({value:n[0]&32}),sl=n=>({value:n[29].value});function Jb(n){let e;const t=n[21].next,r=Vn(t,n,n[20],rl),i=r||nv();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?$n(t,o[20],s,qb):jn(o[20]),rl)},i(o){e||(Ke(i,o),e=!0)},o(o){ct(i,o),e=!1},d(o){i&&i.d(o)}}}function Qb(n){let e;const t=n[21].prev,r=Vn(t,n,n[20],il),i=r||rv();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?$n(t,o[20],s,Xb):jn(o[20]),il)},i(o){e||(Ke(i,o),e=!0)},o(o){ct(i,o),e=!1},d(o){i&&i.d(o)}}}function ev(n){let e;const t=n[21].ellipsis,r=Vn(t,n,n[20],ol),i=r||iv();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?$n(t,o[20],s,Zb):jn(o[20]),ol)},i(o){e||(Ke(i,o),e=!0)},o(o){ct(i,o),e=!1},d(o){i&&i.d(o)}}}function tv(n){let e;const t=n[21].number,r=Vn(t,n,n[20],sl),i=r||ov(n);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&Wn(r,t,o,o[20],e?$n(t,o[20],s,Kb):jn(o[20]),sl):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ke(i,o),e=!0)},o(o){ct(i,o),e=!1},d(o){i&&i.d(o)}}}function nv(n){let e;return{c(){e=M(">")},m(t,r){L(t,e,r)},d(t){t&&I(e)}}}function rv(n){let e;return{c(){e=M("<")},m(t,r){L(t,e,r)},d(t){t&&I(e)}}}function iv(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){L(t,e,r)},p:Be,d(t){t&&I(e)}}}function ov(n){let e,t=n[29].value+"",r;return{c(){e=E("span"),r=M(t)},m(i,o){L(i,e,o),p(e,r)},p(i,o){o[0]&32&&t!==(t=i[29].value+"")&&pe(r,t)},d(i){i&&I(e)}}}function al(n){let e,t,r,i,o,s,a,l;const u=[tv,ev,Qb,Jb],d=[];function c(f,_){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(t=c(n))&&(r=d[t]=u[t](n));function h(){return n[22](n[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1,m(e,"class","option"),m(e,"role","presentation"),le(e,"number",n[29].type==="number"),le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),le(e,"active",n[29].type==="number"&&n[29].value===n[1])},m(f,_){L(f,e,_),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Ae(e,"click",h),a=!0)},p(f,_){n=f;let b=t;t=c(n),t===b?~t&&d[t].p(n,_):(r&&(Sl(),ct(d[b],1,1,()=>{d[b]=null}),kl()),~t?(r=d[t],r?r.p(n,_):(r=d[t]=u[t](n),r.c()),Ke(r,1),r.m(e,i)):r=null),(!s||_[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1))&&(e.disabled=o),(!s||_[0]&32)&&le(e,"number",n[29].type==="number"),(!s||_[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),(!s||_[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),(!s||_[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),(!s||_[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||_[0]&34)&&le(e,"active",n[29].type==="number"&&n[29].value===n[1])},i(f){s||(Ke(r),s=!0)},o(f){ct(r),s=!1},d(f){f&&I(e),~t&&d[t].d(),a=!1,l()}}}function ll(n){let e,t,r,i,o,s,a,l;return{c(){e=E("div"),t=E("span"),t.textContent="Go To Page",r=z(),i=E("input"),o=z(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){L(u,e,d),p(e,t),p(e,r),p(e,i),yr(i,n[3]),p(e,o),p(e,s),a||(l=[Ae(i,"input",n[23]),Ae(i,"change",n[24]),Ae(s,"click",n[25])],a=!0)},p(u,d){d[0]&8&&Pl(i.value)!==u[3]&&yr(i,u[3])},d(u){u&&I(e),a=!1,qe(l)}}}function sv(n){let e,t,r,i,o,s,a=Re(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=al(nl(n,a,c));const u=c=>ct(l[c],1,1,()=>{l[c]=null});let d=n[7]&&ll(n);return{c(){e=E("div"),t=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(t,"class",r="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(t,"part",i="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){L(c,e,h),p(e,t);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null);p(e,o),d&&d.m(e,null),n[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Re(c[5]);let f;for(f=0;f<a.length;f+=1){const _=nl(c,a,f);l[f]?(l[f].p(_,h),Ke(l[f],1)):(l[f]=al(_),l[f].c(),Ke(l[f],1),l[f].m(t,null))}for(Sl(),f=a.length;f<l.length;f+=1)u(f);kl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"part",i),c[7]?d?d.p(c,h):(d=ll(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ke(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)ct(l[h]);s=!1},d(c){c&&I(e),yt(l,c),d&&d.d(),n[26](null)}}}function av(n,e,t){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:_=""}=e,{mbsource:b}=e,{clientstyling:w=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,T,y=!1,S;uu(g)&&(y=!0);let x,R,G;const j=N=>{window.postMessage({type:"PaginationChange",page:N.value})},F=N=>{t(4,R=N>a?a:N)};Fr(()=>()=>{});const O=N=>j(N);function $(){x=Pl(this.value),t(3,x)}const X=()=>F(x),ne=()=>j({value:R});function B(N){lt[N?"unshift":"push"](()=>{S=N,t(0,S)})}return n.$$set=N=>{"totalitems"in N&&t(10,d=N.totalitems),"pagesize"in N&&t(11,c=N.pagesize),"currentpage"in N&&t(12,h=N.currentpage),"limit"in N&&t(13,f=N.limit),"showinput"in N&&t(14,_=N.showinput),"mbsource"in N&&t(15,b=N.mbsource),"clientstyling"in N&&t(16,w=N.clientstyling),"clientstylingurl"in N&&t(17,v=N.clientstylingurl),"$$scope"in N&&t(20,u=N.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&w&&S&&Xr(S,w),n.$$.dirty[0]&131073&&v&&S&&Zr(S,v),n.$$.dirty[0]&32769&&b&&S&&Kr(S,`${b}.Style`,T),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=_),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,G=$b({totalItems:r,pageSize:s,currentPage:o,limit:f})),n.$$.dirty[0]&786432&&t(6,a=Math.ceil(r/s))},[S,o,y,x,R,G,a,i,j,F,d,c,h,f,_,b,w,v,s,r,u,l,O,$,X,ne,B]}class lv extends Vr{constructor(e){super(),Ur(this,e,av,sv,zn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Yb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",zr(lv,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function si(t){return Ue(this,arguments,function*(n,e={}){const r=typeof n=="string"?n:n.toString(),i=yield fetch(r,e);let o=null;try{o=yield i.json()}catch(a){o=null}if(i.ok&&o)return o;const s={success:!1,errorMessage:typeof(o==null?void 0:o.errorMessage)=="string"&&o.errorMessage.trim()?o.errorMessage:i.statusText||String(i.status),errorCode:typeof(o==null?void 0:o.errorCode)=="number"?o.errorCode:void 0};return pt(pt({},o||{}),s)})}function uv(n,e,t){return Ue(this,null,function*(){const r=`${n}${oi.CLAIM}`;return si(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function dv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${oi.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),si(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function cv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${oi.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),si(r,{headers:i})})}function hv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${oi.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),si(r,{headers:i})})}function fv(n){Rr(n,"svelte-1i2lkdw",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #e6e6e6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586b));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #ffffff));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00aeef))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #ffffff));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53b65a));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6d6d6d));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #ffffff));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #ffffff));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4e5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9c9c9c));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #ffffff));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #f39c12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#f4f4f4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #fd2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #d1d1d1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #c1c1c1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #ffffff))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00aeef);background:var(--emw--color-primary-50, #fbecf4);color:var(--emw--color-primary, #00aeef)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #fd2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #ffffff));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00aeef));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #f9f8f8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586b));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586b));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));color:var(--emw--bonus-modal-text, var(--emw--color-white, #ffffff))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function ul(n,e,t){const r=n.slice();return r[65]=e[t],r}function dl(n,e,t){const r=n.slice();return r[68]=e[t],r}function cl(n){let e,t=n[29](`bonusCard.${n[68]}`)+"",r,i,o,s,a=[{type:"button"},n[28]("BonusStatusFilter"),{disabled:n[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return n[46](n[68])}return{c(){e=E("button"),r=M(t),i=z(),P(e,l),le(e,"active",n[68]===n[25])},m(d,c){L(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Ae(e,"click",u),o=!0)},p(d,c){n=d,c[0]&536870912&&t!==(t=n[29](`bonusCard.${n[68]}`)+"")&&ie(r,t,l.contenteditable),P(e,l=ke(a,[{type:"button"},c[0]&268435456&&n[28]("BonusStatusFilter"),c[0]&8192&&{disabled:n[13]}])),le(e,"active",n[68]===n[25])},d(d){d&&I(e),o=!1,s()}}}function pv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,_,b,w,v=n[29]("bonus.to")+"",g,T,y,S,x,R=n[29]("bonus.filter")+"",G,j,F,O,$=[H("BonusCalendarTitle")],X={};for(let Y=0;Y<$.length;Y+=1)X=k(X,$[Y]);let ne=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},H("VaadinDatePicker")],B={};for(let Y=0;Y<ne.length;Y+=1)B=k(B,ne[Y]);let N=[n[28]("BonusCalendarStartDate")],re={};for(let Y=0;Y<N.length;Y+=1)re=k(re,N[Y]);let be=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},H("VaadinDatePicker")],ue={};for(let Y=0;Y<be.length;Y+=1)ue=k(ue,be[Y]);let Z=[n[28]("BonusCalendarEndDate")],ae={};for(let Y=0;Y<Z.length;Y+=1)ae=k(ae,Z[Y]);let K=[n[28]("BonusCalendarContainer")],se={};for(let Y=0;Y<K.length;Y+=1)se=k(se,K[Y]);let Q=[n[28]("BonusFilterButton"),{disabled:j=n[13]||n[21]}],J={};for(let Y=0;Y<Q.length;Y+=1)J=k(J,Q[Y]);let C=[H("BonusCalendarContent")],D={};for(let Y=0;Y<C.length;Y+=1)D=k(D,C[Y]);let ce=[n[28]("BonusCalendarWrapper")],Me={};for(let Y=0;Y<ce.length;Y+=1)Me=k(Me,ce[Y]);return{c(){e=E("div"),t=E("div"),i=M(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=M(d),h=z(),f=E("vaadin-date-picker"),_=z(),b=E("div"),w=E("label"),g=M(v),T=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),G=M(R),P(t,X),m(u,"for","BonusCalendarStartDate"),P(f,B),P(l,re),m(w,"for","BonusCalendarEndDate"),P(y,ue),P(b,ae),P(a,se),P(x,J),P(s,D),P(e,Me)},m(Y,W){L(Y,e,W),p(e,t),p(t,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),n[49](f),p(a,_),p(a,b),p(b,w),p(w,g),p(b,T),p(b,y),n[50](y),p(s,S),p(s,x),p(x,G),x.autofocus&&x.focus(),F||(O=[Ae(f,"validated",n[37]),Ae(y,"validated",n[37]),Ae(x,"click",n[51])],F=!0)},p(Y,W){W[0]&536870912&&r!==(r=Y[29]("bonus.canlendarTitle")+"")&&ie(i,r,X.contenteditable),W[0]&536870912&&d!==(d=Y[29]("bonus.from")+"")&&pe(c,d),P(f,B=ke(ne,[{min:Y[30]},{max:Y[31]},W[0]&8388608&&{value:Y[23]},{placeholder:"From"},H("VaadinDatePicker")])),P(l,re=ke(N,[W[0]&268435456&&Y[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=Y[29]("bonus.to")+"")&&pe(g,v),P(y,ue=ke(be,[{min:Y[30]},{max:Y[31]},W[0]&16777216&&{value:Y[24]},{placeholder:"To"},H("VaadinDatePicker")])),P(b,ae=ke(Z,[W[0]&268435456&&Y[28]("BonusCalendarEndDate")])),P(a,se=ke(K,[W[0]&268435456&&Y[28]("BonusCalendarContainer")])),W[0]&536870912&&R!==(R=Y[29]("bonus.filter")+"")&&ie(G,R,J.contenteditable),P(x,J=ke(Q,[W[0]&268435456&&Y[28]("BonusFilterButton"),W[0]&2105344&&j!==(j=Y[13]||Y[21])&&{disabled:j}])),P(e,Me=ke(ce,[W[0]&268435456&&Y[28]("BonusCalendarWrapper")]))},d(Y){Y&&I(e),n[49](null),n[50](null),F=!1,qe(O)}}}function mv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,_,b,w,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],T={};for(let O=0;O<g.length;O+=1)T=k(T,g[O]);let y=[n[28]("BonusClaimButton"),{disabled:_=n[19]||!n[26]}],S={};for(let O=0;O<y.length;O+=1)S=k(S,y[O]);let x=[n[28]("BonusCodeWrapper")],R={};for(let O=0;O<x.length;O+=1)R=k(R,x[O]);let G=n[20]&&hl(n),j=[n[28]("BonusCodeContainer")],F={};for(let O=0;O<j.length;O+=1)F=k(F,j[O]);return{c(){e=E("div"),t=E("label"),r=E("span"),r.textContent="*",o=M(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=M(h),b=z(),G&&G.c(),m(r,"class","Asterisk"),m(t,"for","BonusCode"),P(l,T),P(c,S),P(a,R),P(e,F)},m(O,$){L(O,e,$),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),yr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,b),G&&G.m(e,null),w||(v=[Ae(l,"input",n[47]),Ae(l,"keyup",n[36]),Ae(c,"click",n[48])],w=!0)},p(O,$){$[0]&536870912&&i!==(i=O[29]("bonus.bonusCode")+"")&&pe(o,i),P(l,T=ke(g,[$[0]&268435456&&O[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&536870912&&u!==(u=O[29]("bonus.placeholder"))&&{placeholder:u}])),$[0]&262144&&l.value!==O[18]&&yr(l,O[18]),$[0]&536870912&&h!==(h=O[29]("bonus.claim")+"")&&ie(f,h,S.contenteditable),P(c,S=ke(y,[$[0]&268435456&&O[28]("BonusClaimButton"),$[0]&67633152&&_!==(_=O[19]||!O[26])&&{disabled:_}])),P(a,R=ke(x,[$[0]&268435456&&O[28]("BonusCodeWrapper")])),O[20]?G?G.p(O,$):(G=hl(O),G.c(),G.m(e,null)):G&&(G.d(1),G=null),P(e,F=ke(j,[$[0]&268435456&&O[28]("BonusCodeContainer")]))},d(O){O&&I(e),G&&G.d(),w=!1,qe(v)}}}function hl(n){let e,t=n[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=M(t),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){L(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.invalidBonusCode")+"")&&pe(r,t)},d(i){i&&I(e)}}}function _v(n){let e,t;function r(a,l){return a[12].length>0?yv:a[14]?vv:bv}let i=r(n),o=i(n),s=n[12].length!==0&&pl(n);return{c(){o.c(),e=z(),s&&s.c(),t=nt()},m(a,l){o.m(a,l),L(a,e,l),s&&s.m(a,l),L(a,t,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=pl(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(a){a&&(I(e),I(t)),o.d(a),s&&s.d(a)}}}function gv(n){let e,t=[H("ModalLoader")],r={};for(let i=0;i<t.length;i+=1)r=k(r,t[i]);return{c(){e=E("div"),P(e,r)},m(i,o){L(i,e,o)},p:Be,d(i){i&&I(e)}}}function bv(n){let e,t=n[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=M(t),m(e,"class","NoBonus")},m(i,o){L(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.noBonus")+"")&&pe(r,t)},d(i){i&&I(e)}}}function vv(n){let e,t=n[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=M(t),i=M(": "),o=M(n[14]),m(e,"class","BonusError")},m(s,a){L(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&t!==(t=s[29]("bonus.error")+"")&&pe(r,t),a[0]&16384&&pe(o,s[14])},d(s){s&&I(e)}}}function yv(n){let e,t=Re(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=fl(ul(n,t,s));let i=[H("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();P(e,o)},m(s,a){L(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){t=Re(s[12]);let l;for(l=0;l<t.length;l+=1){const u=ul(s,t,l);r[l]?r[l].p(u,a):(r[l]=fl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(s){s&&I(e),yt(r,s)}}}function fl(n){let e,t,r,i=[{rawbonus:JSON.stringify(n[65]),status:n[25],cmsendpoint:n[3],lang:n[0],clientstyling:n[5],clientstylingurl:n[6],mbsource:n[4],translationurl:n[7],levelcountlimit:n[8],currency:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[n[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),t=E("casino-bonus-card"),r=z(),P(t,o),P(e,a)},m(l,u){L(l,e,u),p(e,t),p(e,r)},p(l,u){P(t,o=ke(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[65]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),P(e,a=ke(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&I(e)}}}function pl(n){let e;return{c(){e=E("casino-bonus-pagination"),Ve(e,"totalitems",n[16]),Ve(e,"currentpage",n[15]),Ve(e,"pagesize",n[2]),Ve(e,"limit",n[17]),Ve(e,"clientstyling",n[5]),Ve(e,"clientstylingurl",n[6]),Ve(e,"mbsource",n[4])},m(t,r){L(t,e,r)},p(t,r){r[0]&65536&&Ve(e,"totalitems",t[16]),r[0]&32768&&Ve(e,"currentpage",t[15]),r[0]&4&&Ve(e,"pagesize",t[2]),r[0]&131072&&Ve(e,"limit",t[17]),r[0]&32&&Ve(e,"clientstyling",t[5]),r[0]&64&&Ve(e,"clientstylingurl",t[6]),r[0]&16&&Ve(e,"mbsource",t[4])},d(t){t&&I(e)}}}function ml(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,_=n[29]("bonus.forfeitConfirm")+"",b,w,v,g=[H("ModalText")],T={};for(let N=0;N<g.length;N+=1)T=k(T,g[N]);let y=[H("ModalCancel")],S={};for(let N=0;N<y.length;N+=1)S=k(S,y[N]);let x=[H("ModalConfirm")],R={};for(let N=0;N<x.length;N+=1)R=k(R,x[N]);let G=[H("ModalButtons")],j={};for(let N=0;N<G.length;N+=1)j=k(j,G[N]);let F=[H("ModalBody")],O={};for(let N=0;N<F.length;N+=1)O=k(O,F[N]);let $=[H("ModalContent")],X={};for(let N=0;N<$.length;N+=1)X=k(X,$[N]);let ne=[n[28]("ModalWrapper")],B={};for(let N=0;N<ne.length;N+=1)B=k(B,ne[N]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),s=M(o),a=z(),l=E("div"),u=E("button"),c=M(d),h=z(),f=E("button"),b=M(_),P(i,T),P(u,S),P(f,R),P(l,j),P(r,O),P(t,X),P(e,B)},m(N,re){L(N,e,re),p(e,t),p(t,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,b),f.autofocus&&f.focus(),w||(v=[Ae(u,"click",n[34]),Ae(f,"click",n[52])],w=!0)},p(N,re){re[0]&536870912&&o!==(o=N[29]("bonus.forfeitMessage")+"")&&ie(s,o,T.contenteditable),re[0]&536870912&&d!==(d=N[29]("bonus.forfeitCancel")+"")&&ie(c,d,S.contenteditable),re[0]&536870912&&_!==(_=N[29]("bonus.forfeitConfirm")+"")&&ie(b,_,R.contenteditable),P(e,B=ke(ne,[re[0]&268435456&&N[28]("ModalWrapper")]))},d(N){N&&I(e),w=!1,qe(v)}}}function wv(n){let e,t,r,i,o,s,a=Re(ba),l=[];for(let y=0;y<a.length;y+=1)l[y]=cl(dl(n,a,y));let u=[n[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]===oe.CLAIMABLE)return mv;if(y[25]===oe.COMPLETED)return pv}let h=c(n),f=h&&h(n);function _(y,S){return y[13]?gv:_v}let b=_(n),w=b(n),v=n[22]&&ml(n),g=[H("BonusesController")],T={};for(let y=0;y<g.length;y+=1)T=k(T,g[y]);return{c(){e=E("div"),t=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),w.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),P(t,d),P(e,T)},m(y,S){L(y,e,S),p(e,t),p(t,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),w.m(e,null),p(e,s),v&&v.m(e,null),n[53](e)},p(y,S){if(S[0]&838868992|S[1]&16){a=Re(ba);let x;for(x=0;x<a.length;x+=1){const R=dl(y,a,x);l[x]?l[x].p(R,S):(l[x]=cl(R),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}P(t,d=ke(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),b===(b=_(y))&&w?w.p(y,S):(w.d(1),w=b(y),w&&(w.c(),w.m(e,s))),y[22]?v?v.p(y,S):(v=ml(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Be,o:Be,d(y){y&&I(e),yt(l,y),f&&f.d(),w.d(),v&&v.d(),n[53](null)}}}function Cv(n,e,t){let r,i,o;xl(n,tu,q=>t(29,o=q));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:b=""}=e,{levelcountlimit:w="3"}=e,{onlyoneclick:v=!1}=e,{excludedtypes:g=""}=e,T=window.navigator.userAgent,y=!1,S=[],x=!0,R="",G="",j=1,F=0,O=2,$=xn(Ds(new Date,eb),"yyyy-MM-dd"),X=xn(new Date,"yyyy-MM-dd"),ne=xn(Ds(new Date,tb),"yyyy-MM-dd"),B,N,re="",be=!0,ue=!1,Z=!1,ae=!1,K=ne,se=X,Q,J,C=oe.ACTIVE,D=!0,ce="";uu(T)&&(y=!0,O=1);let Me=!1,Y=g;const W=()=>{fetch(b).then(Pe=>Pe.json()).then(Pe=>{Object.keys(Pe).forEach(He=>{xr(He,Pe[He])})}).catch(Pe=>{console.log(Pe)})};Object.keys(Tr).forEach(q=>{xr(q,Tr[q])}),Fr(()=>(window.addEventListener("message",xe,!1),t(43,Me=!0),()=>{Q==null||Q.removeEventListener("change",ot),J==null||J.removeEventListener("change",V),window.removeEventListener("message",xe),t(43,Me=!1)}));const xe=q=>{switch(q.data.type){case"PaginationChange":t(15,j=q.data.page),Fe(j);break;case"OnBonusClaimed":Xe(q.data.bonusCode);break;case"OnBonusForfeit":t(27,ce=q.data.bonus.id),t(22,ae=!0);break}},Ce=()=>Ue(this,null,function*(){Fe(1)}),Xe=(q,Pe)=>Ue(this,null,function*(){t(26,D=!1);const He=yield uv(s,l,{bonusCode:q,currency:u});if(!He.success){G=He.errorMessage||"",Pe?t(20,ue=!0):window.postMessage({type:"OnBonusClaimError",message:G,bonusCode:q}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,D=!0);return}t(20,ue=!1),Fe(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,D=!0)}),it=q=>Ue(this,null,function*(){t(26,D=!1);const Pe=yield dv(s,l,{bonusWalletID:q});if(!Pe.success){t(14,R=Pe.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,D=!0),t(22,ae=!1);return}Fe(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,D=!0),t(22,ae=!1)}),Ht=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,ae=!1)},Fe=q=>Ue(this,null,function*(){j!==q&&t(15,j=q);const Pe=(q-1)*Number(d);t(13,x=!0),t(12,S=[]);const He=yield Rt(s,l,Pe,{lang:a,limit:d});if(!He.success){t(14,R=He.errorMessage),t(13,x=!1);return}const{list:Et,total:cn}=db(He);t(16,F=cn),t(12,S=Et),t(13,x=!1)}),Rt=(cn,Fd,Ud,...zd)=>Ue(this,[cn,Fd,Ud,...zd],function*(q,Pe,He,Et={}){const{limit:er="",lang:tr=a}=Et,A=ub(g),U=Hd(A);switch(C){case oe.CLAIMABLE:{const ee={pagination:`limit=${er},offset=${He}`,language:tr,type:U};return v===!0&&(ee.selectable=v),yield hv(q,Pe,ee)}default:{const ee=fb({limit:er,language:tr,offset:He,bonusStatus:C,bonusCalendarStartDate:K,bonusCalendarEndDate:se,invalidDate:Z,lastMonth:ne,maxDate:X,excludedTypes:A});return yield cv(q,Pe,ee)}}}),ot=q=>{t(23,K=q.target.value)},V=q=>{t(24,se=q.target.value)},ye=()=>{Q.removeEventListener("change",ot),J.removeEventListener("change",V),Q.addEventListener("change",ot,!1),J.addEventListener("change",V,!1)},Xn=()=>{t(20,ue=!1),t(19,be=!cb(re))},Zn=q=>{const{valid:Pe}=q.detail,{start:He,end:Et}=lb(K,se);t(23,K=He),t(24,se=Et);const cn=hb(K,se,Pe);t(21,Z=cn.invalidDate)},ai=q=>{t(25,C=q),Fe(1)};function li(){re=this.value,t(18,re)}const ui=()=>{Xe(re,!0)};function di(q){lt[q?"unshift":"push"](()=>{Q=q,t(10,Q)})}function ci(q){lt[q?"unshift":"push"](()=>{J=q,t(11,J)})}const Kn=()=>Fe(1),Jn=()=>it(ce);function Qn(q){lt[q?"unshift":"push"](()=>{B=q,t(9,B)})}return n.$$set=q=>{"endpoint"in q&&t(38,s=q.endpoint),"lang"in q&&t(0,a=q.lang),"session"in q&&t(39,l=q.session),"currency"in q&&t(1,u=q.currency),"limit"in q&&t(2,d=q.limit),"cmsendpoint"in q&&t(3,c=q.cmsendpoint),"mbsource"in q&&t(4,h=q.mbsource),"clientstyling"in q&&t(5,f=q.clientstyling),"clientstylingurl"in q&&t(6,_=q.clientstylingurl),"translationurl"in q&&t(7,b=q.translationurl),"levelcountlimit"in q&&t(8,w=q.levelcountlimit),"onlyoneclick"in q&&t(40,v=q.onlyoneclick),"excludedtypes"in q&&t(41,g=q.excludedtypes)},n.$$.update=()=>{n.$$.dirty[0]&3072&&Q&&J&&ye(),n.$$.dirty[1]&2048&&t(28,r=(q,Pe="")=>H(`${q}${y?` ${q}Mobile`:""}`,Pe)),n.$$.dirty[0]&1&&a&&nu(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(45,i=s&&l&&a&&d),n.$$.dirty[1]&16384&&i&&Ce(),n.$$.dirty[1]&29696&&Me&&i&&g!==Y&&(t(44,Y=g),Fe(1)),n.$$.dirty[0]&544&&f&&B&&Xr(B,f),n.$$.dirty[0]&576&&_&&B&&Zr(B,_),n.$$.dirty[0]&528&&h&&B&&Kr(B,`${h}.Style`,N),n.$$.dirty[0]&128&&b&&W()},[a,u,d,c,h,f,_,b,w,B,Q,J,S,x,R,j,F,O,re,be,ue,Z,ae,K,se,C,D,ce,r,o,$,X,Xe,it,Ht,Fe,Xn,Zn,s,l,v,g,y,Me,Y,i,ai,li,ui,di,ci,Kn,Jn,Qn]}class Rd extends Vr{constructor(e){super(),Ur(this,e,Cv,wv,zn,{endpoint:38,lang:0,session:39,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8,onlyoneclick:40,excludedtypes:41},fv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),de()}get excludedtypes(){return this.$$.ctx[41]}set excludedtypes(e){this.$$set({excludedtypes:e}),de()}}zr(Rd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"},excludedtypes:{}},[],[],!0);exports.default=Rd;