@everymatrix/casino-bonuses-controller 1.93.15 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoBonusesController-R_L19NpA.js → CasinoBonusesController-BDlv9b7H.js} +6199 -6380
- package/components/{CasinoBonusesController-DcQZX9bu.js → CasinoBonusesController-C57adi-Z.js} +7054 -7246
- package/components/CasinoBonusesController-CUB22SHo.cjs +3577 -0
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/esnext/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoBonusesController-B5-f6HZL.cjs +0 -3577
|
@@ -0,0 +1,3577 @@
|
|
|
1
|
+
"use strict";var Fd=Object.defineProperty,Ud=Object.defineProperties;var zd=Object.getOwnPropertyDescriptors;var Qn=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable;var li=(n,e,t)=>e in n?Fd(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ft=(n,e)=>{for(var t in e||(e={}))Zo.call(e,t)&&li(n,t,e[t]);if(Qn)for(var t of Qn(e))Ko.call(e,t)&&li(n,t,e[t]);return n},er=(n,e)=>Ud(n,zd(e));var Jo=(n,e)=>{var t={};for(var r in n)Zo.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Qn)for(var r of Qn(n))e.indexOf(r)<0&&Ko.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(li(n,typeof e!="symbol"?e+"":e,t),t);var ze=(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 vl(n){return n()}function Qo(){return Object.create(null)}function qe(n){n.forEach(vl)}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 tr;function es(n,e){return n===e?!0:(tr||(tr=document.createElement("a")),tr.href=e,n===tr.href)}function $d(n){return Object.keys(n).length===0}function yl(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 wl(n,e,t){n.$$.on_destroy.push(yl(e,t))}function $n(n,e,t,r){if(n){const i=Cl(n,e,t,r);return n[0](i)}}function Cl(n,e,t,r){return n[1]&&r?k(t.ctx.slice(),n[1](r(e))):t.ctx}function Vn(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=Cl(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 Vd(n){return n&&Un(n.destroy)?n.destroy:Me}const Wd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Ir(n,e,t){const r=jd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,Gd(r,i)}}function jd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Gd(n,e){return p(n.head||n,e),e.sheet}function N(n,e,t){n.insertBefore(e,t||null)}function I(n){n.parentNode&&n.parentNode.removeChild(n)}function vt(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 Yd=["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&&Yd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function El(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 xl(n){return n===""?null:+n}function qd(n){return Array.from(n.childNodes)}function pe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Xd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~Wd.indexOf(t)?Xd(n,e):pe(n,e)}function gr(n,e){n.value=e==null?"":e}function ts(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 Zd(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Sn;function En(n){Sn=n}function Kd(){if(!Sn)throw new Error("Function called outside component initialization");return Sn}function Nr(n){Kd().$$.on_mount.push(n)}const Wt=[],st=[];let Yt=[];const ns=[],Jd=Promise.resolve();let Li=!1;function Qd(){Li||(Li=!0,Jd.then(ue))}function Hi(n){Yt.push(n)}const ui=new Set;let Ut=0;function ue(){if(Ut!==0)return;const n=Sn;do{try{for(;Ut<Wt.length;){const e=Wt[Ut];Ut++,En(e),ec(e.$$)}}catch(e){throw Wt.length=0,Ut=0,e}for(En(null),Wt.length=0,Ut=0;st.length;)st.pop()();for(let e=0;e<Yt.length;e+=1){const t=Yt[e];ui.has(t)||(ui.add(t),t())}Yt.length=0}while(Wt.length);for(;ns.length;)ns.pop()();Li=!1,ui.clear(),En(n)}function ec(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(Hi)}}function tc(n){const e=[],t=[];Yt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Yt=e}const dr=new Set;let Pt;function Al(){Pt={r:0,c:[],p:Pt}}function Tl(){Pt.r||qe(Pt.c),Pt=Pt.p}function Ze(n,e){n&&n.i&&(dr.delete(n),n.i(e))}function ut(n,e,t,r){if(n&&n.o){if(dr.has(n))return;dr.add(n),Pt.c.push(()=>{dr.delete(n),r&&(t&&n.d(1),r())}),n.o(e)}else r&&r()}function Fe(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 nc(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),Hi(()=>{const o=n.$$.on_mount.map(vl).filter(Un);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach(Hi)}function rc(n,e){const t=n.$$;t.fragment!==null&&(tc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ic(n,e){n.$$.dirty[0]===-1&&(Wt.push(n),Qd(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Lr(n,e,t,r,i,o,s=null,a=[-1]){const l=Sn;En(n);const u=n.$$={fragment:null,ctx:[],props:o,update:Me,not_equal:i,bound:Qo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Qo(),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 b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&ic(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=qd(e.target);u.fragment&&u.fragment.l(c),c.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),nc(n,e.target,e.anchor),ue()}En(l)}let Pl;typeof HTMLElement=="function"&&(Pl=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 ze(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&&I(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Zd(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]=cr(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:er(ft({},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=cr(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]=cr(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 cr(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 Hr(n,e,t,r,i,o){let s=class extends Pl{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=cr(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 Rr{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){rc(this,1),this.$destroy=Me}$on(e,t){if(!Un(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&&!$d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oc);const zt=[];function sc(n,e){return{subscribe:Fr(n,e).subscribe}}function Fr(n,e=Me){let t;const r=new Set;function i(a){if(zn(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 sc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=Un(b)?b:Me},f=i.map((b,_)=>yl(b,C=>{u[_]=C,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function ac(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lc=function(e){return uc(e)&&!dc(e)};function uc(n){return!!n&&typeof n=="object"}function dc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||fc(n)}var cc=typeof Symbol=="function"&&Symbol.for,hc=cc?Symbol.for("react.element"):60103;function fc(n){return n.$$typeof===hc}function pc(n){return Array.isArray(n)?[]:{}}function kn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Jt(pc(n),n,e):n}function mc(n,e,t){return n.concat(e).map(function(r){return kn(r,t)})}function _c(n,e){if(!e.customMerge)return Jt;var t=e.customMerge(n);return typeof t=="function"?t:Jt}function gc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function rs(n){return Object.keys(n).concat(gc(n))}function Sl(n,e){try{return e in n}catch(t){return!1}}function bc(n,e){return Sl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function vc(n,e,t){var r={};return t.isMergeableObject(n)&&rs(n).forEach(function(i){r[i]=kn(n[i],t)}),rs(e).forEach(function(i){bc(n,i)||(Sl(n,i)&&t.isMergeableObject(e[i])?r[i]=_c(i,t)(n[i],e[i],t):r[i]=kn(e[i],t))}),r}function Jt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||mc,t.isMergeableObject=t.isMergeableObject||lc,t.cloneUnlessOtherwiseSpecified=kn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):vc(n,e,t):kn(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 yc=Jt,wc=yc;const Cc=ac(wc);var Ri=function(n,e){return Ri=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])},Ri(n,e)};function Ur(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ri(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 Ec(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 di(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 ci(n,e){var t=e&&e.cache?e.cache:Dc,r=e&&e.serializer?e.serializer:Sc,i=e&&e.strategy?e.strategy:Tc;return i(n,{cache:t,serializer:r})}function xc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Ac(n,e,t,r){var i=xc(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function kl(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 Dl(n,e,t,r,i){return t.bind(e,n,r,i)}function Tc(n,e){var t=n.length===1?Ac:kl;return Dl(n,this,t,e.cache.create(),e.serializer)}function Pc(n,e){return Dl(n,this,kl,e.cache.create(),e.serializer)}var Sc=function(){return JSON.stringify(arguments)},kc=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}(),Dc={create:function(){return new kc}},hi={variadic:Pc},br=function(){return br=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},br.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 is(n){return n.type===Ee.literal}function Mc(n){return n.type===Ee.argument}function Ml(n){return n.type===Ee.number}function Bl(n){return n.type===Ee.date}function Ol(n){return n.type===Ee.time}function Il(n){return n.type===Ee.select}function Nl(n){return n.type===Ee.plural}function Bc(n){return n.type===Ee.pound}function Ll(n){return n.type===Ee.tag}function Hl(n){return!!(n&&typeof n=="object"&&n.type===Qt.number)}function Fi(n){return!!(n&&typeof n=="object"&&n.type===Qt.dateTime)}var Rl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Oc=/(?:[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 Ic(n){var e={};return n.replace(Oc,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 Nc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Lc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Nc).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 Hc(n){return n.replace(/^(.*?)-/,"")}var os=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fl=/^(@+)?(\+|#+)?[rs]?$/g,Rc=/(\*)(0+)|(#+)(0+)|(0+)/g,Ul=/^(0+)$/;function ss(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Fl,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 zl(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 Fc(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)),!Ul.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function as(n){var e={},t=zl(n);return t||e}function Uc(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=Hc(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),as(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),as(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(Rc,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(Ul.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(os.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(os,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),ss(o)));continue}if(Fl.test(i.stem)){e=Se(Se({},e),ss(i.stem));continue}var s=zl(i.stem);s&&(e=Se(Se({},e),s));var a=Fc(i.stem);a&&(e=Se(Se({},e),a))}return e}var nr={"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 zc(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=$c(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 $c(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=nr[r||""]||nr[t||""]||nr["".concat(t,"-001")]||nr["001"];return i[0]}var fi,Vc=new RegExp("^".concat(Rl.source,"*")),Wc=new RegExp("".concat(Rl.source,"*$"));function fe(n,e){return{start:n,end:e}}var jc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gc=!!String.fromCodePoint,Yc=!!Object.fromEntries,qc=!!String.prototype.codePointAt,Xc=!!String.prototype.trimStart,Zc=!!String.prototype.trimEnd,Kc=!!Number.isSafeInteger,Jc=Kc?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Ui=!0;try{var Qc=Vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ui=((fi=Qc.exec("a"))===null||fi===void 0?void 0:fi[0])==="a"}catch(n){Ui=!1}var ls=jc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},zi=Gc?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},us=Yc?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},$l=qc?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}},eh=Xc?function(e){return e.trimStart()}:function(e){return e.replace(Vc,"")},th=Zc?function(e){return e.trimEnd()}:function(e){return e.replace(Wc,"")};function Vl(n,e){return new RegExp(n,e)}var $i;if(Ui){var ds=Vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=function(e,t){var r;ds.lastIndex=t;var i=ds.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else $i=function(e,t){for(var r=[];;){var i=$l(e,t);if(i===void 0||Wl(i)||oh(i))break;r.push(i),t+=i>=65536?2:1}return zi.apply(void 0,r)};var nh=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(ce.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Vi(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()||!Vi(this.char()))return this.error(ce.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.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(ce.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,fe(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,fe(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ih(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||!rh(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 zi.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(),zi(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,fe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,fe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.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(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$i(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(ce.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=th(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=fe(i,this.clonePosition());if(u&&ls(u==null?void 0:u.style,"::",0)){var C=eh(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(C,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(C.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var v=C;this.locale&&(v=zc(C,this.locale));var h={type:Qt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ic(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:_,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,fe(A,br({},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,fe(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 b=this.tryParseArgumentClose(i);if(b.err)return b;var F=fe(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:us(x.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:us(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,fe(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.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(ce.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=Lc(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Uc(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=fe(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,fe(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,t,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.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"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.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,Jc(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=$l(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(ls(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()&&Wl(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 Vi(n){return n>=97&&n<=122||n>=65&&n<=90}function rh(n){return Vi(n)||n===47}function ih(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 Wl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function oh(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 Wi(n){n.forEach(function(e){if(delete e.location,Il(e)||Nl(e))for(var t in e.options)delete e.options[t].location,Wi(e.options[t].value);else Ml(e)&&Hl(e.style)||(Bl(e)||Ol(e))&&Fi(e.style)?delete e.style.location:Ll(e)&&Wi(e.children)})}function sh(n,e){e===void 0&&(e={}),e=br({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new nh(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||Wi(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 zr=function(n){Ur(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),cs=function(n){Ur(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}(zr),ah=function(n){Ur(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}(zr),lh=function(n){Ur(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}(zr),$e;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})($e||($e={}));function uh(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==$e.literal||t.type!==$e.literal?e.push(t):r.value+=t.value,e},[])}function dh(n){return typeof n=="function"}function hr(n,e,t,r,i,o,s){if(n.length===1&&is(n[0]))return[{type:$e.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(is(d)){a.push({type:$e.literal,value:d.value});continue}if(Bc(d)){typeof o=="number"&&a.push({type:$e.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new lh(c,s);var h=i[c];if(Mc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?$e.literal:$e.object,value:h});continue}if(Bl(d)){var f=typeof d.style=="string"?r.date[d.style]:Fi(d.style)?d.style.parsedOptions:void 0;a.push({type:$e.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ol(d)){var f=typeof d.style=="string"?r.time[d.style]:Fi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:$e.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ml(d)){var f=typeof d.style=="string"?r.number[d.style]:Hl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:$e.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(Ll(d)){var b=d.children,_=d.value,C=i[_];if(!dh(C))throw new ah(_,"function",s);var v=hr(b,e,t,r,i,o),g=C(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"?$e.literal:$e.object,value:S}}))}if(Il(d)){var A=d.options[h]||d.options.other;if(!A)throw new cs(d.value,h,Object.keys(d.options),s);a.push.apply(a,hr(A.value,e,t,r,i));continue}if(Nl(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new zr(`Intl.PluralRules is not available in this environment.
|
|
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 cs(d.value,h,Object.keys(d.options),s);a.push.apply(a,hr(A.value,e,t,r,i,h-(d.offset||0)));continue}}return uh(a)}function ch(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 hh(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=ch(n[r],e[r]),t},tt({},n)):n}function pi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function fh(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.number),strategy:hi.variadic}),getDateTimeFormat:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.dateTime),strategy:hi.variadic}),getPluralRules:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.pluralRules),strategy:hi.variadic})}}var ph=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!==$e.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 hr(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=Ec(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=hh(n.formats,r),this.formatters=i&&i.formatters||fh(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=sh,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 mh(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 _t={},_h=(n,e,t)=>t&&(e in _t||(_t[e]={}),n in _t[e]||(_t[e][n]=t),t),jl=(n,e)=>{if(e==null)return;if(e in _t&&n in _t[e])return _t[e][n];const t=$r(e);for(let r=0;r<t.length;r++){const i=t[r],o=bh(i,n);if(o)return _h(n,e,o)}};let Eo;const Gn=Fr({});function gh(n){return Eo[n]||null}function Gl(n){return n in Eo}function bh(n,e){if(!Gl(n))return null;const t=gh(n);return mh(t,e)}function vh(n){if(n==null)return;const e=$r(n);for(let t=0;t<e.length;t++){const r=e[t];if(Gl(r))return r}}function Yl(n,...e){delete _t[n],Gn.update(t=>(t[n]=Cc.all([t[n]||{},...e]),t))}an([Gn],([n])=>Object.keys(n));Gn.subscribe(n=>Eo=n);const fr={};function yh(n,e){fr[n].delete(e),fr[n].size===0&&delete fr[n]}function ql(n){return fr[n]}function wh(n){return $r(n).map(e=>{const t=ql(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function ji(n){return n==null?!1:$r(n).some(e=>{var t;return(t=ql(e))==null?void 0:t.size})}function Ch(n,e){return Promise.all(e.map(r=>(yh(n,r),r().then(i=>i.default||i)))).then(r=>Yl(n,...r))}const fn={};function Xl(n){if(!ji(n))return n in fn?fn[n]:Promise.resolve();const e=wh(n);return fn[n]=Promise.all(e.map(([t,r])=>Ch(t,r))).then(()=>{if(ji(n))return Xl(n);delete fn[n]}),fn[n]}const Eh={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"}}},xh={fallbackLocale:null,loadingDelay:200,formats:Eh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ah=xh;function tn(){return Ah}const mi=Fr(!1);var Th=Object.defineProperty,Ph=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,kh=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,fs=(n,e,t)=>e in n?Th(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Mh=(n,e)=>{for(var t in e||(e={}))kh.call(e,t)&&fs(n,t,e[t]);if(hs)for(var t of hs(e))Dh.call(e,t)&&fs(n,t,e[t]);return n},Bh=(n,e)=>Ph(n,Sh(e));let Gi;const vr=Fr(null);function ps(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $r(n,e=tn().fallbackLocale){const t=ps(n);return e?[...new Set([...t,...ps(e)])]:t}function It(){return Gi!=null?Gi:void 0}vr.subscribe(n=>{Gi=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Oh=n=>{if(n&&vh(n)&&ji(n)){const{loadingDelay:e}=tn();let t;return typeof window!="undefined"&&It()!=null&&e?t=window.setTimeout(()=>mi.set(!0),e):mi.set(!0),Xl(n).then(()=>{vr.set(n)}).finally(()=>{clearTimeout(t),mi.set(!1)})}return vr.set(n)},ln=Bh(Mh({},vr),{set:Oh}),Vr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Ih=Object.defineProperty,yr=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,ms=(n,e,t)=>e in n?Ih(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,xo=(n,e)=>{for(var t in e||(e={}))Zl.call(e,t)&&ms(n,t,e[t]);if(yr)for(var t of yr(e))Kl.call(e,t)&&ms(n,t,e[t]);return n},un=(n,e)=>{var t={};for(var r in n)Zl.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&yr)for(var r of yr(n))e.indexOf(r)<0&&Kl.call(n,r)&&(t[r]=n[r]);return t};const Dn=(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.`)},Nh=Vr(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=Dn("number",r)),new Intl.NumberFormat(t,i)}),Lh=Vr(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=Dn("date",r):Object.keys(i).length===0&&(i=Dn("date","short")),new Intl.DateTimeFormat(t,i)}),Hh=Vr(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=Dn("time",r):Object.keys(i).length===0&&(i=Dn("time","short")),new Intl.DateTimeFormat(t,i)}),Rh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Nh(xo({locale:t},r))},Fh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Lh(xo({locale:t},r))},Uh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Hh(xo({locale:t},r))},zh=Vr((n,e=It())=>new ph(n,e,tn().formats,{ignoreTag:tn().ignoreTag})),$h=(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=jl(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=zh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},Vh=(n,e)=>Uh(e).format(n),Wh=(n,e)=>Fh(e).format(n),jh=(n,e)=>Rh(e).format(n),Gh=(n,e=It())=>jl(n,e),Jl=an([ln,Gn],()=>$h);an([ln],()=>Vh);an([ln],()=>Wh);an([ln],()=>jh);an([ln,Gn],()=>Gh);function wr(n,e){Yl(n,e)}function Ql(n){ln.set(n)}/*! *****************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation.
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
***************************************************************************** */var Yi=function(n,e){return Yi=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])},Yi(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");Yi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function qi(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 Xi(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 Zi(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 eu(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 _i=eu(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
17
|
+
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ki(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Wr=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=qi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}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(_){o=_ instanceof _i?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=qi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{_s(b)}catch(_){o=o!=null?o:[],_ instanceof _i?o=Zi(Zi([],Xi(o)),Xi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new _i(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)_s(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)&&Ki(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Ki(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),tu=Wr.EMPTY;function nu(n){return n instanceof Wr||n&&"closed"in n&&at(n.remove)&&at(n.add)&&at(n.unsubscribe)}function _s(n){at(n)?n():n.unsubscribe()}var Yh={Promise:void 0},qh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Zi([n,e],Xi(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Xh(n){qh.setTimeout(function(){throw n})}function gs(){}function pr(n){n()}var ru=function(n){Yn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,nu(t)&&t.add(r)):r.destination=Jh,r}return e.create=function(t,r,i){return new Ji(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}(Wr),Zh=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){rr(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){rr(r)}else rr(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){rr(t)}},n}(),Ji=function(n){Yn(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 Zh(s),o}return e}(ru);function rr(n){Xh(n)}function Kh(n){throw n}var Jh={closed:!0,next:gs,error:Kh,complete:gs},Qh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ef(n){return n}function tf(n){return n.length===0?ef:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var bs=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=rf(e)?e:new Ji(e,t,r);return pr(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=vs(t),new t(function(i,o){var s=new Ji({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[Qh]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=vs(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 vs(n){var e;return(e=n!=null?n:Yh.Promise)!==null&&e!==void 0?e:Promise}function nf(n){return n&&at(n.next)&&at(n.error)&&at(n.complete)}function rf(n){return n&&n instanceof ru||nf(n)&&nu(n)}var of=eu(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),iu=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 ys(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new of},e.prototype.next=function(t){var r=this;pr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=qi(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;pr(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;pr(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?tu:(this.currentObservers=null,a.push(t),new Wr(function(){r.currentObservers=null,Ki(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 bs;return t.source=this,t},e.create=function(t,r){return new ys(t,r)},e}(bs),ys=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:tu},e}(iu),ou={now:function(){return(ou.delegate||Date).now()},delegate:void 0},sf=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=ou);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}(iu);const ws=[],Cs={},af=(n,e=0)=>{if(ws.indexOf(n)==-1){const t=new sf(e);Cs[n]=t,ws.push(n)}return Cs[n]};window.emWidgets={topic:af};const su=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 Cr={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 jr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function Gr(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 Yr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=lf(n,e),t;window[jt]||(window[jt]={}),t=uf(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 lf(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function uf(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 Er(n){"@babel/helpers - typeof";return Er=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},Er(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||Er(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 df(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 cf(n,e){He(2,arguments);var t=Ke(n).getTime(),r=dt(e);return new Date(t+r)}var hf={};function qr(){return hf}function ff(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 pf(n){return He(1,arguments),n instanceof Date||Er(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function mf(n){if(He(1,arguments),!pf(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function _f(n,e){He(2,arguments);var t=dt(e);return cf(n,-t)}var gf=864e5;function bf(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/gf)+1}function xr(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 au(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=xr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=xr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function vf(n){He(1,arguments);var e=au(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=xr(t);return r}var yf=6048e5;function wf(n){He(1,arguments);var e=Ke(n),t=xr(e).getTime()-vf(e).getTime();return Math.round(t/yf)+1}function Ar(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=qr(),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(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function lu(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=Ke(n),c=d.getUTCFullYear(),h=qr(),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 b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=Ar(b,e),C=new Date(0);C.setUTCFullYear(c,0,f),C.setUTCHours(0,0,0,0);var v=Ar(C,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function Cf(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=qr(),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=lu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=Ar(f,e);return b}var Ef=6048e5;function xf(n,e){He(1,arguments);var t=Ke(n),r=Ar(t,e).getTime()-Cf(t,e).getTime();return Math.round(r/Ef)+1}function ye(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var pt={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ye(r+1,2)},d:function(e,t){return ye(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 ye(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ye(e.getUTCHours(),t.length)},m:function(e,t){return ye(e.getUTCMinutes(),t.length)},s:function(e,t){return ye(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 ye(o,t.length)}},$t={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Af={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 pt.y(e,t)},Y:function(e,t,r,i){var o=lu(e,i),s=o>0?o:1-o;if(t==="YY"){var a=s%100;return ye(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,t.length)},R:function(e,t){var r=au(e);return ye(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ye(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 ye(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 ye(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 pt.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 ye(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=xf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,t.length)},I:function(e,t,r){var i=wf(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):pt.d(e,t)},D:function(e,t,r){var i=bf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(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 ye(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 ye(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 ye(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 pt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):pt.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):pt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pt.s(e,t)},S:function(e,t){return pt.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 xs(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 xs(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"+Es(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"+Es(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 ye(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,t.length)}};function Es(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+ye(o,2)}function xs(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ye(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+t+s}var As=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"})}},uu=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"})}},Tf=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return As(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}}",As(i,t)).replace("{{time}}",uu(o,t))},Pf={p:uu,P:Tf},Sf=["D","DD"],kf=["YY","YYYY"];function Df(n){return Sf.indexOf(n)!==-1}function Mf(n){return kf.indexOf(n)!==-1}function Ts(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 Bf={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"}},Of=function(e,t,r){var i,o=Bf[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 gi(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 If={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hf={date:gi({formats:If,defaultWidth:"full"}),time:gi({formats:Nf,defaultWidth:"full"}),dateTime:gi({formats:Lf,defaultWidth:"full"})},Rf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ff=function(e,t,r,i){return Rf[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 Uf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$f={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"]},Vf={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"]},Wf={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"}},jf={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"}},Gf=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"},Yf={ordinalNumber:Gf,era:pn({values:Uf,defaultWidth:"wide"}),quarter:pn({values:zf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pn({values:$f,defaultWidth:"wide"}),day:pn({values:Vf,defaultWidth:"wide"}),dayPeriod:pn({values:Wf,defaultWidth:"wide",formattingValues:jf,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)?Xf(a,function(c){return c.test(s)}):qf(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 qf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Xf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function Zf(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 Kf=/^(\d+)(th|st|nd|rd)?/i,Jf=/\d+/i,Qf={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},ep={any:[/^b/i,/^(a|c)/i]},tp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},np={any:[/1/i,/2/i,/3/i,/4/i]},rp={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},ip={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]},op={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},sp={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]},ap={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},lp={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}},up={ordinalNumber:Zf({matchPattern:Kf,parsePattern:Jf,valueCallback:function(e){return parseInt(e,10)}}),era:mn({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:ep,defaultParseWidth:"any"}),quarter:mn({matchPatterns:tp,defaultMatchWidth:"wide",parsePatterns:np,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mn({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any"}),day:mn({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:ap,defaultMatchWidth:"any",parsePatterns:lp,defaultParseWidth:"any"})},dp={code:"en-US",formatDistance:Of,formatLong:Hf,formatRelative:Ff,localize:Yf,match:up,options:{weekStartsOn:0,firstWeekContainsDate:1}},cp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fp=/^'([^]*?)'?$/,pp=/''/g,mp=/[a-zA-Z]/;function xn(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,b,_,C;He(2,arguments);var v=String(e),g=qr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:dp,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=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(C=_.options)===null||C===void 0?void 0:C.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(!mf(x))throw new RangeError("Invalid time value");var F=ff(x),j=_f(x,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:A,_originalDate:x},R=v.match(hp).map(function(B){var V=B[0];if(V==="p"||V==="P"){var Q=Pf[V];return Q(B,A.formatLong)}return B}).join("").match(cp).map(function(B){if(B==="''")return"'";var V=B[0];if(V==="'")return _p(B);var Q=Af[V];if(Q)return Mf(B)&&Ts(B,e,String(n)),Df(B)&&Ts(B,e,String(n)),Q(j,B,A.localize,G);if(V.match(mp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return B}).join("");return R}function _p(n){var e=n.match(fp);return e?e[1].replace(pp,"'"):n}function Ps(n,e){He(2,arguments);var t=dt(e);return df(n,-t)}/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
21
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22
|
+
*/function rt(n,e="24.5.10"){Object.defineProperty(n,"version",{get(){return e}});const t=customElements.get(n.is);if(!t)customElements.define(n.is,n);else{const r=t.version;r&&n.version&&r===n.version?console.warn(`The component ${n.is} has been loaded twice`):console.error(`Tried to define ${n.is} version ${n.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
25
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
26
|
+
*/class gp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(gp);/**
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2019 Google LLC
|
|
29
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
+
*/const mr=globalThis,Ao=mr.ShadowRoot&&(mr.ShadyCSS===void 0||mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,To=Symbol(),Ss=new WeakMap;let Po=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==To)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(Ao&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Ss.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ss.set(t,e))}return e}toString(){return this.cssText}};const bp=n=>new Po(typeof n=="string"?n:n+"",void 0,To),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 Po(t,n,To)},du=(n,e)=>{if(Ao)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=mr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},ks=Ao?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return bp(t)})(n):n;/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/const{is:vp,defineProperty:yp,getOwnPropertyDescriptor:wp,getOwnPropertyNames:Cp,getOwnPropertySymbols:Ep,getPrototypeOf:xp}=Object,gt=globalThis,Ds=gt.trustedTypes,Ap=Ds?Ds.emptyScript:"",bi=gt.reactiveElementPolyfillSupport,An=(n,e)=>n,Qi={toAttribute(n,e){switch(e){case Boolean:n=n?Ap: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}},cu=(n,e)=>!vp(n,e),Ms={attribute:!0,type:String,converter:Qi,reflect:!1,useDefault:!1,hasChanged:cu};var fl,pl;(fl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(pl=gt.litPropertyMetadata)!=null||(gt.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=Ms){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&&yp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=wp(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:Ms}static _$Ei(){if(this.hasOwnProperty(An("elementProperties")))return;const e=xp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(An("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(An("properties"))){const t=this.properties,r=[...Cp(t),...Ep(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(ks(i))}else e!==void 0&&t.push(ks(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 du(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:Qi).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:Qi;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:cu)(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 ze(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 ml;Gt.elementStyles=[],Gt.shadowRootOptions={mode:"open"},Gt[An("elementProperties")]=new Map,Gt[An("finalized")]=new Map,bi==null||bi({ReactiveElement:Gt}),((ml=gt.reactiveElementVersions)!=null?ml:gt.reactiveElementVersions=[]).push("2.1.2");/**
|
|
35
|
+
* @license
|
|
36
|
+
* Copyright 2017 Google LLC
|
|
37
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
+
*/const Tn=globalThis,Bs=n=>n,Tr=Tn.trustedTypes,Os=Tr?Tr.createPolicy("lit-html",{createHTML:n=>n}):void 0,hu="$lit$",mt=`lit$${Math.random().toFixed(9).slice(2)}$`,fu="?"+mt,Tp=`<${fu}>`,Ot=document,Mn=()=>Ot.createComment(""),Bn=n=>n===null||typeof n!="object"&&typeof n!="function",So=Array.isArray,Pp=n=>So(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",vi=`[
|
|
39
|
+
\f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Is=/-->/g,Ns=/>/g,At=RegExp(`>|${vi}(?:([^\\s"'>=/]+)(${vi}*=${vi}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ls=/'/g,Hs=/"/g,pu=/^(?:script|style|textarea|title)$/i,nn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Rs=new WeakMap,St=Ot.createTreeWalker(Ot,129);function mu(n,e){if(!So(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Os!==void 0?Os.createHTML(e):e}const Sp=(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=Is:d[1]!==void 0?s=Ns:d[2]!==void 0?(pu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=At):d[3]!==void 0&&(s=At):s===At?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?At:d[3]==='"'?Hs:Ls):s===Hs||s===Ls?s=At:s===Is||s===Ns?s=_n:(s=At,i=void 0);const f=s===At&&n[a+1].startsWith("/>")?" ":"";o+=s===_n?l+Tp:c>=0?(r.push(u),l.slice(0,c)+hu+l.slice(c)+mt+f):l+mt+(c===-2?a:f)}return[mu(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]=Sp(e,t);if(this.el=On.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(hu)){const h=d[s++],f=i.getAttribute(c).split(mt),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?Dp:b[1]==="?"?Mp:b[1]==="@"?Bp:Xr}),i.removeAttribute(c)}else c.startsWith(mt)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(pu.test(i.tagName)){const c=i.textContent.split(mt),h=c.length-1;if(h>0){i.textContent=Tr?Tr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Mn()),St.nextNode(),l.push({type:2,index:++o});i.append(c[h],Mn())}}}else if(i.nodeType===8)if(i.data===fu)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(mt,c+1))!==-1;)l.push({type:7,index:o}),c+=mt.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=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=rn(n,i._$AS(n,e.values),i,r)),e}class kp{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 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 Op(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 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=rn(this,e,t),Bn(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):Pp(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(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=On.createElement(mu(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 kp(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=Rs.get(e.strings);return t===void 0&&Rs.set(e.strings,t=new On(e)),t}k(e){So(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=Bs(e).nextSibling;Bs(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Xr{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=!Bn(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=!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 Dp extends Xr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Mp extends Xr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Bp extends Xr{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 Op{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 yi=Tn.litHtmlPolyfillSupport;var _l;yi==null||yi(On,qn),((_l=Tn.litHtmlVersions)!=null?_l:Tn.litHtmlVersions=[]).push("3.3.2");const Ip=(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
|
+
* @license
|
|
42
|
+
* Copyright 2017 Google LLC
|
|
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=Ip(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 gl;qt._$litElement$=!0,qt.finalized=!0,(gl=Mt.litElementHydrateSupport)==null||gl.call(Mt,{LitElement:qt});const wi=Mt.litElementPolyfillSupport;wi==null||wi({LitElement:qt});var bl;((bl=Mt.litElementVersions)!=null?bl:Mt.litElementVersions=[]).push("4.2.2");/**
|
|
45
|
+
* @license
|
|
46
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
+
*/const Np=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
|
+
* @license
|
|
50
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
51
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
+
*/const _u=[],eo=new Set,ko=new Set;function gu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Lp(n){return gu(customElements.get(n))}function Hp(n=[]){return[n].flat(1/0).filter(e=>e instanceof Po?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function bu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function vu(n){return n.map(e=>e.cssText).join(`
|
|
53
|
+
`)}const Pr="vaadin-themable-mixin-style";function Rp(n,e){const t=document.createElement("style");t.id=Pr,t.textContent=vu(n),e.content.appendChild(t)}function Fp(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof qt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),du(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(Pr),r=e.prototype._template;t.textContent=r.content.getElementById(Pr).textContent}}function Up(n){eo.forEach(e=>{const t=e.deref();t instanceof n?Fp(t):t||eo.delete(e)})}function yu(n){if(n.prototype instanceof qt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(Pr).textContent=vu(n.getStylesForThis())}ko.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&yu(t)})}function zp(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=Hp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):_u.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&ko.forEach(r=>{if(bu(n,r)&&Lp(r)){const i=customElements.get(r);zp(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".`),yu(i),Up(i)}})}function to(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():_u}function $p(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function wu(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=to().find(i=>i.moduleId===t);r?e.push(...wu(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function Vp(n){const e=`${n}-default-theme`,t=to().filter(r=>r.moduleId!==e&&bu(r.themeFor,n)).map(r=>er(ft({},r),{styles:[...wu(r),...r.styles],includePriority:$p(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:to().filter(r=>r.moduleId===e)}const Nt=n=>class extends Np(n){constructor(){super(),eo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ko.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||gu(this)||Rp(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,...Vp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
56
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
57
|
+
*/const Wp=(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)=>{Wp(`lumo-${n}`,e)};/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
61
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
62
|
+
*/const jp=me`
|
|
63
|
+
:host {
|
|
64
|
+
--lumo-size-xs: 1.625rem;
|
|
65
|
+
--lumo-size-s: 1.875rem;
|
|
66
|
+
--lumo-size-m: 2.25rem;
|
|
67
|
+
--lumo-size-l: 2.75rem;
|
|
68
|
+
--lumo-size-xl: 3.5rem;
|
|
69
|
+
|
|
70
|
+
/* Icons */
|
|
71
|
+
--lumo-icon-size-s: 1.25em;
|
|
72
|
+
--lumo-icon-size-m: 1.5em;
|
|
73
|
+
--lumo-icon-size-l: 2.25em;
|
|
74
|
+
/* For backwards compatibility */
|
|
75
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
76
|
+
}
|
|
77
|
+
`;dn("sizing-props",jp);/**
|
|
78
|
+
* @license
|
|
79
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
80
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
81
|
+
*/const Gp=me`
|
|
82
|
+
:host {
|
|
83
|
+
/* Square */
|
|
84
|
+
--lumo-space-xs: 0.25rem;
|
|
85
|
+
--lumo-space-s: 0.5rem;
|
|
86
|
+
--lumo-space-m: 1rem;
|
|
87
|
+
--lumo-space-l: 1.5rem;
|
|
88
|
+
--lumo-space-xl: 2.5rem;
|
|
89
|
+
|
|
90
|
+
/* Wide */
|
|
91
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
92
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
93
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
94
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
95
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
96
|
+
|
|
97
|
+
/* Tall */
|
|
98
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
99
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
100
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
101
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
102
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
103
|
+
}
|
|
104
|
+
`;dn("spacing-props",Gp);/**
|
|
105
|
+
* @license
|
|
106
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
107
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
108
|
+
*/const Yp=me`
|
|
109
|
+
:host {
|
|
110
|
+
/* Border radius */
|
|
111
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
112
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
113
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
114
|
+
|
|
115
|
+
/* Shadow */
|
|
116
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
117
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
118
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
119
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
120
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
121
|
+
|
|
122
|
+
/* Clickable element cursor */
|
|
123
|
+
--lumo-clickable-cursor: default;
|
|
124
|
+
}
|
|
125
|
+
`;me`
|
|
126
|
+
html {
|
|
127
|
+
/* Button */
|
|
128
|
+
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
129
|
+
--vaadin-button-border: none;
|
|
130
|
+
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
131
|
+
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
132
|
+
--vaadin-button-font-weight: 500;
|
|
133
|
+
--vaadin-button-height: var(--lumo-size-m);
|
|
134
|
+
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
135
|
+
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
136
|
+
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
137
|
+
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
138
|
+
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
139
|
+
--vaadin-button-primary-border: none;
|
|
140
|
+
--vaadin-button-primary-font-weight: 600;
|
|
141
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
142
|
+
--vaadin-button-tertiary-background: transparent !important;
|
|
143
|
+
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
144
|
+
--vaadin-button-tertiary-font-weight: 500;
|
|
145
|
+
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
146
|
+
/* Checkbox */
|
|
147
|
+
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
148
|
+
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
149
|
+
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
150
|
+
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
151
|
+
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
152
|
+
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
153
|
+
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
154
|
+
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
155
|
+
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
156
|
+
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
157
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
158
|
+
--vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
|
|
159
|
+
--vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
|
|
160
|
+
/* Radio button */
|
|
161
|
+
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
162
|
+
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
163
|
+
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
164
|
+
--vaadin-radio-button-dot-size: 3px;
|
|
165
|
+
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
166
|
+
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
167
|
+
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
168
|
+
var(--lumo-space-xs);
|
|
169
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
170
|
+
--vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
|
|
171
|
+
--vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
|
|
172
|
+
--vaadin-selection-color: var(--lumo-primary-color);
|
|
173
|
+
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
174
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
175
|
+
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
176
|
+
--vaadin-focus-ring-width: 2px;
|
|
177
|
+
/* Label */
|
|
178
|
+
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
179
|
+
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
180
|
+
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
181
|
+
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
182
|
+
--vaadin-input-field-label-font-weight: 500;
|
|
183
|
+
/* Helper */
|
|
184
|
+
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
185
|
+
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
186
|
+
--vaadin-input-field-helper-font-weight: 400;
|
|
187
|
+
--vaadin-input-field-helper-spacing: 0.4em;
|
|
188
|
+
/* Error message */
|
|
189
|
+
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
190
|
+
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
191
|
+
--vaadin-input-field-error-font-weight: 400;
|
|
192
|
+
/* Input field */
|
|
193
|
+
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
194
|
+
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
195
|
+
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
196
|
+
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
197
|
+
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
198
|
+
--vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
|
|
199
|
+
--vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
|
|
200
|
+
--vaadin-input-field-height: var(--lumo-size-m);
|
|
201
|
+
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
202
|
+
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
203
|
+
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
204
|
+
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
205
|
+
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
206
|
+
--vaadin-input-field-value-font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
`;dn("style-props",Yp);/**
|
|
209
|
+
* @license
|
|
210
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
211
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
212
|
+
*/const qp=me`
|
|
213
|
+
:host {
|
|
214
|
+
/* Base (background) */
|
|
215
|
+
--lumo-base-color: #fff;
|
|
216
|
+
|
|
217
|
+
/* Tint */
|
|
218
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
219
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
220
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
221
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
222
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
223
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
224
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
225
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
226
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
227
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
228
|
+
--lumo-tint: #fff;
|
|
229
|
+
|
|
230
|
+
/* Shade */
|
|
231
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
232
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
233
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
234
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
235
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
236
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
237
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
238
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
239
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
240
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
241
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
242
|
+
|
|
243
|
+
/* Contrast */
|
|
244
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
245
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
246
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
247
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
248
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
249
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
250
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
251
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
252
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
253
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
254
|
+
--lumo-contrast: var(--lumo-shade);
|
|
255
|
+
|
|
256
|
+
/* Text */
|
|
257
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
258
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
259
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
260
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
261
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
262
|
+
|
|
263
|
+
/* Primary */
|
|
264
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
265
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
266
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
267
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
268
|
+
--lumo-primary-contrast-color: #fff;
|
|
269
|
+
|
|
270
|
+
/* Error */
|
|
271
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
272
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
273
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
274
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
275
|
+
--lumo-error-contrast-color: #fff;
|
|
276
|
+
|
|
277
|
+
/* Success */
|
|
278
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
279
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
280
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
281
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
282
|
+
--lumo-success-contrast-color: #fff;
|
|
283
|
+
|
|
284
|
+
/* Warning */
|
|
285
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
286
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
287
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
288
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* forced-colors mode adjustments */
|
|
292
|
+
@media (forced-colors: active) {
|
|
293
|
+
html {
|
|
294
|
+
--lumo-disabled-text-color: GrayText;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
`;dn("color-props",qp);const Xp=me`
|
|
298
|
+
[theme~='dark'] {
|
|
299
|
+
/* Base (background) */
|
|
300
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
301
|
+
|
|
302
|
+
/* Tint */
|
|
303
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
304
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
305
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
306
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
307
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
308
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
309
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
310
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
311
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
312
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
313
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
314
|
+
|
|
315
|
+
/* Shade */
|
|
316
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
317
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
318
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
319
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
320
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
321
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
322
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
323
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
324
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
325
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
326
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
327
|
+
|
|
328
|
+
/* Contrast */
|
|
329
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
330
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
331
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
332
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
333
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
334
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
335
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
336
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
337
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
338
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
339
|
+
--lumo-contrast: var(--lumo-tint);
|
|
340
|
+
|
|
341
|
+
/* Text */
|
|
342
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
343
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
344
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
345
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
346
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
347
|
+
|
|
348
|
+
/* Primary */
|
|
349
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
350
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
351
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
352
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
353
|
+
--lumo-primary-contrast-color: #fff;
|
|
354
|
+
|
|
355
|
+
/* Error */
|
|
356
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
357
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
358
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
359
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
360
|
+
|
|
361
|
+
/* Success */
|
|
362
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
363
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
364
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
365
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
366
|
+
|
|
367
|
+
/* Warning */
|
|
368
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
369
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
370
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
371
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
html {
|
|
375
|
+
color: var(--lumo-body-text-color);
|
|
376
|
+
background-color: var(--lumo-base-color);
|
|
377
|
+
color-scheme: light;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
[theme~='dark'] {
|
|
381
|
+
color: var(--lumo-body-text-color);
|
|
382
|
+
background-color: var(--lumo-base-color);
|
|
383
|
+
color-scheme: dark;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
h1,
|
|
387
|
+
h2,
|
|
388
|
+
h3,
|
|
389
|
+
h4,
|
|
390
|
+
h5,
|
|
391
|
+
h6 {
|
|
392
|
+
color: var(--lumo-header-text-color);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
a:where(:any-link) {
|
|
396
|
+
color: var(--lumo-primary-text-color);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
a:not(:any-link) {
|
|
400
|
+
color: var(--lumo-disabled-text-color);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
blockquote {
|
|
404
|
+
color: var(--lumo-secondary-text-color);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
code,
|
|
408
|
+
pre {
|
|
409
|
+
background-color: var(--lumo-contrast-10pct);
|
|
410
|
+
border-radius: var(--lumo-border-radius-m);
|
|
411
|
+
}
|
|
412
|
+
pre code {
|
|
413
|
+
background: transparent;
|
|
414
|
+
}
|
|
415
|
+
`;De("",Xp,{moduleId:"lumo-color"});/**
|
|
416
|
+
* @license
|
|
417
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
418
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
419
|
+
*/const Zp=me`
|
|
420
|
+
:host {
|
|
421
|
+
/* prettier-ignore */
|
|
422
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
423
|
+
|
|
424
|
+
/* Font sizes */
|
|
425
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
426
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
427
|
+
--lumo-font-size-s: 0.875rem;
|
|
428
|
+
--lumo-font-size-m: 1rem;
|
|
429
|
+
--lumo-font-size-l: 1.125rem;
|
|
430
|
+
--lumo-font-size-xl: 1.375rem;
|
|
431
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
432
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
433
|
+
|
|
434
|
+
/* Line heights */
|
|
435
|
+
--lumo-line-height-xs: 1.25;
|
|
436
|
+
--lumo-line-height-s: 1.375;
|
|
437
|
+
--lumo-line-height-m: 1.625;
|
|
438
|
+
}
|
|
439
|
+
`,Kp=me`
|
|
440
|
+
body,
|
|
441
|
+
:host {
|
|
442
|
+
font-family: var(--lumo-font-family);
|
|
443
|
+
font-size: var(--lumo-font-size-m);
|
|
444
|
+
line-height: var(--lumo-line-height-m);
|
|
445
|
+
-webkit-text-size-adjust: 100%;
|
|
446
|
+
-webkit-font-smoothing: antialiased;
|
|
447
|
+
-moz-osx-font-smoothing: grayscale;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
small,
|
|
451
|
+
[theme~='font-size-s'] {
|
|
452
|
+
font-size: var(--lumo-font-size-s);
|
|
453
|
+
line-height: var(--lumo-line-height-s);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
[theme~='font-size-xs'] {
|
|
457
|
+
font-size: var(--lumo-font-size-xs);
|
|
458
|
+
line-height: var(--lumo-line-height-xs);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
462
|
+
font-weight: 600;
|
|
463
|
+
line-height: var(--lumo-line-height-xs);
|
|
464
|
+
margin-block: 0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
:where(h1) {
|
|
468
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
:where(h2) {
|
|
472
|
+
font-size: var(--lumo-font-size-xxl);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
:where(h3) {
|
|
476
|
+
font-size: var(--lumo-font-size-xl);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
:where(h4) {
|
|
480
|
+
font-size: var(--lumo-font-size-l);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
:where(h5) {
|
|
484
|
+
font-size: var(--lumo-font-size-m);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
:where(h6) {
|
|
488
|
+
font-size: var(--lumo-font-size-xs);
|
|
489
|
+
text-transform: uppercase;
|
|
490
|
+
letter-spacing: 0.03em;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
p,
|
|
494
|
+
blockquote {
|
|
495
|
+
margin-top: 0.5em;
|
|
496
|
+
margin-bottom: 0.75em;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
a {
|
|
500
|
+
text-decoration: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
a:where(:any-link):hover {
|
|
504
|
+
text-decoration: underline;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
hr {
|
|
508
|
+
display: block;
|
|
509
|
+
align-self: stretch;
|
|
510
|
+
height: 1px;
|
|
511
|
+
border: 0;
|
|
512
|
+
padding: 0;
|
|
513
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
514
|
+
background-color: var(--lumo-contrast-10pct);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
blockquote {
|
|
518
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
b,
|
|
522
|
+
strong {
|
|
523
|
+
font-weight: 600;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* RTL specific styles */
|
|
527
|
+
blockquote[dir='rtl'] {
|
|
528
|
+
border-left: none;
|
|
529
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
530
|
+
}
|
|
531
|
+
`;De("",Kp,{moduleId:"lumo-typography"});dn("typography-props",Zp);/**
|
|
532
|
+
* @license
|
|
533
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
534
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
535
|
+
*/const Cu=me`
|
|
536
|
+
:host {
|
|
537
|
+
top: var(--lumo-space-m);
|
|
538
|
+
right: var(--lumo-space-m);
|
|
539
|
+
bottom: var(--lumo-space-m);
|
|
540
|
+
left: var(--lumo-space-m);
|
|
541
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
542
|
+
/* stylelint-disable-next-line */
|
|
543
|
+
outline: 0px solid transparent;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
[part='overlay'] {
|
|
547
|
+
background-color: var(--lumo-base-color);
|
|
548
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
549
|
+
border-radius: var(--lumo-border-radius-m);
|
|
550
|
+
box-shadow:
|
|
551
|
+
0 0 0 1px var(--lumo-shade-5pct),
|
|
552
|
+
var(--lumo-box-shadow-m);
|
|
553
|
+
color: var(--lumo-body-text-color);
|
|
554
|
+
font-family: var(--lumo-font-family);
|
|
555
|
+
font-size: var(--lumo-font-size-m);
|
|
556
|
+
font-weight: 400;
|
|
557
|
+
line-height: var(--lumo-line-height-m);
|
|
558
|
+
letter-spacing: 0;
|
|
559
|
+
text-transform: none;
|
|
560
|
+
-webkit-text-size-adjust: 100%;
|
|
561
|
+
-webkit-font-smoothing: antialiased;
|
|
562
|
+
-moz-osx-font-smoothing: grayscale;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
[part='content'] {
|
|
566
|
+
padding: var(--lumo-space-xs);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
[part='backdrop'] {
|
|
570
|
+
background-color: var(--lumo-shade-20pct);
|
|
571
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
572
|
+
will-change: opacity;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
576
|
+
0% {
|
|
577
|
+
opacity: 0;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
:host([closing]) [part='backdrop'] {
|
|
582
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
586
|
+
100% {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
592
|
+
0% {
|
|
593
|
+
opacity: 1;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
100% {
|
|
597
|
+
opacity: 1;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
`;De("",Cu,{moduleId:"lumo-overlay"});/**
|
|
601
|
+
* @license
|
|
602
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
603
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
604
|
+
*/const Eu=me`
|
|
605
|
+
:host([opening]),
|
|
606
|
+
:host([closing]) {
|
|
607
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
[part='overlay'] {
|
|
611
|
+
will-change: opacity, transform;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
:host([opening]) [part='overlay'] {
|
|
615
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
@keyframes lumo-menu-overlay-enter {
|
|
619
|
+
0% {
|
|
620
|
+
opacity: 0;
|
|
621
|
+
transform: translateY(-4px);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
:host([closing]) [part='overlay'] {
|
|
626
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
@keyframes lumo-menu-overlay-exit {
|
|
630
|
+
100% {
|
|
631
|
+
opacity: 0;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
`;De("",Eu,{moduleId:"lumo-menu-overlay-core"});const Jp=me`
|
|
635
|
+
/* Small viewport (bottom sheet) styles */
|
|
636
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
637
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
638
|
+
:host {
|
|
639
|
+
top: 0 !important;
|
|
640
|
+
right: 0 !important;
|
|
641
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
642
|
+
left: 0 !important;
|
|
643
|
+
align-items: stretch !important;
|
|
644
|
+
justify-content: flex-end !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
[part='overlay'] {
|
|
648
|
+
max-height: 50vh;
|
|
649
|
+
width: 100vw;
|
|
650
|
+
border-radius: 0;
|
|
651
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
655
|
+
[part='content'] {
|
|
656
|
+
padding: 30px var(--lumo-space-m);
|
|
657
|
+
max-height: inherit;
|
|
658
|
+
box-sizing: border-box;
|
|
659
|
+
-webkit-overflow-scrolling: touch;
|
|
660
|
+
overflow: auto;
|
|
661
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
662
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
[part='backdrop'] {
|
|
666
|
+
display: block;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/* Animations */
|
|
670
|
+
|
|
671
|
+
:host([opening]) [part='overlay'] {
|
|
672
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
:host([closing]),
|
|
676
|
+
:host([closing]) [part='backdrop'] {
|
|
677
|
+
animation-delay: 0.14s;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:host([closing]) [part='overlay'] {
|
|
681
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
686
|
+
0% {
|
|
687
|
+
transform: translateY(150%);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
692
|
+
100% {
|
|
693
|
+
transform: translateY(150%);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
`,xu=[Cu,Eu,Jp];De("",xu,{moduleId:"lumo-menu-overlay"});const Qp=me`
|
|
697
|
+
[part='overlay'] {
|
|
698
|
+
/*
|
|
699
|
+
Width:
|
|
700
|
+
date cell widths
|
|
701
|
+
+ month calendar side padding
|
|
702
|
+
+ year scroller width
|
|
703
|
+
*/
|
|
704
|
+
/* prettier-ignore */
|
|
705
|
+
width:
|
|
706
|
+
calc(
|
|
707
|
+
var(--lumo-size-m) * 7
|
|
708
|
+
+ var(--lumo-space-xs) * 2
|
|
709
|
+
+ 57px
|
|
710
|
+
);
|
|
711
|
+
height: 100%;
|
|
712
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
713
|
+
overflow: hidden;
|
|
714
|
+
-webkit-tap-highlight-color: transparent;
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
[part='content'] {
|
|
719
|
+
padding: 0;
|
|
720
|
+
height: 100%;
|
|
721
|
+
overflow: hidden;
|
|
722
|
+
-webkit-mask-image: none;
|
|
723
|
+
mask-image: none;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
727
|
+
margin-top: var(--lumo-space-xs);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
731
|
+
margin-bottom: var(--lumo-space-xs);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
735
|
+
[part='overlay'] {
|
|
736
|
+
width: 100vw;
|
|
737
|
+
height: 70vh;
|
|
738
|
+
max-height: 70vh;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
`;De("vaadin-date-picker-overlay",[xu,Qp],{moduleId:"lumo-date-picker-overlay"});const em=me`
|
|
742
|
+
:host {
|
|
743
|
+
/* Sizing */
|
|
744
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
745
|
+
min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
|
|
746
|
+
height: var(--_button-size);
|
|
747
|
+
padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
|
|
748
|
+
margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
|
|
749
|
+
box-sizing: border-box;
|
|
750
|
+
/* Style */
|
|
751
|
+
font-family: var(--lumo-font-family);
|
|
752
|
+
font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
|
|
753
|
+
font-weight: var(--vaadin-button-font-weight, 500);
|
|
754
|
+
color: var(--_lumo-button-text-color);
|
|
755
|
+
background: var(--_lumo-button-background);
|
|
756
|
+
border: var(--vaadin-button-border, none);
|
|
757
|
+
border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
|
|
758
|
+
cursor: var(--lumo-clickable-cursor);
|
|
759
|
+
-webkit-tap-highlight-color: transparent;
|
|
760
|
+
-webkit-font-smoothing: antialiased;
|
|
761
|
+
-moz-osx-font-smoothing: grayscale;
|
|
762
|
+
flex-shrink: 0;
|
|
763
|
+
--_button-size: var(--vaadin-button-height, var(--lumo-button-size));
|
|
764
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
765
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
766
|
+
/* Used by notification */
|
|
767
|
+
--_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
|
|
768
|
+
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
|
|
769
|
+
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
|
|
770
|
+
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
774
|
+
[part='label'],
|
|
775
|
+
[part='prefix'],
|
|
776
|
+
[part='suffix'] {
|
|
777
|
+
line-height: var(--lumo-line-height-xs);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
[part='label'] {
|
|
781
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
:host([theme~='small']) {
|
|
785
|
+
font-size: var(--lumo-font-size-s);
|
|
786
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
:host([theme~='large']) {
|
|
790
|
+
font-size: var(--lumo-font-size-l);
|
|
791
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/* For interaction states */
|
|
795
|
+
:host::before,
|
|
796
|
+
:host::after {
|
|
797
|
+
content: '';
|
|
798
|
+
/* We rely on the host always being relative */
|
|
799
|
+
position: absolute;
|
|
800
|
+
z-index: 1;
|
|
801
|
+
inset: 0;
|
|
802
|
+
background-color: currentColor;
|
|
803
|
+
border-radius: inherit;
|
|
804
|
+
opacity: 0;
|
|
805
|
+
pointer-events: none;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/* Hover */
|
|
809
|
+
|
|
810
|
+
@media (any-hover: hover) {
|
|
811
|
+
:host(:hover)::before {
|
|
812
|
+
opacity: 0.02;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/* Active */
|
|
817
|
+
|
|
818
|
+
:host::after {
|
|
819
|
+
transition:
|
|
820
|
+
opacity 1.4s,
|
|
821
|
+
transform 0.1s;
|
|
822
|
+
filter: blur(8px);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
:host([active])::before {
|
|
826
|
+
opacity: 0.05;
|
|
827
|
+
transition-duration: 0s;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
:host([active])::after {
|
|
831
|
+
opacity: 0.1;
|
|
832
|
+
transition-duration: 0s, 0s;
|
|
833
|
+
transform: scale(0);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* Keyboard focus */
|
|
837
|
+
|
|
838
|
+
:host([focus-ring]) {
|
|
839
|
+
box-shadow:
|
|
840
|
+
0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
|
|
841
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
:host([theme~='primary'][focus-ring]) {
|
|
845
|
+
--_focus-ring-gap-on: 1;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
849
|
+
|
|
850
|
+
:host([theme~='tertiary']),
|
|
851
|
+
:host([theme~='tertiary-inline']) {
|
|
852
|
+
--_background: transparent !important;
|
|
853
|
+
background: var(--vaadin-button-tertiary-background, var(--_background));
|
|
854
|
+
min-width: 0;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
:host([theme~='tertiary']) {
|
|
858
|
+
border: var(--vaadin-button-tertiary-border, none);
|
|
859
|
+
color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
|
|
860
|
+
font-weight: var(--vaadin-button-tertiary-font-weight, 500);
|
|
861
|
+
padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
:host([theme~='tertiary-inline'])::before {
|
|
865
|
+
display: none;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
:host([theme~='tertiary-inline']) {
|
|
869
|
+
margin: 0;
|
|
870
|
+
height: auto;
|
|
871
|
+
padding: 0;
|
|
872
|
+
line-height: inherit;
|
|
873
|
+
font-size: inherit;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
877
|
+
padding: 0;
|
|
878
|
+
overflow: visible;
|
|
879
|
+
line-height: inherit;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
:host([theme~='primary']) {
|
|
883
|
+
background: var(--_lumo-button-primary-background);
|
|
884
|
+
border: var(--vaadin-button-primary-border, none);
|
|
885
|
+
color: var(--_lumo-button-primary-text-color);
|
|
886
|
+
font-weight: var(--vaadin-button-primary-font-weight, 600);
|
|
887
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
:host([theme~='primary'])::before {
|
|
891
|
+
background-color: black;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
@media (any-hover: hover) {
|
|
895
|
+
:host([theme~='primary']:hover)::before {
|
|
896
|
+
opacity: 0.05;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
:host([theme~='primary'][active])::before {
|
|
901
|
+
opacity: 0.1;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
:host([theme~='primary'][active])::after {
|
|
905
|
+
opacity: 0.2;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/* Colors (success, warning, error, contrast) */
|
|
909
|
+
|
|
910
|
+
:host([theme~='success']) {
|
|
911
|
+
color: var(--lumo-success-text-color);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
:host([theme~='success'][theme~='primary']) {
|
|
915
|
+
background-color: var(--lumo-success-color);
|
|
916
|
+
color: var(--lumo-success-contrast-color);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
:host([theme~='warning']) {
|
|
920
|
+
color: var(--lumo-warning-text-color);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
:host([theme~='warning'][theme~='primary']) {
|
|
924
|
+
background-color: var(--lumo-warning-color);
|
|
925
|
+
color: var(--lumo-warning-contrast-color);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
:host([theme~='error']) {
|
|
929
|
+
color: var(--lumo-error-text-color);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
:host([theme~='error'][theme~='primary']) {
|
|
933
|
+
background-color: var(--lumo-error-color);
|
|
934
|
+
color: var(--lumo-error-contrast-color);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
:host([theme~='contrast']) {
|
|
938
|
+
color: var(--lumo-contrast);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
942
|
+
background-color: var(--lumo-contrast);
|
|
943
|
+
color: var(--lumo-base-color);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
947
|
+
|
|
948
|
+
:host([disabled]) {
|
|
949
|
+
pointer-events: none;
|
|
950
|
+
color: var(--lumo-disabled-text-color);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
:host([theme~='primary'][disabled]) {
|
|
954
|
+
background-color: var(--lumo-contrast-30pct);
|
|
955
|
+
color: var(--lumo-base-color);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
959
|
+
opacity: 0.7;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* Icons */
|
|
963
|
+
|
|
964
|
+
[part] ::slotted(vaadin-icon) {
|
|
965
|
+
display: inline-block;
|
|
966
|
+
width: var(--lumo-icon-size-m);
|
|
967
|
+
height: var(--lumo-icon-size-m);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
971
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
972
|
+
padding: 0.25em;
|
|
973
|
+
box-sizing: border-box !important;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
[part='prefix'] {
|
|
977
|
+
margin-left: -0.25em;
|
|
978
|
+
margin-right: 0.25em;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
[part='suffix'] {
|
|
982
|
+
margin-left: 0.25em;
|
|
983
|
+
margin-right: -0.25em;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* Icon-only */
|
|
987
|
+
|
|
988
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
989
|
+
min-width: var(--lumo-button-size);
|
|
990
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
991
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
:host([theme~='icon']) [part='prefix'],
|
|
995
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
996
|
+
margin-left: 0;
|
|
997
|
+
margin-right: 0;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/* RTL specific styles */
|
|
1001
|
+
|
|
1002
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
1003
|
+
margin-left: 0.25em;
|
|
1004
|
+
margin-right: -0.25em;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
1008
|
+
margin-left: -0.25em;
|
|
1009
|
+
margin-right: 0.25em;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
1013
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
1014
|
+
margin-left: 0;
|
|
1015
|
+
margin-right: 0;
|
|
1016
|
+
}
|
|
1017
|
+
`;De("vaadin-button",em,{moduleId:"lumo-button"});De("vaadin-date-picker-year",me`
|
|
1018
|
+
:host([current]) [part='year-number'] {
|
|
1019
|
+
color: var(--lumo-primary-text-color);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
:host(:not([current])) [part='year-number'],
|
|
1023
|
+
[part='year-separator'] {
|
|
1024
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
1025
|
+
transition: 0.2s opacity;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
[part='year-number'],
|
|
1029
|
+
[part='year-separator'] {
|
|
1030
|
+
display: flex;
|
|
1031
|
+
align-items: center;
|
|
1032
|
+
justify-content: center;
|
|
1033
|
+
height: 50%;
|
|
1034
|
+
transform: translateY(-50%);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
[part='year-separator']::after {
|
|
1038
|
+
color: var(--lumo-disabled-text-color);
|
|
1039
|
+
content: '\\2022';
|
|
1040
|
+
}
|
|
1041
|
+
`,{moduleId:"lumo-date-picker-year"});De("vaadin-date-picker-overlay-content",me`
|
|
1042
|
+
:host {
|
|
1043
|
+
position: relative;
|
|
1044
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
1045
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
1046
|
+
background-size: 57px 100%;
|
|
1047
|
+
background-position: top right;
|
|
1048
|
+
background-repeat: no-repeat;
|
|
1049
|
+
cursor: default;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
::slotted([slot='months']) {
|
|
1053
|
+
/* Month calendar height:
|
|
1054
|
+
header height + margin-bottom
|
|
1055
|
+
+ weekdays height + margin-bottom
|
|
1056
|
+
+ date cell heights
|
|
1057
|
+
+ small margin between month calendars
|
|
1058
|
+
*/
|
|
1059
|
+
/* prettier-ignore */
|
|
1060
|
+
--vaadin-infinite-scroller-item-height:
|
|
1061
|
+
calc(
|
|
1062
|
+
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
1063
|
+
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
1064
|
+
+ var(--lumo-size-m) * 6
|
|
1065
|
+
+ var(--lumo-space-s)
|
|
1066
|
+
);
|
|
1067
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
1068
|
+
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1069
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1070
|
+
position: relative;
|
|
1071
|
+
margin-right: 57px;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
::slotted([slot='years']) {
|
|
1075
|
+
/* TODO get rid of fixed magic number */
|
|
1076
|
+
--vaadin-infinite-scroller-buffer-width: 97px;
|
|
1077
|
+
width: 57px;
|
|
1078
|
+
height: auto;
|
|
1079
|
+
top: 0;
|
|
1080
|
+
bottom: 0;
|
|
1081
|
+
font-size: var(--lumo-font-size-s);
|
|
1082
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
1083
|
+
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1084
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1085
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
::slotted([slot='years']:hover) {
|
|
1089
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/* TODO unsupported selector */
|
|
1093
|
+
#scrollers {
|
|
1094
|
+
position: static;
|
|
1095
|
+
display: block;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
|
|
1099
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
1100
|
+
right: auto;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/* Year scroller position indicator */
|
|
1104
|
+
::slotted([slot='years'])::before {
|
|
1105
|
+
border: none;
|
|
1106
|
+
width: 1em;
|
|
1107
|
+
height: 1em;
|
|
1108
|
+
background-color: var(--lumo-base-color);
|
|
1109
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1110
|
+
transform: translate(-75%, -50%) rotate(45deg);
|
|
1111
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
1112
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
1113
|
+
z-index: 1;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
[part='toolbar'] {
|
|
1117
|
+
padding: var(--lumo-space-s);
|
|
1118
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
1119
|
+
margin-right: 57px;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
1123
|
+
margin: 0;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/* Narrow viewport mode (fullscreen) */
|
|
1127
|
+
|
|
1128
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
1129
|
+
order: -1;
|
|
1130
|
+
background-color: var(--lumo-base-color);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
:host([fullscreen]) [part='overlay-header'] {
|
|
1134
|
+
order: -2;
|
|
1135
|
+
height: var(--lumo-size-m);
|
|
1136
|
+
padding: var(--lumo-space-s);
|
|
1137
|
+
position: absolute;
|
|
1138
|
+
left: 0;
|
|
1139
|
+
right: 0;
|
|
1140
|
+
justify-content: center;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
:host([fullscreen]) [part='toggle-button'],
|
|
1144
|
+
:host([fullscreen]) [part='clear-button'],
|
|
1145
|
+
[part='overlay-header'] [part='label'] {
|
|
1146
|
+
display: none;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
1150
|
+
|
|
1151
|
+
[part='years-toggle-button'] {
|
|
1152
|
+
display: flex;
|
|
1153
|
+
align-items: center;
|
|
1154
|
+
height: var(--lumo-size-s);
|
|
1155
|
+
padding: 0 0.5em;
|
|
1156
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1157
|
+
z-index: 3;
|
|
1158
|
+
color: var(--lumo-primary-text-color);
|
|
1159
|
+
font-weight: 500;
|
|
1160
|
+
-webkit-font-smoothing: antialiased;
|
|
1161
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
1165
|
+
background-color: var(--lumo-primary-color);
|
|
1166
|
+
color: var(--lumo-primary-contrast-color);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
1170
|
+
@media screen and (max-width: 374px) {
|
|
1171
|
+
:host {
|
|
1172
|
+
background-image: none;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
[part='toolbar'],
|
|
1176
|
+
::slotted([slot='months']) {
|
|
1177
|
+
margin-right: 0;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
1181
|
+
::slotted([slot='years']) {
|
|
1182
|
+
--vaadin-infinite-scroller-buffer-width: 90px;
|
|
1183
|
+
width: 50px;
|
|
1184
|
+
background-color: var(--lumo-shade-5pct);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
:host([years-visible]) ::slotted([slot='months']) {
|
|
1188
|
+
padding-left: 50px;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});De("vaadin-month-calendar",me`
|
|
1192
|
+
:host {
|
|
1193
|
+
-moz-user-select: none;
|
|
1194
|
+
-webkit-user-select: none;
|
|
1195
|
+
-webkit-tap-highlight-color: transparent;
|
|
1196
|
+
user-select: none;
|
|
1197
|
+
font-size: var(--lumo-font-size-m);
|
|
1198
|
+
color: var(--lumo-body-text-color);
|
|
1199
|
+
text-align: center;
|
|
1200
|
+
padding: 0 var(--lumo-space-xs);
|
|
1201
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1202
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1203
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
1204
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/* Month header */
|
|
1208
|
+
|
|
1209
|
+
[part='month-header'] {
|
|
1210
|
+
color: var(--lumo-header-text-color);
|
|
1211
|
+
font-size: var(--lumo-font-size-l);
|
|
1212
|
+
line-height: 1;
|
|
1213
|
+
font-weight: 500;
|
|
1214
|
+
margin-bottom: var(--lumo-space-m);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/* Week days and numbers */
|
|
1218
|
+
|
|
1219
|
+
[part='weekdays'],
|
|
1220
|
+
[part='weekday'],
|
|
1221
|
+
[part='week-number'] {
|
|
1222
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1223
|
+
line-height: 1;
|
|
1224
|
+
color: var(--lumo-secondary-text-color);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
[part='weekdays'] {
|
|
1228
|
+
margin-bottom: var(--lumo-space-s);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
[part='weekday']:empty,
|
|
1232
|
+
[part='week-number'] {
|
|
1233
|
+
width: var(--lumo-size-xs);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/* Date and week number cells */
|
|
1237
|
+
|
|
1238
|
+
[part~='date'],
|
|
1239
|
+
[part='week-number'] {
|
|
1240
|
+
box-sizing: border-box;
|
|
1241
|
+
display: inline-flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
justify-content: center;
|
|
1244
|
+
height: var(--lumo-size-m);
|
|
1245
|
+
position: relative;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[part~='date'] {
|
|
1249
|
+
transition: color 0.1s;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
[part~='date']:not(:empty) {
|
|
1253
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
1257
|
+
:host([week-numbers]) [part~='date'] {
|
|
1258
|
+
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/* Today date */
|
|
1262
|
+
|
|
1263
|
+
[part~='date'][part~='today'] {
|
|
1264
|
+
color: var(--_selection-color-text);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/* Focused date */
|
|
1268
|
+
|
|
1269
|
+
[part~='date']::before {
|
|
1270
|
+
content: '';
|
|
1271
|
+
position: absolute;
|
|
1272
|
+
z-index: -1;
|
|
1273
|
+
top: 50%;
|
|
1274
|
+
left: 50%;
|
|
1275
|
+
transform: translate(-50%, -50%);
|
|
1276
|
+
min-width: 2em;
|
|
1277
|
+
min-height: 2em;
|
|
1278
|
+
width: 80%;
|
|
1279
|
+
height: 80%;
|
|
1280
|
+
max-height: 100%;
|
|
1281
|
+
max-width: 100%;
|
|
1282
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
[part~='date'][part~='focused']::before {
|
|
1286
|
+
box-shadow:
|
|
1287
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1288
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
1292
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
1296
|
+
50% {
|
|
1297
|
+
box-shadow:
|
|
1298
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1299
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
1304
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
[part~='date'][part~='selected'] {
|
|
1308
|
+
color: var(--lumo-primary-contrast-color);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
[part~='date'][part~='selected']::before {
|
|
1312
|
+
background-color: var(--_selection-color);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
[part~='date'][part~='disabled'] {
|
|
1316
|
+
color: var(--lumo-disabled-text-color);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
@media (pointer: coarse) {
|
|
1320
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
1321
|
+
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
|
|
1322
|
+
display: none;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
1326
|
+
display: block;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
:host(:not([focus-ring])) [part~='date'][part~='selected']::before {
|
|
1330
|
+
box-shadow: none;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
/* Disabled */
|
|
1334
|
+
|
|
1335
|
+
:host([disabled]) * {
|
|
1336
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
1337
|
+
}
|
|
1338
|
+
`,{moduleId:"lumo-month-calendar"});De("vaadin-input-container",me`
|
|
1339
|
+
:host {
|
|
1340
|
+
background: var(--_background);
|
|
1341
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
1342
|
+
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
1343
|
+
line-height: 1;
|
|
1344
|
+
position: relative;
|
|
1345
|
+
cursor: text;
|
|
1346
|
+
box-sizing: border-box;
|
|
1347
|
+
border-radius:
|
|
1348
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
1349
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1350
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1351
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
1352
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
1353
|
+
/* Fallback */
|
|
1354
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
1355
|
+
--_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
1356
|
+
/* Default values */
|
|
1357
|
+
--_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
|
|
1358
|
+
--_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
|
|
1359
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
1360
|
+
--_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
|
|
1361
|
+
--_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
|
|
1362
|
+
--_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
|
|
1363
|
+
--_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
|
|
1364
|
+
--_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
|
|
1365
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
:host([dir='rtl']) {
|
|
1369
|
+
border-radius:
|
|
1370
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1371
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1372
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1373
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
1374
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/* Used for hover and activation effects */
|
|
1378
|
+
:host::after {
|
|
1379
|
+
content: '';
|
|
1380
|
+
position: absolute;
|
|
1381
|
+
inset: 0;
|
|
1382
|
+
border-radius: inherit;
|
|
1383
|
+
pointer-events: none;
|
|
1384
|
+
background: var(--_hover-highlight);
|
|
1385
|
+
opacity: 0;
|
|
1386
|
+
transition:
|
|
1387
|
+
transform 0.15s,
|
|
1388
|
+
opacity 0.2s;
|
|
1389
|
+
transform-origin: 100% 0;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
::slotted(:not([slot$='fix'])) {
|
|
1393
|
+
cursor: inherit;
|
|
1394
|
+
min-height: var(--vaadin-input-field-height, var(--_input-height));
|
|
1395
|
+
padding: 0 0.25em;
|
|
1396
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1397
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1398
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* Read-only */
|
|
1402
|
+
:host([readonly]) {
|
|
1403
|
+
color: var(--lumo-secondary-text-color);
|
|
1404
|
+
background-color: transparent;
|
|
1405
|
+
cursor: default;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
:host([readonly])::after {
|
|
1409
|
+
background-color: transparent;
|
|
1410
|
+
opacity: 1;
|
|
1411
|
+
border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/* Disabled */
|
|
1415
|
+
:host([disabled]) {
|
|
1416
|
+
background: var(--_disabled-background);
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
:host([disabled]) ::slotted(:not([slot$='fix'])) {
|
|
1420
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1421
|
+
color: var(--_disabled-value-color);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/* Invalid */
|
|
1425
|
+
:host([invalid]) {
|
|
1426
|
+
background: var(--_invalid-background);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
:host([invalid]:not([readonly]))::after {
|
|
1430
|
+
background: var(--_invalid-hover-highlight);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/* Slotted icons */
|
|
1434
|
+
::slotted(vaadin-icon) {
|
|
1435
|
+
color: var(--_icon-color);
|
|
1436
|
+
width: var(--_icon-size);
|
|
1437
|
+
height: var(--_icon-size);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
1441
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
1442
|
+
padding: 0.25em;
|
|
1443
|
+
box-sizing: border-box !important;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/* Text align */
|
|
1447
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1448
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
@-moz-document url-prefix() {
|
|
1452
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1453
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1458
|
+
text-align: start;
|
|
1459
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
1463
|
+
text-align: center;
|
|
1464
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1468
|
+
text-align: end;
|
|
1469
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
@-moz-document url-prefix() {
|
|
1473
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1474
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1475
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
@-moz-document url-prefix() {
|
|
1480
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1481
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1482
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/* RTL specific styles */
|
|
1487
|
+
:host([dir='rtl'])::after {
|
|
1488
|
+
transform-origin: 0% 0;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1492
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1496
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1500
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
@-moz-document url-prefix() {
|
|
1504
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1505
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1506
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
@-moz-document url-prefix() {
|
|
1511
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1512
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1513
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
1517
|
+
* @license
|
|
1518
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1519
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1520
|
+
*/const tm=me`
|
|
1521
|
+
@font-face {
|
|
1522
|
+
font-family: 'lumo-icons';
|
|
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==)
|
|
1524
|
+
format('woff');
|
|
1525
|
+
font-weight: normal;
|
|
1526
|
+
font-style: normal;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
html {
|
|
1530
|
+
--lumo-icons-align-center: '\\ea01';
|
|
1531
|
+
--lumo-icons-align-left: '\\ea02';
|
|
1532
|
+
--lumo-icons-align-right: '\\ea03';
|
|
1533
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
1534
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
1535
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
1536
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
1537
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
1538
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
1539
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
1540
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
1541
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
1542
|
+
--lumo-icons-bell: '\\ea0d';
|
|
1543
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
1544
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
1545
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
1546
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
1547
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
1548
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
1549
|
+
--lumo-icons-clock: '\\ea14';
|
|
1550
|
+
--lumo-icons-cog: '\\ea15';
|
|
1551
|
+
--lumo-icons-cross: '\\ea16';
|
|
1552
|
+
--lumo-icons-download: '\\ea17';
|
|
1553
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1554
|
+
--lumo-icons-edit: '\\ea19';
|
|
1555
|
+
--lumo-icons-error: '\\ea1a';
|
|
1556
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1557
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1558
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1559
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1560
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1561
|
+
--lumo-icons-phone: '\\ea20';
|
|
1562
|
+
--lumo-icons-photo: '\\ea21';
|
|
1563
|
+
--lumo-icons-play: '\\ea22';
|
|
1564
|
+
--lumo-icons-plus: '\\ea23';
|
|
1565
|
+
--lumo-icons-redo: '\\ea24';
|
|
1566
|
+
--lumo-icons-reload: '\\ea25';
|
|
1567
|
+
--lumo-icons-search: '\\ea26';
|
|
1568
|
+
--lumo-icons-undo: '\\ea27';
|
|
1569
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1570
|
+
--lumo-icons-upload: '\\ea29';
|
|
1571
|
+
--lumo-icons-user: '\\ea2a';
|
|
1572
|
+
}
|
|
1573
|
+
`;dn("font-icons",tm);/**
|
|
1574
|
+
* @license
|
|
1575
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1576
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1577
|
+
*/const Au=me`
|
|
1578
|
+
[part$='button'] {
|
|
1579
|
+
flex: none;
|
|
1580
|
+
width: 1em;
|
|
1581
|
+
height: 1em;
|
|
1582
|
+
line-height: 1;
|
|
1583
|
+
font-size: var(--lumo-icon-size-m);
|
|
1584
|
+
text-align: center;
|
|
1585
|
+
color: var(--lumo-contrast-60pct);
|
|
1586
|
+
transition: 0.2s color;
|
|
1587
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
[part$='button']:hover {
|
|
1591
|
+
color: var(--lumo-contrast-90pct);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
:host([disabled]) [part$='button'],
|
|
1595
|
+
:host([readonly]) [part$='button'] {
|
|
1596
|
+
color: var(--lumo-contrast-20pct);
|
|
1597
|
+
cursor: default;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
[part$='button']::before {
|
|
1601
|
+
font-family: 'lumo-icons';
|
|
1602
|
+
display: block;
|
|
1603
|
+
}
|
|
1604
|
+
`;De("",Au,{moduleId:"lumo-field-button"});/**
|
|
1605
|
+
* @license
|
|
1606
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1607
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1608
|
+
*/const nm=me`
|
|
1609
|
+
:host {
|
|
1610
|
+
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
1614
|
+
content: '';
|
|
1615
|
+
display: block;
|
|
1616
|
+
height: var(--_helper-spacing);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
[part='helper-text'] {
|
|
1620
|
+
display: block;
|
|
1621
|
+
color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
|
|
1622
|
+
font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
|
|
1623
|
+
line-height: var(--lumo-line-height-xs);
|
|
1624
|
+
font-weight: var(--vaadin-input-field-helper-font-weight, 400);
|
|
1625
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1626
|
+
transition: color 0.2s;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
1630
|
+
color: var(--lumo-body-text-color);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
:host([disabled]) [part='helper-text'] {
|
|
1634
|
+
color: var(--lumo-disabled-text-color);
|
|
1635
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
1639
|
+
display: none;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
1643
|
+
content: '';
|
|
1644
|
+
display: block;
|
|
1645
|
+
height: var(--_helper-spacing);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
1649
|
+
order: 0;
|
|
1650
|
+
padding-bottom: var(--_helper-spacing);
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
1654
|
+
order: 1;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
1658
|
+
order: 2;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
1662
|
+
order: 3;
|
|
1663
|
+
}
|
|
1664
|
+
`;/**
|
|
1665
|
+
* @license
|
|
1666
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1667
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1668
|
+
*/const Tu=me`
|
|
1669
|
+
[part='label'] {
|
|
1670
|
+
align-self: flex-start;
|
|
1671
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1672
|
+
font-weight: var(--vaadin-input-field-label-font-weight, 500);
|
|
1673
|
+
font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
|
|
1674
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1675
|
+
transition: color 0.2s;
|
|
1676
|
+
line-height: 1;
|
|
1677
|
+
padding-right: 1em;
|
|
1678
|
+
padding-bottom: 0.5em;
|
|
1679
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
1680
|
+
negative margin to compensate */
|
|
1681
|
+
padding-top: 0.25em;
|
|
1682
|
+
margin-top: -0.25em;
|
|
1683
|
+
overflow: hidden;
|
|
1684
|
+
white-space: nowrap;
|
|
1685
|
+
text-overflow: ellipsis;
|
|
1686
|
+
position: relative;
|
|
1687
|
+
max-width: 100%;
|
|
1688
|
+
box-sizing: border-box;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
1692
|
+
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1696
|
+
color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/* Touch device adjustment */
|
|
1700
|
+
@media (pointer: coarse) {
|
|
1701
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1702
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
:host([has-label])::before {
|
|
1707
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
:host([has-label][theme~='small'])::before {
|
|
1711
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
:host([has-label]) {
|
|
1715
|
+
padding-top: var(--lumo-space-m);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
1719
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
:host([required]) [part='required-indicator']::after {
|
|
1723
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
1724
|
+
transition: opacity 0.2s;
|
|
1725
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
1726
|
+
position: absolute;
|
|
1727
|
+
right: 0;
|
|
1728
|
+
width: 1em;
|
|
1729
|
+
text-align: center;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
1733
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
[part='error-message'] {
|
|
1737
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1738
|
+
font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
|
|
1739
|
+
line-height: var(--lumo-line-height-xs);
|
|
1740
|
+
font-weight: var(--vaadin-input-field-error-font-weight, 400);
|
|
1741
|
+
color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
|
|
1742
|
+
will-change: max-height;
|
|
1743
|
+
transition: 0.4s max-height;
|
|
1744
|
+
max-height: 5em;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
1748
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
1749
|
+
content: '';
|
|
1750
|
+
display: block;
|
|
1751
|
+
height: 0.4em;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
1755
|
+
max-height: 0;
|
|
1756
|
+
overflow: hidden;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/* RTL specific styles */
|
|
1760
|
+
|
|
1761
|
+
:host([dir='rtl']) [part='label'] {
|
|
1762
|
+
margin-left: 0;
|
|
1763
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
:host([dir='rtl']) [part='label'] {
|
|
1767
|
+
padding-left: 1em;
|
|
1768
|
+
padding-right: 0;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
1772
|
+
right: auto;
|
|
1773
|
+
left: 0;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
1777
|
+
margin-left: 0;
|
|
1778
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1779
|
+
}
|
|
1780
|
+
`;De("",Tu,{moduleId:"lumo-required-field"});/**
|
|
1781
|
+
* @license
|
|
1782
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1783
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1784
|
+
*/const rm=me`
|
|
1785
|
+
:host {
|
|
1786
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
1787
|
+
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
1788
|
+
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
1789
|
+
font-family: var(--lumo-font-family);
|
|
1790
|
+
-webkit-font-smoothing: antialiased;
|
|
1791
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1792
|
+
-webkit-tap-highlight-color: transparent;
|
|
1793
|
+
padding: var(--lumo-space-xs) 0;
|
|
1794
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1795
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1796
|
+
--_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
|
|
1797
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
:host::before {
|
|
1801
|
+
height: var(--_input-height);
|
|
1802
|
+
box-sizing: border-box;
|
|
1803
|
+
display: inline-flex;
|
|
1804
|
+
align-items: center;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
1808
|
+
-webkit-mask-image: none;
|
|
1809
|
+
mask-image: none;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
1813
|
+
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
/* Hover */
|
|
1817
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1818
|
+
opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/* Touch device adjustment */
|
|
1822
|
+
@media (pointer: coarse) {
|
|
1823
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1824
|
+
opacity: 0;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1828
|
+
opacity: 0.2;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/* Trigger when not focusing using the keyboard */
|
|
1833
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
1834
|
+
transform: scaleX(0);
|
|
1835
|
+
transition-duration: 0.15s, 1s;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/* Focus-ring */
|
|
1839
|
+
:host([focus-ring]) [part='input-field'] {
|
|
1840
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/* Read-only and disabled */
|
|
1844
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
1845
|
+
opacity: 0;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/* Read-only style */
|
|
1849
|
+
:host([readonly]) {
|
|
1850
|
+
--vaadin-input-field-border-color: transparent;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/* Disabled style */
|
|
1854
|
+
:host([disabled]) {
|
|
1855
|
+
pointer-events: none;
|
|
1856
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
:host([disabled]) [part='label'],
|
|
1860
|
+
:host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
|
|
1861
|
+
color: var(--lumo-disabled-text-color);
|
|
1862
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
:host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
|
|
1866
|
+
color: var(--_disabled-value-color);
|
|
1867
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/* Invalid style */
|
|
1871
|
+
:host([invalid]) {
|
|
1872
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
1876
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
:host([input-prevented]) [part='input-field'] {
|
|
1880
|
+
animation: shake 0.15s infinite;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
@keyframes shake {
|
|
1884
|
+
25% {
|
|
1885
|
+
transform: translateX(4px);
|
|
1886
|
+
}
|
|
1887
|
+
75% {
|
|
1888
|
+
transform: translateX(-4px);
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
/* Small theme */
|
|
1893
|
+
:host([theme~='small']) {
|
|
1894
|
+
font-size: var(--lumo-font-size-s);
|
|
1895
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
:host([theme~='small']) [part='label'] {
|
|
1899
|
+
font-size: var(--lumo-font-size-xs);
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
:host([theme~='small']) [part='error-message'] {
|
|
1903
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/* Slotted content */
|
|
1907
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
1908
|
+
color: var(--lumo-secondary-text-color);
|
|
1909
|
+
font-weight: 400;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
[part='clear-button']::before {
|
|
1913
|
+
content: var(--lumo-icons-cross);
|
|
1914
|
+
}
|
|
1915
|
+
`,Pu=[Tu,Au,nm,rm];De("",Pu,{moduleId:"lumo-input-field-shared-styles"});const im=me`
|
|
1916
|
+
[part='toggle-button']::before {
|
|
1917
|
+
content: var(--lumo-icons-calendar);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
[part='clear-button']::before {
|
|
1921
|
+
content: var(--lumo-icons-cross);
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
1925
|
+
[part='overlay-content'] {
|
|
1926
|
+
height: 70vh;
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
1931
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
1935
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1936
|
+
}
|
|
1937
|
+
`;De("vaadin-date-picker",[Pu,im],{moduleId:"lumo-date-picker"});/**
|
|
1938
|
+
@license
|
|
1939
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1940
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1941
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1942
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1943
|
+
Code distributed by Google as part of the polymer project is also
|
|
1944
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1945
|
+
*/window.JSCompiler_renameProperty=function(n,e){return n};/**
|
|
1946
|
+
@license
|
|
1947
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1948
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1949
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1950
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1951
|
+
Code distributed by Google as part of the polymer project is also
|
|
1952
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1953
|
+
*/let om=/(url\()([^)]*)(\))/g,sm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ir,je;function Pn(n,e){if(n&&sm.test(n)||n==="//")return n;if(ir===void 0){ir=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ir=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),ir)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 Do(n,e){return n.replace(om,function(t,r,i,o){return r+"'"+Pn(i.replace(/["']/g,""),e)+"'"+o})}function Mo(n){return n.substring(0,n.lastIndexOf("/")+1)}/**
|
|
1954
|
+
@license
|
|
1955
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1956
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1957
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1958
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1959
|
+
Code distributed by Google as part of the polymer project is also
|
|
1960
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1961
|
+
*/const Su=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const am=Su&&"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 lm=window.Polymer&&window.Polymer.rootPath||Mo(document.baseURI||window.location.href),Sr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let kr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,um=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ku=window.Polymer&&window.Polymer.legacyOptimizations||!1,Du=window.Polymer&&window.Polymer.legacyWarnings||!1,dm=window.Polymer&&window.Polymer.syncInitialRender||!1,no=window.Polymer&&window.Polymer.legacyUndefined||!1,cm=window.Polymer&&window.Polymer.orderedComputed||!1,Fs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,hm=window.Polymer&&window.Polymer.fastDomIf||!1,Us=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let fm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1962
|
+
@license
|
|
1963
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1964
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1965
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1966
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1967
|
+
Code distributed by Google as part of the polymer project is also
|
|
1968
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1969
|
+
*/let pm=0;const Be=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=pm++;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
|
+
@license
|
|
1971
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1972
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1973
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1974
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1975
|
+
Code distributed by Google as part of the polymer project is also
|
|
1976
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1977
|
+
*/let Bo={},Mu={};function zs(n,e){Bo[n]=Mu[n.toLowerCase()]=e}function $s(n){return Bo[n]||Mu[n.toLowerCase()]}function mm(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=$s(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=Mo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(kr&&$s(e)!==void 0)throw zs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,zs(e,this),mm(this)}}}In.prototype.modules=Bo;customElements.define("dom-module",In);/**
|
|
1978
|
+
@license
|
|
1979
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1980
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1981
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1982
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1983
|
+
Code distributed by Google as part of the polymer project is also
|
|
1984
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1985
|
+
*/const _m="link[rel=import][type~=css]",gm="include",Vs="shady-unscoped";function Bu(n){return In.import(n)}function Ws(n){let e=n.body?n.body:n;const t=Do(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function bm(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...vm(e[r]));return t}function vm(n){const e=Bu(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Iu(e));const r=e.querySelector("template");r&&t.push(...Ou(r,e.assetpath)),e._styles=t}return e._styles}function Ou(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(gm);s&&t.push(...bm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Do(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function ym(n){let e=Bu(n);return e?Iu(e):[]}function Iu(n){const e=[],t=n.querySelectorAll(_m);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(Vs);if(s&&!o._unscopedStyle){const a=Ws(o);a.setAttribute(Vs,""),o._unscopedStyle=a}else o._style||(o._style=Ws(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
|
|
1986
|
+
@license
|
|
1987
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1988
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1989
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1990
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1991
|
+
Code distributed by Google as part of the polymer project is also
|
|
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;/**
|
|
1994
|
+
@license
|
|
1995
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1996
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1997
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1998
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1999
|
+
Code distributed by Google as part of the polymer project is also
|
|
2000
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2001
|
+
*/function ro(n){return n.indexOf(".")>=0}function Lt(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Nu(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 wm(n,e){return n===e||Nu(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 Lu(n){return Array.isArray(n)?wn(n).split("."):n.toString().split(".")}function We(n,e,t){let r=n,i=Lu(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 js(n,e,t){let r=n,i=Lu(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
|
+
@license
|
|
2003
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2004
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2005
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2006
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2007
|
+
Code distributed by Google as part of the polymer project is also
|
|
2008
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2009
|
+
*/const Dr={},Cm=/-[a-z]/g,Em=/([A-Z])/g;function Hu(n){return Dr[n]||(Dr[n]=n.indexOf("-")<0?n:n.replace(Cm,e=>e[1].toUpperCase()))}function Zr(n){return Dr[n]||(Dr[n]=n.replace(Em,"-$1").toLowerCase())}/**
|
|
2010
|
+
@license
|
|
2011
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2012
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2013
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2014
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2015
|
+
Code distributed by Google as part of the polymer project is also
|
|
2016
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2017
|
+
*/let xm=0,Ru=0,Xt=[],Am=0,io=!1,Fu=document.createTextNode("");new window.MutationObserver(Tm).observe(Fu,{characterData:!0});function Tm(){io=!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),Ru+=n}const Pm={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)}},Uu={run(n){return io||(io=!0,Fu.textContent=Am++),Xt.push(n),xm++},cancel(n){const e=n-Ru;if(e>=0){if(!Xt[e])throw new Error("invalid async handle: "+n);Xt[e]=null}}};/**
|
|
2018
|
+
@license
|
|
2019
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2020
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2021
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2022
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2023
|
+
Code distributed by Google as part of the polymer project is also
|
|
2024
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2025
|
+
*/const Sm=Uu,zu=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,Sm.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});/**
|
|
2026
|
+
@license
|
|
2027
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2028
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2029
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2030
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2031
|
+
Code distributed by Google as part of the polymer project is also
|
|
2032
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2033
|
+
*/const $u={};let or=HTMLElement.prototype;for(;or;){let n=Object.getOwnPropertyNames(or);for(let e=0;e<n.length;e++)$u[n[e]]=!0;or=Object.getPrototypeOf(or)}const km=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Dm(n,e){if(!$u[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 Mm=Be(n=>{const e=zu(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Hu(i[o]))}static attributeNameForProperty(i){return Zr(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(km(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){Dm(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
|
+
@license
|
|
2035
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2036
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2037
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2038
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2039
|
+
Code distributed by Google as part of the polymer project is also
|
|
2040
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2041
|
+
*/const Bm={"dom-if":!0,"dom-repeat":!0};let Gs=!1,Ys=!1;function Om(){if(!Gs){Gs=!0;const n=document.createElement("textarea");n.placeholder="a",Ys=n.placeholder===n.textContent}return Ys}function Im(n){Om()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Nm=(()=>{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 Lm(n){let e=n.getAttribute("is");if(e&&Bm[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];Nm(n,t,r),t.removeAttribute(r)}}return n}function Vu(n,e){let t=e.parentInfo&&Vu(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 Hm(n,e,t,r){r.id&&(e[r.id]=t)}function Rm(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 Fm(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Um(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 zm=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),Im(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=Lm(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]=Vu(a,c);Hm(this,a.$,h,c),Fm(this,h,c,i),Rm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Um(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
|
+
* @fileoverview
|
|
2043
|
+
* @suppress {checkPrototypalTypes}
|
|
2044
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2045
|
+
* This code may only be used under the BSD style license found at
|
|
2046
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2047
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2048
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2049
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2050
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2051
|
+
*/let Hn=0;const Rn=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Wu="__computeInfo",$m=/[A-Z]/;function Ci(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?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||Oo(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 Vm(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||Oo(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function Oo(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Nu(t,n))||!!(e.wildcard&&Nn(t,n))}else return!0}function qs(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 Wm(n,e,t,r,i){let o=n[ge.NOTIFY],s,a=Hn++;for(let u in e)e[u]&&(o&&Vm(n,o,a,u,t,r,i)||i&&jm(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function jm(n,e,t){let r=Lt(e);if(r!==e){let i=Zr(r)+"-changed";return ju(n,i,t[e],e),!0}return!1}function ju(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Le(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function Gm(n,e,t,r,i,o){let a=(o?Lt(e):e)!=e?e:null,l=a?We(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),ju(n,i.eventName,l,a)}function Ym(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[ge.READ_ONLY]||!e[ge.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function qm(n,e,t,r,i){let o=n.__data[e];Sr&&(o=Sr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Xm(n,e,t,r){let i=n[ge.COMPUTE];if(i)if(cm){Hn++;const o=Km(n),s=[];for(let l in e)Xs(l,i,s,o,r);let a;for(;a=s.shift();)Gu(n,"",e,t,a)&&Xs(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 Zm=(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)},Xs=(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!==Hn&&(!i||Oo(n,l.trigger))&&(l.info.lastRun=Hn,Zm(l.info,t,r))}};function Km(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[ge.COMPUTE];let{counts:r,ready:i,total:o}=Jm(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 Jm(n){const e=n[Wu],t={},r=n[ge.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 Gu(n,e,t,r,i){let o=oo(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 Qm(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 Ei(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),i_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Zr(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,e_(n,e,a,d,l)}}function e_(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=qu(l),l.wildcard=!0),n._addTemplatePropertyEffect(e,l.rootProperty,{fn:t_,info:s,trigger:l})}}}function t_(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&&n_(n,a,l,u,d)}}function n_(n,e,t,r,i){if(i=r_(e,i,t,r),Sr&&(i=Sr(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[ge.READ_ONLY]||!e[ge.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function r_(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 i_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function o_(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];s_(s,u),a_(s,n,u)}s.__dataHost=n}}function s_(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 a_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Ym(i,e,t.target,r.source,r.negate)})}}function Zs(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 oo(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 l_=[],Yu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",u_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",d_="(?:'(?:[^'\\\\]|\\\\.)*')",c_='(?:"(?:[^"\\\\]|\\\\.)*")',h_="(?:"+d_+"|"+c_+")",Ks="(?:("+Yu+"|"+u_+"|"+h_+")\\s*)",f_="(?:"+Ks+"(?:,\\s*"+Ks+")*)",p_="(?:\\(\\s*(?:"+f_+"?)\\)\\s*)",m_="("+Yu+"\\s*"+p_+"?)",__="(\\[\\[|{{)\\s*",g_="(?:]]|}})",b_="(?:(!)\\s*)?",v_=__+b_+m_+g_,Js=new RegExp(v_,"g");function Qs(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function xi(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:l_};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return y_(i,r)}else return r}return null}function y_(n,e){return e.args=n.map(function(t){let r=qu(t);return r.literal||(e.static=!1),r},this),e}function qu(n){let e=n.trim().replace(/,/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=ro(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ea(n,e,t){let r=We(n,t);return r===void 0&&(r=e[t]),r}function Xu(n,e,t,r){const i={indexSplices:r};no&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),no&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function gn(n,e,t,r,i,o){Xu(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function w_(n){return n[0].toUpperCase()+n.substring(1)}const Io=Be(n=>{const e=zm(Mm(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 ge}_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[ge.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==ge.READ_ONLY);let a=Ci(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=Ci(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,ge.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,ge.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,ge.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,ge.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Lt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=We(this,i);if(i=js(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return Qm(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&&ro(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[ge.NOTIFY]&&this[ge.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[ge.READ_ONLY]||!this[ge.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;Xm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Cn(this,this[ge.REFLECT],o,s,a),Cn(this,this[ge.OBSERVE],o,s,a),l&&Wm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[ge.PROPAGATE]&&Cn(this,this[ge.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=We(this,i,s);Xu(this,a,s.path,o)}get(i,o){return We(o||this,i)}set(i,o,s){s?js(s,i,o):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=We(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=We(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=We(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=We(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=We(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=We(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,ge.READ_ONLY),o&&(this["_set"+w_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,ge.OBSERVE,{fn:qs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,ge.OBSERVE,{fn:qs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=xi(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Zs(this,s,ge.OBSERVE,oo,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,ge.NOTIFY,{fn:Gm,info:{eventName:Zr(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,ge.REFLECT,{fn:qm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=xi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Zs(this,a,ge.COMPUTE,Gu,i,s);Ci(this,Wu)[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:b,literal:_}=i[u];if(!_)if(f){const C=Nn(c,o),v=ea(a,s,C?o:c);b={path:C?o:c,value:v,base:C?We(a,c):v}}else b=h?ea(a,s,c):a[c];if(no&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return Rn;l[u]=b}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,o_(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=Qs(l)||" ",Ei(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";$m.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Qs(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=Hu(a)),Ei(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";Fs&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(hm&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Fs||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Ei(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Js.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="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let _=xi(c),C=[];if(_){let{args:v,methodName:g}=_;for(let y=0;y<v.length;y++){let S=v[y];S.literal||C.push(S)}let A=o.dynamicFns;(A&&A[g]||_.static)&&(C.push(g),_.dynamicFn=!0)}else C.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:C,event:f}),a=Js.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=oo(i,s,a,l,o.signature):s!=o.source?d=We(i,o.source):u&&ro(s)?d=We(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),bn=[];/**
|
|
2052
|
+
@license
|
|
2053
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2054
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2055
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2056
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2057
|
+
Code distributed by Google as part of the polymer project is also
|
|
2058
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2059
|
+
*//**
|
|
2060
|
+
@license
|
|
2061
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2062
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2063
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2064
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2065
|
+
Code distributed by Google as part of the polymer project is also
|
|
2066
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2067
|
+
*/function C_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const E_=Be(n=>{const e=zu(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=C_(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
|
+
* @fileoverview
|
|
2069
|
+
* @suppress {checkPrototypalTypes}
|
|
2070
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2071
|
+
* This code may only be used under the BSD style license found at
|
|
2072
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2073
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2074
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2075
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2076
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2077
|
+
*/const x_="3.5.2",ta=window.ShadyCSS&&window.ShadyCSS.cssBuild,A_=Be(n=>{const e=E_(Io(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(!ta){const h=u.content.querySelectorAll("style"),f=Ou(u),b=ym(d),_=u.content.firstElementChild;for(let v=0;v<b.length;v++){let g=b[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let C=0;for(let v=0;v<f.length;v++){let g=f[v],A=h[C];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):C++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),fm&&ta&&am){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!kr||um)&&(u=In.import(l,"template"),kr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return x_}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):ku||(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=Mo(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=lm,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 Do(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=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])),dm&&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 Du&&!(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
|
+
@license
|
|
2079
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2080
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2081
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2082
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2083
|
+
Code distributed by Google as part of the polymer project is also
|
|
2084
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2085
|
+
*/const na=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Zu{constructor(e,t){Ju(e,t);const r=t.reduce((i,o,s)=>i+Ku(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Ku(n){if(n instanceof Zu)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function T_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Zu)return Ku(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Ht=function(e,...t){Ju(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+T_(s)+e[a+1],e[0]);return na&&(i=na.createHTML(i)),r.innerHTML=i,r},Ju=(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
|
+
@license
|
|
2087
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2088
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2089
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2090
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2091
|
+
Code distributed by Google as part of the polymer project is also
|
|
2092
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2093
|
+
*/const yt=A_(HTMLElement);/**
|
|
2094
|
+
* @license
|
|
2095
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2096
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
+
*/const it=[];function so(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function ao(){return document.documentElement.getAttribute("dir")}function P_(){const n=ao();it.forEach(e=>{so(e,n)})}const S_=new MutationObserver(P_);S_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Kr=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(),so(this,ao(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=ao(),s=i===o&&it.indexOf(this)===-1,a=!i&&r&&it.indexOf(this)===-1;s||a?(this.__subscribe(),so(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)}};/**
|
|
2098
|
+
* @license
|
|
2099
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2100
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2101
|
+
*/const k_=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
|
+
* @license
|
|
2103
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2104
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2105
|
+
*/const D_=me`
|
|
2106
|
+
:host {
|
|
2107
|
+
display: flex;
|
|
2108
|
+
align-items: center;
|
|
2109
|
+
flex: 0 1 auto;
|
|
2110
|
+
border-radius:
|
|
2111
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
2112
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
2113
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
2114
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
2115
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
2116
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
2117
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
2118
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
2119
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
:host([dir='rtl']) {
|
|
2123
|
+
border-radius:
|
|
2124
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
2125
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
2126
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
2127
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
2128
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
:host([hidden]) {
|
|
2132
|
+
display: none !important;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/* Reset the native input styles */
|
|
2136
|
+
::slotted(input) {
|
|
2137
|
+
-webkit-appearance: none;
|
|
2138
|
+
-moz-appearance: none;
|
|
2139
|
+
flex: auto;
|
|
2140
|
+
white-space: nowrap;
|
|
2141
|
+
overflow: hidden;
|
|
2142
|
+
width: 100%;
|
|
2143
|
+
height: 100%;
|
|
2144
|
+
outline: none;
|
|
2145
|
+
margin: 0;
|
|
2146
|
+
padding: 0;
|
|
2147
|
+
border: 0;
|
|
2148
|
+
border-radius: 0;
|
|
2149
|
+
min-width: 0;
|
|
2150
|
+
font: inherit;
|
|
2151
|
+
line-height: normal;
|
|
2152
|
+
color: inherit;
|
|
2153
|
+
background-color: transparent;
|
|
2154
|
+
/* Disable default invalid style in Firefox */
|
|
2155
|
+
box-shadow: none;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
::slotted(*) {
|
|
2159
|
+
flex: none;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
2163
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
2164
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
2165
|
+
font: inherit;
|
|
2166
|
+
color: inherit;
|
|
2167
|
+
/* Override default opacity in Firefox */
|
|
2168
|
+
opacity: 1;
|
|
2169
|
+
}
|
|
2170
|
+
`;/**
|
|
2171
|
+
* @license
|
|
2172
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2173
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2174
|
+
*/De("vaadin-input-container",D_,{moduleId:"vaadin-input-container-styles"});class M_ extends k_(Nt(Kr(yt))){static get is(){return"vaadin-input-container"}static get template(){return Ht`
|
|
2175
|
+
<slot name="prefix"></slot>
|
|
2176
|
+
<slot></slot>
|
|
2177
|
+
<slot name="suffix"></slot>
|
|
2178
|
+
`}}rt(M_);/**
|
|
2179
|
+
* @license
|
|
2180
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2181
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2182
|
+
*/const B_=me`
|
|
2183
|
+
:host {
|
|
2184
|
+
z-index: 200;
|
|
2185
|
+
position: fixed;
|
|
2186
|
+
|
|
2187
|
+
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
2188
|
+
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
2189
|
+
|
|
2190
|
+
/* Default position constraints: the entire viewport. Note: themes can
|
|
2191
|
+
override this to introduce gaps between the overlay and the viewport. */
|
|
2192
|
+
inset: 0;
|
|
2193
|
+
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
2194
|
+
|
|
2195
|
+
/* Use flexbox alignment for the overlay part. */
|
|
2196
|
+
display: flex;
|
|
2197
|
+
flex-direction: column; /* makes dropdowns sizing easier */
|
|
2198
|
+
/* Align to center by default. */
|
|
2199
|
+
align-items: center;
|
|
2200
|
+
justify-content: center;
|
|
2201
|
+
|
|
2202
|
+
/* Allow centering when max-width/max-height applies. */
|
|
2203
|
+
margin: auto;
|
|
2204
|
+
|
|
2205
|
+
/* The host is not clickable, only the overlay part is. */
|
|
2206
|
+
pointer-events: none;
|
|
2207
|
+
|
|
2208
|
+
/* Remove tap highlight on touch devices. */
|
|
2209
|
+
-webkit-tap-highlight-color: transparent;
|
|
2210
|
+
|
|
2211
|
+
/* CSS API for host */
|
|
2212
|
+
--vaadin-overlay-viewport-bottom: 0;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
:host([hidden]),
|
|
2216
|
+
:host(:not([opened]):not([closing])),
|
|
2217
|
+
:host(:not([opened]):not([closing])) [part='overlay'] {
|
|
2218
|
+
display: none !important;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
[part='overlay'] {
|
|
2222
|
+
-webkit-overflow-scrolling: touch;
|
|
2223
|
+
overflow: auto;
|
|
2224
|
+
pointer-events: auto;
|
|
2225
|
+
|
|
2226
|
+
/* Prevent overflowing the host */
|
|
2227
|
+
max-width: 100%;
|
|
2228
|
+
box-sizing: border-box;
|
|
2229
|
+
|
|
2230
|
+
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
[part='backdrop'] {
|
|
2234
|
+
z-index: -1;
|
|
2235
|
+
content: '';
|
|
2236
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2237
|
+
position: fixed;
|
|
2238
|
+
inset: 0;
|
|
2239
|
+
pointer-events: auto;
|
|
2240
|
+
}
|
|
2241
|
+
`;/**
|
|
2242
|
+
* @license
|
|
2243
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2244
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2245
|
+
*/let No=!1;window.addEventListener("keydown",()=>{No=!0},{capture:!0});window.addEventListener("mousedown",()=>{No=!1},{capture:!0});function lo(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Lo(){return No}function O_(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 I_(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 N_(n,e){const t=[];for(;n.length>0&&e.length>0;)I_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function uo(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=uo(n.slice(0,t)),i=uo(n.slice(t));return N_(r,i)}function Qu(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 L_(n){return n.getRootNode().activeElement===n}function H_(n){if(!Qu(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function ed(n,e){if(n.nodeType!==Node.ELEMENT_NODE||O_(n))return!1;const t=n,r=H_(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=ed(s,e)||i}),i}function R_(n){const e=[];return ed(n,e)?uo(e):e}/**
|
|
2246
|
+
@license
|
|
2247
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2248
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2249
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2250
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2251
|
+
Code distributed by Google as part of the polymer project is also
|
|
2252
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2253
|
+
*/let co=!1,F_=[],td=[];function U_(){co=!0,requestAnimationFrame(function(){co=!1,z_(F_),setTimeout(function(){$_(td)})})}function z_(n){for(;n.length;)nd(n.shift())}function $_(n){for(let e=0,t=n.length;e<t;e++)nd(n.shift())}function nd(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function rd(n,e,t){co||U_(),td.push([n,e,t])}/**
|
|
2254
|
+
* @license
|
|
2255
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2256
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2257
|
+
*/const Jr=n=>n.test(navigator.userAgent),ho=n=>n.test(navigator.platform),V_=n=>n.test(navigator.vendor);Jr(/Android/u);Jr(/Chrome/u)&&V_(/Google Inc/u);Jr(/Firefox/u);const W_=ho(/^iPad/u)||ho(/^Mac/u)&&navigator.maxTouchPoints>1,j_=ho(/^iPhone/u),id=j_||W_;Jr(/^((?!chrome|android).)*safari/iu);const G_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
|
|
2258
|
+
* @license
|
|
2259
|
+
* Copyright (c) 2017 Anton Korzunov
|
|
2260
|
+
* SPDX-License-Identifier: MIT
|
|
2261
|
+
*/let Vt=new WeakMap,sr=new WeakMap,ar={},Ai=0;const ra=n=>n&&n.nodeType===Node.ELEMENT_NODE,Ti=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},Y_=(n,e)=>ra(n)?e.map(t=>{if(!ra(t))return Ti(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 Ti(t,"is not contained inside",n),null}).filter(t=>!!t):(Ti(n,"is not a valid element"),[]),q_=(n,e,t,r)=>{const i=Y_(e,Array.isArray(n)?n:[n]);ar[t]||(ar[t]=new WeakMap);const o=ar[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(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const _=b.getAttribute(r),C=_!==null&&_!=="false",v=(Vt.get(b)||0)+1,g=(o.get(b)||0)+1;Vt.set(b,v),o.set(b,g),s.push(b),v===1&&C&&sr.set(b,!0),g===1&&b.setAttribute(t,"true"),C||b.setAttribute(r,"true")}})};return d(e),a.clear(),Ai+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(sr.has(c)?sr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),Ai-=1,Ai||(Vt=new WeakMap,Vt=new WeakMap,sr=new WeakMap,ar={})}},od=(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]"))),q_(r,e,t,"aria-hidden")};/**
|
|
2262
|
+
* @license
|
|
2263
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2264
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2265
|
+
*/class X_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=od(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2266
|
+
* @license
|
|
2267
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2268
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2269
|
+
*/class Z_{saveFocus(e){this.focusNode=e||lo()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;lo()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
|
|
2270
|
+
* @license
|
|
2271
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2272
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2273
|
+
*/const Pi=[];class K_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return R_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(L_).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.");Pi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Pi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Pi).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
|
+
* @license
|
|
2275
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
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)}});/**
|
|
2278
|
+
* @license
|
|
2279
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2280
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2281
|
+
*/const J_=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 X_(this),this.__focusTrapController=new K_(this),this.__focusRestorationController=new Z_}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=!Lo();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=lo();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
|
+
* @license
|
|
2283
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2284
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2285
|
+
*/const sd=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),fo=()=>sd().filter(n=>n.$.overlay),Q_=n=>n===fo().pop(),e0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Q_(this)}bringToFront(){let t="";const r=sd().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"),fo().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=fo();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
|
|
2286
|
+
* @license
|
|
2287
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2288
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2289
|
+
*/const t0=n=>class extends J_(e0(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),id&&(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(),rd(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
|
+
* @license
|
|
2291
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2292
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2293
|
+
*/function n0(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 Ho(n){return n?new Set(n.split(" ")):new Set}function Qr(n){return n?[...n].join(" "):""}function ad(n,e,t){const r=Ho(n.getAttribute(e));r.add(t),n.setAttribute(e,Qr(r))}function r0(n,e,t){const r=Ho(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,Qr(r))}function i0(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
|
|
2294
|
+
* @license
|
|
2295
|
+
* Copyright (c) 2024 Vaadin Ltd.
|
|
2296
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2297
|
+
*/function o0(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)),b=Math.floor(r.clientHeight-(u+c)),_=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-b}px ${-_}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}/**
|
|
2298
|
+
* @license
|
|
2299
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2300
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2301
|
+
*/const Si={start:"top",end:"bottom"},ki={start:"left",end:"right"},ia=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),s0=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=n0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=o0(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,ia.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,ia.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,Si,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,ki,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,ki)}__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,Si)}__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===Si.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===ki.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
|
+
* @license
|
|
2303
|
+
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2304
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2305
|
+
*/const a0=n=>class extends s0(t0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Qu(t.composedPath()[0])&&t.preventDefault()}};/**
|
|
2306
|
+
* @license
|
|
2307
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2308
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2309
|
+
*/const l0=me`
|
|
2310
|
+
[part='overlay'] {
|
|
2311
|
+
display: flex;
|
|
2312
|
+
flex: auto;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
[part~='content'] {
|
|
2316
|
+
flex: auto;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
@media (forced-colors: active) {
|
|
2320
|
+
[part='overlay'] {
|
|
2321
|
+
outline: 3px solid;
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
`;/**
|
|
2325
|
+
* @license
|
|
2326
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2327
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2328
|
+
*/De("vaadin-date-picker-overlay",[B_,l0],{moduleId:"vaadin-date-picker-overlay-styles"});class u0 extends a0(Kr(Nt(yt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ht`
|
|
2329
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2330
|
+
<div part="overlay" id="overlay">
|
|
2331
|
+
<div part="content" id="content">
|
|
2332
|
+
<slot></slot>
|
|
2333
|
+
</div>
|
|
2334
|
+
</div>
|
|
2335
|
+
`}}rt(u0);const d0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_r=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function c0(){function n(){return!0}return ld(n)}function h0(){try{return f0()?!0:p0()?_r?!m0():!c0():!1}catch(n){return!1}}function f0(){return localStorage.getItem("vaadin.developmentmode.force")}function p0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function m0(){return!!(_r&&Object.keys(_r).map(e=>_r[e]).filter(e=>e.productionMode).length>0)}function ld(n,e){if(typeof n!="function")return;const t=d0.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 oa=function(n,e){if(window.Vaadin.developmentMode)return ld(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=h0());function _0(){/*! vaadin-dev-mode:start
|
|
2336
|
+
(function () {
|
|
2337
|
+
'use strict';
|
|
2338
|
+
|
|
2339
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2340
|
+
return typeof obj;
|
|
2341
|
+
} : function (obj) {
|
|
2342
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2346
|
+
if (!(instance instanceof Constructor)) {
|
|
2347
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2348
|
+
}
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
var createClass = function () {
|
|
2352
|
+
function defineProperties(target, props) {
|
|
2353
|
+
for (var i = 0; i < props.length; i++) {
|
|
2354
|
+
var descriptor = props[i];
|
|
2355
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2356
|
+
descriptor.configurable = true;
|
|
2357
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2358
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2363
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2364
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2365
|
+
return Constructor;
|
|
2366
|
+
};
|
|
2367
|
+
}();
|
|
2368
|
+
|
|
2369
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2370
|
+
return window.Polymer && window.Polymer.version;
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
var StatisticsGatherer = function () {
|
|
2374
|
+
function StatisticsGatherer(logger) {
|
|
2375
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2376
|
+
|
|
2377
|
+
this.now = new Date().getTime();
|
|
2378
|
+
this.logger = logger;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
createClass(StatisticsGatherer, [{
|
|
2382
|
+
key: 'frameworkVersionDetectors',
|
|
2383
|
+
value: function frameworkVersionDetectors() {
|
|
2384
|
+
return {
|
|
2385
|
+
'Flow': function Flow() {
|
|
2386
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2387
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2388
|
+
return window.Vaadin.Flow.clients[key];
|
|
2389
|
+
}).filter(function (client) {
|
|
2390
|
+
return client.getVersionInfo;
|
|
2391
|
+
}).map(function (client) {
|
|
2392
|
+
return client.getVersionInfo().flow;
|
|
2393
|
+
});
|
|
2394
|
+
if (flowVersions.length > 0) {
|
|
2395
|
+
return flowVersions[0];
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2400
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2401
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2402
|
+
return client.getVersionInfo;
|
|
2403
|
+
}).map(function (client) {
|
|
2404
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2405
|
+
});
|
|
2406
|
+
if (frameworkVersions.length > 0) {
|
|
2407
|
+
return frameworkVersions[0];
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
'AngularJs': function AngularJs() {
|
|
2412
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2413
|
+
return window.angular.version.full;
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
'Angular': function Angular() {
|
|
2417
|
+
if (window.ng) {
|
|
2418
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2419
|
+
if (tags.length > 0) {
|
|
2420
|
+
return tags[0].getAttribute("ng-version");
|
|
2421
|
+
}
|
|
2422
|
+
return "Unknown";
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
'Backbone.js': function BackboneJs() {
|
|
2426
|
+
if (window.Backbone) {
|
|
2427
|
+
return window.Backbone.VERSION;
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
'React': function React() {
|
|
2431
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2432
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2433
|
+
// React does not publish the version by default
|
|
2434
|
+
return "unknown";
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
'Ember': function Ember() {
|
|
2438
|
+
if (window.Em && window.Em.VERSION) {
|
|
2439
|
+
return window.Em.VERSION;
|
|
2440
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2441
|
+
return window.Ember.VERSION;
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
'jQuery': function (_jQuery) {
|
|
2445
|
+
function jQuery() {
|
|
2446
|
+
return _jQuery.apply(this, arguments);
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
jQuery.toString = function () {
|
|
2450
|
+
return _jQuery.toString();
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
return jQuery;
|
|
2454
|
+
}(function () {
|
|
2455
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2456
|
+
return jQuery.prototype.jquery;
|
|
2457
|
+
}
|
|
2458
|
+
}),
|
|
2459
|
+
'Polymer': function Polymer() {
|
|
2460
|
+
var version = getPolymerVersion();
|
|
2461
|
+
if (version) {
|
|
2462
|
+
return version;
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
'LitElement': function LitElement() {
|
|
2466
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2467
|
+
if (version) {
|
|
2468
|
+
return version;
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
'LitHtml': function LitHtml() {
|
|
2472
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2473
|
+
if (version) {
|
|
2474
|
+
return version;
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
'Vue.js': function VueJs() {
|
|
2478
|
+
if (window.Vue) {
|
|
2479
|
+
return window.Vue.version;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
};
|
|
2483
|
+
}
|
|
2484
|
+
}, {
|
|
2485
|
+
key: 'getUsedVaadinElements',
|
|
2486
|
+
value: function getUsedVaadinElements(elements) {
|
|
2487
|
+
var version = getPolymerVersion();
|
|
2488
|
+
var elementClasses = void 0;
|
|
2489
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2490
|
+
// Check all locations calling the method getEntries() in
|
|
2491
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2492
|
+
// Currently it is only used by BootstrapHandler.
|
|
2493
|
+
if (version && version.indexOf('2') === 0) {
|
|
2494
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2495
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2496
|
+
return window.Vaadin[c];
|
|
2497
|
+
}).filter(function (c) {
|
|
2498
|
+
return c.is;
|
|
2499
|
+
});
|
|
2500
|
+
} else {
|
|
2501
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2502
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2503
|
+
}
|
|
2504
|
+
elementClasses.forEach(function (klass) {
|
|
2505
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2506
|
+
elements[klass.is] = { version: version };
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
}, {
|
|
2510
|
+
key: 'getUsedVaadinThemes',
|
|
2511
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2512
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2513
|
+
var theme;
|
|
2514
|
+
var version = getPolymerVersion();
|
|
2515
|
+
if (version && version.indexOf('2') === 0) {
|
|
2516
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2517
|
+
theme = window.Vaadin[themeName];
|
|
2518
|
+
} else {
|
|
2519
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2520
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2521
|
+
}
|
|
2522
|
+
if (theme && theme.version) {
|
|
2523
|
+
themes[themeName] = { version: theme.version };
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
}, {
|
|
2528
|
+
key: 'getFrameworks',
|
|
2529
|
+
value: function getFrameworks(frameworks) {
|
|
2530
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2531
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2532
|
+
var detector = detectors[framework];
|
|
2533
|
+
try {
|
|
2534
|
+
var version = detector();
|
|
2535
|
+
if (version) {
|
|
2536
|
+
frameworks[framework] = { version: version };
|
|
2537
|
+
}
|
|
2538
|
+
} catch (e) {}
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
}, {
|
|
2542
|
+
key: 'gather',
|
|
2543
|
+
value: function gather(storage) {
|
|
2544
|
+
var storedStats = storage.read();
|
|
2545
|
+
var gatheredStats = {};
|
|
2546
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2547
|
+
|
|
2548
|
+
types.forEach(function (type) {
|
|
2549
|
+
gatheredStats[type] = {};
|
|
2550
|
+
if (!storedStats[type]) {
|
|
2551
|
+
storedStats[type] = {};
|
|
2552
|
+
}
|
|
2553
|
+
});
|
|
2554
|
+
|
|
2555
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2556
|
+
|
|
2557
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2558
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2559
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2560
|
+
|
|
2561
|
+
var now = this.now;
|
|
2562
|
+
types.forEach(function (type) {
|
|
2563
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2564
|
+
keys.forEach(function (key) {
|
|
2565
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2566
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2567
|
+
}
|
|
2568
|
+
// Discards any previously logged version number
|
|
2569
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2570
|
+
storedStats[type][key].lastUsed = now;
|
|
2571
|
+
});
|
|
2572
|
+
});
|
|
2573
|
+
|
|
2574
|
+
var newStats = JSON.stringify(storedStats);
|
|
2575
|
+
storage.write(newStats);
|
|
2576
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2577
|
+
this.logger.debug("New stats: " + newStats);
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
}]);
|
|
2581
|
+
return StatisticsGatherer;
|
|
2582
|
+
}();
|
|
2583
|
+
|
|
2584
|
+
var StatisticsStorage = function () {
|
|
2585
|
+
function StatisticsStorage(key) {
|
|
2586
|
+
classCallCheck(this, StatisticsStorage);
|
|
2587
|
+
|
|
2588
|
+
this.key = key;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
createClass(StatisticsStorage, [{
|
|
2592
|
+
key: 'read',
|
|
2593
|
+
value: function read() {
|
|
2594
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2595
|
+
try {
|
|
2596
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2597
|
+
} catch (e) {
|
|
2598
|
+
return {};
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
}, {
|
|
2602
|
+
key: 'write',
|
|
2603
|
+
value: function write(data) {
|
|
2604
|
+
localStorage.setItem(this.key, data);
|
|
2605
|
+
}
|
|
2606
|
+
}, {
|
|
2607
|
+
key: 'clear',
|
|
2608
|
+
value: function clear() {
|
|
2609
|
+
localStorage.removeItem(this.key);
|
|
2610
|
+
}
|
|
2611
|
+
}, {
|
|
2612
|
+
key: 'isEmpty',
|
|
2613
|
+
value: function isEmpty() {
|
|
2614
|
+
var storedStats = this.read();
|
|
2615
|
+
var empty = true;
|
|
2616
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2617
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2618
|
+
empty = false;
|
|
2619
|
+
}
|
|
2620
|
+
});
|
|
2621
|
+
|
|
2622
|
+
return empty;
|
|
2623
|
+
}
|
|
2624
|
+
}]);
|
|
2625
|
+
return StatisticsStorage;
|
|
2626
|
+
}();
|
|
2627
|
+
|
|
2628
|
+
var StatisticsSender = function () {
|
|
2629
|
+
function StatisticsSender(url, logger) {
|
|
2630
|
+
classCallCheck(this, StatisticsSender);
|
|
2631
|
+
|
|
2632
|
+
this.url = url;
|
|
2633
|
+
this.logger = logger;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
createClass(StatisticsSender, [{
|
|
2637
|
+
key: 'send',
|
|
2638
|
+
value: function send(data, errorHandler) {
|
|
2639
|
+
var logger = this.logger;
|
|
2640
|
+
|
|
2641
|
+
if (navigator.onLine === false) {
|
|
2642
|
+
logger.debug("Offline, can't send");
|
|
2643
|
+
errorHandler();
|
|
2644
|
+
return;
|
|
2645
|
+
}
|
|
2646
|
+
logger.debug("Sending data to " + this.url);
|
|
2647
|
+
|
|
2648
|
+
var req = new XMLHttpRequest();
|
|
2649
|
+
req.withCredentials = true;
|
|
2650
|
+
req.addEventListener("load", function () {
|
|
2651
|
+
// Stats sent, nothing more to do
|
|
2652
|
+
logger.debug("Response: " + req.responseText);
|
|
2653
|
+
});
|
|
2654
|
+
req.addEventListener("error", function () {
|
|
2655
|
+
logger.debug("Send failed");
|
|
2656
|
+
errorHandler();
|
|
2657
|
+
});
|
|
2658
|
+
req.addEventListener("abort", function () {
|
|
2659
|
+
logger.debug("Send aborted");
|
|
2660
|
+
errorHandler();
|
|
2661
|
+
});
|
|
2662
|
+
req.open("POST", this.url);
|
|
2663
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2664
|
+
req.send(data);
|
|
2665
|
+
}
|
|
2666
|
+
}]);
|
|
2667
|
+
return StatisticsSender;
|
|
2668
|
+
}();
|
|
2669
|
+
|
|
2670
|
+
var StatisticsLogger = function () {
|
|
2671
|
+
function StatisticsLogger(id) {
|
|
2672
|
+
classCallCheck(this, StatisticsLogger);
|
|
2673
|
+
|
|
2674
|
+
this.id = id;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
createClass(StatisticsLogger, [{
|
|
2678
|
+
key: '_isDebug',
|
|
2679
|
+
value: function _isDebug() {
|
|
2680
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2681
|
+
}
|
|
2682
|
+
}, {
|
|
2683
|
+
key: 'debug',
|
|
2684
|
+
value: function debug(msg) {
|
|
2685
|
+
if (this._isDebug()) {
|
|
2686
|
+
console.info(this.id + ": " + msg);
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
}]);
|
|
2690
|
+
return StatisticsLogger;
|
|
2691
|
+
}();
|
|
2692
|
+
|
|
2693
|
+
var UsageStatistics = function () {
|
|
2694
|
+
function UsageStatistics() {
|
|
2695
|
+
classCallCheck(this, UsageStatistics);
|
|
2696
|
+
|
|
2697
|
+
this.now = new Date();
|
|
2698
|
+
this.timeNow = this.now.getTime();
|
|
2699
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2700
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2701
|
+
|
|
2702
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2703
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2704
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2705
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
createClass(UsageStatistics, [{
|
|
2709
|
+
key: 'maybeGatherAndSend',
|
|
2710
|
+
value: function maybeGatherAndSend() {
|
|
2711
|
+
var _this = this;
|
|
2712
|
+
|
|
2713
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2714
|
+
return;
|
|
2715
|
+
}
|
|
2716
|
+
this.gatherer.gather(this.storage);
|
|
2717
|
+
setTimeout(function () {
|
|
2718
|
+
_this.maybeSend();
|
|
2719
|
+
}, this.gatherDelay * 1000);
|
|
2720
|
+
}
|
|
2721
|
+
}, {
|
|
2722
|
+
key: 'lottery',
|
|
2723
|
+
value: function lottery() {
|
|
2724
|
+
return true;
|
|
2725
|
+
}
|
|
2726
|
+
}, {
|
|
2727
|
+
key: 'currentMonth',
|
|
2728
|
+
value: function currentMonth() {
|
|
2729
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2730
|
+
}
|
|
2731
|
+
}, {
|
|
2732
|
+
key: 'maybeSend',
|
|
2733
|
+
value: function maybeSend() {
|
|
2734
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2735
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2736
|
+
|
|
2737
|
+
if (!firstUse) {
|
|
2738
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2739
|
+
firstUse = this.timeNow;
|
|
2740
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2744
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2745
|
+
return;
|
|
2746
|
+
}
|
|
2747
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2748
|
+
this.logger.debug("This month has already been processed");
|
|
2749
|
+
return;
|
|
2750
|
+
}
|
|
2751
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2752
|
+
// Use random sampling
|
|
2753
|
+
if (this.lottery()) {
|
|
2754
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2755
|
+
} else {
|
|
2756
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2757
|
+
return;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
this.send();
|
|
2761
|
+
}
|
|
2762
|
+
}, {
|
|
2763
|
+
key: 'send',
|
|
2764
|
+
value: function send() {
|
|
2765
|
+
// Ensure we have the latest data
|
|
2766
|
+
this.gatherer.gather(this.storage);
|
|
2767
|
+
|
|
2768
|
+
// Read, send and clean up
|
|
2769
|
+
var data = this.storage.read();
|
|
2770
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2771
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2772
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2773
|
+
var self = this;
|
|
2774
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2775
|
+
// Revert the 'month processed' flag
|
|
2776
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
}], [{
|
|
2780
|
+
key: 'version',
|
|
2781
|
+
get: function get$1() {
|
|
2782
|
+
return '2.1.2';
|
|
2783
|
+
}
|
|
2784
|
+
}, {
|
|
2785
|
+
key: 'firstUseKey',
|
|
2786
|
+
get: function get$1() {
|
|
2787
|
+
return 'vaadin.statistics.firstuse';
|
|
2788
|
+
}
|
|
2789
|
+
}, {
|
|
2790
|
+
key: 'monthProcessedKey',
|
|
2791
|
+
get: function get$1() {
|
|
2792
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2793
|
+
}
|
|
2794
|
+
}, {
|
|
2795
|
+
key: 'optOutKey',
|
|
2796
|
+
get: function get$1() {
|
|
2797
|
+
return 'vaadin.statistics.optout';
|
|
2798
|
+
}
|
|
2799
|
+
}]);
|
|
2800
|
+
return UsageStatistics;
|
|
2801
|
+
}();
|
|
2802
|
+
|
|
2803
|
+
try {
|
|
2804
|
+
window.Vaadin = window.Vaadin || {};
|
|
2805
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2806
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2807
|
+
} catch (e) {
|
|
2808
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
}());
|
|
2812
|
+
|
|
2813
|
+
vaadin-dev-mode:end **/}const g0=function(){if(typeof oa=="function")return oa(_0)};/**
|
|
2814
|
+
* @license
|
|
2815
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2816
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2817
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2818
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2819
|
+
* Code distributed by Google as part of the polymer project is also
|
|
2820
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2821
|
+
*/let sa=0,ud=0;const Zt=[];let po=!1;function b0(){po=!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),ud+=n}const Mr={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)}},v0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},y0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},w0={run(n){po||(po=!0,queueMicrotask(()=>b0())),Zt.push(n);const e=sa;return sa+=1,e},cancel(n){const e=n-ud;if(e>=0){if(!Zt[e])throw new Error(`invalid async handle: ${n}`);Zt[e]=null}}};/**
|
|
2822
|
+
@license
|
|
2823
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2824
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2825
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2826
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2827
|
+
Code distributed by Google as part of the polymer project is also
|
|
2828
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2829
|
+
*/const mo=new Set;let on=class _o{static debounce(e,t,r){return e instanceof _o?e._cancelAsync():e=new _o,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,mo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),mo.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 C0(n){mo.add(n)}/**
|
|
2830
|
+
* @license
|
|
2831
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
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(){g0()};let Di;const aa=new Set,dd=n=>class extends Kr(n){static finalize(){super.finalize();const{is:t}=this;t&&!aa.has(t)&&(window.Vaadin.registrations.push(this),aa.add(t),window.Vaadin.developmentModeCallback&&(Di=on.debounce(Di,y0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),C0(Di)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2834
|
+
* @license
|
|
2835
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2836
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2837
|
+
*/class E0{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
|
+
* @license
|
|
2839
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2840
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2841
|
+
*/let x0=0;function cd(){return x0++}/**
|
|
2842
|
+
* @license
|
|
2843
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
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}-${cd()}`}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 E0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!i0(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
|
+
* @license
|
|
2847
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2848
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2849
|
+
*/class hd 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}}))}}/**
|
|
2850
|
+
* @license
|
|
2851
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2852
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2853
|
+
*/const A0=me`
|
|
2854
|
+
:host {
|
|
2855
|
+
display: inline-block;
|
|
2856
|
+
position: relative;
|
|
2857
|
+
outline: none;
|
|
2858
|
+
white-space: nowrap;
|
|
2859
|
+
-webkit-user-select: none;
|
|
2860
|
+
-moz-user-select: none;
|
|
2861
|
+
user-select: none;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
:host([hidden]) {
|
|
2865
|
+
display: none !important;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
2869
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2870
|
+
.vaadin-button-container::before {
|
|
2871
|
+
content: '\\2003';
|
|
2872
|
+
display: inline-block;
|
|
2873
|
+
width: 0;
|
|
2874
|
+
max-height: 100%;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.vaadin-button-container {
|
|
2878
|
+
display: inline-flex;
|
|
2879
|
+
align-items: center;
|
|
2880
|
+
justify-content: center;
|
|
2881
|
+
text-align: center;
|
|
2882
|
+
width: 100%;
|
|
2883
|
+
height: 100%;
|
|
2884
|
+
min-height: inherit;
|
|
2885
|
+
text-shadow: inherit;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
[part='prefix'],
|
|
2889
|
+
[part='suffix'] {
|
|
2890
|
+
flex: none;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
[part='label'] {
|
|
2894
|
+
white-space: nowrap;
|
|
2895
|
+
overflow: hidden;
|
|
2896
|
+
text-overflow: ellipsis;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
@media (forced-colors: active) {
|
|
2900
|
+
:host {
|
|
2901
|
+
outline: 1px solid;
|
|
2902
|
+
outline-offset: -1px;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
:host([focused]) {
|
|
2906
|
+
outline-width: 2px;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
:host([disabled]) {
|
|
2910
|
+
outline-color: GrayText;
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
`,T0=n=>n`
|
|
2914
|
+
<div class="vaadin-button-container">
|
|
2915
|
+
<span part="prefix" aria-hidden="true">
|
|
2916
|
+
<slot name="prefix"></slot>
|
|
2917
|
+
</span>
|
|
2918
|
+
<span part="label">
|
|
2919
|
+
<slot></slot>
|
|
2920
|
+
</span>
|
|
2921
|
+
<span part="suffix" aria-hidden="true">
|
|
2922
|
+
<slot name="suffix"></slot>
|
|
2923
|
+
</span>
|
|
2924
|
+
</div>
|
|
2925
|
+
<slot name="tooltip"></slot>
|
|
2926
|
+
`;/**
|
|
2927
|
+
@license
|
|
2928
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2929
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2930
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2931
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2932
|
+
Code distributed by Google as part of the polymer project is also
|
|
2933
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2934
|
+
*/const P0=n=>n,fd=typeof document.head.style.touchAction=="string",go="__polymerGestures",Mi="__polymerGesturesHandled",bo="__polymerGesturesTouchAction",la=25,ua=5,S0=2,k0=["mousedown","mousemove","mouseup","click"],D0=[0,1,4,2],M0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Ro(n){return k0.indexOf(n)>-1}let B0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){B0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function O0(n){Ro(n)}const I0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),N0={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(!Ro(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!M0&&(r=D0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function L0(n){if(n.type==="click"){if(n.detail===0)return!0;const e=bt(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 H0(n){let e="auto";const t=md(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[bo]){e=i[bo];break}return e}function pd(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 md=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],Fo={},Dt=[];function R0(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 bt(n){const e=md(n);return e.length>0?e[0]:n.target}function F0(n){const e=n.type,r=n.currentTarget[go];if(!r)return;const i=r[e];if(!i)return;if(!n[Mi]&&(n[Mi]={},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;fd||(e==="touchstart"||e==="touchmove")&&U0(n)}const o=n[Mi];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 U0(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=H0(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():Br("track")}}function et(n,e,t){return Fo[e]?(z0(n,e,t),!0):!1}function z0(n,e,t){const r=Fo[e],i=r.deps,o=r.name;let s=n[go];s||(n[go]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(I0&&Ro(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,F0,O0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&_d(n,r.touchAction)}function Uo(n){Dt.push(n),n.emits.forEach(e=>{Fo[e]=n})}function $0(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 _d(n,e){fd&&n instanceof HTMLElement&&w0.run(()=>{n.style.touchAction=e}),n[bo]=e}function zo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,P0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Br(n){const e=$0(n);e.info&&(e.info.prevent=!0)}Uo({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=bt(n),t=this,r=o=>{Bt(o)||(vn("up",e,o),Kt(t.info))},i=o=>{Bt(o)&&vn("up",e,o),Kt(t.info)};pd(this.info,r,i),vn("down",e,n)},touchstart(n){vn("down",bt(n),n.changedTouches[0],n)},touchend(n){vn("up",bt(n),n.changedTouches[0],n)}});function vn(n,e,t,r){e&&zo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Br(i)}})}Uo({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>S0&&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=bt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;da(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Br("tap"),t.info.addMove({x:s,y:a}),Bt(o)||(t.info.state="end",Kt(t.info)),e&&Bi(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Kt(t.info)};pd(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=bt(n),t=n.changedTouches[0],r=t.clientX,i=t.clientY;da(this.info,r,i)&&(this.info.state==="start"&&Br("tap"),this.info.addMove({x:r,y:i}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(n){const e=bt(n),t=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function da(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>=ua||i>=ua}function Bi(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),zo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return R0(t.clientX,t.clientY)}})}Uo({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)&&ca(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){ca(this.info,n.changedTouches[0],n)}});function ca(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=bt(t||e);!o||N0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=la&&i<=la||L0(e))&&(n.prevent||zo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
2935
|
+
* @license
|
|
2936
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2937
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2938
|
+
*/const gd=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()}});/**
|
|
2939
|
+
* @license
|
|
2940
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2941
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2942
|
+
*/const ei=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){}});/**
|
|
2943
|
+
* @license
|
|
2944
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2945
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2946
|
+
*/const V0=n=>class extends gd(ei(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
|
+
* @license
|
|
2948
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2949
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2950
|
+
*/const $o=Be(n=>class extends n{get _keyboardActive(){return Lo()}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
|
+
* @license
|
|
2952
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2953
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2954
|
+
*/const bd=n=>class extends gd(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
|
+
* @license
|
|
2956
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2957
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2958
|
+
*/const W0=n=>class extends V0(bd($o(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
|
+
* @license
|
|
2960
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2961
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2962
|
+
*/De("vaadin-button",A0,{moduleId:"vaadin-button-styles"});class j0 extends W0(dd(Nt(cn(yt)))){static get is(){return"vaadin-button"}static get template(){return T0(Ht)}ready(){super.ready(),this._tooltipController=new hd(this),this.addController(this._tooltipController)}}rt(j0);/**
|
|
2963
|
+
* @license
|
|
2964
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2965
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2966
|
+
*/function G0(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 vo(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function lt(n,e,t=vo){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function Vo(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=Vo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function vd(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 yd(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function Y0(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 q0(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 X0(n){return n instanceof Date?q0({year:n.getFullYear(),month:n.getMonth(),day:n.getDate()}):""}/**
|
|
2967
|
+
@license
|
|
2968
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2969
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2970
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2971
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2972
|
+
Code distributed by Google as part of the polymer project is also
|
|
2973
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2974
|
+
*/class Or{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 Or?e._cancelAsync():e=new Or,e.setConfig(t,r),e}}let Fn=new Set;const Z0=function(n){Fn.add(n)},K0=function(){const n=!!Fn.size;return Fn.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};/**
|
|
2975
|
+
@license
|
|
2976
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2977
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2978
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2979
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2980
|
+
Code distributed by Google as part of the polymer project is also
|
|
2981
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2982
|
+
*/const Wo=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=K0();while(n||e)};/**
|
|
2983
|
+
* @license
|
|
2984
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2985
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2986
|
+
*/const wd=document.createElement("template");wd.innerHTML=`
|
|
2987
|
+
<style>
|
|
2988
|
+
:host {
|
|
2989
|
+
display: block;
|
|
2990
|
+
overflow: hidden;
|
|
2991
|
+
height: 500px;
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
#scroller {
|
|
2995
|
+
position: relative;
|
|
2996
|
+
height: 100%;
|
|
2997
|
+
overflow: auto;
|
|
2998
|
+
outline: none;
|
|
2999
|
+
margin-right: -40px;
|
|
3000
|
+
-webkit-overflow-scrolling: touch;
|
|
3001
|
+
overflow-x: hidden;
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
#scroller.notouchscroll {
|
|
3005
|
+
-webkit-overflow-scrolling: auto;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
#scroller::-webkit-scrollbar {
|
|
3009
|
+
display: none;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.buffer {
|
|
3013
|
+
position: absolute;
|
|
3014
|
+
width: var(--vaadin-infinite-scroller-buffer-width, 100%);
|
|
3015
|
+
box-sizing: border-box;
|
|
3016
|
+
padding-right: 40px;
|
|
3017
|
+
top: var(--vaadin-infinite-scroller-buffer-offset, 0);
|
|
3018
|
+
animation: fadein 0.2s;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
@keyframes fadein {
|
|
3022
|
+
from {
|
|
3023
|
+
opacity: 0;
|
|
3024
|
+
}
|
|
3025
|
+
to {
|
|
3026
|
+
opacity: 1;
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
</style>
|
|
3030
|
+
|
|
3031
|
+
<div id="scroller" tabindex="-1">
|
|
3032
|
+
<div class="buffer"></div>
|
|
3033
|
+
<div class="buffer"></div>
|
|
3034
|
+
<div id="fullHeight"></div>
|
|
3035
|
+
</div>
|
|
3036
|
+
`;class Cd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(wd.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()),Wo()}_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,Mr.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,Mr.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-${cd()}`,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
|
+
* @license
|
|
3038
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3039
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3040
|
+
*/const Ed=document.createElement("template");Ed.innerHTML=`
|
|
3041
|
+
<style>
|
|
3042
|
+
:host {
|
|
3043
|
+
--vaadin-infinite-scroller-item-height: 270px;
|
|
3044
|
+
position: absolute;
|
|
3045
|
+
top: 0;
|
|
3046
|
+
left: 0;
|
|
3047
|
+
right: 0;
|
|
3048
|
+
bottom: 0;
|
|
3049
|
+
height: 100%;
|
|
3050
|
+
}
|
|
3051
|
+
</style>
|
|
3052
|
+
`;class J0 extends Cd{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ed.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=yd(t)}}rt(J0);/**
|
|
3053
|
+
* @license
|
|
3054
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3055
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3056
|
+
*/const xd=document.createElement("template");xd.innerHTML=`
|
|
3057
|
+
<style>
|
|
3058
|
+
:host {
|
|
3059
|
+
--vaadin-infinite-scroller-item-height: 80px;
|
|
3060
|
+
width: 50px;
|
|
3061
|
+
display: block;
|
|
3062
|
+
height: 100%;
|
|
3063
|
+
position: absolute;
|
|
3064
|
+
right: 0;
|
|
3065
|
+
transform: translateX(100%);
|
|
3066
|
+
-webkit-tap-highlight-color: transparent;
|
|
3067
|
+
-webkit-user-select: none;
|
|
3068
|
+
-moz-user-select: none;
|
|
3069
|
+
user-select: none;
|
|
3070
|
+
/* Center the year scroller position. */
|
|
3071
|
+
--vaadin-infinite-scroller-buffer-offset: 50%;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
:host::before {
|
|
3075
|
+
content: '';
|
|
3076
|
+
display: block;
|
|
3077
|
+
background: transparent;
|
|
3078
|
+
width: 0;
|
|
3079
|
+
height: 0;
|
|
3080
|
+
position: absolute;
|
|
3081
|
+
left: 0;
|
|
3082
|
+
top: 50%;
|
|
3083
|
+
transform: translateY(-50%);
|
|
3084
|
+
border-width: 6px;
|
|
3085
|
+
border-style: solid;
|
|
3086
|
+
border-color: transparent;
|
|
3087
|
+
border-left-color: #000;
|
|
3088
|
+
}
|
|
3089
|
+
</style>
|
|
3090
|
+
`;class Q0 extends Cd{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(xd.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(Q0);/**
|
|
3091
|
+
* @license
|
|
3092
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3093
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3094
|
+
*/const eg=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
|
+
* @license
|
|
3096
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3097
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3098
|
+
*/class tg extends Nt(eg(yt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ht`
|
|
3099
|
+
<style>
|
|
3100
|
+
:host {
|
|
3101
|
+
display: block;
|
|
3102
|
+
height: 100%;
|
|
3103
|
+
}
|
|
3104
|
+
</style>
|
|
3105
|
+
<div part="year-number">[[year]]</div>
|
|
3106
|
+
<div part="year-separator" aria-hidden="true"></div>
|
|
3107
|
+
`}}rt(tg);/**
|
|
3108
|
+
@license
|
|
3109
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3110
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3111
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3112
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3113
|
+
Code distributed by Google as part of the polymer project is also
|
|
3114
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3115
|
+
*/function jo(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 Go=Be(n=>{class e extends n{_shouldPropertyChange(r,i,o){return jo(this,r,i,o,!0)}}return e}),ng=Be(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return jo(this,r,i,o,this.mutableData)}}return e});Go._mutablePropertyChange=jo;/**
|
|
3116
|
+
@license
|
|
3117
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3118
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3119
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3120
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3121
|
+
Code distributed by Google as part of the polymer project is also
|
|
3122
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3123
|
+
*/let yo=null;function wo(){return yo}wo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wo,writable:!0}});const Ad=Io(wo),rg=Go(Ad);function ig(n,e){yo=n,Object.setPrototypeOf(n,e.prototype),new e,yo=null}const og=Io(class{});function sg(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 wt extends og{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){sg(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}}wt.prototype.__dataHost;wt.prototype.__templatizeOptions;wt.prototype._methodHost;wt.prototype.__templatizeOwner;wt.prototype.__hostProps;const ag=Go(wt);function ha(n){let e=n.__dataHost;return e&&e._methodHost||e}function lg(n,e,t){let r=t.mutableData?ag:wt;Co.mixin&&(r=Co.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),cg(i,n,e,t),i}function ug(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?rg:Ad;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:dg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Du&&r&&pg(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)ig(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 dg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function cg(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:hg(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:fg()})}function hg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function fg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function Co(n,e,t){if(kr&&!ha(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:wt)._parseTemplate(n),o=i.templatizeInstanceClass;o||(o=lg(n,i,t),i.templatizeInstanceClass=o);const s=ha(n);ug(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 pg(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 mg(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}/**
|
|
3124
|
+
@license
|
|
3125
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3126
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3127
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3128
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3129
|
+
Code distributed by Google as part of the polymer project is also
|
|
3130
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3131
|
+
*/let fa=!1;function _g(){if(ku&&!Su){if(!fa){fa=!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
|
+
@license
|
|
3133
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3134
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3135
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3136
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3137
|
+
Code distributed by Google as part of the polymer project is also
|
|
3138
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3139
|
+
*/const gg=ng(yt);class pa extends gg{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:!Us,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(),_g()||(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=Co(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(wm(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=Or.debounce(this.__renderDebouncer,t>0?Pm.after(t):Uu,e.bind(this)),Z0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Wo()}__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),(!Us||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 mg(this.template,e)}}customElements.define(pa.is,pa);/**
|
|
3140
|
+
* @license
|
|
3141
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3142
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3143
|
+
*/const bg=n=>class extends $o(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 G0(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
|
+
* @license
|
|
3145
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3146
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3147
|
+
*/const vg=me`
|
|
3148
|
+
:host {
|
|
3149
|
+
display: block;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
#monthGrid {
|
|
3153
|
+
width: 100%;
|
|
3154
|
+
border-collapse: collapse;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
#days-container tr,
|
|
3158
|
+
#weekdays-container tr {
|
|
3159
|
+
display: flex;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
[part~='date'] {
|
|
3163
|
+
outline: none;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
[part~='disabled'] {
|
|
3167
|
+
pointer-events: none;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
[part='week-number'][hidden],
|
|
3171
|
+
[part='weekday'][hidden] {
|
|
3172
|
+
display: none;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
[part='weekday'],
|
|
3176
|
+
[part~='date'] {
|
|
3177
|
+
width: calc(100% / 7);
|
|
3178
|
+
padding: 0;
|
|
3179
|
+
font-weight: normal;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
[part='weekday']:empty,
|
|
3183
|
+
[part='week-number'] {
|
|
3184
|
+
width: 12.5%;
|
|
3185
|
+
flex-shrink: 0;
|
|
3186
|
+
padding: 0;
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
3190
|
+
:host([week-numbers]) [part~='date'] {
|
|
3191
|
+
width: 12.5%;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
@media (forced-colors: active) {
|
|
3195
|
+
[part~='date'][part~='focused'] {
|
|
3196
|
+
outline: 1px solid;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
[part~='date'][part~='selected'] {
|
|
3200
|
+
outline: 3px solid;
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
`;/**
|
|
3204
|
+
* @license
|
|
3205
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3206
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3207
|
+
*/De("vaadin-month-calendar",vg,{moduleId:"vaadin-month-calendar-styles"});class yg extends bg(Nt(yt)){static get template(){return Ht`
|
|
3208
|
+
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3209
|
+
<table
|
|
3210
|
+
id="monthGrid"
|
|
3211
|
+
role="grid"
|
|
3212
|
+
aria-labelledby="month-header"
|
|
3213
|
+
on-touchend="_preventDefault"
|
|
3214
|
+
on-touchstart="_onMonthGridTouchStart"
|
|
3215
|
+
>
|
|
3216
|
+
<thead id="weekdays-container">
|
|
3217
|
+
<tr role="row" part="weekdays">
|
|
3218
|
+
<th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
|
|
3219
|
+
<template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
|
|
3220
|
+
<th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
|
|
3221
|
+
[[item.weekDayShort]]
|
|
3222
|
+
</th>
|
|
3223
|
+
</template>
|
|
3224
|
+
</tr>
|
|
3225
|
+
</thead>
|
|
3226
|
+
<tbody id="days-container">
|
|
3227
|
+
<template is="dom-repeat" items="[[_weeks]]" as="week">
|
|
3228
|
+
<tr role="row">
|
|
3229
|
+
<td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
|
|
3230
|
+
[[__getWeekNumber(week)]]
|
|
3231
|
+
</td>
|
|
3232
|
+
<template is="dom-repeat" items="[[week]]">
|
|
3233
|
+
<td
|
|
3234
|
+
role="gridcell"
|
|
3235
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
3236
|
+
date="[[item]]"
|
|
3237
|
+
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3238
|
+
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3239
|
+
aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
|
|
3240
|
+
aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3241
|
+
aria-label$="[[__getDayAriaLabel(item)]]"
|
|
3242
|
+
>[[_getDate(item)]]</td
|
|
3243
|
+
>
|
|
3244
|
+
</template>
|
|
3245
|
+
</tr>
|
|
3246
|
+
</template>
|
|
3247
|
+
</tbody>
|
|
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>vo(new Date),u=e<vo(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(yg);/**
|
|
3250
|
+
* @license
|
|
3251
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3252
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3253
|
+
*/class Td{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
|
+
* @license
|
|
3255
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3256
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3257
|
+
*/const wg=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(){_d(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 Td(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,Mr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(Vo(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 yd(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&<(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return ze(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 ze(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{rd(this,()=>{Wo(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(vd(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}};/**
|
|
3258
|
+
* @license
|
|
3259
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3260
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3261
|
+
*/const Cg=me`
|
|
3262
|
+
:host {
|
|
3263
|
+
display: flex;
|
|
3264
|
+
flex-direction: column;
|
|
3265
|
+
height: 100%;
|
|
3266
|
+
width: 100%;
|
|
3267
|
+
outline: none;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
[part='overlay-header'] {
|
|
3271
|
+
display: flex;
|
|
3272
|
+
flex-shrink: 0;
|
|
3273
|
+
flex-wrap: nowrap;
|
|
3274
|
+
align-items: center;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
:host(:not([fullscreen])) [part='overlay-header'] {
|
|
3278
|
+
display: none;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
[part='label'] {
|
|
3282
|
+
flex-grow: 1;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
[hidden] {
|
|
3286
|
+
display: none !important;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
[part='years-toggle-button'] {
|
|
3290
|
+
display: flex;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
#scrollers {
|
|
3294
|
+
display: flex;
|
|
3295
|
+
height: 100%;
|
|
3296
|
+
width: 100%;
|
|
3297
|
+
position: relative;
|
|
3298
|
+
overflow: hidden;
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
3302
|
+
right: 50px;
|
|
3303
|
+
transform: none !important;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
:host([desktop]) ::slotted([slot='years']) {
|
|
3307
|
+
transform: none !important;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
:host(.animate) ::slotted([slot='months']),
|
|
3311
|
+
:host(.animate) ::slotted([slot='years']) {
|
|
3312
|
+
transition: all 200ms;
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
[part='toolbar'] {
|
|
3316
|
+
display: flex;
|
|
3317
|
+
justify-content: space-between;
|
|
3318
|
+
z-index: 2;
|
|
3319
|
+
flex-shrink: 0;
|
|
3320
|
+
}
|
|
3321
|
+
`;/**
|
|
3322
|
+
* @license
|
|
3323
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3324
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3325
|
+
*/De("vaadin-date-picker-overlay-content",Cg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Eg extends wg(cn(Nt(Kr(yt)))){static get template(){return Ht`
|
|
3326
|
+
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3327
|
+
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3328
|
+
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
3329
|
+
<div part="toggle-button"></div>
|
|
3330
|
+
|
|
3331
|
+
<div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
|
|
3332
|
+
[[_yearAfterXMonths(_visibleMonthIndex)]]
|
|
3333
|
+
</div>
|
|
3334
|
+
</div>
|
|
3335
|
+
|
|
3336
|
+
<div id="scrollers">
|
|
3337
|
+
<slot name="months"></slot>
|
|
3338
|
+
<slot name="years"></slot>
|
|
3339
|
+
</div>
|
|
3340
|
+
|
|
3341
|
+
<div on-touchend="_preventDefault" role="toolbar" part="toolbar">
|
|
3342
|
+
<slot name="today-button"></slot>
|
|
3343
|
+
<slot name="cancel-button"></slot>
|
|
3344
|
+
</div>
|
|
3345
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(Eg);/**
|
|
3346
|
+
* @license
|
|
3347
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3348
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3349
|
+
*/const Pd=Be(n=>class extends $o(bd(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
|
+
* @license
|
|
3351
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3352
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3353
|
+
*/const Oi=new WeakMap;function xg(n){return Oi.has(n)||Oi.set(n,new Set),Oi.get(n)}function Ag(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Tg=Be(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=xg(t);this.slotStyles.forEach(i=>{r.has(i)||(Ag(i,t),r.add(i))})}});/**
|
|
3354
|
+
* @license
|
|
3355
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3356
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3357
|
+
*/const Sd=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}});/**
|
|
3358
|
+
* @license
|
|
3359
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3360
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3361
|
+
*/const Pg=n=>class extends Sd(ei(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(),G_||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
|
+
* @license
|
|
3363
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3364
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3365
|
+
*/const Ii=new Map;function Yo(n){return Ii.has(n)||Ii.set(n,new WeakMap),Ii.get(n)}function kd(n,e){n&&n.removeAttribute(e)}function Dd(n,e){if(!n||!e)return;const t=Yo(e);if(t.has(n))return;const r=Ho(n.getAttribute(e));t.set(n,new Set(r))}function Sg(n,e){if(!n||!e)return;const t=Yo(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):ad(n,e,Qr(r)),t.delete(n)}function Ni(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Yo(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Dd(n,e),kd(n,e)),r0(n,e,i);const l=r||Qr(a);l&&ad(n,e,l)}function kg(n,e){Dd(n,e),kd(n,e)}/**
|
|
3366
|
+
* @license
|
|
3367
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3368
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3369
|
+
*/class Dg{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?(kg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Sg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Ni(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Ni(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ni(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
|
+
* @license
|
|
3371
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
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 lr;function Mg(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),lr=on.debounce(lr,v0,()=>{Xe.setAttribute("role","alert")})):(lr&&lr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.textContent=n},r)}/**
|
|
3374
|
+
* @license
|
|
3375
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3376
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3377
|
+
*/class qo extends kt{constructor(e,t,r,i={}){super(e,t,r,er(ft({},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
|
+
* @license
|
|
3379
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3380
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3381
|
+
*/class Bg extends qo{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&&Mg(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
3382
|
+
* @license
|
|
3383
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3384
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3385
|
+
*/class Og extends qo{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
|
+
* @license
|
|
3387
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3388
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3389
|
+
*/class Ig extends qo{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
|
+
* @license
|
|
3391
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3392
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3393
|
+
*/const Ng=Be(n=>class extends cn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ig(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
|
+
* @license
|
|
3395
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3396
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3397
|
+
*/const Md=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}});/**
|
|
3398
|
+
* @license
|
|
3399
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3400
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3401
|
+
*/const Lg=n=>class extends Md(Ng(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 Dg(this),this._helperController=new Og(this),this._errorController=new Bg(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
|
+
* @license
|
|
3403
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3404
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3405
|
+
*/const Hg=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)}});/**
|
|
3406
|
+
* @license
|
|
3407
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3408
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3409
|
+
*/const Bd=Be(n=>class extends Hg(Md(Sd(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
|
+
* @license
|
|
3411
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3412
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3413
|
+
*/const Rg=n=>class extends Tg(Pd(Bd(Lg(Pg(ei(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
|
+
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3415
|
+
font: inherit;
|
|
3416
|
+
color: inherit;
|
|
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,Mr.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
|
+
* @license
|
|
3420
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3421
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3422
|
+
*/class Fg 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})}}/**
|
|
3423
|
+
* @license
|
|
3424
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3425
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3426
|
+
*/class Ug{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
|
+
* @license
|
|
3428
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3429
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3430
|
+
*/const zg=me`
|
|
3431
|
+
[part='clear-button'] {
|
|
3432
|
+
display: none;
|
|
3433
|
+
cursor: default;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
[part='clear-button']::before {
|
|
3437
|
+
content: '\\2715';
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
3441
|
+
display: block;
|
|
3442
|
+
}
|
|
3443
|
+
`;/**
|
|
3444
|
+
* @license
|
|
3445
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3446
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3447
|
+
*/const $g=me`
|
|
3448
|
+
:host {
|
|
3449
|
+
display: inline-flex;
|
|
3450
|
+
outline: none;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
:host::before {
|
|
3454
|
+
content: '\\2003';
|
|
3455
|
+
width: 0;
|
|
3456
|
+
display: inline-block;
|
|
3457
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
3458
|
+
to make vertical align for the host element work as expected */
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
:host([hidden]) {
|
|
3462
|
+
display: none !important;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
:host(:not([has-label])) [part='label'] {
|
|
3466
|
+
display: none;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
@media (forced-colors: active) {
|
|
3470
|
+
:host(:not([readonly])) [part='input-field'] {
|
|
3471
|
+
outline: 1px solid;
|
|
3472
|
+
outline-offset: -1px;
|
|
3473
|
+
}
|
|
3474
|
+
:host([focused]) [part='input-field'] {
|
|
3475
|
+
outline-width: 2px;
|
|
3476
|
+
}
|
|
3477
|
+
:host([disabled]) [part='input-field'] {
|
|
3478
|
+
outline-color: GrayText;
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
`;/**
|
|
3482
|
+
* @license
|
|
3483
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3484
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3485
|
+
*/const Vg=me`
|
|
3486
|
+
[class$='container'] {
|
|
3487
|
+
display: flex;
|
|
3488
|
+
flex-direction: column;
|
|
3489
|
+
min-width: 100%;
|
|
3490
|
+
max-width: 100%;
|
|
3491
|
+
width: var(--vaadin-field-default-width, 12em);
|
|
3492
|
+
}
|
|
3493
|
+
`;/**
|
|
3494
|
+
* @license
|
|
3495
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3496
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3497
|
+
*/const Wg=[$g,Vg,zg];/**
|
|
3498
|
+
* @license
|
|
3499
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3500
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3501
|
+
*/const jg=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
|
+
* @license
|
|
3503
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3504
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3505
|
+
*/class Gg{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
|
+
* @license
|
|
3507
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3508
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3509
|
+
*/const Yg=n=>class extends jg(cn(Pd(Bd(ei(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=Y0(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:id},_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&&!Lo()&&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 Td(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Gg(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(Vo(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 X0(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?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=od(s)}_getInitialPosition(){const t=yn(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?vd(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 yn(t)}};/**
|
|
3510
|
+
* @license
|
|
3511
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3512
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3513
|
+
*/const qg=me`
|
|
3514
|
+
:host([opened]) {
|
|
3515
|
+
pointer-events: auto;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
3519
|
+
direction: ltr;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
3523
|
+
direction: rtl;
|
|
3524
|
+
text-align: left;
|
|
3525
|
+
}
|
|
3526
|
+
`;/**
|
|
3527
|
+
* @license
|
|
3528
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3529
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
+
*/De("vaadin-date-picker",[Wg,qg],{moduleId:"vaadin-date-picker-styles"});class Xg extends Yg(Rg(Nt(dd(yt)))){static get is(){return"vaadin-date-picker"}static get template(){return Ht`
|
|
3531
|
+
<div class="vaadin-date-picker-container">
|
|
3532
|
+
<div part="label">
|
|
3533
|
+
<slot name="label"></slot>
|
|
3534
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
3535
|
+
</div>
|
|
3536
|
+
|
|
3537
|
+
<vaadin-input-container
|
|
3538
|
+
part="input-field"
|
|
3539
|
+
readonly="[[readonly]]"
|
|
3540
|
+
disabled="[[disabled]]"
|
|
3541
|
+
invalid="[[invalid]]"
|
|
3542
|
+
theme$="[[_theme]]"
|
|
3543
|
+
>
|
|
3544
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
3545
|
+
<slot name="input"></slot>
|
|
3546
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
3547
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
|
|
3548
|
+
</vaadin-input-container>
|
|
3549
|
+
|
|
3550
|
+
<div part="helper-text">
|
|
3551
|
+
<slot name="helper"></slot>
|
|
3552
|
+
</div>
|
|
3553
|
+
|
|
3554
|
+
<div part="error-message">
|
|
3555
|
+
<slot name="error-message"></slot>
|
|
3556
|
+
</div>
|
|
3557
|
+
</div>
|
|
3558
|
+
|
|
3559
|
+
<vaadin-date-picker-overlay
|
|
3560
|
+
id="overlay"
|
|
3561
|
+
fullscreen$="[[_fullscreen]]"
|
|
3562
|
+
theme$="[[_theme]]"
|
|
3563
|
+
opened="{{opened}}"
|
|
3564
|
+
on-vaadin-overlay-escape-press="_onOverlayEscapePress"
|
|
3565
|
+
on-vaadin-overlay-open="_onOverlayOpened"
|
|
3566
|
+
on-vaadin-overlay-closing="_onOverlayClosed"
|
|
3567
|
+
restore-focus-on-close
|
|
3568
|
+
restore-focus-node="[[inputElement]]"
|
|
3569
|
+
></vaadin-date-picker-overlay>
|
|
3570
|
+
|
|
3571
|
+
<slot name="tooltip"></slot>
|
|
3572
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Fg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Ug(this.inputElement,this._labelController)),this._tooltipController=new hd(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(Xg);const oe={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},ma=[oe.ACTIVE,oe.COMPLETED,oe.CLAIMABLE],ti={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},Zg=6,Kg=3,ur={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function Jg(n){Ir(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 Qg(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&&pe(t,i[0])},d(i){i&&I(e)}}}function eb(n){let e,t,r,i,o,s,a,l,u;const d=n[10].default,c=$n(d,n,n[9],null),h=c||Qg(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,b){N(f,e,b),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,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||b&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||b&512)&&Wn(c,d,f,f[9],u?Vn(d,f[9],b,null):jn(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&I(e),n[11](null),h&&h.d(f),n[12](null)}}}let _a=64.5;function tb(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*(_a*2),f,b;Nr(()=>()=>{});function _(v){st[v?"unshift":"push"](()=>{c=v,t(3,c)})}function C(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&&jr(f,u),n.$$.dirty&260&&d&&f&&Gr(f,d),n.$$.dirty&68&&l&&f&&Yr(f,`${l}.Style`,b),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(_a*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,_,C]}class nb extends Rr{constructor(e){super(),Lr(this,e,tb,eb,zn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Jg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),ue()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-progress",Hr(nb,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ga=n=>rb[n],rb={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 ib(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ob(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 sb(n){return typeof n=="string"&&n.trim().length>0}function ab(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function lb(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=ur.TYPES,d.status=ur.STATUS_COMPLETED;break}case oe.ACTIVE:d.type=ur.TYPES,d.status=ur.STATUS_ACTIVE;break}return d}function L(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function ub(n){Ir(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 ba(n,e,t){const r=n.slice();return r[81]=e[t],r[83]=t,r}function va(n,e,t){const r=n.slice();return r[84]=e[t],r}function ya(n,e,t){const r=n.slice();return r[75]=e[t],r}function wa(n,e,t){const r=n.slice();return r[78]=e[t],r}function Ca(n,e,t){const r=n.slice();return r[87]=e[t],r[89]=t,r}function Ea(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,_,C,v,g=s&&xa(),A=l&&Aa(),y=[L("TitleIcon")],S={};for(let w=0;w<y.length;w+=1)S=k(S,y[w]);let x=[L("BonusCardRowTitle")],F={};for(let w=0;w<x.length;w+=1)F=k(F,x[w]);function j(w,O){if(w[0]===oe.ACTIVE)return cb;if(w[0]===oe.COMPLETED)return db}let G=j(n),R=G&&G(n),B=[L("BonusCardHeader")],V={};for(let w=0;w<B.length;w+=1)V=k(V,B[w]);let Q=hb(n),q=n[10]&&Ua(n);function H(w,O){return w[14]?Bb:Mb}let M=H(n),ie=M(n),_e=[L("BonusCardFooter")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardInfo")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[9]&&Xa(n),se=[L("BonusCard")],J={};for(let w=0;w<se.length;w+=1)J=k(J,se[w]);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(),Q&&Q.c(),b=z(),_=E("div"),q&&q.c(),C=z(),ie.c(),v=z(),K&&K.c(),T(o,S),T(i,F),T(r,V),T(_,de),le(_,"Active",n[11]||n[12]),T(t,ae),T(e,J)},m(w,O){N(w,e,O),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),Q&&Q.m(t,null),p(t,b),p(t,_),q&&q.m(_,null),p(_,C),ie.m(_,null),p(e,v),K&&K.m(e,null),n[58](e)},p(w,O){var he;O[0]&32&&(s=w[33](w[5]).indexOf("Casino")>-1),s?g||(g=xa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=w[33](w[5]).indexOf("Sports")>-1),l?A||(A=Aa(),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(w[5].name||((he=w[5].presentation)==null?void 0:he.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(w))&&R?R.p(w,O):(R&&R.d(1),R=G&&G(w),R&&(R.c(),R.m(r,null))),Q.p(w,O),w[10]?q?q.p(w,O):(q=Ua(w),q.c(),q.m(_,C)):q&&(q.d(1),q=null),M===(M=H(w))&&ie?ie.p(w,O):(ie.d(1),ie=M(w),ie&&(ie.c(),ie.m(_,null))),O[0]&6144&&le(_,"Active",w[11]||w[12]),w[9]?K?K.p(w,O):(K=Xa(w),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(w){w&&I(e),g&&g.d(),A&&A.d(),R&&R.d(),Q&&Q.d(),q&&q.d(),ie.d(),K&&K.d(),n[58](null)}}}function xa(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,b=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);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"),El(e,_)},m(C,v){N(C,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(C){C&&I(e)}}}function Aa(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"),El(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&&I(e)}}}function db(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&&I(e)}}}function cb(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&&I(e)}}}function hb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?pb:fb}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)&&Ha(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=Ha(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&I(e),s.d(),u&&u.d()}}}function fb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,b,_,C=n[25](`bonusType.${n[5].type}`)+"",v,g,A,y,S,x,F=[L("BonusCardLabel")],j={};for(let w=0;w<F.length;w+=1)j=k(j,F[w]);function G(w,O){return w[0]===oe.ACTIVE?_b:mb}let R=G(n),B=R(n),V=[L("BonusCardRowText")],Q={};for(let w=0;w<V.length;w+=1)Q=k(Q,V[w]);let q=[L("BonusCardRow")],H={};for(let w=0;w<q.length;w+=1)H=k(H,q[w]);let M=[L("BonusCardLabel")],ie={};for(let w=0;w<M.length;w+=1)ie=k(ie,M[w]);let _e=[L("BonusCardRowText","Type")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardRow")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[5].type==="standard"&&Ta(n),se=n[5].type==="freeBet"&&Pa(n),J=n[5].type==="freeRound"&&Sa(n),ee=n[5].type==="wagering"&&Ma(n);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),B.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),b=z(),_=E("span"),v=D(C),g=z(),K&&K.c(),A=z(),se&&se.c(),y=z(),J&&J.c(),S=z(),ee&&ee.c(),x=nt(),T(t,j),T(a,Q),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(_,de),T(u,ae)},m(w,O){N(w,e,O),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),B.m(a,null),N(w,l,O),N(w,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,v),N(w,g,O),K&&K.m(w,O),N(w,A,O),se&&se.m(w,O),N(w,y,O),J&&J.m(w,O),N(w,S,O),ee&&ee.m(w,O),N(w,x,O)},p(w,O){O[0]&33554432&&r!==(r=w[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),R===(R=G(w))&&B?B.p(w,O):(B.d(1),B=R(w),B&&(B.c(),B.m(a,null))),O[0]&1&&le(a,"StatusActive",w[0]===oe.ACTIVE),O[0]&1&&le(a,"StatusCompleted",w[0]===oe.COMPLETED),O[0]&1&&le(a,"StatusClaimable",w[0]===oe.CLAIMABLE),O[0]&33554432&&c!==(c=w[25]("bonusCard.bonusType")+"")&&re(h,c,ie.contenteditable),O[0]&33554464&&C!==(C=w[25](`bonusType.${w[5].type}`)+"")&&re(v,C,de.contenteditable),w[5].type==="standard"?K?K.p(w,O):(K=Ta(w),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null),w[5].type==="freeBet"?se?se.p(w,O):(se=Pa(w),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),w[5].type==="freeRound"?J?J.p(w,O):(J=Sa(w),J.c(),J.m(S.parentNode,S)):J&&(J.d(1),J=null),w[5].type==="wagering"?ee?ee.p(w,O):(ee=Ma(w),ee.c(),ee.m(x.parentNode,x)):ee&&(ee.d(1),ee=null)},d(w){w&&(I(e),I(l),I(u),I(g),I(A),I(y),I(S),I(x)),B.d(),K&&K.d(w),se&&se.d(w),J&&J.d(w),ee&&ee.d(w)}}}function pb(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,_,C,v=n[25]("bonusCard.validity")+"",g,A,y,S,x=n[32](n[5])+"",F,j,G,R,B=n[25]("bonusCard.validUntil")+"",V,Q,q,H,M=n[39](n[5].trigger.endTime)+"",ie,_e=[L("BonusCardLabel")],de={};for(let $=0;$<_e.length;$+=1)de=k(de,_e[$]);let X=[L("BonusCardRowText","Type")],ae={};for(let $=0;$<X.length;$+=1)ae=k(ae,X[$]);let K=[L("BonusCardRow")],se={};for(let $=0;$<K.length;$+=1)se=k(se,K[$]);let J=n[5].type==="standard"&&Oa(n),ee=n[5].type==="freeBet"&&Ia(n),w=n[5].type==="freeRound"&&Na(n),O=n[5].type==="wagering"&&La(n),he=[L("BonusCardLabel")],Oe={};for(let $=0;$<he.length;$+=1)Oe=k(Oe,he[$]);let Z=[L("BonusCardRowText")],W={};for(let $=0;$<Z.length;$+=1)W=k(W,Z[$]);let xe=[L("BonusCardRow")],Ce={};for(let $=0;$<xe.length;$+=1)Ce=k(Ce,xe[$]);let Ue=[L("BonusCardLabel")],ct={};for(let $=0;$<Ue.length;$+=1)ct=k(ct,Ue[$]);let ht=[L("BonusCardRowText")],Je={};for(let $=0;$<ht.length;$+=1)Je=k(Je,ht[$]);let Rt=[L("BonusCardRow")],Ct={};for(let $=0;$<Rt.length;$+=1)Ct=k(Ct,Rt[$]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),J&&J.c(),c=z(),ee&&ee.c(),h=z(),w&&w.c(),f=z(),O&&O.c(),b=z(),_=E("p"),C=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(B),Q=D(":"),q=z(),H=E("span"),ie=D(M),T(t,de),T(a,ae),T(e,se),T(C,Oe),T(S,W),T(_,Ce),T(R,ct),T(H,Je),T(G,Ct)},m($,ve){N($,e,ve),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N($,d,ve),J&&J.m($,ve),N($,c,ve),ee&&ee.m($,ve),N($,h,ve),w&&w.m($,ve),N($,f,ve),O&&O.m($,ve),N($,b,ve),N($,_,ve),p(_,C),p(C,g),p(C,A),p(_,y),p(_,S),p(S,F),N($,j,ve),N($,G,ve),p(G,R),p(R,V),p(R,Q),p(G,q),p(G,H),p(H,ie)},p($,ve){ve[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&re(i,r,de.contenteditable),ve[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&re(u,l,ae.contenteditable),$[5].type==="standard"?J?J.p($,ve):(J=Oa($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ee?ee.p($,ve):(ee=Ia($),ee.c(),ee.m(h.parentNode,h)):ee&&(ee.d(1),ee=null),$[5].type==="freeRound"?w?w.p($,ve):(w=Na($),w.c(),w.m(f.parentNode,f)):w&&(w.d(1),w=null),$[5].type==="wagering"?O?O.p($,ve):(O=La($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ve[0]&33554432&&v!==(v=$[25]("bonusCard.validity")+"")&&re(g,v,Oe.contenteditable),ve[0]&32&&x!==(x=$[32]($[5])+"")&&re(F,x,W.contenteditable),ve[0]&33554432&&B!==(B=$[25]("bonusCard.validUntil")+"")&&re(V,B,ct.contenteditable),ve[0]&32&&M!==(M=$[39]($[5].trigger.endTime)+"")&&re(ie,M,Je.contenteditable)},d($){$&&(I(e),I(d),I(c),I(h),I(f),I(b),I(_),I(j),I(G)),J&&J.d($),ee&&ee.d($),w&&w.d($),O&&O.d($)}}}function mb(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}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function _b(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]}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ta(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,b=n[5].amount+"",_,C,v,g,A,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,G=n[29](n[5])+n[17]+"",R,B,V=[L("BonusCardLabel")],Q={};for(let O=0;O<V.length;O+=1)Q=k(Q,V[O]);let q=[L("BonusCardRowText")],H={};for(let O=0;O<q.length;O+=1)H=k(H,q[O]);let M=[L("BonusCardRow")],ie={};for(let O=0;O<M.length;O+=1)ie=k(ie,M[O]);let _e=[L("BonusCardLabel")],de={};for(let O=0;O<_e.length;O+=1)de=k(de,_e[O]);function X(O,he){return O[5].initialWagerRequirementAmount>=2147483647?bb:gb}let ae=X(n),K=ae(n),se=[L("BonusCardRowText")],J={};for(let O=0;O<se.length;O+=1)J=k(J,se[O]);let ee=[L("BonusCardRow")],w={};for(let O=0;O<ee.length;O+=1)w=k(w,ee[O]);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"),_=D(b),C=D(n[17]),v=z(),g=E("p"),A=E("span"),S=D(y),x=D(":"),F=z(),j=E("span"),R=D(G),B=D(` /
|
|
3574
|
+
`),K.c(),T(t,Q),le(l,"BonusAmount",n[0]===oe.ACTIVE),le(f,"Amount",n[0]===oe.ACTIVE),T(a,H),T(e,ie),T(A,de),T(j,J),T(g,w)},m(O,he){N(O,e,he),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,_),p(f,C),N(O,v,he),N(O,g,he),p(g,A),p(A,S),p(A,x),p(g,F),p(g,j),p(j,R),p(j,B),K.m(j,null)},p(O,he){he[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&re(i,r,Q.contenteditable),he[0]&32&&u!==(u=O[5].remainingAmount+"")&&pe(d,u),he[0]&131072&&pe(c,O[17]),he[0]&1&&le(l,"BonusAmount",O[0]===oe.ACTIVE),he[0]&32&&b!==(b=O[5].amount+"")&&pe(_,b),he[0]&131072&&pe(C,O[17]),he[0]&1&&le(f,"Amount",O[0]===oe.ACTIVE),he[0]&33554432&&y!==(y=O[25]("bonusCard.wageredAmount")+"")&&re(S,y,de.contenteditable),he[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&re(R,G,J.contenteditable),ae===(ae=X(O))&&K?K.p(O,he):(K.d(1),K=ae(O),K&&(K.c(),K.m(j,null)))},d(O){O&&(I(e),I(v),I(g)),K.d()}}}function gb(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]+"")&&pe(t,e)},d(r){r&&I(t)}}}function bb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Pa(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 b=[L("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=k(_,b[g]);let C=[L("BonusCardRow")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[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,_),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+"")&&pe(d,u),A[0]&131072&&pe(c,g[17]),A[0]&1&&le(l,"BonusAmount",g[0]===oe.ACTIVE)},d(g){g&&I(e)}}}function Sa(n){let e,t=n[5].status===oe.ACTIVE&&ka(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=ka(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&I(e),t&&t.d(r)}}}function ka(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,_,C,v,g,A,y,S,x,F,j,G,R,B,V,Q,q,H,M,ie=[L("BonusCardLabel")],_e={};for(let W=0;W<ie.length;W+=1)_e=k(_e,ie[W]);let de=[L("BonusCardRowText")],X={};for(let W=0;W<de.length;W+=1)X=k(X,de[W]);let ae=[L("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=k(K,ae[W]);let se=[L("BonusCardLabel")],J={};for(let W=0;W<se.length;W+=1)J=k(J,se[W]);let ee=Fe(n[23]),w=[];for(let W=0;W<ee.length;W+=1)w[W]=Da(Ca(n,ee,W));let O=[L("BonusCardRowText")],he={};for(let W=0;W<O.length;W+=1)he=k(he,O[W]);let Oe=[L("BonusCardRow")],Z={};for(let W=0;W<Oe.length;W+=1)Z=k(Z,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"),b=D(f),_=D(":"),C=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<w.length;W+=1)w[W].c();R=z(),B=E("button"),V=te("svg"),Q=te("path"),T(t,_e),T(a,X),T(e,K),T(h,J),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"),ts(G,"transform","translateX("+n[24]+"px)"),m(j,"class","Main"),m(Q,"stroke-linecap","round"),m(Q,"stroke-linejoin","round"),m(Q,"stroke-width","2"),m(Q,"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(B,"class","SliderNavButton"),m(B,"part","SliderNavButton"),B.disabled=q=n[24]<=-(n[23].length-3)*100,le(B,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),T(v,he),T(c,Z)},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,b),p(h,_),p(c,C),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<w.length;Ce+=1)w[Ce]&&w[Ce].m(G,null);p(g,R),p(g,B),p(B,V),p(V,Q),H||(M=[Pe(A,"click",n[51]),Pe(B,"click",n[55])],H=!0)},p(W,xe){if(xe[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&re(i,r,_e.contenteditable),xe[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&re(u,l,X.contenteditable),xe[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&re(b,f,J.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=Fe(W[23]);let Ce;for(Ce=0;Ce<ee.length;Ce+=1){const Ue=Ca(W,ee,Ce);w[Ce]?w[Ce].p(Ue,xe):(w[Ce]=Da(Ue),w[Ce].c(),w[Ce].m(G,null))}for(;Ce<w.length;Ce+=1)w[Ce].d(1);w.length=ee.length}xe[0]&16777216&&ts(G,"transform","translateX("+W[24]+"px)"),xe[0]&25165824&&q!==(q=W[24]<=-(W[23].length-3)*100)&&(B.disabled=q),xe[0]&8388608&&le(B,"Hide",W[23].length<=3)},d(W){W&&(I(e),I(d),I(c)),vt(w,W),H=!1,qe(M)}}}function Da(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return n[52](n[87])}function C(){return n[53](n[89])}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[89]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":"")),es(l.src,u=n[87].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[87].name),m(l,"title",c=n[87].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||(b=[Pe(e,"click",_),Pe(e,"mouseenter",C),Pe(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[89]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!es(l.src,u=n[87].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[87].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[87].name)&&m(l,"title",c)},d(v){v&&I(e),f=!1,qe(b)}}}function Ma(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,_,C,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"&&Ba(n),B=[L("BonusCardRowText")],V={};for(let H=0;H<B.length;H+=1)V=k(V,B[H]);let Q=[L("BonusCardRow")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[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"),b=D(f),_=D(":"),C=z(),v=E("span"),R&&R.c(),T(t,A),T(a,S),T(e,F),T(h,G),T(v,V),T(c,q)},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,b),p(h,_),p(c,C),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(b,f,G.contenteditable),H[5].wageringType==="money"?R?R.p(H,M):(R=Ba(H),R.c(),R.m(v,null)):R&&(R.d(1),R=null)},d(H){H&&(I(e),I(d),I(c)),R&&R.d()}}}function Ba(n){let e;function t(o,s){return o[0]===oe.ACTIVE?yb:vb}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&&I(e),i.d(o)}}}function vb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Cb:wb}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]+"")&&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 yb(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])+"")&&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 wb(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]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Cb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Oa(n){var _e,de;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((de=(_e=n[5].wallet.standard)==null?void 0:_e.initialAmount)==null?void 0:de.fixedAmount)+"",d,c,h,f,b,_=n[25]("bonusCard.wageringRequirement")+"",C,v,g,A,y=n[37](n[5])+n[17]+"",S,x=[L("BonusCardLabel")],F={};for(let X=0;X<x.length;X+=1)F=k(F,x[X]);let j=[L("BonusCardRowText")],G={};for(let X=0;X<j.length;X+=1)G=k(G,j[X]);let R=[L("BonusCardRow")],B={};for(let X=0;X<R.length;X+=1)B=k(B,R[X]);let V=[L("BonusCardLabel")],Q={};for(let X=0;X<V.length;X+=1)Q=k(Q,V[X]);let q=[L("BonusCardRowText")],H={};for(let X=0;X<q.length;X+=1)H=k(H,q[X]);let M=[L("BonusCardRow")],ie={};for(let X=0;X<M.length;X+=1)ie=k(ie,M[X]);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"),b=E("span"),C=D(_),v=D(":"),g=z(),A=E("span"),S=D(y),T(t,F),T(a,G),T(e,B),T(b,Q),T(A,H),T(f,ie)},m(X,ae){N(X,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(X,h,ae),N(X,f,ae),p(f,b),p(b,C),p(b,v),p(f,g),p(f,A),p(A,S)},p(X,ae){var K,se;ae[0]&33554432&&r!==(r=X[25]("bonusCard.bonusAmount")+"")&&re(i,r,F.contenteditable),ae[0]&32&&u!==(u=X[36]((se=(K=X[5].wallet.standard)==null?void 0:K.initialAmount)==null?void 0:se.fixedAmount)+"")&&pe(d,u),ae[0]&131072&&pe(c,X[17]),ae[0]&33554432&&_!==(_=X[25]("bonusCard.wageringRequirement")+"")&&re(C,_,Q.contenteditable),ae[0]&131104&&y!==(y=X[37](X[5])+X[17]+"")&&re(S,y,H.contenteditable)},d(X){X&&(I(e),I(h),I(f))}}}function Ia(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 b=[L("BonusCardRowText")],_={};for(let y=0;y<b.length;y+=1)_=k(_,b[y]);let C=[L("BonusCardRow")],v={};for(let y=0;y<C.length;y+=1)v=k(v,C[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,_),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)+"")&&pe(d,u),S[0]&131072&&pe(c,y[17])},d(y){y&&I(e)}}}function Na(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 C=0;C<d.length;C+=1)c=k(c,d[C]);let h=[L("BonusCardRowText")],f={};for(let C=0;C<h.length;C+=1)f=k(f,h[C]);let b=[L("BonusCardRow")],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);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,_)},m(C,v){N(C,e,v),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u)},p(C,v){v[0]&33554432&&r!==(r=C[25]("bonusCard.roundNumber")+"")&&re(i,r,c.contenteditable),v[0]&32&&l!==(l=C[38](C[5])+"")&&re(u,l,f.contenteditable)},d(C){C&&I(e)}}}function La(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?xb:Eb}let c=d(n),h=c(n),f=[L("BonusCardRowText")],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardRow")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[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,b),T(e,C)},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&&I(e),h.d()}}}function Eb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function xb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function Ha(n){let e,t,r=n[5].type==="standard"&&Ra(n),i=n[5].type==="wagering"&&Fa(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=Ra(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Fa(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 Ra(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&&I(e)}}}function Fa(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 b(x,F){return x[8]>0?Tb:Ab}let _=b(n),C=_(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
|
+
`),C.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),C.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(x))&&C?C.p(x,F):(C.d(1),C=_(x),C&&(C.c(),C.m(o,null)))},d(x){x&&I(e),C.d()}}}function Ab(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(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&&pe(e,t[8])},d(t){t&&I(e)}}}function Ua(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[L("BonusCardAdditionalTitle")],_={};for(let R=0;R<b.length;R+=1)_=k(_,b[R]);function C(R,B){return R[11]?Pb:Sb}let v=C(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]&&za(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,_),T(d,y),T(t,x),le(t,"Active",n[11]),T(e,G)},m(R,B){N(R,e,B),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,B){B[0]&33554432&&a!==(a=R[25]("bonusCard.rewards")+"")&&re(l,a,_.contenteditable),v!==(v=C(R))&&(g.d(1),g=v(R),g&&(g.c(),g.m(d,null))),B[0]&2048&&le(t,"Active",R[11]),R[11]?F?F.p(R,B):(F=za(R),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(R){R&&I(e),g.d(),F&&F.d(),h=!1,f()}}}function Pb(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&&I(e)}}}function Sb(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&&I(e)}}}function za(n){let e,t=n[5].type==="wagering"&&$a(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=$a(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&I(e),t&&t.d()}}}function $a(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Db;if(l[5].levels)return kb}let o=i(n),s=o&&o(n),a=t&&Ya(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=Ya(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 kb(n){let e,t=Fe(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Wa(ba(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=Fe(i[5].levels.slice(0,i[4]));let s;for(s=0;s<t.length;s+=1){const a=ba(i,t,s);r[s]?r[s].p(a,o):(r[s]=Wa(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),vt(r,i)}}}function Db(n){let e,t=Fe(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ga(ya(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=Fe(i[40](i[5],i[7]));let s;for(s=0;s<t.length;s+=1){const a=ya(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ga(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),vt(r,i)}}}function Va(n){let e=n[35](n[81],n[84])+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[81],r[84])+"")&&pe(t,e)},d(r){r&&I(t)}}}function Wa(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[83])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Fe(n[81].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Va(va(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[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<_.length;g+=1)_[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<_.length;y+=1)_[y]&&_[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[83])+"")&&re(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Fe(g[81].bonuses);let y;for(y=0;y<b.length;y+=1){const S=va(g,b,y);_[y]?_[y].p(S,A):(_[y]=Va(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),vt(_,g)}}}function ja(n){let e=n[78]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[78]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ga(n){let e,t,r=n[25](`bonusCard.${n[75].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 b=Fe(n[75].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=ja(wa(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[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<_.length;g+=1)_[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<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[75].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){b=Fe(g[75].desc);let y;for(y=0;y<b.length;y+=1){const S=wa(g,b,y);_[y]?_[y].p(S,A):(_[y]=ja(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),vt(_,g)}}}function Ya(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&&I(e),i=!1,o()}}}function Mb(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"}],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardTerms")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[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,b),T(e,C)},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,b.contenteditable),T(t,b=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&I(e)}}}function Bb(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,b,_,C,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]?Ob:Ib}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")],B={};for(let H=0;H<R.length;H+=1)B=k(B,R[H]);let V=n[12]&&qa(n),Q=[L("BonusCardTerms")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[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),b=z(),_=E("span"),F.c(),C=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(_,G),T(t,B),le(t,"Active",n[12]),T(e,q)},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,b),p(t,_),F.m(_,null),p(e,C),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(_,null))),M[0]&4096&&le(t,"Active",H[12]),H[12]?V?V.p(H,M):(V=qa(H),V.c(),V.m(e,null)):V&&(V.d(1),V=null)},d(H){H&&I(e),F.d(),V&&V.d(),v=!1,g()}}}function Ob(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&&I(e)}}}function Ib(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&&I(e)}}}function qa(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=Vd(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 Xa(n){let e,t,r,i=n[0]===oe.CLAIMABLE&&Za(n),o=n[0]===oe.ACTIVE&&n[5].status===oe.ACTIVE&&Ja(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=Za(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=Ja(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 Za(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,b,_=n[15]===!0&&Ka(n),C=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<C.length;x+=1)v=k(v,C[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"),_&&_.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),_&&_.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||(b=Pe(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?_?_.p(x,F):(_=Ka(x),_.c(),_.m(e,t)):_&&(_.d(1),_=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&&I(e),_&&_.d(),f=!1,b()}}}function Ka(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&&I(e)}}}function Ja(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&&I(e),o=!1,s()}}}function Nb(n){let e,t=n[5]&&Ea(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=Ea(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Me,o:Me,d(r){r&&I(e),t&&t.d(r)}}}function Lb(n,e,t){let r,i;wl(n,Jl,P=>t(25,i=P));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_=null,C=[],v,g=!1,A=!1,y=!1,S=!1,x=!0,F=!1,j=!1,G={},R,B,V="",Q=1e3*30,q,H,M="",ie=!1,_e,de=[],X=0;const ae=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ne=>{wr(ne,U[ne])})}).catch(U=>{console.log(U)})};Object.keys(Cr).forEach(P=>{wr(P,Cr[P])}),Nr(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)}));const K=()=>{var P,U;try{t(5,_=JSON.parse(o))}catch(ne){t(5,_=null)}_&&(_.type==="wagering"&&t(10,A=!0),t(17,R=ga(_.currency||b)),t(7,C=J(_.levels||((U=(P=_.wallet)==null?void 0:P.wagering)==null?void 0:U.levels))),_.type==="freeRound"&&t(23,de=se(_.freeSpin)),Ce())},se=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},J=P=>{if(!P)return[];const U=[];let ne=!1;return P.map((be,we)=>{const xt=be,{maxRepeats:Te,completedTime:Ge}=xt,Qe=Jo(xt,["maxRepeats","completedTime"]);Te===0&&(ne=!0,U.push(ft({},Qe)));for(let Ne=0;Ne<Te;Ne++)U.push(ft({},Qe))}),ne?t(8,v=0):t(8,v=U.length),U},ee=()=>{t(13,x=!1),t(15,j=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},w=()=>{t(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},O=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},he=P=>{switch(P.data.type){case"OnBonusClaimedDone":t(13,x=!0);break;case"OnBonusForfeitedDone":t(13,x=!0);break;case"OnBonusClaimError":P.data.bonusCode===_.code&&t(15,j=!0);break}},Oe=(P,U)=>({remainder:P%U,quotient:Math.floor(P/U)}),Z=P=>{const U=new Date;return new Date(P).getTime()-U.getTime()},W=P=>{const U=Z(P)/6e4,{quotient:ne,remainder:be}=Oe(U,1440),{quotient:we,remainder:Te}=Oe(be,60),Ge=Math.floor(Te),Qe=Ne=>Math.abs(Ne)<10?`0${Ne}`:Ne;return[{value:ne,symbol:"d"},{value:we,symbol:"h"},{value:Ge,symbol:"m"}].map(Ne=>Qe(Ne.value)+Ne.symbol).join(" ")},xe=(P,U,ne,be)=>{const we=Z(P);we<0?ne():(be(W(P)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Ce=()=>{var be;if(!_)return;const P=(we,Te,Ge)=>{xe(we,Q,()=>Te(Ge),Te)},U=i("bonusCard.expired"),ne=_.endTime||((be=_.trigger)==null?void 0:be.endTime);ne&&P(ne,we=>{t(19,V=we),t(18,B=we)},U),_.expiryDate&&P(_.expiryDate,we=>t(18,B=we),U)},Ue=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()},ct=P=>{var U,ne;return(((U=P.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=P.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},ht=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)},Je=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?xn(new Date(be),"yyyy-MM-dd HH:mm:ss"):i("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${i(we===1?"bonusCard.day":"bonusCard.days")}`},Rt=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}},Ct=(P,U)=>{const ne=i(`bonusType.${U.type}`),be=ga(U.amountCurrency||_.currency||b);return U.mode==="percentage"?`${U.bonusAmount*100}% ${i("bonusCard.upTo")} ${be}${U.capAmount} ${ne}`:U.mode==="fixed"?`${be}${U.bonusAmount} ${ne}`:ne},$=(P,U)=>{const ne=Qe=>Qe===0?0:P.slice(0,Qe).reduce((xt,Ne)=>xt+Ne.maxRepeats,0),be=P[U],Te=ne(U)+1,Ge=Te+be.maxRepeats-1;return be.maxRepeats>1?`${Te}-${Ge}`:`${U+1}`},ve=(P,U)=>{switch(U.type){case"standard":case"freeBet":return Ct(P,U);case"freeRound":return i("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return i("bonusCard.enrollTo",{values:{name:i(`bonusType.${U.type}`)}});default:return""}},Xn=P=>{var U,ne;return Number((ne=(U=P==null?void 0:P[b])!=null?U:P==null?void 0:P.EUR)!=null?ne:0)},ri=P=>{var be,we,Te,Ge;const U=Xn((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))},ii=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},oi=P=>P===void 0?"":xn(new Date(P),"yyyy-MM-dd HH:mm:ss"),si=(P,U)=>{var Ge,Qe;const ne=((Ge=P.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,be=U.length-1,we=((Qe=P.levels[0])==null?void 0:Qe.maxRepeats)===0,Te=xt=>xt.filter(Ne=>Ne.index>=0&&Ne.index<=be||we).map(Ne=>{const Xo=U[Ne.index]||U[0];return{label:Ne.label,desc:Xo.bonuses.map(Rd=>ve(Xo,Rd))}});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}])}},ai=P=>{var U,ne;t(20,M=P.url?P.url:(ne=(U=P.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Zn=P=>{window.postMessage({type:"BonusGameAction",gameId:P.id,name:P.name,gameLaunchUrl:P.href},window.location.href)},Y=P=>{t(21,ie=!0),t(22,_e=P)},Ae=()=>{t(21,ie=!1),t(22,_e=-1)},Re=P=>{fetch(`${c}/${s}/bonuses-information/${P}`).then(U=>U.json()).then(U=>{U&&U[P]&&(t(14,F=!0),t(16,G=U[P]))})},Et=(P,U)=>{const ne=document.createElement("div");ne.innerHTML=U,P.append(ne)},hn=()=>t(24,X+=300),Id=P=>Zn(P),Nd=P=>Y(P),Ld=()=>Ae(),Kn=()=>t(24,X-=300),Jn=()=>{t(11,y=!y)},Ft=()=>{t(12,S=!S)};function Hd(P){st[P?"unshift":"push"](()=>{q=P,t(6,q)})}return n.$$set=P=>{"rawbonus"in P&&t(45,o=P.rawbonus),"lang"in P&&t(46,s=P.lang),"status"in P&&t(0,a=P.status),"mbsource"in P&&t(1,l=P.mbsource),"clientstyling"in P&&t(2,u=P.clientstyling),"clientstylingurl"in P&&t(3,d=P.clientstylingurl),"cmsendpoint"in P&&t(47,c=P.cmsendpoint),"translationurl"in P&&t(48,h=P.translationurl),"levelcountlimit"in P&&t(4,f=P.levelcountlimit),"currency"in P&&t(49,b=P.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(a===oe.CLAIMABLE&&t(9,g=!0),a===oe.ACTIVE&&t(9,g=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,r=o&&s&&a),n.$$.dirty[1]&524288&&r&&K(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&r&&_&&(s&&Ql(s),c?Re(_.bonusId||_.id):ai(_)),n.$$.dirty[0]&68&&u&&q&&jr(q,u),n.$$.dirty[0]&72&&d&&q&&Gr(q,d),n.$$.dirty[0]&66&&l&&q&&Yr(q,`${l}.Style`,H),n.$$.dirty[1]&131072&&h&&ae()},[a,l,u,d,f,_,q,C,v,g,A,y,S,x,F,j,G,R,B,V,M,ie,_e,de,X,i,ee,w,O,Ue,ct,ht,Je,Rt,$,ve,Xn,ri,ii,oi,si,Zn,Y,Ae,Et,o,s,c,h,b,r,hn,Id,Nd,Ld,Kn,Jn,Ft,Hd]}class Hb extends Rr{constructor(e){super(),Lr(this,e,Lb,Nb,zn,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},ub,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),ue()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),ue()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),ue()}}customElements.define("casino-bonus-card",Hr(Hb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Rb({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>zb(r)?Ub({totalPages:i,limit:r,currentPage:t}):Fb({totalPages:i});return[{type:"symbol",symbol:"<",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:">",value:t>=i?i:t+1}]}function Fb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function Ub({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 zb(n){return n*2+3+2}function $b(n){Ir(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 Qa(n,e,t){const r=n.slice();return r[29]=e[t],r}const Vb=n=>({}),el=n=>({}),Wb=n=>({}),tl=n=>({}),jb=n=>({}),nl=n=>({}),Gb=n=>({value:n[0]&32}),rl=n=>({value:n[29].value});function Yb(n){let e;const t=n[21].next,r=$n(t,n,n[20],el),i=r||Kb();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?Vn(t,o[20],s,Vb):jn(o[20]),el)},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;const t=n[21].prev,r=$n(t,n,n[20],tl),i=r||Jb();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?Vn(t,o[20],s,Wb):jn(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 Xb(n){let e;const t=n[21].ellipsis,r=$n(t,n,n[20],nl),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)&&Wn(r,t,o,o[20],e?Vn(t,o[20],s,jb):jn(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 Zb(n){let e;const t=n[21].number,r=$n(t,n,n[20],rl),i=r||ev(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?Vn(t,o[20],s,Gb):jn(o[20]),rl):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 Kb(n){let e;return{c(){e=D(">")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function Jb(n){let e;return{c(){e=D("<")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function Qb(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function ev(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+"")&&pe(r,t)},d(i){i&&I(e)}}}function il(n){let e,t,r,i,o,s,a,l;const u=[Zb,Xb,qb,Yb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?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===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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==="<"),le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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,b){N(f,e,b),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Pe(e,"click",h),a=!0)},p(f,b){n=f;let _=t;t=c(n),t===_?~t&&d[t].p(n,b):(r&&(Al(),ut(d[_],1,1,()=>{d[_]=null}),Tl()),~t?(r=d[t],r?r.p(n,b):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&le(e,"number",n[29].type==="number"),(!s||b[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="<"),(!s||b[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),(!s||b[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1),(!s||b[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||b[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&&I(e),~t&&d[t].d(),a=!1,l()}}}function ol(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),gr(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&&xl(i.value)!==u[3]&&gr(i,u[3])},d(u){u&&I(e),a=!1,qe(l)}}}function tv(n){let e,t,r,i,o,s,a=Fe(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=il(Qa(n,a,c));const u=c=>ut(l[c],1,1,()=>{l[c]=null});let d=n[7]&&ol(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=Fe(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Qa(c,a,f);l[f]?(l[f].p(b,h),Ze(l[f],1)):(l[f]=il(b),l[f].c(),Ze(l[f],1),l[f].m(t,null))}for(Al(),f=a.length;f<l.length;f+=1)u(f);Tl()}(!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=ol(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&&I(e),vt(l,c),d&&d.d(),n[26](null)}}}function nv(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:b=""}=e,{mbsource:_}=e,{clientstyling:C=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,A,y=!1,S;su(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)};Nr(()=>()=>{});const B=M=>G(M);function V(){x=xl(this.value),t(3,x)}const Q=()=>R(x),q=()=>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,b=M.showinput),"mbsource"in M&&t(15,_=M.mbsource),"clientstyling"in M&&t(16,C=M.clientstyling),"clientstylingurl"in M&&t(17,v=M.clientstylingurl),"$$scope"in M&&t(20,u=M.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&C&&S&&jr(S,C),n.$$.dirty[0]&131073&&v&&S&&Gr(S,v),n.$$.dirty[0]&32769&&_&&S&&Yr(S,`${_}.Style`,A),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=b),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=Rb({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,_,C,v,s,r,u,l,B,V,Q,q,H]}class rv extends Rr{constructor(e){super(),Lr(this,e,nv,tv,zn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},$b,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),ue()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),ue()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),ue()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),ue()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),ue()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-pagination",Hr(rv,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function ni(t){return ze(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 ft(ft({},o||{}),s)})}function iv(n,e,t){return ze(this,null,function*(){const r=`${n}${ti.CLAIM}`;return ni(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function ov(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),ni(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function sv(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ni(r,{headers:i})})}function av(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ni(r,{headers:i})})}function lv(n){Ir(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 sl(n,e,t){const r=n.slice();return r[63]=e[t],r}function al(n,e,t){const r=n.slice();return r[66]=e[t],r}function ll(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&&I(e),o=!1,s()}}}function uv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,b,_,C,v=n[29]("bonus.to")+"",g,A,y,S,x,F=n[29]("bonus.filter")+"",j,G,R,B,V=[L("BonusCalendarTitle")],Q={};for(let Z=0;Z<V.length;Z+=1)Q=k(Q,V[Z]);let q=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],H={};for(let Z=0;Z<q.length;Z+=1)H=k(H,q[Z]);let M=[n[28]("BonusCalendarStartDate")],ie={};for(let Z=0;Z<M.length;Z+=1)ie=k(ie,M[Z]);let _e=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],de={};for(let Z=0;Z<_e.length;Z+=1)de=k(de,_e[Z]);let X=[n[28]("BonusCalendarEndDate")],ae={};for(let Z=0;Z<X.length;Z+=1)ae=k(ae,X[Z]);let K=[n[28]("BonusCalendarContainer")],se={};for(let Z=0;Z<K.length;Z+=1)se=k(se,K[Z]);let J=[n[28]("BonusFilterButton"),{disabled:G=n[13]||n[21]}],ee={};for(let Z=0;Z<J.length;Z+=1)ee=k(ee,J[Z]);let w=[L("BonusCalendarContent")],O={};for(let Z=0;Z<w.length;Z+=1)O=k(O,w[Z]);let he=[n[28]("BonusCalendarWrapper")],Oe={};for(let Z=0;Z<he.length;Z+=1)Oe=k(Oe,he[Z]);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"),b=z(),_=E("div"),C=E("label"),g=D(v),A=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=D(F),T(t,Q),m(u,"for","BonusCalendarStartDate"),T(f,H),T(l,ie),m(C,"for","BonusCalendarEndDate"),T(y,de),T(_,ae),T(a,se),T(x,ee),T(s,O),T(e,Oe)},m(Z,W){N(Z,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,b),p(a,_),p(_,C),p(C,g),p(_,A),p(_,y),n[47](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),R||(B=[Pe(f,"validated",n[37]),Pe(y,"validated",n[37]),Pe(x,"click",n[48])],R=!0)},p(Z,W){W[0]&536870912&&r!==(r=Z[29]("bonus.canlendarTitle")+"")&&re(i,r,Q.contenteditable),W[0]&536870912&&d!==(d=Z[29]("bonus.from")+"")&&pe(c,d),T(f,H=ke(q,[{min:Z[30]},{max:Z[31]},W[0]&8388608&&{value:Z[23]},{placeholder:"From"},L("VaadinDatePicker")])),T(l,ie=ke(M,[W[0]&268435456&&Z[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=Z[29]("bonus.to")+"")&&pe(g,v),T(y,de=ke(_e,[{min:Z[30]},{max:Z[31]},W[0]&16777216&&{value:Z[24]},{placeholder:"To"},L("VaadinDatePicker")])),T(_,ae=ke(X,[W[0]&268435456&&Z[28]("BonusCalendarEndDate")])),T(a,se=ke(K,[W[0]&268435456&&Z[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=Z[29]("bonus.filter")+"")&&re(j,F,ee.contenteditable),T(x,ee=ke(J,[W[0]&268435456&&Z[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=Z[13]||Z[21])&&{disabled:G}])),T(e,Oe=ke(he,[W[0]&268435456&&Z[28]("BonusCalendarWrapper")]))},d(Z){Z&&I(e),n[46](null),n[47](null),R=!1,qe(B)}}}function dv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,b,_,C,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],A={};for(let B=0;B<g.length;B+=1)A=k(A,g[B]);let y=[n[28]("BonusClaimButton"),{disabled:b=n[19]||!n[26]}],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let x=[n[28]("BonusCodeWrapper")],F={};for(let B=0;B<x.length;B+=1)F=k(F,x[B]);let j=n[20]&&ul(n),G=[n[28]("BonusCodeContainer")],R={};for(let B=0;B<G.length;B+=1)R=k(R,G[B]);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),_=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(B,V){N(B,e,V),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),gr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),j&&j.m(e,null),C||(v=[Pe(l,"input",n[44]),Pe(l,"keyup",n[36]),Pe(c,"click",n[45])],C=!0)},p(B,V){V[0]&536870912&&i!==(i=B[29]("bonus.bonusCode")+"")&&pe(o,i),T(l,A=ke(g,[V[0]&268435456&&B[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},V[0]&536870912&&u!==(u=B[29]("bonus.placeholder"))&&{placeholder:u}])),V[0]&262144&&l.value!==B[18]&&gr(l,B[18]),V[0]&536870912&&h!==(h=B[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),T(c,S=ke(y,[V[0]&268435456&&B[28]("BonusClaimButton"),V[0]&67633152&&b!==(b=B[19]||!B[26])&&{disabled:b}])),T(a,F=ke(x,[V[0]&268435456&&B[28]("BonusCodeWrapper")])),B[20]?j?j.p(B,V):(j=ul(B),j.c(),j.m(e,null)):j&&(j.d(1),j=null),T(e,R=ke(G,[V[0]&268435456&&B[28]("BonusCodeContainer")]))},d(B){B&&I(e),j&&j.d(),C=!1,qe(v)}}}function ul(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")+"")&&pe(r,t)},d(i){i&&I(e)}}}function cv(n){let e,t;function r(a,l){return a[12].length>0?mv:a[14]?pv:fv}let i=r(n),o=i(n),s=n[12].length!==0&&cl(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=cl(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 hv(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&&I(e)}}}function fv(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")+"")&&pe(r,t)},d(i){i&&I(e)}}}function pv(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")+"")&&pe(r,t),a[0]&16384&&pe(o,s[14])},d(s){s&&I(e)}}}function mv(n){let e,t=Fe(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=dl(sl(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=Fe(s[12]);let l;for(l=0;l<t.length;l+=1){const u=sl(s,t,l);r[l]?r[l].p(u,a):(r[l]=dl(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),vt(r,s)}}}function dl(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&&I(e)}}}function cl(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){N(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 hl(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,b=n[29]("bonus.forfeitConfirm")+"",_,C,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")],B={};for(let M=0;M<R.length;M+=1)B=k(B,R[M]);let V=[L("ModalContent")],Q={};for(let M=0;M<V.length;M+=1)Q=k(Q,V[M]);let q=[n[28]("ModalWrapper")],H={};for(let M=0;M<q.length;M+=1)H=k(H,q[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"),_=D(b),T(i,A),T(u,S),T(f,F),T(l,G),T(r,B),T(t,Q),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,_),f.autofocus&&f.focus(),C||(v=[Pe(u,"click",n[34]),Pe(f,"click",n[49])],C=!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&&b!==(b=M[29]("bonus.forfeitConfirm")+"")&&re(_,b,F.contenteditable),T(e,H=ke(q,[ie[0]&268435456&&M[28]("ModalWrapper")]))},d(M){M&&I(e),C=!1,qe(v)}}}function _v(n){let e,t,r,i,o,s,a=Fe(ma),l=[];for(let y=0;y<a.length;y+=1)l[y]=ll(al(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 dv;if(y[25]===oe.COMPLETED)return uv}let h=c(n),f=h&&h(n);function b(y,S){return y[13]?hv:cv}let _=b(n),C=_(n),v=n[22]&&hl(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(),C.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),C.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=Fe(ma);let x;for(x=0;x<a.length;x+=1){const F=al(y,a,x);l[x]?l[x].p(F,S):(l[x]=ll(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(y))&&C?C.p(y,S):(C.d(1),C=_(y),C&&(C.c(),C.m(e,s))),y[22]?v?v.p(y,S):(v=hl(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Me,o:Me,d(y){y&&I(e),vt(l,y),f&&f.d(),C.d(),v&&v.d(),n[50](null)}}}function gv(n,e,t){let r,i,o;wl(n,Jl,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:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:C="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,A=!1,y=[],S=!0,x="",F="",j=1,G=0,R=2,B=xn(Ps(new Date,Zg),"yyyy-MM-dd"),V=xn(new Date,"yyyy-MM-dd"),Q=xn(Ps(new Date,Kg),"yyyy-MM-dd"),q,H,M="",ie=!0,_e=!1,de=!1,X=!1,ae=Q,K=V,se,J,ee=oe.ACTIVE,w=!0,O="";su(g)&&(A=!0,R=1);const he=()=>{fetch(_).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(Re=>{wr(Re,Ae[Re])})}).catch(Ae=>{console.log(Ae)})};Object.keys(Cr).forEach(Y=>{wr(Y,Cr[Y])}),Nr(()=>(window.addEventListener("message",Oe,!1),()=>{se==null||se.removeEventListener("change",ht),J==null||J.removeEventListener("change",Je),window.removeEventListener("message",Oe)}));const Oe=Y=>{switch(Y.data.type){case"PaginationChange":t(15,j=Y.data.page),Ue(j);break;case"OnBonusClaimed":W(Y.data.bonusCode);break;case"OnBonusForfeit":t(27,O=Y.data.bonus.id),t(22,X=!0);break}},Z=()=>ze(this,null,function*(){Ue(1)}),W=(Y,Ae)=>ze(this,null,function*(){t(26,w=!1);const Re=yield iv(s,l,{bonusCode:Y,currency:u});if(!Re.success){F=Re.errorMessage||"",Ae?t(20,_e=!0):window.postMessage({type:"OnBonusClaimError",message:F,bonusCode:Y}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0);return}t(20,_e=!1),Ue(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0)}),xe=Y=>ze(this,null,function*(){t(26,w=!1);const Ae=yield ov(s,l,{bonusWalletID:Y});if(!Ae.success){t(14,x=Ae.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1);return}Ue(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1)}),Ce=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,X=!1)},Ue=Y=>ze(this,null,function*(){j!==Y&&t(15,j=Y);const Ae=(Y-1)*Number(d);t(13,S=!0),t(12,y=[]);const Re=yield ct(s,l,Ae,{lang:a,limit:d});if(!Re.success){t(14,x=Re.errorMessage),t(13,S=!1);return}const{list:Et,total:hn}=ob(Re);t(16,G=hn),t(12,y=Et),t(13,S=!1)}),ct=(hn,Id,Nd,...Ld)=>ze(this,[hn,Id,Nd,...Ld],function*(Y,Ae,Re,Et={}){const{limit:Kn="",lang:Jn=a}=Et;switch(ee){case oe.CLAIMABLE:{const Ft={pagination:`limit=${Kn},offset=${Re}`,language:Jn};return v===!0&&(Ft.selectable=v),yield av(Y,Ae,Ft)}default:{const Ft=lb({limit:Kn,language:Jn,offset:Re,bonusStatus:ee,bonusCalendarStartDate:ae,bonusCalendarEndDate:K,invalidDate:de,lastMonth:Q,maxDate:V});return yield sv(Y,Ae,Ft)}}}),ht=Y=>{t(23,ae=Y.target.value)},Je=Y=>{t(24,K=Y.target.value)},Rt=()=>{se.removeEventListener("change",ht),J.removeEventListener("change",Je),se.addEventListener("change",ht,!1),J.addEventListener("change",Je,!1)},Ct=()=>{t(20,_e=!1),t(19,ie=!sb(M))},$=Y=>{const{valid:Ae}=Y.detail,{start:Re,end:Et}=ib(ae,K);t(23,ae=Re),t(24,K=Et);const hn=ab(ae,K,Ae);t(21,de=hn.invalidDate)},ve=Y=>{t(25,ee=Y),Ue(1)};function Xn(){M=this.value,t(18,M)}const ri=()=>{W(M,!0)};function ii(Y){st[Y?"unshift":"push"](()=>{se=Y,t(10,se)})}function oi(Y){st[Y?"unshift":"push"](()=>{J=Y,t(11,J)})}const si=()=>Ue(1),ai=()=>xe(O);function Zn(Y){st[Y?"unshift":"push"](()=>{q=Y,t(9,q)})}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,b=Y.clientstylingurl),"translationurl"in Y&&t(7,_=Y.translationurl),"levelcountlimit"in Y&&t(8,C=Y.levelcountlimit),"onlyoneclick"in Y&&t(40,v=Y.onlyoneclick)},n.$$.update=()=>{n.$$.dirty[0]&3072&&se&&J&&Rt(),n.$$.dirty[1]&1024&&t(28,r=(Y,Ae="")=>L(`${Y}${A?` ${Y}Mobile`:""}`,Ae)),n.$$.dirty[0]&1&&a&&Ql(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(42,i=s&&l&&a&&d),n.$$.dirty[1]&2048&&i&&Z(),n.$$.dirty[0]&544&&f&&q&&jr(q,f),n.$$.dirty[0]&576&&b&&q&&Gr(q,b),n.$$.dirty[0]&528&&h&&q&&Yr(q,`${h}.Style`,H),n.$$.dirty[0]&128&&_&&he()},[a,u,d,c,h,f,b,_,C,q,se,J,y,S,x,j,G,R,M,ie,_e,de,X,ae,K,ee,w,O,r,o,B,V,W,xe,Ce,Ue,Ct,$,s,l,v,A,i,ve,Xn,ri,ii,oi,si,ai,Zn]}class Od extends Rr{constructor(e){super(),Lr(this,e,gv,_v,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},lv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ue()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),ue()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),ue()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),ue()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),ue()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),ue()}}Hr(Od,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Od;
|