@everymatrix/lottery-tipping-entrance 1.86.27 → 1.86.29

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.
Files changed (24) hide show
  1. package/dist/cjs/{draw-selection_18.cjs.entry.js → draw-selection_19.cjs.entry.js} +361 -125
  2. package/dist/cjs/{index-440d090f.js → index-2a5f420f.js} +3 -2
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{lottery-tipping-entrance-59f7f53d.js → lottery-tipping-entrance-8eabb31c.js} +258 -258
  6. package/dist/cjs/lottery-tipping-entrance.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +6 -0
  8. package/dist/collection/components/lottery-tipping-entrance/lottery-tipping-entrance.js +9 -43
  9. package/dist/collection/utils/api.js +1 -1
  10. package/dist/esm/{draw-selection_18.entry.js → draw-selection_19.entry.js} +362 -127
  11. package/dist/esm/{index-a57b04e7.js → index-c22bb7d4.js} +3 -3
  12. package/dist/esm/index.js +2 -2
  13. package/dist/esm/loader.js +3 -3
  14. package/dist/esm/{lottery-tipping-entrance-9e7c2d9a.js → lottery-tipping-entrance-9d9230ea.js} +258 -258
  15. package/dist/esm/lottery-tipping-entrance.js +3 -3
  16. package/dist/lottery-tipping-entrance/draw-selection_19.entry.js +1 -0
  17. package/dist/lottery-tipping-entrance/{index-a57b04e7.js → index-c22bb7d4.js} +2 -2
  18. package/dist/lottery-tipping-entrance/index.esm.js +1 -1
  19. package/dist/lottery-tipping-entrance/{lottery-tipping-entrance-9e7c2d9a.js → lottery-tipping-entrance-9d9230ea.js} +5 -5
  20. package/dist/lottery-tipping-entrance/lottery-tipping-entrance.esm.js +1 -1
  21. package/dist/types/components/lottery-tipping-entrance/lottery-tipping-entrance.d.ts +0 -5
  22. package/dist/types/components.d.ts +0 -10
  23. package/package.json +1 -1
  24. package/dist/lottery-tipping-entrance/draw-selection_18.entry.js +0 -1
