@everymatrix/casino-bonuses-controller 1.49.2 → 1.50.1
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-Cmdl1blF.js → CasinoBonusesController-ABZjr7P8.js} +1347 -862
- package/components/{CasinoBonusesController-BbD9YozK.cjs → CasinoBonusesController-D-mnpA4G.cjs} +569 -91
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBonusesController-BbD9YozK.cjs → CasinoBonusesController-D-mnpA4G.cjs}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var Vh=Object.defineProperty,jh=Object.defineProperties;var Gh=Object.getOwnPropertyDescriptors;var Yi=Object.getOwnPropertySymbols;var Ta=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable;var us=(e,t,r)=>t in e?Vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xt=(e,t)=>{for(var r in t||(t={}))Ta.call(t,r)&&us(e,r,t[r]);if(Yi)for(var r of Yi(t))Pa.call(t,r)&&us(e,r,t[r]);return e},jr=(e,t)=>jh(e,Gh(t));var cs=(e,t)=>{var r={};for(var i in e)Ta.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Yi)for(var i of Yi(e))t.indexOf(i)<0&&Pa.call(e,i)&&(r[i]=e[i]);return r};var it=(e,t,r)=>us(e,typeof t!="symbol"?t+"":t,r);var Qe=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{a(r.next(l))}catch(u){n(u)}},o=l=>{try{a(r.throw(l))}catch(u){n(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ke(){}function T(e,t){for(const r in t)e[r]=t[r];return e}function zu(e){return e()}function Da(){return Object.create(null)}function pt(e){e.forEach(zu)}function Ei(e){return typeof e=="function"}function ki(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ui;function Ma(e,t){return e===t?!0:(Ui||(Ui=document.createElement("a")),Ui.href=t,e===Ui.href)}function qh(e){return Object.keys(e).length===0}function Yu(e,...t){if(e==null){for(const i of t)i(void 0);return ke}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Uu(e,t,r){e.$$.on_destroy.push(Yu(t,r))}function Si(e,t,r,i){if(e){const n=$u(e,t,r,i);return e[0](n)}}function $u(e,t,r,i){return e[1]&&i?T(r.ctx.slice(),e[1](i(t))):r.ctx}function Ai(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const s=[],o=Math.max(t.dirty.length,n.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|n[a];return s}return t.dirty|n}return t.dirty}function Ti(e,t,r,i,n,s){if(n){const o=$u(t,r,i,s);e.p(o,n)}}function Pi(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function Zh(e){return e&&Ei(e.destroy)?e.destroy:ke}const Xh=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function Tn(e,t,r){const i=Kh(e);if(!i.getElementById(t)){const n=x("style");n.id=t,n.textContent=r,Jh(i,n)}}function Kh(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Jh(e,t){return p(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function jt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function x(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function W(){return O(" ")}function Nt(){return O("")}function Re(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const Qh=["width","height"];function k(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:r[i]&&r[i].set&&Qh.indexOf(i)===-1?e[i]=t[i]:m(e,i,t[i])}function Wu(e,t){for(const r in t)m(e,r,t[r])}function nt(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function Vu(e){return e===""?null:+e}function ef(e){return Array.from(e.childNodes)}function Ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function tf(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,r){~Xh.indexOf(r)?tf(e,t):Ce(e,t)}function cn(e,t){e.value=t==null?"":t}function $s(e,t,r,i){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function le(e,t,r){e.classList.toggle(t,!!r)}function rf(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let oi;function ii(e){oi=e}function nf(){if(!oi)throw new Error("Function called outside component initialization");return oi}function ju(e){nf().$$.on_mount.push(e)}const gr=[],At=[];let wr=[];const Oa=[],sf=Promise.resolve();let Ws=!1;function of(){Ws||(Ws=!0,sf.then(xe))}function Vs(e){wr.push(e)}const ds=new Set;let fr=0;function xe(){if(fr!==0)return;const e=oi;do{try{for(;fr<gr.length;){const t=gr[fr];fr++,ii(t),af(t.$$)}}catch(t){throw gr.length=0,fr=0,t}for(ii(null),gr.length=0,fr=0;At.length;)At.pop()();for(let t=0;t<wr.length;t+=1){const r=wr[t];ds.has(r)||(ds.add(r),r())}wr.length=0}while(gr.length);for(;Oa.length;)Oa.pop()();Ws=!1,ds.clear(),ii(e)}function af(e){if(e.fragment!==null){e.update(),pt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Vs)}}function lf(e){const t=[],r=[];wr.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),wr=t}const Ki=new Set;let Qt;function Gu(){Qt={r:0,c:[],p:Qt}}function qu(){Qt.r||pt(Qt.c),Qt=Qt.p}function dt(e,t){e&&e.i&&(Ki.delete(e),e.i(t))}function Ot(e,t,r,i){if(e&&e.o){if(Ki.has(e))return;Ki.add(e),Qt.c.push(()=>{Ki.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function Ge(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function He(e,t){const r={},i={},n={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const l in o)l in a||(i[l]=1);for(const l in a)n[l]||(r[l]=a[l],n[l]=1);e[s]=a}else for(const l in o)n[l]=1}for(const o in i)o in r||(r[o]=void 0);return r}function uf(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),Vs(()=>{const s=e.$$.on_mount.map(zu).filter(Ei);e.$$.on_destroy?e.$$.on_destroy.push(...s):pt(s),e.$$.on_mount=[]}),n.forEach(Vs)}function cf(e,t){const r=e.$$;r.fragment!==null&&(lf(r.after_update),pt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function df(e,t){e.$$.dirty[0]===-1&&(gr.push(e),of(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pn(e,t,r,i,n,s,o=null,a=[-1]){const l=oi;ii(e);const u=e.$$={fragment:null,ctx:[],props:s,update:ke,not_equal:n,bound:Da(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Da(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=r?r(e,t.props||{},(d,h,...f)=>{const v=f.length?f[0]:h;return u.ctx&&n(u.ctx[d],u.ctx[d]=v)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](v),c&&df(e,d)),h}):[],u.update(),c=!0,pt(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const d=ef(t.target);u.fragment&&u.fragment.l(d),d.forEach(M)}else u.fragment&&u.fragment.c();t.intro&&dt(e.$$.fragment),uf(e,t.target,t.anchor),xe()}ii(l)}let Zu;typeof HTMLElement=="function"&&(Zu=class extends HTMLElement{constructor(t,r,i){super();it(this,"$$ctor");it(this,"$$s");it(this,"$$c");it(this,"$$cn",!1);it(this,"$$d",{});it(this,"$$r",!1);it(this,"$$p_d",{});it(this,"$$l",{});it(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Qe(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=x("slot"),s!=="default"&&m(o,"name",s)},m:function(u,c){B(u,o,c)},d:function(u){u&&M(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=rf(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Ji(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:jr(Xt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Ji(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ji(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ji(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dn(e,t,r,i,n,s){let o=class extends Zu{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=Ji(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class Mn{constructor(){it(this,"$$");it(this,"$$set")}$destroy(){cf(this,1),this.$destroy=ke}$on(t,r){if(!Ei(r))return ke;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!qh(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const hf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(hf);const pr=[];function ff(e,t){return{subscribe:On(e,t).subscribe}}function On(e,t=ke){let r;const i=new Set;function n(a){if(ki(e,a)&&(e=a,r)){const l=!pr.length;for(const u of i)u[1](),pr.push(u,e);if(l){for(let u=0;u<pr.length;u+=2)pr[u][0](pr[u+1]);pr.length=0}}}function s(a){n(a(e))}function o(a,l=ke){const u=[a,l];return i.add(u),i.size===1&&(r=t(n,s)||ke),a(e),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function Lr(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return ff(r,(o,a)=>{let l=!1;const u=[];let c=0,d=ke;const h=()=>{if(c)return;d();const v=t(i?u[0]:u,o,a);s?o(v):d=Ei(v)?v:ke},f=n.map((v,g)=>Yu(v,w=>{u[g]=w,c&=~(1<<g),l&&h()},()=>{c|=1<<g}));return l=!0,h(),function(){pt(f),d(),l=!1}})}function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mf=function(t){return _f(t)&&!gf(t)};function _f(e){return!!e&&typeof e=="object"}function gf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||yf(e)}var bf=typeof Symbol=="function"&&Symbol.for,vf=bf?Symbol.for("react.element"):60103;function yf(e){return e.$$typeof===vf}function wf(e){return Array.isArray(e)?[]:{}}function ai(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Pr(wf(e),e,t):e}function Cf(e,t,r){return e.concat(t).map(function(i){return ai(i,r)})}function xf(e,t){if(!t.customMerge)return Pr;var r=t.customMerge(e);return typeof r=="function"?r:Pr}function Ef(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ba(e){return Object.keys(e).concat(Ef(e))}function Xu(e,t){try{return t in e}catch(r){return!1}}function kf(e,t){return Xu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Sf(e,t,r){var i={};return r.isMergeableObject(e)&&Ba(e).forEach(function(n){i[n]=ai(e[n],r)}),Ba(t).forEach(function(n){kf(e,n)||(Xu(e,n)&&r.isMergeableObject(t[n])?i[n]=xf(n,r)(e[n],t[n],r):i[n]=ai(t[n],r))}),i}function Pr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Cf,r.isMergeableObject=r.isMergeableObject||mf,r.cloneUnlessOtherwiseSpecified=ai;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):Sf(e,t,r):ai(t,r)}Pr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return Pr(i,n,r)},{})};var Af=Pr,Tf=Af;const Pf=pf(Tf);var js=function(e,t){return js=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},js(e,t)};function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");js(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},be.apply(this,arguments)};function Df(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Gs(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qs(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Cr(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var fe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(fe||(fe={}));var Me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Me||(Me={}));var Dr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Dr||(Dr={}));function Na(e){return e.type===Me.literal}function Mf(e){return e.type===Me.argument}function Ku(e){return e.type===Me.number}function Ju(e){return e.type===Me.date}function Qu(e){return e.type===Me.time}function ec(e){return e.type===Me.select}function tc(e){return e.type===Me.plural}function Of(e){return e.type===Me.pound}function rc(e){return e.type===Me.tag}function ic(e){return!!(e&&typeof e=="object"&&e.type===Dr.number)}function Zs(e){return!!(e&&typeof e=="object"&&e.type===Dr.dateTime)}var nc=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bf=/(?:[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 Nf(e){var t={};return e.replace(Bf,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var If=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Lf(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(If).filter(function(h){return h.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function Ff(e){return e.replace(/^(.*?)-/,"")}var Ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,sc=/^(@+)?(\+|#+)?[rs]?$/g,Hf=/(\*)(0+)|(#+)(0+)|(0+)/g,oc=/^(0+)$/;function La(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(sc,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function ac(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Rf(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!oc.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Fa(e){var t={},r=ac(e);return r||t}function zf(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ff(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=be(be(be({},t),{notation:"scientific"}),n.options.reduce(function(l,u){return be(be({},l),Fa(u))},{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),n.options.reduce(function(l,u){return be(be({},l),Fa(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Hf,function(l,u,c,d,h,f){if(u)t.minimumIntegerDigits=c.length;else{if(d&&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(oc.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ia.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ia,function(l,u,c,d,h,f){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=n.options[0];s==="w"?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=be(be({},t),La(s)));continue}if(sc.test(n.stem)){t=be(be({},t),La(n.stem));continue}var o=ac(n.stem);o&&(t=be(be({},t),o));var a=Rf(n.stem);a&&(t=be(be({},t),a))}return t}var $i={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"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 Yf(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=Uf(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else n==="J"?r+="H":r+=n}return r}function Uf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=$i[i||""]||$i[r||""]||$i["".concat(r,"-001")]||$i["001"];return n[0]}var hs,$f=new RegExp("^".concat(nc.source,"*")),Wf=new RegExp("".concat(nc.source,"*$"));function pe(e,t){return{start:e,end:t}}var Vf=!!String.prototype.startsWith&&"_a".startsWith("a",1),jf=!!String.fromCodePoint,Gf=!!Object.fromEntries,qf=!!String.prototype.codePointAt,Zf=!!String.prototype.trimStart,Xf=!!String.prototype.trimEnd,Kf=!!Number.isSafeInteger,Jf=Kf?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Xs=!0;try{var Qf=uc("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xs=((hs=Qf.exec("a"))===null||hs===void 0?void 0:hs[0])==="a"}catch(e){Xs=!1}var Ha=Vf?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Ks=jf?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Ra=Gf?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],a=s[1];r[o]=a}return r},lc=qf?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},ep=Zf?function(t){return t.trimStart()}:function(t){return t.replace($f,"")},tp=Xf?function(t){return t.trimEnd()}:function(t){return t.replace(Wf,"")};function uc(e,t){return new RegExp(e,t)}var Js;if(Xs){var za=uc("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Js=function(t,r){var i;za.lastIndex=r;var n=za.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Js=function(t,r){for(var i=[];;){var n=lc(t,r);if(n===void 0||cc(n)||sp(n))break;i.push(n),r+=n>=65536?2:1}return Ks.apply(void 0,i)};var rp=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:Me.pound,location:pe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(fe.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Qs(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(n,"/>"),location:pe(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qs(this.char()))return this.error(fe.INVALID_TAG,pe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(fe.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:n,children:o,location:pe(i,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,pe(a,this.clonePosition())))}else return this.error(fe.UNCLOSED_TAG,pe(i,this.clonePosition()))}else return this.error(fe.INVALID_TAG,pe(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&np(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=pe(i,this.clonePosition());return{val:{type:Me.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ip(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Ks.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Ks(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(fe.EMPTY_ARGUMENT,pe(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(fe.MALFORMED_ARGUMENT,pe(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:n,location:pe(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(fe.MALFORMED_ARGUMENT,pe(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Js(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=pe(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,pe(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=tp(d.val);if(h.length===0)return this.error(fe.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var f=pe(c,this.clonePosition());u={style:h,styleLocation:f}}var v=this.tryParseArgumentClose(n);if(v.err)return v;var g=pe(n,this.clonePosition());if(u&&Ha(u==null?void 0:u.style,"::",0)){var w=ep(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:Me.number,value:i,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(fe.EXPECT_DATE_TIME_SKELETON,g);var b=w;this.locale&&(b=Yf(w,this.locale));var h={type:Dr.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Nf(b):{}},_=a==="date"?Me.date:Me.time;return{val:{type:_,value:i,location:g,style:h},err:null}}}return{val:{type:a==="number"?Me.number:a==="date"?Me.date:Me.time,value:i,location:g,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(C,be({},C)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),y=this.parseIdentifierIfPossible(),L=d.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,y);if(E.err)return E;var v=this.tryParseArgumentClose(n);if(v.err)return v;var I=pe(n,this.clonePosition());return a==="select"?{val:{type:Me.select,value:i,options:Ra(E.val),location:I},err:null}:{val:{type:Me.plural,value:i,options:Ra(E.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(fe.INVALID_ARGUMENT_TYPE,pe(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=Lf(t)}catch(n){return this.error(fe.INVALID_NUMBER_SKELETON,r)}return{val:{type:Dr.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?zf(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=pe(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,i);if(v.err)return v;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:v.val,location:pe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(r==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(fe.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=pe(n,this.clonePosition());return s?(o*=i,Jf(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=lc(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ha(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&cc(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function Qs(e){return e>=97&&e<=122||e>=65&&e<=90}function ip(e){return Qs(e)||e===47}function np(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function cc(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function sp(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function eo(e){e.forEach(function(t){if(delete t.location,ec(t)||tc(t))for(var r in t.options)delete t.options[r].location,eo(t.options[r].value);else Ku(t)&&ic(t.style)||(Ju(t)||Qu(t))&&Zs(t.style)?delete t.style.location:rc(t)&&eo(t.children)})}function op(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new rp(e,t).parse();if(r.err){var i=SyntaxError(fe[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||eo(r.val),r.val}function fs(e,t){var r=t&&t.cache?t.cache:hp,i=t&&t.serializer?t.serializer:dp,n=t&&t.strategy?t.strategy:lp;return n(e,{cache:r,serializer:i})}function ap(e){return e==null||typeof e=="number"||typeof e=="boolean"}function dc(e,t,r,i){var n=ap(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function hc(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function Io(e,t,r,i,n){return r.bind(t,e,i,n)}function lp(e,t){var r=e.length===1?dc:hc;return Io(e,this,r,t.cache.create(),t.serializer)}function up(e,t){return Io(e,this,hc,t.cache.create(),t.serializer)}function cp(e,t){return Io(e,this,dc,t.cache.create(),t.serializer)}var dp=function(){return JSON.stringify(arguments)};function Lo(){this.cache=Object.create(null)}Lo.prototype.get=function(e){return this.cache[e]};Lo.prototype.set=function(e,t){this.cache[e]=t};var hp={create:function(){return new Lo}},ps={variadic:up,monadic:cp},Mr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Mr||(Mr={}));var Bn=function(e){It(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ya=function(e){It(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Mr.INVALID_VALUE,s)||this}return t}(Bn),fp=function(e){It(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Mr.INVALID_VALUE,n)||this}return t}(Bn),pp=function(e){It(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Mr.MISSING_VALUE,i)||this}return t}(Bn),Ze;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ze||(Ze={}));function mp(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Ze.literal||r.type!==Ze.literal?t.push(r):i.value+=r.value,t},[])}function _p(e){return typeof e=="function"}function Qi(e,t,r,i,n,s,o){if(e.length===1&&Na(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Na(c)){a.push({type:Ze.literal,value:c.value});continue}if(Of(c)){typeof s=="number"&&a.push({type:Ze.literal,value:r.getNumberFormat(t).format(s)});continue}var d=c.value;if(!(n&&d in n))throw new pp(d,o);var h=n[d];if(Mf(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Ze.literal:Ze.object,value:h});continue}if(Ju(c)){var f=typeof c.style=="string"?i.date[c.style]:Zs(c.style)?c.style.parsedOptions:void 0;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Qu(c)){var f=typeof c.style=="string"?i.time[c.style]:Zs(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Ku(c)){var f=typeof c.style=="string"?i.number[c.style]:ic(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Ze.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(rc(c)){var v=c.children,g=c.value,w=n[g];if(!_p(w))throw new fp(g,"function",o);var b=Qi(v,t,r,i,n,s),_=w(b.map(function(L){return L.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(L){return{type:typeof L=="string"?Ze.literal:Ze.object,value:L}}))}if(ec(c)){var C=c.options[h]||c.options.other;if(!C)throw new Ya(c.value,h,Object.keys(c.options),o);a.push.apply(a,Qi(C.value,t,r,i,n));continue}if(tc(c)){var C=c.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new Bn(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var Wh=Object.defineProperty,Vh=Object.defineProperties;var jh=Object.getOwnPropertyDescriptors;var Yi=Object.getOwnPropertySymbols;var Ta=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable;var us=(e,t,r)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kt=(e,t)=>{for(var r in t||(t={}))Ta.call(t,r)&&us(e,r,t[r]);if(Yi)for(var r of Yi(t))Pa.call(t,r)&&us(e,r,t[r]);return e},jr=(e,t)=>Vh(e,jh(t));var cs=(e,t)=>{var r={};for(var i in e)Ta.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Yi)for(var i of Yi(e))t.indexOf(i)<0&&Pa.call(e,i)&&(r[i]=e[i]);return r};var it=(e,t,r)=>us(e,typeof t!="symbol"?t+"":t,r);var Qe=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{a(r.next(l))}catch(u){n(u)}},o=l=>{try{a(r.throw(l))}catch(u){n(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ke(){}function T(e,t){for(const r in t)e[r]=t[r];return e}function zu(e){return e()}function Da(){return Object.create(null)}function pt(e){e.forEach(zu)}function Ei(e){return typeof e=="function"}function ki(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ui;function Ma(e,t){return e===t?!0:(Ui||(Ui=document.createElement("a")),Ui.href=t,e===Ui.href)}function Gh(e){return Object.keys(e).length===0}function Yu(e,...t){if(e==null){for(const i of t)i(void 0);return ke}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Uu(e,t,r){e.$$.on_destroy.push(Yu(t,r))}function Si(e,t,r,i){if(e){const n=$u(e,t,r,i);return e[0](n)}}function $u(e,t,r,i){return e[1]&&i?T(r.ctx.slice(),e[1](i(t))):r.ctx}function Ai(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const s=[],o=Math.max(t.dirty.length,n.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|n[a];return s}return t.dirty|n}return t.dirty}function Ti(e,t,r,i,n,s){if(n){const o=$u(t,r,i,s);e.p(o,n)}}function Pi(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function qh(e){return e&&Ei(e.destroy)?e.destroy:ke}const Zh=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function Tn(e,t,r){const i=Kh(e);if(!i.getElementById(t)){const n=x("style");n.id=t,n.textContent=r,Xh(i,n)}}function Kh(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Xh(e,t){return p(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function jt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function x(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function W(){return O(" ")}function Nt(){return O("")}function Re(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const Jh=["width","height"];function k(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:r[i]&&r[i].set&&Jh.indexOf(i)===-1?e[i]=t[i]:m(e,i,t[i])}function Wu(e,t){for(const r in t)m(e,r,t[r])}function nt(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function Vu(e){return e===""?null:+e}function Qh(e){return Array.from(e.childNodes)}function Ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function ef(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,r){~Zh.indexOf(r)?ef(e,t):Ce(e,t)}function cn(e,t){e.value=t==null?"":t}function $s(e,t,r,i){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function le(e,t,r){e.classList.toggle(t,!!r)}function tf(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let oi;function ii(e){oi=e}function rf(){if(!oi)throw new Error("Function called outside component initialization");return oi}function ju(e){rf().$$.on_mount.push(e)}const gr=[],At=[];let wr=[];const Oa=[],nf=Promise.resolve();let Ws=!1;function sf(){Ws||(Ws=!0,nf.then(xe))}function Vs(e){wr.push(e)}const ds=new Set;let fr=0;function xe(){if(fr!==0)return;const e=oi;do{try{for(;fr<gr.length;){const t=gr[fr];fr++,ii(t),of(t.$$)}}catch(t){throw gr.length=0,fr=0,t}for(ii(null),gr.length=0,fr=0;At.length;)At.pop()();for(let t=0;t<wr.length;t+=1){const r=wr[t];ds.has(r)||(ds.add(r),r())}wr.length=0}while(gr.length);for(;Oa.length;)Oa.pop()();Ws=!1,ds.clear(),ii(e)}function of(e){if(e.fragment!==null){e.update(),pt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Vs)}}function af(e){const t=[],r=[];wr.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),wr=t}const Xi=new Set;let Qt;function Gu(){Qt={r:0,c:[],p:Qt}}function qu(){Qt.r||pt(Qt.c),Qt=Qt.p}function dt(e,t){e&&e.i&&(Xi.delete(e),e.i(t))}function Ot(e,t,r,i){if(e&&e.o){if(Xi.has(e))return;Xi.add(e),Qt.c.push(()=>{Xi.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function Ge(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function He(e,t){const r={},i={},n={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const l in o)l in a||(i[l]=1);for(const l in a)n[l]||(r[l]=a[l],n[l]=1);e[s]=a}else for(const l in o)n[l]=1}for(const o in i)o in r||(r[o]=void 0);return r}function lf(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),Vs(()=>{const s=e.$$.on_mount.map(zu).filter(Ei);e.$$.on_destroy?e.$$.on_destroy.push(...s):pt(s),e.$$.on_mount=[]}),n.forEach(Vs)}function uf(e,t){const r=e.$$;r.fragment!==null&&(af(r.after_update),pt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function cf(e,t){e.$$.dirty[0]===-1&&(gr.push(e),sf(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pn(e,t,r,i,n,s,o=null,a=[-1]){const l=oi;ii(e);const u=e.$$={fragment:null,ctx:[],props:s,update:ke,not_equal:n,bound:Da(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Da(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=r?r(e,t.props||{},(d,h,...f)=>{const v=f.length?f[0]:h;return u.ctx&&n(u.ctx[d],u.ctx[d]=v)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](v),c&&cf(e,d)),h}):[],u.update(),c=!0,pt(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const d=Qh(t.target);u.fragment&&u.fragment.l(d),d.forEach(M)}else u.fragment&&u.fragment.c();t.intro&&dt(e.$$.fragment),lf(e,t.target,t.anchor),xe()}ii(l)}let Zu;typeof HTMLElement=="function"&&(Zu=class extends HTMLElement{constructor(t,r,i){super();it(this,"$$ctor");it(this,"$$s");it(this,"$$c");it(this,"$$cn",!1);it(this,"$$d",{});it(this,"$$r",!1);it(this,"$$p_d",{});it(this,"$$l",{});it(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Qe(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=x("slot"),s!=="default"&&m(o,"name",s)},m:function(u,c){B(u,o,c)},d:function(u){u&&M(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=tf(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Ji(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:jr(Kt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Ji(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ji(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ji(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dn(e,t,r,i,n,s){let o=class extends Zu{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=Ji(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class Mn{constructor(){it(this,"$$");it(this,"$$set")}$destroy(){uf(this,1),this.$destroy=ke}$on(t,r){if(!Ei(r))return ke;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!Gh(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const df="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(df);const pr=[];function hf(e,t){return{subscribe:On(e,t).subscribe}}function On(e,t=ke){let r;const i=new Set;function n(a){if(ki(e,a)&&(e=a,r)){const l=!pr.length;for(const u of i)u[1](),pr.push(u,e);if(l){for(let u=0;u<pr.length;u+=2)pr[u][0](pr[u+1]);pr.length=0}}}function s(a){n(a(e))}function o(a,l=ke){const u=[a,l];return i.add(u),i.size===1&&(r=t(n,s)||ke),a(e),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function Lr(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return hf(r,(o,a)=>{let l=!1;const u=[];let c=0,d=ke;const h=()=>{if(c)return;d();const v=t(i?u[0]:u,o,a);s?o(v):d=Ei(v)?v:ke},f=n.map((v,g)=>Yu(v,w=>{u[g]=w,c&=~(1<<g),l&&h()},()=>{c|=1<<g}));return l=!0,h(),function(){pt(f),d(),l=!1}})}function ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pf=function(t){return mf(t)&&!_f(t)};function mf(e){return!!e&&typeof e=="object"}function _f(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||vf(e)}var gf=typeof Symbol=="function"&&Symbol.for,bf=gf?Symbol.for("react.element"):60103;function vf(e){return e.$$typeof===bf}function yf(e){return Array.isArray(e)?[]:{}}function ai(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Pr(yf(e),e,t):e}function wf(e,t,r){return e.concat(t).map(function(i){return ai(i,r)})}function Cf(e,t){if(!t.customMerge)return Pr;var r=t.customMerge(e);return typeof r=="function"?r:Pr}function xf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ba(e){return Object.keys(e).concat(xf(e))}function Ku(e,t){try{return t in e}catch(r){return!1}}function Ef(e,t){return Ku(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function kf(e,t,r){var i={};return r.isMergeableObject(e)&&Ba(e).forEach(function(n){i[n]=ai(e[n],r)}),Ba(t).forEach(function(n){Ef(e,n)||(Ku(e,n)&&r.isMergeableObject(t[n])?i[n]=Cf(n,r)(e[n],t[n],r):i[n]=ai(t[n],r))}),i}function Pr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||wf,r.isMergeableObject=r.isMergeableObject||pf,r.cloneUnlessOtherwiseSpecified=ai;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):kf(e,t,r):ai(t,r)}Pr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return Pr(i,n,r)},{})};var Sf=Pr,Af=Sf;const Tf=ff(Af);var js=function(e,t){return js=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},js(e,t)};function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");js(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},be.apply(this,arguments)};function Pf(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Gs(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qs(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Cr(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function hs(e,t){var r=t&&t.cache?t.cache:If,i=t&&t.serializer?t.serializer:Nf,n=t&&t.strategy?t.strategy:Mf;return n(e,{cache:r,serializer:i})}function Df(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xu(e,t,r,i){var n=Df(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function Ju(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function Io(e,t,r,i,n){return r.bind(t,e,i,n)}function Mf(e,t){var r=e.length===1?Xu:Ju;return Io(e,this,r,t.cache.create(),t.serializer)}function Of(e,t){return Io(e,this,Ju,t.cache.create(),t.serializer)}function Bf(e,t){return Io(e,this,Xu,t.cache.create(),t.serializer)}var Nf=function(){return JSON.stringify(arguments)};function Lo(){this.cache=Object.create(null)}Lo.prototype.get=function(e){return this.cache[e]};Lo.prototype.set=function(e,t){this.cache[e]=t};var If={create:function(){return new Lo}},fs={variadic:Of,monadic:Bf},fe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(fe||(fe={}));var Me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Me||(Me={}));var Dr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Dr||(Dr={}));function Na(e){return e.type===Me.literal}function Lf(e){return e.type===Me.argument}function Qu(e){return e.type===Me.number}function ec(e){return e.type===Me.date}function tc(e){return e.type===Me.time}function rc(e){return e.type===Me.select}function ic(e){return e.type===Me.plural}function Ff(e){return e.type===Me.pound}function nc(e){return e.type===Me.tag}function sc(e){return!!(e&&typeof e=="object"&&e.type===Dr.number)}function Zs(e){return!!(e&&typeof e=="object"&&e.type===Dr.dateTime)}var oc=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hf=/(?:[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 Rf(e){var t={};return e.replace(Hf,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var zf=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Yf(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(zf).filter(function(h){return h.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function Uf(e){return e.replace(/^(.*?)-/,"")}var Ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ac=/^(@+)?(\+|#+)?[rs]?$/g,$f=/(\*)(0+)|(#+)(0+)|(0+)/g,lc=/^(0+)$/;function La(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ac,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function uc(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Wf(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!lc.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Fa(e){var t={},r=uc(e);return r||t}function Vf(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Uf(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=be(be(be({},t),{notation:"scientific"}),n.options.reduce(function(l,u){return be(be({},l),Fa(u))},{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),n.options.reduce(function(l,u){return be(be({},l),Fa(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace($f,function(l,u,c,d,h,f){if(u)t.minimumIntegerDigits=c.length;else{if(d&&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(lc.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ia.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ia,function(l,u,c,d,h,f){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=n.options[0];s==="w"?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=be(be({},t),La(s)));continue}if(ac.test(n.stem)){t=be(be({},t),La(n.stem));continue}var o=uc(n.stem);o&&(t=be(be({},t),o));var a=Wf(n.stem);a&&(t=be(be({},t),a))}return t}var $i={"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 jf(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=Gf(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else n==="J"?r+="H":r+=n}return r}function Gf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=$i[i||""]||$i[r||""]||$i["".concat(r,"-001")]||$i["001"];return n[0]}var ps,qf=new RegExp("^".concat(oc.source,"*")),Zf=new RegExp("".concat(oc.source,"*$"));function pe(e,t){return{start:e,end:t}}var Kf=!!String.prototype.startsWith&&"_a".startsWith("a",1),Xf=!!String.fromCodePoint,Jf=!!Object.fromEntries,Qf=!!String.prototype.codePointAt,ep=!!String.prototype.trimStart,tp=!!String.prototype.trimEnd,rp=!!Number.isSafeInteger,ip=rp?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ks=!0;try{var np=dc("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ks=((ps=np.exec("a"))===null||ps===void 0?void 0:ps[0])==="a"}catch(e){Ks=!1}var Ha=Kf?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Xs=Xf?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Ra=Jf?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],a=s[1];r[o]=a}return r},cc=Qf?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},sp=ep?function(t){return t.trimStart()}:function(t){return t.replace(qf,"")},op=tp?function(t){return t.trimEnd()}:function(t){return t.replace(Zf,"")};function dc(e,t){return new RegExp(e,t)}var Js;if(Ks){var za=dc("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Js=function(t,r){var i;za.lastIndex=r;var n=za.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Js=function(t,r){for(var i=[];;){var n=cc(t,r);if(n===void 0||hc(n)||cp(n))break;i.push(n),r+=n>=65536?2:1}return Xs.apply(void 0,i)};var ap=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:Me.pound,location:pe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(fe.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Qs(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(n,"/>"),location:pe(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qs(this.char()))return this.error(fe.INVALID_TAG,pe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(fe.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:n,children:o,location:pe(i,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,pe(a,this.clonePosition())))}else return this.error(fe.UNCLOSED_TAG,pe(i,this.clonePosition()))}else return this.error(fe.INVALID_TAG,pe(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&up(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=pe(i,this.clonePosition());return{val:{type:Me.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!lp(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Xs.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Xs(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(fe.EMPTY_ARGUMENT,pe(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(fe.MALFORMED_ARGUMENT,pe(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:n,location:pe(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(fe.MALFORMED_ARGUMENT,pe(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Js(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=pe(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,pe(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=op(d.val);if(h.length===0)return this.error(fe.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var f=pe(c,this.clonePosition());u={style:h,styleLocation:f}}var v=this.tryParseArgumentClose(n);if(v.err)return v;var g=pe(n,this.clonePosition());if(u&&Ha(u==null?void 0:u.style,"::",0)){var w=sp(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:Me.number,value:i,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(fe.EXPECT_DATE_TIME_SKELETON,g);var b=w;this.locale&&(b=jf(w,this.locale));var h={type:Dr.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Rf(b):{}},_=a==="date"?Me.date:Me.time;return{val:{type:_,value:i,location:g,style:h},err:null}}}return{val:{type:a==="number"?Me.number:a==="date"?Me.date:Me.time,value:i,location:g,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(C,be({},C)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),y=this.parseIdentifierIfPossible(),L=d.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,y);if(E.err)return E;var v=this.tryParseArgumentClose(n);if(v.err)return v;var I=pe(n,this.clonePosition());return a==="select"?{val:{type:Me.select,value:i,options:Ra(E.val),location:I},err:null}:{val:{type:Me.plural,value:i,options:Ra(E.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(fe.INVALID_ARGUMENT_TYPE,pe(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=Yf(t)}catch(n){return this.error(fe.INVALID_NUMBER_SKELETON,r)}return{val:{type:Dr.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Vf(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=pe(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,i);if(v.err)return v;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:v.val,location:pe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(r==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(fe.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=pe(n,this.clonePosition());return s?(o*=i,ip(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=cc(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ha(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&hc(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function Qs(e){return e>=97&&e<=122||e>=65&&e<=90}function lp(e){return Qs(e)||e===47}function up(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function hc(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function cp(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function eo(e){e.forEach(function(t){if(delete t.location,rc(t)||ic(t))for(var r in t.options)delete t.options[r].location,eo(t.options[r].value);else Qu(t)&&sc(t.style)||(ec(t)||tc(t))&&Zs(t.style)?delete t.style.location:nc(t)&&eo(t.children)})}function dp(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ap(e,t).parse();if(r.err){var i=SyntaxError(fe[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||eo(r.val),r.val}var Mr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Mr||(Mr={}));var Bn=function(e){It(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ya=function(e){It(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Mr.INVALID_VALUE,s)||this}return t}(Bn),hp=function(e){It(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Mr.INVALID_VALUE,n)||this}return t}(Bn),fp=function(e){It(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Mr.MISSING_VALUE,i)||this}return t}(Bn),Ze;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ze||(Ze={}));function pp(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Ze.literal||r.type!==Ze.literal?t.push(r):i.value+=r.value,t},[])}function mp(e){return typeof e=="function"}function Qi(e,t,r,i,n,s,o){if(e.length===1&&Na(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Na(c)){a.push({type:Ze.literal,value:c.value});continue}if(Ff(c)){typeof s=="number"&&a.push({type:Ze.literal,value:r.getNumberFormat(t).format(s)});continue}var d=c.value;if(!(n&&d in n))throw new fp(d,o);var h=n[d];if(Lf(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Ze.literal:Ze.object,value:h});continue}if(ec(c)){var f=typeof c.style=="string"?i.date[c.style]:Zs(c.style)?c.style.parsedOptions:void 0;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(tc(c)){var f=typeof c.style=="string"?i.time[c.style]:Zs(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Qu(c)){var f=typeof c.style=="string"?i.number[c.style]:sc(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Ze.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(nc(c)){var v=c.children,g=c.value,w=n[g];if(!mp(w))throw new hp(g,"function",o);var b=Qi(v,t,r,i,n,s),_=w(b.map(function(L){return L.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(L){return{type:typeof L=="string"?Ze.literal:Ze.object,value:L}}))}if(rc(c)){var C=c.options[h]||c.options.other;if(!C)throw new Ya(c.value,h,Object.keys(c.options),o);a.push.apply(a,Qi(C.value,t,r,i,n));continue}if(ic(c)){var C=c.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new Bn(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,Mr.MISSING_INTL_API,o);var y=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));C=c.options[y]||c.options.other}if(!C)throw new Ya(c.value,h,Object.keys(c.options),o);a.push.apply(a,Qi(C.value,t,r,i,n,h-(c.offset||0)));continue}}return mp(a)}function gp(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=be(be({},e[i]),t[i]||{}),r},{})):e}function bp(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=gp(e[i],t[i]),r},be({},e)):e}function ms(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.number),strategy:ps.variadic}),getDateTimeFormat:fs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.dateTime),strategy:ps.variadic}),getPluralRules:fs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.pluralRules),strategy:ps.variadic})}}var yp=function(){function e(t,r,i,n){var s=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==Ze.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Qi(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var a=Df(o,["formatters"]);this.ast=e.__parse(t,be(be({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=bp(e.formats,i),this.formatters=n&&n.formatters||vp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=op,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function wp(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const Yt={},Cp=(e,t,r)=>r&&(t in Yt||(Yt[t]={}),e in Yt[t]||(Yt[t][e]=r),r),fc=(e,t)=>{if(t==null)return;if(t in Yt&&e in Yt[t])return Yt[t][e];const r=Nn(t);for(let i=0;i<r.length;i++){const n=r[i],s=Ep(n,e);if(s)return Cp(e,t,s)}};let Fo;const Di=On({});function xp(e){return Fo[e]||null}function pc(e){return e in Fo}function Ep(e,t){if(!pc(e))return null;const r=xp(e);return wp(r,t)}function kp(e){if(e==null)return;const t=Nn(e);for(let r=0;r<t.length;r++){const i=t[r];if(pc(i))return i}}function mc(e,...t){delete Yt[e],Di.update(r=>(r[e]=Pf.all([r[e]||{},...t]),r))}Lr([Di],([e])=>Object.keys(e));Di.subscribe(e=>Fo=e);const en={};function Sp(e,t){en[e].delete(t),en[e].size===0&&delete en[e]}function _c(e){return en[e]}function Ap(e){return Nn(e).map(t=>{const r=_c(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function to(e){return e==null?!1:Nn(e).some(t=>{var r;return(r=_c(t))==null?void 0:r.size})}function Tp(e,t){return Promise.all(t.map(i=>(Sp(e,i),i().then(n=>n.default||n)))).then(i=>mc(e,...i))}const Gr={};function gc(e){if(!to(e))return e in Gr?Gr[e]:Promise.resolve();const t=Ap(e);return Gr[e]=Promise.all(t.map(([r,i])=>Tp(r,i))).then(()=>{if(to(e))return gc(e);delete Gr[e]}),Gr[e]}const Pp={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"}}},Dp={fallbackLocale:null,loadingDelay:200,formats:Pp,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Mp=Dp;function Or(){return Mp}const _s=On(!1);var Op=Object.defineProperty,Bp=Object.defineProperties,Np=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,Ip=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,$a=(e,t,r)=>t in e?Op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fp=(e,t)=>{for(var r in t||(t={}))Ip.call(t,r)&&$a(e,r,t[r]);if(Ua)for(var r of Ua(t))Lp.call(t,r)&&$a(e,r,t[r]);return e},Hp=(e,t)=>Bp(e,Np(t));let ro;const dn=On(null);function Wa(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Nn(e,t=Or().fallbackLocale){const r=Wa(e);return t?[...new Set([...r,...Wa(t)])]:r}function ar(){return ro!=null?ro:void 0}dn.subscribe(e=>{ro=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Rp=e=>{if(e&&kp(e)&&to(e)){const{loadingDelay:t}=Or();let r;return typeof window!="undefined"&&ar()!=null&&t?r=window.setTimeout(()=>_s.set(!0),t):_s.set(!0),gc(e).then(()=>{dn.set(e)}).finally(()=>{clearTimeout(r),_s.set(!1)})}return dn.set(e)},Fr=Hp(Fp({},dn),{set:Rp}),In=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var zp=Object.defineProperty,hn=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,Va=(e,t,r)=>t in e?zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t)=>{for(var r in t||(t={}))bc.call(t,r)&&Va(e,r,t[r]);if(hn)for(var r of hn(t))vc.call(t,r)&&Va(e,r,t[r]);return e},Hr=(e,t)=>{var r={};for(var i in e)bc.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&hn)for(var i of hn(e))t.indexOf(i)<0&&vc.call(e,i)&&(r[i]=e[i]);return r};const li=(e,t)=>{const{formats:r}=Or();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yp=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=li("number",i)),new Intl.NumberFormat(r,n)}),Up=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=li("date",i):Object.keys(n).length===0&&(n=li("date","short")),new Intl.DateTimeFormat(r,n)}),$p=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=li("time",i):Object.keys(n).length===0&&(n=li("time","short")),new Intl.DateTimeFormat(r,n)}),Wp=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return Yp(Ho({locale:r},i))},Vp=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return Up(Ho({locale:r},i))},jp=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return $p(Ho({locale:r},i))},Gp=In((e,t=ar())=>new yp(e,t,Or().formats,{ignoreTag:Or().ignoreTag})),qp=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=ar(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=fc(e,l);if(!c)c=(s=(n=(i=(r=Or()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:e,defaultValue:u}))!=null?n:u)!=null?s:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=Gp(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},Zp=(e,t)=>jp(t).format(e),Xp=(e,t)=>Vp(t).format(e),Kp=(e,t)=>Wp(t).format(e),Jp=(e,t=ar())=>fc(e,t),yc=Lr([Fr,Di],()=>qp);Lr([Fr],()=>Zp);Lr([Fr],()=>Xp);Lr([Fr],()=>Kp);Lr([Fr,Di],()=>Jp);function fn(e,t){mc(e,t)}function wc(e){Fr.set(e)}function Tt(e){return typeof e=="function"}function Cc(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var gs=Cc(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
3
|
+
`,Mr.MISSING_INTL_API,o);var y=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));C=c.options[y]||c.options.other}if(!C)throw new Ya(c.value,h,Object.keys(c.options),o);a.push.apply(a,Qi(C.value,t,r,i,n,h-(c.offset||0)));continue}}return pp(a)}function _p(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=be(be({},e[i]),t[i]||{}),r},{})):e}function gp(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=_p(e[i],t[i]),r},be({},e)):e}function ms(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function bp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:hs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.number),strategy:fs.variadic}),getDateTimeFormat:hs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.dateTime),strategy:fs.variadic}),getPluralRules:hs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Cr([void 0],r,!1)))},{cache:ms(e.pluralRules),strategy:fs.variadic})}}var vp=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==Ze.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Qi(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var a=Pf(o,["formatters"]);this.ast=e.__parse(t,be(be({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=gp(e.formats,i),this.formatters=n&&n.formatters||bp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=dp,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function yp(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const Yt={},wp=(e,t,r)=>r&&(t in Yt||(Yt[t]={}),e in Yt[t]||(Yt[t][e]=r),r),fc=(e,t)=>{if(t==null)return;if(t in Yt&&e in Yt[t])return Yt[t][e];const r=Nn(t);for(let i=0;i<r.length;i++){const n=r[i],s=xp(n,e);if(s)return wp(e,t,s)}};let Fo;const Di=On({});function Cp(e){return Fo[e]||null}function pc(e){return e in Fo}function xp(e,t){if(!pc(e))return null;const r=Cp(e);return yp(r,t)}function Ep(e){if(e==null)return;const t=Nn(e);for(let r=0;r<t.length;r++){const i=t[r];if(pc(i))return i}}function mc(e,...t){delete Yt[e],Di.update(r=>(r[e]=Tf.all([r[e]||{},...t]),r))}Lr([Di],([e])=>Object.keys(e));Di.subscribe(e=>Fo=e);const en={};function kp(e,t){en[e].delete(t),en[e].size===0&&delete en[e]}function _c(e){return en[e]}function Sp(e){return Nn(e).map(t=>{const r=_c(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function to(e){return e==null?!1:Nn(e).some(t=>{var r;return(r=_c(t))==null?void 0:r.size})}function Ap(e,t){return Promise.all(t.map(i=>(kp(e,i),i().then(n=>n.default||n)))).then(i=>mc(e,...i))}const Gr={};function gc(e){if(!to(e))return e in Gr?Gr[e]:Promise.resolve();const t=Sp(e);return Gr[e]=Promise.all(t.map(([r,i])=>Ap(r,i))).then(()=>{if(to(e))return gc(e);delete Gr[e]}),Gr[e]}const Tp={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"}}},Pp={fallbackLocale:null,loadingDelay:200,formats:Tp,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Dp=Pp;function Or(){return Dp}const _s=On(!1);var Mp=Object.defineProperty,Op=Object.defineProperties,Bp=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable,$a=(e,t,r)=>t in e?Mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lp=(e,t)=>{for(var r in t||(t={}))Np.call(t,r)&&$a(e,r,t[r]);if(Ua)for(var r of Ua(t))Ip.call(t,r)&&$a(e,r,t[r]);return e},Fp=(e,t)=>Op(e,Bp(t));let ro;const dn=On(null);function Wa(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Nn(e,t=Or().fallbackLocale){const r=Wa(e);return t?[...new Set([...r,...Wa(t)])]:r}function ar(){return ro!=null?ro:void 0}dn.subscribe(e=>{ro=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Hp=e=>{if(e&&Ep(e)&&to(e)){const{loadingDelay:t}=Or();let r;return typeof window!="undefined"&&ar()!=null&&t?r=window.setTimeout(()=>_s.set(!0),t):_s.set(!0),gc(e).then(()=>{dn.set(e)}).finally(()=>{clearTimeout(r),_s.set(!1)})}return dn.set(e)},Fr=Fp(Lp({},dn),{set:Hp}),In=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var Rp=Object.defineProperty,hn=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,Va=(e,t,r)=>t in e?Rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t)=>{for(var r in t||(t={}))bc.call(t,r)&&Va(e,r,t[r]);if(hn)for(var r of hn(t))vc.call(t,r)&&Va(e,r,t[r]);return e},Hr=(e,t)=>{var r={};for(var i in e)bc.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&hn)for(var i of hn(e))t.indexOf(i)<0&&vc.call(e,i)&&(r[i]=e[i]);return r};const li=(e,t)=>{const{formats:r}=Or();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zp=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=li("number",i)),new Intl.NumberFormat(r,n)}),Yp=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=li("date",i):Object.keys(n).length===0&&(n=li("date","short")),new Intl.DateTimeFormat(r,n)}),Up=In(e=>{var t=e,{locale:r,format:i}=t,n=Hr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=li("time",i):Object.keys(n).length===0&&(n=li("time","short")),new Intl.DateTimeFormat(r,n)}),$p=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return zp(Ho({locale:r},i))},Wp=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return Yp(Ho({locale:r},i))},Vp=(e={})=>{var t=e,{locale:r=ar()}=t,i=Hr(t,["locale"]);return Up(Ho({locale:r},i))},jp=In((e,t=ar())=>new vp(e,t,Or().formats,{ignoreTag:Or().ignoreTag})),Gp=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=ar(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=fc(e,l);if(!c)c=(s=(n=(i=(r=Or()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:e,defaultValue:u}))!=null?n:u)!=null?s:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=jp(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},qp=(e,t)=>Vp(t).format(e),Zp=(e,t)=>Wp(t).format(e),Kp=(e,t)=>$p(t).format(e),Xp=(e,t=ar())=>fc(e,t),yc=Lr([Fr,Di],()=>Gp);Lr([Fr],()=>qp);Lr([Fr],()=>Zp);Lr([Fr],()=>Kp);Lr([Fr,Di],()=>Xp);function fn(e,t){mc(e,t)}function wc(e){Fr.set(e)}function Tt(e){return typeof e=="function"}function Cc(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var gs=Cc(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
4
4
|
`+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
5
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function io(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ln=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Gs(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(Tt(c))try{c()}catch(g){s=g instanceof gs?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Gs(d),f=h.next();!f.done;f=h.next()){var v=f.value;try{ja(v)}catch(g){s=s!=null?s:[],g instanceof gs?s=Cr(Cr([],qs(s)),qs(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}if(s)throw new gs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ja(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&io(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&io(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xc=Ln.EMPTY;function Ec(e){return e instanceof Ln||e&&"closed"in e&&Tt(e.remove)&&Tt(e.add)&&Tt(e.unsubscribe)}function ja(e){Tt(e)?e():e.unsubscribe()}var kc={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sc={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Cr([e,t],qs(r)))},clearTimeout:function(e){var t=Sc.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qp(e){Sc.setTimeout(function(){throw e})}function Ga(){}function tn(e){e()}var Ac=function(e){It(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Ec(r)&&r.add(i)):i.destination=im,i}return t.create=function(r,i,n){return new no(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ln),em=Function.prototype.bind;function bs(e,t){return em.call(e,t)}var tm=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Wi(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Wi(i)}else Wi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Wi(r)}},e}(),no=function(e){It(t,e);function t(r,i,n){var s=e.call(this)||this,o;if(Tt(r)||!r)o={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0};else{var a;s&&kc.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return s.unsubscribe()},o={next:r.next&&bs(r.next,a),error:r.error&&bs(r.error,a),complete:r.complete&&bs(r.complete,a)}):o=r}return s.destination=new tm(o),s}return t}(Ac);function Wi(e){Qp(e)}function rm(e){throw e}var im={closed:!0,next:Ga,error:rm,complete:Ga},nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function sm(e){return e}function om(e){return e.length===0?sm:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var qa=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,s=lm(t)?t:new no(t,r,i);return tn(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Za(r),new r(function(n,s){var o=new no({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[nm]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return om(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Za(t),new t(function(i,n){var s;r.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Za(e){var t;return(t=e!=null?e:kc.Promise)!==null&&t!==void 0?t:Promise}function am(e){return e&&Tt(e.next)&&Tt(e.error)&&Tt(e.complete)}function lm(e){return e&&e instanceof Ac||am(e)&&Ec(e)}var um=Cc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tc=function(e){It(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Xa(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new um},t.prototype.next=function(r){var i=this;tn(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Gs(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;tn(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;tn(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?xc:(this.currentObservers=null,a.push(r),new Ln(function(){i.currentObservers=null,io(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new qa;return r.source=this,r},t.create=function(r,i){return new Xa(r,i)},t}(qa),Xa=function(e){It(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:xc},t}(Tc),Pc={now:function(){return(Pc.delegate||Date).now()},delegate:void 0},cm=function(e){It(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Pc);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(r){var i=this,n=i.isStopped,s=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(s.push(r),!o&&s.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,s=n._infiniteTimeWindow,o=n._buffer,a=o.slice(),l=0;l<a.length&&!r.closed;l+=s?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=n.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},t}(Tc);const Ka=[],Ja={},dm=(e,t=0)=>{if(Ka.indexOf(e)==-1){const r=new cm(t);Ja[e]=r,Ka.push(e)}return Ja[e]};window.emWidgets={topic:dm};const Dc=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),pn={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",show:"Show"},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"}}};function hm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
5
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function io(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ln=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Gs(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(Tt(c))try{c()}catch(g){s=g instanceof gs?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Gs(d),f=h.next();!f.done;f=h.next()){var v=f.value;try{ja(v)}catch(g){s=s!=null?s:[],g instanceof gs?s=Cr(Cr([],qs(s)),qs(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}if(s)throw new gs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ja(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&io(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&io(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xc=Ln.EMPTY;function Ec(e){return e instanceof Ln||e&&"closed"in e&&Tt(e.remove)&&Tt(e.add)&&Tt(e.unsubscribe)}function ja(e){Tt(e)?e():e.unsubscribe()}var kc={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Jp={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Cr([e,t],qs(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Qp(e){Jp.setTimeout(function(){throw e})}function Ga(){}function tn(e){e()}var Sc=function(e){It(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Ec(r)&&r.add(i)):i.destination=im,i}return t.create=function(r,i,n){return new no(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ln),em=Function.prototype.bind;function bs(e,t){return em.call(e,t)}var tm=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Wi(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Wi(i)}else Wi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Wi(r)}},e}(),no=function(e){It(t,e);function t(r,i,n){var s=e.call(this)||this,o;if(Tt(r)||!r)o={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0};else{var a;s&&kc.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return s.unsubscribe()},o={next:r.next&&bs(r.next,a),error:r.error&&bs(r.error,a),complete:r.complete&&bs(r.complete,a)}):o=r}return s.destination=new tm(o),s}return t}(Sc);function Wi(e){Qp(e)}function rm(e){throw e}var im={closed:!0,next:Ga,error:rm,complete:Ga},nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function sm(e){return e}function om(e){return e.length===0?sm:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var qa=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,s=lm(t)?t:new no(t,r,i);return tn(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Za(r),new r(function(n,s){var o=new no({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[nm]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return om(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Za(t),new t(function(i,n){var s;r.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Za(e){var t;return(t=e!=null?e:kc.Promise)!==null&&t!==void 0?t:Promise}function am(e){return e&&Tt(e.next)&&Tt(e.error)&&Tt(e.complete)}function lm(e){return e&&e instanceof Sc||am(e)&&Ec(e)}var um=Cc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ac=function(e){It(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Ka(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new um},t.prototype.next=function(r){var i=this;tn(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Gs(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;tn(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;tn(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?xc:(this.currentObservers=null,a.push(r),new Ln(function(){i.currentObservers=null,io(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new qa;return r.source=this,r},t.create=function(r,i){return new Ka(r,i)},t}(qa),Ka=function(e){It(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:xc},t}(Ac),Tc={now:function(){return(Tc.delegate||Date).now()},delegate:void 0},cm=function(e){It(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Tc);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(r){var i=this,n=i.isStopped,s=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(s.push(r),!o&&s.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,s=n._infiniteTimeWindow,o=n._buffer,a=o.slice(),l=0;l<a.length&&!r.closed;l+=s?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=n.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},t}(Ac);const Xa=[],Ja={},dm=(e,t=0)=>{if(Xa.indexOf(e)==-1){const r=new cm(t);Ja[e]=r,Xa.push(e)}return Ja[e]};window.emWidgets={topic:dm};const Pc=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),pn={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",show:"Show"},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"}}};function hm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
6
6
|
//! version : 2.30.1
|
|
7
7
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
8
8
|
//! license : MIT
|
|
9
9
|
//! momentjs.com
|
|
10
|
-
var
|
|
11
|
-
[`+s+"] ";for(o in arguments[0])ve(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}
|
|
10
|
+
var Dc;function j(){return Dc.apply(null,arguments)}function fm(e){Dc=e}function ht(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function nr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ve(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ro(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ve(e,t))return!1;return!0}function Xe(e){return e===void 0}function Bt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Mi(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Mc(e,t){var r=[],i,n=e.length;for(i=0;i<n;++i)r.push(t(e[i],i));return r}function Ut(e,t){for(var r in t)ve(t,r)&&(e[r]=t[r]);return ve(t,"toString")&&(e.toString=t.toString),ve(t,"valueOf")&&(e.valueOf=t.valueOf),e}function vt(e,t,r,i){return ed(e,t,r,i,!0).utc()}function pm(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ae(e){return e._pf==null&&(e._pf=pm()),e._pf}var so;Array.prototype.some?so=Array.prototype.some:so=function(e){var t=Object(this),r=t.length>>>0,i;for(i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function zo(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=ae(e),r=so.call(t.parsedDateParts,function(n){return n!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function Fn(e){var t=vt(NaN);return e!=null?Ut(ae(t),e):ae(t).userInvalidated=!0,t}var Qa=j.momentProperties=[],vs=!1;function Yo(e,t){var r,i,n,s=Qa.length;if(Xe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Xe(t._i)||(e._i=t._i),Xe(t._f)||(e._f=t._f),Xe(t._l)||(e._l=t._l),Xe(t._strict)||(e._strict=t._strict),Xe(t._tzm)||(e._tzm=t._tzm),Xe(t._isUTC)||(e._isUTC=t._isUTC),Xe(t._offset)||(e._offset=t._offset),Xe(t._pf)||(e._pf=ae(t)),Xe(t._locale)||(e._locale=t._locale),s>0)for(r=0;r<s;r++)i=Qa[r],n=t[i],Xe(n)||(e[i]=n);return e}function Oi(e){Yo(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),vs===!1&&(vs=!0,j.updateOffset(this),vs=!1)}function ft(e){return e instanceof Oi||e!=null&&e._isAMomentObject!=null}function Oc(e){j.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function ot(e,t){var r=!0;return Ut(function(){if(j.deprecationHandler!=null&&j.deprecationHandler(null,e),r){var i=[],n,s,o,a=arguments.length;for(s=0;s<a;s++){if(n="",typeof arguments[s]=="object"){n+=`
|
|
11
|
+
[`+s+"] ";for(o in arguments[0])ve(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}Oc(e+`
|
|
12
12
|
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
13
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var el={};function Nc(e,t){j.deprecationHandler!=null&&j.deprecationHandler(e,t),el[e]||(Bc(t),el[e]=!0)}j.suppressDeprecationWarnings=!1;j.deprecationHandler=null;function yt(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mm(e){var t,r;for(r in e)ve(e,r)&&(t=e[r],yt(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function oo(e,t){var r=Ut({},e),i;for(i in t)ve(t,i)&&(nr(e[i])&&nr(t[i])?(r[i]={},Ut(r[i],e[i]),Ut(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)ve(e,i)&&!ve(t,i)&&nr(e[i])&&(r[i]=Ut({},r[i]));return r}function Uo(e){e!=null&&this.set(e)}var ao;Object.keys?ao=Object.keys:ao=function(e){var t,r=[];for(t in e)ve(e,t)&&r.push(t);return r};var _m={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gm(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return yt(i)?i.call(t,r):i}function bt(e,t,r){var i=""+Math.abs(e),n=t-i.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var $o=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ys={},xr={};function te(e,t,r,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(xr[e]=n),t&&(xr[t[0]]=function(){return bt(n.apply(this,arguments),t[1],t[2])}),r&&(xr[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function bm(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function vm(e){var t=e.match($o),r,i;for(r=0,i=t.length;r<i;r++)xr[t[r]]?t[r]=xr[t[r]]:t[r]=bm(t[r]);return function(n){var s="",o;for(o=0;o<i;o++)s+=yt(t[o])?t[o].call(n,e):t[o];return s}}function rn(e,t){return e.isValid()?(t=Ic(t,e.localeData()),ys[t]=ys[t]||vm(t),ys[t](e)):e.localeData().invalidDate()}function Ic(e,t){var r=5;function i(n){return t.longDateFormat(n)||n}for(Vi.lastIndex=0;r>=0&&Vi.test(e);)e=e.replace(Vi,i),Vi.lastIndex=0,r-=1;return e}var ym={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function wm(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match($o).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Cm="Invalid date";function xm(){return this._invalidDate}var Em="%d",km=/\d{1,2}/;function Sm(e){return this._ordinal.replace("%d",e)}var Am={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Tm(e,t,r,i){var n=this._relativeTime[r];return yt(n)?n(e,t,r,i):n.replace(/%d/i,e)}function Pm(e,t){var r=this._relativeTime[e>0?"future":"past"];return yt(r)?r(t):r.replace(/%s/i,t)}var tl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function at(e){return typeof e=="string"?tl[e]||tl[e.toLowerCase()]:void 0}function Wo(e){var t={},r,i;for(i in e)ve(e,i)&&(r=at(i),r&&(t[r]=e[i]));return t}var Dm={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Mm(e){var t=[],r;for(r in e)ve(e,r)&&t.push({unit:r,priority:Dm[r]});return t.sort(function(i,n){return i.priority-n.priority}),t}var Lc=/\d/,tt=/\d\d/,Fc=/\d{3}/,Vo=/\d{4}/,Hn=/[+-]?\d{6}/,Te=/\d\d?/,Hc=/\d\d\d\d?/,Rc=/\d\d\d\d\d\d?/,Rn=/\d{1,3}/,jo=/\d{1,4}/,zn=/[+-]?\d{1,6}/,Rr=/\d+/,Yn=/[+-]?\d+/,Om=/Z|[+-]\d\d:?\d\d/gi,Un=/Z|[+-]\d\d(?::?\d\d)?/gi,Bm=/[+-]?\d+(\.\d{1,3})?/,Bi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,zr=/^[1-9]\d?/,Go=/^([1-9]\d|\d)/,mn;mn={};function K(e,t,r){mn[e]=yt(t)?t:function(i,n){return i&&r?r:t}}function Nm(e,t){return ve(mn,e)?mn[e](t._strict,t._locale):new RegExp(Im(e))}function Im(e){return Pt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,n,s){return r||i||n||s}))}function Pt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function st(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=st(t)),r}var lo={};function Ee(e,t){var r,i=t,n;for(typeof e=="string"&&(e=[e]),Bt(t)&&(i=function(s,o){o[t]=he(s)}),n=e.length,r=0;r<n;r++)lo[e[r]]=i}function Ni(e,t){Ee(e,function(r,i,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function Lm(e,t,r){t!=null&&ve(lo,e)&&lo[e](t,r._a,r,e)}function $n(e){return e%4===0&&e%100!==0||e%400===0}var je=0,kt=1,gt=2,Ye=3,ct=4,St=5,er=6,Fm=7,Hm=8;te("Y",0,0,function(){var e=this.year();return e<=9999?bt(e,4):"+"+e});te(0,["YY",2],0,function(){return this.year()%100});te(0,["YYYY",4],0,"year");te(0,["YYYYY",5],0,"year");te(0,["YYYYYY",6,!0],0,"year");K("Y",Yn);K("YY",Te,tt);K("YYYY",jo,Vo);K("YYYYY",zn,Hn);K("YYYYYY",zn,Hn);Ee(["YYYYY","YYYYYY"],je);Ee("YYYY",function(e,t){t[je]=e.length===2?j.parseTwoDigitYear(e):he(e)});Ee("YY",function(e,t){t[je]=j.parseTwoDigitYear(e)});Ee("Y",function(e,t){t[je]=parseInt(e,10)});function ni(e){return $n(e)?366:365}j.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var zc=Yr("FullYear",!0);function Rm(){return $n(this.year())}function Yr(e,t){return function(r){return r!=null?(Yc(this,e,r),j.updateOffset(this,t),this):ui(this,e)}}function ui(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Yc(e,t,r){var i,n,s,o,a;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(n?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(n?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(n?i.setUTCHours(r):i.setHours(r));case"Date":return void(n?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}s=r,o=e.month(),a=e.date(),a=a===29&&o===1&&!$n(s)?28:a,n?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function zm(e){return e=at(e),yt(this[e])?this[e]():this}function Ym(e,t){if(typeof e=="object"){e=Wo(e);var r=Mm(e),i,n=r.length;for(i=0;i<n;i++)this[r[i].unit](e[r[i].unit])}else if(e=at(e),yt(this[e]))return this[e](t);return this}function Um(e,t){return(e%t+t)%t}var Fe;Array.prototype.indexOf?Fe=Array.prototype.indexOf:Fe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function qo(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Um(t,12);return e+=(t-r)/12,r===1?$n(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1});te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});te("MMMM",0,0,function(e){return this.localeData().months(this,e)});K("M",Te,zr);K("MM",Te,tt);K("MMM",function(e,t){return t.monthsShortRegex(e)});K("MMMM",function(e,t){return t.monthsRegex(e)});Ee(["M","MM"],function(e,t){t[kt]=he(e)-1});Ee(["MMM","MMMM"],function(e,t,r,i){var n=r._locale.monthsParse(e,i,r._strict);n!=null?t[kt]=n:ae(r).invalidMonth=e});var $m="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Uc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$c=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wm=Bi,Vm=Bi;function jm(e,t){return e?ht(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$c).test(t)?"format":"standalone"][e.month()]:ht(this._months)?this._months:this._months.standalone}function Gm(e,t){return e?ht(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$c.test(t)?"format":"standalone"][e.month()]:ht(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qm(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=vt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:null):(n=Fe.call(this._longMonthsParse,o),n!==-1?n:null):t==="MMM"?(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:(n=Fe.call(this._longMonthsParse,o),n!==-1?n:null)):(n=Fe.call(this._longMonthsParse,o),n!==-1?n:(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:null))}function Zm(e,t,r){var i,n,s;if(this._monthsParseExact)return qm.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=vt([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function Wc(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=he(t);else if(t=e.localeData().monthsParse(t),!Bt(t))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,qo(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function Vc(e){return e!=null?(Wc(this,e),j.updateOffset(this,!0),this):ui(this,"Month")}function Xm(){return qo(this.year(),this.month())}function Km(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||jc.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ve(this,"_monthsShortRegex")||(this._monthsShortRegex=Wm),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jm(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||jc.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ve(this,"_monthsRegex")||(this._monthsRegex=Vm),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function jc(){function e(l,u){return u.length-l.length}var t=[],r=[],i=[],n,s,o,a;for(n=0;n<12;n++)s=vt([2e3,n]),o=Pt(this.monthsShort(s,"")),a=Pt(this.months(s,"")),t.push(o),r.push(a),i.push(a),i.push(o);t.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qm(e,t,r,i,n,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function ci(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _n(e,t,r){var i=7+t-r,n=(7+ci(e,0,i).getUTCDay()-t)%7;return-n+i-1}function Gc(e,t,r,i,n){var s=(7+r-i)%7,o=_n(e,i,n),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=ni(l)+a):a>ni(e)?(l=e+1,u=a-ni(e)):(l=e,u=a),{year:l,dayOfYear:u}}function di(e,t,r){var i=_n(e.year(),t,r),n=Math.floor((e.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=e.year()-1,s=n+Dt(o,t,r)):n>Dt(e.year(),t,r)?(s=n-Dt(e.year(),t,r),o=e.year()+1):(o=e.year(),s=n),{week:s,year:o}}function Dt(e,t,r){var i=_n(e,t,r),n=_n(e+1,t,r);return(ni(e)-i+n)/7}te("w",["ww",2],"wo","week");te("W",["WW",2],"Wo","isoWeek");K("w",Te,zr);K("ww",Te,tt);K("W",Te,zr);K("WW",Te,tt);Ni(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=he(e)});function e_(e){return di(e,this._week.dow,this._week.doy).week}var t_={dow:0,doy:6};function r_(){return this._week.dow}function i_(){return this._week.doy}function n_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function s_(e){var t=di(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}te("d",0,"do","day");te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});te("e",0,0,"weekday");te("E",0,0,"isoWeekday");K("d",Te);K("e",Te);K("E",Te);K("dd",function(e,t){return t.weekdaysMinRegex(e)});K("ddd",function(e,t){return t.weekdaysShortRegex(e)});K("dddd",function(e,t){return t.weekdaysRegex(e)});Ni(["dd","ddd","dddd"],function(e,t,r,i){var n=r._locale.weekdaysParse(e,i,r._strict);n!=null?t.d=n:ae(r).invalidWeekday=e});Ni(["d","e","E"],function(e,t,r,i){t[i]=he(e)});function o_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function a_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zo(e,t){return e.slice(t,7).concat(e.slice(0,t))}var l_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qc="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),u_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),c_=Bi,d_=Bi,h_=Bi;function f_(e,t){var r=ht(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Zo(r,this._week.dow):e?r[e.day()]:r}function p_(e){return e===!0?Zo(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function m_(e){return e===!0?Zo(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function __(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=vt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=Fe.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Fe.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Fe.call(this._weekdaysParse,o),n!==-1||(n=Fe.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Fe.call(this._shortWeekdaysParse,o),n!==-1||(n=Fe.call(this._weekdaysParse,o),n!==-1)?n:(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Fe.call(this._minWeekdaysParse,o),n!==-1||(n=Fe.call(this._weekdaysParse,o),n!==-1)?n:(n=Fe.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function g_(e,t,r){var i,n,s;if(this._weekdaysParseExact)return __.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=vt([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function b_(e){if(!this.isValid())return e!=null?this:NaN;var t=ui(this,"Day");return e!=null?(e=o_(e,this.localeData()),this.add(e-t,"d")):t}function v_(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function y_(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=a_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function w_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Xo.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ve(this,"_weekdaysRegex")||(this._weekdaysRegex=c_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function C_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Xo.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=d_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function x_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Xo.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=h_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xo(){function e(c,d){return d.length-c.length}var t=[],r=[],i=[],n=[],s,o,a,l,u;for(s=0;s<7;s++)o=vt([2e3,1]).day(s),a=Pt(this.weekdaysMin(o,"")),l=Pt(this.weekdaysShort(o,"")),u=Pt(this.weekdays(o,"")),t.push(a),r.push(l),i.push(u),n.push(a),n.push(l),n.push(u);t.sort(e),r.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ko(){return this.hours()%12||12}function E_(){return this.hours()||24}te("H",["HH",2],0,"hour");te("h",["hh",2],0,Ko);te("k",["kk",2],0,E_);te("hmm",0,0,function(){return""+Ko.apply(this)+bt(this.minutes(),2)});te("hmmss",0,0,function(){return""+Ko.apply(this)+bt(this.minutes(),2)+bt(this.seconds(),2)});te("Hmm",0,0,function(){return""+this.hours()+bt(this.minutes(),2)});te("Hmmss",0,0,function(){return""+this.hours()+bt(this.minutes(),2)+bt(this.seconds(),2)});function Zc(e,t){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Zc("a",!0);Zc("A",!1);function Xc(e,t){return t._meridiemParse}K("a",Xc);K("A",Xc);K("H",Te,Go);K("h",Te,zr);K("k",Te,zr);K("HH",Te,tt);K("hh",Te,tt);K("kk",Te,tt);K("hmm",Hc);K("hmmss",Rc);K("Hmm",Hc);K("Hmmss",Rc);Ee(["H","HH"],Ye);Ee(["k","kk"],function(e,t,r){var i=he(e);t[Ye]=i===24?0:i});Ee(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ee(["h","hh"],function(e,t,r){t[Ye]=he(e),ae(r).bigHour=!0});Ee("hmm",function(e,t,r){var i=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i)),ae(r).bigHour=!0});Ee("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i,2)),t[St]=he(e.substr(n)),ae(r).bigHour=!0});Ee("Hmm",function(e,t,r){var i=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i))});Ee("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i,2)),t[St]=he(e.substr(n))});function k_(e){return(e+"").toLowerCase().charAt(0)==="p"}var S_=/[ap]\.?m?\.?/i,A_=Yr("Hours",!0);function T_(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Kc={calendar:_m,longDateFormat:ym,invalidDate:Cm,ordinal:Em,dayOfMonthOrdinalParse:km,relativeTime:Am,months:$m,monthsShort:Uc,week:t_,weekdays:l_,weekdaysMin:u_,weekdaysShort:qc,meridiemParse:S_},Oe={},qr={},hi;function P_(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function rl(e){return e&&e.toLowerCase().replace("_","-")}function D_(e){for(var t=0,r,i,n,s;t<e.length;){for(s=rl(e[t]).split("-"),r=s.length,i=rl(e[t+1]),i=i?i.split("-"):null;r>0;){if(n=Wn(s.slice(0,r).join("-")),n)return n;if(i&&i.length>=r&&P_(s,i)>=r-1)break;r--}t++}return hi}function M_(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Wn(e){var t=null,r;if(Oe[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&M_(e))try{t=hi._abbr,r=hm,r("./locale/"+e),Wt(t)}catch(i){Oe[e]=null}return Oe[e]}function Wt(e,t){var r;return e&&(Ke(t)?r=Lt(e):r=Jo(e,t),r?hi=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),hi._abbr}function Jo(e,t){if(t!==null){var r,i=Kc;if(t.abbr=e,Oe[e]!=null)Nc("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Oe[e]._config;else if(t.parentLocale!=null)if(Oe[t.parentLocale]!=null)i=Oe[t.parentLocale]._config;else if(r=Wn(t.parentLocale),r!=null)i=r._config;else return qr[t.parentLocale]||(qr[t.parentLocale]=[]),qr[t.parentLocale].push({name:e,config:t}),null;return Oe[e]=new Uo(oo(i,t)),qr[e]&&qr[e].forEach(function(n){Jo(n.name,n.config)}),Wt(e),Oe[e]}else return delete Oe[e],null}function O_(e,t){if(t!=null){var r,i,n=Kc;Oe[e]!=null&&Oe[e].parentLocale!=null?Oe[e].set(oo(Oe[e]._config,t)):(i=Wn(e),i!=null&&(n=i._config),t=oo(n,t),i==null&&(t.abbr=e),r=new Uo(t),r.parentLocale=Oe[e],Oe[e]=r),Wt(e)}else Oe[e]!=null&&(Oe[e].parentLocale!=null?(Oe[e]=Oe[e].parentLocale,e===Wt()&&Wt(e)):Oe[e]!=null&&delete Oe[e]);return Oe[e]}function Lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hi;if(!ht(e)){if(t=Wn(e),t)return t;e=[e]}return D_(e)}function B_(){return ao(Oe)}function Qo(e){var t,r=e._a;return r&&ae(e).overflow===-2&&(t=r[kt]<0||r[kt]>11?kt:r[gt]<1||r[gt]>qo(r[je],r[kt])?gt:r[Ye]<0||r[Ye]>24||r[Ye]===24&&(r[ct]!==0||r[St]!==0||r[er]!==0)?Ye:r[ct]<0||r[ct]>59?ct:r[St]<0||r[St]>59?St:r[er]<0||r[er]>999?er:-1,ae(e)._overflowDayOfYear&&(t<je||t>gt)&&(t=gt),ae(e)._overflowWeeks&&t===-1&&(t=Fm),ae(e)._overflowWeekday&&t===-1&&(t=Hm),ae(e).overflow=t),e}var N_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,I_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L_=/Z|[+-]\d\d(?::?\d\d)?/,ji=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ws=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F_=/^\/?Date\((-?\d+)/i,H_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,R_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Jc(e){var t,r,i=e._i,n=N_.exec(i)||I_.exec(i),s,o,a,l,u=ji.length,c=ws.length;if(n){for(ae(e).iso=!0,t=0,r=u;t<r;t++)if(ji[t][1].exec(n[1])){o=ji[t][0],s=ji[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(n[3]){for(t=0,r=c;t<r;t++)if(ws[t][1].exec(n[3])){a=(n[2]||" ")+ws[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(n[4])if(L_.exec(n[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),ta(e)}else e._isValid=!1}function z_(e,t,r,i,n,s){var o=[Y_(e),Uc.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function Y_(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function U_(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $_(e,t,r){if(e){var i=qc.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(i!==n)return ae(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function W_(e,t,r){if(e)return R_[e];if(t)return 0;var i=parseInt(r,10),n=i%100,s=(i-n)/100;return s*60+n}function Qc(e){var t=H_.exec(U_(e._i)),r;if(t){if(r=z_(t[4],t[3],t[2],t[5],t[6],t[7]),!$_(t[1],r,e))return;e._a=r,e._tzm=W_(t[8],t[9],t[10]),e._d=ci.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ae(e).rfc2822=!0}else e._isValid=!1}function V_(e){var t=F_.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Jc(e),e._isValid===!1)delete e._isValid;else return;if(Qc(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:j.createFromInputFallback(e)}j.createFromInputFallback=ot("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function br(e,t,r){return e!=null?e:t!=null?t:r}function j_(e){var t=new Date(j.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ea(e){var t,r,i=[],n,s,o;if(!e._d){for(n=j_(e),e._w&&e._a[gt]==null&&e._a[kt]==null&&G_(e),e._dayOfYear!=null&&(o=br(e._a[je],n[je]),(e._dayOfYear>ni(o)||e._dayOfYear===0)&&(ae(e)._overflowDayOfYear=!0),r=ci(o,0,e._dayOfYear),e._a[kt]=r.getUTCMonth(),e._a[gt]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ye]===24&&e._a[ct]===0&&e._a[St]===0&&e._a[er]===0&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?ci:Qm).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==s&&(ae(e).weekdayMismatch=!0)}}function G_(e){var t,r,i,n,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=br(t.GG,e._a[je],di(Ae(),1,4).year),i=br(t.W,1),n=br(t.E,1),(n<1||n>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=di(Ae(),s,o),r=br(t.gg,e._a[je],u.year),i=br(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(l=!0)):n=s),i<1||i>Dt(r,s,o)?ae(e)._overflowWeeks=!0:l!=null?ae(e)._overflowWeekday=!0:(a=Gc(r,i,n,s,o),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function ta(e){if(e._f===j.ISO_8601){Jc(e);return}if(e._f===j.RFC_2822){Qc(e);return}e._a=[],ae(e).empty=!0;var t=""+e._i,r,i,n,s,o,a=t.length,l=0,u,c;for(n=Ic(e._f,e._locale).match($o)||[],c=n.length,r=0;r<c;r++)s=n[r],i=(t.match(Nm(s,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&ae(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),xr[s]?(i?ae(e).empty=!1:ae(e).unusedTokens.push(s),Lm(s,i,e)):e._strict&&!i&&ae(e).unusedTokens.push(s);ae(e).charsLeftOver=a-l,t.length>0&&ae(e).unusedInput.push(t),e._a[Ye]<=12&&ae(e).bigHour===!0&&e._a[Ye]>0&&(ae(e).bigHour=void 0),ae(e).parsedDateParts=e._a.slice(0),ae(e).meridiem=e._meridiem,e._a[Ye]=q_(e._locale,e._a[Ye],e._meridiem),u=ae(e).era,u!==null&&(e._a[je]=e._locale.erasConvertYear(u,e._a[je])),ea(e),Qo(e)}function q_(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Z_(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(l===0){ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<l;n++)s=0,o=!1,t=Yo({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],ta(t),zo(t)&&(o=!0),s+=ae(t).charsLeftOver,s+=ae(t).unusedTokens.length*10,ae(t).score=s,a?s<i&&(i=s,r=t):(i==null||s<i||o)&&(i=s,r=t,o&&(a=!0));Ut(e,r||t)}function X_(e){if(!e._d){var t=Wo(e._i),r=t.day===void 0?t.date:t.day;e._a=Oc([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),ea(e)}}function K_(e){var t=new Oi(Qo(ed(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ed(e){var t=e._i,r=e._f;return e._locale=e._locale||Lt(e._l),t===null||r===void 0&&t===""?Fn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ft(t)?new Oi(Qo(t)):(Mi(t)?e._d=t:ht(r)?Z_(e):r?ta(e):J_(e),zo(e)||(e._d=null),e))}function J_(e){var t=e._i;Ke(t)?e._d=new Date(j.now()):Mi(t)?e._d=new Date(t.valueOf()):typeof t=="string"?V_(e):ht(t)?(e._a=Oc(t.slice(0),function(r){return parseInt(r,10)}),ea(e)):nr(t)?X_(e):Bt(t)?e._d=new Date(t):j.createFromInputFallback(e)}function td(e,t,r,i,n){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(nr(e)&&Ro(e)||ht(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,K_(s)}function Ae(e,t,r,i){return td(e,t,r,i,!1)}var Q_=ot("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Fn()}),e0=ot("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Fn()});function rd(e,t){var r,i;if(t.length===1&&ht(t[0])&&(t=t[0]),!t.length)return Ae();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function t0(){var e=[].slice.call(arguments,0);return rd("isBefore",e)}function r0(){var e=[].slice.call(arguments,0);return rd("isAfter",e)}var i0=function(){return Date.now?Date.now():+new Date},Zr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function n0(e){var t,r=!1,i,n=Zr.length;for(t in e)if(ve(e,t)&&!(Fe.call(Zr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<n;++i)if(e[Zr[i]]){if(r)return!1;parseFloat(e[Zr[i]])!==he(e[Zr[i]])&&(r=!0)}return!0}function s0(){return this._isValid}function o0(){return mt(NaN)}function Vn(e){var t=Wo(e),r=t.year||0,i=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=n0(t),this._milliseconds=+c+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+r*12,this._data={},this._locale=Lt(),this._bubble()}function nn(e){return e instanceof Vn}function uo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function a0(e,t,r){var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o;for(o=0;o<i;o++)he(e[o])!==he(t[o])&&s++;return s+n}function id(e,t){te(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+bt(~~(r/60),2)+t+bt(~~r%60,2)})}id("Z",":");id("ZZ","");K("Z",Un);K("ZZ",Un);Ee(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=ra(Un,e)});var l0=/([\+\-]|\d\d)/gi;function ra(e,t){var r=(t||"").match(e),i,n,s;return r===null?null:(i=r[r.length-1]||[],n=(i+"").match(l0)||["-",0,0],s=+(n[1]*60)+he(n[2]),s===0?0:n[0]==="+"?s:-s)}function ia(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(ft(e)||Mi(e)?e.valueOf():Ae(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),j.updateOffset(r,!1),r):Ae(e).local()}function co(e){return-Math.round(e._d.getTimezoneOffset())}j.updateOffset=function(){};function u0(e,t,r){var i=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ra(Un,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=co(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?od(this,mt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,j.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:co(this)}function c0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function d0(e){return this.utcOffset(0,e)}function h0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(co(this),"m")),this}function f0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ra(Om,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function p0(e){return this.isValid()?(e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function m0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _0(){if(!Ke(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yo(e,this),e=ed(e),e._a?(t=e._isUTC?vt(e._a):Ae(e._a),this._isDSTShifted=this.isValid()&&a0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function g0(){return this.isValid()?!this._isUTC:!1}function b0(){return this.isValid()?this._isUTC:!1}function nd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var v0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,y0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mt(e,t){var r=e,i=null,n,s,o;return nn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Bt(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=v0.exec(e))?(n=i[1]==="-"?-1:1,r={y:0,d:he(i[gt])*n,h:he(i[Ye])*n,m:he(i[ct])*n,s:he(i[St])*n,ms:he(uo(i[er]*1e3))*n}):(i=y0.exec(e))?(n=i[1]==="-"?-1:1,r={y:Kt(i[2],n),M:Kt(i[3],n),w:Kt(i[4],n),d:Kt(i[5],n),h:Kt(i[6],n),m:Kt(i[7],n),s:Kt(i[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=w0(Ae(r.from),Ae(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new Vn(r),nn(e)&&ve(e,"_locale")&&(s._locale=e._locale),nn(e)&&ve(e,"_isValid")&&(s._isValid=e._isValid),s}mt.fn=Vn.prototype;mt.invalid=o0;function Kt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function il(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function w0(e,t){var r;return e.isValid()&&t.isValid()?(t=ia(t,e),e.isBefore(t)?r=il(e,t):(r=il(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function sd(e,t){return function(r,i){var n,s;return i!==null&&!isNaN(+i)&&(Nc(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=i,i=s),n=mt(r,i),od(this,n,e),this}}function od(e,t,r,i){var n=t._milliseconds,s=uo(t._days),o=uo(t._months);e.isValid()&&(i=i==null?!0:i,o&&Wc(e,ui(e,"Month")+o*r),s&&Yc(e,"Date",ui(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i&&j.updateOffset(e,s||o))}var C0=sd(1,"add"),x0=sd(-1,"subtract");function ad(e){return typeof e=="string"||e instanceof String}function E0(e){return ft(e)||Mi(e)||ad(e)||Bt(e)||S0(e)||k0(e)||e===null||e===void 0}function k0(e){var t=nr(e)&&!Ro(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function S0(e){var t=ht(e),r=!1;return t&&(r=e.filter(function(i){return!Bt(i)&&ad(e)}).length===0),t&&r}function A0(e){var t=nr(e)&&!Ro(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function T0(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function P0(e,t){arguments.length===1&&(arguments[0]?E0(arguments[0])?(e=arguments[0],t=void 0):A0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ae(),i=ia(r,this).startOf("day"),n=j.calendarFormat(this,i)||"sameElse",s=t&&(yt(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Ae(r)))}function D0(){return new Oi(this)}function M0(e,t){var r=ft(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function O0(e,t){var r=ft(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function B0(e,t,r,i){var n=ft(e)?e:Ae(e),s=ft(t)?t:Ae(t);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(i[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function N0(e,t){var r=ft(e)?e:Ae(e),i;return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function I0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function L0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function F0(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(i=ia(e,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,t=at(t),t){case"year":s=sn(this,i)/12;break;case"month":s=sn(this,i);break;case"quarter":s=sn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:st(s)}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),n,s;return t-i<0?(n=e.clone().add(r-1,"months"),s=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),s=(t-i)/(n-i)),-(r+s)||0}j.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";j.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function H0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function R0(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?rn(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):yt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",rn(r,"Z")):rn(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function z0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+i+n+s)}function Y0(e){e||(e=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=rn(this,e);return this.localeData().postformat(t)}function U0(e,t){return this.isValid()&&(ft(e)&&e.isValid()||Ae(e).isValid())?mt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $0(e){return this.from(Ae(),e)}function W0(e,t){return this.isValid()&&(ft(e)&&e.isValid()||Ae(e).isValid())?mt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function V0(e){return this.to(Ae(),e)}function ld(e){var t;return e===void 0?this._locale._abbr:(t=Lt(e),t!=null&&(this._locale=t),this)}var ud=ot("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function cd(){return this._locale}var gn=1e3,Er=60*gn,bn=60*Er,dd=(365*400+97)*24*bn;function kr(e,t){return(e%t+t)%t}function hd(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-dd:new Date(e,t,r).valueOf()}function fd(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-dd:Date.UTC(e,t,r)}function j0(e){var t,r;if(e=at(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?fd:hd,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=kr(t+(this._isUTC?0:this.utcOffset()*Er),bn);break;case"minute":t=this._d.valueOf(),t-=kr(t,Er);break;case"second":t=this._d.valueOf(),t-=kr(t,gn);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function G0(e){var t,r;if(e=at(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?fd:hd,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=bn-kr(t+(this._isUTC?0:this.utcOffset()*Er),bn)-1;break;case"minute":t=this._d.valueOf(),t+=Er-kr(t,Er)-1;break;case"second":t=this._d.valueOf(),t+=gn-kr(t,gn)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function q0(){return this._d.valueOf()-(this._offset||0)*6e4}function Z0(){return Math.floor(this.valueOf()/1e3)}function X0(){return new Date(this.valueOf())}function K0(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function J0(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Q0(){return this.isValid()?this.toISOString():null}function eg(){return zo(this)}function tg(){return Ut({},ae(this))}function rg(){return ae(this).overflow}function ig(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr");te("NN",0,0,"eraAbbr");te("NNN",0,0,"eraAbbr");te("NNNN",0,0,"eraName");te("NNNNN",0,0,"eraNarrow");te("y",["y",1],"yo","eraYear");te("y",["yy",2],0,"eraYear");te("y",["yyy",3],0,"eraYear");te("y",["yyyy",4],0,"eraYear");K("N",na);K("NN",na);K("NNN",na);K("NNNN",pg);K("NNNNN",mg);Ee(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var n=r._locale.erasParse(e,i,r._strict);n?ae(r).era=n:ae(r).invalidEra=e});K("y",Rr);K("yy",Rr);K("yyy",Rr);K("yyyy",Rr);K("yo",_g);Ee(["y","yy","yyy","yyyy"],je);Ee(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[je]=r._locale.eraYearOrdinalParse(e,n):t[je]=parseInt(e,10)});function ng(e,t){var r,i,n,s=this._eras||Lt("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":n=j(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=j(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function sg(e,t,r){var i,n,s=this.eras(),o,a,l;for(e=e.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),a=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(l===e)return s[i];break}else if([o,a,l].indexOf(e)>=0)return s[i]}function og(e,t){var r=e.since<=e.until?1:-1;return t===void 0?j(e.since).year():j(e.since).year()+(t-e.offset)*r}function ag(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function lg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function ug(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function cg(){var e,t,r,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return(this.year()-j(n[e].since).year())*r+n[e].offset;return this.year()}function dg(e){return ve(this,"_erasNameRegex")||sa.call(this),e?this._erasNameRegex:this._erasRegex}function hg(e){return ve(this,"_erasAbbrRegex")||sa.call(this),e?this._erasAbbrRegex:this._erasRegex}function fg(e){return ve(this,"_erasNarrowRegex")||sa.call(this),e?this._erasNarrowRegex:this._erasRegex}function na(e,t){return t.erasAbbrRegex(e)}function pg(e,t){return t.erasNameRegex(e)}function mg(e,t){return t.erasNarrowRegex(e)}function _g(e,t){return t._eraYearOrdinalRegex||Rr}function sa(){var e=[],t=[],r=[],i=[],n,s,o,a,l,u=this.eras();for(n=0,s=u.length;n<s;++n)o=Pt(u[n].name),a=Pt(u[n].abbr),l=Pt(u[n].narrow),t.push(o),e.push(a),r.push(l),i.push(o),i.push(a),i.push(l);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100});te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jn(e,t){te(0,[e,e.length],0,t)}jn("gggg","weekYear");jn("ggggg","weekYear");jn("GGGG","isoWeekYear");jn("GGGGG","isoWeekYear");K("G",Yn);K("g",Yn);K("GG",Te,tt);K("gg",Te,tt);K("GGGG",jo,Vo);K("gggg",jo,Vo);K("GGGGG",zn,Hn);K("ggggg",zn,Hn);Ni(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=he(e)});Ni(["gg","GG"],function(e,t,r,i){t[i]=j.parseTwoDigitYear(e)});function gg(e){return pd.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bg(e){return pd.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function vg(){return Dt(this.year(),1,4)}function yg(){return Dt(this.isoWeekYear(),1,4)}function wg(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Cg(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function pd(e,t,r,i,n){var s;return e==null?di(this,i,n).year:(s=Dt(e,i,n),t>s&&(t=s),xg.call(this,e,t,r,i,n))}function xg(e,t,r,i,n){var s=Gc(e,t,r,i,n),o=ci(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}te("Q",0,"Qo","quarter");K("Q",Lc);Ee("Q",function(e,t){t[kt]=(he(e)-1)*3});function Eg(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date");K("D",Te,zr);K("DD",Te,tt);K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ee(["D","DD"],gt);Ee("Do",function(e,t){t[gt]=he(e.match(Te)[0])});var md=Yr("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear");K("DDD",Rn);K("DDDD",Fc);Ee(["DDD","DDDD"],function(e,t,r){r._dayOfYear=he(e)});function kg(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}te("m",["mm",2],0,"minute");K("m",Te,Go);K("mm",Te,tt);Ee(["m","mm"],ct);var Sg=Yr("Minutes",!1);te("s",["ss",2],0,"second");K("s",Te,Go);K("ss",Te,tt);Ee(["s","ss"],St);var Ag=Yr("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)});te(0,["SS",2],0,function(){return~~(this.millisecond()/10)});te(0,["SSS",3],0,"millisecond");te(0,["SSSS",4],0,function(){return this.millisecond()*10});te(0,["SSSSS",5],0,function(){return this.millisecond()*100});te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});K("S",Rn,Lc);K("SS",Rn,tt);K("SSS",Rn,Fc);var $t,_d;for($t="SSSS";$t.length<=9;$t+="S")K($t,Rr);function Tg(e,t){t[er]=he(("0."+e)*1e3)}for($t="S";$t.length<=9;$t+="S")Ee($t,Tg);_d=Yr("Milliseconds",!1);te("z",0,0,"zoneAbbr");te("zz",0,0,"zoneName");function Pg(){return this._isUTC?"UTC":""}function Dg(){return this._isUTC?"Coordinated Universal Time":""}var H=Oi.prototype;H.add=C0;H.calendar=P0;H.clone=D0;H.diff=F0;H.endOf=G0;H.format=Y0;H.from=U0;H.fromNow=$0;H.to=W0;H.toNow=V0;H.get=zm;H.invalidAt=rg;H.isAfter=M0;H.isBefore=O0;H.isBetween=B0;H.isSame=N0;H.isSameOrAfter=I0;H.isSameOrBefore=L0;H.isValid=eg;H.lang=ud;H.locale=ld;H.localeData=cd;H.max=e0;H.min=Q_;H.parsingFlags=tg;H.set=Ym;H.startOf=j0;H.subtract=x0;H.toArray=K0;H.toObject=J0;H.toDate=X0;H.toISOString=R0;H.inspect=z0;typeof Symbol!="undefined"&&Symbol.for!=null&&(H[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});H.toJSON=Q0;H.toString=H0;H.unix=Z0;H.valueOf=q0;H.creationData=ig;H.eraName=ag;H.eraNarrow=lg;H.eraAbbr=ug;H.eraYear=cg;H.year=zc;H.isLeapYear=Rm;H.weekYear=gg;H.isoWeekYear=bg;H.quarter=H.quarters=Eg;H.month=Vc;H.daysInMonth=Xm;H.week=H.weeks=n_;H.isoWeek=H.isoWeeks=s_;H.weeksInYear=wg;H.weeksInWeekYear=Cg;H.isoWeeksInYear=vg;H.isoWeeksInISOWeekYear=yg;H.date=md;H.day=H.days=b_;H.weekday=v_;H.isoWeekday=y_;H.dayOfYear=kg;H.hour=H.hours=A_;H.minute=H.minutes=Sg;H.second=H.seconds=Ag;H.millisecond=H.milliseconds=_d;H.utcOffset=u0;H.utc=d0;H.local=h0;H.parseZone=f0;H.hasAlignedHourOffset=p0;H.isDST=m0;H.isLocal=g0;H.isUtcOffset=b0;H.isUtc=nd;H.isUTC=nd;H.zoneAbbr=Pg;H.zoneName=Dg;H.dates=ot("dates accessor is deprecated. Use date instead.",md);H.months=ot("months accessor is deprecated. Use month instead",Vc);H.years=ot("years accessor is deprecated. Use year instead",zc);H.zone=ot("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",c0);H.isDSTShifted=ot("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_0);function Mg(e){return Ae(e*1e3)}function Og(){return Ae.apply(null,arguments).parseZone()}function gd(e){return e}var ye=Uo.prototype;ye.calendar=gm;ye.longDateFormat=wm;ye.invalidDate=xm;ye.ordinal=Sm;ye.preparse=gd;ye.postformat=gd;ye.relativeTime=Tm;ye.pastFuture=Pm;ye.set=mm;ye.eras=ng;ye.erasParse=sg;ye.erasConvertYear=og;ye.erasAbbrRegex=hg;ye.erasNameRegex=dg;ye.erasNarrowRegex=fg;ye.months=jm;ye.monthsShort=Gm;ye.monthsParse=Zm;ye.monthsRegex=Jm;ye.monthsShortRegex=Km;ye.week=e_;ye.firstDayOfYear=i_;ye.firstDayOfWeek=r_;ye.weekdays=f_;ye.weekdaysMin=m_;ye.weekdaysShort=p_;ye.weekdaysParse=g_;ye.weekdaysRegex=w_;ye.weekdaysShortRegex=C_;ye.weekdaysMinRegex=x_;ye.isPM=k_;ye.meridiem=T_;function vn(e,t,r,i){var n=Lt(),s=vt().set(i,t);return n[r](s,e)}function bd(e,t,r){if(Bt(e)&&(t=e,e=void 0),e=e||"",t!=null)return vn(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=vn(e,i,r,"month");return n}function oa(e,t,r,i){typeof e=="boolean"?(Bt(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Bt(t)&&(r=t,t=void 0),t=t||"");var n=Lt(),s=e?n._week.dow:0,o,a=[];if(r!=null)return vn(t,(r+s)%7,i,"day");for(o=0;o<7;o++)a[o]=vn(t,(o+s)%7,i,"day");return a}function Bg(e,t){return bd(e,t,"months")}function Ng(e,t){return bd(e,t,"monthsShort")}function Ig(e,t,r){return oa(e,t,r,"weekdays")}function Lg(e,t,r){return oa(e,t,r,"weekdaysShort")}function Fg(e,t,r){return oa(e,t,r,"weekdaysMin")}Wt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=he(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});j.lang=ot("moment.lang is deprecated. Use moment.locale instead.",Wt);j.langData=ot("moment.langData is deprecated. Use moment.localeData instead.",Lt);var wt=Math.abs;function Hg(){var e=this._data;return this._milliseconds=wt(this._milliseconds),this._days=wt(this._days),this._months=wt(this._months),e.milliseconds=wt(e.milliseconds),e.seconds=wt(e.seconds),e.minutes=wt(e.minutes),e.hours=wt(e.hours),e.months=wt(e.months),e.years=wt(e.years),this}function vd(e,t,r,i){var n=mt(t,r);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function Rg(e,t){return vd(this,e,t,1)}function zg(e,t){return vd(this,e,t,-1)}function nl(e){return e<0?Math.floor(e):Math.ceil(e)}function Yg(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,n,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=nl(ho(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,n=st(e/1e3),i.seconds=n%60,s=st(n/60),i.minutes=s%60,o=st(s/60),i.hours=o%24,t+=st(o/24),l=st(yd(t)),r+=l,t-=nl(ho(l)),a=st(r/12),r%=12,i.days=t,i.months=r,i.years=a,this}function yd(e){return e*4800/146097}function ho(e){return e*146097/4800}function Ug(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=at(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+yd(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ho(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ft(e){return function(){return this.as(e)}}var wd=Ft("ms"),$g=Ft("s"),Wg=Ft("m"),Vg=Ft("h"),jg=Ft("d"),Gg=Ft("w"),qg=Ft("M"),Zg=Ft("Q"),Xg=Ft("y"),Kg=wd;function Jg(){return mt(this)}function Qg(e){return e=at(e),this.isValid()?this[e+"s"]():NaN}function lr(e){return function(){return this.isValid()?this._data[e]:NaN}}var eb=lr("milliseconds"),tb=lr("seconds"),rb=lr("minutes"),ib=lr("hours"),nb=lr("days"),sb=lr("months"),ob=lr("years");function ab(){return st(this.days()/7)}var xt=Math.round,yr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lb(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}function ub(e,t,r,i){var n=mt(e).abs(),s=xt(n.as("s")),o=xt(n.as("m")),a=xt(n.as("h")),l=xt(n.as("d")),u=xt(n.as("M")),c=xt(n.as("w")),d=xt(n.as("y")),h=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=i,lb.apply(null,h)}function cb(e){return e===void 0?xt:typeof e=="function"?(xt=e,!0):!1}function db(e,t){return yr[e]===void 0?!1:t===void 0?yr[e]:(yr[e]=t,e==="s"&&(yr.ss=t-1),!0)}function hb(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=yr,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},yr,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),s=ub(this,!r,i,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Cs=Math.abs;function mr(e){return(e>0)-(e<0)||+e}function Gn(){if(!this.isValid())return this.localeData().invalidDate();var e=Cs(this._milliseconds)/1e3,t=Cs(this._days),r=Cs(this._months),i,n,s,o,a=this.asSeconds(),l,u,c,d;return a?(i=st(e/60),n=st(i/60),e%=60,i%=60,s=st(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=mr(this._months)!==mr(a)?"-":"",c=mr(this._days)!==mr(a)?"-":"",d=mr(this._milliseconds)!==mr(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(n||i||e?"T":"")+(n?d+n+"H":"")+(i?d+i+"M":"")+(e?d+o+"S":"")):"P0D"}var me=Vn.prototype;me.isValid=s0;me.abs=Hg;me.add=Rg;me.subtract=zg;me.as=Ug;me.asMilliseconds=wd;me.asSeconds=$g;me.asMinutes=Wg;me.asHours=Vg;me.asDays=jg;me.asWeeks=Gg;me.asMonths=qg;me.asQuarters=Zg;me.asYears=Xg;me.valueOf=Kg;me._bubble=Yg;me.clone=Jg;me.get=Qg;me.milliseconds=eb;me.seconds=tb;me.minutes=rb;me.hours=ib;me.days=nb;me.weeks=ab;me.months=sb;me.years=ob;me.humanize=hb;me.toISOString=Gn;me.toString=Gn;me.toJSON=Gn;me.locale=ld;me.localeData=cd;me.toIsoString=ot("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gn);me.lang=ud;te("X",0,0,"unix");te("x",0,0,"valueOf");K("x",Yn);K("X",Bm);Ee("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ee("x",function(e,t,r){r._d=new Date(he(e))});//! moment.js
|
|
13
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var el={};function Bc(e,t){j.deprecationHandler!=null&&j.deprecationHandler(e,t),el[e]||(Oc(t),el[e]=!0)}j.suppressDeprecationWarnings=!1;j.deprecationHandler=null;function yt(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mm(e){var t,r;for(r in e)ve(e,r)&&(t=e[r],yt(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function oo(e,t){var r=Ut({},e),i;for(i in t)ve(t,i)&&(nr(e[i])&&nr(t[i])?(r[i]={},Ut(r[i],e[i]),Ut(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)ve(e,i)&&!ve(t,i)&&nr(e[i])&&(r[i]=Ut({},r[i]));return r}function Uo(e){e!=null&&this.set(e)}var ao;Object.keys?ao=Object.keys:ao=function(e){var t,r=[];for(t in e)ve(e,t)&&r.push(t);return r};var _m={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gm(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return yt(i)?i.call(t,r):i}function bt(e,t,r){var i=""+Math.abs(e),n=t-i.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var $o=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ys={},xr={};function te(e,t,r,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(xr[e]=n),t&&(xr[t[0]]=function(){return bt(n.apply(this,arguments),t[1],t[2])}),r&&(xr[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function bm(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function vm(e){var t=e.match($o),r,i;for(r=0,i=t.length;r<i;r++)xr[t[r]]?t[r]=xr[t[r]]:t[r]=bm(t[r]);return function(n){var s="",o;for(o=0;o<i;o++)s+=yt(t[o])?t[o].call(n,e):t[o];return s}}function rn(e,t){return e.isValid()?(t=Nc(t,e.localeData()),ys[t]=ys[t]||vm(t),ys[t](e)):e.localeData().invalidDate()}function Nc(e,t){var r=5;function i(n){return t.longDateFormat(n)||n}for(Vi.lastIndex=0;r>=0&&Vi.test(e);)e=e.replace(Vi,i),Vi.lastIndex=0,r-=1;return e}var ym={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function wm(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match($o).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Cm="Invalid date";function xm(){return this._invalidDate}var Em="%d",km=/\d{1,2}/;function Sm(e){return this._ordinal.replace("%d",e)}var Am={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Tm(e,t,r,i){var n=this._relativeTime[r];return yt(n)?n(e,t,r,i):n.replace(/%d/i,e)}function Pm(e,t){var r=this._relativeTime[e>0?"future":"past"];return yt(r)?r(t):r.replace(/%s/i,t)}var tl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function at(e){return typeof e=="string"?tl[e]||tl[e.toLowerCase()]:void 0}function Wo(e){var t={},r,i;for(i in e)ve(e,i)&&(r=at(i),r&&(t[r]=e[i]));return t}var Dm={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Mm(e){var t=[],r;for(r in e)ve(e,r)&&t.push({unit:r,priority:Dm[r]});return t.sort(function(i,n){return i.priority-n.priority}),t}var Ic=/\d/,tt=/\d\d/,Lc=/\d{3}/,Vo=/\d{4}/,Hn=/[+-]?\d{6}/,Te=/\d\d?/,Fc=/\d\d\d\d?/,Hc=/\d\d\d\d\d\d?/,Rn=/\d{1,3}/,jo=/\d{1,4}/,zn=/[+-]?\d{1,6}/,Rr=/\d+/,Yn=/[+-]?\d+/,Om=/Z|[+-]\d\d:?\d\d/gi,Un=/Z|[+-]\d\d(?::?\d\d)?/gi,Bm=/[+-]?\d+(\.\d{1,3})?/,Bi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,zr=/^[1-9]\d?/,Go=/^([1-9]\d|\d)/,mn;mn={};function X(e,t,r){mn[e]=yt(t)?t:function(i,n){return i&&r?r:t}}function Nm(e,t){return ve(mn,e)?mn[e](t._strict,t._locale):new RegExp(Im(e))}function Im(e){return Pt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,n,s){return r||i||n||s}))}function Pt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function st(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=st(t)),r}var lo={};function Ee(e,t){var r,i=t,n;for(typeof e=="string"&&(e=[e]),Bt(t)&&(i=function(s,o){o[t]=he(s)}),n=e.length,r=0;r<n;r++)lo[e[r]]=i}function Ni(e,t){Ee(e,function(r,i,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function Lm(e,t,r){t!=null&&ve(lo,e)&&lo[e](t,r._a,r,e)}function $n(e){return e%4===0&&e%100!==0||e%400===0}var je=0,kt=1,gt=2,Ye=3,ct=4,St=5,er=6,Fm=7,Hm=8;te("Y",0,0,function(){var e=this.year();return e<=9999?bt(e,4):"+"+e});te(0,["YY",2],0,function(){return this.year()%100});te(0,["YYYY",4],0,"year");te(0,["YYYYY",5],0,"year");te(0,["YYYYYY",6,!0],0,"year");X("Y",Yn);X("YY",Te,tt);X("YYYY",jo,Vo);X("YYYYY",zn,Hn);X("YYYYYY",zn,Hn);Ee(["YYYYY","YYYYYY"],je);Ee("YYYY",function(e,t){t[je]=e.length===2?j.parseTwoDigitYear(e):he(e)});Ee("YY",function(e,t){t[je]=j.parseTwoDigitYear(e)});Ee("Y",function(e,t){t[je]=parseInt(e,10)});function ni(e){return $n(e)?366:365}j.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var Rc=Yr("FullYear",!0);function Rm(){return $n(this.year())}function Yr(e,t){return function(r){return r!=null?(zc(this,e,r),j.updateOffset(this,t),this):ui(this,e)}}function ui(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function zc(e,t,r){var i,n,s,o,a;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(n?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(n?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(n?i.setUTCHours(r):i.setHours(r));case"Date":return void(n?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}s=r,o=e.month(),a=e.date(),a=a===29&&o===1&&!$n(s)?28:a,n?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function zm(e){return e=at(e),yt(this[e])?this[e]():this}function Ym(e,t){if(typeof e=="object"){e=Wo(e);var r=Mm(e),i,n=r.length;for(i=0;i<n;i++)this[r[i].unit](e[r[i].unit])}else if(e=at(e),yt(this[e]))return this[e](t);return this}function Um(e,t){return(e%t+t)%t}var Fe;Array.prototype.indexOf?Fe=Array.prototype.indexOf:Fe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function qo(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Um(t,12);return e+=(t-r)/12,r===1?$n(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1});te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});te("MMMM",0,0,function(e){return this.localeData().months(this,e)});X("M",Te,zr);X("MM",Te,tt);X("MMM",function(e,t){return t.monthsShortRegex(e)});X("MMMM",function(e,t){return t.monthsRegex(e)});Ee(["M","MM"],function(e,t){t[kt]=he(e)-1});Ee(["MMM","MMMM"],function(e,t,r,i){var n=r._locale.monthsParse(e,i,r._strict);n!=null?t[kt]=n:ae(r).invalidMonth=e});var $m="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Uc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wm=Bi,Vm=Bi;function jm(e,t){return e?ht(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Uc).test(t)?"format":"standalone"][e.month()]:ht(this._months)?this._months:this._months.standalone}function Gm(e,t){return e?ht(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Uc.test(t)?"format":"standalone"][e.month()]:ht(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qm(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=vt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:null):(n=Fe.call(this._longMonthsParse,o),n!==-1?n:null):t==="MMM"?(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:(n=Fe.call(this._longMonthsParse,o),n!==-1?n:null)):(n=Fe.call(this._longMonthsParse,o),n!==-1?n:(n=Fe.call(this._shortMonthsParse,o),n!==-1?n:null))}function Zm(e,t,r){var i,n,s;if(this._monthsParseExact)return qm.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=vt([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function $c(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=he(t);else if(t=e.localeData().monthsParse(t),!Bt(t))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,qo(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function Wc(e){return e!=null?($c(this,e),j.updateOffset(this,!0),this):ui(this,"Month")}function Km(){return qo(this.year(),this.month())}function Xm(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||Vc.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ve(this,"_monthsShortRegex")||(this._monthsShortRegex=Wm),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jm(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||Vc.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ve(this,"_monthsRegex")||(this._monthsRegex=Vm),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Vc(){function e(l,u){return u.length-l.length}var t=[],r=[],i=[],n,s,o,a;for(n=0;n<12;n++)s=vt([2e3,n]),o=Pt(this.monthsShort(s,"")),a=Pt(this.months(s,"")),t.push(o),r.push(a),i.push(a),i.push(o);t.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qm(e,t,r,i,n,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function ci(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _n(e,t,r){var i=7+t-r,n=(7+ci(e,0,i).getUTCDay()-t)%7;return-n+i-1}function jc(e,t,r,i,n){var s=(7+r-i)%7,o=_n(e,i,n),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=ni(l)+a):a>ni(e)?(l=e+1,u=a-ni(e)):(l=e,u=a),{year:l,dayOfYear:u}}function di(e,t,r){var i=_n(e.year(),t,r),n=Math.floor((e.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=e.year()-1,s=n+Dt(o,t,r)):n>Dt(e.year(),t,r)?(s=n-Dt(e.year(),t,r),o=e.year()+1):(o=e.year(),s=n),{week:s,year:o}}function Dt(e,t,r){var i=_n(e,t,r),n=_n(e+1,t,r);return(ni(e)-i+n)/7}te("w",["ww",2],"wo","week");te("W",["WW",2],"Wo","isoWeek");X("w",Te,zr);X("ww",Te,tt);X("W",Te,zr);X("WW",Te,tt);Ni(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=he(e)});function e_(e){return di(e,this._week.dow,this._week.doy).week}var t_={dow:0,doy:6};function r_(){return this._week.dow}function i_(){return this._week.doy}function n_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function s_(e){var t=di(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}te("d",0,"do","day");te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});te("e",0,0,"weekday");te("E",0,0,"isoWeekday");X("d",Te);X("e",Te);X("E",Te);X("dd",function(e,t){return t.weekdaysMinRegex(e)});X("ddd",function(e,t){return t.weekdaysShortRegex(e)});X("dddd",function(e,t){return t.weekdaysRegex(e)});Ni(["dd","ddd","dddd"],function(e,t,r,i){var n=r._locale.weekdaysParse(e,i,r._strict);n!=null?t.d=n:ae(r).invalidWeekday=e});Ni(["d","e","E"],function(e,t,r,i){t[i]=he(e)});function o_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function a_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zo(e,t){return e.slice(t,7).concat(e.slice(0,t))}var l_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gc="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),u_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),c_=Bi,d_=Bi,h_=Bi;function f_(e,t){var r=ht(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Zo(r,this._week.dow):e?r[e.day()]:r}function p_(e){return e===!0?Zo(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function m_(e){return e===!0?Zo(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function __(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=vt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=Fe.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Fe.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Fe.call(this._weekdaysParse,o),n!==-1||(n=Fe.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Fe.call(this._shortWeekdaysParse,o),n!==-1||(n=Fe.call(this._weekdaysParse,o),n!==-1)?n:(n=Fe.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Fe.call(this._minWeekdaysParse,o),n!==-1||(n=Fe.call(this._weekdaysParse,o),n!==-1)?n:(n=Fe.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function g_(e,t,r){var i,n,s;if(this._weekdaysParseExact)return __.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=vt([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function b_(e){if(!this.isValid())return e!=null?this:NaN;var t=ui(this,"Day");return e!=null?(e=o_(e,this.localeData()),this.add(e-t,"d")):t}function v_(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function y_(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=a_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function w_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Ko.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ve(this,"_weekdaysRegex")||(this._weekdaysRegex=c_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function C_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Ko.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=d_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function x_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Ko.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=h_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ko(){function e(c,d){return d.length-c.length}var t=[],r=[],i=[],n=[],s,o,a,l,u;for(s=0;s<7;s++)o=vt([2e3,1]).day(s),a=Pt(this.weekdaysMin(o,"")),l=Pt(this.weekdaysShort(o,"")),u=Pt(this.weekdays(o,"")),t.push(a),r.push(l),i.push(u),n.push(a),n.push(l),n.push(u);t.sort(e),r.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xo(){return this.hours()%12||12}function E_(){return this.hours()||24}te("H",["HH",2],0,"hour");te("h",["hh",2],0,Xo);te("k",["kk",2],0,E_);te("hmm",0,0,function(){return""+Xo.apply(this)+bt(this.minutes(),2)});te("hmmss",0,0,function(){return""+Xo.apply(this)+bt(this.minutes(),2)+bt(this.seconds(),2)});te("Hmm",0,0,function(){return""+this.hours()+bt(this.minutes(),2)});te("Hmmss",0,0,function(){return""+this.hours()+bt(this.minutes(),2)+bt(this.seconds(),2)});function qc(e,t){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qc("a",!0);qc("A",!1);function Zc(e,t){return t._meridiemParse}X("a",Zc);X("A",Zc);X("H",Te,Go);X("h",Te,zr);X("k",Te,zr);X("HH",Te,tt);X("hh",Te,tt);X("kk",Te,tt);X("hmm",Fc);X("hmmss",Hc);X("Hmm",Fc);X("Hmmss",Hc);Ee(["H","HH"],Ye);Ee(["k","kk"],function(e,t,r){var i=he(e);t[Ye]=i===24?0:i});Ee(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ee(["h","hh"],function(e,t,r){t[Ye]=he(e),ae(r).bigHour=!0});Ee("hmm",function(e,t,r){var i=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i)),ae(r).bigHour=!0});Ee("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i,2)),t[St]=he(e.substr(n)),ae(r).bigHour=!0});Ee("Hmm",function(e,t,r){var i=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i))});Ee("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=he(e.substr(0,i)),t[ct]=he(e.substr(i,2)),t[St]=he(e.substr(n))});function k_(e){return(e+"").toLowerCase().charAt(0)==="p"}var S_=/[ap]\.?m?\.?/i,A_=Yr("Hours",!0);function T_(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Kc={calendar:_m,longDateFormat:ym,invalidDate:Cm,ordinal:Em,dayOfMonthOrdinalParse:km,relativeTime:Am,months:$m,monthsShort:Yc,week:t_,weekdays:l_,weekdaysMin:u_,weekdaysShort:Gc,meridiemParse:S_},Oe={},qr={},hi;function P_(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function rl(e){return e&&e.toLowerCase().replace("_","-")}function D_(e){for(var t=0,r,i,n,s;t<e.length;){for(s=rl(e[t]).split("-"),r=s.length,i=rl(e[t+1]),i=i?i.split("-"):null;r>0;){if(n=Wn(s.slice(0,r).join("-")),n)return n;if(i&&i.length>=r&&P_(s,i)>=r-1)break;r--}t++}return hi}function M_(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Wn(e){var t=null,r;if(Oe[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&M_(e))try{t=hi._abbr,r=hm,r("./locale/"+e),Wt(t)}catch(i){Oe[e]=null}return Oe[e]}function Wt(e,t){var r;return e&&(Xe(t)?r=Lt(e):r=Jo(e,t),r?hi=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),hi._abbr}function Jo(e,t){if(t!==null){var r,i=Kc;if(t.abbr=e,Oe[e]!=null)Bc("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Oe[e]._config;else if(t.parentLocale!=null)if(Oe[t.parentLocale]!=null)i=Oe[t.parentLocale]._config;else if(r=Wn(t.parentLocale),r!=null)i=r._config;else return qr[t.parentLocale]||(qr[t.parentLocale]=[]),qr[t.parentLocale].push({name:e,config:t}),null;return Oe[e]=new Uo(oo(i,t)),qr[e]&&qr[e].forEach(function(n){Jo(n.name,n.config)}),Wt(e),Oe[e]}else return delete Oe[e],null}function O_(e,t){if(t!=null){var r,i,n=Kc;Oe[e]!=null&&Oe[e].parentLocale!=null?Oe[e].set(oo(Oe[e]._config,t)):(i=Wn(e),i!=null&&(n=i._config),t=oo(n,t),i==null&&(t.abbr=e),r=new Uo(t),r.parentLocale=Oe[e],Oe[e]=r),Wt(e)}else Oe[e]!=null&&(Oe[e].parentLocale!=null?(Oe[e]=Oe[e].parentLocale,e===Wt()&&Wt(e)):Oe[e]!=null&&delete Oe[e]);return Oe[e]}function Lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hi;if(!ht(e)){if(t=Wn(e),t)return t;e=[e]}return D_(e)}function B_(){return ao(Oe)}function Qo(e){var t,r=e._a;return r&&ae(e).overflow===-2&&(t=r[kt]<0||r[kt]>11?kt:r[gt]<1||r[gt]>qo(r[je],r[kt])?gt:r[Ye]<0||r[Ye]>24||r[Ye]===24&&(r[ct]!==0||r[St]!==0||r[er]!==0)?Ye:r[ct]<0||r[ct]>59?ct:r[St]<0||r[St]>59?St:r[er]<0||r[er]>999?er:-1,ae(e)._overflowDayOfYear&&(t<je||t>gt)&&(t=gt),ae(e)._overflowWeeks&&t===-1&&(t=Fm),ae(e)._overflowWeekday&&t===-1&&(t=Hm),ae(e).overflow=t),e}var N_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,I_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L_=/Z|[+-]\d\d(?::?\d\d)?/,ji=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ws=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F_=/^\/?Date\((-?\d+)/i,H_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,R_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xc(e){var t,r,i=e._i,n=N_.exec(i)||I_.exec(i),s,o,a,l,u=ji.length,c=ws.length;if(n){for(ae(e).iso=!0,t=0,r=u;t<r;t++)if(ji[t][1].exec(n[1])){o=ji[t][0],s=ji[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(n[3]){for(t=0,r=c;t<r;t++)if(ws[t][1].exec(n[3])){a=(n[2]||" ")+ws[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(n[4])if(L_.exec(n[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),ta(e)}else e._isValid=!1}function z_(e,t,r,i,n,s){var o=[Y_(e),Yc.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function Y_(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function U_(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $_(e,t,r){if(e){var i=Gc.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(i!==n)return ae(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function W_(e,t,r){if(e)return R_[e];if(t)return 0;var i=parseInt(r,10),n=i%100,s=(i-n)/100;return s*60+n}function Jc(e){var t=H_.exec(U_(e._i)),r;if(t){if(r=z_(t[4],t[3],t[2],t[5],t[6],t[7]),!$_(t[1],r,e))return;e._a=r,e._tzm=W_(t[8],t[9],t[10]),e._d=ci.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ae(e).rfc2822=!0}else e._isValid=!1}function V_(e){var t=F_.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xc(e),e._isValid===!1)delete e._isValid;else return;if(Jc(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:j.createFromInputFallback(e)}j.createFromInputFallback=ot("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function br(e,t,r){return e!=null?e:t!=null?t:r}function j_(e){var t=new Date(j.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ea(e){var t,r,i=[],n,s,o;if(!e._d){for(n=j_(e),e._w&&e._a[gt]==null&&e._a[kt]==null&&G_(e),e._dayOfYear!=null&&(o=br(e._a[je],n[je]),(e._dayOfYear>ni(o)||e._dayOfYear===0)&&(ae(e)._overflowDayOfYear=!0),r=ci(o,0,e._dayOfYear),e._a[kt]=r.getUTCMonth(),e._a[gt]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ye]===24&&e._a[ct]===0&&e._a[St]===0&&e._a[er]===0&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?ci:Qm).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==s&&(ae(e).weekdayMismatch=!0)}}function G_(e){var t,r,i,n,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=br(t.GG,e._a[je],di(Ae(),1,4).year),i=br(t.W,1),n=br(t.E,1),(n<1||n>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=di(Ae(),s,o),r=br(t.gg,e._a[je],u.year),i=br(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(l=!0)):n=s),i<1||i>Dt(r,s,o)?ae(e)._overflowWeeks=!0:l!=null?ae(e)._overflowWeekday=!0:(a=jc(r,i,n,s,o),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function ta(e){if(e._f===j.ISO_8601){Xc(e);return}if(e._f===j.RFC_2822){Jc(e);return}e._a=[],ae(e).empty=!0;var t=""+e._i,r,i,n,s,o,a=t.length,l=0,u,c;for(n=Nc(e._f,e._locale).match($o)||[],c=n.length,r=0;r<c;r++)s=n[r],i=(t.match(Nm(s,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&ae(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),xr[s]?(i?ae(e).empty=!1:ae(e).unusedTokens.push(s),Lm(s,i,e)):e._strict&&!i&&ae(e).unusedTokens.push(s);ae(e).charsLeftOver=a-l,t.length>0&&ae(e).unusedInput.push(t),e._a[Ye]<=12&&ae(e).bigHour===!0&&e._a[Ye]>0&&(ae(e).bigHour=void 0),ae(e).parsedDateParts=e._a.slice(0),ae(e).meridiem=e._meridiem,e._a[Ye]=q_(e._locale,e._a[Ye],e._meridiem),u=ae(e).era,u!==null&&(e._a[je]=e._locale.erasConvertYear(u,e._a[je])),ea(e),Qo(e)}function q_(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Z_(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(l===0){ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<l;n++)s=0,o=!1,t=Yo({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],ta(t),zo(t)&&(o=!0),s+=ae(t).charsLeftOver,s+=ae(t).unusedTokens.length*10,ae(t).score=s,a?s<i&&(i=s,r=t):(i==null||s<i||o)&&(i=s,r=t,o&&(a=!0));Ut(e,r||t)}function K_(e){if(!e._d){var t=Wo(e._i),r=t.day===void 0?t.date:t.day;e._a=Mc([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),ea(e)}}function X_(e){var t=new Oi(Qo(Qc(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Qc(e){var t=e._i,r=e._f;return e._locale=e._locale||Lt(e._l),t===null||r===void 0&&t===""?Fn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ft(t)?new Oi(Qo(t)):(Mi(t)?e._d=t:ht(r)?Z_(e):r?ta(e):J_(e),zo(e)||(e._d=null),e))}function J_(e){var t=e._i;Xe(t)?e._d=new Date(j.now()):Mi(t)?e._d=new Date(t.valueOf()):typeof t=="string"?V_(e):ht(t)?(e._a=Mc(t.slice(0),function(r){return parseInt(r,10)}),ea(e)):nr(t)?K_(e):Bt(t)?e._d=new Date(t):j.createFromInputFallback(e)}function ed(e,t,r,i,n){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(nr(e)&&Ro(e)||ht(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,X_(s)}function Ae(e,t,r,i){return ed(e,t,r,i,!1)}var Q_=ot("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Fn()}),e0=ot("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Fn()});function td(e,t){var r,i;if(t.length===1&&ht(t[0])&&(t=t[0]),!t.length)return Ae();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function t0(){var e=[].slice.call(arguments,0);return td("isBefore",e)}function r0(){var e=[].slice.call(arguments,0);return td("isAfter",e)}var i0=function(){return Date.now?Date.now():+new Date},Zr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function n0(e){var t,r=!1,i,n=Zr.length;for(t in e)if(ve(e,t)&&!(Fe.call(Zr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<n;++i)if(e[Zr[i]]){if(r)return!1;parseFloat(e[Zr[i]])!==he(e[Zr[i]])&&(r=!0)}return!0}function s0(){return this._isValid}function o0(){return mt(NaN)}function Vn(e){var t=Wo(e),r=t.year||0,i=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=n0(t),this._milliseconds=+c+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+r*12,this._data={},this._locale=Lt(),this._bubble()}function nn(e){return e instanceof Vn}function uo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function a0(e,t,r){var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o;for(o=0;o<i;o++)he(e[o])!==he(t[o])&&s++;return s+n}function rd(e,t){te(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+bt(~~(r/60),2)+t+bt(~~r%60,2)})}rd("Z",":");rd("ZZ","");X("Z",Un);X("ZZ",Un);Ee(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=ra(Un,e)});var l0=/([\+\-]|\d\d)/gi;function ra(e,t){var r=(t||"").match(e),i,n,s;return r===null?null:(i=r[r.length-1]||[],n=(i+"").match(l0)||["-",0,0],s=+(n[1]*60)+he(n[2]),s===0?0:n[0]==="+"?s:-s)}function ia(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(ft(e)||Mi(e)?e.valueOf():Ae(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),j.updateOffset(r,!1),r):Ae(e).local()}function co(e){return-Math.round(e._d.getTimezoneOffset())}j.updateOffset=function(){};function u0(e,t,r){var i=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ra(Un,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=co(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?sd(this,mt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,j.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:co(this)}function c0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function d0(e){return this.utcOffset(0,e)}function h0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(co(this),"m")),this}function f0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ra(Om,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function p0(e){return this.isValid()?(e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function m0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _0(){if(!Xe(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yo(e,this),e=Qc(e),e._a?(t=e._isUTC?vt(e._a):Ae(e._a),this._isDSTShifted=this.isValid()&&a0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function g0(){return this.isValid()?!this._isUTC:!1}function b0(){return this.isValid()?this._isUTC:!1}function id(){return this.isValid()?this._isUTC&&this._offset===0:!1}var v0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,y0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mt(e,t){var r=e,i=null,n,s,o;return nn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Bt(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=v0.exec(e))?(n=i[1]==="-"?-1:1,r={y:0,d:he(i[gt])*n,h:he(i[Ye])*n,m:he(i[ct])*n,s:he(i[St])*n,ms:he(uo(i[er]*1e3))*n}):(i=y0.exec(e))?(n=i[1]==="-"?-1:1,r={y:Xt(i[2],n),M:Xt(i[3],n),w:Xt(i[4],n),d:Xt(i[5],n),h:Xt(i[6],n),m:Xt(i[7],n),s:Xt(i[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=w0(Ae(r.from),Ae(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new Vn(r),nn(e)&&ve(e,"_locale")&&(s._locale=e._locale),nn(e)&&ve(e,"_isValid")&&(s._isValid=e._isValid),s}mt.fn=Vn.prototype;mt.invalid=o0;function Xt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function il(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function w0(e,t){var r;return e.isValid()&&t.isValid()?(t=ia(t,e),e.isBefore(t)?r=il(e,t):(r=il(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function nd(e,t){return function(r,i){var n,s;return i!==null&&!isNaN(+i)&&(Bc(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=i,i=s),n=mt(r,i),sd(this,n,e),this}}function sd(e,t,r,i){var n=t._milliseconds,s=uo(t._days),o=uo(t._months);e.isValid()&&(i=i==null?!0:i,o&&$c(e,ui(e,"Month")+o*r),s&&zc(e,"Date",ui(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i&&j.updateOffset(e,s||o))}var C0=nd(1,"add"),x0=nd(-1,"subtract");function od(e){return typeof e=="string"||e instanceof String}function E0(e){return ft(e)||Mi(e)||od(e)||Bt(e)||S0(e)||k0(e)||e===null||e===void 0}function k0(e){var t=nr(e)&&!Ro(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function S0(e){var t=ht(e),r=!1;return t&&(r=e.filter(function(i){return!Bt(i)&&od(e)}).length===0),t&&r}function A0(e){var t=nr(e)&&!Ro(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function T0(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function P0(e,t){arguments.length===1&&(arguments[0]?E0(arguments[0])?(e=arguments[0],t=void 0):A0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ae(),i=ia(r,this).startOf("day"),n=j.calendarFormat(this,i)||"sameElse",s=t&&(yt(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Ae(r)))}function D0(){return new Oi(this)}function M0(e,t){var r=ft(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function O0(e,t){var r=ft(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function B0(e,t,r,i){var n=ft(e)?e:Ae(e),s=ft(t)?t:Ae(t);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(i[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function N0(e,t){var r=ft(e)?e:Ae(e),i;return this.isValid()&&r.isValid()?(t=at(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function I0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function L0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function F0(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(i=ia(e,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,t=at(t),t){case"year":s=sn(this,i)/12;break;case"month":s=sn(this,i);break;case"quarter":s=sn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:st(s)}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),n,s;return t-i<0?(n=e.clone().add(r-1,"months"),s=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),s=(t-i)/(n-i)),-(r+s)||0}j.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";j.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function H0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function R0(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?rn(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):yt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",rn(r,"Z")):rn(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function z0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+i+n+s)}function Y0(e){e||(e=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=rn(this,e);return this.localeData().postformat(t)}function U0(e,t){return this.isValid()&&(ft(e)&&e.isValid()||Ae(e).isValid())?mt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $0(e){return this.from(Ae(),e)}function W0(e,t){return this.isValid()&&(ft(e)&&e.isValid()||Ae(e).isValid())?mt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function V0(e){return this.to(Ae(),e)}function ad(e){var t;return e===void 0?this._locale._abbr:(t=Lt(e),t!=null&&(this._locale=t),this)}var ld=ot("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ud(){return this._locale}var gn=1e3,Er=60*gn,bn=60*Er,cd=(365*400+97)*24*bn;function kr(e,t){return(e%t+t)%t}function dd(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-cd:new Date(e,t,r).valueOf()}function hd(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-cd:Date.UTC(e,t,r)}function j0(e){var t,r;if(e=at(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?hd:dd,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=kr(t+(this._isUTC?0:this.utcOffset()*Er),bn);break;case"minute":t=this._d.valueOf(),t-=kr(t,Er);break;case"second":t=this._d.valueOf(),t-=kr(t,gn);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function G0(e){var t,r;if(e=at(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?hd:dd,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=bn-kr(t+(this._isUTC?0:this.utcOffset()*Er),bn)-1;break;case"minute":t=this._d.valueOf(),t+=Er-kr(t,Er)-1;break;case"second":t=this._d.valueOf(),t+=gn-kr(t,gn)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function q0(){return this._d.valueOf()-(this._offset||0)*6e4}function Z0(){return Math.floor(this.valueOf()/1e3)}function K0(){return new Date(this.valueOf())}function X0(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function J0(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Q0(){return this.isValid()?this.toISOString():null}function eg(){return zo(this)}function tg(){return Ut({},ae(this))}function rg(){return ae(this).overflow}function ig(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr");te("NN",0,0,"eraAbbr");te("NNN",0,0,"eraAbbr");te("NNNN",0,0,"eraName");te("NNNNN",0,0,"eraNarrow");te("y",["y",1],"yo","eraYear");te("y",["yy",2],0,"eraYear");te("y",["yyy",3],0,"eraYear");te("y",["yyyy",4],0,"eraYear");X("N",na);X("NN",na);X("NNN",na);X("NNNN",pg);X("NNNNN",mg);Ee(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var n=r._locale.erasParse(e,i,r._strict);n?ae(r).era=n:ae(r).invalidEra=e});X("y",Rr);X("yy",Rr);X("yyy",Rr);X("yyyy",Rr);X("yo",_g);Ee(["y","yy","yyy","yyyy"],je);Ee(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[je]=r._locale.eraYearOrdinalParse(e,n):t[je]=parseInt(e,10)});function ng(e,t){var r,i,n,s=this._eras||Lt("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":n=j(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=j(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function sg(e,t,r){var i,n,s=this.eras(),o,a,l;for(e=e.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),a=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(l===e)return s[i];break}else if([o,a,l].indexOf(e)>=0)return s[i]}function og(e,t){var r=e.since<=e.until?1:-1;return t===void 0?j(e.since).year():j(e.since).year()+(t-e.offset)*r}function ag(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function lg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function ug(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function cg(){var e,t,r,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return(this.year()-j(n[e].since).year())*r+n[e].offset;return this.year()}function dg(e){return ve(this,"_erasNameRegex")||sa.call(this),e?this._erasNameRegex:this._erasRegex}function hg(e){return ve(this,"_erasAbbrRegex")||sa.call(this),e?this._erasAbbrRegex:this._erasRegex}function fg(e){return ve(this,"_erasNarrowRegex")||sa.call(this),e?this._erasNarrowRegex:this._erasRegex}function na(e,t){return t.erasAbbrRegex(e)}function pg(e,t){return t.erasNameRegex(e)}function mg(e,t){return t.erasNarrowRegex(e)}function _g(e,t){return t._eraYearOrdinalRegex||Rr}function sa(){var e=[],t=[],r=[],i=[],n,s,o,a,l,u=this.eras();for(n=0,s=u.length;n<s;++n)o=Pt(u[n].name),a=Pt(u[n].abbr),l=Pt(u[n].narrow),t.push(o),e.push(a),r.push(l),i.push(o),i.push(a),i.push(l);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100});te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jn(e,t){te(0,[e,e.length],0,t)}jn("gggg","weekYear");jn("ggggg","weekYear");jn("GGGG","isoWeekYear");jn("GGGGG","isoWeekYear");X("G",Yn);X("g",Yn);X("GG",Te,tt);X("gg",Te,tt);X("GGGG",jo,Vo);X("gggg",jo,Vo);X("GGGGG",zn,Hn);X("ggggg",zn,Hn);Ni(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=he(e)});Ni(["gg","GG"],function(e,t,r,i){t[i]=j.parseTwoDigitYear(e)});function gg(e){return fd.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bg(e){return fd.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function vg(){return Dt(this.year(),1,4)}function yg(){return Dt(this.isoWeekYear(),1,4)}function wg(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Cg(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function fd(e,t,r,i,n){var s;return e==null?di(this,i,n).year:(s=Dt(e,i,n),t>s&&(t=s),xg.call(this,e,t,r,i,n))}function xg(e,t,r,i,n){var s=jc(e,t,r,i,n),o=ci(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}te("Q",0,"Qo","quarter");X("Q",Ic);Ee("Q",function(e,t){t[kt]=(he(e)-1)*3});function Eg(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date");X("D",Te,zr);X("DD",Te,tt);X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ee(["D","DD"],gt);Ee("Do",function(e,t){t[gt]=he(e.match(Te)[0])});var pd=Yr("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear");X("DDD",Rn);X("DDDD",Lc);Ee(["DDD","DDDD"],function(e,t,r){r._dayOfYear=he(e)});function kg(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}te("m",["mm",2],0,"minute");X("m",Te,Go);X("mm",Te,tt);Ee(["m","mm"],ct);var Sg=Yr("Minutes",!1);te("s",["ss",2],0,"second");X("s",Te,Go);X("ss",Te,tt);Ee(["s","ss"],St);var Ag=Yr("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)});te(0,["SS",2],0,function(){return~~(this.millisecond()/10)});te(0,["SSS",3],0,"millisecond");te(0,["SSSS",4],0,function(){return this.millisecond()*10});te(0,["SSSSS",5],0,function(){return this.millisecond()*100});te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});X("S",Rn,Ic);X("SS",Rn,tt);X("SSS",Rn,Lc);var $t,md;for($t="SSSS";$t.length<=9;$t+="S")X($t,Rr);function Tg(e,t){t[er]=he(("0."+e)*1e3)}for($t="S";$t.length<=9;$t+="S")Ee($t,Tg);md=Yr("Milliseconds",!1);te("z",0,0,"zoneAbbr");te("zz",0,0,"zoneName");function Pg(){return this._isUTC?"UTC":""}function Dg(){return this._isUTC?"Coordinated Universal Time":""}var H=Oi.prototype;H.add=C0;H.calendar=P0;H.clone=D0;H.diff=F0;H.endOf=G0;H.format=Y0;H.from=U0;H.fromNow=$0;H.to=W0;H.toNow=V0;H.get=zm;H.invalidAt=rg;H.isAfter=M0;H.isBefore=O0;H.isBetween=B0;H.isSame=N0;H.isSameOrAfter=I0;H.isSameOrBefore=L0;H.isValid=eg;H.lang=ld;H.locale=ad;H.localeData=ud;H.max=e0;H.min=Q_;H.parsingFlags=tg;H.set=Ym;H.startOf=j0;H.subtract=x0;H.toArray=X0;H.toObject=J0;H.toDate=K0;H.toISOString=R0;H.inspect=z0;typeof Symbol!="undefined"&&Symbol.for!=null&&(H[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});H.toJSON=Q0;H.toString=H0;H.unix=Z0;H.valueOf=q0;H.creationData=ig;H.eraName=ag;H.eraNarrow=lg;H.eraAbbr=ug;H.eraYear=cg;H.year=Rc;H.isLeapYear=Rm;H.weekYear=gg;H.isoWeekYear=bg;H.quarter=H.quarters=Eg;H.month=Wc;H.daysInMonth=Km;H.week=H.weeks=n_;H.isoWeek=H.isoWeeks=s_;H.weeksInYear=wg;H.weeksInWeekYear=Cg;H.isoWeeksInYear=vg;H.isoWeeksInISOWeekYear=yg;H.date=pd;H.day=H.days=b_;H.weekday=v_;H.isoWeekday=y_;H.dayOfYear=kg;H.hour=H.hours=A_;H.minute=H.minutes=Sg;H.second=H.seconds=Ag;H.millisecond=H.milliseconds=md;H.utcOffset=u0;H.utc=d0;H.local=h0;H.parseZone=f0;H.hasAlignedHourOffset=p0;H.isDST=m0;H.isLocal=g0;H.isUtcOffset=b0;H.isUtc=id;H.isUTC=id;H.zoneAbbr=Pg;H.zoneName=Dg;H.dates=ot("dates accessor is deprecated. Use date instead.",pd);H.months=ot("months accessor is deprecated. Use month instead",Wc);H.years=ot("years accessor is deprecated. Use year instead",Rc);H.zone=ot("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",c0);H.isDSTShifted=ot("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_0);function Mg(e){return Ae(e*1e3)}function Og(){return Ae.apply(null,arguments).parseZone()}function _d(e){return e}var ye=Uo.prototype;ye.calendar=gm;ye.longDateFormat=wm;ye.invalidDate=xm;ye.ordinal=Sm;ye.preparse=_d;ye.postformat=_d;ye.relativeTime=Tm;ye.pastFuture=Pm;ye.set=mm;ye.eras=ng;ye.erasParse=sg;ye.erasConvertYear=og;ye.erasAbbrRegex=hg;ye.erasNameRegex=dg;ye.erasNarrowRegex=fg;ye.months=jm;ye.monthsShort=Gm;ye.monthsParse=Zm;ye.monthsRegex=Jm;ye.monthsShortRegex=Xm;ye.week=e_;ye.firstDayOfYear=i_;ye.firstDayOfWeek=r_;ye.weekdays=f_;ye.weekdaysMin=m_;ye.weekdaysShort=p_;ye.weekdaysParse=g_;ye.weekdaysRegex=w_;ye.weekdaysShortRegex=C_;ye.weekdaysMinRegex=x_;ye.isPM=k_;ye.meridiem=T_;function vn(e,t,r,i){var n=Lt(),s=vt().set(i,t);return n[r](s,e)}function gd(e,t,r){if(Bt(e)&&(t=e,e=void 0),e=e||"",t!=null)return vn(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=vn(e,i,r,"month");return n}function oa(e,t,r,i){typeof e=="boolean"?(Bt(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Bt(t)&&(r=t,t=void 0),t=t||"");var n=Lt(),s=e?n._week.dow:0,o,a=[];if(r!=null)return vn(t,(r+s)%7,i,"day");for(o=0;o<7;o++)a[o]=vn(t,(o+s)%7,i,"day");return a}function Bg(e,t){return gd(e,t,"months")}function Ng(e,t){return gd(e,t,"monthsShort")}function Ig(e,t,r){return oa(e,t,r,"weekdays")}function Lg(e,t,r){return oa(e,t,r,"weekdaysShort")}function Fg(e,t,r){return oa(e,t,r,"weekdaysMin")}Wt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=he(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});j.lang=ot("moment.lang is deprecated. Use moment.locale instead.",Wt);j.langData=ot("moment.langData is deprecated. Use moment.localeData instead.",Lt);var wt=Math.abs;function Hg(){var e=this._data;return this._milliseconds=wt(this._milliseconds),this._days=wt(this._days),this._months=wt(this._months),e.milliseconds=wt(e.milliseconds),e.seconds=wt(e.seconds),e.minutes=wt(e.minutes),e.hours=wt(e.hours),e.months=wt(e.months),e.years=wt(e.years),this}function bd(e,t,r,i){var n=mt(t,r);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function Rg(e,t){return bd(this,e,t,1)}function zg(e,t){return bd(this,e,t,-1)}function nl(e){return e<0?Math.floor(e):Math.ceil(e)}function Yg(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,n,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=nl(ho(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,n=st(e/1e3),i.seconds=n%60,s=st(n/60),i.minutes=s%60,o=st(s/60),i.hours=o%24,t+=st(o/24),l=st(vd(t)),r+=l,t-=nl(ho(l)),a=st(r/12),r%=12,i.days=t,i.months=r,i.years=a,this}function vd(e){return e*4800/146097}function ho(e){return e*146097/4800}function Ug(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=at(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+vd(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ho(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ft(e){return function(){return this.as(e)}}var yd=Ft("ms"),$g=Ft("s"),Wg=Ft("m"),Vg=Ft("h"),jg=Ft("d"),Gg=Ft("w"),qg=Ft("M"),Zg=Ft("Q"),Kg=Ft("y"),Xg=yd;function Jg(){return mt(this)}function Qg(e){return e=at(e),this.isValid()?this[e+"s"]():NaN}function lr(e){return function(){return this.isValid()?this._data[e]:NaN}}var eb=lr("milliseconds"),tb=lr("seconds"),rb=lr("minutes"),ib=lr("hours"),nb=lr("days"),sb=lr("months"),ob=lr("years");function ab(){return st(this.days()/7)}var xt=Math.round,yr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lb(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}function ub(e,t,r,i){var n=mt(e).abs(),s=xt(n.as("s")),o=xt(n.as("m")),a=xt(n.as("h")),l=xt(n.as("d")),u=xt(n.as("M")),c=xt(n.as("w")),d=xt(n.as("y")),h=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=i,lb.apply(null,h)}function cb(e){return e===void 0?xt:typeof e=="function"?(xt=e,!0):!1}function db(e,t){return yr[e]===void 0?!1:t===void 0?yr[e]:(yr[e]=t,e==="s"&&(yr.ss=t-1),!0)}function hb(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=yr,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},yr,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),s=ub(this,!r,i,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Cs=Math.abs;function mr(e){return(e>0)-(e<0)||+e}function Gn(){if(!this.isValid())return this.localeData().invalidDate();var e=Cs(this._milliseconds)/1e3,t=Cs(this._days),r=Cs(this._months),i,n,s,o,a=this.asSeconds(),l,u,c,d;return a?(i=st(e/60),n=st(i/60),e%=60,i%=60,s=st(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=mr(this._months)!==mr(a)?"-":"",c=mr(this._days)!==mr(a)?"-":"",d=mr(this._milliseconds)!==mr(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(n||i||e?"T":"")+(n?d+n+"H":"")+(i?d+i+"M":"")+(e?d+o+"S":"")):"P0D"}var me=Vn.prototype;me.isValid=s0;me.abs=Hg;me.add=Rg;me.subtract=zg;me.as=Ug;me.asMilliseconds=yd;me.asSeconds=$g;me.asMinutes=Wg;me.asHours=Vg;me.asDays=jg;me.asWeeks=Gg;me.asMonths=qg;me.asQuarters=Zg;me.asYears=Kg;me.valueOf=Xg;me._bubble=Yg;me.clone=Jg;me.get=Qg;me.milliseconds=eb;me.seconds=tb;me.minutes=rb;me.hours=ib;me.days=nb;me.weeks=ab;me.months=sb;me.years=ob;me.humanize=hb;me.toISOString=Gn;me.toString=Gn;me.toJSON=Gn;me.locale=ad;me.localeData=ud;me.toIsoString=ot("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gn);me.lang=ld;te("X",0,0,"unix");te("x",0,0,"valueOf");X("x",Yn);X("X",Bm);Ee("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ee("x",function(e,t,r){r._d=new Date(he(e))});//! moment.js
|
|
14
14
|
j.version="2.30.1";fm(Ae);j.fn=H;j.min=t0;j.max=r0;j.now=i0;j.utc=vt;j.unix=Mg;j.months=Bg;j.isDate=Mi;j.locale=Wt;j.invalid=Fn;j.duration=mt;j.isMoment=ft;j.weekdays=Ig;j.parseZone=Og;j.localeData=Lt;j.isDuration=nn;j.monthsShort=Ng;j.weekdaysMin=Fg;j.defineLocale=Jo;j.updateLocale=O_;j.locales=B_;j.weekdaysShort=Lg;j.normalizeUnits=at;j.relativeTimeRounding=cb;j.relativeTimeThreshold=db;j.calendarFormat=T0;j.prototype=H;j.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
@@ -27,13 +27,13 @@ j.version="2.30.1";fm(Ae);j.fn=H;j.min=t0;j.max=r0;j.now=i0;j.utc=vt;j.unix=Mg;j
|
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/var xs;const yn=window,al=yn.trustedTypes,_b=al?al.emptyScript:"",ll=yn.reactiveElementPolyfillSupport,fo={toAttribute(e,t){switch(t){case Boolean:e=e?_b:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},
|
|
30
|
+
*/var xs;const yn=window,al=yn.trustedTypes,_b=al?al.emptyScript:"",ll=yn.reactiveElementPolyfillSupport,fo={toAttribute(e,t){switch(t){case Boolean:e=e?_b:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},wd=(e,t)=>t!==e&&(t==t||e==e),Es={attribute:!0,type:String,converter:fo,reflect:!1,hasChanged:wd},po="finalized";let vr=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((r,i)=>{const n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),t.push(n))}),t}static createProperty(t,r=Es){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){return{get(){return this[r]},set(n){const s=this[t];this[r]=n,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Es}static finalize(){if(this.hasOwnProperty(po))return!1;this[po]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)r.unshift(ol(n))}else t!==void 0&&r.push(ol(t));return r}static _$Ep(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;const r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return mb(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r,i=Es){var n;const s=this.constructor._$Ep(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:fo).toAttribute(r,i.type);this._$El=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(t,r){var i;const n=this.constructor,s=n._$Ev.get(t);if(s!==void 0&&this._$El!==s){const o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:fo;this._$El=s,this[s]=a.fromAttribute(r,o.type),this._$El=null}}requestUpdate(t,r,i){let n=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||wd)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}_$Ej(){return Qe(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};vr[po]=!0,vr.elementProperties=new Map,vr.elementStyles=[],vr.shadowRootOptions={mode:"open"},ll==null||ll({ReactiveElement:vr}),((xs=yn.reactiveElementVersions)!==null&&xs!==void 0?xs:yn.reactiveElementVersions=[]).push("1.6.3");/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/var ks;const wn=window,Br=wn.trustedTypes,ul=Br?Br.createPolicy("lit-html",{createHTML:e=>e}):void 0,mo="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,
|
|
35
|
-
\f\r]`,
|
|
36
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),hl=/'/g,fl=/"/g,
|
|
34
|
+
*/var ks;const wn=window,Br=wn.trustedTypes,ul=Br?Br.createPolicy("lit-html",{createHTML:e=>e}):void 0,mo="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,Cd="?"+zt,gb=`<${Cd}>`,or=document,fi=()=>or.createComment(""),pi=e=>e===null||typeof e!="object"&&typeof e!="function",xd=Array.isArray,bb=e=>xd(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ss=`[
|
|
35
|
+
\f\r]`,Kr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cl=/-->/g,dl=/>/g,Jt=RegExp(`>|${Ss}(?:([^\\s"'>=/]+)(${Ss}*=${Ss}*(?:[^
|
|
36
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),hl=/'/g,fl=/"/g,Ed=/^(?:script|style|textarea|title)$/i,Nr=Symbol.for("lit-noChange"),We=Symbol.for("lit-nothing"),pl=new WeakMap,tr=or.createTreeWalker(or,129,null,!1);function kd(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(t):t}const vb=(e,t)=>{const r=e.length-1,i=[];let n,s=t===2?"<svg>":"",o=Kr;for(let a=0;a<r;a++){const l=e[a];let u,c,d=-1,h=0;for(;h<l.length&&(o.lastIndex=h,c=o.exec(l),c!==null);)h=o.lastIndex,o===Kr?c[1]==="!--"?o=cl:c[1]!==void 0?o=dl:c[2]!==void 0?(Ed.test(c[2])&&(n=RegExp("</"+c[2],"g")),o=Jt):c[3]!==void 0&&(o=Jt):o===Jt?c[0]===">"?(o=n!=null?n:Kr,d=-1):c[1]===void 0?d=-2:(d=o.lastIndex-c[2].length,u=c[1],o=c[3]===void 0?Jt:c[3]==='"'?fl:hl):o===fl||o===hl?o=Jt:o===cl||o===dl?o=Kr:(o=Jt,n=void 0);const f=o===Jt&&e[a+1].startsWith("/>")?" ":"";s+=o===Kr?l+gb:d>=0?(i.push(u),l.slice(0,d)+mo+l.slice(d)+zt+f):l+zt+(d===-2?(i.push(void 0),a):f)}return[kd(e,s+(e[r]||"<?>")+(t===2?"</svg>":"")),i]};class mi{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[u,c]=vb(t,r);if(this.el=mi.createElement(u,i),tr.currentNode=this.el.content,r===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(n=tr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const h of n.getAttributeNames())if(h.endsWith(mo)||h.startsWith(zt)){const f=c[o++];if(d.push(h),f!==void 0){const v=n.getAttribute(f.toLowerCase()+mo).split(zt),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:v,ctor:g[1]==="."?wb:g[1]==="?"?xb:g[1]==="@"?Eb:qn})}else l.push({type:6,index:s})}for(const h of d)n.removeAttribute(h)}if(Ed.test(n.tagName)){const d=n.textContent.split(zt),h=d.length-1;if(h>0){n.textContent=Br?Br.emptyScript:"";for(let f=0;f<h;f++)n.append(d[f],fi()),tr.nextNode(),l.push({type:2,index:++s});n.append(d[h],fi())}}}else if(n.nodeType===8)if(n.data===Cd)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(zt,d+1))!==-1;)l.push({type:7,index:s}),d+=zt.length-1}s++}}static createElement(t,r){const i=or.createElement("template");return i.innerHTML=t,i}}function Ir(e,t,r=e,i){var n,s,o,a;if(t===Nr)return t;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl;const u=pi(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(e),l._$AT(e,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(t=Ir(e,l._$AS(e,t.values),l,i)),t}class yb{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;const{el:{content:i},parts:n}=this._$AD,s=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:or).importNode(i,!0);tr.currentNode=s;let o=tr.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ii(o,o.nextSibling,this,t):u.type===1?c=new u.ctor(o,u.name,u.strings,this,t):u.type===6&&(c=new kb(o,this,t)),this._$AV.push(c),u=n[++l]}a!==(u==null?void 0:u.index)&&(o=tr.nextNode(),a++)}return tr.currentNode=or,s}v(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}}class Ii{constructor(t,r,i,n){var s;this.type=2,this._$AH=We,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cp=(s=n==null?void 0:n.isConnected)===null||s===void 0||s}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ir(this,t,r),pi(t)?t===We||t==null||t===""?(this._$AH!==We&&this._$AR(),this._$AH=We):t!==this._$AH&&t!==Nr&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):bb(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==We&&pi(this._$AH)?this._$AA.nextSibling.data=t:this.$(or.createTextNode(t)),this._$AH=t}g(t){var r;const{values:i,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=mi.createElement(kd(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.v(i);else{const o=new yb(s,this),a=o.u(this.options);o.v(i),this.$(a),this._$AH=o}}_$AC(t){let r=pl.get(t.strings);return r===void 0&&pl.set(t.strings,r=new mi(t)),r}T(t){xd(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,n=0;for(const s of t)n===r.length?r.push(i=new Ii(this.k(fi()),this.k(fi()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}}class qn{constructor(t,r,i,n,s){this.type=1,this._$AH=We,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=We}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,i,n){const s=this.strings;let o=!1;if(s===void 0)t=Ir(this,t,r,0),o=!pi(t)||t!==this._$AH&&t!==Nr,o&&(this._$AH=t);else{const a=t;let l,u;for(t=s[0],l=0;l<s.length-1;l++)u=Ir(this,a[i+l],r,l),u===Nr&&(u=this._$AH[l]),o||(o=!pi(u)||u!==this._$AH[l]),u===We?t=We:t!==We&&(t+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(t)}j(t){t===We?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class wb extends qn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===We?void 0:t}}const Cb=Br?Br.emptyScript:"";class xb extends qn{constructor(){super(...arguments),this.type=4}j(t){t&&t!==We?this.element.setAttribute(this.name,Cb):this.element.removeAttribute(this.name)}}class Eb extends qn{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){var i;if((t=(i=Ir(this,t,r,0))!==null&&i!==void 0?i:We)===Nr)return;const n=this._$AH,s=t===We&&n!==We||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==We&&(n===We||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class kb{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Ir(this,t)}}const ml=wn.litHtmlPolyfillSupport;ml==null||ml(mi,Ii),((ks=wn.litHtmlVersions)!==null&&ks!==void 0?ks:wn.litHtmlVersions=[]).push("2.8.0");const Sb=(e,t,r)=>{var i,n;const s=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:t;let o=s._$litPart$;if(o===void 0){const a=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new Ii(t.insertBefore(fi(),a),a,void 0,r!=null?r:{})}return o._$AI(e),o};/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright 2017 Google LLC
|
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -45,11 +45,11 @@ j.version="2.30.1";fm(Ae);j.fn=H;j.min=t0;j.max=r0;j.now=i0;j.utc=vt;j.unix=Mg;j
|
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
47
47
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
-
*/const
|
|
48
|
+
*/const Sd=[];function Ad(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function Tb(e){return Ad(customElements.get(e))}function Pb(e=[]){return[e].flat(1/0).filter(t=>t instanceof ua?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Be(e,t,r={}){e&&Tb(e)&&console.warn(`The custom element definition for "${e}"
|
|
49
49
|
was finalized before a style module was registered.
|
|
50
50
|
Make sure to add component specific style modules before
|
|
51
|
-
importing the corresponding custom element.`),t=Pb(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):
|
|
52
|
-
`),t.content.appendChild(r)}function Bb(e){const t=`${e}-default-theme`,r=_o().filter(i=>i.moduleId!==t&&Db(i.themeFor,e)).map(i=>jr(
|
|
51
|
+
importing the corresponding custom element.`),t=Pb(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):Sd.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId})}function _o(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Sd}function Db(e,t){return(e||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(t))}function Mb(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function Td(e){const t=[];return e.include&&[].concat(e.include).forEach(r=>{const i=_o().find(n=>n.moduleId===r);i?t.push(...Td(i),...i.styles):console.warn(`Included moduleId ${r} not found in style registry`)},e.styles),t}function Ob(e,t){const r=document.createElement("style");r.innerHTML=e.map(i=>i.cssText).join(`
|
|
52
|
+
`),t.content.appendChild(r)}function Bb(e){const t=`${e}-default-theme`,r=_o().filter(i=>i.moduleId!==t&&Db(i.themeFor,e)).map(i=>jr(Kt({},i),{styles:[...Td(i),...i.styles],includePriority:Mb(i.moduleId)})).sort((i,n)=>n.includePriority-i.includePriority);return r.length>0?r:_o().filter(i=>i.moduleId===t)}const ur=e=>class extends Ab(e){static finalize(){if(super.finalize(),this.elementStyles)return;const r=this.prototype._template;!r||Ad(this)||Ob(this.getStylesForThis(),r)}static finalizeStyles(r){const i=this.getStylesForThis();return r?[...super.finalizeStyles(r),...i]:i}static getStylesForThis(){const r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...i,...Bb(this.is)];const n=this.__themes.flatMap(s=>s.styles);return n.filter((s,o)=>o===n.lastIndexOf(s))}};/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
55
55
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -611,7 +611,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
611
611
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
612
612
|
Code distributed by Google as part of the polymer project is also
|
|
613
613
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
614
|
-
*/const
|
|
614
|
+
*/const Pd=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Ub=Pd&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let $b=window.Polymer&&window.Polymer.rootPath||ha(document.baseURI||window.location.href),Cn=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let xn=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Wb=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Dd=window.Polymer&&window.Polymer.legacyOptimizations||!1,Md=window.Polymer&&window.Polymer.legacyWarnings||!1,Vb=window.Polymer&&window.Polymer.syncInitialRender||!1,go=window.Polymer&&window.Polymer.legacyUndefined||!1,jb=window.Polymer&&window.Polymer.orderedComputed||!1,gl=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Gb=window.Polymer&&window.Polymer.fastDomIf||!1,bl=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let qb=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
615
615
|
@license
|
|
616
616
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
617
617
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -627,7 +627,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
627
627
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
628
628
|
Code distributed by Google as part of the polymer project is also
|
|
629
629
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
630
|
-
*/let fa={},
|
|
630
|
+
*/let fa={},Od={};function vl(e,t){fa[e]=Od[e.toLowerCase()]=t}function yl(e){return fa[e]||Od[e.toLowerCase()]}function Kb(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class _i extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,r){if(t){let i=yl(t);return i&&r?i.querySelector(r):i}return null}attributeChangedCallback(t,r,i,n){r!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=si(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ha(r)}return this.__assetpath}register(t){if(t=t||this.id,t){if(xn&&yl(t)!==void 0)throw vl(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,vl(t,this),Kb(this)}}}_i.prototype.modules=fa;customElements.define("dom-module",_i);/**
|
|
631
631
|
@license
|
|
632
632
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
633
633
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -635,7 +635,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
635
635
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
636
636
|
Code distributed by Google as part of the polymer project is also
|
|
637
637
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
638
|
-
*/const
|
|
638
|
+
*/const Xb="link[rel=import][type~=css]",Jb="include",wl="shady-unscoped";function Bd(e){return _i.import(e)}function Cl(e){let t=e.body?e.body:e;const r=da(t.textContent,e.baseURI),i=document.createElement("style");return i.textContent=r,i}function Qb(e){const t=e.trim().split(/\s+/),r=[];for(let i=0;i<t.length;i++)r.push(...ev(t[i]));return r}function ev(e){const t=Bd(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const r=[];r.push(...Id(t));const i=t.querySelector("template");i&&r.push(...Nd(i,t.assetpath)),t._styles=r}return t._styles}function Nd(e,t){if(!e._styles){const r=[],i=e.content.querySelectorAll("style");for(let n=0;n<i.length;n++){let s=i[n],o=s.getAttribute(Jb);o&&r.push(...Qb(o).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(s.textContent=da(s.textContent,t)),r.push(s)}e._styles=r}return e._styles}function tv(e){let t=Bd(e);return t?Id(t):[]}function Id(e){const t=[],r=e.querySelectorAll(Xb);for(let i=0;i<r.length;i++){let n=r[i];if(n.import){const s=n.import,o=n.hasAttribute(wl);if(o&&!s._unscopedStyle){const a=Cl(s);a.setAttribute(wl,""),s._unscopedStyle=a}else s._style||(s._style=Cl(s));t.push(o?s._unscopedStyle:s._style)}}return t}/**
|
|
639
639
|
@license
|
|
640
640
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
641
641
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -651,7 +651,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
651
651
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
652
652
|
Code distributed by Google as part of the polymer project is also
|
|
653
653
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
654
|
-
*/function bo(e){return e.indexOf(".")>=0}function cr(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function
|
|
654
|
+
*/function bo(e){return e.indexOf(".")>=0}function cr(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function Ld(e,t){return e.indexOf(t+".")===0}function gi(e,t){return t.indexOf(e+".")===0}function bi(e,t,r){return t+r.slice(e.length)}function rv(e,t){return e===t||Ld(e,t)||gi(e,t)}function ti(e){if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let i=e[r].toString().split(".");for(let n=0;n<i.length;n++)t.push(i[n])}return t.join(".")}else return e}function Fd(e){return Array.isArray(e)?ti(e).split("."):e.toString().split(".")}function Ke(e,t,r){let i=e,n=Fd(t);for(let s=0;s<n.length;s++){if(!i)return;let o=n[s];i=i[o]}return r&&(r.path=n.join(".")),i}function xl(e,t,r){let i=e,n=Fd(t),s=n[n.length-1];if(n.length>1){for(let o=0;o<n.length-1;o++){let a=n[o];if(i=i[a],!i)return}i[s]=r}else i[t]=r;return n.join(".")}/**
|
|
655
655
|
@license
|
|
656
656
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
657
657
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -659,7 +659,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
659
659
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
660
660
|
Code distributed by Google as part of the polymer project is also
|
|
661
661
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
662
|
-
*/const En={},iv=/-[a-z]/g,nv=/([A-Z])/g;function
|
|
662
|
+
*/const En={},iv=/-[a-z]/g,nv=/([A-Z])/g;function Hd(e){return En[e]||(En[e]=e.indexOf("-")<0?e:e.replace(iv,t=>t[1].toUpperCase()))}function Kn(e){return En[e]||(En[e]=e.replace(nv,"-$1").toLowerCase())}/**
|
|
663
663
|
@license
|
|
664
664
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
665
665
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -667,7 +667,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
667
667
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
668
668
|
Code distributed by Google as part of the polymer project is also
|
|
669
669
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
670
|
-
*/let sv=0,
|
|
670
|
+
*/let sv=0,Rd=0,Sr=[],ov=0,vo=!1,zd=document.createTextNode("");new window.MutationObserver(av).observe(zd,{characterData:!0});function av(){vo=!1;const e=Sr.length;for(let t=0;t<e;t++){let r=Sr[t];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Sr.splice(0,e),Rd+=e}const lv={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Yd={run(e){return vo||(vo=!0,zd.textContent=ov++),Sr.push(e),sv++},cancel(e){const t=e-Rd;if(t>=0){if(!Sr[t])throw new Error("invalid async handle: "+e);Sr[t]=null}}};/**
|
|
671
671
|
@license
|
|
672
672
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
673
673
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -675,7 +675,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
675
675
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
676
676
|
Code distributed by Google as part of the polymer project is also
|
|
677
677
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
678
|
-
*/const uv=Ud
|
|
678
|
+
*/const uv=Yd,Ud=Ue(e=>{class t extends e{static createProperties(i){const n=this.prototype;for(let s in i)s in n||n._createPropertyAccessor(s)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,n){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,n))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[i];return n||(n=this.constructor.attributeNameForProperty(i),this.__dataAttributes[n]=i),n}_definePropertyAccessor(i,n){Object.defineProperty(this,i,{get(){return this.__data[i]},set:n?function(){}:function(s){this._setPendingProperty(i,s,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,n){this._setPendingProperty(i,n)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,n,s){let o=this.__data[i],a=this._shouldPropertyChange(i,n,o);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=o),this.__data[i]=n,this.__dataPending[i]=n),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,uv.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 i=this.__data,n=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(i,n,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,n,s)),this.__dataCounter--}_shouldPropertiesChange(i,n,s){return!!n}_propertiesChanged(i,n,s){}_shouldPropertyChange(i,n,s){return s!==n&&(s===s||n===n)}attributeChangedCallback(i,n,s,o){n!==s&&this._attributeToProperty(i,s),super.attributeChangedCallback&&super.attributeChangedCallback(i,n,s,o)}_attributeToProperty(i,n,s){if(!this.__serializing){const o=this.__dataAttributes,a=o&&o[i]||i;this[a]=this._deserializeValue(n,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,n,s){this.__serializing=!0,s=arguments.length<3?this[i]:s,this._valueToNodeAttribute(this,s,n||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,n,s){const o=this._serializeValue(n);(s==="class"||s==="name"||s==="slot")&&(i=Ve(i)),o===void 0?i.removeAttribute(s):i.setAttribute(s,o===""&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,n){switch(n){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
679
679
|
@license
|
|
680
680
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
681
681
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -683,7 +683,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
683
683
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
684
684
|
Code distributed by Google as part of the polymer project is also
|
|
685
685
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
686
|
-
*/const
|
|
686
|
+
*/const $d={};let qi=HTMLElement.prototype;for(;qi;){let e=Object.getOwnPropertyNames(qi);for(let t=0;t<e.length;t++)$d[e[t]]=!0;qi=Object.getPrototypeOf(qi)}const cv=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function dv(e,t){if(!$d[t]){let r=e[t];r!==void 0&&(e.__data?e._setPendingProperty(t,r):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=r))}}const hv=Ue(e=>{const t=Ud(e);class r extends t{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let s=0;s<n.length;s++)this.prototype._createPropertyAccessor(Hd(n[s]))}static attributeNameForProperty(n){return Kn(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let s in n)this._setProperty(s,n[s])}_ensureAttribute(n,s){const o=this;o.hasAttribute(n)||this._valueToNodeAttribute(o,s,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(cv(n))return n;try{return JSON.stringify(n)}catch(s){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,s){let o;switch(s){case Object:try{o=JSON.parse(n)}catch(a){o=n}break;case Array:try{o=JSON.parse(n)}catch(a){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:o=isNaN(n)?String(n):Number(n),o=new Date(o);break;default:o=super._deserializeValue(n,s);break}return o}_definePropertyAccessor(n,s){dv(this,n),super._definePropertyAccessor(n,s)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return r});/**
|
|
687
687
|
@license
|
|
688
688
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
689
689
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -691,7 +691,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
691
691
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
692
692
|
Code distributed by Google as part of the polymer project is also
|
|
693
693
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
694
|
-
*/const fv={"dom-if":!0,"dom-repeat":!0};let El=!1,kl=!1;function pv(){if(!El){El=!0;const e=document.createElement("textarea");e.placeholder="a",kl=e.placeholder===e.textContent}return kl}function mv(e){pv()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const _v=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,r,i)=>{const n=r.getAttribute(i);if(e&&i.startsWith("on-")){t.setAttribute(i,e.createScript(n,i));return}t.setAttribute(i,n)}})();function gv(e){let t=e.getAttribute("is");if(t&&fv[t]){let r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const{name:i}=r.attributes[0];_v(e,r,i),r.removeAttribute(i)}}return e}function
|
|
694
|
+
*/const fv={"dom-if":!0,"dom-repeat":!0};let El=!1,kl=!1;function pv(){if(!El){El=!0;const e=document.createElement("textarea");e.placeholder="a",kl=e.placeholder===e.textContent}return kl}function mv(e){pv()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const _v=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,r,i)=>{const n=r.getAttribute(i);if(e&&i.startsWith("on-")){t.setAttribute(i,e.createScript(n,i));return}t.setAttribute(i,n)}})();function gv(e){let t=e.getAttribute("is");if(t&&fv[t]){let r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const{name:i}=r.attributes[0];_v(e,r,i),r.removeAttribute(i)}}return e}function Wd(e,t){let r=t.parentInfo&&Wd(e,t.parentInfo);if(r){for(let i=r.firstChild,n=0;i;i=i.nextSibling)if(t.parentIndex===n++)return i}else return e}function bv(e,t,r,i){i.id&&(t[i.id]=r)}function vv(e,t,r){if(r.events&&r.events.length)for(let i=0,n=r.events,s;i<n.length&&(s=n[i]);i++)e._addMethodEventListenerToNode(t,s.name,s.value,e)}function yv(e,t,r,i){r.templateInfo&&(t._templateInfo=r.templateInfo,t._parentTemplateInfo=i)}function wv(e,t,r){return e=e._methodHost||e,function(n){e[r]?e[r](n,n.detail):console.warn("listener method `"+r+"` not defined")}}const Cv=Ue(e=>{class t extends e{static _parseTemplate(i,n){if(!i._templateInfo){let s=i._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!n,s.stripWhiteSpace=n&&n.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,s,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,n,s){return this._parseTemplateNode(i.content,n,s)}static _parseTemplateNode(i,n,s){let o=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(a,n,s)||o:a.localName==="slot"&&(n.hasInsertionPoint=!0),mv(a),a.firstChild&&this._parseTemplateChildNodes(a,n,s),a.hasAttributes&&a.hasAttributes()&&(o=this._parseTemplateNodeAttributes(a,n,s)||o),o||s.noted}static _parseTemplateChildNodes(i,n,s){if(!(i.localName==="script"||i.localName==="style"))for(let o=i.firstChild,a=0,l;o;o=l){if(o.localName=="template"&&(o=gv(o)),l=o.nextSibling,o.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)o.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(n.stripWhiteSpace&&!o.textContent.trim()){i.removeChild(o);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(o,n,u)&&(u.infoIndex=n.nodeInfoList.push(u)-1),o.parentNode&&a++}}static _parseTemplateNestedTemplate(i,n,s){let o=i,a=this._parseTemplate(o,n);return(a.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,n,s){let o=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)o=this._parseTemplateNodeAttribute(i,n,s,u.name,u.value)||o;return o}static _parseTemplateNodeAttribute(i,n,s,o,a){return o.slice(0,3)==="on-"?(i.removeAttribute(o),s.events=s.events||[],s.events.push({name:o.slice(3),value:a}),!0):o==="id"?(s.id=a,!0):!1}static _contentForTemplate(i){let n=i._templateInfo;return n&&n.content||i.content}_stampTemplate(i,n){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),n=n||this.constructor._parseTemplate(i);let s=n.nodeInfoList,o=n.content||i.content,a=document.importNode(o,!0);a.__noInsertionPoint=!n.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,c=s.length,d;u<c&&(d=s[u]);u++){let h=l[u]=Wd(a,d);bv(this,a.$,h,d),yv(this,h,d,n),vv(this,h,d)}return a=a,a}_addMethodEventListenerToNode(i,n,s,o){o=o||i;let a=wv(o,n,s);return this._addEventListenerToNode(i,n,a),a}_addEventListenerToNode(i,n,s){i.addEventListener(n,s)}_removeEventListenerFromNode(i,n,s){i.removeEventListener(n,s)}}return t});/**
|
|
695
695
|
* @fileoverview
|
|
696
696
|
* @suppress {checkPrototypalTypes}
|
|
697
697
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -701,7 +701,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
701
701
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
702
702
|
* Google as part of the polymer project is also subject to an additional IP
|
|
703
703
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
704
|
-
*/let vi=0;const yi=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},jd="__computeInfo",xv=/[A-Z]/;function Ps(e,t,r){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),r))for(let n in i){let s=i[n],o=i[n]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return i}function ri(e,t,r,i,n,s){if(t){let o=!1;const a=vi++;for(let l in r){let u=n?cr(l):l,c=t[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!n||pa(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,i,f.info,n,s),o=!0)}return o}return!1}function Ev(e,t,r,i,n,s,o,a){let l=!1,u=o?cr(i):i,c=t[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==r)&&(!o||pa(i,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,i,n,s,f.info,o,a),l=!0);return l}function pa(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&Fd(r,e))||!!(t.wildcard&&gi(r,e))}else return!0}function Sl(e,t,r,i,n){let s=typeof n.method=="string"?e[n.method]:n.method,o=n.property;s?s.call(e,e.__data[o],i[o]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function kv(e,t,r,i,n){let s=e[ge.NOTIFY],o,a=vi++;for(let u in t)t[u]&&(s&&Ev(e,s,a,u,r,i,n)||n&&Sv(e,u,r))&&(o=!0);let l;o&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sv(e,t,r){let i=cr(t);if(i!==t){let n=Xn(i)+"-changed";return Gd(e,n,r[t],t),!0}return!1}function Gd(e,t,r,i){let n={value:r,queueProperty:!0};i&&(n.path=i),Ve(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function Av(e,t,r,i,n,s){let a=(s?cr(t):t)!=t?t:null,l=a?Xe(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),Gd(e,n.eventName,l,a)}function Tv(e,t,r,i,n){let s,o=e.detail,a=o&&o.path;a?(i=bi(r,i,a),s=o&&o.value):s=e.currentTarget[r],s=n?!s:s,(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,s,!0,!!a)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function Pv(e,t,r,i,n){let s=e.__data[t];Cn&&(s=Cn(s,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,s)}function Dv(e,t,r,i){let n=e[ge.COMPUTE];if(n)if(jb){vi++;const s=Ov(e),o=[];for(let l in t)Al(l,n,o,s,i);let a;for(;a=o.shift();)qd(e,"",t,r,a)&&Al(a.methodInfo,n,o,s,i);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;ri(e,n,s,r,i);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Mv=(e,t,r)=>{let i=0,n=t.length-1,s=-1;for(;i<=n;){const o=i+n>>1,a=r.get(t[o].methodInfo)-r.get(e.methodInfo);if(a<0)i=o+1;else if(a>0)n=o-1;else{s=o;break}}s<0&&(s=n+1),t.splice(s,0,e)},Al=(e,t,r,i,n)=>{const s=n?cr(e):e,o=t[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==vi&&(!n||pa(e,l.trigger))&&(l.info.lastRun=vi,Mv(l.info,r,i))}};function Ov(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[ge.COMPUTE];let{counts:i,ready:n,total:s}=Bv(e),o;for(;o=n.shift();){t.set(o,t.size);const a=r[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--i[u]===0&&n.push(u)})}s!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Bv(e){const t=e[jd],r={},i=e[ge.COMPUTE],n=[];let s=0;for(let o in t){const a=t[o];s+=r[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in i)t[o]||n.push(o);return{counts:r,ready:n,total:s}}function qd(e,t,r,i,n){let s=yo(e,t,r,i,n);if(s===yi)return!1;let o=n.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function Nv(e,t,r){let i=e.__dataLinkedPaths;if(i){let n;for(let s in i){let o=i[s];gi(s,t)?(n=bi(s,o,t),e._setPendingPropertyOrPath(n,r,!0,!0)):gi(o,t)&&(n=bi(o,s,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}}function Ds(e,t,r,i,n,s,o){r.bindings=r.bindings||[];let a={kind:i,target:n,parts:s,literal:o,isCompound:s.length!==1};if(r.bindings.push(a),Rv(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Xn(n)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Iv(e,t,a,c,l)}}function Iv(e,t,r,i,n){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,o={index:n,binding:r,part:i,evaluator:e};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=Xd(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Lv,info:o,trigger:l})}}}function Lv(e,t,r,i,n,s,o){let a=o[n.index],l=n.binding,u=n.part;if(s&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=r[t];t=bi(u.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&e._enqueueClient(a)}else{let c=n.evaluator._evaluateBinding(e,u,t,r,i,s);c!==yi&&Fv(e,a,l,u,c)}}function Fv(e,t,r,i,n){if(n=Hv(t,n,r,i),Cn&&(n=Cn(n,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,n,r.target);else{let s=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][s])&&t._setPendingProperty(s,n)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,n)}}function Hv(e,t,r,i){if(r.isCompound){let n=e.__dataCompoundStorage[r.target];n[i.compoundIndex]=t,t=n.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function Rv(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function zv(e,t){let{nodeList:r,nodeInfoList:i}=t;if(i.length)for(let n=0;n<i.length;n++){let s=i[n],o=r[n],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Yv(o,u),Uv(o,e,u)}o.__dataHost=e}}function Yv(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,n=new Array(i.length);for(let o=0;o<i.length;o++)n[o]=i[o].literal;let s=t.target;r[s]=n,t.literal&&t.kind=="property"&&(s==="className"&&(e=Ve(e)),e[s]=t.literal)}}function Uv(e,t,r){if(r.listenerEvent){let i=r.parts[0];e.addEventListener(r.listenerEvent,function(n){Tv(n,t,r.target,i.source,i.negate)})}}function Tl(e,t,r,i,n,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:n,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:i,info:o,trigger:l});return s&&e._addPropertyEffect(t.methodName,r,{fn:i,info:o}),o}function yo(e,t,r,i,n){let s=e._methodHost||e,o=s[n.methodName];if(o){let a=e._marshalArgs(n.args,t,r);return a===yi?yi:o.apply(s,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const $v=[],Zd="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Wv="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Vv="(?:'(?:[^'\\\\]|\\\\.)*')",jv='(?:"(?:[^"\\\\]|\\\\.)*")',Gv="(?:"+Vv+"|"+jv+")",Pl="(?:("+Zd+"|"+Wv+"|"+Gv+")\\s*)",qv="(?:"+Pl+"(?:,\\s*"+Pl+")*)",Zv="(?:\\(\\s*(?:"+qv+"?)\\)\\s*)",Xv="("+Zd+"\\s*"+Zv+"?)",Kv="(\\[\\[|{{)\\s*",Jv="(?:]]|}})",Qv="(?:(!)\\s*)?",ey=Kv+Qv+Xv+Jv,Dl=new RegExp(ey,"g");function Ml(e){let t="";for(let r=0;r<e.length;r++){let i=e[r].literal;t+=i||""}return t}function Ms(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:$v};if(t[2].trim()){let n=t[2].replace(/\\,/g,",").split(",");return ty(n,i)}else return i}return null}function ty(e,t){return t.args=e.map(function(r){let i=Xd(r);return i.literal||(t.static=!1),i},this),t}function Xd(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=cr(t),r.structured=bo(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Ol(e,t,r){let i=Xe(e,r);return i===void 0&&(i=t[r]),i}function Kd(e,t,r,i){const n={indexSplices:i};go&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),go&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function Kr(e,t,r,i,n,s){Kd(e,t,r,[{index:i,addedCount:n,removed:s,object:t,type:"splice"}])}function ry(e){return e[0].toUpperCase()+e.substring(1)}const ma=Ue(e=>{const t=Cv(hv(e));class r extends t{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(Jr.length){let n=Jr[Jr.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let s=this[ge.READ_ONLY];for(let o in n)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=n[o])}_addPropertyEffect(n,s,o){this._createPropertyAccessor(n,s==ge.READ_ONLY);let a=Ps(this,s,!0)[n];a||(a=this[s][n]=[]),a.push(o)}_removePropertyEffect(n,s,o){let a=Ps(this,s,!0)[n],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,s){let o=this[s];return!!(o&&o[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,ge.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,ge.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,ge.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,ge.COMPUTE)}_setPendingPropertyOrPath(n,s,o,a){if(a||cr(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=Xe(this,n);if(n=xl(this,n,s),!n||!super._shouldPropertyChange(n,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,s,o))return Nv(this,n,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,s,o);this[n]=s}return!1}_setUnmanagedPropertyToNode(n,s,o){(o!==n[s]||typeof o=="object")&&(s==="className"&&(n=Ve(n)),n[s]=o)}_setPendingProperty(n,s,o){let a=this.__dataHasPaths&&bo(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,s,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=s:this.__data[n]=s,this.__dataPending[n]=s,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=o),!0):!1}_setProperty(n,s){this._setPendingProperty(n,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let s=0;s<n.length;s++){let o=n[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,s){for(let o in n)(s||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Dv(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),ri(this,this[ge.REFLECT],s,o,a),ri(this,this[ge.OBSERVE],s,o,a),l&&kv(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,s,o){this[ge.PROPAGATE]&&ri(this,this[ge.PROPAGATE],n,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,s,o)}_runEffectsForTemplate(n,s,o,a){const l=(u,c)=>{ri(this,n.propertyEffects,u,o,c,n.nodeList);for(let d=n.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,o,c)};n.runEffects?n.runEffects(l,s,a):l(s,a)}linkPaths(n,s){n=ti(n),s=ti(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=s}unlinkPaths(n){n=ti(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,s){let o={path:""},a=Xe(this,n,o);Kd(this,a,o.path,s)}get(n,s){return Xe(s||this,n)}set(n,s,o){o?xl(o,n,s):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s,!0)&&this._invalidateProperties()}push(n,...s){let o={path:""},a=Xe(this,n,o),l=a.length,u=a.push(...s);return s.length&&Kr(this,a,o.path,l,s.length,[]),u}pop(n){let s={path:""},o=Xe(this,n,s),a=!!o.length,l=o.pop();return a&&Kr(this,o,s.path,o.length,0,[l]),l}splice(n,s,o,...a){let l={path:""},u=Xe(this,n,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,o,...a),(a.length||c.length)&&Kr(this,u,l.path,s,a.length,c),c}shift(n){let s={path:""},o=Xe(this,n,s),a=!!o.length,l=o.shift();return a&&Kr(this,o,s.path,0,0,[l]),l}unshift(n,...s){let o={path:""},a=Xe(this,n,o),l=a.unshift(...s);return s.length&&Kr(this,a,o.path,0,s.length,[]),l}notifyPath(n,s){let o;if(arguments.length==1){let a={path:""};s=Xe(this,n,a),o=a.path}else Array.isArray(n)?o=ti(n):o=n;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,s){this._addPropertyEffect(n,ge.READ_ONLY),s&&(this["_set"+ry(n)]=function(o){this._setProperty(n,o)})}_createPropertyObserver(n,s,o){let a={property:n,method:s,dynamicFn:!!o};this._addPropertyEffect(n,ge.OBSERVE,{fn:Sl,info:a,trigger:{name:n}}),o&&this._addPropertyEffect(s,ge.OBSERVE,{fn:Sl,info:a,trigger:{name:s}})}_createMethodObserver(n,s){let o=Ms(n);if(!o)throw new Error("Malformed observer expression '"+n+"'");Tl(this,o,ge.OBSERVE,yo,null,s)}_createNotifyingProperty(n){this._addPropertyEffect(n,ge.NOTIFY,{fn:Av,info:{eventName:Xn(n)+"-changed",property:n}})}_createReflectedProperty(n){let s=this.constructor.attributeNameForProperty(n);s[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,ge.REFLECT,{fn:Pv,info:{attrName:s}})}_createComputedProperty(n,s,o){let a=Ms(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Tl(this,a,ge.COMPUTE,qd,n,o);Ps(this,jd)[n]=l}_marshalArgs(n,s,o){const a=this.__data,l=[];for(let u=0,c=n.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:v,literal:g}=n[u];if(!g)if(f){const w=gi(d,s),b=Ol(a,o,w?s:d);v={path:w?s:d,value:b,base:w?Xe(a,d):b}}else v=h?Ol(a,o,d):a[d];if(go&&!this._overrideLegacyUndefined&&v===void 0&&n.length>1)return yi;l[u]=v}return l}static addPropertyEffect(n,s,o){this.prototype._addPropertyEffect(n,s,o)}static createPropertyObserver(n,s,o){this.prototype._createPropertyObserver(n,s,o)}static createMethodObserver(n,s){this.prototype._createMethodObserver(n,s)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,s){this.prototype._createReadOnlyProperty(n,s)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,s,o){this.prototype._createComputedProperty(n,s,o)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,s){let o=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=n._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(n,s,o){let a=n.hostProps=n.hostProps||{};a[s]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(n,s){s=s||this._bindTemplate(n,!0),Jr.push(this);let o=super._stampTemplate(n,s);if(Jr.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,zv(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(n){const s=n.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let d=u[c];Ve(Ve(d).parentNode).removeChild(d)}}static _parseTemplateNode(n,s,o){let a=t._parseTemplateNode.call(this,n,s,o);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,s);l&&(n.textContent=Ml(l)||" ",Ds(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,s,o,a,l){let u=this._parseBindings(l,s);if(u){let c=a,d="property";xv.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=Ml(u);return h&&d=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&c==="value"&&n.setAttribute(c,""),n.removeAttribute(c),d==="property"&&(a=Rd(a)),Ds(this,s,o,d,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,n,s,o,a,l)}static _parseTemplateNestedTemplate(n,s,o){let a=t._parseTemplateNestedTemplate.call(this,n,s,o);const l=n.parentNode,u=o.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";gl&&(c||d)&&(l.removeChild(n),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let h=u.hostProps;if(Gb&&c)h&&(s.hostProps=Object.assign(s.hostProps||{},h),gl||(o.parentInfo.noted=!0));else{let f="{";for(let v in h){let g=[{mode:f,source:v,dependencies:[v],hostProp:!0}];Ds(this,s,o,"property","_host_"+v,g)}}return a}static _parseBindings(n,s){let o=[],a=0,l;for(;(l=Dl.exec(n))!==null;){l.index>a&&o.push({literal:n.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",v=-1;u=="{"&&(v=d.indexOf("::"))>0&&(f=d.substring(v+2),d=d.substring(0,v),h=!0);let g=Ms(d),w=[];if(g){let{args:b,methodName:_}=g;for(let y=0;y<b.length;y++){let L=b[y];L.literal||w.push(L)}let C=s.dynamicFns;(C&&C[_]||g.static)&&(w.push(_),g.dynamicFn=!0)}else w.push(d);o.push({source:d,mode:u,negate:c,customEvent:h,signature:g,dependencies:w,event:f}),a=Dl.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(n,s,o,a,l,u){let c;return s.signature?c=yo(n,o,a,l,s.signature):o!=s.source?c=Xe(n,s.source):u&&bo(o)?c=Xe(n,o):c=n.__data[o],s.negate&&(c=!c),c}}return r}),Jr=[];/**
|
|
704
|
+
*/let vi=0;const yi=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Vd="__computeInfo",xv=/[A-Z]/;function Ps(e,t,r){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),r))for(let n in i){let s=i[n],o=i[n]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return i}function ri(e,t,r,i,n,s){if(t){let o=!1;const a=vi++;for(let l in r){let u=n?cr(l):l,c=t[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!n||pa(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,i,f.info,n,s),o=!0)}return o}return!1}function Ev(e,t,r,i,n,s,o,a){let l=!1,u=o?cr(i):i,c=t[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==r)&&(!o||pa(i,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,i,n,s,f.info,o,a),l=!0);return l}function pa(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&Ld(r,e))||!!(t.wildcard&&gi(r,e))}else return!0}function Sl(e,t,r,i,n){let s=typeof n.method=="string"?e[n.method]:n.method,o=n.property;s?s.call(e,e.__data[o],i[o]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function kv(e,t,r,i,n){let s=e[ge.NOTIFY],o,a=vi++;for(let u in t)t[u]&&(s&&Ev(e,s,a,u,r,i,n)||n&&Sv(e,u,r))&&(o=!0);let l;o&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sv(e,t,r){let i=cr(t);if(i!==t){let n=Kn(i)+"-changed";return jd(e,n,r[t],t),!0}return!1}function jd(e,t,r,i){let n={value:r,queueProperty:!0};i&&(n.path=i),Ve(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function Av(e,t,r,i,n,s){let a=(s?cr(t):t)!=t?t:null,l=a?Ke(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),jd(e,n.eventName,l,a)}function Tv(e,t,r,i,n){let s,o=e.detail,a=o&&o.path;a?(i=bi(r,i,a),s=o&&o.value):s=e.currentTarget[r],s=n?!s:s,(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,s,!0,!!a)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function Pv(e,t,r,i,n){let s=e.__data[t];Cn&&(s=Cn(s,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,s)}function Dv(e,t,r,i){let n=e[ge.COMPUTE];if(n)if(jb){vi++;const s=Ov(e),o=[];for(let l in t)Al(l,n,o,s,i);let a;for(;a=o.shift();)Gd(e,"",t,r,a)&&Al(a.methodInfo,n,o,s,i);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;ri(e,n,s,r,i);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Mv=(e,t,r)=>{let i=0,n=t.length-1,s=-1;for(;i<=n;){const o=i+n>>1,a=r.get(t[o].methodInfo)-r.get(e.methodInfo);if(a<0)i=o+1;else if(a>0)n=o-1;else{s=o;break}}s<0&&(s=n+1),t.splice(s,0,e)},Al=(e,t,r,i,n)=>{const s=n?cr(e):e,o=t[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==vi&&(!n||pa(e,l.trigger))&&(l.info.lastRun=vi,Mv(l.info,r,i))}};function Ov(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[ge.COMPUTE];let{counts:i,ready:n,total:s}=Bv(e),o;for(;o=n.shift();){t.set(o,t.size);const a=r[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--i[u]===0&&n.push(u)})}s!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Bv(e){const t=e[Vd],r={},i=e[ge.COMPUTE],n=[];let s=0;for(let o in t){const a=t[o];s+=r[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in i)t[o]||n.push(o);return{counts:r,ready:n,total:s}}function Gd(e,t,r,i,n){let s=yo(e,t,r,i,n);if(s===yi)return!1;let o=n.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function Nv(e,t,r){let i=e.__dataLinkedPaths;if(i){let n;for(let s in i){let o=i[s];gi(s,t)?(n=bi(s,o,t),e._setPendingPropertyOrPath(n,r,!0,!0)):gi(o,t)&&(n=bi(o,s,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}}function Ds(e,t,r,i,n,s,o){r.bindings=r.bindings||[];let a={kind:i,target:n,parts:s,literal:o,isCompound:s.length!==1};if(r.bindings.push(a),Rv(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Kn(n)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Iv(e,t,a,c,l)}}function Iv(e,t,r,i,n){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,o={index:n,binding:r,part:i,evaluator:e};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=Zd(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Lv,info:o,trigger:l})}}}function Lv(e,t,r,i,n,s,o){let a=o[n.index],l=n.binding,u=n.part;if(s&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=r[t];t=bi(u.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&e._enqueueClient(a)}else{let c=n.evaluator._evaluateBinding(e,u,t,r,i,s);c!==yi&&Fv(e,a,l,u,c)}}function Fv(e,t,r,i,n){if(n=Hv(t,n,r,i),Cn&&(n=Cn(n,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,n,r.target);else{let s=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][s])&&t._setPendingProperty(s,n)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,n)}}function Hv(e,t,r,i){if(r.isCompound){let n=e.__dataCompoundStorage[r.target];n[i.compoundIndex]=t,t=n.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function Rv(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function zv(e,t){let{nodeList:r,nodeInfoList:i}=t;if(i.length)for(let n=0;n<i.length;n++){let s=i[n],o=r[n],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Yv(o,u),Uv(o,e,u)}o.__dataHost=e}}function Yv(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,n=new Array(i.length);for(let o=0;o<i.length;o++)n[o]=i[o].literal;let s=t.target;r[s]=n,t.literal&&t.kind=="property"&&(s==="className"&&(e=Ve(e)),e[s]=t.literal)}}function Uv(e,t,r){if(r.listenerEvent){let i=r.parts[0];e.addEventListener(r.listenerEvent,function(n){Tv(n,t,r.target,i.source,i.negate)})}}function Tl(e,t,r,i,n,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:n,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:i,info:o,trigger:l});return s&&e._addPropertyEffect(t.methodName,r,{fn:i,info:o}),o}function yo(e,t,r,i,n){let s=e._methodHost||e,o=s[n.methodName];if(o){let a=e._marshalArgs(n.args,t,r);return a===yi?yi:o.apply(s,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const $v=[],qd="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Wv="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Vv="(?:'(?:[^'\\\\]|\\\\.)*')",jv='(?:"(?:[^"\\\\]|\\\\.)*")',Gv="(?:"+Vv+"|"+jv+")",Pl="(?:("+qd+"|"+Wv+"|"+Gv+")\\s*)",qv="(?:"+Pl+"(?:,\\s*"+Pl+")*)",Zv="(?:\\(\\s*(?:"+qv+"?)\\)\\s*)",Kv="("+qd+"\\s*"+Zv+"?)",Xv="(\\[\\[|{{)\\s*",Jv="(?:]]|}})",Qv="(?:(!)\\s*)?",ey=Xv+Qv+Kv+Jv,Dl=new RegExp(ey,"g");function Ml(e){let t="";for(let r=0;r<e.length;r++){let i=e[r].literal;t+=i||""}return t}function Ms(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:$v};if(t[2].trim()){let n=t[2].replace(/\\,/g,",").split(",");return ty(n,i)}else return i}return null}function ty(e,t){return t.args=e.map(function(r){let i=Zd(r);return i.literal||(t.static=!1),i},this),t}function Zd(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=cr(t),r.structured=bo(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Ol(e,t,r){let i=Ke(e,r);return i===void 0&&(i=t[r]),i}function Kd(e,t,r,i){const n={indexSplices:i};go&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),go&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function Xr(e,t,r,i,n,s){Kd(e,t,r,[{index:i,addedCount:n,removed:s,object:t,type:"splice"}])}function ry(e){return e[0].toUpperCase()+e.substring(1)}const ma=Ue(e=>{const t=Cv(hv(e));class r extends t{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(Jr.length){let n=Jr[Jr.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let s=this[ge.READ_ONLY];for(let o in n)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=n[o])}_addPropertyEffect(n,s,o){this._createPropertyAccessor(n,s==ge.READ_ONLY);let a=Ps(this,s,!0)[n];a||(a=this[s][n]=[]),a.push(o)}_removePropertyEffect(n,s,o){let a=Ps(this,s,!0)[n],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,s){let o=this[s];return!!(o&&o[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,ge.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,ge.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,ge.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,ge.COMPUTE)}_setPendingPropertyOrPath(n,s,o,a){if(a||cr(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=Ke(this,n);if(n=xl(this,n,s),!n||!super._shouldPropertyChange(n,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,s,o))return Nv(this,n,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,s,o);this[n]=s}return!1}_setUnmanagedPropertyToNode(n,s,o){(o!==n[s]||typeof o=="object")&&(s==="className"&&(n=Ve(n)),n[s]=o)}_setPendingProperty(n,s,o){let a=this.__dataHasPaths&&bo(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,s,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=s:this.__data[n]=s,this.__dataPending[n]=s,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=o),!0):!1}_setProperty(n,s){this._setPendingProperty(n,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let s=0;s<n.length;s++){let o=n[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,s){for(let o in n)(s||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Dv(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),ri(this,this[ge.REFLECT],s,o,a),ri(this,this[ge.OBSERVE],s,o,a),l&&kv(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,s,o){this[ge.PROPAGATE]&&ri(this,this[ge.PROPAGATE],n,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,s,o)}_runEffectsForTemplate(n,s,o,a){const l=(u,c)=>{ri(this,n.propertyEffects,u,o,c,n.nodeList);for(let d=n.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,o,c)};n.runEffects?n.runEffects(l,s,a):l(s,a)}linkPaths(n,s){n=ti(n),s=ti(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=s}unlinkPaths(n){n=ti(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,s){let o={path:""},a=Ke(this,n,o);Kd(this,a,o.path,s)}get(n,s){return Ke(s||this,n)}set(n,s,o){o?xl(o,n,s):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s,!0)&&this._invalidateProperties()}push(n,...s){let o={path:""},a=Ke(this,n,o),l=a.length,u=a.push(...s);return s.length&&Xr(this,a,o.path,l,s.length,[]),u}pop(n){let s={path:""},o=Ke(this,n,s),a=!!o.length,l=o.pop();return a&&Xr(this,o,s.path,o.length,0,[l]),l}splice(n,s,o,...a){let l={path:""},u=Ke(this,n,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,o,...a),(a.length||c.length)&&Xr(this,u,l.path,s,a.length,c),c}shift(n){let s={path:""},o=Ke(this,n,s),a=!!o.length,l=o.shift();return a&&Xr(this,o,s.path,0,0,[l]),l}unshift(n,...s){let o={path:""},a=Ke(this,n,o),l=a.unshift(...s);return s.length&&Xr(this,a,o.path,0,s.length,[]),l}notifyPath(n,s){let o;if(arguments.length==1){let a={path:""};s=Ke(this,n,a),o=a.path}else Array.isArray(n)?o=ti(n):o=n;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,s){this._addPropertyEffect(n,ge.READ_ONLY),s&&(this["_set"+ry(n)]=function(o){this._setProperty(n,o)})}_createPropertyObserver(n,s,o){let a={property:n,method:s,dynamicFn:!!o};this._addPropertyEffect(n,ge.OBSERVE,{fn:Sl,info:a,trigger:{name:n}}),o&&this._addPropertyEffect(s,ge.OBSERVE,{fn:Sl,info:a,trigger:{name:s}})}_createMethodObserver(n,s){let o=Ms(n);if(!o)throw new Error("Malformed observer expression '"+n+"'");Tl(this,o,ge.OBSERVE,yo,null,s)}_createNotifyingProperty(n){this._addPropertyEffect(n,ge.NOTIFY,{fn:Av,info:{eventName:Kn(n)+"-changed",property:n}})}_createReflectedProperty(n){let s=this.constructor.attributeNameForProperty(n);s[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,ge.REFLECT,{fn:Pv,info:{attrName:s}})}_createComputedProperty(n,s,o){let a=Ms(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Tl(this,a,ge.COMPUTE,Gd,n,o);Ps(this,Vd)[n]=l}_marshalArgs(n,s,o){const a=this.__data,l=[];for(let u=0,c=n.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:v,literal:g}=n[u];if(!g)if(f){const w=gi(d,s),b=Ol(a,o,w?s:d);v={path:w?s:d,value:b,base:w?Ke(a,d):b}}else v=h?Ol(a,o,d):a[d];if(go&&!this._overrideLegacyUndefined&&v===void 0&&n.length>1)return yi;l[u]=v}return l}static addPropertyEffect(n,s,o){this.prototype._addPropertyEffect(n,s,o)}static createPropertyObserver(n,s,o){this.prototype._createPropertyObserver(n,s,o)}static createMethodObserver(n,s){this.prototype._createMethodObserver(n,s)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,s){this.prototype._createReadOnlyProperty(n,s)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,s,o){this.prototype._createComputedProperty(n,s,o)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,s){let o=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=n._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(n,s,o){let a=n.hostProps=n.hostProps||{};a[s]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(n,s){s=s||this._bindTemplate(n,!0),Jr.push(this);let o=super._stampTemplate(n,s);if(Jr.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,zv(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(n){const s=n.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let d=u[c];Ve(Ve(d).parentNode).removeChild(d)}}static _parseTemplateNode(n,s,o){let a=t._parseTemplateNode.call(this,n,s,o);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,s);l&&(n.textContent=Ml(l)||" ",Ds(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,s,o,a,l){let u=this._parseBindings(l,s);if(u){let c=a,d="property";xv.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=Ml(u);return h&&d=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&c==="value"&&n.setAttribute(c,""),n.removeAttribute(c),d==="property"&&(a=Hd(a)),Ds(this,s,o,d,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,n,s,o,a,l)}static _parseTemplateNestedTemplate(n,s,o){let a=t._parseTemplateNestedTemplate.call(this,n,s,o);const l=n.parentNode,u=o.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";gl&&(c||d)&&(l.removeChild(n),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let h=u.hostProps;if(Gb&&c)h&&(s.hostProps=Object.assign(s.hostProps||{},h),gl||(o.parentInfo.noted=!0));else{let f="{";for(let v in h){let g=[{mode:f,source:v,dependencies:[v],hostProp:!0}];Ds(this,s,o,"property","_host_"+v,g)}}return a}static _parseBindings(n,s){let o=[],a=0,l;for(;(l=Dl.exec(n))!==null;){l.index>a&&o.push({literal:n.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",v=-1;u=="{"&&(v=d.indexOf("::"))>0&&(f=d.substring(v+2),d=d.substring(0,v),h=!0);let g=Ms(d),w=[];if(g){let{args:b,methodName:_}=g;for(let y=0;y<b.length;y++){let L=b[y];L.literal||w.push(L)}let C=s.dynamicFns;(C&&C[_]||g.static)&&(w.push(_),g.dynamicFn=!0)}else w.push(d);o.push({source:d,mode:u,negate:c,customEvent:h,signature:g,dependencies:w,event:f}),a=Dl.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(n,s,o,a,l,u){let c;return s.signature?c=yo(n,o,a,l,s.signature):o!=s.source?c=Ke(n,s.source):u&&bo(o)?c=Ke(n,o):c=n.__data[o],s.negate&&(c=!c),c}}return r}),Jr=[];/**
|
|
705
705
|
@license
|
|
706
706
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
707
707
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -717,7 +717,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
717
717
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
718
718
|
Code distributed by Google as part of the polymer project is also
|
|
719
719
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
720
|
-
*/function iy(e){const t={};for(let r in e){const i=e[r];t[r]=typeof i=="function"?{type:i}:i}return t}const ny=Ue(e=>{const t
|
|
720
|
+
*/function iy(e){const t={};for(let r in e){const i=e[r];t[r]=typeof i=="function"?{type:i}:i}return t}const ny=Ue(e=>{const t=Ud(e);function r(s){const o=Object.getPrototypeOf(s);return o.prototype instanceof n?o:null}function i(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let o=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(o=iy(a))}s.__ownProperties=o}return s.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const o=this._properties;this.__observedAttributes=o?Object.keys(o).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const o=r(this);o&&o.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const o=i(this);o&&this.createProperties(o)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const o=r(this);this.__properties=Object.assign({},o&&o._properties,i(this))}return this.__properties}static typeForProperty(o){const a=this._properties[o];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n});/**
|
|
721
721
|
* @fileoverview
|
|
722
722
|
* @suppress {checkPrototypalTypes}
|
|
723
723
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -727,7 +727,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
727
727
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
728
728
|
* Google as part of the polymer project is also subject to an additional IP
|
|
729
729
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
730
|
-
*/const sy="3.5.
|
|
730
|
+
*/const sy="3.5.2",Bl=window.ShadyCSS&&window.ShadyCSS.cssBuild,oy=Ue(e=>{const t=ny(ma(e));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function n(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,d[c.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,c,d){if(!Bl){const h=u.content.querySelectorAll("style"),f=Nd(u),v=tv(c),g=u.content.firstElementChild;for(let b=0;b<v.length;b++){let _=v[b];_.textContent=l._processStyleText(_.textContent,d),u.content.insertBefore(_,g)}let w=0;for(let b=0;b<f.length;b++){let _=f[b],C=h[w];C!==_?(_=_.cloneNode(!0),C.parentNode.insertBefore(_,C)):w++,_.textContent=l._processStyleText(_.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),qb&&Bl&&Ub){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(v=>{f+=v.textContent,v.parentNode.removeChild(v)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function o(l){let u=null;if(l&&(!xn||Wb)&&(u=_i.import(l,"template"),xn&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return sy}static _finalizeClass(){t._finalizeClass.call(this);const u=i(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):Dd||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)n(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let h=0;h<u.length;h++)d._createMethodObserver(u[h],c)}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))&&o(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=ha(u.url);else{const c=_i.import(this.is);this._importPath=c&&c.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=$b,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return da(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,h=d?si(d):"";s(this,c,u,h),this.prototype._bindTemplate(c)}}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 c=Ve(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Vb&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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,c){return!c&&this.importPath&&(c=si(this.importPath)),si(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Md&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
|
|
731
731
|
@license
|
|
732
732
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
733
733
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -735,7 +735,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
735
735
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
736
736
|
Code distributed by Google as part of the polymer project is also
|
|
737
737
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
738
|
-
*/const Nl=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class
|
|
738
|
+
*/const Nl=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Xd{constructor(t,r){Qd(t,r);const i=r.reduce((n,s,o)=>n+Jd(s)+t[o+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Jd(e){if(e instanceof Xd)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function ay(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Xd)return Jd(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const dr=function(t,...r){Qd(t,r);const i=document.createElement("template");let n=r.reduce((s,o,a)=>s+ay(o)+t[a+1],t[0]);return Nl&&(n=Nl.createHTML(n)),i.innerHTML=n,i},Qd=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
739
739
|
@license
|
|
740
740
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
741
741
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -747,11 +747,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
747
747
|
* @license
|
|
748
748
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
749
749
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
750
|
-
*/const Ct=[];function wo(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):r!=null&&e.removeAttribute("dir")}function Co(){return document.documentElement.getAttribute("dir")}function ly(){const e=Co();Ct.forEach(t=>{wo(t,e)})}const uy=new MutationObserver(ly);uy.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const
|
|
750
|
+
*/const Ct=[];function wo(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):r!=null&&e.removeAttribute("dir")}function Co(){return document.documentElement.getAttribute("dir")}function ly(){const e=Co();Ct.forEach(t=>{wo(t,e)})}const uy=new MutationObserver(ly);uy.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xn=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:r=>r||"",toAttribute:r=>r===""?null:r}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),wo(this,Co(),null))}attributeChangedCallback(r,i,n){if(super.attributeChangedCallback(r,i,n),r!=="dir")return;const s=Co(),o=n===s&&Ct.indexOf(this)===-1,a=!n&&i&&Ct.indexOf(this)===-1;o||a?(this.__subscribe(),wo(this,s,n)):n!==s&&i===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ct.includes(this),this.__unsubscribe()}_valueToNodeAttribute(r,i,n){n==="dir"&&i===""&&!r.hasAttribute("dir")||super._valueToNodeAttribute(r,i,n)}_attributeToProperty(r,i,n){r==="dir"&&!i?this.dir="":super._attributeToProperty(r,i,n)}__subscribe(){Ct.includes(this)||Ct.push(this)}__unsubscribe(){Ct.includes(this)&&Ct.splice(Ct.indexOf(this),1)}};/**
|
|
751
751
|
* @license
|
|
752
752
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
753
753
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
754
|
-
*/class cy extends ur(
|
|
754
|
+
*/class cy extends ur(Xn(Gt)){static get is(){return"vaadin-input-container"}static get template(){return dr`
|
|
755
755
|
<style>
|
|
756
756
|
:host {
|
|
757
757
|
display: flex;
|
|
@@ -1222,7 +1222,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1222
1222
|
* @license
|
|
1223
1223
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1224
1224
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1225
|
-
*/const
|
|
1225
|
+
*/const eh=ie`
|
|
1226
1226
|
:host {
|
|
1227
1227
|
top: var(--lumo-space-m);
|
|
1228
1228
|
right: var(--lumo-space-m);
|
|
@@ -1285,11 +1285,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1285
1285
|
opacity: 1;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
`;Be("",
|
|
1288
|
+
`;Be("",eh,{moduleId:"lumo-overlay"});/**
|
|
1289
1289
|
* @license
|
|
1290
1290
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1291
1291
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1292
|
-
*/const
|
|
1292
|
+
*/const th=ie`
|
|
1293
1293
|
:host([opening]),
|
|
1294
1294
|
:host([closing]) {
|
|
1295
1295
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -1319,7 +1319,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1319
1319
|
opacity: 0;
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
`;Be("",
|
|
1322
|
+
`;Be("",th,{moduleId:"lumo-menu-overlay-core"});const vy=ie`
|
|
1323
1323
|
/* Small viewport (bottom sheet) styles */
|
|
1324
1324
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1325
1325
|
@media (max-width: 420px), (max-height: 420px) {
|
|
@@ -1381,7 +1381,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1381
1381
|
transform: translateY(150%);
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
`,
|
|
1384
|
+
`,rh=[eh,th,vy];Be("",rh,{moduleId:"lumo-menu-overlay"});const yy=ie`
|
|
1385
1385
|
[part='overlay'] {
|
|
1386
1386
|
/*
|
|
1387
1387
|
Width:
|
|
@@ -1429,7 +1429,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1429
1429
|
max-height: 70vh;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
`;Be("vaadin-date-picker-overlay",[
|
|
1432
|
+
`;Be("vaadin-date-picker-overlay",[rh,yy],{moduleId:"lumo-date-picker-overlay"});/**
|
|
1433
1433
|
* @license
|
|
1434
1434
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1435
1435
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2079,7 +2079,485 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2079
2079
|
* @license
|
|
2080
2080
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2081
2081
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2082
|
-
*/const $r=Ue(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}}),Dy=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ln=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function My(){function e(){return!0}return
|
|
2082
|
+
*/const $r=Ue(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}}),Dy=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ln=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function My(){function e(){return!0}return ih(e)}function Oy(){try{return By()?!0:Ny()?ln?!Iy():!My():!1}catch(e){return!1}}function By(){return localStorage.getItem("vaadin.developmentmode.force")}function Ny(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Iy(){return!!(ln&&Object.keys(ln).map(t=>ln[t]).filter(t=>t.productionMode).length>0)}function ih(e,t){if(typeof e!="function")return;const r=Dy.exec(e.toString());if(r)try{e=new Function(r[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return e(t)}window.Vaadin=window.Vaadin||{};const Il=function(e,t){if(window.Vaadin.developmentMode)return ih(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Oy());function Ly(){/*! vaadin-dev-mode:start
|
|
2083
|
+
(function () {
|
|
2084
|
+
'use strict';
|
|
2085
|
+
|
|
2086
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2087
|
+
return typeof obj;
|
|
2088
|
+
} : function (obj) {
|
|
2089
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2093
|
+
if (!(instance instanceof Constructor)) {
|
|
2094
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
var createClass = function () {
|
|
2099
|
+
function defineProperties(target, props) {
|
|
2100
|
+
for (var i = 0; i < props.length; i++) {
|
|
2101
|
+
var descriptor = props[i];
|
|
2102
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2103
|
+
descriptor.configurable = true;
|
|
2104
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2105
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2110
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2111
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2112
|
+
return Constructor;
|
|
2113
|
+
};
|
|
2114
|
+
}();
|
|
2115
|
+
|
|
2116
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2117
|
+
return window.Polymer && window.Polymer.version;
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
var StatisticsGatherer = function () {
|
|
2121
|
+
function StatisticsGatherer(logger) {
|
|
2122
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2123
|
+
|
|
2124
|
+
this.now = new Date().getTime();
|
|
2125
|
+
this.logger = logger;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
createClass(StatisticsGatherer, [{
|
|
2129
|
+
key: 'frameworkVersionDetectors',
|
|
2130
|
+
value: function frameworkVersionDetectors() {
|
|
2131
|
+
return {
|
|
2132
|
+
'Flow': function Flow() {
|
|
2133
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2134
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2135
|
+
return window.Vaadin.Flow.clients[key];
|
|
2136
|
+
}).filter(function (client) {
|
|
2137
|
+
return client.getVersionInfo;
|
|
2138
|
+
}).map(function (client) {
|
|
2139
|
+
return client.getVersionInfo().flow;
|
|
2140
|
+
});
|
|
2141
|
+
if (flowVersions.length > 0) {
|
|
2142
|
+
return flowVersions[0];
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2147
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2148
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2149
|
+
return client.getVersionInfo;
|
|
2150
|
+
}).map(function (client) {
|
|
2151
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2152
|
+
});
|
|
2153
|
+
if (frameworkVersions.length > 0) {
|
|
2154
|
+
return frameworkVersions[0];
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
'AngularJs': function AngularJs() {
|
|
2159
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2160
|
+
return window.angular.version.full;
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
'Angular': function Angular() {
|
|
2164
|
+
if (window.ng) {
|
|
2165
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2166
|
+
if (tags.length > 0) {
|
|
2167
|
+
return tags[0].getAttribute("ng-version");
|
|
2168
|
+
}
|
|
2169
|
+
return "Unknown";
|
|
2170
|
+
}
|
|
2171
|
+
},
|
|
2172
|
+
'Backbone.js': function BackboneJs() {
|
|
2173
|
+
if (window.Backbone) {
|
|
2174
|
+
return window.Backbone.VERSION;
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
'React': function React() {
|
|
2178
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2179
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2180
|
+
// React does not publish the version by default
|
|
2181
|
+
return "unknown";
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
'Ember': function Ember() {
|
|
2185
|
+
if (window.Em && window.Em.VERSION) {
|
|
2186
|
+
return window.Em.VERSION;
|
|
2187
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2188
|
+
return window.Ember.VERSION;
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
'jQuery': function (_jQuery) {
|
|
2192
|
+
function jQuery() {
|
|
2193
|
+
return _jQuery.apply(this, arguments);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
jQuery.toString = function () {
|
|
2197
|
+
return _jQuery.toString();
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
return jQuery;
|
|
2201
|
+
}(function () {
|
|
2202
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2203
|
+
return jQuery.prototype.jquery;
|
|
2204
|
+
}
|
|
2205
|
+
}),
|
|
2206
|
+
'Polymer': function Polymer() {
|
|
2207
|
+
var version = getPolymerVersion();
|
|
2208
|
+
if (version) {
|
|
2209
|
+
return version;
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2212
|
+
'LitElement': function LitElement() {
|
|
2213
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2214
|
+
if (version) {
|
|
2215
|
+
return version;
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
'LitHtml': function LitHtml() {
|
|
2219
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2220
|
+
if (version) {
|
|
2221
|
+
return version;
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
'Vue.js': function VueJs() {
|
|
2225
|
+
if (window.Vue) {
|
|
2226
|
+
return window.Vue.version;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
}, {
|
|
2232
|
+
key: 'getUsedVaadinElements',
|
|
2233
|
+
value: function getUsedVaadinElements(elements) {
|
|
2234
|
+
var version = getPolymerVersion();
|
|
2235
|
+
var elementClasses = void 0;
|
|
2236
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2237
|
+
// Check all locations calling the method getEntries() in
|
|
2238
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2239
|
+
// Currently it is only used by BootstrapHandler.
|
|
2240
|
+
if (version && version.indexOf('2') === 0) {
|
|
2241
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2242
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2243
|
+
return window.Vaadin[c];
|
|
2244
|
+
}).filter(function (c) {
|
|
2245
|
+
return c.is;
|
|
2246
|
+
});
|
|
2247
|
+
} else {
|
|
2248
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2249
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2250
|
+
}
|
|
2251
|
+
elementClasses.forEach(function (klass) {
|
|
2252
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2253
|
+
elements[klass.is] = { version: version };
|
|
2254
|
+
});
|
|
2255
|
+
}
|
|
2256
|
+
}, {
|
|
2257
|
+
key: 'getUsedVaadinThemes',
|
|
2258
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2259
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2260
|
+
var theme;
|
|
2261
|
+
var version = getPolymerVersion();
|
|
2262
|
+
if (version && version.indexOf('2') === 0) {
|
|
2263
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2264
|
+
theme = window.Vaadin[themeName];
|
|
2265
|
+
} else {
|
|
2266
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2267
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2268
|
+
}
|
|
2269
|
+
if (theme && theme.version) {
|
|
2270
|
+
themes[themeName] = { version: theme.version };
|
|
2271
|
+
}
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
}, {
|
|
2275
|
+
key: 'getFrameworks',
|
|
2276
|
+
value: function getFrameworks(frameworks) {
|
|
2277
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2278
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2279
|
+
var detector = detectors[framework];
|
|
2280
|
+
try {
|
|
2281
|
+
var version = detector();
|
|
2282
|
+
if (version) {
|
|
2283
|
+
frameworks[framework] = { version: version };
|
|
2284
|
+
}
|
|
2285
|
+
} catch (e) {}
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2288
|
+
}, {
|
|
2289
|
+
key: 'gather',
|
|
2290
|
+
value: function gather(storage) {
|
|
2291
|
+
var storedStats = storage.read();
|
|
2292
|
+
var gatheredStats = {};
|
|
2293
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2294
|
+
|
|
2295
|
+
types.forEach(function (type) {
|
|
2296
|
+
gatheredStats[type] = {};
|
|
2297
|
+
if (!storedStats[type]) {
|
|
2298
|
+
storedStats[type] = {};
|
|
2299
|
+
}
|
|
2300
|
+
});
|
|
2301
|
+
|
|
2302
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2303
|
+
|
|
2304
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2305
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2306
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2307
|
+
|
|
2308
|
+
var now = this.now;
|
|
2309
|
+
types.forEach(function (type) {
|
|
2310
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2311
|
+
keys.forEach(function (key) {
|
|
2312
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2313
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2314
|
+
}
|
|
2315
|
+
// Discards any previously logged version number
|
|
2316
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2317
|
+
storedStats[type][key].lastUsed = now;
|
|
2318
|
+
});
|
|
2319
|
+
});
|
|
2320
|
+
|
|
2321
|
+
var newStats = JSON.stringify(storedStats);
|
|
2322
|
+
storage.write(newStats);
|
|
2323
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2324
|
+
this.logger.debug("New stats: " + newStats);
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}]);
|
|
2328
|
+
return StatisticsGatherer;
|
|
2329
|
+
}();
|
|
2330
|
+
|
|
2331
|
+
var StatisticsStorage = function () {
|
|
2332
|
+
function StatisticsStorage(key) {
|
|
2333
|
+
classCallCheck(this, StatisticsStorage);
|
|
2334
|
+
|
|
2335
|
+
this.key = key;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
createClass(StatisticsStorage, [{
|
|
2339
|
+
key: 'read',
|
|
2340
|
+
value: function read() {
|
|
2341
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2342
|
+
try {
|
|
2343
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2344
|
+
} catch (e) {
|
|
2345
|
+
return {};
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}, {
|
|
2349
|
+
key: 'write',
|
|
2350
|
+
value: function write(data) {
|
|
2351
|
+
localStorage.setItem(this.key, data);
|
|
2352
|
+
}
|
|
2353
|
+
}, {
|
|
2354
|
+
key: 'clear',
|
|
2355
|
+
value: function clear() {
|
|
2356
|
+
localStorage.removeItem(this.key);
|
|
2357
|
+
}
|
|
2358
|
+
}, {
|
|
2359
|
+
key: 'isEmpty',
|
|
2360
|
+
value: function isEmpty() {
|
|
2361
|
+
var storedStats = this.read();
|
|
2362
|
+
var empty = true;
|
|
2363
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2364
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2365
|
+
empty = false;
|
|
2366
|
+
}
|
|
2367
|
+
});
|
|
2368
|
+
|
|
2369
|
+
return empty;
|
|
2370
|
+
}
|
|
2371
|
+
}]);
|
|
2372
|
+
return StatisticsStorage;
|
|
2373
|
+
}();
|
|
2374
|
+
|
|
2375
|
+
var StatisticsSender = function () {
|
|
2376
|
+
function StatisticsSender(url, logger) {
|
|
2377
|
+
classCallCheck(this, StatisticsSender);
|
|
2378
|
+
|
|
2379
|
+
this.url = url;
|
|
2380
|
+
this.logger = logger;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
createClass(StatisticsSender, [{
|
|
2384
|
+
key: 'send',
|
|
2385
|
+
value: function send(data, errorHandler) {
|
|
2386
|
+
var logger = this.logger;
|
|
2387
|
+
|
|
2388
|
+
if (navigator.onLine === false) {
|
|
2389
|
+
logger.debug("Offline, can't send");
|
|
2390
|
+
errorHandler();
|
|
2391
|
+
return;
|
|
2392
|
+
}
|
|
2393
|
+
logger.debug("Sending data to " + this.url);
|
|
2394
|
+
|
|
2395
|
+
var req = new XMLHttpRequest();
|
|
2396
|
+
req.withCredentials = true;
|
|
2397
|
+
req.addEventListener("load", function () {
|
|
2398
|
+
// Stats sent, nothing more to do
|
|
2399
|
+
logger.debug("Response: " + req.responseText);
|
|
2400
|
+
});
|
|
2401
|
+
req.addEventListener("error", function () {
|
|
2402
|
+
logger.debug("Send failed");
|
|
2403
|
+
errorHandler();
|
|
2404
|
+
});
|
|
2405
|
+
req.addEventListener("abort", function () {
|
|
2406
|
+
logger.debug("Send aborted");
|
|
2407
|
+
errorHandler();
|
|
2408
|
+
});
|
|
2409
|
+
req.open("POST", this.url);
|
|
2410
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2411
|
+
req.send(data);
|
|
2412
|
+
}
|
|
2413
|
+
}]);
|
|
2414
|
+
return StatisticsSender;
|
|
2415
|
+
}();
|
|
2416
|
+
|
|
2417
|
+
var StatisticsLogger = function () {
|
|
2418
|
+
function StatisticsLogger(id) {
|
|
2419
|
+
classCallCheck(this, StatisticsLogger);
|
|
2420
|
+
|
|
2421
|
+
this.id = id;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
createClass(StatisticsLogger, [{
|
|
2425
|
+
key: '_isDebug',
|
|
2426
|
+
value: function _isDebug() {
|
|
2427
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2428
|
+
}
|
|
2429
|
+
}, {
|
|
2430
|
+
key: 'debug',
|
|
2431
|
+
value: function debug(msg) {
|
|
2432
|
+
if (this._isDebug()) {
|
|
2433
|
+
console.info(this.id + ": " + msg);
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}]);
|
|
2437
|
+
return StatisticsLogger;
|
|
2438
|
+
}();
|
|
2439
|
+
|
|
2440
|
+
var UsageStatistics = function () {
|
|
2441
|
+
function UsageStatistics() {
|
|
2442
|
+
classCallCheck(this, UsageStatistics);
|
|
2443
|
+
|
|
2444
|
+
this.now = new Date();
|
|
2445
|
+
this.timeNow = this.now.getTime();
|
|
2446
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2447
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2448
|
+
|
|
2449
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2450
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2451
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2452
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
createClass(UsageStatistics, [{
|
|
2456
|
+
key: 'maybeGatherAndSend',
|
|
2457
|
+
value: function maybeGatherAndSend() {
|
|
2458
|
+
var _this = this;
|
|
2459
|
+
|
|
2460
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2461
|
+
return;
|
|
2462
|
+
}
|
|
2463
|
+
this.gatherer.gather(this.storage);
|
|
2464
|
+
setTimeout(function () {
|
|
2465
|
+
_this.maybeSend();
|
|
2466
|
+
}, this.gatherDelay * 1000);
|
|
2467
|
+
}
|
|
2468
|
+
}, {
|
|
2469
|
+
key: 'lottery',
|
|
2470
|
+
value: function lottery() {
|
|
2471
|
+
return true;
|
|
2472
|
+
}
|
|
2473
|
+
}, {
|
|
2474
|
+
key: 'currentMonth',
|
|
2475
|
+
value: function currentMonth() {
|
|
2476
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2477
|
+
}
|
|
2478
|
+
}, {
|
|
2479
|
+
key: 'maybeSend',
|
|
2480
|
+
value: function maybeSend() {
|
|
2481
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2482
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2483
|
+
|
|
2484
|
+
if (!firstUse) {
|
|
2485
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2486
|
+
firstUse = this.timeNow;
|
|
2487
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2491
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2492
|
+
return;
|
|
2493
|
+
}
|
|
2494
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2495
|
+
this.logger.debug("This month has already been processed");
|
|
2496
|
+
return;
|
|
2497
|
+
}
|
|
2498
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2499
|
+
// Use random sampling
|
|
2500
|
+
if (this.lottery()) {
|
|
2501
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2502
|
+
} else {
|
|
2503
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2504
|
+
return;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
this.send();
|
|
2508
|
+
}
|
|
2509
|
+
}, {
|
|
2510
|
+
key: 'send',
|
|
2511
|
+
value: function send() {
|
|
2512
|
+
// Ensure we have the latest data
|
|
2513
|
+
this.gatherer.gather(this.storage);
|
|
2514
|
+
|
|
2515
|
+
// Read, send and clean up
|
|
2516
|
+
var data = this.storage.read();
|
|
2517
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2518
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2519
|
+
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';
|
|
2520
|
+
var self = this;
|
|
2521
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2522
|
+
// Revert the 'month processed' flag
|
|
2523
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
}], [{
|
|
2527
|
+
key: 'version',
|
|
2528
|
+
get: function get$1() {
|
|
2529
|
+
return '2.1.2';
|
|
2530
|
+
}
|
|
2531
|
+
}, {
|
|
2532
|
+
key: 'firstUseKey',
|
|
2533
|
+
get: function get$1() {
|
|
2534
|
+
return 'vaadin.statistics.firstuse';
|
|
2535
|
+
}
|
|
2536
|
+
}, {
|
|
2537
|
+
key: 'monthProcessedKey',
|
|
2538
|
+
get: function get$1() {
|
|
2539
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2540
|
+
}
|
|
2541
|
+
}, {
|
|
2542
|
+
key: 'optOutKey',
|
|
2543
|
+
get: function get$1() {
|
|
2544
|
+
return 'vaadin.statistics.optout';
|
|
2545
|
+
}
|
|
2546
|
+
}]);
|
|
2547
|
+
return UsageStatistics;
|
|
2548
|
+
}();
|
|
2549
|
+
|
|
2550
|
+
try {
|
|
2551
|
+
window.Vaadin = window.Vaadin || {};
|
|
2552
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2553
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2554
|
+
} catch (e) {
|
|
2555
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
}());
|
|
2559
|
+
|
|
2560
|
+
vaadin-dev-mode:end **/}const Fy=function(){if(typeof Il=="function")return Il(Ly)};/**
|
|
2083
2561
|
* @license
|
|
2084
2562
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2085
2563
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2087,7 +2565,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2087
2565
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2088
2566
|
* Code distributed by Google as part of the polymer project is also
|
|
2089
2567
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2090
|
-
*/let Ll=0,
|
|
2568
|
+
*/let Ll=0,nh=0;const Ar=[];let xo=!1;function Hy(){xo=!1;const e=Ar.length;for(let t=0;t<e;t++){const r=Ar[t];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Ar.splice(0,e),nh+=e}const kn={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Ry={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},zy={run(e){xo||(xo=!0,queueMicrotask(()=>Hy())),Ar.push(e);const t=Ll;return Ll+=1,t},cancel(e){const t=e-nh;if(t>=0){if(!Ar[t])throw new Error(`invalid async handle: ${e}`);Ar[t]=null}}};/**
|
|
2091
2569
|
@license
|
|
2092
2570
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2093
2571
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2099,11 +2577,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2099
2577
|
* @license
|
|
2100
2578
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2101
2579
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2102
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Fy()};let Os;const Fl=new Set,
|
|
2580
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Fy()};let Os;const Fl=new Set,sh=e=>class extends Xn(e){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:r}=this;r&&!Fl.has(r)&&(window.Vaadin.registrations.push(this),Fl.add(r),window.Vaadin.developmentModeCallback&&(Os=wi.debounce(Os,Ry,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Yy(Os)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2103
2581
|
* @license
|
|
2104
2582
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2105
2583
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2106
|
-
*/function Uy(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function _a(e){return e?new Set(e.split(" ")):new Set}function Jn(e){return e?[...e].join(" "):""}function
|
|
2584
|
+
*/function Uy(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function _a(e){return e?new Set(e.split(" ")):new Set}function Jn(e){return e?[...e].join(" "):""}function oh(e,t,r){const i=_a(e.getAttribute(t));i.add(r),e.setAttribute(t,Jn(i))}function $y(e,t,r){const i=_a(e.getAttribute(t));if(i.delete(r),i.size===0){e.removeAttribute(t);return}e.setAttribute(t,Jn(i))}function Wy(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
|
|
2107
2585
|
* @license
|
|
2108
2586
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2109
2587
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2111,15 +2589,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2111
2589
|
* @license
|
|
2112
2590
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2113
2591
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2114
|
-
*/let jy=0;function
|
|
2592
|
+
*/let jy=0;function ah(){return jy++}/**
|
|
2115
2593
|
* @license
|
|
2116
2594
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2117
2595
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2118
|
-
*/class rr extends EventTarget{static generateId(t,r){return`${r||"default"}-${t.localName}-${
|
|
2596
|
+
*/class rr extends EventTarget{static generateId(t,r){return`${r||"default"}-${t.localName}-${ah()}`}constructor(t,r,i,n={}){super();const{initializer:s,multiple:o,observe:a,useUniqueId:l}=n;this.host=t,this.slotName=r,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof o=="boolean"?o:!1,this.slotInitializer=s,o&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,r))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=t,t.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:t,slotName:r,tagName:i}=this;let n=this.defaultNode;return!n&&i&&(n=document.createElement(i),n instanceof Element&&(r!==""&&n.setAttribute("slot",r),this.node=n,this.defaultNode=n)),n&&t.appendChild(n),n}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===t||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:r}=this;r&&r(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,r=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(r);this.__slotObserver=new Vy(i,({addedNodes:n,removedNodes:s})=>{const o=this.multiple?this.nodes:[this.node],a=n.filter(l=>!Wy(l)&&!o.includes(l));s.length&&(this.nodes=o.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...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)))})}}/**
|
|
2119
2597
|
* @license
|
|
2120
2598
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2121
2599
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2122
|
-
*/class
|
|
2600
|
+
*/class lh extends rr{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const r=this.node;r&&(r.ariaTarget=t)}setContext(t){this.context=t;const r=this.node;r&&(r.context=t)}setManual(t){this.manual=t;const r=this.node;r&&(r.manual=t)}setOpened(t){this.opened=t;const r=this.node;r&&(r.opened=t)}setPosition(t){this.position=t;const r=this.node;r&&(r._position=t)}setShouldShow(t){this.shouldShow=t;const r=this.node;r&&(r.shouldShow=t)}setTarget(t){this.target=t;const r=this.node;r&&(r.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2123
2601
|
* @license
|
|
2124
2602
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2125
2603
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2204,11 +2682,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2204
2682
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2205
2683
|
Code distributed by Google as part of the polymer project is also
|
|
2206
2684
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2207
|
-
*/const Zy=!1,
|
|
2685
|
+
*/const Zy=!1,Ky=e=>e,ga=typeof document.head.style.touchAction=="string",So="__polymerGestures",Bs="__polymerGesturesHandled",Ao="__polymerGesturesTouchAction",Hl=25,Rl=5,Xy=2,Jy=["mousedown","mousemove","mouseup","click"],Qy=[0,1,4,2],e1=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function ba(e){return Jy.indexOf(e)>-1}let uh=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){uh=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function t1(e){if(!(ba(e)||e==="touchend")&&ga&&uh&&Zy)return{passive:!0}}const r1=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),i1={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function sr(e){const t=e.type;if(!ba(t))return!1;if(t==="mousemove"){let i=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!e1&&(i=Qy[e.which]||0),!!(i&1)}return(e.button===void 0?0:e.button)===0}function n1(e){if(e.type==="click"){if(e.detail===0)return!0;const t=Vt(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const r=t.getBoundingClientRect(),i=e.pageX,n=e.pageY;return!(i>=r.left&&i<=r.right&&n>=r.top&&n<=r.bottom)}return!1}const Et={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function s1(e){let t="auto";const r=dh(e);for(let i=0,n;i<r.length;i++)if(n=r[i],n[Ao]){t=n[Ao];break}return t}function ch(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function Tr(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const dh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],va={},ir=[];function o1(e,t){let r=document.elementFromPoint(e,t),i=r;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const n=i;if(i=i.shadowRoot.elementFromPoint(e,t),n===i)break;i&&(r=i)}return r}function Vt(e){const t=dh(e);return t.length>0?t[0]:e.target}function a1(e){const t=e.type,i=e.currentTarget[So];if(!i)return;const n=i[t];if(!n)return;if(!e[Bs]&&(e[Bs]={},t.startsWith("touch"))){const o=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(Et.touch.id=o.identifier),Et.touch.id!==o.identifier)return;ga||(t==="touchstart"||t==="touchmove")&&l1(e)}const s=e[Bs];if(!s.skip){for(let o=0,a;o<ir.length;o++)a=ir[o],n[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let o=0,a;o<ir.length;o++)a=ir[o],n[a.name]&&!s[a.name]&&(s[a.name]=!0,a[t](e))}}function l1(e){const t=e.changedTouches[0],r=e.type;if(r==="touchstart")Et.touch.x=t.clientX,Et.touch.y=t.clientY,Et.touch.scrollDecided=!1;else if(r==="touchmove"){if(Et.touch.scrollDecided)return;Et.touch.scrollDecided=!0;const i=s1(e);let n=!1;const s=Math.abs(Et.touch.x-t.clientX),o=Math.abs(Et.touch.y-t.clientY);e.cancelable&&(i==="none"?n=!0:i==="pan-x"?n=o>s:i==="pan-y"&&(n=s>o)),n?e.preventDefault():Sn("track")}}function _t(e,t,r){return va[t]?(u1(e,t,r),!0):!1}function u1(e,t,r){const i=va[t],n=i.deps,s=i.name;let o=e[So];o||(e[So]=o={});for(let a=0,l,u;a<n.length;a++)l=n[a],!(r1&&ba(l)&&l!=="click")&&(u=o[l],u||(o[l]=u={_count:0}),u._count===0&&e.addEventListener(l,a1,t1(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,r),i.touchAction&&hh(e,i.touchAction)}function ya(e){ir.push(e),e.emits.forEach(t=>{va[t]=e})}function c1(e){for(let t=0,r;t<ir.length;t++){r=ir[t];for(let i=0,n;i<r.emits.length;i++)if(n=r.emits[i],n===e)return r}return null}function hh(e,t){ga&&e instanceof HTMLElement&&zy.run(()=>{e.style.touchAction=t}),e[Ao]=t}function wa(e,t,r){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=r,Ky(e).dispatchEvent(i),i.defaultPrevented){const n=r.preventer||r.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function Sn(e){const t=c1(e);t.info&&(t.info.prevent=!0)}ya({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Tr(this.info)},mousedown(e){if(!sr(e))return;const t=Vt(e),r=this,i=s=>{sr(s)||(Qr("up",t,s),Tr(r.info))},n=s=>{sr(s)&&Qr("up",t,s),Tr(r.info)};ch(this.info,i,n),Qr("down",t,e)},touchstart(e){Qr("down",Vt(e),e.changedTouches[0],e)},touchend(e){Qr("up",Vt(e),e.changedTouches[0],e)}});function Qr(e,t,r,i){t&&wa(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:i,prevent(n){return Sn(n)}})}ya({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(e){this.moves.length>Xy&&this.moves.shift(),this.moves.push(e)},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,Tr(this.info)},mousedown(e){if(!sr(e))return;const t=Vt(e),r=this,i=s=>{const o=s.clientX,a=s.clientY;zl(r.info,o,a)&&(r.info.state=r.info.started?s.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&Sn("tap"),r.info.addMove({x:o,y:a}),sr(s)||(r.info.state="end",Tr(r.info)),t&&Ns(r.info,t,s),r.info.started=!0)},n=s=>{r.info.started&&i(s),Tr(r.info)};ch(this.info,i,n),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Vt(e),r=e.changedTouches[0],i=r.clientX,n=r.clientY;zl(this.info,i,n)&&(this.info.state==="start"&&Sn("tap"),this.info.addMove({x:i,y:n}),Ns(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend(e){const t=Vt(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),Ns(this.info,t,r))}});function zl(e,t,r){if(e.prevent)return!1;if(e.started)return!0;const i=Math.abs(e.x-t),n=Math.abs(e.y-r);return i>=Rl||n>=Rl}function Ns(e,t,r){if(!t)return;const i=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],s=n.x-e.x,o=n.y-e.y;let a,l=0;i&&(a=n.x-i.x,l=n.y-i.y),wa(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:s,dy:o,ddx:a,ddy:l,sourceEvent:r,hover(){return o1(r.clientX,r.clientY)}})}ya({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(e){sr(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){sr(e)&&Yl(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){Yl(this.info,e.changedTouches[0],e)}});function Yl(e,t,r){const i=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),s=Vt(r||t);!s||i1[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(n)||i<=Hl&&n<=Hl||n1(t))&&(e.prevent||wa(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}/**
|
|
2208
2686
|
* @license
|
|
2209
2687
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2210
2688
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2211
|
-
*/const
|
|
2689
|
+
*/const fh=Ue(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(r){this._setAriaDisabled(r)}_setAriaDisabled(r){r?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2212
2690
|
* @license
|
|
2213
2691
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2214
2692
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2216,11 +2694,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2216
2694
|
* @license
|
|
2217
2695
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2218
2696
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2219
|
-
*/const d1=e=>class extends
|
|
2697
|
+
*/const d1=e=>class extends fh(Qn(e)){get _activeKeys(){return[" "]}ready(){super.ready(),_t(this,"down",r=>{this._shouldSetActive(r)&&this._setActive(!0)}),_t(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(r){return!this.disabled}_onKeyDown(r){super._onKeyDown(r),this._shouldSetActive(r)&&this._activeKeys.includes(r.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(r){this.toggleAttribute("active",r)}};/**
|
|
2220
2698
|
* @license
|
|
2221
2699
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2222
2700
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2223
|
-
*/let Ca=!1;window.addEventListener("keydown",()=>{Ca=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ca=!1},{capture:!0});function To(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function h1(){return Ca}function f1(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const r=window.getComputedStyle(e);return r.visibility==="hidden"||r.display==="none"}function p1(e,t){const r=Math.max(e.tabIndex,0),i=Math.max(t.tabIndex,0);return r===0||i===0?i>r:r>i}function m1(e,t){const r=[];for(;e.length>0&&t.length>0;)p1(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}function Po(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2),i=Po(e.slice(0,r)),n=Po(e.slice(r));return m1(i,n)}function _1(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function g1(e){return e.getRootNode().activeElement===e}function b1(e){if(!_1(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function
|
|
2701
|
+
*/let Ca=!1;window.addEventListener("keydown",()=>{Ca=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ca=!1},{capture:!0});function To(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function h1(){return Ca}function f1(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const r=window.getComputedStyle(e);return r.visibility==="hidden"||r.display==="none"}function p1(e,t){const r=Math.max(e.tabIndex,0),i=Math.max(t.tabIndex,0);return r===0||i===0?i>r:r>i}function m1(e,t){const r=[];for(;e.length>0&&t.length>0;)p1(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}function Po(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2),i=Po(e.slice(0,r)),n=Po(e.slice(r));return m1(i,n)}function _1(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function g1(e){return e.getRootNode().activeElement===e}function b1(e){if(!_1(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function ph(e,t){if(e.nodeType!==Node.ELEMENT_NODE||f1(e))return!1;const r=e,i=b1(r);let n=i>0;i>=0&&t.push(r);let s=[];return r.localName==="slot"?s=r.assignedNodes({flatten:!0}):s=(r.shadowRoot||r).children,[...s].forEach(o=>{n=ph(o,t)||n}),n}function v1(e){const t=[];return ph(e,t)?Po(t):t}/**
|
|
2224
2702
|
* @license
|
|
2225
2703
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2226
2704
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2228,15 +2706,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2228
2706
|
* @license
|
|
2229
2707
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2230
2708
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2231
|
-
*/const
|
|
2709
|
+
*/const mh=e=>class extends fh(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(r,i){super._disabledChanged(r,i),r?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(r){this.disabled&&r!==-1&&(this._lastTabIndex=r,this.tabindex=-1)}};/**
|
|
2232
2710
|
* @license
|
|
2233
2711
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2234
2712
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2235
|
-
*/const y1=e=>class extends d1(
|
|
2713
|
+
*/const y1=e=>class extends d1(mh(xa(e))){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(r){super._onKeyDown(r),!(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)&&this._activeKeys.includes(r.key)&&(r.preventDefault(),this.click())}};/**
|
|
2236
2714
|
* @license
|
|
2237
2715
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2238
2716
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2239
|
-
*/Be("vaadin-button",Gy,{moduleId:"vaadin-button-styles"});class w1 extends y1(
|
|
2717
|
+
*/Be("vaadin-button",Gy,{moduleId:"vaadin-button-styles"});class w1 extends y1(sh(ur($r(Gt)))){static get is(){return"vaadin-button"}static get template(){return qy(dr)}ready(){super.ready(),this._tooltipController=new lh(this),this.addController(this._tooltipController)}}lt(w1);Be("vaadin-date-picker-year",ie`
|
|
2240
2718
|
:host([current]) [part='year-number'] {
|
|
2241
2719
|
color: var(--lumo-primary-text-color);
|
|
2242
2720
|
}
|
|
@@ -2550,7 +3028,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2550
3028
|
:host([disabled]) * {
|
|
2551
3029
|
color: var(--lumo-disabled-text-color) !important;
|
|
2552
3030
|
}
|
|
2553
|
-
`,{moduleId:"lumo-month-calendar"});const
|
|
3031
|
+
`,{moduleId:"lumo-month-calendar"});const _h=document.createElement("template");_h.innerHTML=`
|
|
2554
3032
|
<style>
|
|
2555
3033
|
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2556
3034
|
50% {
|
|
@@ -2558,7 +3036,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2558
3036
|
}
|
|
2559
3037
|
}
|
|
2560
3038
|
</style>
|
|
2561
|
-
`;document.head.appendChild(
|
|
3039
|
+
`;document.head.appendChild(_h.content);/**
|
|
2562
3040
|
* @license
|
|
2563
3041
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2564
3042
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2619,7 +3097,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2619
3097
|
* @license
|
|
2620
3098
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2621
3099
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2622
|
-
*/const
|
|
3100
|
+
*/const gh=ie`
|
|
2623
3101
|
[part$='button'] {
|
|
2624
3102
|
flex: none;
|
|
2625
3103
|
width: 1em;
|
|
@@ -2646,7 +3124,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2646
3124
|
font-family: 'lumo-icons';
|
|
2647
3125
|
display: block;
|
|
2648
3126
|
}
|
|
2649
|
-
`;Be("",
|
|
3127
|
+
`;Be("",gh,{moduleId:"lumo-field-button"});/**
|
|
2650
3128
|
* @license
|
|
2651
3129
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2652
3130
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2705,7 +3183,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2705
3183
|
* @license
|
|
2706
3184
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2707
3185
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2708
|
-
*/const
|
|
3186
|
+
*/const bh=ie`
|
|
2709
3187
|
[part='label'] {
|
|
2710
3188
|
align-self: flex-start;
|
|
2711
3189
|
color: var(--lumo-secondary-text-color);
|
|
@@ -2801,7 +3279,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2801
3279
|
margin-left: 0;
|
|
2802
3280
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2803
3281
|
}
|
|
2804
|
-
`;Be("",
|
|
3282
|
+
`;Be("",bh,{moduleId:"lumo-required-field"});/**
|
|
2805
3283
|
* @license
|
|
2806
3284
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2807
3285
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2939,7 +3417,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2939
3417
|
[part='clear-button']::before {
|
|
2940
3418
|
content: var(--lumo-icons-cross);
|
|
2941
3419
|
}
|
|
2942
|
-
`,
|
|
3420
|
+
`,vh=[bh,gh,x1,E1];Be("",vh,{moduleId:"lumo-input-field-shared-styles"});const k1=ie`
|
|
2943
3421
|
:host {
|
|
2944
3422
|
outline: none;
|
|
2945
3423
|
}
|
|
@@ -2965,7 +3443,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2965
3443
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
2966
3444
|
--_lumo-text-field-overflow-mask-image: none;
|
|
2967
3445
|
}
|
|
2968
|
-
`;Be("vaadin-date-picker",[
|
|
3446
|
+
`;Be("vaadin-date-picker",[vh,k1],{moduleId:"lumo-date-picker"});/**
|
|
2969
3447
|
@license
|
|
2970
3448
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2971
3449
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2973,19 +3451,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2973
3451
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2974
3452
|
Code distributed by Google as part of the polymer project is also
|
|
2975
3453
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2976
|
-
*/let Do=!1,S1=[],
|
|
3454
|
+
*/let Do=!1,S1=[],yh=[];function A1(){Do=!0,requestAnimationFrame(function(){Do=!1,T1(S1),setTimeout(function(){P1(yh)})})}function T1(e){for(;e.length;)wh(e.shift())}function P1(e){for(let t=0,r=e.length;t<r;t++)wh(e.shift())}function wh(e){const t=e[0],r=e[1],i=e[2];try{r.apply(t,i)}catch(n){setTimeout(()=>{throw n})}}function Ch(e,t,r){Do||A1(),yh.push([e,t,r])}/**
|
|
2977
3455
|
* @license
|
|
2978
3456
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2979
3457
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2980
|
-
*/const es=e=>e.test(navigator.userAgent),Mo=e=>e.test(navigator.platform),D1=e=>e.test(navigator.vendor);es(/Android/u);es(/Chrome/u)&&D1(/Google Inc/u);const M1=es(/Firefox/u),O1=Mo(/^iPad/u)||Mo(/^Mac/u)&&navigator.maxTouchPoints>1,B1=Mo(/^iPhone/u),
|
|
3458
|
+
*/const es=e=>e.test(navigator.userAgent),Mo=e=>e.test(navigator.platform),D1=e=>e.test(navigator.vendor);es(/Android/u);es(/Chrome/u)&&D1(/Google Inc/u);const M1=es(/Firefox/u),O1=Mo(/^iPad/u)||Mo(/^Mac/u)&&navigator.maxTouchPoints>1,B1=Mo(/^iPhone/u),xh=B1||O1;es(/^((?!chrome|android).)*safari/iu);const N1=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
|
|
2981
3459
|
* @license
|
|
2982
3460
|
* Copyright (c) 2017 Anton Korzunov
|
|
2983
3461
|
* SPDX-License-Identifier: MIT
|
|
2984
|
-
*/let _r=new WeakMap,Zi=new WeakMap,
|
|
3462
|
+
*/let _r=new WeakMap,Zi=new WeakMap,Ki={},Is=0;const Ul=e=>e&&e.nodeType===Node.ELEMENT_NODE,Ls=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},I1=(e,t)=>Ul(e)?t.map(r=>{if(!Ul(r))return Ls(r,"is not a valid element"),null;let i=r;for(;i&&i!==e;){if(e.contains(i))return r;i=i.getRootNode().host}return Ls(r,"is not contained inside",e),null}).filter(r=>!!r):(Ls(e,"is not a valid element"),[]),L1=(e,t,r,i)=>{const n=I1(t,Array.isArray(e)?e:[e]);Ki[r]||(Ki[r]=new WeakMap);const s=Ki[r],o=[],a=new Set,l=new Set(n),u=d=>{if(!d||a.has(d))return;a.add(d);const h=d.assignedSlot;h&&u(h),u(d.parentNode||d.host)};n.forEach(u);const c=d=>{if(!d||l.has(d))return;const h=d.shadowRoot;(h?[...d.children,...h.children]:[...d.children]).forEach(v=>{if(!["template","script","style"].includes(v.localName))if(a.has(v))c(v);else{const g=v.getAttribute(i),w=g!==null&&g!=="false",b=(_r.get(v)||0)+1,_=(s.get(v)||0)+1;_r.set(v,b),s.set(v,_),o.push(v),b===1&&w&&Zi.set(v,!0),_===1&&v.setAttribute(r,"true"),w||v.setAttribute(i,"true")}})};return c(t),a.clear(),Is+=1,()=>{o.forEach(d=>{const h=_r.get(d)-1,f=s.get(d)-1;_r.set(d,h),s.set(d,f),h||(Zi.has(d)?Zi.delete(d):d.removeAttribute(i)),f||d.removeAttribute(r)}),Is-=1,Is||(_r=new WeakMap,_r=new WeakMap,Zi=new WeakMap,Ki={})}},Eh=(e,t=document.body,r="data-aria-hidden")=>{const i=Array.from(Array.isArray(e)?e:[e]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),L1(i,t,r,"aria-hidden")};/**
|
|
2985
3463
|
* @license
|
|
2986
3464
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2987
3465
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2988
|
-
*/class F1{constructor(t,r){this.host=t,this.callback=typeof r=="function"?r:()=>t}showModal(){const t=this.callback();this.__showOthers=
|
|
3466
|
+
*/class F1{constructor(t,r){this.host=t,this.callback=typeof r=="function"?r:()=>t}showModal(){const t=this.callback();this.__showOthers=Eh(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2989
3467
|
* @license
|
|
2990
3468
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2991
3469
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3005,7 +3483,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3005
3483
|
* @license
|
|
3006
3484
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3007
3485
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3008
|
-
*/const $1=e=>class extends z1(U1(e)){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),
|
|
3486
|
+
*/const $1=e=>class extends z1(U1(e)){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),xh&&(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(r){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const r=window.innerHeight,n=window.innerWidth>r,s=document.documentElement.clientHeight;n&&s>r?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-r}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(r,i,n,s){const o=this._oldOwner!==i||this._oldModel!==n;this._oldModel=n,this._oldOwner=i;const a=this._oldRenderer!==r;this._oldRenderer=r;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.innerHTML="",delete this._$litPart$),s&&r&&(a||l||o)&&this.requestContentUpdate()}_modelessChanged(r){r?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(r,i){r?(this._saveFocus(),this._animatedOpening(),Ch(this,()=>{this._trapFocus();const n=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(n)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(r){r&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const r=getComputedStyle(this),i=r.getPropertyValue("animation-name");return!(r.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(r,i){const n=`__${r}Handler`,s=o=>{o&&o.target!==this||(i(),this.removeEventListener("animationend",s),delete this[n])};this[n]=s,this.addEventListener("animationend",s)}_flushAnimation(r){const i=`__${r}Handler`;typeof this[i]=="function"&&this[i]()}_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(r){this._mouseDownInside=r.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(r){this._mouseUpInside=r.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(r){return this._last}_outsideClickListener(r){if(r.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(r))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}_keydownListener(r){if(this._last&&!(this.modeless&&!r.composedPath().includes(this.$.overlay))&&r.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}}};/**
|
|
3009
3487
|
* @license
|
|
3010
3488
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3011
3489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3094,7 +3572,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3094
3572
|
* @license
|
|
3095
3573
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3096
3574
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3097
|
-
*/Be("vaadin-date-picker-overlay",[V1,j1],{moduleId:"vaadin-date-picker-overlay-styles"});class G1 extends W1($1(
|
|
3575
|
+
*/Be("vaadin-date-picker-overlay",[V1,j1],{moduleId:"vaadin-date-picker-overlay-styles"});class G1 extends W1($1(Xn(ur(Gt)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return dr`
|
|
3098
3576
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3099
3577
|
<div part="overlay" id="overlay">
|
|
3100
3578
|
<div part="content" id="content">
|
|
@@ -3105,11 +3583,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3105
3583
|
* @license
|
|
3106
3584
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3107
3585
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3108
|
-
*/function q1(e){let t=e.getDay();t===0&&(t=7);const r=4-t,i=new Date(e.getTime()+r*24*3600*1e3),n=new Date(0,0);n.setFullYear(i.getFullYear());const s=i.getTime()-n.getTime(),o=Math.round(s/(24*3600*1e3));return Math.floor(o/7+1)}function Mt(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Ci(e,t,r){return(!t||e>=t)&&(!r||e<=r)}function
|
|
3586
|
+
*/function q1(e){let t=e.getDay();t===0&&(t=7);const r=4-t,i=new Date(e.getTime()+r*24*3600*1e3),n=new Date(0,0);n.setFullYear(i.getFullYear());const s=i.getTime()-n.getTime(),o=Math.round(s/(24*3600*1e3));return Math.floor(o/7+1)}function Mt(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Ci(e,t,r){return(!t||e>=t)&&(!r||e<=r)}function kh(e,t){return t.filter(r=>r!==void 0).reduce((r,i)=>{if(!i)return r;if(!r)return i;const n=Math.abs(e.getTime()-i.getTime()),s=Math.abs(r.getTime()-e.getTime());return n<s?i:r})}function Sh(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Ah(e){const t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function Z1(e,t,r=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(n-50,r,i)?n-=100:e>new Date(n+50,r,i)&&(n+=100),n}function ei(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const r=new Date(0,0);return r.setFullYear(parseInt(t[1],10)),r.setMonth(parseInt(t[2],10)-1),r.setDate(parseInt(t[3],10)),r}/**
|
|
3109
3587
|
* @license
|
|
3110
3588
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3111
3589
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3112
|
-
*/const
|
|
3590
|
+
*/const Th=document.createElement("template");Th.innerHTML=`
|
|
3113
3591
|
<style>
|
|
3114
3592
|
:host {
|
|
3115
3593
|
display: block;
|
|
@@ -3159,11 +3637,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3159
3637
|
<div class="buffer"></div>
|
|
3160
3638
|
<div id="fullHeight"></div>
|
|
3161
3639
|
</div>
|
|
3162
|
-
`;class
|
|
3640
|
+
`;class Ph extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Th.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),r="background-position";this.$.fullHeight.style.setProperty(r,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(r);this.$.fullHeight.style.removeProperty(r),this._itemHeightVal=parseFloat(i)}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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,M1&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,r){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(r=>{this._ensureStampedInstance(r._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const r=t?1:0;this._buffers[r].translateY=this._buffers[r?0:1].translateY+this._bufferHeight*(r?-1:1),this._buffers[r].style.transform=`translate3d(0, ${this._buffers[r].translateY}px, 0)`,this._buffers[r].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const r=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+r,n=t<this._buffers[0].translateY+r;(i||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=wi.debounce(this._debouncerScrollFinish,kn.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=wi.debounce(this._debouncerUpdateClones,kn.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(r=>{for(let i=0;i<this.bufferSize;i++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const s=`vaadin-infinite-scroller-item-content-${ah()}`,o=document.createElement("slot");o.setAttribute("name",s),o._itemWrapper=n,r.appendChild(o),n.setAttribute("slot",s),this.appendChild(n),this._isVisible(n,t)&&this._ensureStampedInstance(n)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(i=>{t.instance[i]=r[i]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const r=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,n)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*n;[...i.children].forEach((o,a)=>{const l=o._itemWrapper;(!t||this._isVisible(l,r))&&this._updateElement(l.instance,s+a)}),i.updated=!0}})}_isVisible(t,r){const i=t.getBoundingClientRect();return i.bottom>r.top&&i.top<r.bottom}}/**
|
|
3163
3641
|
* @license
|
|
3164
3642
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3165
3643
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3166
|
-
*/const
|
|
3644
|
+
*/const Dh=document.createElement("template");Dh.innerHTML=`
|
|
3167
3645
|
<style>
|
|
3168
3646
|
:host {
|
|
3169
3647
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3175,11 +3653,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3175
3653
|
height: 100%;
|
|
3176
3654
|
}
|
|
3177
3655
|
</style>
|
|
3178
|
-
`;class
|
|
3656
|
+
`;class K1 extends Ph{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Dh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,r){t.month=Ah(r)}}lt(K1);/**
|
|
3179
3657
|
* @license
|
|
3180
3658
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3181
3659
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3182
|
-
*/const
|
|
3660
|
+
*/const Mh=document.createElement("template");Mh.innerHTML=`
|
|
3183
3661
|
<style>
|
|
3184
3662
|
:host {
|
|
3185
3663
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3213,7 +3691,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3213
3691
|
border-left-color: #000;
|
|
3214
3692
|
}
|
|
3215
3693
|
</style>
|
|
3216
|
-
`;class
|
|
3694
|
+
`;class X1 extends Ph{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Mh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,r){t.year=this._yearAfterXYears(r)}_yearAfterXYears(t){const r=new Date,i=new Date(r);return i.setFullYear(parseInt(t)+r.getFullYear()),i.getFullYear()}}lt(X1);/**
|
|
3217
3695
|
* @license
|
|
3218
3696
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3219
3697
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3242,7 +3720,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3242
3720
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3243
3721
|
Code distributed by Google as part of the polymer project is also
|
|
3244
3722
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3245
|
-
*/let Oo=null;function Bo(){return Oo}Bo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Bo,writable:!0}});const
|
|
3723
|
+
*/let Oo=null;function Bo(){return Oo}Bo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Bo,writable:!0}});const Oh=ma(Bo),e2=ka(Oh);function t2(e,t){Oo=e,Object.setPrototypeOf(e,t.prototype),new t,Oo=null}const r2=ma(class{});function i2(e,t){for(let r=0;r<t.length;r++){let i=t[r];if(!!e!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),Ve(Ve(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const n=i.__polymerReplaced__;n&&Ve(Ve(n).parentNode).replaceChild(i,n)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class qt extends r2{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let r=[];this.children=r;for(let n=this.root.firstChild;n;n=n.nextSibling)r.push(n),n.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,r){this._setPendingPropertyOrPath(t,r,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,r,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,r,n=>{n.model=this,i(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(t,r,i)}}_showHideChildren(t){i2(t,this.children)}_setUnmanagedPropertyToNode(t,r,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&r=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,r,i)}get parentModel(){let t=this.__parentModel;if(!t){let r;t=this;do t=t.__dataHost.__dataHost;while((r=t.__templatizeOptions)&&!r.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}qt.prototype.__dataHost;qt.prototype.__templatizeOptions;qt.prototype._methodHost;qt.prototype.__templatizeOwner;qt.prototype.__hostProps;const n2=ka(qt);function Wl(e){let t=e.__dataHost;return t&&t._methodHost||t}function s2(e,t,r){let i=r.mutableData?n2:qt;No.mixin&&(i=No.mixin(i));let n=class extends i{};return n.prototype.__templatizeOptions=r,n.prototype._bindTemplate(e),l2(n,e,t,r),n}function o2(e,t,r,i){let n=r.forwardHostProp;if(n&&t.hasHostProps){const s=e.localName=="template";let o=t.templatizeTemplateClass;if(!o){if(s){let l=r.mutableData?e2:Oh;class u extends l{}o=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}o=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)o.prototype._addPropertyEffect("_host_"+l,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:a2(l,n)}),o.prototype._createNotifyingProperty("_host_"+l);Md&&i&&d2(t,r,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)t2(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function a2(e,t){return function(i,n,s){t.call(i.__templatizeOwner,n.substring(6),s[n])}}function l2(e,t,r,i){let n=r.hostProps||{};for(let s in i.instanceProps){delete n[s];let o=i.notifyInstanceProp;o&&e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:u2(s,o)})}if(i.forwardHostProp&&t.__dataHost)for(let s in n)r.hasHostProps||(r.hasHostProps=!0),e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:c2()})}function u2(e,t){return function(i,n,s){t.call(i.__templatizeOwner,i,n,s[n])}}function c2(){return function(t,r,i){t.__dataHost._setPendingPropertyOrPath("_host_"+r,i[r],!0,!0)}}function No(e,t,r){if(xn&&!Wl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:qt)._parseTemplate(e),s=n.templatizeInstanceClass;s||(s=s2(e,n,r),n.templatizeInstanceClass=s);const o=Wl(e);o2(e,n,r,o);let a=class extends s{};return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=n.hostProps,a=a,a}function d2(e,t,r){const i=r.constructor._properties,{propertyEffects:n}=e,{instanceProps:s}=t;for(let o in n)if(!i[o]&&!(s&&s[o])){const a=n[o];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function h2(e,t){let r;for(;t;)if(r=t.__dataHost?t:t.__templatizeInstance)if(r.__dataHost!=e)t=r.__dataHost;else return r;else t=Ve(t).parentNode;return null}/**
|
|
3246
3724
|
@license
|
|
3247
3725
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3248
3726
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3258,7 +3736,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3258
3736
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3259
3737
|
Code distributed by Google as part of the polymer project is also
|
|
3260
3738
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3261
|
-
*/const
|
|
3739
|
+
*/const Bh=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=p2();while(e||t)};/**
|
|
3262
3740
|
@license
|
|
3263
3741
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3264
3742
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3266,7 +3744,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3266
3744
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3267
3745
|
Code distributed by Google as part of the polymer project is also
|
|
3268
3746
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3269
|
-
*/let Vl=!1;function m2(){if(
|
|
3747
|
+
*/let Vl=!1;function m2(){if(Dd&&!Pd){if(!Vl){Vl=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
|
|
3270
3748
|
@license
|
|
3271
3749
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3272
3750
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3274,7 +3752,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3274
3752
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3275
3753
|
Code distributed by Google as part of the polymer project is also
|
|
3276
3754
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3277
|
-
*/const _2=Q1(Gt);class jl extends _2{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:!bl,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),m2()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ve(Ve(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let r=this.template=t._templateInfo?t:this.querySelector("template");if(!r){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=No(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(n,s){let o=this.__instances;for(let a=0,l;a<o.length&&(l=o[a]);a++)l.forwardHostProp(n,s)},notifyInstanceProp:function(n,s,o){if(rv(this.as,s)){let a=n[this.itemsIndexAs];s==this.as&&(this.items[a]=o);let l=bi(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let r=t,i=this.__getMethodHost();return function(){return i[r].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let i=0;i<r.length;i++)t.indexOf(r[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,r=0){this.__renderDebouncer=An.debounce(this.__renderDebouncer,r>0?lv.after(r):
|
|
3755
|
+
*/const _2=Q1(Gt);class jl extends _2{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:!bl,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),m2()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ve(Ve(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let r=this.template=t._templateInfo?t:this.querySelector("template");if(!r){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=No(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(n,s){let o=this.__instances;for(let a=0,l;a<o.length&&(l=o[a]);a++)l.forwardHostProp(n,s)},notifyInstanceProp:function(n,s,o){if(rv(this.as,s)){let a=n[this.itemsIndexAs];s==this.as&&(this.items[a]=o);let l=bi(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let r=t,i=this.__getMethodHost();return function(){return i[r].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let i=0;i<r.length;i++)t.indexOf(r[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,r=0){this.__renderDebouncer=An.debounce(this.__renderDebouncer,r>0?lv.after(r):Yd,t.bind(this)),f2(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Bh()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const r=this.__sortAndFilterItems(t),i=this.__calculateLimit(r.length);this.__updateInstances(t,i,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!bl||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=i;return this.__filterFn&&(r=r.filter((i,n,s)=>this.__filterFn(t[i],n,s))),this.__sortFn&&r.sort((i,n)=>this.__sortFn(t[i],t[n])),r}__calculateLimit(t){let r=t;const i=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),n=Math.max(r-i,0),this.__chunkCount=n||1):(n=Math.min(Math.max(t-i,0),this.__chunkCount),r=Math.min(i+n,t)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,r=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*r)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,r,i){const n=this.__itemsIdxToInstIdx={};let s;for(s=0;s<r;s++){let o=this.__instances[s],a=i[s],l=t[a];n[a]=s,o?(o._setPendingProperty(this.as,l),o._setPendingProperty(this.indexAs,s),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(l,s,a)}for(let o=this.__instances.length-1;o>=s;o--)this.__detachAndRemoveInstance(o)}__detachInstance(t){let r=this.__instances[t];const i=Ve(r.root);for(let n=0;n<r.children.length;n++){let s=r.children[n];i.appendChild(s)}return r}__attachInstance(t,r){let i=this.__instances[t];r.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,r,i){let n={};return n[this.as]=t,n[this.indexAs]=r,n[this.itemsIndexAs]=i,new this.__ctor(n)}__insertInstance(t,r,i){const n=this.__stampInstance(t,r,i);let s=this.__instances[r+1],o=s?s.children[0]:this;return Ve(Ve(this).parentNode).insertBefore(n.root,o),this.__instances[r]=n,n}_showHideChildren(t){for(let r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(t)}__handleItemPath(t,r){let i=t.slice(6),n=i.indexOf("."),s=n<0?i:i.substring(0,n);if(s==parseInt(s,10)){let o=n<0?"":i.substring(n+1);this.__handleObservedPaths(o);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(o?"."+o:"");l._setPendingPropertyOrPath(u,r,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let r=this.modelForElement(t);return r&&r[this.as]}indexForElement(t){let r=this.modelForElement(t);return r&&r[this.indexAs]}modelForElement(t){return h2(this.template,t)}}customElements.define(jl.is,jl);/**
|
|
3278
3756
|
* @license
|
|
3279
3757
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3280
3758
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3388,11 +3866,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3388
3866
|
* @license
|
|
3389
3867
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3390
3868
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3391
|
-
*/class
|
|
3869
|
+
*/class Nh{constructor(t,r){this.query=t,this.callback=r,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(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
|
|
3392
3870
|
* @license
|
|
3393
3871
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3394
3872
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3395
|
-
*/const y2=e=>class extends e{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},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)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){fh(this.$.scrollers,"pan-y"),_t(this.$.scrollers,"track",this._track.bind(this)),_t(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),_t(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),_t(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ih(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new rr(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),_t(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new rr(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),_t(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,i){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+n,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new rr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),r.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(n=>{n.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=i}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new rr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),_t(r,"tap",i=>{this._onYearTap(i)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,i){r&&(r.textContent=i&&i.cancel)}__updateTodayButton(r,i,n,s){r&&(r.textContent=i&&i.today,r.disabled=!this._isTodayAllowed(n,s))}__updateCalendars(r,i,n,s,o,a,l,u,c){r&&r.length&&r.forEach(d=>{d.i18n=i,d.minDate=n,d.maxDate=s,d.focusedDate=a,d.selectedDate=o,d.showWeekNumbers=l,d.ignoreTaps=u,c?d.setAttribute("theme",c):d.removeAttribute("theme")})}__updateYears(r,i,n){r&&r.length&&r.forEach(s=>{s.selectedDate=i,n?s.setAttribute("theme",n):s.removeAttribute("theme")})}_selectDate(r){this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0}))}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,i=!0){if(!r)return;const n=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(n+u,i);return}const s=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;s?this._scrollToPosition(n,i):l&&this._scrollToPosition(n-a+1,i)}_calculateWeekScrollOffset(r){const i=new Date(0,0);i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);let n=0;for(;i.getDate()<r.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+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=wi.debounce(this._debouncer,kn.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,i,n){return r&&i&&typeof i.formatDate=="function"?i.formatDate(Ah(r)):n}_onTodayTap(){const r=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const n=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(r,i){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!i){this._monthScroller.position=r,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let n;this._revealPromise=new Promise(u=>{n=u});const s=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/2*(u*(u-2)-1)+c));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const c=u-o;if(c<this.scrollDuration){const d=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,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._targetPosition=void 0,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,i){return Math.min(i.max,Math.max(i.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+r.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?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(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return Th(r).getFullYear()}_differenceInMonths(r,i){return(r.getFullYear()-i.getFullYear())*12-i.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){Mt(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let i=!1;switch(r.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),i=!0;break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(r.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}i&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,i){switch(r.stopPropagation(),i){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&Mt(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(r,i){return Qe(this,null,function*(){const n=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,i||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return Qe(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{xh(this,()=>{Nh(),i()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(Sh(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,i,n){this._dateAllowed(r)?this.focusDate(r,n):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,i){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+r),i&&n.setDate(this.focusedDate.getDate()+i),n}_moveFocusByDays(r){const i=this._getDateDiff(0,r);this._focusAllowedDate(i,r,!1)}_moveFocusByMonths(r){const i=this._getDateDiff(r),n=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==n&&i.setDate(0),this._focusAllowedDate(i,r,!0)}_moveFocusInsideMonth(r,i){const n=new Date(0,0);n.setFullYear(r.getFullYear()),i==="minDate"?(n.setMonth(r.getMonth()),n.setDate(1)):(n.setMonth(r.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(r)?this.focusDate(this[i]):this._focusClosestDate(r)}_dateAllowed(r,i=this.minDate,n=this.maxDate){return(!i||r>=i)&&(!n||r<=n)}_isTodayAllowed(r,i){const n=new Date,s=new Date(0,0);return s.setFullYear(n.getFullYear()),s.setMonth(n.getMonth()),s.setDate(n.getDate()),this._dateAllowed(s,r,i)}};/**
|
|
3873
|
+
*/const y2=e=>class extends e{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},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)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){hh(this.$.scrollers,"pan-y"),_t(this.$.scrollers,"track",this._track.bind(this)),_t(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),_t(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),_t(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Nh(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new rr(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),_t(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new rr(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),_t(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,i){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+n,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new rr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),r.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(n=>{n.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=i}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new rr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),_t(r,"tap",i=>{this._onYearTap(i)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,i){r&&(r.textContent=i&&i.cancel)}__updateTodayButton(r,i,n,s){r&&(r.textContent=i&&i.today,r.disabled=!this._isTodayAllowed(n,s))}__updateCalendars(r,i,n,s,o,a,l,u,c){r&&r.length&&r.forEach(d=>{d.i18n=i,d.minDate=n,d.maxDate=s,d.focusedDate=a,d.selectedDate=o,d.showWeekNumbers=l,d.ignoreTaps=u,c?d.setAttribute("theme",c):d.removeAttribute("theme")})}__updateYears(r,i,n){r&&r.length&&r.forEach(s=>{s.selectedDate=i,n?s.setAttribute("theme",n):s.removeAttribute("theme")})}_selectDate(r){this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0}))}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,i=!0){if(!r)return;const n=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(n+u,i);return}const s=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;s?this._scrollToPosition(n,i):l&&this._scrollToPosition(n-a+1,i)}_calculateWeekScrollOffset(r){const i=new Date(0,0);i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);let n=0;for(;i.getDate()<r.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+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=wi.debounce(this._debouncer,kn.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,i,n){return r&&i&&typeof i.formatDate=="function"?i.formatDate(Sh(r)):n}_onTodayTap(){const r=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const n=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(r,i){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!i){this._monthScroller.position=r,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let n;this._revealPromise=new Promise(u=>{n=u});const s=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/2*(u*(u-2)-1)+c));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const c=u-o;if(c<this.scrollDuration){const d=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,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._targetPosition=void 0,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,i){return Math.min(i.max,Math.max(i.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+r.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?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(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return Ah(r).getFullYear()}_differenceInMonths(r,i){return(r.getFullYear()-i.getFullYear())*12-i.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){Mt(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let i=!1;switch(r.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),i=!0;break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(r.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}i&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,i){switch(r.stopPropagation(),i){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&Mt(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(r,i){return Qe(this,null,function*(){const n=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,i||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return Qe(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ch(this,()=>{Bh(),i()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(kh(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,i,n){this._dateAllowed(r)?this.focusDate(r,n):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,i){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+r),i&&n.setDate(this.focusedDate.getDate()+i),n}_moveFocusByDays(r){const i=this._getDateDiff(0,r);this._focusAllowedDate(i,r,!1)}_moveFocusByMonths(r){const i=this._getDateDiff(r),n=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==n&&i.setDate(0),this._focusAllowedDate(i,r,!0)}_moveFocusInsideMonth(r,i){const n=new Date(0,0);n.setFullYear(r.getFullYear()),i==="minDate"?(n.setMonth(r.getMonth()),n.setDate(1)):(n.setMonth(r.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(r)?this.focusDate(this[i]):this._focusClosestDate(r)}_dateAllowed(r,i=this.minDate,n=this.maxDate){return(!i||r>=i)&&(!n||r<=n)}_isTodayAllowed(r,i){const n=new Date,s=new Date(0,0);return s.setFullYear(n.getFullYear()),s.setMonth(n.getMonth()),s.setDate(n.getDate()),this._dateAllowed(s,r,i)}};/**
|
|
3396
3874
|
* @license
|
|
3397
3875
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3398
3876
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3460,7 +3938,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3460
3938
|
* @license
|
|
3461
3939
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3462
3940
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3463
|
-
*/Be("vaadin-date-picker-overlay-content",w2,{moduleId:"vaadin-date-picker-overlay-content-styles"});class C2 extends y2($r(ur(
|
|
3941
|
+
*/Be("vaadin-date-picker-overlay-content",w2,{moduleId:"vaadin-date-picker-overlay-content-styles"});class C2 extends y2($r(ur(Xn(Gt)))){static get template(){return dr`
|
|
3464
3942
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3465
3943
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3466
3944
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3484,7 +3962,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3484
3962
|
* @license
|
|
3485
3963
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3486
3964
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3487
|
-
*/const
|
|
3965
|
+
*/const Ih=Ue(e=>class extends xa(mh(e)){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(r,i){r?(r.disabled=this.disabled,this._addFocusListeners(r),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(r){r.addEventListener("blur",this._boundOnBlur),r.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(r){r.removeEventListener("blur",this._boundOnBlur),r.removeEventListener("focus",this._boundOnFocus)}_onFocus(r){r.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(r){r.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(r){return r.target===this.focusElement}_shouldRemoveFocus(r){return r.target===this.focusElement}_disabledChanged(r,i){super._disabledChanged(r,i),this.focusElement&&(this.focusElement.disabled=r),r&&this.blur()}_tabindexChanged(r){this.__forwardTabIndex(r)}__forwardTabIndex(r){r!==void 0&&this.focusElement&&(this.focusElement.tabIndex=r,r!==-1&&(this.tabindex=void 0)),this.disabled&&r&&(r!==-1&&(this._lastTabIndex=r),this.tabindex=void 0)}});/**
|
|
3488
3966
|
* @license
|
|
3489
3967
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3490
3968
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3492,15 +3970,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3492
3970
|
* @license
|
|
3493
3971
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3494
3972
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3495
|
-
*/const
|
|
3973
|
+
*/const Lh=Ue(e=>class extends e{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(r){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=r)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(r){r.addEventListener("input",this._boundOnInput),r.addEventListener("change",this._boundOnChange)}_removeInputListeners(r){r.removeEventListener("input",this._boundOnInput),r.removeEventListener("change",this._boundOnChange)}_forwardInputValue(r){this.inputElement&&(this._inputElementValue=r!=null?r:"")}_inputElementChanged(r,i){r?this._addInputListeners(r):i&&this._removeInputListeners(i)}_hasInputValueChanged(r,i){(r||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(r){this._setHasInputValue(r),this._onInput(r)}_onInput(r){const i=r.composedPath()[0];this.__userInput=r.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(r){}_toggleHasValue(r){this.toggleAttribute("has-value",r)}_valueChanged(r,i){this._toggleHasValue(this._hasValue),!(r===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(r))}_setHasInputValue(r){const i=r.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
3496
3974
|
* @license
|
|
3497
3975
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3498
3976
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3499
|
-
*/const S2=e=>class extends
|
|
3977
|
+
*/const S2=e=>class extends Lh(Qn(e)){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",r=>this._onClearButtonMouseDown(r)),this.clearElement.addEventListener("click",r=>this._onClearButtonClick(r)))}_onClearButtonClick(r){r.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(r){r.preventDefault(),N1||this.inputElement.focus()}_onEscape(r){super._onEscape(r),this.clearButtonVisible&&this.value&&(r.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3500
3978
|
* @license
|
|
3501
3979
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3502
3980
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3503
|
-
*/const Ys=new Map;function Sa(e){return Ys.has(e)||Ys.set(e,new WeakMap),Ys.get(e)}function
|
|
3981
|
+
*/const Ys=new Map;function Sa(e){return Ys.has(e)||Ys.set(e,new WeakMap),Ys.get(e)}function Fh(e,t){e&&e.removeAttribute(t)}function Hh(e,t){if(!e||!t)return;const r=Sa(t);if(r.has(e))return;const i=_a(e.getAttribute(t));r.set(e,new Set(i))}function A2(e,t){if(!e||!t)return;const r=Sa(t),i=r.get(e);!i||i.size===0?e.removeAttribute(t):oh(e,t,Jn(i)),r.delete(e)}function Us(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:i,oldId:n,fromUser:s}=r,o=Sa(t),a=o.get(e);if(!s&&a){n&&a.delete(n),i&&a.add(i);return}s&&(a?i||o.delete(e):Hh(e,t),Fh(e,t)),$y(e,t,n);const l=i||Jn(a);l&&oh(e,t,l)}function T2(e,t){Hh(e,t),Fh(e,t)}/**
|
|
3504
3982
|
* @license
|
|
3505
3983
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3506
3984
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3508,7 +3986,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3508
3986
|
* @license
|
|
3509
3987
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3510
3988
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3511
|
-
*/class Aa extends rr{constructor(t,r,i,n={}){super(t,r,i,jr(
|
|
3989
|
+
*/class Aa extends rr{constructor(t,r,i,n={}){super(t,r,i,jr(Kt({},n),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(r=>{r.forEach(i=>{const n=i.target,s=n===this.node;i.type==="attributes"?s&&this.__updateNodeId(n):(s||n.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const r=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
3512
3990
|
* @license
|
|
3513
3991
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3514
3992
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3528,11 +4006,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3528
4006
|
* @license
|
|
3529
4007
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3530
4008
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3531
|
-
*/const
|
|
4009
|
+
*/const Rh=Ue(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const r=this.checkValidity();return this._setInvalid(!r),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:r}})),r}checkValidity(){return!this.required||!!this.value}_setInvalid(r){this._shouldSetInvalid(r)&&(this.invalid=r)}_shouldSetInvalid(r){return!0}});/**
|
|
3532
4010
|
* @license
|
|
3533
4011
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3534
4012
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3535
|
-
*/const N2=e=>class extends
|
|
4013
|
+
*/const N2=e=>class extends Rh(B2($r(e))){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 P2(this),this._helperController=new M2(this),this._errorController=new D2(this),this._errorController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-error-message",r.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:n}=r.detail;this.__labelChanged(i,n)}),this._helperController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:n}=r.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,n)})}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(r,i){r?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(r){this._fieldAriaController.setAriaLabel(r)}_accessibleNameRefChanged(r){this._fieldAriaController.setLabelId(r,!0)}__labelChanged(r,i){r?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(r){this._errorController.setErrorMessage(r)}_helperTextChanged(r){this._helperController.setHelperText(r)}_ariaTargetChanged(r){r&&this._fieldAriaController.setTarget(r)}_requiredChanged(r){this._fieldAriaController.setRequired(r)}_invalidChanged(r){this._errorController.setInvalid(r),setTimeout(()=>{if(r){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3536
4014
|
* @license
|
|
3537
4015
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3538
4016
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3540,11 +4018,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3540
4018
|
* @license
|
|
3541
4019
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3542
4020
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3543
|
-
*/const
|
|
4021
|
+
*/const zh=Ue(e=>class extends I2(Rh(Lh(e))){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(r=>this[r]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(r){return r.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(r,...i){if(!r)return;const n=this._hasValidConstraints(i),s=this.__previousHasConstraints&&!n;(this._hasValue||this.invalid)&&n?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=n}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}__isValidConstraint(r){return!!r||r===0}});/**
|
|
3544
4022
|
* @license
|
|
3545
4023
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3546
4024
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3547
|
-
*/const L2=e=>class extends k2(
|
|
4025
|
+
*/const L2=e=>class extends k2(Ih(zh(N2(S2(Qn(e)))))){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[`
|
|
3548
4026
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3549
4027
|
font: inherit;
|
|
3550
4028
|
color: inherit;
|
|
@@ -3640,7 +4118,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3640
4118
|
* @license
|
|
3641
4119
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3642
4120
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3643
|
-
*/const V2=e=>class extends $2($r(Lh(Yh(Qn(e))))){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: 420px), (max-height: 420px)"},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(r){const i=String(r.year).replace(/\d+/u,n=>"0000".substr(n.length)+n);return[r.month+1,r.day,i].join("/")},parseDate(r){const i=r.split("/"),n=new Date;let s,o=n.getMonth(),a=n.getFullYear();if(i.length===3){if(o=parseInt(i[0])-1,s=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?ei(this.referenceDate):new Date;a=Z1(l,a,o,s)}}else i.length===2?(o=parseInt(i[0])-1,s=parseInt(i[1])):i.length===1&&(s=parseInt(i[0]));if(s!==void 0)return{day:s,month:o,year:a}},formatTitle:(r,i)=>`${r} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_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:Eh},_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)","__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(r){super._inputElementValue=r,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(r){super._onFocus(r),this._noInput&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ih(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new W2(this));const r=this.$.overlay;this._overlayElement=r,r.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(r){if(r.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",n=>{this.__userConfirmedDate=!0,this._selectDate(n.detail.date),this._close()}),i.addEventListener("date-selected",n=>{this.__userConfirmedDate=!!n.detail.date,this._selectDate(n.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value})}__parseDate(r){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(r);if(i&&(i=ei(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(Ah(r))}checkValidity(){const r=this._inputElementValue,i=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),n=!this._selectedDate||Ci(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),i&&n&&s}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){return!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(r){const i=this.value;this._selectedDate=r,i!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,i,n,s,o,a){return!r||i&&(!a||o)||n&&o||!s.parseDate}_formatISO(r){if(!(r instanceof Date))return"";const i=(c,d="00")=>(d+c).substr((d+c).length-d.length);let n="",s="0000",o=r.getFullYear();o<0?(o=-o,n="-",s="000000"):r.getFullYear()>=1e4&&(n="+",s="000000");const a=n+i(o,s),l=i(r.getMonth()+1),u=i(r.getDate());return[a,l,u].join("-")}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,i){r===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,i){r===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,i){const n=ei(r);if(r&&!n){this.value=i;return}r?Mt(this._selectedDate,n)||(this._selectedDate=n,i!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,i,n,s,o,a,l,u){r&&(r.i18n=i,r.label=n,r.minDate=s,r.maxDate=o,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u)}__updateOverlayContentTheme(r,i){r&&(i?r.setAttribute("theme",i):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,i){r&&r.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const r=this._overlayContent;r.reset();const i=this._getInitialPosition();r.initialPosition=i;const n=r.focusedDate||i;r.scrollToDate(n),this._ignoreFocusedDateChange=!0,r.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?r:[s,r];this.__showOthers=kh(o)}_getInitialPosition(){const r=ei(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||Ci(i,this._minDate,this._maxDate)?i:Sh(i,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",i=this.__parseDate(r);i?this._selectDate(i):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,i)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){const i=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),i===this.value&&this.validate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value){r.stopPropagation(),this._onClearButtonClick(r);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const r=this.__parseDate(this._inputElementValue);r&&(this._ignoreFocusedDateChange=!0,Mt(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(r){return ei(r)}};/**
|
|
4121
|
+
*/const V2=e=>class extends $2($r(Ih(zh(Qn(e))))){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: 420px), (max-height: 420px)"},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(r){const i=String(r.year).replace(/\d+/u,n=>"0000".substr(n.length)+n);return[r.month+1,r.day,i].join("/")},parseDate(r){const i=r.split("/"),n=new Date;let s,o=n.getMonth(),a=n.getFullYear();if(i.length===3){if(o=parseInt(i[0])-1,s=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?ei(this.referenceDate):new Date;a=Z1(l,a,o,s)}}else i.length===2?(o=parseInt(i[0])-1,s=parseInt(i[1])):i.length===1&&(s=parseInt(i[0]));if(s!==void 0)return{day:s,month:o,year:a}},formatTitle:(r,i)=>`${r} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_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:xh},_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)","__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(r){super._inputElementValue=r,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(r){super._onFocus(r),this._noInput&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Nh(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new W2(this));const r=this.$.overlay;this._overlayElement=r,r.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(r){if(r.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",n=>{this.__userConfirmedDate=!0,this._selectDate(n.detail.date),this._close()}),i.addEventListener("date-selected",n=>{this.__userConfirmedDate=!!n.detail.date,this._selectDate(n.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value})}__parseDate(r){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(r);if(i&&(i=ei(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(Sh(r))}checkValidity(){const r=this._inputElementValue,i=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),n=!this._selectedDate||Ci(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),i&&n&&s}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){return!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(r){const i=this.value;this._selectedDate=r,i!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,i,n,s,o,a){return!r||i&&(!a||o)||n&&o||!s.parseDate}_formatISO(r){if(!(r instanceof Date))return"";const i=(c,d="00")=>(d+c).substr((d+c).length-d.length);let n="",s="0000",o=r.getFullYear();o<0?(o=-o,n="-",s="000000"):r.getFullYear()>=1e4&&(n="+",s="000000");const a=n+i(o,s),l=i(r.getMonth()+1),u=i(r.getDate());return[a,l,u].join("-")}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,i){r===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,i){r===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,i){const n=ei(r);if(r&&!n){this.value=i;return}r?Mt(this._selectedDate,n)||(this._selectedDate=n,i!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,i,n,s,o,a,l,u){r&&(r.i18n=i,r.label=n,r.minDate=s,r.maxDate=o,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u)}__updateOverlayContentTheme(r,i){r&&(i?r.setAttribute("theme",i):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,i){r&&r.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const r=this._overlayContent;r.reset();const i=this._getInitialPosition();r.initialPosition=i;const n=r.focusedDate||i;r.scrollToDate(n),this._ignoreFocusedDateChange=!0,r.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?r:[s,r];this.__showOthers=Eh(o)}_getInitialPosition(){const r=ei(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||Ci(i,this._minDate,this._maxDate)?i:kh(i,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",i=this.__parseDate(r);i?this._selectDate(i):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,i)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){const i=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),i===this.value&&this.validate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value){r.stopPropagation(),this._onClearButtonClick(r);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const r=this.__parseDate(this._inputElementValue);r&&(this._ignoreFocusedDateChange=!0,Mt(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(r){return ei(r)}};/**
|
|
3644
4122
|
* @license
|
|
3645
4123
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3646
4124
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3661,7 +4139,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3661
4139
|
* @license
|
|
3662
4140
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3663
4141
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3664
|
-
*/Be("vaadin-date-picker",[U2,j2],{moduleId:"vaadin-date-picker-styles"});class G2 extends V2(L2(ur(
|
|
4142
|
+
*/Be("vaadin-date-picker",[U2,j2],{moduleId:"vaadin-date-picker-styles"});class G2 extends V2(L2(ur(sh(Gt)))){static get is(){return"vaadin-date-picker"}static get template(){return dr`
|
|
3665
4143
|
<div class="vaadin-date-picker-container">
|
|
3666
4144
|
<div part="label">
|
|
3667
4145
|
<slot name="label"></slot>
|
|
@@ -3703,9 +4181,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3703
4181
|
></vaadin-date-picker-overlay>
|
|
3704
4182
|
|
|
3705
4183
|
<slot name="tooltip"></slot>
|
|
3706
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new F2(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r})),this.addController(new H2(this.inputElement,this._labelController)),this._tooltipController=new uh(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}lt(G2);function q2(e){Tn(e,"svelte-1xvjqbq",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emfe-w-bonus-progress-primary, var(--emfe-w-color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emfe-w-bonus-progress-primary, var(--emfe-w-color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emfe-w-bonus-progress-bg, var(--emfe-w-color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emfe-w-bonus-progress-primary, var(--emfe-w-color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emfe-w-bonus-progress-bg, var(--emfe-w-color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emfe-w-bonus-progress-text, var(--emfe-w-color-white, #FFFFFF))}')}function Z2(e){let t,r,i;return{c(){t=x("span"),r=O(e[0]),i=O(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(n,s){B(n,t,s),p(t,r),p(t,i)},p(n,s){s&1&&Ce(r,n[0])},d(n){n&&M(t)}}}function X2(e){let t,r,i,n,s,o,a,l,u;const c=e[9].default,d=Si(c,e,e[8],null),h=d||Z2(e);return{c(){t=x("div"),r=ee("svg"),i=ee("circle"),n=ee("circle"),o=ee("circle"),a=W(),l=x("div"),h&&h.c(),m(i,"class","CircularProgressLineBg"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"fill","transparent"),m(i,"stroke-width","18"),m(n,"class","CircularProgressLine"),m(n,"cx","73.5"),m(n,"cy","73.5"),m(n,"r","64.5"),m(n,"stroke-width","18"),m(n,"stroke-dasharray",e[5]),m(n,"stroke-dashoffset",s=e[4]()),le(n,"Completed",e[1]==="completed"),m(o,"class","CircularProgressCenter"),m(o,"cx","73"),m(o,"cy","73.5"),m(o,"r","50.5"),le(o,"Completed",e[1]==="completed"),m(r,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,v){B(f,t,v),p(t,r),p(r,i),p(r,n),e[10](n),p(r,o),p(t,a),p(t,l),h&&h.m(l,null),e[11](t),u=!0},p(f,[v]){(!u||v&16&&s!==(s=f[4]()))&&m(n,"stroke-dashoffset",s),(!u||v&2)&&le(n,"Completed",f[1]==="completed"),(!u||v&2)&&le(o,"Completed",f[1]==="completed"),d?d.p&&(!u||v&256)&&Ti(d,c,f,f[8],u?Ai(c,f[8],v,null):Pi(f[8]),null):h&&h.p&&(!u||v&1)&&h.p(f,u?v:-1)},i(f){u||(dt(h,f),u=!0)},o(f){Ot(h,f),u=!1},d(f){f&&M(t),e[10](null),h&&h.d(f),e[11](null)}}}let Gl=64.5;function K2(e,t,r){let i,{$$slots:n={},$$scope:s}=t,{value:o=0}=t,{status:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,c,d=Math.PI*(Gl*2),h;const f=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},v=()=>{let b=new URL(u),_=document.createElement("style");fetch(b.href).then(C=>C.text()).then(C=>{_.innerHTML=C,setTimeout(()=>{h.appendChild(_)},1)})};function g(b){At[b?"unshift":"push"](()=>{c=b,r(3,c)})}function w(b){At[b?"unshift":"push"](()=>{h=b,r(2,h)})}return e.$$set=b=>{"value"in b&&r(0,o=b.value),"status"in b&&r(1,a=b.status),"clientstyling"in b&&r(6,l=b.clientstyling),"clientstylingurl"in b&&r(7,u=b.clientstylingurl),"$$scope"in b&&r(8,s=b.$$scope)},e.$$.update=()=>{e.$$.dirty&68&&l&&h&&f(),e.$$.dirty&132&&u&&h&&v(),e.$$.dirty&1&&r(4,i=()=>{var b=Math.PI*(Gl*2);return o<0&&r(0,o=0),o>100&&r(0,o=100),(100-o)/100*b})},[o,a,h,c,i,d,l,u,s,n,g,w]}class J2 extends Mn{constructor(t){super(),Pn(this,t,K2,X2,ki,{value:0,status:1,clientstyling:6,clientstylingurl:7},q2)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),xe()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),xe()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}}Dn(J2,{value:{},status:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);const ql=e=>Q2[e],Q2={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 ew(e){Tn(e,"svelte-13cb257",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emfe-w-bonus-card-text, var(--emfe-w-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(--emfe-w-bonus-card-bg, var(--emfe-w-color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emfe-w-bonus-card-black, var(--emfe-w-color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-bonus-card-span, var(--emfe-w-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(--emfe-w-bonus-card-title, var(--emfe-w-color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emfe-w-bonus-card-black, var(--emfe-w-color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emfe-w-bonus-card-red, var(--emfe-w-color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emfe-w-bonus-card-yellow, var(--emfe-w-color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emfe-w-bonus-card-black, var(--emfe-w-color-black, #000000))}.BonusCardRowText .Amount{color:var(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emfe-w-bonus-card-border, var(--emfe-w-color-gray-100, #E6E6E6));background:var(--emfe-w-bonus-card-white, var(--emfe-w-color-white, #FFFFFF));color:var(--emfe-w-bonus-card-black, var(--emfe-w-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(--emfe-w-bonus-card-red, var(--emfe-w-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(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #53B65A));outline:5px solid var(--emfe-w-bonus-card-green, var(--emfe-w-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(--emfe-w-bonus-card-white, var(--emfe-w-color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emfe-w-bonus-card-red, var(--emfe-w-color-red, #F32013));outline:5px solid var(--emfe-w-bonus-card-red, var(--emfe-w-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(--emfe-w-color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emfe-w-bonus-card-red, var(--emfe-w-color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emfe-w-bonus-card-red, var(--emfe-w-color-red, #C70C00));outline-color:var(--emfe-w-bonus-card-red, var(--emfe-w-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(--emfe-w-bonus-card-blue,var(--emfe-w-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(--emfe-w-bonus-card-white, var(--emfe-w-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(--emfe-w-bonus-card-green, var(--emfe-w-color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-bonus-card-white, var(--emfe-w-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 Zl(e,t,r){const i=e.slice();return i[76]=t[r],i[78]=r,i}function Xl(e,t,r){const i=e.slice();return i[79]=t[r],i}function Kl(e,t,r){const i=e.slice();return i[70]=t[r],i}function Jl(e,t,r){const i=e.slice();return i[73]=t[r],i}function Ql(e,t,r){const i=e.slice();return i[82]=t[r],i[84]=r,i}function eu(e){var de;let t,r,i,n,s,o=e[31](e[3]).indexOf("Casino")>-1,a,l=e[31](e[3]).indexOf("Sports")>-1,u,c=(e[3].name||((de=e[3].presentation)==null?void 0:de.name.content))+"",d,h,f,v,g,w,b,_=o&&tu(e),C=l&&ru(e),y=[e[34]("TitleIcon")],L={};for(let N=0;N<y.length;N+=1)L=T(L,y[N]);let E=[e[34]("BonusCardRowTitle")],I={};for(let N=0;N<E.length;N+=1)I=T(I,E[N]);function X(N,R){if(N[0]==="active")return rw;if(N[0]==="completed")return tw}let q=X(e),z=q&&q(e),P=[e[34]("BonusCardHeader")],$={};for(let N=0;N<P.length;N+=1)$=T($,P[N]);let re=iw(e),J=e[8]&&pu(e);function Z(N,R){return N[12]?kw:Ew}let A=Z(e),Y=A(e),U=[e[34]("BonusCardFooter")],ce={};for(let N=0;N<U.length;N+=1)ce=T(ce,U[N]);let Pe=[e[34]("BonusCardInfo")],De={};for(let N=0;N<Pe.length;N+=1)De=T(De,Pe[N]);let se=e[7]&&Cu(e),_e=[e[34]("BonusCard")],ue={};for(let N=0;N<_e.length;N+=1)ue=T(ue,_e[N]);return{c(){t=x("div"),r=x("div"),i=x("div"),n=x("p"),s=x("span"),_&&_.c(),a=W(),C&&C.c(),u=W(),d=O(c),h=W(),z&&z.c(),f=W(),re&&re.c(),v=W(),g=x("div"),J&&J.c(),w=W(),Y.c(),b=W(),se&&se.c(),k(s,L),k(n,I),k(i,$),k(g,ce),le(g,"Active",e[9]||e[10]),k(r,De),k(t,ue)},m(N,R){B(N,t,R),p(t,r),p(r,i),p(i,n),p(n,s),_&&_.m(s,null),p(s,a),C&&C.m(s,null),p(n,u),p(n,d),p(i,h),z&&z.m(i,null),p(r,f),re&&re.m(r,null),p(r,v),p(r,g),J&&J.m(g,null),p(g,w),Y.m(g,null),p(t,b),se&&se.m(t,null),e[52](t)},p(N,R){var D;R[0]&8&&(o=N[31](N[3]).indexOf("Casino")>-1),o?_?_.p(N,R):(_=tu(N),_.c(),_.m(s,a)):_&&(_.d(1),_=null),R[0]&8&&(l=N[31](N[3]).indexOf("Sports")>-1),l?C?C.p(N,R):(C=ru(N),C.c(),C.m(s,null)):C&&(C.d(1),C=null),R[0]&8&&c!==(c=(N[3].name||((D=N[3].presentation)==null?void 0:D.name.content))+"")&&ne(d,c,I.contenteditable),q===(q=X(N))&&z?z.p(N,R):(z&&z.d(1),z=q&&q(N),z&&(z.c(),z.m(i,null))),re.p(N,R),N[8]?J?J.p(N,R):(J=pu(N),J.c(),J.m(g,w)):J&&(J.d(1),J=null),A===(A=Z(N))&&Y?Y.p(N,R):(Y.d(1),Y=A(N),Y&&(Y.c(),Y.m(g,null))),R[0]&1536&&le(g,"Active",N[9]||N[10]),N[7]?se?se.p(N,R):(se=Cu(N),se.c(),se.m(t,null)):se&&(se.d(1),se=null)},d(N){N&&M(t),_&&_.d(),C&&C.d(),z&&z.d(),re&&re.d(),J&&J.d(),Y.d(),se&&se.d(),e[52](null)}}}function tu(e){let t,r,i,n,s,o,a,l,u,c,d,h,f,v=[e[34]("CasinoIcon"),{viewBox:"0 0 41 41"}],g={};for(let w=0;w<v.length;w+=1)g=T(g,v[w]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=ee("path"),d=ee("path"),h=ee("circle"),f=ee("circle"),m(r,"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(r,"fill","black"),m(i,"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(i,"fill","black"),m(n,"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(n,"fill","black"),m(s,"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(s,"fill","black"),m(o,"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(o,"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(c,"fill-rule","evenodd"),m(c,"clip-rule","evenodd"),m(c,"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(c,"fill","black"),m(d,"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(d,"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"),Wu(t,g)},m(w,b){B(w,t,b),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o),p(t,a),p(t,l),p(t,u),p(t,c),p(t,d),p(t,h),p(t,f)},p:ke,d(w){w&&M(t)}}}function ru(e){let t,r,i,n,s,o,a=[e[34]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),m(r,"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(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"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(i,"fill","black"),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"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(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"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(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"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(o,"fill","black"),Wu(t,l)},m(u,c){B(u,t,c),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o)},p:ke,d(u){u&&M(t)}}}function tw(e){let t,r=e[23](`bonusCard.${e[3].status}`)+"",i,n=[e[34]("BonusCardTitleSub")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("p"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&8388616&&r!==(r=o[23](`bonusCard.${o[3].status}`)+"")&&ne(i,r,s.contenteditable)},d(o){o&&M(t)}}}function rw(e){let t,r,i,n,s,o=[e[34]("BonusCardTitleSub")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=x("span"),r=ee("svg"),i=ee("path"),n=W(),s=O(e[16]),m(i,"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(i,"fill","#6D6D6D"),m(r,"width","24"),m(r,"height","28"),m(r,"viewBox","0 0 24 28"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(r,i),p(t,n),p(t,s)},p(l,u){u[0]&65536&&ne(s,l[16],a.contenteditable)},d(l){l&&M(t)}}}function iw(e){let t,r,i;function n(h,f){return h[0]==="claimable"?sw:nw}let s=n(e),o=s(e),a=[e[34]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=T(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&du(e),c=[e[34]("BonusCardData")],d={};for(let h=0;h<c.length;h+=1)d=T(d,c[h]);return{c(){t=x("div"),r=x("div"),o.c(),i=W(),u&&u.c(),k(r,l),k(t,d)},m(h,f){B(h,t,f),p(t,r),o.m(r,null),p(t,i),u&&u.m(t,null)},p(h,f){s===(s=n(h))&&o?o.p(h,f):(o.d(1),o=s(h),o&&(o.c(),o.m(r,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=du(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&M(t),o.d(),u&&u.d()}}}function nw(e){let t,r,i=e[23]("bonusCard.bonusStatus")+"",n,s,o,a,l,u,c,d=e[23]("bonusCard.bonusType")+"",h,f,v,g,w=e[23](`bonusType.${e[3].type}`)+"",b,_,C,y,L,E,I,X=[e[34]("BonusCardLabel")],q={};for(let D=0;D<X.length;D+=1)q=T(q,X[D]);function z(D,F){return D[0]==="active"?aw:ow}let P=z(e),$=P(e),re=[e[34]("BonusCardRowText")],J={};for(let D=0;D<re.length;D+=1)J=T(J,re[D]);let Z=[e[34]("BonusCardRow")],A={};for(let D=0;D<Z.length;D+=1)A=T(A,Z[D]);let Y=[e[34]("BonusCardLabel")],U={};for(let D=0;D<Y.length;D+=1)U=T(U,Y[D]);let ce=[e[34]("BonusCardRowText","Type")],Pe={};for(let D=0;D<ce.length;D+=1)Pe=T(Pe,ce[D]);let De=[e[34]("BonusCardRow")],se={};for(let D=0;D<De.length;D+=1)se=T(se,De[D]);let _e=e[3].type==="standard"&&iu(e),ue=e[3].type==="freeBet"&&nu(e),de=e[3].type==="freeRound"&&su(e),N=e[3].type==="wagering"&&lu(e),R=e[3].endTime&&e[0]==="active"&&e[3].type!=="wagering"&&uu(e);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),$.c(),l=W(),u=x("p"),c=x("span"),h=O(d),f=O(":"),v=W(),g=x("span"),b=O(w),_=W(),_e&&_e.c(),C=W(),ue&&ue.c(),y=W(),de&&de.c(),L=W(),N&&N.c(),E=W(),R&&R.c(),I=Nt(),k(r,q),k(a,J),le(a,"StatusActive",e[0]==="active"),le(a,"StatusCompleted",e[0]==="completed"),le(a,"StatusClaimable",e[0]==="claimable"),k(t,A),k(c,U),k(g,Pe),k(u,se)},m(D,F){B(D,t,F),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),$.m(a,null),B(D,l,F),B(D,u,F),p(u,c),p(c,h),p(c,f),p(u,v),p(u,g),p(g,b),B(D,_,F),_e&&_e.m(D,F),B(D,C,F),ue&&ue.m(D,F),B(D,y,F),de&&de.m(D,F),B(D,L,F),N&&N.m(D,F),B(D,E,F),R&&R.m(D,F),B(D,I,F)},p(D,F){F[0]&8388608&&i!==(i=D[23]("bonusCard.bonusStatus")+"")&&ne(n,i,q.contenteditable),P===(P=z(D))&&$?$.p(D,F):($.d(1),$=P(D),$&&($.c(),$.m(a,null))),F[0]&1&&le(a,"StatusActive",D[0]==="active"),F[0]&1&&le(a,"StatusCompleted",D[0]==="completed"),F[0]&1&&le(a,"StatusClaimable",D[0]==="claimable"),F[0]&8388608&&d!==(d=D[23]("bonusCard.bonusType")+"")&&ne(h,d,U.contenteditable),F[0]&8388616&&w!==(w=D[23](`bonusType.${D[3].type}`)+"")&&ne(b,w,Pe.contenteditable),D[3].type==="standard"?_e?_e.p(D,F):(_e=iu(D),_e.c(),_e.m(C.parentNode,C)):_e&&(_e.d(1),_e=null),D[3].type==="freeBet"?ue?ue.p(D,F):(ue=nu(D),ue.c(),ue.m(y.parentNode,y)):ue&&(ue.d(1),ue=null),D[3].type==="freeRound"?de?de.p(D,F):(de=su(D),de.c(),de.m(L.parentNode,L)):de&&(de.d(1),de=null),D[3].type==="wagering"?N?N.p(D,F):(N=lu(D),N.c(),N.m(E.parentNode,E)):N&&(N.d(1),N=null),D[3].endTime&&D[0]==="active"&&D[3].type!=="wagering"?R?R.p(D,F):(R=uu(D),R.c(),R.m(I.parentNode,I)):R&&(R.d(1),R=null)},d(D){D&&(M(t),M(l),M(u),M(_),M(C),M(y),M(L),M(E),M(I)),$.d(),_e&&_e.d(D),ue&&ue.d(D),de&&de.d(D),N&&N.d(D),R&&R.d(D)}}}function sw(e){let t,r,i=e[23]("bonusCard.bonusType")+"",n,s,o,a,l=e[23](`bonusType.${e[3].type}`)+"",u,c,d,h,f,v=e[23]("bonusCard.validity")+"",g,w,b,_,C=e[30](e[3])+"",y,L=[e[34]("BonusCardLabel")],E={};for(let U=0;U<L.length;U+=1)E=T(E,L[U]);let I=[e[34]("BonusCardRowText","Type")],X={};for(let U=0;U<I.length;U+=1)X=T(X,I[U]);let q=[e[34]("BonusCardRow")],z={};for(let U=0;U<q.length;U+=1)z=T(z,q[U]);let P=e[3].type==="wagering"&&cu(e),$=[e[34]("BonusCardLabel")],re={};for(let U=0;U<$.length;U+=1)re=T(re,$[U]);let J=[e[34]("BonusCardRowText")],Z={};for(let U=0;U<J.length;U+=1)Z=T(Z,J[U]);let A=[e[34]("BonusCardRow")],Y={};for(let U=0;U<A.length;U+=1)Y=T(Y,A[U]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),u=O(l),c=W(),P&&P.c(),d=W(),h=x("p"),f=x("span"),g=O(v),w=O(":"),b=W(),_=x("span"),y=O(C),k(r,E),k(a,X),k(t,z),k(f,re),k(_,Z),k(h,Y)},m(U,ce){B(U,t,ce),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(U,c,ce),P&&P.m(U,ce),B(U,d,ce),B(U,h,ce),p(h,f),p(f,g),p(f,w),p(h,b),p(h,_),p(_,y)},p(U,ce){ce[0]&8388608&&i!==(i=U[23]("bonusCard.bonusType")+"")&&ne(n,i,E.contenteditable),ce[0]&8388616&&l!==(l=U[23](`bonusType.${U[3].type}`)+"")&&ne(u,l,X.contenteditable),U[3].type==="wagering"?P?P.p(U,ce):(P=cu(U),P.c(),P.m(d.parentNode,d)):P&&(P.d(1),P=null),ce[0]&8388608&&v!==(v=U[23]("bonusCard.validity")+"")&&ne(g,v,re.contenteditable),ce[0]&8&&C!==(C=U[30](U[3])+"")&&ne(y,C,Z.contenteditable)},d(U){U&&(M(t),M(c),M(d),M(h)),P&&P.d(U)}}}function ow(e){let t=e[23](`bonusCard.${e[3].status}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8388616&&t!==(t=i[23](`bonusCard.${i[3].status}`)+"")&&Ce(r,t)},d(i){i&&M(r)}}}function aw(e){let t=e[23](`bonusCard.${e[0]}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8388609&&t!==(t=i[23](`bonusCard.${i[0]}`)+"")&&Ce(r,t)},d(i){i&&M(r)}}}function iu(e){let t,r,i=e[23]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[3].remainingAmount+"",c,d,h,f,v=e[3].amount+"",g,w,b,_,C,y=e[23]("bonusCard.wageredAmount")+"",L,E,I,X,q=e[26](e[3])+e[15]+"",z,P,$=[e[34]("BonusCardLabel")],re={};for(let R=0;R<$.length;R+=1)re=T(re,$[R]);let J=[e[34]("BonusCardRowText")],Z={};for(let R=0;R<J.length;R+=1)Z=T(Z,J[R]);let A=[e[34]("BonusCardRow")],Y={};for(let R=0;R<A.length;R+=1)Y=T(Y,A[R]);let U=[e[34]("BonusCardLabel")],ce={};for(let R=0;R<U.length;R+=1)ce=T(ce,U[R]);function Pe(R,D){return R[3].initialWagerRequirementAmount>=2147483647?uw:lw}let De=Pe(e),se=De(e),_e=[e[34]("BonusCardRowText")],ue={};for(let R=0;R<_e.length;R+=1)ue=T(ue,_e[R]);let de=[e[34]("BonusCardRow")],N={};for(let R=0;R<de.length;R+=1)N=T(N,de[R]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),l=x("span"),c=O(u),d=O(e[15]),h=O(` /
|
|
3707
|
-
`),f=x("span"),g=O(v),w=O(e[15]),b=W(),_=x("p"),C=x("span"),L=O(y),E=O(":"),I=W(),
|
|
3708
|
-
`),se.c(),k(r,re),le(l,"BonusAmount",e[0]==="active"),le(f,"Amount",e[0]==="active"),k(a,Z),k(t,Y),k(C,ce),k(
|
|
4184
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new F2(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r})),this.addController(new H2(this.inputElement,this._labelController)),this._tooltipController=new lh(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}lt(G2);function q2(e){Tn(e,"svelte-140e58w",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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 Z2(e){let t,r,i;return{c(){t=x("span"),r=O(e[0]),i=O(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(n,s){B(n,t,s),p(t,r),p(t,i)},p(n,s){s&1&&Ce(r,n[0])},d(n){n&&M(t)}}}function K2(e){let t,r,i,n,s,o,a,l,u;const c=e[9].default,d=Si(c,e,e[8],null),h=d||Z2(e);return{c(){t=x("div"),r=ee("svg"),i=ee("circle"),n=ee("circle"),o=ee("circle"),a=W(),l=x("div"),h&&h.c(),m(i,"class","CircularProgressLineBg"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"fill","transparent"),m(i,"stroke-width","18"),m(n,"class","CircularProgressLine"),m(n,"cx","73.5"),m(n,"cy","73.5"),m(n,"r","64.5"),m(n,"stroke-width","18"),m(n,"stroke-dasharray",e[5]),m(n,"stroke-dashoffset",s=e[4]()),le(n,"Completed",e[1]==="completed"),m(o,"class","CircularProgressCenter"),m(o,"cx","73"),m(o,"cy","73.5"),m(o,"r","50.5"),le(o,"Completed",e[1]==="completed"),m(r,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,v){B(f,t,v),p(t,r),p(r,i),p(r,n),e[10](n),p(r,o),p(t,a),p(t,l),h&&h.m(l,null),e[11](t),u=!0},p(f,[v]){(!u||v&16&&s!==(s=f[4]()))&&m(n,"stroke-dashoffset",s),(!u||v&2)&&le(n,"Completed",f[1]==="completed"),(!u||v&2)&&le(o,"Completed",f[1]==="completed"),d?d.p&&(!u||v&256)&&Ti(d,c,f,f[8],u?Ai(c,f[8],v,null):Pi(f[8]),null):h&&h.p&&(!u||v&1)&&h.p(f,u?v:-1)},i(f){u||(dt(h,f),u=!0)},o(f){Ot(h,f),u=!1},d(f){f&&M(t),e[10](null),h&&h.d(f),e[11](null)}}}let Gl=64.5;function X2(e,t,r){let i,{$$slots:n={},$$scope:s}=t,{value:o=0}=t,{status:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,c,d=Math.PI*(Gl*2),h;const f=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},v=()=>{let b=new URL(u),_=document.createElement("style");fetch(b.href).then(C=>C.text()).then(C=>{_.innerHTML=C,setTimeout(()=>{h.appendChild(_)},1)})};function g(b){At[b?"unshift":"push"](()=>{c=b,r(3,c)})}function w(b){At[b?"unshift":"push"](()=>{h=b,r(2,h)})}return e.$$set=b=>{"value"in b&&r(0,o=b.value),"status"in b&&r(1,a=b.status),"clientstyling"in b&&r(6,l=b.clientstyling),"clientstylingurl"in b&&r(7,u=b.clientstylingurl),"$$scope"in b&&r(8,s=b.$$scope)},e.$$.update=()=>{e.$$.dirty&68&&l&&h&&f(),e.$$.dirty&132&&u&&h&&v(),e.$$.dirty&1&&r(4,i=()=>{var b=Math.PI*(Gl*2);return o<0&&r(0,o=0),o>100&&r(0,o=100),(100-o)/100*b})},[o,a,h,c,i,d,l,u,s,n,g,w]}class J2 extends Mn{constructor(t){super(),Pn(this,t,X2,K2,ki,{value:0,status:1,clientstyling:6,clientstylingurl:7},q2)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),xe()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),xe()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}}Dn(J2,{value:{},status:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);const ql=e=>Q2[e],Q2={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 ew(e){Tn(e,"svelte-1ifwyr4",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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 Zl(e,t,r){const i=e.slice();return i[76]=t[r],i[78]=r,i}function Kl(e,t,r){const i=e.slice();return i[79]=t[r],i}function Xl(e,t,r){const i=e.slice();return i[70]=t[r],i}function Jl(e,t,r){const i=e.slice();return i[73]=t[r],i}function Ql(e,t,r){const i=e.slice();return i[82]=t[r],i[84]=r,i}function eu(e){var de;let t,r,i,n,s,o=e[31](e[3]).indexOf("Casino")>-1,a,l=e[31](e[3]).indexOf("Sports")>-1,u,c=(e[3].name||((de=e[3].presentation)==null?void 0:de.name.content))+"",d,h,f,v,g,w,b,_=o&&tu(e),C=l&&ru(e),y=[e[34]("TitleIcon")],L={};for(let N=0;N<y.length;N+=1)L=T(L,y[N]);let E=[e[34]("BonusCardRowTitle")],I={};for(let N=0;N<E.length;N+=1)I=T(I,E[N]);function K(N,R){if(N[0]==="active")return rw;if(N[0]==="completed")return tw}let q=K(e),z=q&&q(e),P=[e[34]("BonusCardHeader")],$={};for(let N=0;N<P.length;N+=1)$=T($,P[N]);let re=iw(e),J=e[8]&&pu(e);function Z(N,R){return N[12]?kw:Ew}let A=Z(e),Y=A(e),U=[e[34]("BonusCardFooter")],ce={};for(let N=0;N<U.length;N+=1)ce=T(ce,U[N]);let Pe=[e[34]("BonusCardInfo")],De={};for(let N=0;N<Pe.length;N+=1)De=T(De,Pe[N]);let se=e[7]&&Cu(e),_e=[e[34]("BonusCard")],ue={};for(let N=0;N<_e.length;N+=1)ue=T(ue,_e[N]);return{c(){t=x("div"),r=x("div"),i=x("div"),n=x("p"),s=x("span"),_&&_.c(),a=W(),C&&C.c(),u=W(),d=O(c),h=W(),z&&z.c(),f=W(),re&&re.c(),v=W(),g=x("div"),J&&J.c(),w=W(),Y.c(),b=W(),se&&se.c(),k(s,L),k(n,I),k(i,$),k(g,ce),le(g,"Active",e[9]||e[10]),k(r,De),k(t,ue)},m(N,R){B(N,t,R),p(t,r),p(r,i),p(i,n),p(n,s),_&&_.m(s,null),p(s,a),C&&C.m(s,null),p(n,u),p(n,d),p(i,h),z&&z.m(i,null),p(r,f),re&&re.m(r,null),p(r,v),p(r,g),J&&J.m(g,null),p(g,w),Y.m(g,null),p(t,b),se&&se.m(t,null),e[52](t)},p(N,R){var D;R[0]&8&&(o=N[31](N[3]).indexOf("Casino")>-1),o?_?_.p(N,R):(_=tu(N),_.c(),_.m(s,a)):_&&(_.d(1),_=null),R[0]&8&&(l=N[31](N[3]).indexOf("Sports")>-1),l?C?C.p(N,R):(C=ru(N),C.c(),C.m(s,null)):C&&(C.d(1),C=null),R[0]&8&&c!==(c=(N[3].name||((D=N[3].presentation)==null?void 0:D.name.content))+"")&&ne(d,c,I.contenteditable),q===(q=K(N))&&z?z.p(N,R):(z&&z.d(1),z=q&&q(N),z&&(z.c(),z.m(i,null))),re.p(N,R),N[8]?J?J.p(N,R):(J=pu(N),J.c(),J.m(g,w)):J&&(J.d(1),J=null),A===(A=Z(N))&&Y?Y.p(N,R):(Y.d(1),Y=A(N),Y&&(Y.c(),Y.m(g,null))),R[0]&1536&&le(g,"Active",N[9]||N[10]),N[7]?se?se.p(N,R):(se=Cu(N),se.c(),se.m(t,null)):se&&(se.d(1),se=null)},d(N){N&&M(t),_&&_.d(),C&&C.d(),z&&z.d(),re&&re.d(),J&&J.d(),Y.d(),se&&se.d(),e[52](null)}}}function tu(e){let t,r,i,n,s,o,a,l,u,c,d,h,f,v=[e[34]("CasinoIcon"),{viewBox:"0 0 41 41"}],g={};for(let w=0;w<v.length;w+=1)g=T(g,v[w]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=ee("path"),d=ee("path"),h=ee("circle"),f=ee("circle"),m(r,"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(r,"fill","black"),m(i,"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(i,"fill","black"),m(n,"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(n,"fill","black"),m(s,"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(s,"fill","black"),m(o,"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(o,"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(c,"fill-rule","evenodd"),m(c,"clip-rule","evenodd"),m(c,"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(c,"fill","black"),m(d,"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(d,"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"),Wu(t,g)},m(w,b){B(w,t,b),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o),p(t,a),p(t,l),p(t,u),p(t,c),p(t,d),p(t,h),p(t,f)},p:ke,d(w){w&&M(t)}}}function ru(e){let t,r,i,n,s,o,a=[e[34]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),m(r,"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(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"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(i,"fill","black"),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"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(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"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(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"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(o,"fill","black"),Wu(t,l)},m(u,c){B(u,t,c),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o)},p:ke,d(u){u&&M(t)}}}function tw(e){let t,r=e[23](`bonusCard.${e[3].status}`)+"",i,n=[e[34]("BonusCardTitleSub")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("p"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&8388616&&r!==(r=o[23](`bonusCard.${o[3].status}`)+"")&&ne(i,r,s.contenteditable)},d(o){o&&M(t)}}}function rw(e){let t,r,i,n,s,o=[e[34]("BonusCardTitleSub")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=x("span"),r=ee("svg"),i=ee("path"),n=W(),s=O(e[16]),m(i,"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(i,"fill","#6D6D6D"),m(r,"width","24"),m(r,"height","28"),m(r,"viewBox","0 0 24 28"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(r,i),p(t,n),p(t,s)},p(l,u){u[0]&65536&&ne(s,l[16],a.contenteditable)},d(l){l&&M(t)}}}function iw(e){let t,r,i;function n(h,f){return h[0]==="claimable"?sw:nw}let s=n(e),o=s(e),a=[e[34]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=T(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&du(e),c=[e[34]("BonusCardData")],d={};for(let h=0;h<c.length;h+=1)d=T(d,c[h]);return{c(){t=x("div"),r=x("div"),o.c(),i=W(),u&&u.c(),k(r,l),k(t,d)},m(h,f){B(h,t,f),p(t,r),o.m(r,null),p(t,i),u&&u.m(t,null)},p(h,f){s===(s=n(h))&&o?o.p(h,f):(o.d(1),o=s(h),o&&(o.c(),o.m(r,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=du(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&M(t),o.d(),u&&u.d()}}}function nw(e){let t,r,i=e[23]("bonusCard.bonusStatus")+"",n,s,o,a,l,u,c,d=e[23]("bonusCard.bonusType")+"",h,f,v,g,w=e[23](`bonusType.${e[3].type}`)+"",b,_,C,y,L,E,I,K=[e[34]("BonusCardLabel")],q={};for(let D=0;D<K.length;D+=1)q=T(q,K[D]);function z(D,F){return D[0]==="active"?aw:ow}let P=z(e),$=P(e),re=[e[34]("BonusCardRowText")],J={};for(let D=0;D<re.length;D+=1)J=T(J,re[D]);let Z=[e[34]("BonusCardRow")],A={};for(let D=0;D<Z.length;D+=1)A=T(A,Z[D]);let Y=[e[34]("BonusCardLabel")],U={};for(let D=0;D<Y.length;D+=1)U=T(U,Y[D]);let ce=[e[34]("BonusCardRowText","Type")],Pe={};for(let D=0;D<ce.length;D+=1)Pe=T(Pe,ce[D]);let De=[e[34]("BonusCardRow")],se={};for(let D=0;D<De.length;D+=1)se=T(se,De[D]);let _e=e[3].type==="standard"&&iu(e),ue=e[3].type==="freeBet"&&nu(e),de=e[3].type==="freeRound"&&su(e),N=e[3].type==="wagering"&&lu(e),R=e[3].endTime&&e[0]==="active"&&e[3].type!=="wagering"&&uu(e);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),$.c(),l=W(),u=x("p"),c=x("span"),h=O(d),f=O(":"),v=W(),g=x("span"),b=O(w),_=W(),_e&&_e.c(),C=W(),ue&&ue.c(),y=W(),de&&de.c(),L=W(),N&&N.c(),E=W(),R&&R.c(),I=Nt(),k(r,q),k(a,J),le(a,"StatusActive",e[0]==="active"),le(a,"StatusCompleted",e[0]==="completed"),le(a,"StatusClaimable",e[0]==="claimable"),k(t,A),k(c,U),k(g,Pe),k(u,se)},m(D,F){B(D,t,F),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),$.m(a,null),B(D,l,F),B(D,u,F),p(u,c),p(c,h),p(c,f),p(u,v),p(u,g),p(g,b),B(D,_,F),_e&&_e.m(D,F),B(D,C,F),ue&&ue.m(D,F),B(D,y,F),de&&de.m(D,F),B(D,L,F),N&&N.m(D,F),B(D,E,F),R&&R.m(D,F),B(D,I,F)},p(D,F){F[0]&8388608&&i!==(i=D[23]("bonusCard.bonusStatus")+"")&&ne(n,i,q.contenteditable),P===(P=z(D))&&$?$.p(D,F):($.d(1),$=P(D),$&&($.c(),$.m(a,null))),F[0]&1&&le(a,"StatusActive",D[0]==="active"),F[0]&1&&le(a,"StatusCompleted",D[0]==="completed"),F[0]&1&&le(a,"StatusClaimable",D[0]==="claimable"),F[0]&8388608&&d!==(d=D[23]("bonusCard.bonusType")+"")&&ne(h,d,U.contenteditable),F[0]&8388616&&w!==(w=D[23](`bonusType.${D[3].type}`)+"")&&ne(b,w,Pe.contenteditable),D[3].type==="standard"?_e?_e.p(D,F):(_e=iu(D),_e.c(),_e.m(C.parentNode,C)):_e&&(_e.d(1),_e=null),D[3].type==="freeBet"?ue?ue.p(D,F):(ue=nu(D),ue.c(),ue.m(y.parentNode,y)):ue&&(ue.d(1),ue=null),D[3].type==="freeRound"?de?de.p(D,F):(de=su(D),de.c(),de.m(L.parentNode,L)):de&&(de.d(1),de=null),D[3].type==="wagering"?N?N.p(D,F):(N=lu(D),N.c(),N.m(E.parentNode,E)):N&&(N.d(1),N=null),D[3].endTime&&D[0]==="active"&&D[3].type!=="wagering"?R?R.p(D,F):(R=uu(D),R.c(),R.m(I.parentNode,I)):R&&(R.d(1),R=null)},d(D){D&&(M(t),M(l),M(u),M(_),M(C),M(y),M(L),M(E),M(I)),$.d(),_e&&_e.d(D),ue&&ue.d(D),de&&de.d(D),N&&N.d(D),R&&R.d(D)}}}function sw(e){let t,r,i=e[23]("bonusCard.bonusType")+"",n,s,o,a,l=e[23](`bonusType.${e[3].type}`)+"",u,c,d,h,f,v=e[23]("bonusCard.validity")+"",g,w,b,_,C=e[30](e[3])+"",y,L=[e[34]("BonusCardLabel")],E={};for(let U=0;U<L.length;U+=1)E=T(E,L[U]);let I=[e[34]("BonusCardRowText","Type")],K={};for(let U=0;U<I.length;U+=1)K=T(K,I[U]);let q=[e[34]("BonusCardRow")],z={};for(let U=0;U<q.length;U+=1)z=T(z,q[U]);let P=e[3].type==="wagering"&&cu(e),$=[e[34]("BonusCardLabel")],re={};for(let U=0;U<$.length;U+=1)re=T(re,$[U]);let J=[e[34]("BonusCardRowText")],Z={};for(let U=0;U<J.length;U+=1)Z=T(Z,J[U]);let A=[e[34]("BonusCardRow")],Y={};for(let U=0;U<A.length;U+=1)Y=T(Y,A[U]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),u=O(l),c=W(),P&&P.c(),d=W(),h=x("p"),f=x("span"),g=O(v),w=O(":"),b=W(),_=x("span"),y=O(C),k(r,E),k(a,K),k(t,z),k(f,re),k(_,Z),k(h,Y)},m(U,ce){B(U,t,ce),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(U,c,ce),P&&P.m(U,ce),B(U,d,ce),B(U,h,ce),p(h,f),p(f,g),p(f,w),p(h,b),p(h,_),p(_,y)},p(U,ce){ce[0]&8388608&&i!==(i=U[23]("bonusCard.bonusType")+"")&&ne(n,i,E.contenteditable),ce[0]&8388616&&l!==(l=U[23](`bonusType.${U[3].type}`)+"")&&ne(u,l,K.contenteditable),U[3].type==="wagering"?P?P.p(U,ce):(P=cu(U),P.c(),P.m(d.parentNode,d)):P&&(P.d(1),P=null),ce[0]&8388608&&v!==(v=U[23]("bonusCard.validity")+"")&&ne(g,v,re.contenteditable),ce[0]&8&&C!==(C=U[30](U[3])+"")&&ne(y,C,Z.contenteditable)},d(U){U&&(M(t),M(c),M(d),M(h)),P&&P.d(U)}}}function ow(e){let t=e[23](`bonusCard.${e[3].status}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8388616&&t!==(t=i[23](`bonusCard.${i[3].status}`)+"")&&Ce(r,t)},d(i){i&&M(r)}}}function aw(e){let t=e[23](`bonusCard.${e[0]}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8388609&&t!==(t=i[23](`bonusCard.${i[0]}`)+"")&&Ce(r,t)},d(i){i&&M(r)}}}function iu(e){let t,r,i=e[23]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[3].remainingAmount+"",c,d,h,f,v=e[3].amount+"",g,w,b,_,C,y=e[23]("bonusCard.wageredAmount")+"",L,E,I,K,q=e[26](e[3])+e[15]+"",z,P,$=[e[34]("BonusCardLabel")],re={};for(let R=0;R<$.length;R+=1)re=T(re,$[R]);let J=[e[34]("BonusCardRowText")],Z={};for(let R=0;R<J.length;R+=1)Z=T(Z,J[R]);let A=[e[34]("BonusCardRow")],Y={};for(let R=0;R<A.length;R+=1)Y=T(Y,A[R]);let U=[e[34]("BonusCardLabel")],ce={};for(let R=0;R<U.length;R+=1)ce=T(ce,U[R]);function Pe(R,D){return R[3].initialWagerRequirementAmount>=2147483647?uw:lw}let De=Pe(e),se=De(e),_e=[e[34]("BonusCardRowText")],ue={};for(let R=0;R<_e.length;R+=1)ue=T(ue,_e[R]);let de=[e[34]("BonusCardRow")],N={};for(let R=0;R<de.length;R+=1)N=T(N,de[R]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),l=x("span"),c=O(u),d=O(e[15]),h=O(` /
|
|
4185
|
+
`),f=x("span"),g=O(v),w=O(e[15]),b=W(),_=x("p"),C=x("span"),L=O(y),E=O(":"),I=W(),K=x("span"),z=O(q),P=O(` /
|
|
4186
|
+
`),se.c(),k(r,re),le(l,"BonusAmount",e[0]==="active"),le(f,"Amount",e[0]==="active"),k(a,Z),k(t,Y),k(C,ce),k(K,ue),k(_,N)},m(R,D){B(R,t,D),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,l),p(l,c),p(l,d),p(a,h),p(a,f),p(f,g),p(f,w),B(R,b,D),B(R,_,D),p(_,C),p(C,L),p(C,E),p(_,I),p(_,K),p(K,z),p(K,P),se.m(K,null)},p(R,D){D[0]&8388608&&i!==(i=R[23]("bonusCard.bonusAmount")+"")&&ne(n,i,re.contenteditable),D[0]&8&&u!==(u=R[3].remainingAmount+"")&&Ce(c,u),D[0]&32768&&Ce(d,R[15]),D[0]&1&&le(l,"BonusAmount",R[0]==="active"),D[0]&8&&v!==(v=R[3].amount+"")&&Ce(g,v),D[0]&32768&&Ce(w,R[15]),D[0]&1&&le(f,"Amount",R[0]==="active"),D[0]&8388608&&y!==(y=R[23]("bonusCard.wageredAmount")+"")&&ne(L,y,ce.contenteditable),D[0]&32776&&q!==(q=R[26](R[3])+R[15]+"")&&ne(z,q,ue.contenteditable),De===(De=Pe(R))&&se?se.p(R,D):(se.d(1),se=De(R),se&&(se.c(),se.m(K,null)))},d(R){R&&(M(t),M(b),M(_)),se.d()}}}function lw(e){let t=e[3].initialWagerRequirementAmount+e[15]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&32776&&t!==(t=i[3].initialWagerRequirementAmount+i[15]+"")&&Ce(r,t)},d(i){i&&M(r)}}}function uw(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function nu(e){let t,r,i=e[23]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[3].remainingAmount+"",c,d,h=[e[34]("BonusCardLabel")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let v=[e[34]("BonusCardRowText")],g={};for(let _=0;_<v.length;_+=1)g=T(g,v[_]);let w=[e[34]("BonusCardRow")],b={};for(let _=0;_<w.length;_+=1)b=T(b,w[_]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),l=x("span"),c=O(u),d=O(e[15]),k(r,f),le(l,"BonusAmount",e[0]==="active"),k(a,g),k(t,b)},m(_,C){B(_,t,C),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,l),p(l,c),p(l,d)},p(_,C){C[0]&8388608&&i!==(i=_[23]("bonusCard.bonusAmount")+"")&&ne(n,i,f.contenteditable),C[0]&8&&u!==(u=_[3].remainingAmount+"")&&Ce(c,u),C[0]&32768&&Ce(d,_[15]),C[0]&1&&le(l,"BonusAmount",_[0]==="active")},d(_){_&&M(t)}}}function su(e){let t,r=e[3].status==="active"&&ou(e);return{c(){r&&r.c(),t=Nt()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[3].status==="active"?r?r.p(i,n):(r=ou(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(i){i&&M(t),r&&r.d(i)}}}function ou(e){let t,r,i=e[23]("bonusCard.roundNumber")+"",n,s,o,a,l=e[3].numberOfFreeSpin+"",u,c,d,h,f=e[23]("bonusCard.game")+"",v,g,w,b,_,C,y,L,E,I,K,q,z,P,$,re,J,Z,A,Y=[e[34]("BonusCardLabel")],U={};for(let Q=0;Q<Y.length;Q+=1)U=T(U,Y[Q]);let ce=[e[34]("BonusCardRowText")],Pe={};for(let Q=0;Q<ce.length;Q+=1)Pe=T(Pe,ce[Q]);let De=[e[34]("BonusCardRow")],se={};for(let Q=0;Q<De.length;Q+=1)se=T(se,De[Q]);let _e=[e[34]("BonusCardLabel")],ue={};for(let Q=0;Q<_e.length;Q+=1)ue=T(ue,_e[Q]);let de=Ge(e[21]),N=[];for(let Q=0;Q<de.length;Q+=1)N[Q]=au(Ql(e,de,Q));let R=[e[34]("BonusCardRowText")],D={};for(let Q=0;Q<R.length;Q+=1)D=T(D,R[Q]);let F=[e[34]("BonusCardRow")],Ne={};for(let Q=0;Q<F.length;Q+=1)Ne=T(Ne,F[Q]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),u=O(l),c=W(),d=x("div"),h=x("div"),v=O(f),g=O(":"),w=W(),b=x("div"),_=x("div"),C=x("button"),y=ee("svg"),L=ee("path"),I=W(),K=x("div"),q=x("span");for(let Q=0;Q<N.length;Q+=1)N[Q].c();z=W(),P=x("button"),$=ee("svg"),re=ee("path"),k(r,U),k(a,Pe),k(t,se),k(h,ue),m(L,"stroke-linecap","round"),m(L,"stroke-linejoin","round"),m(L,"stroke-width","2"),m(L,"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(C,"class","SliderNavButton"),m(C,"part","SliderNavButton"),C.disabled=E=e[22]==0,le(C,"Hide",e[21].length<=3),m(q,"class","Games"),$s(q,"transform","translateX("+e[22]+"px)"),m(K,"class","Main"),m(re,"stroke-linecap","round"),m(re,"stroke-linejoin","round"),m(re,"stroke-width","2"),m(re,"d","M9 5l7 7-7 7"),m($,"fill","none"),m($,"stroke","currentColor"),m($,"viewBox","0 0 24 24"),m($,"xmlns","http://www.w3.org/2000/svg"),m(P,"class","SliderNavButton"),m(P,"part","SliderNavButton"),P.disabled=J=e[22]<=-(e[21].length-3)*100,le(P,"Hide",e[21].length<=3),m(_,"class","BonusGamesSlider"),k(b,D),k(d,Ne)},m(Q,Se){B(Q,t,Se),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(Q,c,Se),B(Q,d,Se),p(d,h),p(h,v),p(h,g),p(d,w),p(d,b),p(b,_),p(_,C),p(C,y),p(y,L),p(_,I),p(_,K),p(K,q);for(let Le=0;Le<N.length;Le+=1)N[Le]&&N[Le].m(q,null);p(_,z),p(_,P),p(P,$),p($,re),Z||(A=[Re(C,"click",e[44]),Re(P,"click",e[48])],Z=!0)},p(Q,Se){if(Se[0]&8388608&&i!==(i=Q[23]("bonusCard.roundNumber")+"")&&ne(n,i,U.contenteditable),Se[0]&8&&l!==(l=Q[3].numberOfFreeSpin+"")&&ne(u,l,Pe.contenteditable),Se[0]&8388608&&f!==(f=Q[23]("bonusCard.game")+"")&&ne(v,f,ue.contenteditable),Se[0]&4194304&&E!==(E=Q[22]==0)&&(C.disabled=E),Se[0]&2097152&&le(C,"Hide",Q[21].length<=3),Se[0]&12058624|Se[1]&112){de=Ge(Q[21]);let Le;for(Le=0;Le<de.length;Le+=1){const Zt=Ql(Q,de,Le);N[Le]?N[Le].p(Zt,Se):(N[Le]=au(Zt),N[Le].c(),N[Le].m(q,null))}for(;Le<N.length;Le+=1)N[Le].d(1);N.length=de.length}Se[0]&4194304&&$s(q,"transform","translateX("+Q[22]+"px)"),Se[0]&6291456&&J!==(J=Q[22]<=-(Q[21].length-3)*100)&&(P.disabled=J),Se[0]&2097152&&le(P,"Hide",Q[21].length<=3)},d(Q){Q&&(M(t),M(c),M(d)),jt(N,Q),Z=!1,pt(A)}}}function au(e){let t,r,i=e[23]("bonusCard.playNow")+"",n,s,o,a,l,u,c,d,h,f,v;function g(){return e[45](e[82])}function w(){return e[46](e[84])}return{c(){t=x("span"),r=x("span"),n=O(i),a=W(),l=x("img"),h=W(),m(r,"class",s="PlayNowButton "+(e[19]&&e[20]==e[84]?"ItemHover":"")),m(r,"part",o="PlayNowButton "+(e[19]&&e[20]==e[84]?"itemHover":"")),Ma(l.src,u=e[82].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",c=e[82].name),m(l,"title",d=e[82].name),m(t,"class","Game"),m(t,"part","Game")},m(b,_){B(b,t,_),p(t,r),p(r,n),p(t,a),p(t,l),p(t,h),f||(v=[Re(t,"click",g),Re(t,"mouseenter",w),Re(t,"mouseleave",e[47])],f=!0)},p(b,_){e=b,_[0]&8388608&&i!==(i=e[23]("bonusCard.playNow")+"")&&Ce(n,i),_[0]&1572864&&s!==(s="PlayNowButton "+(e[19]&&e[20]==e[84]?"ItemHover":""))&&m(r,"class",s),_[0]&1572864&&o!==(o="PlayNowButton "+(e[19]&&e[20]==e[84]?"itemHover":""))&&m(r,"part",o),_[0]&2097152&&!Ma(l.src,u=e[82].thumbnail)&&m(l,"src",u),_[0]&2097152&&c!==(c=e[82].name)&&m(l,"alt",c),_[0]&2097152&&d!==(d=e[82].name)&&m(l,"title",d)},d(b){b&&M(t),f=!1,pt(v)}}}function lu(e){let t,r,i=e[23]("bonusCard.wageringType")+"",n,s,o,a,l=e[23](`bonusCard.${e[3].wageringType}`)+"",u,c,d,h,f=e[23]("bonusCard.wagered")+"",v,g,w,b,_=[e[34]("BonusCardLabel")],C={};for(let Y=0;Y<_.length;Y+=1)C=T(C,_[Y]);let y=[e[34]("BonusCardRowText")],L={};for(let Y=0;Y<y.length;Y+=1)L=T(L,y[Y]);let E=[e[34]("BonusCardRow")],I={};for(let Y=0;Y<E.length;Y+=1)I=T(I,E[Y]);let K=[e[34]("BonusCardLabel")],q={};for(let Y=0;Y<K.length;Y+=1)q=T(q,K[Y]);function z(Y,U){return Y[3].wageringType==="money"?dw:cw}let P=z(e),$=P(e),re=[e[34]("BonusCardRowText")],J={};for(let Y=0;Y<re.length;Y+=1)J=T(J,re[Y]);let Z=[e[34]("BonusCardRow")],A={};for(let Y=0;Y<Z.length;Y+=1)A=T(A,Z[Y]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),u=O(l),c=W(),d=x("p"),h=x("span"),v=O(f),g=O(":"),w=W(),b=x("span"),$.c(),k(r,C),k(a,L),k(t,I),k(h,q),k(b,J),k(d,A)},m(Y,U){B(Y,t,U),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(Y,c,U),B(Y,d,U),p(d,h),p(h,v),p(h,g),p(d,w),p(d,b),$.m(b,null)},p(Y,U){U[0]&8388608&&i!==(i=Y[23]("bonusCard.wageringType")+"")&&ne(n,i,C.contenteditable),U[0]&8388616&&l!==(l=Y[23](`bonusCard.${Y[3].wageringType}`)+"")&&ne(u,l,L.contenteditable),U[0]&8388608&&f!==(f=Y[23]("bonusCard.wagered")+"")&&ne(v,f,q.contenteditable),P===(P=z(Y))&&$?$.p(Y,U):($.d(1),$=P(Y),$&&($.c(),$.m(b,null)))},d(Y){Y&&(M(t),M(c),M(d)),$.d()}}}function cw(e){return{c:ke,m:ke,p:ke,d:ke}}function dw(e){let t;function r(s,o){return s[0]==="active"?fw:hw}let i=r(e),n=i(e);return{c(){n.c(),t=Nt()},m(s,o){n.m(s,o),B(s,t,o)},p(s,o){i===(i=r(s))&&n?n.p(s,o):(n.d(1),n=i(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&M(t),n.d(s)}}}function hw(e){let t=e[26](e[3])+e[15]+"",r,i,n;function s(l,u){return l[3].initialWagerRequirementAmount>=2147483647?mw:pw}let o=s(e),a=o(e);return{c(){r=O(t),i=O(` /
|
|
3709
4187
|
`),a.c(),n=Nt()},m(l,u){B(l,r,u),B(l,i,u),a.m(l,u),B(l,n,u)},p(l,u){u[0]&32776&&t!==(t=l[26](l[3])+l[15]+"")&&Ce(r,t),o===(o=s(l))&&a?a.p(l,u):(a.d(1),a=o(l),a&&(a.c(),a.m(n.parentNode,n)))},d(l){l&&(M(r),M(i),M(n)),a.d(l)}}}function fw(e){var c;let t=e[27](e[3])+"",r,i,n,s,o=((c=e[3].wageringProgress)==null?void 0:c.currentLevelIncrement)+"",a,l,u;return{c(){r=O(t),i=W(),n=O(e[15]),s=O(` /
|
|
3710
4188
|
`),a=O(o),l=W(),u=O(e[15])},m(d,h){B(d,r,h),B(d,i,h),B(d,n,h),B(d,s,h),B(d,a,h),B(d,l,h),B(d,u,h)},p(d,h){var f;h[0]&8&&t!==(t=d[27](d[3])+"")&&Ce(r,t),h[0]&32768&&Ce(n,d[15]),h[0]&8&&o!==(o=((f=d[3].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&Ce(a,o),h[0]&32768&&Ce(u,d[15])},d(d){d&&(M(r),M(i),M(n),M(s),M(a),M(l),M(u))}}}function pw(e){let t=e[3].initialWagerRequirementAmount+e[15]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&32776&&t!==(t=i[3].initialWagerRequirementAmount+i[15]+"")&&Ce(r,t)},d(i){i&&M(r)}}}function mw(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function uu(e){let t,r,i=e[23]("bonusCard.validUntil")+"",n,s,o,a,l=e[29](e[3].endTime)+"",u,c=[e[34]("BonusCardLabel")],d={};for(let w=0;w<c.length;w+=1)d=T(d,c[w]);let h=[e[34]("BonusCardRowText")],f={};for(let w=0;w<h.length;w+=1)f=T(f,h[w]);let v=[e[34]("BonusCardRow")],g={};for(let w=0;w<v.length;w+=1)g=T(g,v[w]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),u=O(l),k(r,d),k(a,f),k(t,g)},m(w,b){B(w,t,b),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u)},p(w,b){b[0]&8388608&&i!==(i=w[23]("bonusCard.validUntil")+"")&&ne(n,i,d.contenteditable),b[0]&8&&l!==(l=w[29](w[3].endTime)+"")&&ne(u,l,f.contenteditable)},d(w){w&&M(t)}}}function cu(e){let t,r,i=e[23]("bonusCard.levels")+"",n,s,o,a,l=[e[34]("BonusCardLabel")],u={};for(let b=0;b<l.length;b+=1)u=T(u,l[b]);function c(b,_){return b[6]>0?gw:_w}let d=c(e),h=d(e),f=[e[34]("BonusCardRowText")],v={};for(let b=0;b<f.length;b+=1)v=T(v,f[b]);let g=[e[34]("BonusCardRow")],w={};for(let b=0;b<g.length;b+=1)w=T(w,g[b]);return{c(){t=x("p"),r=x("span"),n=O(i),s=O(":"),o=W(),a=x("span"),h.c(),k(r,u),k(a,v),k(t,w)},m(b,_){B(b,t,_),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),h.m(a,null)},p(b,_){_[0]&8388608&&i!==(i=b[23]("bonusCard.levels")+"")&&ne(n,i,u.contenteditable),d===(d=c(b))&&h?h.p(b,_):(h.d(1),h=d(b),h&&(h.c(),h.m(a,null)))},d(b){b&&M(t),h.d()}}}function _w(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function gw(e){let t;return{c(){t=O(e[6])},m(r,i){B(r,t,i)},p(r,i){i[0]&64&&Ce(t,r[6])},d(r){r&&M(t)}}}function du(e){let t,r,i=e[3].type==="standard"&&hu(e),n=e[3].type==="wagering"&&fu(e);return{c(){i&&i.c(),t=W(),n&&n.c(),r=Nt()},m(s,o){i&&i.m(s,o),B(s,t,o),n&&n.m(s,o),B(s,r,o)},p(s,o){s[3].type==="standard"?i?i.p(s,o):(i=hu(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[3].type==="wagering"?n?n.p(s,o):(n=fu(s),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(s){s&&(M(t),M(r)),i&&i.d(s),n&&n.d(s)}}}function hu(e){let t,r,i,n=[e[34]("CircularProgress"),{value:i=e[28](e[3])},{status:e[0]},{clientstyling:e[1]},{clientstylingurl:e[2]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[34]("BonusCardProgress")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=x("div"),r=x("casino-bonus-progress"),k(r,s),k(t,a)},m(l,u){B(l,t,u),p(t,r)},p(l,u){k(r,s=He(n,[l[34]("CircularProgress"),u[0]&8&&i!==(i=l[28](l[3]))&&{value:i},u[0]&1&&{status:l[0]},u[0]&2&&{clientstyling:l[1]},u[0]&4&&{clientstylingurl:l[2]}]))},d(l){l&&M(t)}}}function fu(e){var L;let t,r,i,n,s,o=e[23]("bonusCard.level")+"",a,l,u=(((L=e[3].wageringProgress)==null?void 0:L.currentLevel)||1)+"",c,d,h=[e[34]("CircularProgress"),{value:i=e[28](e[3])},{status:e[0]},{clientstyling:e[1]},{clientstylingurl:e[2]}],f={};for(let E=0;E<h.length;E+=1)f=T(f,h[E]);function v(E,I){return E[6]>0?vw:bw}let g=v(e),w=g(e),b=[e[34]("CircularProgressText")],_={};for(let E=0;E<b.length;E+=1)_=T(_,b[E]);let C=[e[34]("BonusCardProgress")],y={};for(let E=0;E<C.length;E+=1)y=T(y,C[E]);return{c(){t=x("div"),r=x("casino-bonus-progress"),n=W(),s=x("div"),a=O(o),l=O(": "),c=O(u),d=O(` /
|
|
3711
|
-
`),w.c(),k(r,f),k(s,_),k(t,y)},m(E,I){B(E,t,I),p(t,r),p(t,n),p(t,s),p(s,a),p(s,l),p(s,c),p(s,d),w.m(s,null)},p(E,I){var X;k(r,f=He(h,[E[34]("CircularProgress"),I[0]&8&&i!==(i=E[28](E[3]))&&{value:i},I[0]&1&&{status:E[0]},I[0]&2&&{clientstyling:E[1]},I[0]&4&&{clientstylingurl:E[2]}])),I[0]&8388608&&o!==(o=E[23]("bonusCard.level")+"")&&ne(a,o,_.contenteditable),I[0]&8&&u!==(u=(((X=E[3].wageringProgress)==null?void 0:X.currentLevel)||1)+"")&&ne(c,u,_.contenteditable),g===(g=v(E))&&w?w.p(E,I):(w.d(1),w=g(E),w&&(w.c(),w.m(s,null)))},d(E){E&&M(t),w.d()}}}function bw(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function vw(e){let t;return{c(){t=O(e[6])},m(r,i){B(r,t,i)},p(r,i){i[0]&64&&Ce(t,r[6])},d(r){r&&M(t)}}}function pu(e){let t,r,i,n,s,o,a=e[23]("bonusCard.rewards")+"",l,u,c,d,h,f,v=[e[34]("BonusCardAdditionalTitle")],g={};for(let z=0;z<v.length;z+=1)g=T(g,v[z]);function w(z,P){return z[9]?yw:ww}let b=w(e),_=b(e),C=[e[34]("BonusCardAdditionalButton")],y={};for(let z=0;z<C.length;z+=1)y=T(y,C[z]);let L=[e[34]("BonusCardAdditionalHeader")],E={};for(let z=0;z<L.length;z+=1)E=T(E,L[z]);let I=e[9]&&mu(e),X=[e[34]("BonusCardAdditional")],q={};for(let z=0;z<X.length;z+=1)q=T(q,X[z]);return{c(){t=x("div"),r=x("div"),i=x("span"),n=ee("svg"),s=ee("path"),o=W(),l=O(a),u=W(),c=x("span"),_.c(),d=W(),I&&I.c(),m(s,"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(s,"fill","black"),m(n,"width","20"),m(n,"height","20"),m(n,"viewBox","0 0 20 20"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,g),k(c,y),k(r,E),le(r,"Active",e[9]),k(t,q)},m(z,P){B(z,t,P),p(t,r),p(r,i),p(i,n),p(n,s),p(i,o),p(i,l),p(r,u),p(r,c),_.m(c,null),p(t,d),I&&I.m(t,null),h||(f=Re(r,"click",e[49]),h=!0)},p(z,P){P[0]&8388608&&a!==(a=z[23]("bonusCard.rewards")+"")&&ne(l,a,g.contenteditable),b!==(b=w(z))&&(_.d(1),_=b(z),_&&(_.c(),_.m(c,null))),P[0]&512&&le(r,"Active",z[9]),z[9]?I?I.p(z,P):(I=mu(z),I.c(),I.m(t,null)):I&&(I.d(1),I=null)},d(z){z&&M(t),_.d(),I&&I.d(),h=!1,f()}}}function yw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function ww(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function mu(e){let t,r=e[3].type==="wagering"&&_u(e),i=[e[34]("BonusCardAdditionalContent")],n={};for(let s=0;s<i.length;s+=1)n=T(n,i[s]);return{c(){t=x("div"),r&&r.c(),k(t,n)},m(s,o){B(s,t,o),r&&r.m(t,null)},p(s,o){s[3].type==="wagering"?r?r.p(s,o):(r=_u(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&M(t),r&&r.d()}}}function _u(e){let t,r,i=e[23]("bonusCard.allRewards")+"",n,s,o;function a(h,f){return h[3].status?xw:Cw}let l=a(e),u=l(e),c=[e[34]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],d={};for(let h=0;h<c.length;h+=1)d=T(d,c[h]);return{c(){u.c(),t=W(),r=x("a"),n=O(i),k(r,d)},m(h,f){u.m(h,f),B(h,t,f),B(h,r,f),p(r,n),s||(o=Re(r,"click",e[50]),s=!0)},p(h,f){l===(l=a(h))&&u?u.p(h,f):(u.d(1),u=l(h),u&&(u.c(),u.m(t.parentNode,t))),f[0]&8388608&&i!==(i=h[23]("bonusCard.allRewards")+"")&&ne(n,i,d.contenteditable)},d(h){h&&(M(t),M(r)),u.d(h),s=!1,o()}}}function Cw(e){let t,r=Ge(e[3].levels),i=[];for(let n=0;n<r.length;n+=1)i[n]=bu(Zl(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Nt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&8388616|s[1]&10){r=Ge(n[3].levels);let o;for(o=0;o<r.length;o+=1){const a=Zl(n,r,o);i[o]?i[o].p(a,s):(i[o]=bu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&M(t),jt(i,n)}}}function xw(e){let t,r=Ge(e[33](e[3],e[5])),i=[];for(let n=0;n<r.length;n+=1)i[n]=yu(Kl(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Nt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&8388648|s[1]&12){r=Ge(n[33](n[3],n[5]));let o;for(o=0;o<r.length;o+=1){const a=Kl(n,r,o);i[o]?i[o].p(a,s):(i[o]=yu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&M(t),jt(i,n)}}}function gu(e){let t=e[32](e[76],e[79])+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8&&t!==(t=i[32](i[76],i[79])+"")&&Ce(r,t)},d(i){i&&M(r)}}}function bu(e){let t,r,i=e[23]("bonusCard.level")+"",n,s,o=(e[76].maxRepeats>1?`${e[78]+1}-${e[78]+1+e[76].maxRepeats-1}`:e[78]+1)+"",a,l,u,c,d,h=[e[34]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let v=Ge(e[76].bonuses),g=[];for(let _=0;_<v.length;_+=1)g[_]=gu(Xl(e,v,_));let w=[e[34]("BonusRewardsLevelsItem")],b={};for(let _=0;_<w.length;_+=1)b=T(b,w[_]);return{c(){t=x("p"),r=x("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),c=x("span");for(let _=0;_<g.length;_+=1)g[_].c();d=W(),k(r,f),k(t,b)},m(_,C){B(_,t,C),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,c);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(c,null);p(t,d)},p(_,C){if(C[0]&8388608&&i!==(i=_[23]("bonusCard.level")+"")&&ne(n,i,f.contenteditable),C[0]&8&&o!==(o=(_[76].maxRepeats>1?`${_[78]+1}-${_[78]+1+_[76].maxRepeats-1}`:_[78]+1)+"")&&ne(a,o,f.contenteditable),C[0]&8|C[1]&2){v=Ge(_[76].bonuses);let y;for(y=0;y<v.length;y+=1){const L=Xl(_,v,y);g[y]?g[y].p(L,C):(g[y]=gu(L),g[y].c(),g[y].m(c,null))}for(;y<g.length;y+=1)g[y].d(1);g.length=v.length}},d(_){_&&M(t),jt(g,_)}}}function vu(e){let t=e[73]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&40&&t!==(t=i[73]+"")&&Ce(r,t)},d(i){i&&M(r)}}}function yu(e){let t,r,i=e[23](`bonusCard.${e[70].label}`)+"",n,s,o=e[23]("bonusCard.level")+"",a,l,u,c,d,h=[e[34]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let v=Ge(e[70].desc),g=[];for(let _=0;_<v.length;_+=1)g[_]=vu(Jl(e,v,_));let w=[e[34]("BonusRewardsLevelsItem")],b={};for(let _=0;_<w.length;_+=1)b=T(b,w[_]);return{c(){t=x("p"),r=x("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),c=x("span");for(let _=0;_<g.length;_+=1)g[_].c();d=W(),k(r,f),k(t,b)},m(_,C){B(_,t,C),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,c);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(c,null);p(t,d)},p(_,C){if(C[0]&8388648&&i!==(i=_[23](`bonusCard.${_[70].label}`)+"")&&ne(n,i,f.contenteditable),C[0]&8388608&&o!==(o=_[23]("bonusCard.level")+"")&&ne(a,o,f.contenteditable),C[0]&40|C[1]&4){v=Ge(_[70].desc);let y;for(y=0;y<v.length;y+=1){const L=Jl(_,v,y);g[y]?g[y].p(L,C):(g[y]=vu(L),g[y].c(),g[y].m(c,null))}for(;y<g.length;y+=1)g[y].d(1);g.length=v.length}},d(_){_&&M(t),jt(g,_)}}}function Ew(e){let t,r,i,n,s,o,a,l,u,c,d=e[23]("bonusCard.terms")+"",h,f=[e[34]("BonusCardTermsLink"),{href:e[18]},{target:"__blank"}],v={};for(let b=0;b<f.length;b+=1)v=T(v,f[b]);let g=[e[34]("BonusCardTerms")],w={};for(let b=0;b<g.length;b+=1)w=T(w,g[b]);return{c(){t=x("div"),r=x("a"),i=ee("svg"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=W(),h=O(d),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"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(n,"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(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"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(o,"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(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"),k(r,v),k(t,w)},m(b,_){B(b,t,_),p(t,r),p(r,i),p(i,n),p(i,s),p(i,o),p(i,a),p(i,l),p(i,u),p(r,c),p(r,h)},p(b,_){_[0]&8388608&&d!==(d=b[23]("bonusCard.terms")+"")&&ne(h,d,v.contenteditable),k(r,v=He(f,[b[34]("BonusCardTermsLink"),_[0]&262144&&{href:b[18]},{target:"__blank"}]))},d(b){b&&M(t)}}}function kw(e){let t,r,i,n,s,o,a,l,u,c,d,h=e[23]("bonusCard.terms")+"",f,v,g,w,b,_,C=[e[34]("BonusCardTermsTitle")],y={};for(let Z=0;Z<C.length;Z+=1)y=T(y,C[Z]);function L(Z,A){return Z[10]?Sw:Aw}let E=L(e),I=E(e),X=[e[34]("BonusCardTermsButton")],q={};for(let Z=0;Z<X.length;Z+=1)q=T(q,X[Z]);let z=[e[34]("BonusCardTermsHeader")],P={};for(let Z=0;Z<z.length;Z+=1)P=T(P,z[Z]);let $=e[10]&&wu(e),re=[e[34]("BonusCardTerms")],J={};for(let Z=0;Z<re.length;Z+=1)J=T(J,re[Z]);return{c(){t=x("div"),r=x("div"),i=x("span"),n=ee("svg"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=ee("path"),d=W(),f=O(h),v=W(),g=x("span"),I.c(),w=W(),$&&$.c(),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"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(s,"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(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(c,"fill-rule","evenodd"),m(c,"clip-rule","evenodd"),m(c,"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(c,"fill","black"),m(n,"width","19"),m(n,"height","21"),m(n,"viewBox","0 0 19 21"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,y),k(g,q),k(r,P),le(r,"Active",e[10]),k(t,J)},m(Z,A){B(Z,t,A),p(t,r),p(r,i),p(i,n),p(n,s),p(n,o),p(n,a),p(n,l),p(n,u),p(n,c),p(i,d),p(i,f),p(r,v),p(r,g),I.m(g,null),p(t,w),$&&$.m(t,null),b||(_=Re(r,"click",e[51]),b=!0)},p(Z,A){A[0]&8388608&&h!==(h=Z[23]("bonusCard.terms")+"")&&ne(f,h,y.contenteditable),E!==(E=L(Z))&&(I.d(1),I=E(Z),I&&(I.c(),I.m(g,null))),A[0]&1024&&le(r,"Active",Z[10]),Z[10]?$?$.p(Z,A):($=wu(Z),$.c(),$.m(t,null)):$&&($.d(1),$=null)},d(Z){Z&&M(t),I.d(),$&&$.d(),b=!1,_()}}}function Sw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function Aw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function wu(e){let t,r,i,n,s=[e[34]("BonusCardTermsContent")],o={};for(let a=0;a<s.length;a+=1)o=T(o,s[a]);return{c(){t=x("div"),k(t,o)},m(a,l){B(a,t,l),i||(n=Zh(r=e[38].call(null,t,e[14].terms_and_conditions)),i=!0)},p(a,l){r&&Ei(r.update)&&l[0]&16384&&r.update.call(null,a[14].terms_and_conditions)},d(a){a&&M(t),i=!1,n()}}}function Cu(e){let t,r,i,n=e[0]==="claimable"&&xu(e),s=e[0]==="active"&&e[3].status==="active"&&ku(e),o=[e[34]("BonusCardActionContent")],a={};for(let c=0;c<o.length;c+=1)a=T(a,o[c]);let l=[e[34]("BonusCardAction")],u={};for(let c=0;c<l.length;c+=1)u=T(u,l[c]);return{c(){t=x("div"),r=x("div"),n&&n.c(),i=W(),s&&s.c(),k(r,a),k(t,u)},m(c,d){B(c,t,d),p(t,r),n&&n.m(r,null),p(r,i),s&&s.m(r,null)},p(c,d){c[0]==="claimable"?n?n.p(c,d):(n=xu(c),n.c(),n.m(r,i)):n&&(n.d(1),n=null),c[0]==="active"&&c[3].status==="active"?s?s.p(c,d):(s=ku(c),s.c(),s.m(r,null)):s&&(s.d(1),s=null)},d(c){c&&M(t),n&&n.d(),s&&s.d()}}}function xu(e){let t,r,i,n,s,o,a,l,u,c=e[23]("bonusCard.join")+"",d,h,f,v,g=e[13]===!0&&Eu(e),w=[e[34]("BonusCardJoinCountdown")],b={};for(let E=0;E<w.length;E+=1)b=T(b,w[E]);let _=[e[34]("BonusJoinButton"),{type:"button"},{disabled:h=!e[11]}],C={};for(let E=0;E<_.length;E+=1)C=T(C,_[E]);let y=[e[34]("BonusCardJoinWrapper")],L={};for(let E=0;E<y.length;E+=1)L=T(L,y[E]);return{c(){t=x("div"),g&&g.c(),r=W(),i=x("span"),n=ee("svg"),s=ee("path"),o=W(),a=O(e[17]),l=W(),u=x("button"),d=O(c),m(s,"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(s,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,b),k(u,C),k(t,L)},m(E,I){B(E,t,I),g&&g.m(t,null),p(t,r),p(t,i),p(i,n),p(n,s),p(i,o),p(i,a),p(t,l),p(t,u),p(u,d),u.autofocus&&u.focus(),f||(v=Re(u,"click",e[24]),f=!0)},p(E,I){E[13]===!0?g?g.p(E,I):(g=Eu(E),g.c(),g.m(t,r)):g&&(g.d(1),g=null),I[0]&131072&&ne(a,E[17],b.contenteditable),I[0]&8388608&&c!==(c=E[23]("bonusCard.join")+"")&&ne(d,c,C.contenteditable),k(u,C=He(_,[E[34]("BonusJoinButton"),{type:"button"},I[0]&2048&&h!==(h=!E[11])&&{disabled:h}]))},d(E){E&&M(t),g&&g.d(),f=!1,v()}}}function Eu(e){let t,r=e[23]("bonusCard.error")+"",i,n=[e[34]("BonusCardJoinError")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("span"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&8388608&&r!==(r=o[23]("bonusCard.error")+"")&&ne(i,r,s.contenteditable)},d(o){o&&M(t)}}}function ku(e){let t,r=e[23]("bonusCard.forfeit")+"",i,n,s,o,a=[e[34]("BonusForfeitButton"),{type:"button"},{disabled:n=!e[11]}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=x("button"),i=O(r),k(t,l)},m(u,c){B(u,t,c),p(t,i),t.autofocus&&t.focus(),s||(o=Re(t,"click",e[25]),s=!0)},p(u,c){c[0]&8388608&&r!==(r=u[23]("bonusCard.forfeit")+"")&&ne(i,r,l.contenteditable),k(t,l=He(a,[u[34]("BonusForfeitButton"),{type:"button"},c[0]&2048&&n!==(n=!u[11])&&{disabled:n}]))},d(u){u&&M(t),s=!1,o()}}}function Tw(e){let t,r=e[3]&&eu(e);return{c(){r&&r.c(),t=Nt()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[3]?r?r.p(i,n):(r=eu(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:ke,o:ke,d(i){i&&M(t),r&&r.d(i)}}}function Pw(e,t,r){let i,n;Uu(e,yc,S=>r(23,n=S));let{rawbonus:s=""}=t,{lang:o="en"}=t,{status:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{cmsendpoint:c=""}=t,{translationurl:d=""}=t,h,f=[],v,g=!1,w=!1,b=!1,_=!1,C=!0,y=!1,L=!1,E={},I,X,q="",z=1e3*30,P,$="",re=!1,J,Z=[],A=0;const Y=()=>{fetch(d).then(G=>G.json()).then(G=>{Object.keys(G).forEach(oe=>{fn(oe,G[oe])})}).catch(G=>{console.log(G)})};Object.keys(pn).forEach(S=>{fn(S,pn[S])}),ju(()=>(window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const U=()=>{try{r(3,h=JSON.parse(s))}catch(S){}h&&(h.type==="wagering"&&r(8,w=!0),r(15,I=ql(h.currency)),r(5,f=Pe(h.levels)),h.type==="freeRound"&&r(21,Z=ce(h.freeSpin)),D())},ce=S=>{if(!S||!S.vendorGamesDetail)return[];let G=[];return Object.keys(S.vendorGamesDetail).length>0&&Object.keys(S.vendorGamesDetail).forEach(oe=>{G=S.vendorGamesDetail[oe]}),G},Pe=S=>{if(!S)return[];const G=[];let oe=!1;return S.map(($e,qe)=>{const ut=$e,{maxRepeats:ze,completedTime:Rt}=ut,rt=cs(ut,["maxRepeats","completedTime"]);ze===0&&(oe=!0);for(let Je=0;Je<ze;Je++)G.push(Xt({},rt))}),oe?r(6,v=0):r(6,v=G.length),G},De=()=>{r(11,C=!1),r(13,L=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:h.code})},se=()=>{r(11,C=!1),window.postMessage({type:"OnBonusForfeit",bonus:h})},_e=S=>{switch(S.data.type){case"OnBonusClaimedDone":r(11,C=!0);break;case"OnBonusForfeitedDone":r(11,C=!0);case"OnBonusClaimError":S.data.bonusCode===h.code&&r(13,L=!0);break}},ue=(S,G)=>({remainder:S%G,quotient:Math.floor(S/G)}),de=S=>{const G=new Date;return new Date(S).getTime()-G.getTime()},N=S=>{const G=de(S)/6e4,{quotient:oe,remainder:$e}=ue(G,1440),{quotient:qe,remainder:ze}=ue($e,60),Rt=Math.floor(ze),rt=Je=>Math.abs(Je)<10?`0${Je}`:Je;return[{value:oe,symbol:"d"},{value:qe,symbol:"h"},{value:Rt,symbol:"m"}].map(Je=>rt(Je.value)+Je.symbol).join(" ")},R=(S,G,oe,$e)=>{const qe=de(S);qe<0?oe():($e(N(S)),qe<G&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},qe))},D=()=>{h&&((h.endTime||h.trigger&&h.trigger.endTime)&&R(h.endTime||h.trigger.endTime,z,()=>r(17,q="Expired"),S=>r(17,q=S)),h.expiryDate&&R(h.expiryDate,z,()=>r(16,X="Expired"),S=>r(16,X=S)))},F=S=>{let G=(S.initialWagerRequirementAmount*10-S.remainingWagerRequirementAmount*10)/10;return S.status==="released"&&(G+=S.remainingAmount),G},Ne=S=>{var G,oe;return((((G=S.wageringProgress)==null?void 0:G.currentLevelIncrement)*10-((oe=S.wageringProgress)==null?void 0:oe.gap)*10)/10).toFixed(1)},Q=S=>{var $e,qe,ze;let G,oe;return S.type==="wagering"&&S.status==="active"&&S.wageringType==="money"?(oe=($e=S.wageringProgress)==null?void 0:$e.currentLevelIncrement,oe!=0&&(G=((((qe=S.wageringProgress)==null?void 0:qe.currentLevelIncrement)-((ze=S.wageringProgress)==null?void 0:ze.gap))/oe*100).toFixed(1))):S.status=="released"?G=100:(oe=S.initialWagerRequirementAmount,oe!=0&&(G=((S.initialWagerRequirementAmount-S.remainingWagerRequirementAmount)/oe*100).toFixed(1))),Number(G)},Se=S=>j(S).format("YYYY-MM-DD hh:mm:ss"),Le=S=>{if(!S.wallet)return;let G=S.wallet.validityMinutes;return G===0?"infinite":Math.round(G/1440)+" days"},Zt=S=>{if(S.products)return S.products;{let G=[];return S.wallet&&(S.wallet.casino&&G.push("Casino"),S.wallet.sports&&G.push("Sports")),G}},Wr=(S,G)=>{let oe;oe=n(`bonusType.${G.type}`);const $e=ql(Object.keys(S.increment)[0]);if(G.mode==="percentage")return`${G.bonusAmount*100}% up to ${$e}${G.capAmount} ${oe}`;if(G.mode==="fixed")return`${$e}${G.bonusAmount} ${oe}`},Vr=(S,G)=>{switch(G.type){case"standard":case"freeBet":return Wr(S,G);case"freeRound":return`${G.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},Fi=(S,G)=>{var ze;const oe=((ze=S.wageringProgress)==null?void 0:ze.currentLevel)-1,$e=G.length-1,qe=Rt=>Rt.filter(rt=>rt.index>=0&&rt.index<=$e).map(rt=>{const ut=G[rt.index];return{label:rt.label,desc:ut.bonuses.map(Je=>Vr(ut,Je))}});return S.status==="active"?qe([{label:"current",index:oe},{label:"next",index:oe+1}]):S.status?qe([{label:"last",index:$e},{label:"previous",index:$e-1}]):qe([{label:"first",index:0},{label:"next",index:1}])},ts=S=>{var G,oe;r(18,$=S.url?S.url:(oe=(G=S.presentation)==null?void 0:G.url)==null?void 0:oe.content)},rs=(S,G="")=>({part:S,class:[S,G].join(" ")}),Hi=S=>{window.postMessage({type:"BonusGameAction",gameId:S.id,name:S.name,gameLaunchUrl:S.href},window.location.href)},Ri=S=>{r(19,re=!0),r(20,J=S)},zi=()=>{r(19,re=!1),r(20,J=-1)},is=S=>{fetch(`${c}/${o}/bonuses-information/${S}`).then(G=>G.json()).then(G=>{G&&G[S]&&(r(12,y=!0),r(14,E=G[S]))})},ns=(S,G)=>{let oe=document.createElement("div");oe.innerHTML=G,S.append(oe)},ss=()=>{let S=document.createElement("style");S.innerHTML=l,P.appendChild(S)},os=()=>{let S=new URL(u),G=document.createElement("style");fetch(S.href).then(oe=>oe.text()).then(oe=>{G.innerHTML=oe,setTimeout(()=>{P.appendChild(G)},1)})},as=()=>r(22,A+=300),ls=S=>Hi(S),V=S=>Ri(S),we=()=>zi(),Ie=()=>r(22,A-=300),hr=()=>{r(9,b=!b)},Ht=()=>window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:h.id}),$h=()=>{r(10,_=!_)};function Wh(S){At[S?"unshift":"push"](()=>{P=S,r(4,P)})}return e.$$set=S=>{"rawbonus"in S&&r(39,s=S.rawbonus),"lang"in S&&r(40,o=S.lang),"status"in S&&r(0,a=S.status),"clientstyling"in S&&r(1,l=S.clientstyling),"clientstylingurl"in S&&r(2,u=S.clientstylingurl),"cmsendpoint"in S&&r(41,c=S.cmsendpoint),"translationurl"in S&&r(42,d=S.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&r(7,g=!0),a==="active"&&r(7,g=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&768&&r(43,i=s&&o&&a),e.$$.dirty[1]&4096&&i&&U(),e.$$.dirty[0]&8|e.$$.dirty[1]&5632&&i&&h&&(o&&wc(o),c?is(h.id):ts(h)),e.$$.dirty[0]&18&&l&&P&&ss(),e.$$.dirty[0]&20&&u&&P&&os(),e.$$.dirty[1]&2048&&d&&Y()},[a,l,u,h,P,f,v,g,w,b,_,C,y,L,E,I,X,q,$,re,J,Z,A,n,De,se,F,Ne,Q,Se,Le,Zt,Vr,Fi,rs,Hi,Ri,zi,ns,s,o,c,d,i,as,ls,V,we,Ie,hr,Ht,$h,Wh]}class Dw extends Mn{constructor(t){super(),Pn(this,t,Pw,Tw,ki,{rawbonus:39,lang:40,status:0,clientstyling:1,clientstylingurl:2,cmsendpoint:41,translationurl:42},ew,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[39]}set rawbonus(t){this.$$set({rawbonus:t}),xe()}get lang(){return this.$$.ctx[40]}set lang(t){this.$$set({lang:t}),xe()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),xe()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}get cmsendpoint(){return this.$$.ctx[41]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),xe()}get translationurl(){return this.$$.ctx[42]}set translationurl(t){this.$$set({translationurl:t}),xe()}}Dn(Dw,{rawbonus:{},lang:{},status:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{}},[],[],!0);function Mw({totalItems:e,pageSize:t,currentPage:r,limit:i}){const n=Math.ceil(e/t),o=i&&n>Nw(i)?Bw({totalPages:n,limit:i,currentPage:r}):Ow({totalPages:n});return[{type:"symbol",symbol:"<",value:r<=1?1:r-1},...o||[],{type:"symbol",symbol:">",value:r>=n?n:r+1}]}function Ow({totalPages:e}){return new Array(e).fill(null).map((t,r)=>({type:"number",value:r+1}))}function Bw({totalPages:e,limit:t,currentPage:r}){const i=t*2+2,n=1+i,s=e-i,o=n+2;return r<=n-t?Array(o).fill(null).map((a,l)=>l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:n+1}:{type:"number",value:l+1}):r>=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:s-1}:{type:"number",value:s+l-2}):r>=n-t&&r<=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:r-t+(l-2)}:l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:r+t+1}:{type:"number",value:r-t+(l-2)}):[]}function Nw(e){return e*2+3+2}function Iw(e){Tn(e,"svelte-118bg09",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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(--emfe-w-bonus-pagination-text, var(--emfe-w-color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emfe-w-bonus-pagination-border, var(--emfe-w-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(--emfe-w-bonus-pagination-disabled, var(--emfe-w-color-gray-100, #E6E6E6));border-color:var(--emfe-w-bonus-pagination-disabled, var(--emfe-w-color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emfe-w-bonus-pagination-bg, var(--emfe-w-color-contrast, #00AEEF));color:var(--emfe-w-bonus-pagination-active, var(--emfe-w-color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emfe-w-bonus-pagination-text, var(--emfe-w-color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emfe-w-bonus-pagination-active, var(--emfe-w-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 Su(e,t,r){const i=e.slice();return i[29]=t[r],i}const Lw=e=>({}),Au=e=>({}),Fw=e=>({}),Tu=e=>({}),Hw=e=>({}),Pu=e=>({}),Rw=e=>({value:e[0]&32}),Du=e=>({value:e[29].value});function zw(e){let t;const r=e[20].next,i=Si(r,e,e[19],Au),n=i||Ww();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Lw):Pi(s[19]),Au)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Yw(e){let t;const r=e[20].prev,i=Si(r,e,e[19],Tu),n=i||Vw();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Fw):Pi(s[19]),Tu)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Uw(e){let t;const r=e[20].ellipsis,i=Si(r,e,e[19],Pu),n=i||jw();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Hw):Pi(s[19]),Pu)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function $w(e){let t;const r=e[20].number,i=Si(r,e,e[19],Du),n=i||Gw(e);return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i?i.p&&(!t||o[0]&524320)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Rw):Pi(s[19]),Du):n&&n.p&&(!t||o[0]&32)&&n.p(s,t?o:[-1,-1])},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Ww(e){let t;return{c(){t=O(">")},m(r,i){B(r,t,i)},d(r){r&&M(t)}}}function Vw(e){let t;return{c(){t=O("<")},m(r,i){B(r,t,i)},d(r){r&&M(t)}}}function jw(e){let t;return{c(){t=x("span"),t.textContent="..."},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function Gw(e){let t,r=e[29].value+"",i;return{c(){t=x("span"),i=O(r)},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&32&&r!==(r=n[29].value+"")&&Ce(i,r)},d(n){n&&M(t)}}}function Mu(e){let t,r,i,n,s,o,a,l;const u=[$w,Uw,Yw,zw],c=[];function d(f,v){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}~(r=d(e))&&(i=c[r]=u[r](e));function h(){return e[21](e[29])}return{c(){t=x("button"),i&&i.c(),n=W(),t.disabled=s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),le(t,"number",e[29].type==="number"),le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),le(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,v){B(f,t,v),~r&&c[r].m(t,null),p(t,n),o=!0,a||(l=Re(t,"click",h),a=!0)},p(f,v){e=f;let g=r;r=d(e),r===g?~r&&c[r].p(e,v):(i&&(Gu(),Ot(c[g],1,1,()=>{c[g]=null}),qu()),~r?(i=c[r],i?i.p(e,v):(i=c[r]=u[r](e),i.c()),dt(i,1),i.m(t,n)):i=null),(!o||v[0]&98&&s!==(s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1))&&(t.disabled=s),(!o||v[0]&32)&&le(t,"number",e[29].type==="number"),(!o||v[0]&32)&&le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),(!o||v[0]&32)&&le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),(!o||v[0]&98)&&le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),(!o||v[0]&32)&&le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!o||v[0]&34)&&le(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){o||(dt(i),o=!0)},o(f){Ot(i),o=!1},d(f){f&&M(t),~r&&c[r].d(),a=!1,l()}}}function Ou(e){let t,r,i,n,s,o,a,l;return{c(){t=x("div"),r=x("span"),r.textContent="Go To Page",i=W(),n=x("input"),s=W(),o=x("button"),o.textContent="Go",m(n,"type","number"),m(n,"class","PaginationInput"),m(n,"part","PaginationInput"),m(o,"type","button"),m(o,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,c){B(u,t,c),p(t,r),p(t,i),p(t,n),cn(n,e[3]),p(t,s),p(t,o),a||(l=[Re(n,"input",e[22]),Re(n,"change",e[23]),Re(o,"click",e[24])],a=!0)},p(u,c){c[0]&8&&Vu(n.value)!==u[3]&&cn(n,u[3])},d(u){u&&M(t),a=!1,pt(l)}}}function qw(e){let t,r,i,n,s,o,a=Ge(e[5]),l=[];for(let d=0;d<a.length;d+=1)l[d]=Mu(Su(e,a,d));const u=d=>Ot(l[d],1,1,()=>{l[d]=null});let c=e[7]&&Ou(e);return{c(){t=x("div"),r=x("div");for(let d=0;d<l.length;d+=1)l[d].c();s=W(),c&&c.c(),m(r,"class",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(r,"part",n="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(d,h){B(d,t,h),p(t,r);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(r,null);p(t,s),c&&c.m(t,null),e[25](t),o=!0},p(d,h){if(h[0]&524642){a=Ge(d[5]);let f;for(f=0;f<a.length;f+=1){const v=Su(d,a,f);l[f]?(l[f].p(v,h),dt(l[f],1)):(l[f]=Mu(v),l[f].c(),dt(l[f],1),l[f].m(r,null))}for(Gu(),f=a.length;f<l.length;f+=1)u(f);qu()}(!o||h[0]&4&&i!==(i="PaginationWrapper "+(d[2]?"PaginationWrapperMobile":"")))&&m(r,"class",i),(!o||h[0]&4&&n!==(n="PaginationWrapper "+(d[2]?"PaginationWrapperMobile":"")))&&m(r,"part",n),d[7]?c?c.p(d,h):(c=Ou(d),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},i(d){if(!o){for(let h=0;h<a.length;h+=1)dt(l[h]);o=!0}},o(d){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)Ot(l[h]);o=!1},d(d){d&&M(t),jt(l,d),c&&c.d(),e[25](null)}}}function Zw(e,t,r){let i,n,s,o,a,{$$slots:l={},$$scope:u}=t,{totalitems:c=""}=t,{pagesize:d=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:v=""}=t,{clientstyling:g=""}=t,{clientstylingurl:w=""}=t,b=window.navigator.userAgent,_=!1,C;Dc(b)&&(_=!0);let y,L,E;const I=()=>{let A=document.createElement("style");A.innerHTML=g,C.appendChild(A)},X=()=>{let A=new URL(w),Y=document.createElement("style");fetch(A.href).then(U=>U.text()).then(U=>{Y.innerHTML=U,setTimeout(()=>{C.appendChild(Y)},1)})},q=A=>{window.postMessage({type:"PaginationChange",page:A.value})},z=A=>{r(4,L=A>a?a:A)},P=A=>q(A);function $(){y=Vu(this.value),r(3,y)}const re=()=>z(y),J=()=>q({value:L});function Z(A){At[A?"unshift":"push"](()=>{C=A,r(0,C)})}return e.$$set=A=>{"totalitems"in A&&r(10,c=A.totalitems),"pagesize"in A&&r(11,d=A.pagesize),"currentpage"in A&&r(12,h=A.currentpage),"limit"in A&&r(13,f=A.limit),"showinput"in A&&r(14,v=A.showinput),"clientstyling"in A&&r(15,g=A.clientstyling),"clientstylingurl"in A&&r(16,w=A.clientstylingurl),"$$scope"in A&&r(19,u=A.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&32769&&g&&C&&I(),e.$$.dirty[0]&65537&&w&&C&&X(),e.$$.dirty[0]&1024&&r(18,i=Number(c)),e.$$.dirty[0]&16384&&r(7,n=v),e.$$.dirty[0]&4096&&r(1,s=Number(h)),e.$$.dirty[0]&2048&&r(17,o=d),e.$$.dirty[0]&401410&&r(5,E=Mw({totalItems:i,pageSize:o,currentPage:s,limit:f})),e.$$.dirty[0]&393216&&r(6,a=Math.ceil(i/o))},[C,s,_,y,L,E,a,n,q,z,c,d,h,f,v,g,w,o,i,u,l,P,$,re,J,Z]}class Xw extends Mn{constructor(t){super(),Pn(this,t,Zw,qw,ki,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,clientstyling:15,clientstylingurl:16},Iw,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),xe()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),xe()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),xe()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),xe()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),xe()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}}Dn(Xw,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0);function Kw(e){Tn(e,"svelte-fwcyoc",':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}.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(--emfe-w-bonus-pagination-primary, var(--emfe-w-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(--emfe-w-bonus-pagination-inactive-text, var(--emfe-w-color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-bonus-pagination-text, var(--emfe-w-color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-bonus-pagination-active-bg, var(--emfe-w-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(--emfe-w-bonus-pagination-border, var(--emfe-w-color-blue, #00AEEF));border-color:var(--emfe-w-bonus-pagination-border, var(--emfe-w-color-blue, #00AEEF)) transparent var(--emfe-w-bonus-pagination-primary, var(--emfe-w-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(--emfe-w-bonus-calendar-bg, var(--emfe-w-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(--emfe-w-bonus-calendar-text, var(--emfe-w-color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emfe-w-bonus-calendar-text, var(--emfe-w-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(--emfe-w-bonus-calendar-border, var(--emfe-w-color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emfe-w-bonus-calendar-outline, var(--emfe-w-color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emfe-w-bonus-filter-bg, var(--emfe-w-color-yellow, #F39C12));outline:5px solid var(--emfe-w-bonus-filter-outline, var(--emfe-w-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(--emfe-w-bonus-filter-text, var(--emfe-w-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(--emfe-w-bonus-filter-bg, var(--emfe-w-color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emfe-w-bonus-filter-bg, var(--emfe-w-color-yellow, #F38B12));outline-color:var(--emfe-w-bonus-filter-outline, var(--emfe-w-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(--emfe-w-bonus-filter-border, var(--emfe-w-color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emfe-w-bonus-status-filter-text, var(--emfe-w-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(--emfe-w-bonus-status-filter-bg, var(--emfe-w-color-white, #FFFFFF));border:1px solid var(--emfe-w-bonus-status-filter-border, var(--emfe-w-color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emfe-w-bonus-status-active-bg, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-bonus-status-active-bg, var(--emfe-w-color-gray-300, #4E5662));border:0.5px solid var(--emfe-w-bonus-status-active-border, var(--emfe-w-color-gray-300, #767171))}.BonusPageNumber{color:var(--emfe-w-bonus-page-number-text, var(--emfe-w-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(--emfe-w-bonus-page-number-text, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-bonus-page-number-active, var(--emfe-w-color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emfe-w-bonus-page-number-text, var(--emfe-w-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:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emfe-w-bonus-card-red, var(--emfe-w-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(--emfe-w-bonus-code-border, var(--emfe-w-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(--emfe-w-bonus-code-outline, var(--emfe-w-color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emfe-w-bonus-claim-bg, var(--emfe-w-color-yellow, #F39C12));outline:5px solid var(--emfe-w-bonus-claim-outline, var(--emfe-w-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(--emfe-w-bonus-claim-text, var(--emfe-w-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(--emfe-w-bonus-claim-hover-bg, var(--emfe-w-color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emfe-w-bonus-claim-active-bg, var(--emfe-w-color-yellow, #F38B12));outline-color:var(--emfe-w-bonus-claim-active-outline, var(--emfe-w-color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #00AEEF);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emfe-w-bonus-modal-bg, var(--emfe-w-color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-bonus-modal-bg, var(--emfe-w-color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emfe-w-bonus-modal-border, var(--emfe-w-color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-bonus-modal-bg, var(--emfe-w-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(--emfe-w-bonus-modal-border, var(--emfe-w-color-gray-300, #58586B));color:var(--emfe-w-bonus-modal-text, var(--emfe-w-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(--emfe-w-bonus-modal-bg, var(--emfe-w-color-primary, #00AEEF));border:1px solid var(--emfe-w-bonus-modal-bg, var(--emfe-w-color-primary, #00AEEF));color:var(--emfe-w-bonus-modal-text, var(--emfe-w-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 Bu(e,t,r){const i=e.slice();return i[63]=t[r],i}function Nu(e,t,r){const i=e.slice();return i[66]=t[r],i}function Iu(e){let t,r=e[25](`bonusCard.${e[66]}`)+"",i,n,s,o,a=[{type:"button"},e[24]("BonusStatusFilter"),{disabled:e[10]}],l={};for(let c=0;c<a.length;c+=1)l=T(l,a[c]);function u(){return e[38](e[66])}return{c(){t=x("button"),i=O(r),n=W(),k(t,l),le(t,"active",e[66]===e[21])},m(c,d){B(c,t,d),p(t,i),p(t,n),t.autofocus&&t.focus(),s||(o=Re(t,"click",u),s=!0)},p(c,d){e=c,d[0]&33554432&&r!==(r=e[25](`bonusCard.${e[66]}`)+"")&&ne(i,r,l.contenteditable),k(t,l=He(a,[{type:"button"},d[0]&16777216&&e[24]("BonusStatusFilter"),d[0]&1024&&{disabled:e[10]}])),le(t,"active",e[66]===e[21])},d(c){c&&M(t),s=!1,o()}}}function Jw(e){let t,r,i=e[25]("bonus.canlendarTitle")+"",n,s,o,a,l,u,c=e[25]("bonus.from")+"",d,h,f,v,g,w,b=e[25]("bonus.to")+"",_,C,y,L,E,I=e[25]("bonus.filter")+"",X,q,z,P=[e[31]("BonusCalendarTitle")],$={};for(let F=0;F<P.length;F+=1)$=T($,P[F]);let re=[{max:e[15]},{value:e[16]},{placeholder:"From"},e[31]("VaadinDatePicker")],J={};for(let F=0;F<re.length;F+=1)J=T(J,re[F]);let Z=[e[24]("BonusCalendarStartDate")],A={};for(let F=0;F<Z.length;F+=1)A=T(A,Z[F]);let Y=[{value:e[15]},{placeholder:"To"},e[31]("VaadinDatePicker")],U={};for(let F=0;F<Y.length;F+=1)U=T(U,Y[F]);let ce=[e[24]("BonusCalendarEndDate")],Pe={};for(let F=0;F<ce.length;F+=1)Pe=T(Pe,ce[F]);let De=[e[24]("BonusCalendarContainer")],se={};for(let F=0;F<De.length;F+=1)se=T(se,De[F]);let _e=[e[24]("BonusFilterButton"),{disabled:e[10]}],ue={};for(let F=0;F<_e.length;F+=1)ue=T(ue,_e[F]);let de=[e[31]("BonusCalendarContent")],N={};for(let F=0;F<de.length;F+=1)N=T(N,de[F]);let R=[e[24]("BonusCalendarWrapper")],D={};for(let F=0;F<R.length;F+=1)D=T(D,R[F]);return{c(){t=x("div"),r=x("div"),n=O(i),s=W(),o=x("div"),a=x("div"),l=x("div"),u=x("label"),d=O(c),h=W(),f=x("vaadin-date-picker"),v=W(),g=x("div"),w=x("label"),_=O(b),C=W(),y=x("vaadin-date-picker"),L=W(),E=x("button"),X=O(I),k(r,$),m(u,"for","BonusCalendarStartDate"),k(f,J),k(l,A),m(w,"for","BonusCalendarEndDate"),k(y,U),k(g,Pe),k(a,se),k(E,ue),k(o,N),k(t,D)},m(F,Ne){B(F,t,Ne),p(t,r),p(r,n),p(t,s),p(t,o),p(o,a),p(a,l),p(l,u),p(u,d),p(l,h),p(l,f),e[41](f),p(a,v),p(a,g),p(g,w),p(w,_),p(g,C),p(g,y),e[42](y),p(o,L),p(o,E),p(E,X),E.autofocus&&E.focus(),q||(z=Re(E,"click",e[43]),q=!0)},p(F,Ne){Ne[0]&33554432&&i!==(i=F[25]("bonus.canlendarTitle")+"")&&ne(n,i,$.contenteditable),Ne[0]&33554432&&c!==(c=F[25]("bonus.from")+"")&&Ce(d,c),k(f,J=He(re,[Ne[0]&32768&&{max:F[15]},Ne[0]&65536&&{value:F[16]},{placeholder:"From"},F[31]("VaadinDatePicker")])),k(l,A=He(Z,[Ne[0]&16777216&&F[24]("BonusCalendarStartDate")])),Ne[0]&33554432&&b!==(b=F[25]("bonus.to")+"")&&Ce(_,b),k(y,U=He(Y,[Ne[0]&32768&&{value:F[15]},{placeholder:"To"},F[31]("VaadinDatePicker")])),k(g,Pe=He(ce,[Ne[0]&16777216&&F[24]("BonusCalendarEndDate")])),k(a,se=He(De,[Ne[0]&16777216&&F[24]("BonusCalendarContainer")])),Ne[0]&33554432&&I!==(I=F[25]("bonus.filter")+"")&&ne(X,I,ue.contenteditable),k(E,ue=He(_e,[Ne[0]&16777216&&F[24]("BonusFilterButton"),Ne[0]&1024&&{disabled:F[10]}])),k(t,D=He(R,[Ne[0]&16777216&&F[24]("BonusCalendarWrapper")]))},d(F){F&&M(t),e[41](null),e[42](null),q=!1,z()}}}function Qw(e){let t,r,i,n=e[25]("bonus.bonusCode")+"",s,o,a,l,u,c,d,h=e[25]("bonus.claim")+"",f,v,g,w,b,_=[e[24]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[25]("bonus.placeholder")}],C={};for(let P=0;P<_.length;P+=1)C=T(C,_[P]);let y=[e[24]("BonusClaimButton"),{disabled:v=e[18]||!e[22]}],L={};for(let P=0;P<y.length;P+=1)L=T(L,y[P]);let E=[e[24]("BonusCodeWrapper")],I={};for(let P=0;P<E.length;P+=1)I=T(I,E[P]);let X=e[19]&&Lu(e),q=[e[24]("BonusCodeContainer")],z={};for(let P=0;P<q.length;P+=1)z=T(z,q[P]);return{c(){t=x("div"),r=x("label"),i=x("span"),i.textContent="*",s=O(n),o=W(),a=x("div"),l=x("input"),c=W(),d=x("button"),f=O(h),g=W(),X&&X.c(),m(i,"class","Asterisk"),m(r,"for","BonusCode"),k(l,C),k(d,L),k(a,I),k(t,z)},m(P,$){B(P,t,$),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),l.autofocus&&l.focus(),cn(l,e[17]),p(a,c),p(a,d),p(d,f),d.autofocus&&d.focus(),p(t,g),X&&X.m(t,null),w||(b=[Re(l,"input",e[39]),Re(l,"keyup",e[32]),Re(d,"click",e[40])],w=!0)},p(P,$){$[0]&33554432&&n!==(n=P[25]("bonus.bonusCode")+"")&&Ce(s,n),k(l,C=He(_,[$[0]&16777216&&P[24]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&33554432&&u!==(u=P[25]("bonus.placeholder"))&&{placeholder:u}])),$[0]&131072&&l.value!==P[17]&&cn(l,P[17]),$[0]&33554432&&h!==(h=P[25]("bonus.claim")+"")&&ne(f,h,L.contenteditable),k(d,L=He(y,[$[0]&16777216&&P[24]("BonusClaimButton"),$[0]&4456448&&v!==(v=P[18]||!P[22])&&{disabled:v}])),k(a,I=He(E,[$[0]&16777216&&P[24]("BonusCodeWrapper")])),P[19]?X?X.p(P,$):(X=Lu(P),X.c(),X.m(t,null)):X&&(X.d(1),X=null),k(t,z=He(q,[$[0]&16777216&&P[24]("BonusCodeContainer")]))},d(P){P&&M(t),X&&X.d(),w=!1,pt(b)}}}function Lu(e){let t,r=e[25]("bonus.invalidBonusCode")+"",i;return{c(){t=x("p"),i=O(r),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&33554432&&r!==(r=n[25]("bonus.invalidBonusCode")+"")&&Ce(i,r)},d(n){n&&M(t)}}}function eC(e){let t,r;function i(a,l){return a[9].length>0?nC:a[11]?iC:rC}let n=i(e),s=n(e),o=e[9].length!==0&&Hu(e);return{c(){s.c(),t=W(),o&&o.c(),r=Nt()},m(a,l){s.m(a,l),B(a,t,l),o&&o.m(a,l),B(a,r,l)},p(a,l){n===(n=i(a))&&s?s.p(a,l):(s.d(1),s=n(a),s&&(s.c(),s.m(t.parentNode,t))),a[9].length!==0?o?o.p(a,l):(o=Hu(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(a){a&&(M(t),M(r)),s.d(a),o&&o.d(a)}}}function tC(e){let t,r=[e[31]("ModalLoader")],i={};for(let n=0;n<r.length;n+=1)i=T(i,r[n]);return{c(){t=x("div"),k(t,i)},m(n,s){B(n,t,s)},p:ke,d(n){n&&M(t)}}}function rC(e){let t=e[25]("bonus.noBonus")+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&33554432&&t!==(t=i[25]("bonus.noBonus")+"")&&Ce(r,t)},d(i){i&&M(r)}}}function iC(e){let t,r=e[25]("bonus.error")+"",i,n,s;return{c(){t=x("div"),i=O(r),n=O(": "),s=O(e[11]),$s(t,"color","red")},m(o,a){B(o,t,a),p(t,i),p(t,n),p(t,s)},p(o,a){a[0]&33554432&&r!==(r=o[25]("bonus.error")+"")&&Ce(i,r),a[0]&2048&&Ce(s,o[11])},d(o){o&&M(t)}}}function nC(e){let t,r=Ge(e[9]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Fu(Bu(e,r,o));let n=[e[31]("BonusList")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("ul");for(let o=0;o<i.length;o+=1)i[o].c();k(t,s)},m(o,a){B(o,t,a);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,a){if(a[0]&18874941){r=Ge(o[9]);let l;for(l=0;l<r.length;l+=1){const u=Bu(o,r,l);i[l]?i[l].p(u,a):(i[l]=Fu(u),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&M(t),jt(i,o)}}}function Fu(e){let t,r,i,n=[{rawbonus:JSON.stringify(e[63]),status:e[21],cmsendpoint:e[2],lang:e[0],clientstyling:e[3],clientstylingurl:e[4],translationurl:e[5]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[24]("BonusItem")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=x("li"),r=x("casino-bonus-card"),i=W(),k(r,s),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(t,i)},p(l,u){k(r,s=He(n,[u[0]&2097725&&{rawbonus:JSON.stringify(l[63]),status:l[21],cmsendpoint:l[2],lang:l[0],clientstyling:l[3],clientstylingurl:l[4],translationurl:l[5]}])),k(t,a=He(o,[u[0]&16777216&&l[24]("BonusItem")]))},d(l){l&&M(t)}}}function Hu(e){let t;return{c(){t=x("casino-bonus-pagination"),nt(t,"totalitems",e[13]),nt(t,"currentpage",e[12]),nt(t,"pagesize",e[1]),nt(t,"limit",e[14]),nt(t,"clientstyling",e[3]),nt(t,"clientstylingurl",e[4])},m(r,i){B(r,t,i)},p(r,i){i[0]&8192&&nt(t,"totalitems",r[13]),i[0]&4096&&nt(t,"currentpage",r[12]),i[0]&2&&nt(t,"pagesize",r[1]),i[0]&16384&&nt(t,"limit",r[14]),i[0]&8&&nt(t,"clientstyling",r[3]),i[0]&16&&nt(t,"clientstylingurl",r[4])},d(r){r&&M(t)}}}function Ru(e){let t,r,i,n,s=e[25]("bonus.forfeitMessage")+"",o,a,l,u,c=e[25]("bonus.forfeitCancel")+"",d,h,f,v=e[25]("bonus.forfeitConfirm")+"",g,w,b,_=[e[31]("ModalText")],C={};for(let A=0;A<_.length;A+=1)C=T(C,_[A]);let y=[e[31]("ModalCancel")],L={};for(let A=0;A<y.length;A+=1)L=T(L,y[A]);let E=[e[31]("ModalConfirm")],I={};for(let A=0;A<E.length;A+=1)I=T(I,E[A]);let X=[e[31]("ModalButtons")],q={};for(let A=0;A<X.length;A+=1)q=T(q,X[A]);let z=[e[31]("ModalBody")],P={};for(let A=0;A<z.length;A+=1)P=T(P,z[A]);let $=[e[31]("ModalContent")],re={};for(let A=0;A<$.length;A+=1)re=T(re,$[A]);let J=[e[24]("ModalWrapper")],Z={};for(let A=0;A<J.length;A+=1)Z=T(Z,J[A]);return{c(){t=x("div"),r=x("div"),i=x("div"),n=x("p"),o=O(s),a=W(),l=x("div"),u=x("button"),d=O(c),h=W(),f=x("button"),g=O(v),k(n,C),k(u,L),k(f,I),k(l,q),k(i,P),k(r,re),k(t,Z)},m(A,Y){B(A,t,Y),p(t,r),p(r,i),p(i,n),p(n,o),p(i,a),p(i,l),p(l,u),p(u,d),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,g),f.autofocus&&f.focus(),w||(b=[Re(u,"click",e[29]),Re(f,"click",e[44])],w=!0)},p(A,Y){Y[0]&33554432&&s!==(s=A[25]("bonus.forfeitMessage")+"")&&ne(o,s,C.contenteditable),Y[0]&33554432&&c!==(c=A[25]("bonus.forfeitCancel")+"")&&ne(d,c,L.contenteditable),Y[0]&33554432&&v!==(v=A[25]("bonus.forfeitConfirm")+"")&&ne(g,v,I.contenteditable),k(t,Z=He(J,[Y[0]&16777216&&A[24]("ModalWrapper")]))},d(A){A&&M(t),w=!1,pt(b)}}}function sC(e){let t,r,i,n,s,o,a=Ge(e[26]),l=[];for(let y=0;y<a.length;y+=1)l[y]=Iu(Nu(e,a,y));let u=[e[24]("BonusFilterWrapper")],c={};for(let y=0;y<u.length;y+=1)c=T(c,u[y]);function d(y,L){if(y[21]==="claimable")return Qw;if(y[21]==="completed")return Jw}let h=d(e),f=h&&h(e);function v(y,L){return y[10]?tC:eC}let g=v(e),w=g(e),b=e[20]&&Ru(e),_=[e[31]("BonusesController")],C={};for(let y=0;y<_.length;y+=1)C=T(C,_[y]);return{c(){t=x("div"),r=x("div"),i=x("div");for(let y=0;y<l.length;y+=1)l[y].c();n=W(),f&&f.c(),s=W(),w.c(),o=W(),b&&b.c(),m(i,"class","BonusFilterContainer"),m(i,"part","BonusFilterContainer"),k(r,c),k(t,C)},m(y,L){B(y,t,L),p(t,r),p(r,i);for(let E=0;E<l.length;E+=1)l[E]&&l[E].m(i,null);p(t,n),f&&f.m(t,null),p(t,s),w.m(t,null),p(t,o),b&&b.m(t,null),e[45](t)},p(y,L){if(L[0]&1193280512){a=Ge(y[26]);let E;for(E=0;E<a.length;E+=1){const I=Nu(y,a,E);l[E]?l[E].p(I,L):(l[E]=Iu(I),l[E].c(),l[E].m(i,null))}for(;E<l.length;E+=1)l[E].d(1);l.length=a.length}k(r,c=He(u,[L[0]&16777216&&y[24]("BonusFilterWrapper")])),h===(h=d(y))&&f?f.p(y,L):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(t,s))),g===(g=v(y))&&w?w.p(y,L):(w.d(1),w=g(y),w&&(w.c(),w.m(t,o))),y[20]?b?b.p(y,L):(b=Ru(y),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},i:ke,o:ke,d(y){y&&M(t),jt(l,y),f&&f.d(),w.d(),b&&b.d(),e[45](null)}}}function oC(e,t,r){let i,n,s;Uu(e,yc,V=>r(25,s=V));let{endpoint:o=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:c=""}=t,{cmsendpoint:d=""}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{translationurl:v=""}=t,g=window.navigator.userAgent,w=!1,b=[],_=!0,C="",y=1,L=0,E=2,I,X,q,z="",P=!0,$=!1,re=!1;I=j(new Date).format("YYYY-MM-DD"),X=j(new Date).subtract(3,"months").format("YYYY-MM-DD");let J=X,Z=I,A,Y,U="active",ce=!0,Pe=["active","completed","claimable"],De="";Dc(g)&&(w=!0,E=1);const se=()=>{let V=document.createElement("style");V.innerHTML=h,q.appendChild(V)},_e=()=>{let V=new URL(f),we=document.createElement("style");fetch(V.href).then(Ie=>Ie.text()).then(Ie=>{we.innerHTML=Ie,setTimeout(()=>{q.appendChild(we)},1)})},ue=()=>{fetch(v).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Ie=>{fn(Ie,we[Ie])})}).catch(we=>{console.log(we)})};Object.keys(pn).forEach(V=>{fn(V,pn[V])}),ju(()=>(window.addEventListener("message",de,!1),()=>{A.removeEventListener("change",Vr),Y.removeEventListener("change",Fi),window.removeEventListener("message",de)}));const de=V=>{switch(V.data.type){case"PaginationChange":r(12,y=V.data.page),Se(y);break;case"OnBonusClaimed":R(V.data.bonusCode);break;case"OnBonusForfeit":r(23,De=V.data.bonus.id),r(20,re=!0)}},N=()=>Qe(this,null,function*(){Se(1)}),R=(V,we)=>Qe(this,null,function*(){r(22,ce=!1);const Ie=yield D(V);Ie.success?(r(19,$=!1),Se(1)):(r(11,C=Ie.errorMessage),we?r(19,$=!0):window.postMessage({type:"OnBonusClaimError",message:C,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),r(22,ce=!0)}),D=V=>Qe(this,null,function*(){return yield Wr(o+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),F=V=>Qe(this,null,function*(){r(22,ce=!1);const we=yield Ne(V);we.success?Se(1):r(11,C=we.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),r(22,ce=!0),r(20,re=!1)}),Ne=V=>Qe(this,null,function*(){const we=new URL(`${o}/v1/bonus/forfeit`),Ie={bonusID:V,lang:a};return Object.keys(Ie).map(hr=>{we.searchParams.append(hr,Ie[hr])}),yield Wr(we,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Q=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),r(20,re=!1)},Se=V=>Qe(this,null,function*(){y!==V&&r(12,y=V);const we=(V-1)*Number(c);r(10,_=!0),r(9,b=[]);const Ie=yield Le(o,l,we,{lang:a,limit:c});Ie.success?(r(13,L=Ie.total),r(9,b=Ie.items||Ie.bonuses)):r(11,C=Ie.errorMessage),r(10,_=!1)}),Le=(Ht,$h,Wh,...S)=>Qe(this,[Ht,$h,Wh,...S],function*(V,we,Ie,hr={}){const rt=hr,{limit:G,lang:oe}=rt,$e=cs(rt,["limit","lang"]),qe=(()=>{switch(U){case"claimable":return U;default:return"granted"}})(),ze=jr(Xt({pagination:`limit=${G},offset=${Ie}`,language:oe},$e),{sortOrder:"desc"});if(U==="completed"){let ut=new Date(J).toISOString(),Je=new Date(Z+" 23:59:59").toISOString();ze.startTime=ut,ze.endTime=Je,ze.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ze.status="completed,released,forfeited,expired,closed"}U==="active"&&(ze.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ze.status="active");const Rt=new URL(`${V}/v1/bonus/${qe}`);return U!=="claimable"?Rt.searchParams.append("expand","freeSpin"):delete ze.sortOrder,Object.keys(ze).map(ut=>{Rt.searchParams.append(ut,ze[ut])}),yield Wr(Rt,{headers:Xt({},we?{"x-SessionId":we}:{})})}),Zt=(V,we="")=>({part:V,class:[V,we].join(" ")}),Wr=(Ie,...hr)=>Qe(this,[Ie,...hr],function*(V,we={}){let Ht;return Ht=yield fetch(V,we),Ht.ok===!1?{errorMessage:Ht.status}:(Ht=yield Ht.json(),Ht)}),Vr=V=>{J=V.target.value},Fi=V=>{Z=V.target.value},ts=()=>{A.addEventListener("change",Vr,!1),Y.addEventListener("change",Fi,!1)},rs=()=>(r(19,$=!1),!!z),Hi=()=>{r(18,P=!rs())},Ri=V=>{r(21,U=V),Se(1)};function zi(){z=this.value,r(17,z)}const is=()=>{R(z,!0)};function ns(V){At[V?"unshift":"push"](()=>{A=V,r(7,A)})}function ss(V){At[V?"unshift":"push"](()=>{Y=V,r(8,Y)})}const os=()=>Se(1),as=()=>F(De);function ls(V){At[V?"unshift":"push"](()=>{q=V,r(6,q)})}return e.$$set=V=>{"endpoint"in V&&r(33,o=V.endpoint),"lang"in V&&r(0,a=V.lang),"session"in V&&r(34,l=V.session),"currency"in V&&r(35,u=V.currency),"limit"in V&&r(1,c=V.limit),"cmsendpoint"in V&&r(2,d=V.cmsendpoint),"clientstyling"in V&&r(3,h=V.clientstyling),"clientstylingurl"in V&&r(4,f=V.clientstylingurl),"translationurl"in V&&r(5,v=V.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&384&&A&&Y&&ts(),e.$$.dirty[1]&32&&r(24,i=(V,we="")=>Zt(`${V}${w?` ${V}Mobile`:""}`,we)),e.$$.dirty[0]&1&&a&&wc(a),e.$$.dirty[0]&3|e.$$.dirty[1]&12&&r(37,n=o&&l&&a&&c),e.$$.dirty[1]&64&&n&&N(),e.$$.dirty[0]&72&&h&&q&&se(),e.$$.dirty[0]&80&&f&&q&&_e(),e.$$.dirty[0]&32&&v&&ue()},[a,c,d,h,f,v,q,A,Y,b,_,C,y,L,E,I,X,z,P,$,re,U,ce,De,i,s,Pe,R,F,Q,Se,Zt,Hi,o,l,u,w,n,Ri,zi,is,ns,ss,os,as,ls]}class Uh extends Mn{constructor(t){super(),Pn(this,t,oC,sC,ki,{endpoint:33,lang:0,session:34,currency:35,limit:1,cmsendpoint:2,clientstyling:3,clientstylingurl:4,translationurl:5},Kw,[-1,-1,-1])}get endpoint(){return this.$$.ctx[33]}set endpoint(t){this.$$set({endpoint:t}),xe()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),xe()}get session(){return this.$$.ctx[34]}set session(t){this.$$set({session:t}),xe()}get currency(){return this.$$.ctx[35]}set currency(t){this.$$set({currency:t}),xe()}get limit(){return this.$$.ctx[1]}set limit(t){this.$$set({limit:t}),xe()}get cmsendpoint(){return this.$$.ctx[2]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),xe()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}get translationurl(){return this.$$.ctx[5]}set translationurl(t){this.$$set({translationurl:t}),xe()}}Dn(Uh,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Uh;
|
|
4189
|
+
`),w.c(),k(r,f),k(s,_),k(t,y)},m(E,I){B(E,t,I),p(t,r),p(t,n),p(t,s),p(s,a),p(s,l),p(s,c),p(s,d),w.m(s,null)},p(E,I){var K;k(r,f=He(h,[E[34]("CircularProgress"),I[0]&8&&i!==(i=E[28](E[3]))&&{value:i},I[0]&1&&{status:E[0]},I[0]&2&&{clientstyling:E[1]},I[0]&4&&{clientstylingurl:E[2]}])),I[0]&8388608&&o!==(o=E[23]("bonusCard.level")+"")&&ne(a,o,_.contenteditable),I[0]&8&&u!==(u=(((K=E[3].wageringProgress)==null?void 0:K.currentLevel)||1)+"")&&ne(c,u,_.contenteditable),g===(g=v(E))&&w?w.p(E,I):(w.d(1),w=g(E),w&&(w.c(),w.m(s,null)))},d(E){E&&M(t),w.d()}}}function bw(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function vw(e){let t;return{c(){t=O(e[6])},m(r,i){B(r,t,i)},p(r,i){i[0]&64&&Ce(t,r[6])},d(r){r&&M(t)}}}function pu(e){let t,r,i,n,s,o,a=e[23]("bonusCard.rewards")+"",l,u,c,d,h,f,v=[e[34]("BonusCardAdditionalTitle")],g={};for(let z=0;z<v.length;z+=1)g=T(g,v[z]);function w(z,P){return z[9]?yw:ww}let b=w(e),_=b(e),C=[e[34]("BonusCardAdditionalButton")],y={};for(let z=0;z<C.length;z+=1)y=T(y,C[z]);let L=[e[34]("BonusCardAdditionalHeader")],E={};for(let z=0;z<L.length;z+=1)E=T(E,L[z]);let I=e[9]&&mu(e),K=[e[34]("BonusCardAdditional")],q={};for(let z=0;z<K.length;z+=1)q=T(q,K[z]);return{c(){t=x("div"),r=x("div"),i=x("span"),n=ee("svg"),s=ee("path"),o=W(),l=O(a),u=W(),c=x("span"),_.c(),d=W(),I&&I.c(),m(s,"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(s,"fill","black"),m(n,"width","20"),m(n,"height","20"),m(n,"viewBox","0 0 20 20"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,g),k(c,y),k(r,E),le(r,"Active",e[9]),k(t,q)},m(z,P){B(z,t,P),p(t,r),p(r,i),p(i,n),p(n,s),p(i,o),p(i,l),p(r,u),p(r,c),_.m(c,null),p(t,d),I&&I.m(t,null),h||(f=Re(r,"click",e[49]),h=!0)},p(z,P){P[0]&8388608&&a!==(a=z[23]("bonusCard.rewards")+"")&&ne(l,a,g.contenteditable),b!==(b=w(z))&&(_.d(1),_=b(z),_&&(_.c(),_.m(c,null))),P[0]&512&&le(r,"Active",z[9]),z[9]?I?I.p(z,P):(I=mu(z),I.c(),I.m(t,null)):I&&(I.d(1),I=null)},d(z){z&&M(t),_.d(),I&&I.d(),h=!1,f()}}}function yw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function ww(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function mu(e){let t,r=e[3].type==="wagering"&&_u(e),i=[e[34]("BonusCardAdditionalContent")],n={};for(let s=0;s<i.length;s+=1)n=T(n,i[s]);return{c(){t=x("div"),r&&r.c(),k(t,n)},m(s,o){B(s,t,o),r&&r.m(t,null)},p(s,o){s[3].type==="wagering"?r?r.p(s,o):(r=_u(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&M(t),r&&r.d()}}}function _u(e){let t,r,i=e[23]("bonusCard.allRewards")+"",n,s,o;function a(h,f){return h[3].status?xw:Cw}let l=a(e),u=l(e),c=[e[34]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],d={};for(let h=0;h<c.length;h+=1)d=T(d,c[h]);return{c(){u.c(),t=W(),r=x("a"),n=O(i),k(r,d)},m(h,f){u.m(h,f),B(h,t,f),B(h,r,f),p(r,n),s||(o=Re(r,"click",e[50]),s=!0)},p(h,f){l===(l=a(h))&&u?u.p(h,f):(u.d(1),u=l(h),u&&(u.c(),u.m(t.parentNode,t))),f[0]&8388608&&i!==(i=h[23]("bonusCard.allRewards")+"")&&ne(n,i,d.contenteditable)},d(h){h&&(M(t),M(r)),u.d(h),s=!1,o()}}}function Cw(e){let t,r=Ge(e[3].levels),i=[];for(let n=0;n<r.length;n+=1)i[n]=bu(Zl(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Nt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&8388616|s[1]&10){r=Ge(n[3].levels);let o;for(o=0;o<r.length;o+=1){const a=Zl(n,r,o);i[o]?i[o].p(a,s):(i[o]=bu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&M(t),jt(i,n)}}}function xw(e){let t,r=Ge(e[33](e[3],e[5])),i=[];for(let n=0;n<r.length;n+=1)i[n]=yu(Xl(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Nt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&8388648|s[1]&12){r=Ge(n[33](n[3],n[5]));let o;for(o=0;o<r.length;o+=1){const a=Xl(n,r,o);i[o]?i[o].p(a,s):(i[o]=yu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&M(t),jt(i,n)}}}function gu(e){let t=e[32](e[76],e[79])+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&8&&t!==(t=i[32](i[76],i[79])+"")&&Ce(r,t)},d(i){i&&M(r)}}}function bu(e){let t,r,i=e[23]("bonusCard.level")+"",n,s,o=(e[76].maxRepeats>1?`${e[78]+1}-${e[78]+1+e[76].maxRepeats-1}`:e[78]+1)+"",a,l,u,c,d,h=[e[34]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let v=Ge(e[76].bonuses),g=[];for(let _=0;_<v.length;_+=1)g[_]=gu(Kl(e,v,_));let w=[e[34]("BonusRewardsLevelsItem")],b={};for(let _=0;_<w.length;_+=1)b=T(b,w[_]);return{c(){t=x("p"),r=x("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),c=x("span");for(let _=0;_<g.length;_+=1)g[_].c();d=W(),k(r,f),k(t,b)},m(_,C){B(_,t,C),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,c);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(c,null);p(t,d)},p(_,C){if(C[0]&8388608&&i!==(i=_[23]("bonusCard.level")+"")&&ne(n,i,f.contenteditable),C[0]&8&&o!==(o=(_[76].maxRepeats>1?`${_[78]+1}-${_[78]+1+_[76].maxRepeats-1}`:_[78]+1)+"")&&ne(a,o,f.contenteditable),C[0]&8|C[1]&2){v=Ge(_[76].bonuses);let y;for(y=0;y<v.length;y+=1){const L=Kl(_,v,y);g[y]?g[y].p(L,C):(g[y]=gu(L),g[y].c(),g[y].m(c,null))}for(;y<g.length;y+=1)g[y].d(1);g.length=v.length}},d(_){_&&M(t),jt(g,_)}}}function vu(e){let t=e[73]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&40&&t!==(t=i[73]+"")&&Ce(r,t)},d(i){i&&M(r)}}}function yu(e){let t,r,i=e[23](`bonusCard.${e[70].label}`)+"",n,s,o=e[23]("bonusCard.level")+"",a,l,u,c,d,h=[e[34]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let v=Ge(e[70].desc),g=[];for(let _=0;_<v.length;_+=1)g[_]=vu(Jl(e,v,_));let w=[e[34]("BonusRewardsLevelsItem")],b={};for(let _=0;_<w.length;_+=1)b=T(b,w[_]);return{c(){t=x("p"),r=x("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),c=x("span");for(let _=0;_<g.length;_+=1)g[_].c();d=W(),k(r,f),k(t,b)},m(_,C){B(_,t,C),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,c);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(c,null);p(t,d)},p(_,C){if(C[0]&8388648&&i!==(i=_[23](`bonusCard.${_[70].label}`)+"")&&ne(n,i,f.contenteditable),C[0]&8388608&&o!==(o=_[23]("bonusCard.level")+"")&&ne(a,o,f.contenteditable),C[0]&40|C[1]&4){v=Ge(_[70].desc);let y;for(y=0;y<v.length;y+=1){const L=Jl(_,v,y);g[y]?g[y].p(L,C):(g[y]=vu(L),g[y].c(),g[y].m(c,null))}for(;y<g.length;y+=1)g[y].d(1);g.length=v.length}},d(_){_&&M(t),jt(g,_)}}}function Ew(e){let t,r,i,n,s,o,a,l,u,c,d=e[23]("bonusCard.terms")+"",h,f=[e[34]("BonusCardTermsLink"),{href:e[18]},{target:"__blank"}],v={};for(let b=0;b<f.length;b+=1)v=T(v,f[b]);let g=[e[34]("BonusCardTerms")],w={};for(let b=0;b<g.length;b+=1)w=T(w,g[b]);return{c(){t=x("div"),r=x("a"),i=ee("svg"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=W(),h=O(d),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"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(n,"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(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"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(o,"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(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"),k(r,v),k(t,w)},m(b,_){B(b,t,_),p(t,r),p(r,i),p(i,n),p(i,s),p(i,o),p(i,a),p(i,l),p(i,u),p(r,c),p(r,h)},p(b,_){_[0]&8388608&&d!==(d=b[23]("bonusCard.terms")+"")&&ne(h,d,v.contenteditable),k(r,v=He(f,[b[34]("BonusCardTermsLink"),_[0]&262144&&{href:b[18]},{target:"__blank"}]))},d(b){b&&M(t)}}}function kw(e){let t,r,i,n,s,o,a,l,u,c,d,h=e[23]("bonusCard.terms")+"",f,v,g,w,b,_,C=[e[34]("BonusCardTermsTitle")],y={};for(let Z=0;Z<C.length;Z+=1)y=T(y,C[Z]);function L(Z,A){return Z[10]?Sw:Aw}let E=L(e),I=E(e),K=[e[34]("BonusCardTermsButton")],q={};for(let Z=0;Z<K.length;Z+=1)q=T(q,K[Z]);let z=[e[34]("BonusCardTermsHeader")],P={};for(let Z=0;Z<z.length;Z+=1)P=T(P,z[Z]);let $=e[10]&&wu(e),re=[e[34]("BonusCardTerms")],J={};for(let Z=0;Z<re.length;Z+=1)J=T(J,re[Z]);return{c(){t=x("div"),r=x("div"),i=x("span"),n=ee("svg"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),c=ee("path"),d=W(),f=O(h),v=W(),g=x("span"),I.c(),w=W(),$&&$.c(),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"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(s,"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(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(c,"fill-rule","evenodd"),m(c,"clip-rule","evenodd"),m(c,"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(c,"fill","black"),m(n,"width","19"),m(n,"height","21"),m(n,"viewBox","0 0 19 21"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,y),k(g,q),k(r,P),le(r,"Active",e[10]),k(t,J)},m(Z,A){B(Z,t,A),p(t,r),p(r,i),p(i,n),p(n,s),p(n,o),p(n,a),p(n,l),p(n,u),p(n,c),p(i,d),p(i,f),p(r,v),p(r,g),I.m(g,null),p(t,w),$&&$.m(t,null),b||(_=Re(r,"click",e[51]),b=!0)},p(Z,A){A[0]&8388608&&h!==(h=Z[23]("bonusCard.terms")+"")&&ne(f,h,y.contenteditable),E!==(E=L(Z))&&(I.d(1),I=E(Z),I&&(I.c(),I.m(g,null))),A[0]&1024&&le(r,"Active",Z[10]),Z[10]?$?$.p(Z,A):($=wu(Z),$.c(),$.m(t,null)):$&&($.d(1),$=null)},d(Z){Z&&M(t),I.d(),$&&$.d(),b=!1,_()}}}function Sw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function Aw(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&M(t)}}}function wu(e){let t,r,i,n,s=[e[34]("BonusCardTermsContent")],o={};for(let a=0;a<s.length;a+=1)o=T(o,s[a]);return{c(){t=x("div"),k(t,o)},m(a,l){B(a,t,l),i||(n=qh(r=e[38].call(null,t,e[14].terms_and_conditions)),i=!0)},p(a,l){r&&Ei(r.update)&&l[0]&16384&&r.update.call(null,a[14].terms_and_conditions)},d(a){a&&M(t),i=!1,n()}}}function Cu(e){let t,r,i,n=e[0]==="claimable"&&xu(e),s=e[0]==="active"&&e[3].status==="active"&&ku(e),o=[e[34]("BonusCardActionContent")],a={};for(let c=0;c<o.length;c+=1)a=T(a,o[c]);let l=[e[34]("BonusCardAction")],u={};for(let c=0;c<l.length;c+=1)u=T(u,l[c]);return{c(){t=x("div"),r=x("div"),n&&n.c(),i=W(),s&&s.c(),k(r,a),k(t,u)},m(c,d){B(c,t,d),p(t,r),n&&n.m(r,null),p(r,i),s&&s.m(r,null)},p(c,d){c[0]==="claimable"?n?n.p(c,d):(n=xu(c),n.c(),n.m(r,i)):n&&(n.d(1),n=null),c[0]==="active"&&c[3].status==="active"?s?s.p(c,d):(s=ku(c),s.c(),s.m(r,null)):s&&(s.d(1),s=null)},d(c){c&&M(t),n&&n.d(),s&&s.d()}}}function xu(e){let t,r,i,n,s,o,a,l,u,c=e[23]("bonusCard.join")+"",d,h,f,v,g=e[13]===!0&&Eu(e),w=[e[34]("BonusCardJoinCountdown")],b={};for(let E=0;E<w.length;E+=1)b=T(b,w[E]);let _=[e[34]("BonusJoinButton"),{type:"button"},{disabled:h=!e[11]}],C={};for(let E=0;E<_.length;E+=1)C=T(C,_[E]);let y=[e[34]("BonusCardJoinWrapper")],L={};for(let E=0;E<y.length;E+=1)L=T(L,y[E]);return{c(){t=x("div"),g&&g.c(),r=W(),i=x("span"),n=ee("svg"),s=ee("path"),o=W(),a=O(e[17]),l=W(),u=x("button"),d=O(c),m(s,"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(s,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,b),k(u,C),k(t,L)},m(E,I){B(E,t,I),g&&g.m(t,null),p(t,r),p(t,i),p(i,n),p(n,s),p(i,o),p(i,a),p(t,l),p(t,u),p(u,d),u.autofocus&&u.focus(),f||(v=Re(u,"click",e[24]),f=!0)},p(E,I){E[13]===!0?g?g.p(E,I):(g=Eu(E),g.c(),g.m(t,r)):g&&(g.d(1),g=null),I[0]&131072&&ne(a,E[17],b.contenteditable),I[0]&8388608&&c!==(c=E[23]("bonusCard.join")+"")&&ne(d,c,C.contenteditable),k(u,C=He(_,[E[34]("BonusJoinButton"),{type:"button"},I[0]&2048&&h!==(h=!E[11])&&{disabled:h}]))},d(E){E&&M(t),g&&g.d(),f=!1,v()}}}function Eu(e){let t,r=e[23]("bonusCard.error")+"",i,n=[e[34]("BonusCardJoinError")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("span"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&8388608&&r!==(r=o[23]("bonusCard.error")+"")&&ne(i,r,s.contenteditable)},d(o){o&&M(t)}}}function ku(e){let t,r=e[23]("bonusCard.forfeit")+"",i,n,s,o,a=[e[34]("BonusForfeitButton"),{type:"button"},{disabled:n=!e[11]}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=x("button"),i=O(r),k(t,l)},m(u,c){B(u,t,c),p(t,i),t.autofocus&&t.focus(),s||(o=Re(t,"click",e[25]),s=!0)},p(u,c){c[0]&8388608&&r!==(r=u[23]("bonusCard.forfeit")+"")&&ne(i,r,l.contenteditable),k(t,l=He(a,[u[34]("BonusForfeitButton"),{type:"button"},c[0]&2048&&n!==(n=!u[11])&&{disabled:n}]))},d(u){u&&M(t),s=!1,o()}}}function Tw(e){let t,r=e[3]&&eu(e);return{c(){r&&r.c(),t=Nt()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[3]?r?r.p(i,n):(r=eu(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:ke,o:ke,d(i){i&&M(t),r&&r.d(i)}}}function Pw(e,t,r){let i,n;Uu(e,yc,S=>r(23,n=S));let{rawbonus:s=""}=t,{lang:o="en"}=t,{status:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{cmsendpoint:c=""}=t,{translationurl:d=""}=t,h,f=[],v,g=!1,w=!1,b=!1,_=!1,C=!0,y=!1,L=!1,E={},I,K,q="",z=1e3*30,P,$="",re=!1,J,Z=[],A=0;const Y=()=>{fetch(d).then(G=>G.json()).then(G=>{Object.keys(G).forEach(oe=>{fn(oe,G[oe])})}).catch(G=>{console.log(G)})};Object.keys(pn).forEach(S=>{fn(S,pn[S])}),ju(()=>(window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const U=()=>{try{r(3,h=JSON.parse(s))}catch(S){}h&&(h.type==="wagering"&&r(8,w=!0),r(15,I=ql(h.currency)),r(5,f=Pe(h.levels)),h.type==="freeRound"&&r(21,Z=ce(h.freeSpin)),D())},ce=S=>{if(!S||!S.vendorGamesDetail)return[];let G=[];return Object.keys(S.vendorGamesDetail).length>0&&Object.keys(S.vendorGamesDetail).forEach(oe=>{G=S.vendorGamesDetail[oe]}),G},Pe=S=>{if(!S)return[];const G=[];let oe=!1;return S.map(($e,qe)=>{const ut=$e,{maxRepeats:ze,completedTime:Rt}=ut,rt=cs(ut,["maxRepeats","completedTime"]);ze===0&&(oe=!0);for(let Je=0;Je<ze;Je++)G.push(Kt({},rt))}),oe?r(6,v=0):r(6,v=G.length),G},De=()=>{r(11,C=!1),r(13,L=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:h.code})},se=()=>{r(11,C=!1),window.postMessage({type:"OnBonusForfeit",bonus:h})},_e=S=>{switch(S.data.type){case"OnBonusClaimedDone":r(11,C=!0);break;case"OnBonusForfeitedDone":r(11,C=!0);case"OnBonusClaimError":S.data.bonusCode===h.code&&r(13,L=!0);break}},ue=(S,G)=>({remainder:S%G,quotient:Math.floor(S/G)}),de=S=>{const G=new Date;return new Date(S).getTime()-G.getTime()},N=S=>{const G=de(S)/6e4,{quotient:oe,remainder:$e}=ue(G,1440),{quotient:qe,remainder:ze}=ue($e,60),Rt=Math.floor(ze),rt=Je=>Math.abs(Je)<10?`0${Je}`:Je;return[{value:oe,symbol:"d"},{value:qe,symbol:"h"},{value:Rt,symbol:"m"}].map(Je=>rt(Je.value)+Je.symbol).join(" ")},R=(S,G,oe,$e)=>{const qe=de(S);qe<0?oe():($e(N(S)),qe<G&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},qe))},D=()=>{h&&((h.endTime||h.trigger&&h.trigger.endTime)&&R(h.endTime||h.trigger.endTime,z,()=>r(17,q="Expired"),S=>r(17,q=S)),h.expiryDate&&R(h.expiryDate,z,()=>r(16,K="Expired"),S=>r(16,K=S)))},F=S=>{let G=(S.initialWagerRequirementAmount*10-S.remainingWagerRequirementAmount*10)/10;return S.status==="released"&&(G+=S.remainingAmount),G},Ne=S=>{var G,oe;return((((G=S.wageringProgress)==null?void 0:G.currentLevelIncrement)*10-((oe=S.wageringProgress)==null?void 0:oe.gap)*10)/10).toFixed(1)},Q=S=>{var $e,qe,ze;let G,oe;return S.type==="wagering"&&S.status==="active"&&S.wageringType==="money"?(oe=($e=S.wageringProgress)==null?void 0:$e.currentLevelIncrement,oe!=0&&(G=((((qe=S.wageringProgress)==null?void 0:qe.currentLevelIncrement)-((ze=S.wageringProgress)==null?void 0:ze.gap))/oe*100).toFixed(1))):S.status=="released"?G=100:(oe=S.initialWagerRequirementAmount,oe!=0&&(G=((S.initialWagerRequirementAmount-S.remainingWagerRequirementAmount)/oe*100).toFixed(1))),Number(G)},Se=S=>j(S).format("YYYY-MM-DD hh:mm:ss"),Le=S=>{if(!S.wallet)return;let G=S.wallet.validityMinutes;return G===0?"infinite":Math.round(G/1440)+" days"},Zt=S=>{if(S.products)return S.products;{let G=[];return S.wallet&&(S.wallet.casino&&G.push("Casino"),S.wallet.sports&&G.push("Sports")),G}},Wr=(S,G)=>{let oe;oe=n(`bonusType.${G.type}`);const $e=ql(Object.keys(S.increment)[0]);if(G.mode==="percentage")return`${G.bonusAmount*100}% up to ${$e}${G.capAmount} ${oe}`;if(G.mode==="fixed")return`${$e}${G.bonusAmount} ${oe}`},Vr=(S,G)=>{switch(G.type){case"standard":case"freeBet":return Wr(S,G);case"freeRound":return`${G.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},Fi=(S,G)=>{var ze;const oe=((ze=S.wageringProgress)==null?void 0:ze.currentLevel)-1,$e=G.length-1,qe=Rt=>Rt.filter(rt=>rt.index>=0&&rt.index<=$e).map(rt=>{const ut=G[rt.index];return{label:rt.label,desc:ut.bonuses.map(Je=>Vr(ut,Je))}});return S.status==="active"?qe([{label:"current",index:oe},{label:"next",index:oe+1}]):S.status?qe([{label:"last",index:$e},{label:"previous",index:$e-1}]):qe([{label:"first",index:0},{label:"next",index:1}])},ts=S=>{var G,oe;r(18,$=S.url?S.url:(oe=(G=S.presentation)==null?void 0:G.url)==null?void 0:oe.content)},rs=(S,G="")=>({part:S,class:[S,G].join(" ")}),Hi=S=>{window.postMessage({type:"BonusGameAction",gameId:S.id,name:S.name,gameLaunchUrl:S.href},window.location.href)},Ri=S=>{r(19,re=!0),r(20,J=S)},zi=()=>{r(19,re=!1),r(20,J=-1)},is=S=>{fetch(`${c}/${o}/bonuses-information/${S}`).then(G=>G.json()).then(G=>{G&&G[S]&&(r(12,y=!0),r(14,E=G[S]))})},ns=(S,G)=>{let oe=document.createElement("div");oe.innerHTML=G,S.append(oe)},ss=()=>{let S=document.createElement("style");S.innerHTML=l,P.appendChild(S)},os=()=>{let S=new URL(u),G=document.createElement("style");fetch(S.href).then(oe=>oe.text()).then(oe=>{G.innerHTML=oe,setTimeout(()=>{P.appendChild(G)},1)})},as=()=>r(22,A+=300),ls=S=>Hi(S),V=S=>Ri(S),we=()=>zi(),Ie=()=>r(22,A-=300),hr=()=>{r(9,b=!b)},Ht=()=>window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:h.id}),Uh=()=>{r(10,_=!_)};function $h(S){At[S?"unshift":"push"](()=>{P=S,r(4,P)})}return e.$$set=S=>{"rawbonus"in S&&r(39,s=S.rawbonus),"lang"in S&&r(40,o=S.lang),"status"in S&&r(0,a=S.status),"clientstyling"in S&&r(1,l=S.clientstyling),"clientstylingurl"in S&&r(2,u=S.clientstylingurl),"cmsendpoint"in S&&r(41,c=S.cmsendpoint),"translationurl"in S&&r(42,d=S.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&r(7,g=!0),a==="active"&&r(7,g=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&768&&r(43,i=s&&o&&a),e.$$.dirty[1]&4096&&i&&U(),e.$$.dirty[0]&8|e.$$.dirty[1]&5632&&i&&h&&(o&&wc(o),c?is(h.id):ts(h)),e.$$.dirty[0]&18&&l&&P&&ss(),e.$$.dirty[0]&20&&u&&P&&os(),e.$$.dirty[1]&2048&&d&&Y()},[a,l,u,h,P,f,v,g,w,b,_,C,y,L,E,I,K,q,$,re,J,Z,A,n,De,se,F,Ne,Q,Se,Le,Zt,Vr,Fi,rs,Hi,Ri,zi,ns,s,o,c,d,i,as,ls,V,we,Ie,hr,Ht,Uh,$h]}class Dw extends Mn{constructor(t){super(),Pn(this,t,Pw,Tw,ki,{rawbonus:39,lang:40,status:0,clientstyling:1,clientstylingurl:2,cmsendpoint:41,translationurl:42},ew,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[39]}set rawbonus(t){this.$$set({rawbonus:t}),xe()}get lang(){return this.$$.ctx[40]}set lang(t){this.$$set({lang:t}),xe()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),xe()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}get cmsendpoint(){return this.$$.ctx[41]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),xe()}get translationurl(){return this.$$.ctx[42]}set translationurl(t){this.$$set({translationurl:t}),xe()}}Dn(Dw,{rawbonus:{},lang:{},status:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{}},[],[],!0);function Mw({totalItems:e,pageSize:t,currentPage:r,limit:i}){const n=Math.ceil(e/t),o=i&&n>Nw(i)?Bw({totalPages:n,limit:i,currentPage:r}):Ow({totalPages:n});return[{type:"symbol",symbol:"<",value:r<=1?1:r-1},...o||[],{type:"symbol",symbol:">",value:r>=n?n:r+1}]}function Ow({totalPages:e}){return new Array(e).fill(null).map((t,r)=>({type:"number",value:r+1}))}function Bw({totalPages:e,limit:t,currentPage:r}){const i=t*2+2,n=1+i,s=e-i,o=n+2;return r<=n-t?Array(o).fill(null).map((a,l)=>l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:n+1}:{type:"number",value:l+1}):r>=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:s-1}:{type:"number",value:s+l-2}):r>=n-t&&r<=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:r-t+(l-2)}:l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:r+t+1}:{type:"number",value:r-t+(l-2)}):[]}function Nw(e){return e*2+3+2}function Iw(e){Tn(e,"svelte-1b2aph1",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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 Su(e,t,r){const i=e.slice();return i[29]=t[r],i}const Lw=e=>({}),Au=e=>({}),Fw=e=>({}),Tu=e=>({}),Hw=e=>({}),Pu=e=>({}),Rw=e=>({value:e[0]&32}),Du=e=>({value:e[29].value});function zw(e){let t;const r=e[20].next,i=Si(r,e,e[19],Au),n=i||Ww();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Lw):Pi(s[19]),Au)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Yw(e){let t;const r=e[20].prev,i=Si(r,e,e[19],Tu),n=i||Vw();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Fw):Pi(s[19]),Tu)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Uw(e){let t;const r=e[20].ellipsis,i=Si(r,e,e[19],Pu),n=i||jw();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&524288)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Hw):Pi(s[19]),Pu)},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function $w(e){let t;const r=e[20].number,i=Si(r,e,e[19],Du),n=i||Gw(e);return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i?i.p&&(!t||o[0]&524320)&&Ti(i,r,s,s[19],t?Ai(r,s[19],o,Rw):Pi(s[19]),Du):n&&n.p&&(!t||o[0]&32)&&n.p(s,t?o:[-1,-1])},i(s){t||(dt(n,s),t=!0)},o(s){Ot(n,s),t=!1},d(s){n&&n.d(s)}}}function Ww(e){let t;return{c(){t=O(">")},m(r,i){B(r,t,i)},d(r){r&&M(t)}}}function Vw(e){let t;return{c(){t=O("<")},m(r,i){B(r,t,i)},d(r){r&&M(t)}}}function jw(e){let t;return{c(){t=x("span"),t.textContent="..."},m(r,i){B(r,t,i)},p:ke,d(r){r&&M(t)}}}function Gw(e){let t,r=e[29].value+"",i;return{c(){t=x("span"),i=O(r)},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&32&&r!==(r=n[29].value+"")&&Ce(i,r)},d(n){n&&M(t)}}}function Mu(e){let t,r,i,n,s,o,a,l;const u=[$w,Uw,Yw,zw],c=[];function d(f,v){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}~(r=d(e))&&(i=c[r]=u[r](e));function h(){return e[21](e[29])}return{c(){t=x("button"),i&&i.c(),n=W(),t.disabled=s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),le(t,"number",e[29].type==="number"),le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),le(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,v){B(f,t,v),~r&&c[r].m(t,null),p(t,n),o=!0,a||(l=Re(t,"click",h),a=!0)},p(f,v){e=f;let g=r;r=d(e),r===g?~r&&c[r].p(e,v):(i&&(Gu(),Ot(c[g],1,1,()=>{c[g]=null}),qu()),~r?(i=c[r],i?i.p(e,v):(i=c[r]=u[r](e),i.c()),dt(i,1),i.m(t,n)):i=null),(!o||v[0]&98&&s!==(s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1))&&(t.disabled=s),(!o||v[0]&32)&&le(t,"number",e[29].type==="number"),(!o||v[0]&32)&&le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),(!o||v[0]&32)&&le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),(!o||v[0]&98)&&le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),(!o||v[0]&32)&&le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!o||v[0]&34)&&le(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){o||(dt(i),o=!0)},o(f){Ot(i),o=!1},d(f){f&&M(t),~r&&c[r].d(),a=!1,l()}}}function Ou(e){let t,r,i,n,s,o,a,l;return{c(){t=x("div"),r=x("span"),r.textContent="Go To Page",i=W(),n=x("input"),s=W(),o=x("button"),o.textContent="Go",m(n,"type","number"),m(n,"class","PaginationInput"),m(n,"part","PaginationInput"),m(o,"type","button"),m(o,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,c){B(u,t,c),p(t,r),p(t,i),p(t,n),cn(n,e[3]),p(t,s),p(t,o),a||(l=[Re(n,"input",e[22]),Re(n,"change",e[23]),Re(o,"click",e[24])],a=!0)},p(u,c){c[0]&8&&Vu(n.value)!==u[3]&&cn(n,u[3])},d(u){u&&M(t),a=!1,pt(l)}}}function qw(e){let t,r,i,n,s,o,a=Ge(e[5]),l=[];for(let d=0;d<a.length;d+=1)l[d]=Mu(Su(e,a,d));const u=d=>Ot(l[d],1,1,()=>{l[d]=null});let c=e[7]&&Ou(e);return{c(){t=x("div"),r=x("div");for(let d=0;d<l.length;d+=1)l[d].c();s=W(),c&&c.c(),m(r,"class",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(r,"part",n="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(d,h){B(d,t,h),p(t,r);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(r,null);p(t,s),c&&c.m(t,null),e[25](t),o=!0},p(d,h){if(h[0]&524642){a=Ge(d[5]);let f;for(f=0;f<a.length;f+=1){const v=Su(d,a,f);l[f]?(l[f].p(v,h),dt(l[f],1)):(l[f]=Mu(v),l[f].c(),dt(l[f],1),l[f].m(r,null))}for(Gu(),f=a.length;f<l.length;f+=1)u(f);qu()}(!o||h[0]&4&&i!==(i="PaginationWrapper "+(d[2]?"PaginationWrapperMobile":"")))&&m(r,"class",i),(!o||h[0]&4&&n!==(n="PaginationWrapper "+(d[2]?"PaginationWrapperMobile":"")))&&m(r,"part",n),d[7]?c?c.p(d,h):(c=Ou(d),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},i(d){if(!o){for(let h=0;h<a.length;h+=1)dt(l[h]);o=!0}},o(d){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)Ot(l[h]);o=!1},d(d){d&&M(t),jt(l,d),c&&c.d(),e[25](null)}}}function Zw(e,t,r){let i,n,s,o,a,{$$slots:l={},$$scope:u}=t,{totalitems:c=""}=t,{pagesize:d=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:v=""}=t,{clientstyling:g=""}=t,{clientstylingurl:w=""}=t,b=window.navigator.userAgent,_=!1,C;Pc(b)&&(_=!0);let y,L,E;const I=()=>{let A=document.createElement("style");A.innerHTML=g,C.appendChild(A)},K=()=>{let A=new URL(w),Y=document.createElement("style");fetch(A.href).then(U=>U.text()).then(U=>{Y.innerHTML=U,setTimeout(()=>{C.appendChild(Y)},1)})},q=A=>{window.postMessage({type:"PaginationChange",page:A.value})},z=A=>{r(4,L=A>a?a:A)},P=A=>q(A);function $(){y=Vu(this.value),r(3,y)}const re=()=>z(y),J=()=>q({value:L});function Z(A){At[A?"unshift":"push"](()=>{C=A,r(0,C)})}return e.$$set=A=>{"totalitems"in A&&r(10,c=A.totalitems),"pagesize"in A&&r(11,d=A.pagesize),"currentpage"in A&&r(12,h=A.currentpage),"limit"in A&&r(13,f=A.limit),"showinput"in A&&r(14,v=A.showinput),"clientstyling"in A&&r(15,g=A.clientstyling),"clientstylingurl"in A&&r(16,w=A.clientstylingurl),"$$scope"in A&&r(19,u=A.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&32769&&g&&C&&I(),e.$$.dirty[0]&65537&&w&&C&&K(),e.$$.dirty[0]&1024&&r(18,i=Number(c)),e.$$.dirty[0]&16384&&r(7,n=v),e.$$.dirty[0]&4096&&r(1,s=Number(h)),e.$$.dirty[0]&2048&&r(17,o=d),e.$$.dirty[0]&401410&&r(5,E=Mw({totalItems:i,pageSize:o,currentPage:s,limit:f})),e.$$.dirty[0]&393216&&r(6,a=Math.ceil(i/o))},[C,s,_,y,L,E,a,n,q,z,c,d,h,f,v,g,w,o,i,u,l,P,$,re,J,Z]}class Kw extends Mn{constructor(t){super(),Pn(this,t,Zw,qw,ki,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,clientstyling:15,clientstylingurl:16},Iw,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),xe()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),xe()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),xe()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),xe()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),xe()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}}Dn(Kw,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0);function Xw(e){Tn(e,"svelte-zkolr8",':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}.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:18px;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 Bu(e,t,r){const i=e.slice();return i[63]=t[r],i}function Nu(e,t,r){const i=e.slice();return i[66]=t[r],i}function Iu(e){let t,r=e[25](`bonusCard.${e[66]}`)+"",i,n,s,o,a=[{type:"button"},e[24]("BonusStatusFilter"),{disabled:e[10]}],l={};for(let c=0;c<a.length;c+=1)l=T(l,a[c]);function u(){return e[38](e[66])}return{c(){t=x("button"),i=O(r),n=W(),k(t,l),le(t,"active",e[66]===e[21])},m(c,d){B(c,t,d),p(t,i),p(t,n),t.autofocus&&t.focus(),s||(o=Re(t,"click",u),s=!0)},p(c,d){e=c,d[0]&33554432&&r!==(r=e[25](`bonusCard.${e[66]}`)+"")&&ne(i,r,l.contenteditable),k(t,l=He(a,[{type:"button"},d[0]&16777216&&e[24]("BonusStatusFilter"),d[0]&1024&&{disabled:e[10]}])),le(t,"active",e[66]===e[21])},d(c){c&&M(t),s=!1,o()}}}function Jw(e){let t,r,i=e[25]("bonus.canlendarTitle")+"",n,s,o,a,l,u,c=e[25]("bonus.from")+"",d,h,f,v,g,w,b=e[25]("bonus.to")+"",_,C,y,L,E,I=e[25]("bonus.filter")+"",K,q,z,P=[e[31]("BonusCalendarTitle")],$={};for(let F=0;F<P.length;F+=1)$=T($,P[F]);let re=[{max:e[15]},{value:e[16]},{placeholder:"From"},e[31]("VaadinDatePicker")],J={};for(let F=0;F<re.length;F+=1)J=T(J,re[F]);let Z=[e[24]("BonusCalendarStartDate")],A={};for(let F=0;F<Z.length;F+=1)A=T(A,Z[F]);let Y=[{value:e[15]},{placeholder:"To"},e[31]("VaadinDatePicker")],U={};for(let F=0;F<Y.length;F+=1)U=T(U,Y[F]);let ce=[e[24]("BonusCalendarEndDate")],Pe={};for(let F=0;F<ce.length;F+=1)Pe=T(Pe,ce[F]);let De=[e[24]("BonusCalendarContainer")],se={};for(let F=0;F<De.length;F+=1)se=T(se,De[F]);let _e=[e[24]("BonusFilterButton"),{disabled:e[10]}],ue={};for(let F=0;F<_e.length;F+=1)ue=T(ue,_e[F]);let de=[e[31]("BonusCalendarContent")],N={};for(let F=0;F<de.length;F+=1)N=T(N,de[F]);let R=[e[24]("BonusCalendarWrapper")],D={};for(let F=0;F<R.length;F+=1)D=T(D,R[F]);return{c(){t=x("div"),r=x("div"),n=O(i),s=W(),o=x("div"),a=x("div"),l=x("div"),u=x("label"),d=O(c),h=W(),f=x("vaadin-date-picker"),v=W(),g=x("div"),w=x("label"),_=O(b),C=W(),y=x("vaadin-date-picker"),L=W(),E=x("button"),K=O(I),k(r,$),m(u,"for","BonusCalendarStartDate"),k(f,J),k(l,A),m(w,"for","BonusCalendarEndDate"),k(y,U),k(g,Pe),k(a,se),k(E,ue),k(o,N),k(t,D)},m(F,Ne){B(F,t,Ne),p(t,r),p(r,n),p(t,s),p(t,o),p(o,a),p(a,l),p(l,u),p(u,d),p(l,h),p(l,f),e[41](f),p(a,v),p(a,g),p(g,w),p(w,_),p(g,C),p(g,y),e[42](y),p(o,L),p(o,E),p(E,K),E.autofocus&&E.focus(),q||(z=Re(E,"click",e[43]),q=!0)},p(F,Ne){Ne[0]&33554432&&i!==(i=F[25]("bonus.canlendarTitle")+"")&&ne(n,i,$.contenteditable),Ne[0]&33554432&&c!==(c=F[25]("bonus.from")+"")&&Ce(d,c),k(f,J=He(re,[Ne[0]&32768&&{max:F[15]},Ne[0]&65536&&{value:F[16]},{placeholder:"From"},F[31]("VaadinDatePicker")])),k(l,A=He(Z,[Ne[0]&16777216&&F[24]("BonusCalendarStartDate")])),Ne[0]&33554432&&b!==(b=F[25]("bonus.to")+"")&&Ce(_,b),k(y,U=He(Y,[Ne[0]&32768&&{value:F[15]},{placeholder:"To"},F[31]("VaadinDatePicker")])),k(g,Pe=He(ce,[Ne[0]&16777216&&F[24]("BonusCalendarEndDate")])),k(a,se=He(De,[Ne[0]&16777216&&F[24]("BonusCalendarContainer")])),Ne[0]&33554432&&I!==(I=F[25]("bonus.filter")+"")&&ne(K,I,ue.contenteditable),k(E,ue=He(_e,[Ne[0]&16777216&&F[24]("BonusFilterButton"),Ne[0]&1024&&{disabled:F[10]}])),k(t,D=He(R,[Ne[0]&16777216&&F[24]("BonusCalendarWrapper")]))},d(F){F&&M(t),e[41](null),e[42](null),q=!1,z()}}}function Qw(e){let t,r,i,n=e[25]("bonus.bonusCode")+"",s,o,a,l,u,c,d,h=e[25]("bonus.claim")+"",f,v,g,w,b,_=[e[24]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[25]("bonus.placeholder")}],C={};for(let P=0;P<_.length;P+=1)C=T(C,_[P]);let y=[e[24]("BonusClaimButton"),{disabled:v=e[18]||!e[22]}],L={};for(let P=0;P<y.length;P+=1)L=T(L,y[P]);let E=[e[24]("BonusCodeWrapper")],I={};for(let P=0;P<E.length;P+=1)I=T(I,E[P]);let K=e[19]&&Lu(e),q=[e[24]("BonusCodeContainer")],z={};for(let P=0;P<q.length;P+=1)z=T(z,q[P]);return{c(){t=x("div"),r=x("label"),i=x("span"),i.textContent="*",s=O(n),o=W(),a=x("div"),l=x("input"),c=W(),d=x("button"),f=O(h),g=W(),K&&K.c(),m(i,"class","Asterisk"),m(r,"for","BonusCode"),k(l,C),k(d,L),k(a,I),k(t,z)},m(P,$){B(P,t,$),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),l.autofocus&&l.focus(),cn(l,e[17]),p(a,c),p(a,d),p(d,f),d.autofocus&&d.focus(),p(t,g),K&&K.m(t,null),w||(b=[Re(l,"input",e[39]),Re(l,"keyup",e[32]),Re(d,"click",e[40])],w=!0)},p(P,$){$[0]&33554432&&n!==(n=P[25]("bonus.bonusCode")+"")&&Ce(s,n),k(l,C=He(_,[$[0]&16777216&&P[24]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&33554432&&u!==(u=P[25]("bonus.placeholder"))&&{placeholder:u}])),$[0]&131072&&l.value!==P[17]&&cn(l,P[17]),$[0]&33554432&&h!==(h=P[25]("bonus.claim")+"")&&ne(f,h,L.contenteditable),k(d,L=He(y,[$[0]&16777216&&P[24]("BonusClaimButton"),$[0]&4456448&&v!==(v=P[18]||!P[22])&&{disabled:v}])),k(a,I=He(E,[$[0]&16777216&&P[24]("BonusCodeWrapper")])),P[19]?K?K.p(P,$):(K=Lu(P),K.c(),K.m(t,null)):K&&(K.d(1),K=null),k(t,z=He(q,[$[0]&16777216&&P[24]("BonusCodeContainer")]))},d(P){P&&M(t),K&&K.d(),w=!1,pt(b)}}}function Lu(e){let t,r=e[25]("bonus.invalidBonusCode")+"",i;return{c(){t=x("p"),i=O(r),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&33554432&&r!==(r=n[25]("bonus.invalidBonusCode")+"")&&Ce(i,r)},d(n){n&&M(t)}}}function eC(e){let t,r;function i(a,l){return a[9].length>0?nC:a[11]?iC:rC}let n=i(e),s=n(e),o=e[9].length!==0&&Hu(e);return{c(){s.c(),t=W(),o&&o.c(),r=Nt()},m(a,l){s.m(a,l),B(a,t,l),o&&o.m(a,l),B(a,r,l)},p(a,l){n===(n=i(a))&&s?s.p(a,l):(s.d(1),s=n(a),s&&(s.c(),s.m(t.parentNode,t))),a[9].length!==0?o?o.p(a,l):(o=Hu(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(a){a&&(M(t),M(r)),s.d(a),o&&o.d(a)}}}function tC(e){let t,r=[e[31]("ModalLoader")],i={};for(let n=0;n<r.length;n+=1)i=T(i,r[n]);return{c(){t=x("div"),k(t,i)},m(n,s){B(n,t,s)},p:ke,d(n){n&&M(t)}}}function rC(e){let t=e[25]("bonus.noBonus")+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&33554432&&t!==(t=i[25]("bonus.noBonus")+"")&&Ce(r,t)},d(i){i&&M(r)}}}function iC(e){let t,r=e[25]("bonus.error")+"",i,n,s;return{c(){t=x("div"),i=O(r),n=O(": "),s=O(e[11]),$s(t,"color","red")},m(o,a){B(o,t,a),p(t,i),p(t,n),p(t,s)},p(o,a){a[0]&33554432&&r!==(r=o[25]("bonus.error")+"")&&Ce(i,r),a[0]&2048&&Ce(s,o[11])},d(o){o&&M(t)}}}function nC(e){let t,r=Ge(e[9]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Fu(Bu(e,r,o));let n=[e[31]("BonusList")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=x("ul");for(let o=0;o<i.length;o+=1)i[o].c();k(t,s)},m(o,a){B(o,t,a);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,a){if(a[0]&18874941){r=Ge(o[9]);let l;for(l=0;l<r.length;l+=1){const u=Bu(o,r,l);i[l]?i[l].p(u,a):(i[l]=Fu(u),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&M(t),jt(i,o)}}}function Fu(e){let t,r,i,n=[{rawbonus:JSON.stringify(e[63]),status:e[21],cmsendpoint:e[2],lang:e[0],clientstyling:e[3],clientstylingurl:e[4],translationurl:e[5]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[24]("BonusItem")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=x("li"),r=x("casino-bonus-card"),i=W(),k(r,s),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(t,i)},p(l,u){k(r,s=He(n,[u[0]&2097725&&{rawbonus:JSON.stringify(l[63]),status:l[21],cmsendpoint:l[2],lang:l[0],clientstyling:l[3],clientstylingurl:l[4],translationurl:l[5]}])),k(t,a=He(o,[u[0]&16777216&&l[24]("BonusItem")]))},d(l){l&&M(t)}}}function Hu(e){let t;return{c(){t=x("casino-bonus-pagination"),nt(t,"totalitems",e[13]),nt(t,"currentpage",e[12]),nt(t,"pagesize",e[1]),nt(t,"limit",e[14]),nt(t,"clientstyling",e[3]),nt(t,"clientstylingurl",e[4])},m(r,i){B(r,t,i)},p(r,i){i[0]&8192&&nt(t,"totalitems",r[13]),i[0]&4096&&nt(t,"currentpage",r[12]),i[0]&2&&nt(t,"pagesize",r[1]),i[0]&16384&&nt(t,"limit",r[14]),i[0]&8&&nt(t,"clientstyling",r[3]),i[0]&16&&nt(t,"clientstylingurl",r[4])},d(r){r&&M(t)}}}function Ru(e){let t,r,i,n,s=e[25]("bonus.forfeitMessage")+"",o,a,l,u,c=e[25]("bonus.forfeitCancel")+"",d,h,f,v=e[25]("bonus.forfeitConfirm")+"",g,w,b,_=[e[31]("ModalText")],C={};for(let A=0;A<_.length;A+=1)C=T(C,_[A]);let y=[e[31]("ModalCancel")],L={};for(let A=0;A<y.length;A+=1)L=T(L,y[A]);let E=[e[31]("ModalConfirm")],I={};for(let A=0;A<E.length;A+=1)I=T(I,E[A]);let K=[e[31]("ModalButtons")],q={};for(let A=0;A<K.length;A+=1)q=T(q,K[A]);let z=[e[31]("ModalBody")],P={};for(let A=0;A<z.length;A+=1)P=T(P,z[A]);let $=[e[31]("ModalContent")],re={};for(let A=0;A<$.length;A+=1)re=T(re,$[A]);let J=[e[24]("ModalWrapper")],Z={};for(let A=0;A<J.length;A+=1)Z=T(Z,J[A]);return{c(){t=x("div"),r=x("div"),i=x("div"),n=x("p"),o=O(s),a=W(),l=x("div"),u=x("button"),d=O(c),h=W(),f=x("button"),g=O(v),k(n,C),k(u,L),k(f,I),k(l,q),k(i,P),k(r,re),k(t,Z)},m(A,Y){B(A,t,Y),p(t,r),p(r,i),p(i,n),p(n,o),p(i,a),p(i,l),p(l,u),p(u,d),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,g),f.autofocus&&f.focus(),w||(b=[Re(u,"click",e[29]),Re(f,"click",e[44])],w=!0)},p(A,Y){Y[0]&33554432&&s!==(s=A[25]("bonus.forfeitMessage")+"")&&ne(o,s,C.contenteditable),Y[0]&33554432&&c!==(c=A[25]("bonus.forfeitCancel")+"")&&ne(d,c,L.contenteditable),Y[0]&33554432&&v!==(v=A[25]("bonus.forfeitConfirm")+"")&&ne(g,v,I.contenteditable),k(t,Z=He(J,[Y[0]&16777216&&A[24]("ModalWrapper")]))},d(A){A&&M(t),w=!1,pt(b)}}}function sC(e){let t,r,i,n,s,o,a=Ge(e[26]),l=[];for(let y=0;y<a.length;y+=1)l[y]=Iu(Nu(e,a,y));let u=[e[24]("BonusFilterWrapper")],c={};for(let y=0;y<u.length;y+=1)c=T(c,u[y]);function d(y,L){if(y[21]==="claimable")return Qw;if(y[21]==="completed")return Jw}let h=d(e),f=h&&h(e);function v(y,L){return y[10]?tC:eC}let g=v(e),w=g(e),b=e[20]&&Ru(e),_=[e[31]("BonusesController")],C={};for(let y=0;y<_.length;y+=1)C=T(C,_[y]);return{c(){t=x("div"),r=x("div"),i=x("div");for(let y=0;y<l.length;y+=1)l[y].c();n=W(),f&&f.c(),s=W(),w.c(),o=W(),b&&b.c(),m(i,"class","BonusFilterContainer"),m(i,"part","BonusFilterContainer"),k(r,c),k(t,C)},m(y,L){B(y,t,L),p(t,r),p(r,i);for(let E=0;E<l.length;E+=1)l[E]&&l[E].m(i,null);p(t,n),f&&f.m(t,null),p(t,s),w.m(t,null),p(t,o),b&&b.m(t,null),e[45](t)},p(y,L){if(L[0]&1193280512){a=Ge(y[26]);let E;for(E=0;E<a.length;E+=1){const I=Nu(y,a,E);l[E]?l[E].p(I,L):(l[E]=Iu(I),l[E].c(),l[E].m(i,null))}for(;E<l.length;E+=1)l[E].d(1);l.length=a.length}k(r,c=He(u,[L[0]&16777216&&y[24]("BonusFilterWrapper")])),h===(h=d(y))&&f?f.p(y,L):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(t,s))),g===(g=v(y))&&w?w.p(y,L):(w.d(1),w=g(y),w&&(w.c(),w.m(t,o))),y[20]?b?b.p(y,L):(b=Ru(y),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},i:ke,o:ke,d(y){y&&M(t),jt(l,y),f&&f.d(),w.d(),b&&b.d(),e[45](null)}}}function oC(e,t,r){let i,n,s;Uu(e,yc,V=>r(25,s=V));let{endpoint:o=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:c=""}=t,{cmsendpoint:d=""}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{translationurl:v=""}=t,g=window.navigator.userAgent,w=!1,b=[],_=!0,C="",y=1,L=0,E=2,I,K,q,z="",P=!0,$=!1,re=!1;I=j(new Date).format("YYYY-MM-DD"),K=j(new Date).subtract(3,"months").format("YYYY-MM-DD");let J=K,Z=I,A,Y,U="active",ce=!0,Pe=["active","completed","claimable"],De="";Pc(g)&&(w=!0,E=1);const se=()=>{let V=document.createElement("style");V.innerHTML=h,q.appendChild(V)},_e=()=>{let V=new URL(f),we=document.createElement("style");fetch(V.href).then(Ie=>Ie.text()).then(Ie=>{we.innerHTML=Ie,setTimeout(()=>{q.appendChild(we)},1)})},ue=()=>{fetch(v).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Ie=>{fn(Ie,we[Ie])})}).catch(we=>{console.log(we)})};Object.keys(pn).forEach(V=>{fn(V,pn[V])}),ju(()=>(window.addEventListener("message",de,!1),()=>{A.removeEventListener("change",Vr),Y.removeEventListener("change",Fi),window.removeEventListener("message",de)}));const de=V=>{switch(V.data.type){case"PaginationChange":r(12,y=V.data.page),Se(y);break;case"OnBonusClaimed":R(V.data.bonusCode);break;case"OnBonusForfeit":r(23,De=V.data.bonus.id),r(20,re=!0)}},N=()=>Qe(this,null,function*(){Se(1)}),R=(V,we)=>Qe(this,null,function*(){r(22,ce=!1);const Ie=yield D(V);Ie.success?(r(19,$=!1),Se(1)):(r(11,C=Ie.errorMessage),we?r(19,$=!0):window.postMessage({type:"OnBonusClaimError",message:C,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),r(22,ce=!0)}),D=V=>Qe(this,null,function*(){return yield Wr(o+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),F=V=>Qe(this,null,function*(){r(22,ce=!1);const we=yield Ne(V);we.success?Se(1):r(11,C=we.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),r(22,ce=!0),r(20,re=!1)}),Ne=V=>Qe(this,null,function*(){const we=new URL(`${o}/v1/bonus/forfeit`),Ie={bonusID:V,lang:a};return Object.keys(Ie).map(hr=>{we.searchParams.append(hr,Ie[hr])}),yield Wr(we,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Q=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),r(20,re=!1)},Se=V=>Qe(this,null,function*(){y!==V&&r(12,y=V);const we=(V-1)*Number(c);r(10,_=!0),r(9,b=[]);const Ie=yield Le(o,l,we,{lang:a,limit:c});Ie.success?(r(13,L=Ie.total),r(9,b=Ie.items||Ie.bonuses)):r(11,C=Ie.errorMessage),r(10,_=!1)}),Le=(Ht,Uh,$h,...S)=>Qe(this,[Ht,Uh,$h,...S],function*(V,we,Ie,hr={}){const rt=hr,{limit:G,lang:oe}=rt,$e=cs(rt,["limit","lang"]),qe=(()=>{switch(U){case"claimable":return U;default:return"granted"}})(),ze=jr(Kt({pagination:`limit=${G},offset=${Ie}`,language:oe},$e),{sortOrder:"desc"});if(U==="completed"){let ut=new Date(J).toISOString(),Je=new Date(Z+" 23:59:59").toISOString();ze.startTime=ut,ze.endTime=Je,ze.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ze.status="completed,released,forfeited,expired,closed"}U==="active"&&(ze.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ze.status="active");const Rt=new URL(`${V}/v1/bonus/${qe}`);return U!=="claimable"?Rt.searchParams.append("expand","freeSpin"):delete ze.sortOrder,Object.keys(ze).map(ut=>{Rt.searchParams.append(ut,ze[ut])}),yield Wr(Rt,{headers:Kt({},we?{"x-SessionId":we}:{})})}),Zt=(V,we="")=>({part:V,class:[V,we].join(" ")}),Wr=(Ie,...hr)=>Qe(this,[Ie,...hr],function*(V,we={}){let Ht;return Ht=yield fetch(V,we),Ht.ok===!1?{errorMessage:Ht.status}:(Ht=yield Ht.json(),Ht)}),Vr=V=>{J=V.target.value},Fi=V=>{Z=V.target.value},ts=()=>{A.addEventListener("change",Vr,!1),Y.addEventListener("change",Fi,!1)},rs=()=>(r(19,$=!1),!!z),Hi=()=>{r(18,P=!rs())},Ri=V=>{r(21,U=V),Se(1)};function zi(){z=this.value,r(17,z)}const is=()=>{R(z,!0)};function ns(V){At[V?"unshift":"push"](()=>{A=V,r(7,A)})}function ss(V){At[V?"unshift":"push"](()=>{Y=V,r(8,Y)})}const os=()=>Se(1),as=()=>F(De);function ls(V){At[V?"unshift":"push"](()=>{q=V,r(6,q)})}return e.$$set=V=>{"endpoint"in V&&r(33,o=V.endpoint),"lang"in V&&r(0,a=V.lang),"session"in V&&r(34,l=V.session),"currency"in V&&r(35,u=V.currency),"limit"in V&&r(1,c=V.limit),"cmsendpoint"in V&&r(2,d=V.cmsendpoint),"clientstyling"in V&&r(3,h=V.clientstyling),"clientstylingurl"in V&&r(4,f=V.clientstylingurl),"translationurl"in V&&r(5,v=V.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&384&&A&&Y&&ts(),e.$$.dirty[1]&32&&r(24,i=(V,we="")=>Zt(`${V}${w?` ${V}Mobile`:""}`,we)),e.$$.dirty[0]&1&&a&&wc(a),e.$$.dirty[0]&3|e.$$.dirty[1]&12&&r(37,n=o&&l&&a&&c),e.$$.dirty[1]&64&&n&&N(),e.$$.dirty[0]&72&&h&&q&&se(),e.$$.dirty[0]&80&&f&&q&&_e(),e.$$.dirty[0]&32&&v&&ue()},[a,c,d,h,f,v,q,A,Y,b,_,C,y,L,E,I,K,z,P,$,re,U,ce,De,i,s,Pe,R,F,Q,Se,Zt,Hi,o,l,u,w,n,Ri,zi,is,ns,ss,os,as,ls]}class Yh extends Mn{constructor(t){super(),Pn(this,t,oC,sC,ki,{endpoint:33,lang:0,session:34,currency:35,limit:1,cmsendpoint:2,clientstyling:3,clientstylingurl:4,translationurl:5},Xw,[-1,-1,-1])}get endpoint(){return this.$$.ctx[33]}set endpoint(t){this.$$set({endpoint:t}),xe()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),xe()}get session(){return this.$$.ctx[34]}set session(t){this.$$set({session:t}),xe()}get currency(){return this.$$.ctx[35]}set currency(t){this.$$set({currency:t}),xe()}get limit(){return this.$$.ctx[1]}set limit(t){this.$$set({limit:t}),xe()}get cmsendpoint(){return this.$$.ctx[2]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),xe()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),xe()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),xe()}get translationurl(){return this.$$.ctx[5]}set translationurl(t){this.$$set({translationurl:t}),xe()}}Dn(Yh,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Yh;
|