@@ -1,2 +1,2 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],v=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(v),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=y(v,!0),S=e=>{const t=new URL(e,f.o);return t.origin!==u.location.origin?t.href:t.pathname},j={},k=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>E,unwrap:()=>L,unwrapErr:()=>R});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var x,P,L=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},U=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,A);const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),W={},A={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(N)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),N=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),U(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},D=e=>n(e).$hostElement$,H=(e,t,n)=>{const l=D(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=e=>"sc-"+e.S,_=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=B(n),s=B(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(I);t=t.replace(J,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},z=/\s/,B=e=>e?e.split(z):[],I="Capture",J=RegExp(I+"$"),K=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||j,s=t.u||j;for(const e of Q(Object.keys(o)))e in s||_(l,e,o[e],void 0,n,t.l);for(const e of Q(Object.keys(s)))_(l,e,o[e],s[e],n,t.l)};function Q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var X=!1,Y=!1,Z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(Y||(Y="svg"===l.m),o=l.v=a.createElementNS(Y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),Y&&"foreignObject"===l.m&&(Y=!1),K(null,l,Y),null!=x&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.h)for(r=0;r<l.h.length;++r)s=Z(e,l,r),s&&o.appendChild(s);"svg"===l.m?Y=!1:"foreignObject"===o.tagName&&(Y=!0)}return o["s-hn"]=P,o},ee=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Z(null,n,o),r&&(l[o].v=r,se(i,r,t)))},te=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;oe(t),e&&e.remove()}}},ne=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),le=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(Y="svg"===r||"foreignObject"!==r&&Y,("slot"!==r||X)&&K(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],v=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--d];else if(ne(h,m,o))le(h,m,o),h=t[++i],m=l[++c];else if(ne(p,v,o))le(p,v,o),p=t[--f],v=l[--d];else if(ne(h,v,o))le(h,v,o),se(e,h.v,p.v.nextSibling),h=t[++i],v=l[--d];else if(ne(p,m,o))le(p,m,o),se(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=Z(t&&t[c],n,u):(le(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Z(t&&t[c],n,c),m=l[++c]),s&&se(h.v.parentNode,s,h.v)}i>f?ee(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&te(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),ee(l,null,t,s,0,s.length-1)):null!==o&&te(o,0,o.length-1),Y&&"svg"===r&&(Y=!1)):e.i!==i&&(l.data=i)},oe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(oe)},se=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),re=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return re(e,e.k),g((()=>ce(e,t)));e.l|=512},ce=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.l|=256,e.O&&(e.O.map((([e,t])=>me(n,e,t))),e.O=void 0),l=me(n,"componentWillLoad")):l=me(n,"componentWillUpdate"),ue(l,(()=>fe(e,n,t)))},ue=(e,t)=>ae(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ae=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=V(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=G.get(e=e.head||e);if(r||G.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);he(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>pe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},he=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||T(null,null),r=(e=>e&&e.m===W)(t)?t:U(null,null,t);if(P=l.tagName,o.L&&(r.u=r.u||{},o.L.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,x=l["s-sc"],X=!!(1&o.l),le(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},pe=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,ve(t),me(n,"componentDidLoad"),e.R(t),l||de()),e.U(t),e.j&&(e.j(),e.j=void 0),512&e.l&&$((()=>ie(e,!1))),e.l&=-517},de=()=>{ve(a.documentElement),$((()=>q(u,"appload",{detail:{namespace:"lottery-tipping-entrance"}})))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ve=e=>e.classList.add("hydrated"),ye=(e,t,l)=>{var o,r;const i=e.prototype;if(t.T||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(o=t.T)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.T[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.W&&128&u){const e=o.W[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ie(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.F)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.W)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.W)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.L)||o.push([e,s])),s}))]))}}return e},we=e=>{me(e,"connectedCallback")},be=e=>{me(e,"disconnectedCallback")},$e=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],T:l[2],N:l[3]};4&c.l&&(S=!0),c.T=l[2],c.N=l[3],c.L=[],c.W=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,A:new Map};l.F=new Promise((e=>l.U=e)),l.D=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ge(this,e,c.N)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)ge(e,t,l.N),(null==t?void 0:t.t)?we(t.t):(null==t?void 0:t.D)&&t.D.then((()=>we(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){re(t,t.k=n);break}}l.T&&Object.entries(l.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.H){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.H;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.q}" was not found`);l.isProxied||(n.W=l.watchers,ye(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),we(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=V(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>ie(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?be(e.t):(null==e?void 0:e.D)&&e.D.then((()=>be(e.t)))}})()))}componentOnReady(){return n(this).D}};c.H=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ye(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.M)?o:O(a);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(de,30)))},ge=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=Se(t,o),i=je(n);f.ael(s,l,r,i),(t.G=t.G||[]).push((()=>f.rel(s,l,r,i)))}))},Se=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},je=e=>({passive:!!(1&e),capture:!!(2&e)}),ke=e=>f.M=e;export{D as a,$e as b,H as c,S as g,U as h,h as p,l as r,ke as s}
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],v=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(v),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=y(v,!0),S=e=>{const t=new URL(e,f.o);return t.origin!==a.location.origin?t.href:t.pathname},j={},k=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>E,unwrap:()=>L,unwrapErr:()=>R});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var x,P,L=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},U=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,A);const a=T(e,null);return a.u=t,i.length>0&&(a.h=i),a.p=o,a},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),W={},A={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),U(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=e=>n(e).$hostElement$,D=(e,t,n)=>{const l=N(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=e=>"sc-"+e.S,_=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=B(n),s=B(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(I);t=t.replace(J,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},z=/\s/,B=e=>e?e.split(z):[],I="Capture",J=RegExp(I+"$"),K=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||j,s=t.u||j;for(const e of Q(Object.keys(o)))e in s||_(l,e,o[e],void 0,n,t.l);for(const e of Q(Object.keys(s)))_(l,e,o[e],s[e],n,t.l)};function Q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var X=!1,Y=!1,Z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=u.createTextNode(l.i);else{if(Y||(Y="svg"===l.m),o=l.v=u.createElementNS(Y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),Y&&"foreignObject"===l.m&&(Y=!1),K(null,l,Y),null!=x&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.h)for(r=0;r<l.h.length;++r)s=Z(e,l,r),s&&o.appendChild(s);"svg"===l.m?Y=!1:"foreignObject"===o.tagName&&(Y=!0)}return o["s-hn"]=P,o},ee=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Z(null,n,o),r&&(l[o].v=r,se(i,r,t)))},te=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;oe(t),e&&e.remove()}}},ne=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),le=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(Y="svg"===r||"foreignObject"!==r&&Y,("slot"!==r||X)&&K(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],v=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--d];else if(ne(h,m,o))le(h,m,o),h=t[++i],m=l[++c];else if(ne(p,v,o))le(p,v,o),p=t[--f],v=l[--d];else if(ne(h,v,o))le(h,v,o),se(e,h.v,p.v.nextSibling),h=t[++i],v=l[--d];else if(ne(p,m,o))le(p,m,o),se(e,p.v,h.v),p=t[--f],m=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){a=u;break}a>=0?(r=t[a],r.m!==m.m?s=Z(t&&t[c],n,a):(le(r,m,o),t[a]=void 0,s=r.v),m=l[++c]):(s=Z(t&&t[c],n,c),m=l[++c]),s&&se(h.v.parentNode,s,h.v)}i>f?ee(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&te(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),ee(l,null,t,s,0,s.length-1)):null!==o&&te(o,0,o.length-1),Y&&"svg"===r&&(Y=!1)):e.i!==i&&(l.data=i)},oe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(oe)},se=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),re=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return re(e,e.k),g((()=>ce(e,t)));e.l|=512},ce=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.l|=256,e.O&&(e.O.map((([e,t])=>me(n,e,t))),e.O=void 0),l=me(n,"componentWillLoad")):l=me(n,"componentWillUpdate"),ae(l,(()=>fe(e,n,t)))},ae=(e,t)=>ue(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ue=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=V(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=G.get(e=e.head||e);if(r||G.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:O(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);he(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>pe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},he=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||T(null,null),r=(e=>e&&e.m===W)(t)?t:U(null,null,t);if(P=l.tagName,o.L&&(r.u=r.u||{},o.L.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,x=l["s-sc"],X=!!(1&o.l),le(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},pe=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,ve(t),me(n,"componentDidLoad"),e.R(t),l||de()),e.U(t),e.j&&(e.j(),e.j=void 0),512&e.l&&$((()=>ie(e,!1))),e.l&=-517},de=()=>{ve(u.documentElement),$((()=>q(a,"appload",{detail:{namespace:"lottery-tipping-entrance"}})))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ve=e=>e.classList.add("hydrated"),ye=(e,t,l)=>{var o,r;const i=e.prototype;if(t.T||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(o=t.T)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.T[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),u)){if(o.W&&128&a){const e=o.W[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&ie(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.F)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.W)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.W)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.L)||o.push([e,s])),s}))]))}}return e},we=e=>{me(e,"connectedCallback")},be=e=>{me(e,"disconnectedCallback")},$e=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=a.customElements,v=u.head,y=v.querySelector("meta[charset]"),w=u.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],T:l[2],H:l[3]};4&c.l&&(S=!0),c.T=l[2],c.H=l[3],c.L=[],c.W=null!=(o=l[4])?o:{};const a=c.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,A:new Map};l.F=new Promise((e=>l.U=e)),l.N=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ge(this,e,c.H)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)ge(e,t,l.H),(null==t?void 0:t.t)?we(t.t):(null==t?void 0:t.N)&&t.N.then((()=>we(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){re(t,t.k=n);break}}l.T&&Object.entries(l.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.D){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.D;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.q}" was not found`);l.isProxied||(n.W=l.watchers,ye(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),we(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=V(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>ie(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?be(e.t):(null==e?void 0:e.N)&&e.N.then((()=>be(e.t)))}})()))}componentOnReady(){return n(this).N}};c.D=e[0],d.includes(a)||m.get(a)||(h.push(a),m.define(a,ye(u,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.M)?o:O(u);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(de,30)))},ge=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=Se(t,o),i=je(n);f.ael(s,l,r,i),(t.G=t.G||[]).push((()=>f.rel(s,l,r,i)))}))},Se=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},je=e=>({passive:!!(1&e),capture:!!(2&e)}),ke=e=>f.M=e;export{W as H,N as a,$e as b,D as c,S as g,U as h,h as p,l as r,ke as s}
@@ -1 +1 @@
1
- export{L as LotteryTippingEntrance}from"./lottery-tipping-entrance-9e7c2d9a.js";import"./index-a57b04e7.js";
1
+ export{L as LotteryTippingEntrance}from"./lottery-tipping-entrance-9d9230ea.js";import"./index-c22bb7d4.js";
@@ -1,4 +1,4 @@
1
- import{r as t,h as e}from"./index-a57b04e7.js";var i=Object.defineProperty,s=Object.defineProperties,o=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(t,e,s)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,h=(t,e)=>{for(var i in e||(e={}))n.call(e,i)&&l(t,i,e[i]);if(r)for(var i of r(e))a.call(e,i)&&l(t,i,e[i]);return t},c=(t,e)=>s(t,o(e)),d=(t,e,i)=>(l(t,"symbol"!=typeof e?e+"":e,i),i),u=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
1
+ import{r as t,h as e}from"./index-c22bb7d4.js";var i=Object.defineProperty,s=Object.defineProperties,o=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(t,e,s)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,h=(t,e)=>{for(var i in e||(e={}))n.call(e,i)&&l(t,i,e[i]);if(r)for(var i of r(e))a.call(e,i)&&l(t,i,e[i]);return t},c=(t,e)=>s(t,o(e)),d=(t,e,i)=>(l(t,"symbol"!=typeof e?e+"":e,i),i),u=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -19,18 +19,18 @@ const v=globalThis,f=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */,{is:k,defineProperty:C,getOwnPropertyDescriptor:A,getOwnPropertyNames:S,getOwnPropertySymbols:z,getPrototypeOf:I}=Object,T=globalThis,D=T.trustedTypes,E=D?D.emptyScript:"",M=T.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},P=(t,e)=>!k(t,e),N={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:P};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=T.litPropertyMetadata||(T.litPropertyMetadata=new WeakMap);class B extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&C(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:o,set:r}=null!=(s=A(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=null==o?void 0:o.call(this);null==r||r.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:N}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=I(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...S(t),...z(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return _(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:O).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i,s,o;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:O;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i){var s,o;if(void 0!==t){const r=this.constructor,n=this[t];if(null!=i||(i=r.getPropertyOptions(t)),!((null!=(s=i.hasChanged)?s:P)(n,e)||i.useDefault&&i.reflect&&n===(null==(o=this._$Ej)?void 0:o.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return u(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}}var j;B.elementStyles=[],B.shadowRootOptions={mode:"open"},B.elementProperties=new Map,B.finalized=new Map,null==M||M({ReactiveElement:B}),(null!=(j=T.reactiveElementVersions)?j:T.reactiveElementVersions=[]).push("2.1.1");
22
+ */,{is:k,defineProperty:C,getOwnPropertyDescriptor:A,getOwnPropertyNames:S,getOwnPropertySymbols:z,getPrototypeOf:I}=Object,T=globalThis,D=T.trustedTypes,E=D?D.emptyScript:"",M=T.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},P=(t,e)=>!k(t,e),N={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:P};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=T.litPropertyMetadata||(T.litPropertyMetadata=new WeakMap);let B=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&C(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:o,set:r}=null!=(s=A(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=null==o?void 0:o.call(this);null==r||r.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:N}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=I(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...S(t),...z(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return _(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:O).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i,s,o;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:O;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,s=!1,o){var r,n;if(void 0!==t){const a=this.constructor;if(!1===s&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(r=i.hasChanged)?r:P)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return u(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var j;B.elementStyles=[],B.shadowRootOptions={mode:"open"},B.elementProperties=new Map,B.finalized=new Map,null==M||M({ReactiveElement:B}),(null!=(j=T.reactiveElementVersions)?j:T.reactiveElementVersions=[]).push("2.1.2");
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
27
  */
28
- const F=globalThis,R=F.trustedTypes,L=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+W,q=`<${V}>`,U=document,H=()=>U.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,J="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,X=/>/g,Q=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,st=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),rt=new WeakMap,nt=U.createTreeWalker(U,129);function at(t,e){if(!Y(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}class lt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=K;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===K?"!--"===l[1]?n=Z:void 0!==l[1]?n=X:void 0!==l[2]?(it.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=Q):void 0!==l[3]&&(n=Q):n===Q?">"===l[0]?(n=null!=o?o:K,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Q:'"'===l[3]?et:tt):n===et||n===tt?n=Q:n===Z||n===X?n=K:(n=Q,o=void 0);const d=n===Q&&t[e+1].startsWith("/>")?" ":"";r+=n===K?i+q:h>=0?(s.push(a),i.slice(0,h)+$+i.slice(h)+W+d):i+W+(-2===h?e:d)}return[at(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=lt.createElement(l,i),nt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=nt.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith($)){const e=h[r++],i=s.getAttribute(t).split(W),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?pt:"?"===n[1]?mt:"@"===n[1]?vt:ut}),s.removeAttribute(t)}else t.startsWith(W)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(it.test(s.tagName)){const t=s.textContent.split(W),e=t.length-1;if(e>0){s.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],H()),nt.nextNode(),a.push({type:2,index:++o});s.append(t[e],H())}}}else if(8===s.nodeType)if(s.data===V)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(W,t+1));)a.push({type:7,index:o}),t+=W.length-1}o++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function ht(t,e,i=t,s){var o,r,n;if(e===st)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=G(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=ht(t,a._$AS(t,e.values),a,s)),e}class ct{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:U).importNode(i,!0);nt.currentNode=o;let r=nt.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ft(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=nt.nextNode(),n++)}return nt.currentNode=U,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class dt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=ht(this,t,e),G(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):Y(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ot&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=lt.createElement(at(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new ct(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}k(t){Y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new dt(this.O(H()),this.O(H()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ut{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ot}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ht(this,t,e,0),r=!G(t)||t!==this._$AH&&t!==st,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ht(this,s[i+n],e,n),a===st&&(a=this._$AH[n]),r||(r=!G(a)||a!==this._$AH[n]),a===ot?t=ot:t!==ot&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}}class mt extends ut{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ot)}}class vt extends ut{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=ht(this,t,e,0))?i:ot)===st)return;const s=this._$AH,o=t===ot&&s!==ot||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==ot&&(s===ot||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}}const bt=F.litHtmlPolyfillSupport;var gt;null==bt||bt(lt,dt),(null!=(gt=F.litHtmlVersions)?gt:F.litHtmlVersions=[]).push("3.3.1");const yt=(t,e,i)=>{var s,o;const r=null!=(s=null==i?void 0:i.renderBefore)?s:e;let n=r._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=n=new dt(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
28
+ const F=globalThis,R=F.trustedTypes,L=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+W,q=`<${V}>`,U=document,H=()=>U.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,J="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,X=/>/g,Q=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,st=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),rt=new WeakMap,nt=U.createTreeWalker(U,129);function at(t,e){if(!Y(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}class lt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=K;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===K?"!--"===l[1]?n=Z:void 0!==l[1]?n=X:void 0!==l[2]?(it.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=Q):void 0!==l[3]&&(n=Q):n===Q?">"===l[0]?(n=null!=o?o:K,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Q:'"'===l[3]?et:tt):n===et||n===tt?n=Q:n===Z||n===X?n=K:(n=Q,o=void 0);const d=n===Q&&t[e+1].startsWith("/>")?" ":"";r+=n===K?i+q:h>=0?(s.push(a),i.slice(0,h)+$+i.slice(h)+W+d):i+W+(-2===h?e:d)}return[at(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=lt.createElement(l,i),nt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=nt.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith($)){const e=h[r++],i=s.getAttribute(t).split(W),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?pt:"?"===n[1]?mt:"@"===n[1]?vt:ut}),s.removeAttribute(t)}else t.startsWith(W)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(it.test(s.tagName)){const t=s.textContent.split(W),e=t.length-1;if(e>0){s.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],H()),nt.nextNode(),a.push({type:2,index:++o});s.append(t[e],H())}}}else if(8===s.nodeType)if(s.data===V)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(W,t+1));)a.push({type:7,index:o}),t+=W.length-1}o++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function ht(t,e,i=t,s){var o,r,n;if(e===st)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=G(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=ht(t,a._$AS(t,e.values),a,s)),e}class ct{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:U).importNode(i,!0);nt.currentNode=o;let r=nt.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ft(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=nt.nextNode(),n++)}return nt.currentNode=U,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class dt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=ht(this,t,e),G(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):Y(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ot&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=lt.createElement(at(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new ct(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}k(t){Y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new dt(this.O(H()),this.O(H()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ut{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ot}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ht(this,t,e,0),r=!G(t)||t!==this._$AH&&t!==st,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ht(this,s[i+n],e,n),a===st&&(a=this._$AH[n]),r||(r=!G(a)||a!==this._$AH[n]),a===ot?t=ot:t!==ot&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}}class mt extends ut{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ot)}}class vt extends ut{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=ht(this,t,e,0))?i:ot)===st)return;const s=this._$AH,o=t===ot&&s!==ot||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==ot&&(s===ot||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}}const bt=F.litHtmlPolyfillSupport;var gt;null==bt||bt(lt,dt),(null!=(gt=F.litHtmlVersions)?gt:F.litHtmlVersions=[]).push("3.3.2");const yt=(t,e,i)=>{var s,o;const r=null!=(s=null==i?void 0:i.renderBefore)?s:e;let n=r._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=n=new dt(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */},wt=globalThis;class _t extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=yt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return st}}var xt;_t._$litElement$=!0,_t.finalized=!0,null==(xt=wt.litElementHydrateSupport)||xt.call(wt,{LitElement:_t});const kt=wt.litElementPolyfillSupport;var Ct;null==kt||kt({LitElement:_t}),(null!=(Ct=wt.litElementVersions)?Ct:wt.litElementVersions=[]).push("4.2.1");
33
+ */},wt=globalThis;class _t extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=yt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return st}}var xt;_t._$litElement$=!0,_t.finalized=!0,null==(xt=wt.litElementHydrateSupport)||xt.call(wt,{LitElement:_t});const kt=wt.litElementPolyfillSupport;var Ct;null==kt||kt({LitElement:_t}),(null!=(Ct=wt.litElementVersions)?Ct:wt.litElementVersions=[]).push("4.2.2");
34
34
  /**
35
35
  * @license
36
36
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -6654,4 +6654,4 @@ Pt("vaadin-tabs",w`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}function pl(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function ml(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function vl(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}function fl(t){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(t)}function bl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function gl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function yl(t){gl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===fl(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}p(ul);var wl={};function _l(){return wl}var xl=6e4,kl=36e5;function Cl(t){gl(1,arguments);var e=yl(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function Al(t){gl(1,arguments);var e=yl(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=Cl(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=Cl(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function Sl(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=_l(),d=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=yl(t),p=u.getUTCDay(),m=(p<d?7:0)+p-d;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function zl(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=yl(t),d=c.getUTCFullYear(),u=_l(),p=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=Sl(m,e),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var b=Sl(f,e);return c.getTime()>=v.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function Il(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const Tl=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return Il("yy"===e?s%100:s,e.length)},Dl=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Il(i+1,2)},El=function(t,e){return Il(t.getUTCDate(),e.length)},Ml=function(t,e){return Il(t.getUTCHours()%12||12,e.length)},Ol=function(t,e){return Il(t.getUTCHours(),e.length)},Pl=function(t,e){return Il(t.getUTCMinutes(),e.length)},Nl=function(t,e){return Il(t.getUTCSeconds(),e.length)},Bl=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return Il(Math.floor(s*Math.pow(10,i-3)),e.length)};var jl={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return Tl(t,e)},Y:function(t,e,i,s){var o=zl(t,s),r=o>0?o:1-o;return"YY"===e?Il(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):Il(r,e.length)},R:function(t,e){return Il(Al(t),e.length)},u:function(t,e){return Il(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return Il(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return Il(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return Dl(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return Il(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){gl(1,arguments);var i=yl(t),s=Sl(i,e).getTime()-function(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=_l(),d=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=zl(t,e),p=new Date(0);return p.setUTCFullYear(u,0,d),p.setUTCHours(0,0,0,0),Sl(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Il(o,e.length)},I:function(t,e,i){var s=function(t){gl(1,arguments);var e=yl(t),i=Cl(e).getTime()-function(t){gl(1,arguments);var e=Al(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Cl(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):Il(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):El(t,e)},D:function(t,e,i){var s=function(t){gl(1,arguments);var e=yl(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):Il(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Il(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Il(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return Il(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Ml(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ol(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pl(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Nl(t,e)},S:function(t,e){return Bl(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Rl(o);case"XXXX":case"XX":return Ll(o);default:return Ll(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return Rl(o);case"xxxx":case"xx":return Ll(o);default:return Ll(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Fl(o,":");default:return"GMT"+Ll(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Fl(o,":");default:return"GMT"+Ll(o,":")}},t:function(t,e,i,s){return Il(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return Il((s._originalDate||t).getTime(),e.length)}};function Fl(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+Il(r,2)}function Rl(t,e){return t%60==0?(t>0?"-":"+")+Il(Math.abs(t)/60,2):Ll(t,e)}function Ll(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+Il(Math.floor(o/60),2)+i+Il(o%60,2)}const $l=jl;var Wl=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Vl=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ql={p:Vl,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return Wl(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",Wl(o,e)).replace("{{time}}",Vl(r,e))}};const Ul=ql;var Hl=["D","DD"],Gl=["YY","YYYY"];function Yl(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Kl(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Zl,Xl={date:Kl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Kl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Kl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ql={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function th(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function eh(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const ih={code:"en-US",formatDistance:function(t,e,i){var s,o=Jl[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Xl,formatRelative:function(t){return Ql[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:th({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:th({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:th({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:th({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:th({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Zl={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Zl.matchPattern);if(!i)return null;var s=i[0],o=t.match(Zl.parsePattern);if(!o)return null;var r=Zl.valueCallback?Zl.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:eh({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:eh({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:eh({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:eh({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:eh({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var sh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rh=/^'([^]*?)'?$/,nh=/''/g,ah=/[a-zA-Z]/;function lh(t,e,i){var s,o,r,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w;gl(2,arguments);var _=String(e),x=_l(),k=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:x.locale)&&void 0!==s?s:ih,C=bl(null!==(r=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(d=x.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=bl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=yl(t);if(!function(t){if(gl(1,arguments),!function(t){return gl(1,arguments),t instanceof Date||"object"===fl(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=yl(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var z=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(S),I=function(t,e){return gl(2,arguments),function(t,e){gl(2,arguments);var i=yl(t).getTime(),s=bl(e);return new Date(i+s)}(t,-bl(e))}(S,z),T={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return _.match(oh).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Ul[e])(t,k.formatLong):t})).join("").match(sh).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(rh))?r[1].replace(nh,"'"):o;var a=$l[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===Gl.indexOf(s)||Yl(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==Hl.indexOf(s))||Yl(s,e,String(t)),a(I,s,k.localize,T);if(n.match(ah))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function hh(t,e){var i;gl(1,arguments);var s=bl(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(ch.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],ch.timeZoneDelimiter.test(i.date)&&(i.date=t.split(ch.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=ch.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var n=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(dh);if(!i)return new Date(NaN);var s=!!i[4],o=mh(i[1]),r=mh(i[2])-1,n=mh(i[3]),a=mh(i[4]),l=mh(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(fh[e]||(bh(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(bh(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(n.restDateString,n.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a,l=o.getTime(),h=0;if(r.time&&(h=function(t){var e=t.match(uh);if(!e)return NaN;var i=vh(e[1]),s=vh(e[2]),o=vh(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*kl+s*xl+1e3*o:NaN}(r.time),isNaN(h)))return new Date(NaN);if(!r.timezone){var c=new Date(l+h),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return a=function(t){if("Z"===t)return 0;var e=t.match(ph);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*kl+o*xl):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(l+h+a)}var ch={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ph=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mh(t){return t?parseInt(t):1}function vh(t){return t&&parseFloat(t.replace(",","."))||0}var fh=[31,null,31,30,31,30,31,31,30,31,30,31];function bh(t){return t%400==0||t%4==0&&t%100!=0}const gh=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),yh=({date:t,type:e="date",format:i})=>{try{const s=hh(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return lh(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),lh(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function wh(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}function _h(t){const e=hh(t),i=e.getDate();return`${i}${i%10==1&&11!==i?"st":i%10==2&&12!==i?"nd":i%10==3&&13!==i?"rd":"th"} ${lh(e,"LLLL")}`}const xh=["ro","en","fr","ar","hr"],kh={en:{logout:"Log out",draws:"DRAWS",latestResults:"LATEST RESULTS",instruction:"INSTRUCTION",howToWin:"HOW TO WIN",selectDraws:"Select Draws from the following bars:",turnover:"Turnover: ",gameNotAvailable:"Sorry. The Game is not available now.",instructionContent:"Instruction content goes here."},ro:{logout:"Deconectare",draws:"EXTRAGERI",latestResults:"ULTIMELE REZULTATE",instruction:"INSTRUCȚIUNI",howToWin:"CUM SĂ CÂȘTIGI",selectDraws:"Selectați extrageri din barele următoare:",gameNotAvailable:"Ne pare rău. Jocul nu este disponibil acum.",instructionContent:"Conținutul instrucțiunilor se afișează aici."},fr:{logout:"Se déconnecter",draws:"TIRAGES",latestResults:"DERNIERS RÉSULTATS",instruction:"INSTRUCTION",howToWin:"COMMENT GAGNER",selectDraws:"Sélectionnez les tirages dans les barres suivantes:",gameNotAvailable:"Désolé. Le jeu nest pas disponible pour le moment.",instructionContent:"Le contenu des instructions va ici."},ar:{logout:"تسجيل الخروج",draws:"السحوبات",latestResults:"أحدث النتائج",instruction:"التعليمات",howToWin:"كيفية الفوز",selectDraws:"حدد السحوبات من الأشرطة التالية:",gameNotAvailable:"آسف. اللعبة غير متوفرة الآن.",instructionContent:"محتوى التعليمات يذهب هنا."},hr:{logout:"Odjava",draws:"IZVLAČENJA",latestResults:"NAJNOVIJI REZULTATI",instruction:"UPUTE",howToWin:"KAKO POBIJEDITI",selectDraws:"Odaberite izvlačenja sa sljedećih traka:",gameNotAvailable:"Žao nam je. Igra trenutno nije dostupna.",instructionContent:"Sadržaj uputa ide ovdje."}},Ch=(t,e)=>{const i=e;return kh[void 0!==i&&xh.includes(i)?i:"en"][t]},Ah=class{constructor(e){t(this,e),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.endpointLotteryBe=void 0,this.endpointTicket=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId=void 0,this.logoUrl=void 0,this.date=void 0,this.drawId=void 0,this.playTypes=null,this.bettingTypes=void 0,this.isLoading=!1,this.selectedTabIndex=0,this.showSelectDrawPage=!0,this.gameInfo={},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&pl(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&ml(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&vl(this.stylingContainer,`${this.mbSource}.Style`)}async onPropsChange(){this.getGameById()}componentWillLoad(){var t;this.getGameById(),this.translationUrl&&(t=JSON.parse(this.translationUrl),Object.keys(t).forEach((e=>{for(let i in t[e])kh[e][i]=t[e][i]})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&vl(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&pl(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&ml(this.stylingContainer,this.clientStylingUrl))}async getGameById(){var t,e,i,s,o,r;try{if(!this.endpoint||!this.gameId)return;this.isLoading=!0;const n=await async function(t,e){try{return await wh(`${t}/games/${e}`,"GET",{})}catch(t){throw console.error("Failed to fetch game info:",t),new Error("The game is currently not available. Please try again later.")}}(this.endpoint,this.gameId);this.gameInfo=n||{},this.date=null===(t=null==n?void 0:n.currentDraw)||void 0===t?void 0:t.date,this.drawId=null===(e=null==n?void 0:n.currentDraw)||void 0===e?void 0:e.id,this.playTypes=null===(s=null===(i=null==n?void 0:n.rules)||void 0===i?void 0:i.poolGame)||void 0===s?void 0:s.playTypes,this.bettingTypes=null===(r=null===(o=null==n?void 0:n.rules)||void 0===o?void 0:o.poolGame)||void 0===r?void 0:r.bettingTypes,this.fetchSaleStatisticsHandler()}catch(t){console.log(t)}finally{this.isLoading=!1}}get formattedTurnover(){var t,e;const i=null===(e=null===(t=this.saleStatisticsInfo)||void 0===t?void 0:t.wagerSegment)||void 0===e?void 0:e.totalSalesCrossDraw;return null==i?"":`€${i?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(i):0}`}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleSelectDraw(){this.showSelectDrawPage=!1}async fetchSaleStatisticsHandler(){var t;this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await wh(`${t}/api/v1/lottery/core/widget/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpointLotteryBe,gameId:null===(t=this.gameInfo)||void 0===t?void 0:t.type,drawId:this.drawId})}async handleClosePoolGamePage(){this.showSelectDrawPage=!0,this.fetchSaleStatisticsHandler()}render(){return e("div",{key:"1e7f56ec3ac87c977967336379c32ebb5924d2b5",class:"lottery-tipping-entrance",ref:t=>this.stylingContainer=t},this.showSelectDrawPage&&e("div",{key:"8434458fc307e34b2e153ce2a812b1b551011a7c",class:"select-draw-page"},e("div",{key:"7ecebea05d9f60c54ca25222834f634b795993c6",class:"lottery-tipping-entrance__header"},e("div",{key:"c9323636edee6538a2963c46a91419dad5215121",class:"header"},e("div",{key:"d3093cb65c291f30f1da29df53cfea9577099d8e",class:"header-logo"},this.logoUrl&&e("img",{key:"21ade9ed843e8368c603db5a69744d561fd632fd",class:"logo",src:this.logoUrl})),e("div",{key:"0019ff7a1e93d8ee59849e0568bd114bbb3ff6ee",class:"header-btns"},e("div",{key:"8c81411cdec022e6e50ada845773facf820608de",class:"header-btns--left"},e("slot",{key:"72ea0d0849652d8ff14f2215b78785a983752044",name:"backGameSelectionBtn"})),e("div",{key:"524477221d37fb83e423fa63fb22466c5687b5ee",class:"header-btns--right"},e("slot",{key:"6fa12400b787246843fbf32d1bee85eef856e397",name:"themeBtn"}),e("slot",{key:"02e019644a014fcbda7c132047391566a6b5c338",name:"logoutBtn"})))),e("div",{key:"4c84195953e3c52d3a27d9b4ef09b02b734a2a59",class:"tabs-wrap"},e("vaadin-tabs",{key:"5651126d167a51de1c10abf0ad24d2a942713948",theme:"equal-width-tabs",selected:this.selectedTabIndex,"on-selected-changed":t=>{this.selectedTabIndex=t.detail.value}},e("vaadin-tab",{key:"4b55f75ea95afefa41f9dbb8c427759bad0fc6e4",value:"0"},Ch("draws",this.language)),e("vaadin-tab",{key:"9da0765e66af92e8b805952ead084cbabda309e6",value:"1"},Ch("latestResults",this.language)),e("vaadin-tab",{key:"ee9d410e283f5c38644493a6ad5e471d4ce30c36",value:"2"},Ch("instruction",this.language))))),e("div",{key:"ac7c848f56cf04a7864a0dcc4ac964ae62e249e2",class:"tabs-content"},0===this.selectedTabIndex&&e("draw-selection",{key:"7175c2b8a31ae442f2751c3510a4239ac7f7ac74",date:this.date,turnover:this.formattedTurnover,"is-loading":this.isLoading,language:this.language,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource,"translation-url":this.translationUrl}),1===this.selectedTabIndex&&e("lottery-tipping-latest-result",{key:"64591b31563dee4eee5c93595e8e7a440cbc12b7",endpoint:this.endpoint,"endpoint-ticket":this.endpointTicket,"game-id":this.gameId,"player-id":this.playerId,"session-id":this.sessionId,language:this.language,"translation-url":this.translationUrl}),2===this.selectedTabIndex&&e("div",{key:"824cf05dc9bc88920ef9a7f537228e96580c8644",class:"instruction-content-wrapper"},Ch("instructionContent",this.language)))),!this.showSelectDrawPage&&e("lottery-tipping-page",{key:"4225d04badd4e2a4121352f0f65437f8a29bde75",endpoint:this.endpoint,"endpoint-ticket":this.endpointTicket,"endpoint-lottery-be":this.endpointLotteryBe,"game-id":this.gameId,"player-id":this.playerId,"session-id":this.sessionId,"draw-id":this.drawId,playTypes:this.playTypes,bettingTypes:this.bettingTypes,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource,"translation-url":this.translationUrl,language:this.language,"logo-url":this.logoUrl},e("slot",{key:"45108757d6855dc3e62b1e437c012570a179ca61",name:"backBtn",slot:"backBtn"}),e("slot",{key:"a11825879c69265fa35e593c8faf3eab81c0ccbc",name:"themeBtn",slot:"themeBtn"}),e("slot",{key:"907e6b5bac44f30ff57f9b27b641d44ac0a4701e",name:"logoutBtn",slot:"logoutBtn"})))}static get assetsDirs(){return["static"]}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],endpoint:["onPropsChange"],gameId:["onPropsChange"]}}};Ah.style=".lottery-tipping-entrance {\n background: var(--emw--color-background, #fff);\n height: 100%;\n overflow: auto;\n}\n.lottery-tipping-entrance .select-draw-page {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.lottery-tipping-entrance .select-draw-page .tabs-content {\n flex: 1;\n}\n\n.lottery-tipping-entrance__header {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: linear-gradient(to right, var(--emw--color-primary, #fed275), var(--emw--color-primary-variant, #ffe66f));\n}\n.lottery-tipping-entrance__header .header {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 50px;\n container-type: inline-size;\n}\n.lottery-tipping-entrance__header .header-logo {\n text-align: center;\n}\n.lottery-tipping-entrance__header .header-logo .logo {\n height: 60px;\n}\n@container (max-width: 390px) {\n .lottery-tipping-entrance__header .header-logo .logo {\n width: 200px;\n }\n}\n.lottery-tipping-entrance__header .header-btns--left {\n left: 10px;\n top: calc(50% - 10px);\n position: absolute;\n}\n.lottery-tipping-entrance__header .header-btns--right {\n right: 10px;\n top: calc(50% - 17px);\n position: absolute;\n display: flex;\n align-items: center;\n gap: 14px;\n}\n.lottery-tipping-entrance__header .tabs-wrap {\n width: 100%;\n}\n\n.draw-info-footer {\n position: relative;\n margin-top: 160px;\n}\n\nvaadin-tab[selected] {\n color: var(--emw--color-typography, #000);\n font-weight: bold;\n}\n\nvaadin-tab::after[selected] {\n background-color: var(--emw--color-typography, #000);\n}\n\n@media screen and (max-width: 480px) {\n .draw-info-item-list {\n gap: 84px;\n }\n}\n@media screen and (min-width: 1400px) {\n .draw-info-footer {\n margin-top: 160px;\n }\n}\n.instruction-content-wrapper {\n color: var(--emw--color-typography, #000);\n height: 100%;\n padding: 24px;\n text-align: center;\n}";export{Ah as L,bl as a,ml as b,vl as c,Ch as d,lh as e,yh as f,_h as g,gh as i,hh as p,gl as r,pl as s,yl as t}
6657
+ `}static get is(){return"vaadin-tabs"}}function pl(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function ml(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function vl(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}function fl(t){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(t)}function bl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function gl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function yl(t){gl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===fl(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}p(ul);var wl={};function _l(){return wl}var xl=6e4,kl=36e5;function Cl(t){gl(1,arguments);var e=yl(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function Al(t){gl(1,arguments);var e=yl(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=Cl(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=Cl(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function Sl(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=_l(),d=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=yl(t),p=u.getUTCDay(),m=(p<d?7:0)+p-d;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function zl(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=yl(t),d=c.getUTCFullYear(),u=_l(),p=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=Sl(m,e),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var b=Sl(f,e);return c.getTime()>=v.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function Il(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const Tl=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return Il("yy"===e?s%100:s,e.length)},Dl=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Il(i+1,2)},El=function(t,e){return Il(t.getUTCDate(),e.length)},Ml=function(t,e){return Il(t.getUTCHours()%12||12,e.length)},Ol=function(t,e){return Il(t.getUTCHours(),e.length)},Pl=function(t,e){return Il(t.getUTCMinutes(),e.length)},Nl=function(t,e){return Il(t.getUTCSeconds(),e.length)},Bl=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return Il(Math.floor(s*Math.pow(10,i-3)),e.length)};var jl={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return Tl(t,e)},Y:function(t,e,i,s){var o=zl(t,s),r=o>0?o:1-o;return"YY"===e?Il(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):Il(r,e.length)},R:function(t,e){return Il(Al(t),e.length)},u:function(t,e){return Il(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return Il(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return Il(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return Dl(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return Il(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){gl(1,arguments);var i=yl(t),s=Sl(i,e).getTime()-function(t,e){var i,s,o,r,n,a,l,h;gl(1,arguments);var c=_l(),d=bl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=zl(t,e),p=new Date(0);return p.setUTCFullYear(u,0,d),p.setUTCHours(0,0,0,0),Sl(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Il(o,e.length)},I:function(t,e,i){var s=function(t){gl(1,arguments);var e=yl(t),i=Cl(e).getTime()-function(t){gl(1,arguments);var e=Al(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Cl(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):Il(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):El(t,e)},D:function(t,e,i){var s=function(t){gl(1,arguments);var e=yl(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):Il(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Il(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Il(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return Il(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Ml(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ol(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pl(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Nl(t,e)},S:function(t,e){return Bl(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Rl(o);case"XXXX":case"XX":return Ll(o);default:return Ll(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return Rl(o);case"xxxx":case"xx":return Ll(o);default:return Ll(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Fl(o,":");default:return"GMT"+Ll(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Fl(o,":");default:return"GMT"+Ll(o,":")}},t:function(t,e,i,s){return Il(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return Il((s._originalDate||t).getTime(),e.length)}};function Fl(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+Il(r,2)}function Rl(t,e){return t%60==0?(t>0?"-":"+")+Il(Math.abs(t)/60,2):Ll(t,e)}function Ll(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+Il(Math.floor(o/60),2)+i+Il(o%60,2)}const $l=jl;var Wl=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Vl=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ql={p:Vl,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return Wl(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",Wl(o,e)).replace("{{time}}",Vl(r,e))}};const Ul=ql;var Hl=["D","DD"],Gl=["YY","YYYY"];function Yl(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Kl(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Zl,Xl={date:Kl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Kl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Kl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ql={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function th(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function eh(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const ih={code:"en-US",formatDistance:function(t,e,i){var s,o=Jl[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Xl,formatRelative:function(t){return Ql[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:th({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:th({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:th({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:th({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:th({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Zl={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Zl.matchPattern);if(!i)return null;var s=i[0],o=t.match(Zl.parsePattern);if(!o)return null;var r=Zl.valueCallback?Zl.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:eh({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:eh({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:eh({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:eh({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:eh({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var sh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rh=/^'([^]*?)'?$/,nh=/''/g,ah=/[a-zA-Z]/;function lh(t,e,i){var s,o,r,n,a,l,h,c,d,u,p,m,v,f,b,g,y,w;gl(2,arguments);var _=String(e),x=_l(),k=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:x.locale)&&void 0!==s?s:ih,C=bl(null!==(r=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(d=x.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=bl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=yl(t);if(!function(t){if(gl(1,arguments),!function(t){return gl(1,arguments),t instanceof Date||"object"===fl(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=yl(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var z=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(S),I=function(t,e){return gl(2,arguments),function(t,e){gl(2,arguments);var i=yl(t).getTime(),s=bl(e);return new Date(i+s)}(t,-bl(e))}(S,z),T={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return _.match(oh).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Ul[e])(t,k.formatLong):t})).join("").match(sh).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(rh))?r[1].replace(nh,"'"):o;var a=$l[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===Gl.indexOf(s)||Yl(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==Hl.indexOf(s))||Yl(s,e,String(t)),a(I,s,k.localize,T);if(n.match(ah))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function hh(t,e){var i;gl(1,arguments);var s=bl(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(ch.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],ch.timeZoneDelimiter.test(i.date)&&(i.date=t.split(ch.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=ch.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var n=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(dh);if(!i)return new Date(NaN);var s=!!i[4],o=mh(i[1]),r=mh(i[2])-1,n=mh(i[3]),a=mh(i[4]),l=mh(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(fh[e]||(bh(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(bh(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(n.restDateString,n.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a,l=o.getTime(),h=0;if(r.time&&(h=function(t){var e=t.match(uh);if(!e)return NaN;var i=vh(e[1]),s=vh(e[2]),o=vh(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*kl+s*xl+1e3*o:NaN}(r.time),isNaN(h)))return new Date(NaN);if(!r.timezone){var c=new Date(l+h),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return a=function(t){if("Z"===t)return 0;var e=t.match(ph);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*kl+o*xl):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(l+h+a)}var ch={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ph=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mh(t){return t?parseInt(t):1}function vh(t){return t&&parseFloat(t.replace(",","."))||0}var fh=[31,null,31,30,31,30,31,31,30,31,30,31];function bh(t){return t%400==0||t%4==0&&t%100!=0}const gh=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),yh=({date:t,type:e="date",format:i})=>{try{const s=hh(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return lh(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),lh(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function wh(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}function _h(t){const e=hh(t),i=e.getDate();return`${i}${i%10==1&&11!==i?"st":i%10==2&&12!==i?"nd":i%10==3&&13!==i?"rd":"th"} ${lh(e,"LLLL")}`}const xh=["ro","en","fr","ar","hr"],kh={en:{logout:"Log out",draws:"DRAWS",latestResults:"LATEST RESULTS",instruction:"INSTRUCTION",howToWin:"HOW TO WIN",selectDraws:"Select Draws from the following bars:",turnover:"Turnover: ",gameNotAvailable:"Sorry. The Game is not available now.",instructionContent:"Instruction content goes here."},ro:{logout:"Deconectare",draws:"EXTRAGERI",latestResults:"ULTIMELE REZULTATE",instruction:"INSTRUCȚIUNI",howToWin:"CUM SĂ CÂȘTIGI",selectDraws:"Selectați extrageri din barele următoare:",gameNotAvailable:"Ne pare rău. Jocul nu este disponibil acum.",instructionContent:"Conținutul instrucțiunilor se afișează aici."},fr:{logout:"Se déconnecter",draws:"TIRAGES",latestResults:"DERNIERS RÉSULTATS",instruction:"INSTRUCTION",howToWin:"COMMENT GAGNER",selectDraws:"Sélectionnez les tirages dans les barres suivantes:",gameNotAvailable:"Désolé. Le jeu nest pas disponible pour le moment.",instructionContent:"Le contenu des instructions va ici."},ar:{logout:"تسجيل الخروج",draws:"السحوبات",latestResults:"أحدث النتائج",instruction:"التعليمات",howToWin:"كيفية الفوز",selectDraws:"حدد السحوبات من الأشرطة التالية:",gameNotAvailable:"آسف. اللعبة غير متوفرة الآن.",instructionContent:"محتوى التعليمات يذهب هنا."},hr:{logout:"Odjava",draws:"IZVLAČENJA",latestResults:"NAJNOVIJI REZULTATI",instruction:"UPUTE",howToWin:"KAKO POBIJEDITI",selectDraws:"Odaberite izvlačenja sa sljedećih traka:",gameNotAvailable:"Žao nam je. Igra trenutno nije dostupna.",instructionContent:"Sadržaj uputa ide ovdje."}},Ch=(t,e)=>{const i=e;return kh[void 0!==i&&xh.includes(i)?i:"en"][t]},Ah=class{constructor(e){t(this,e),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId=void 0,this.logoUrl=void 0,this.date=void 0,this.drawId=void 0,this.playTypes=null,this.bettingTypes=void 0,this.isLoading=!1,this.selectedTabIndex=0,this.showSelectDrawPage=!0,this.gameInfo={},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&pl(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&ml(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&vl(this.stylingContainer,`${this.mbSource}.Style`)}async onPropsChange(){this.getGameById()}componentWillLoad(){var t;this.getGameById(),this.translationUrl&&(t=JSON.parse(this.translationUrl),Object.keys(t).forEach((e=>{for(let i in t[e])kh[e][i]=t[e][i]})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&vl(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&pl(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&ml(this.stylingContainer,this.clientStylingUrl))}async getGameById(){var t,e,i,s,o,r;try{if(!this.endpoint||!this.gameId)return;this.isLoading=!0;const n=await async function(t,e){try{return await wh(`${t}/games/${e}`,"GET",{})}catch(t){throw console.error("Failed to fetch game info:",t),new Error("The game is currently not available. Please try again later.")}}(this.endpoint,this.gameId);this.gameInfo=n||{},this.date=null===(t=null==n?void 0:n.currentDraw)||void 0===t?void 0:t.date,this.drawId=null===(e=null==n?void 0:n.currentDraw)||void 0===e?void 0:e.id,this.playTypes=null===(s=null===(i=null==n?void 0:n.rules)||void 0===i?void 0:i.poolGame)||void 0===s?void 0:s.playTypes,this.bettingTypes=null===(r=null===(o=null==n?void 0:n.rules)||void 0===o?void 0:o.poolGame)||void 0===r?void 0:r.bettingTypes,this.fetchSaleStatisticsHandler()}catch(t){console.log(t)}finally{this.isLoading=!1}}get formattedTurnover(){var t,e,i;const s=null!==(i=null===(e=null===(t=this.saleStatisticsInfo)||void 0===t?void 0:t.wagerSegment)||void 0===e?void 0:e.totalSalesCrossDraw)&&void 0!==i?i:0;return null==s?"":`€${s?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(s):0}`}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleSelectDraw(){this.showSelectDrawPage=!1}async fetchSaleStatisticsHandler(){var t,e;this.endpoint&&(null===(t=this.gameInfo)||void 0===t?void 0:t.type)&&this.drawId&&(this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await wh(`${t}/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpoint,gameId:null===(e=this.gameInfo)||void 0===e?void 0:e.type,drawId:this.drawId}))}async handleClosePoolGamePage(){this.showSelectDrawPage=!0,this.fetchSaleStatisticsHandler()}render(){return e("div",{key:"aa7b1c895497459fb3b114a1041e39bcd0069ea6",class:"lottery-tipping-entrance",ref:t=>this.stylingContainer=t},this.showSelectDrawPage&&e("div",{key:"5b5e0a63fdf411456ae9e9492796232448636991",class:"select-draw-page"},e("div",{key:"da77a15373fde40c4eb89b3309922fdb4a669822",class:"lottery-tipping-entrance__header"},e("div",{key:"905b3206dcc7ca0c27b036f2b3d9ae7a617c7823",class:"header"},e("div",{key:"a5fcae4aae3597705e729df539c0ea484430715a",class:"header-logo"},this.logoUrl&&e("img",{key:"97e24a3a63425c76b74a2c201c0a8987b70ee48d",class:"logo",src:this.logoUrl})),e("div",{key:"ed9df86871e5631c88fab8446f5818273d7fadb8",class:"header-btns"},e("div",{key:"30e0825117e64769df31308ad43a1d9c13dfeec4",class:"header-btns--left"},e("slot",{key:"936d6bf4d0ee7919e0b68cc98a07a33b0c2132df",name:"backGameSelectionBtn"})),e("div",{key:"5557754fc3cb3a3646aea4064f365c6250ced758",class:"header-btns--right"},e("slot",{key:"42f56cbfdfb12008e3ff24322fbf1f3258d787bb",name:"themeBtn"}),e("slot",{key:"7e8c76a67ed05779390e794a35f8b7f27d5fa254",name:"logoutBtn"})))),e("div",{key:"62560e9add64fa9a2ad498515808f0e58c1b5d6e",class:"tabs-wrap"},e("vaadin-tabs",{key:"af2ca73b492e7ab2af0a65b655d38a0e8740ba6d",theme:"equal-width-tabs",selected:this.selectedTabIndex,"on-selected-changed":t=>{this.selectedTabIndex=t.detail.value}},e("vaadin-tab",{key:"be38c70ecbe3cdb5f449205543207f1c2584b65f",value:"0"},Ch("draws",this.language)),e("vaadin-tab",{key:"c107a58001695e75443dca554e0868368f1cea22",value:"1"},Ch("latestResults",this.language)),e("vaadin-tab",{key:"929adba899c4454a363bbaeaf2762ae71fb3a43a",value:"2"},Ch("instruction",this.language))))),e("div",{key:"5c4eefda7efaa07b29eb28275b5c3dc3c33f63ba",class:"tabs-content"},0===this.selectedTabIndex&&e("draw-selection",{key:"1f50932fd1941b3c88c102ef51466647ccd3ea5d",date:this.date,turnover:this.formattedTurnover,"is-loading":this.isLoading,language:this.language,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource,"translation-url":this.translationUrl}),1===this.selectedTabIndex&&e("lottery-tipping-latest-result",{key:"7c7770bb53e49ddd7a13c058de2841afd2a01397",endpoint:this.endpoint,"game-id":this.gameId,"player-id":this.playerId,"session-id":this.sessionId,language:this.language,"translation-url":this.translationUrl}),2===this.selectedTabIndex&&e("div",{key:"4c55e47c560bdd8d0474bded38b9cc48adef7b49",class:"instruction-content-wrapper"},Ch("instructionContent",this.language)))),!this.showSelectDrawPage&&e("lottery-tipping-page",{key:"70c99b5c4a1ef2e22b5c0c5315bc80cef3ad771c",endpoint:this.endpoint,"game-id":this.gameId,"player-id":this.playerId,"session-id":this.sessionId,"draw-id":this.drawId,playTypes:this.playTypes,bettingTypes:this.bettingTypes,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource,"translation-url":this.translationUrl,language:this.language,"logo-url":this.logoUrl},e("slot",{key:"73bf70a41dd234728f23e948cc5d4487949637fc",name:"backBtn",slot:"backBtn"}),e("slot",{key:"9ef236832aedc13e0f1cc9b935d7304e47296394",name:"themeBtn",slot:"themeBtn"}),e("slot",{key:"7fe2b9b1d8b44c601f58619151b6608d4c8f09f2",name:"logoutBtn",slot:"logoutBtn"})))}static get assetsDirs(){return["static"]}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],endpoint:["onPropsChange"],gameId:["onPropsChange"]}}};Ah.style=".lottery-tipping-entrance {\n background: var(--emw--color-background, #fff);\n height: 100%;\n overflow: auto;\n}\n.lottery-tipping-entrance .select-draw-page {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.lottery-tipping-entrance .select-draw-page .tabs-content {\n flex: 1;\n}\n\n.lottery-tipping-entrance__header {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: linear-gradient(to right, var(--emw--color-primary, #fed275), var(--emw--color-primary-variant, #ffe66f));\n}\n.lottery-tipping-entrance__header .header {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 50px;\n container-type: inline-size;\n}\n.lottery-tipping-entrance__header .header-logo {\n text-align: center;\n}\n.lottery-tipping-entrance__header .header-logo .logo {\n height: 60px;\n}\n@container (max-width: 390px) {\n .lottery-tipping-entrance__header .header-logo .logo {\n width: 200px;\n }\n}\n.lottery-tipping-entrance__header .header-btns--left {\n left: 10px;\n top: calc(50% - 10px);\n position: absolute;\n}\n.lottery-tipping-entrance__header .header-btns--right {\n right: 10px;\n top: calc(50% - 17px);\n position: absolute;\n display: flex;\n align-items: center;\n gap: 14px;\n}\n.lottery-tipping-entrance__header .tabs-wrap {\n width: 100%;\n}\n\n.draw-info-footer {\n position: relative;\n margin-top: 160px;\n}\n\nvaadin-tab[selected] {\n color: var(--emw--color-typography, #000);\n font-weight: bold;\n}\n\nvaadin-tab::after[selected] {\n background-color: var(--emw--color-typography, #000);\n}\n\n@media screen and (max-width: 480px) {\n .draw-info-item-list {\n gap: 84px;\n }\n}\n@media screen and (min-width: 1400px) {\n .draw-info-footer {\n margin-top: 160px;\n }\n}\n.instruction-content-wrapper {\n color: var(--emw--color-typography, #000);\n height: 100%;\n padding: 24px;\n text-align: center;\n}";export{Ah as L,bl as a,ml as b,vl as c,Ch as d,lh as e,yh as f,_h as g,gh as i,hh as p,gl as r,pl as s,yl as t}
@@ -1 +1 @@
1
- import{p as e,b as n}from"./index-a57b04e7.js";export{s as setNonce}from"./index-a57b04e7.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,l={};return""!==n&&(l.resourcesUrl=new URL(".",n).href),e(l)})().then((async e=>(await l(),n(JSON.parse('[["draw-selection_18",[[1,"lottery-tipping-entrance",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointLotteryBe":[513,"endpoint-lottery-be"],"endpointTicket":[513,"endpoint-ticket"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"logoUrl":[513,"logo-url"],"date":[32],"drawId":[32],"playTypes":[32],"bettingTypes":[32],"isLoading":[32],"selectedTabIndex":[32],"showSelectDrawPage":[32],"gameInfo":[32],"saleStatisticsInfo":[32],"handleClosePoolGamePage":[64]},[[0,"selectDraw","handleSelectDraw"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"endpoint":["onPropsChange"],"gameId":["onPropsChange"]}],[1,"lottery-tipping-page",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointLotteryBe":[513,"endpoint-lottery-be"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"logoUrl":[513,"logo-url"],"activeTab":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"draw-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"infoImageUrl":[513,"info-image-url"],"date":[1],"isLoading":[4,"is-loading"],"turnover":[1]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"drawId":[513,"draw-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"ticketHistory":[32],"activeStatus":[32],"statusOptions":[32],"isLoading":[32],"rawData":[32],"filterData":[32],"paginationInfo":[32],"quickFiltersActive":[32],"showCurrentTicketLine":[32],"curTicketItem":[32],"curSelection":[32],"curSelectionIdx":[32],"showCurrentDrawResult":[32],"curDrawItem":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["handleGameInfoChange"],"endpoint":["handleGameInfoChange"],"endpointTicket":["handleTicketInfoChange"],"playerId":["handleTicketInfoChange"],"sessionId":["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"endpoint":[513],"endpointLotteryBe":[513,"endpoint-lottery-be"],"endpointTicket":[513,"endpoint-ticket"],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-filter",{"quickFiltersActive":[516,"quick-filters-active"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"isOpen":[32],"filterData":[32],"ticketTypeList":[32],"showClearButton":[32]},[[0,"modalCloseEvent","handleModalClose"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{"total":[2],"pageSizeOptions":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"current":[2],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-tipping-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"period":[1],"formattedTurnover":[1,"formatted-turnover"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]]'),e))));
1
+ import{p as e,b as l}from"./index-c22bb7d4.js";export{s as setNonce}from"./index-c22bb7d4.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await n(),l(JSON.parse('[["draw-selection_19",[[1,"lottery-tipping-entrance",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"logoUrl":[513,"logo-url"],"date":[32],"drawId":[32],"playTypes":[32],"bettingTypes":[32],"isLoading":[32],"selectedTabIndex":[32],"showSelectDrawPage":[32],"gameInfo":[32],"saleStatisticsInfo":[32],"handleClosePoolGamePage":[64]},[[0,"selectDraw","handleSelectDraw"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"endpoint":["onPropsChange"],"gameId":["onPropsChange"]}],[1,"lottery-tipping-page",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"logoUrl":[513,"logo-url"],"activeTab":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32],"isLoadingTurnover":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"draw-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"infoImageUrl":[513,"info-image-url"],"date":[1],"isLoading":[4,"is-loading"],"turnover":[1]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{"endpoint":[513],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"drawId":[513,"draw-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"ticketHistory":[32],"activeStatus":[32],"statusOptions":[32],"isLoading":[32],"rawData":[32],"filterData":[32],"paginationInfo":[32],"quickFiltersActive":[32],"showCurrentTicketLine":[32],"curTicketItem":[32],"curSelection":[32],"curSelectionIdx":[32],"showCurrentDrawResult":[32],"curDrawItem":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["handleGameInfoChange"],"endpoint":["handleGameInfoChange"],"playerId":["handleTicketInfoChange"],"sessionId":["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"endpoint":[513],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}],[1,"lottery-tipping-filter",{"quickFiltersActive":[516,"quick-filters-active"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"isOpen":[32],"filterData":[32],"ticketTypeList":[32],"showClearButton":[32]},[[0,"modalCloseEvent","handleModalClose"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{"total":[2],"pageSizeOptions":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"current":[2],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-tipping-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"period":[1],"formattedTurnover":[1,"formatted-turnover"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]]'),e))));
@@ -24,11 +24,6 @@ export declare class LotteryTippingEntrance {
24
24
  */
25
25
  language: string;
26
26
  endpoint: string;
27
- endpointLotteryBe: string;
28
- /**
29
- * EndpointTicket URL for the source of ticket data
30
- */
31
- endpointTicket: string;
32
27
  /**
33
28
  * GameID of the lottery game
34
29
  */
@@ -41,11 +41,6 @@ export namespace Components {
41
41
  */
42
42
  "clientStylingUrl": string;
43
43
  "endpoint": string;
44
- "endpointLotteryBe": string;
45
- /**
46
- * EndpointTicket URL for the source of ticket data
47
- */
48
- "endpointTicket": string;
49
44
  /**
50
45
  * GameID of the lottery game
51
46
  */
@@ -147,11 +142,6 @@ declare namespace LocalJSX {
147
142
  */
148
143
  "clientStylingUrl"?: string;
149
144
  "endpoint"?: string;
150
- "endpointLotteryBe"?: string;
151
- /**
152
- * EndpointTicket URL for the source of ticket data
153
- */
154
- "endpointTicket"?: string;
155
145
  /**
156
146
  * GameID of the lottery game
157
147
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-tipping-entrance",
3
- "version": "1.86.27",
3
+ "version": "1.86.29",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",