@everymatrix/player-account-self-exclusion-nd 1.49.2 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountSelfExclusionNd-Bqes2Zg4.cjs → PlayerAccountSelfExclusionNd-Baach6zm.cjs} +557 -79
- package/components/{PlayerAccountSelfExclusionNd-DzHQ9OT9.js → PlayerAccountSelfExclusionNd-BzcMzl5D.js} +948 -463
- package/es2015/player-account-self-exclusion-nd.cjs +1 -1
- package/es2015/player-account-self-exclusion-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var sl=Object.defineProperty,nl=Object.defineProperties;var al=Object.getOwnPropertyDescriptors;var $i=Object.getOwnPropertySymbols;var ll=Object.prototype.hasOwnProperty,ul=Object.prototype.propertyIsEnumerable;var Gr=(t,r,e)=>r in t?sl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,or=(t,r)=>{for(var e in r||(r={}))ll.call(r,e)&&Gr(t,e,r[e]);if($i)for(var e of $i(r))ul.call(r,e)&&Gr(t,e,r[e]);return t},ir=(t,r)=>nl(t,al(r));var _e=(t,r,e)=>Gr(t,typeof r!="symbol"?r+"":r,e);var St=(t,r,e)=>new Promise((o,i)=>{var s=l=>{try{a(e.next(l))}catch(u){i(u)}},n=l=>{try{a(e.throw(l))}catch(u){i(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function be(){}function Qs(t){return t()}function Hi(){return Object.create(null)}function gt(t){t.forEach(Qs)}function ni(t){return typeof t=="function"}function en(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}function cl(t){return Object.keys(t).length===0}function tn(t,...r){if(t==null){for(const o of r)o(void 0);return be}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function hl(t,r,e){t.$$.on_destroy.push(tn(r,e))}function b(t,r){t.appendChild(r)}function dl(t,r,e){const o=pl(t);if(!o.getElementById(r)){const i=N("style");i.id=r,i.textContent=e,fl(o,i)}}function pl(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function fl(t,r){return b(t.head||t,r),r.sheet}function $e(t,r,e){t.insertBefore(r,e||null)}function De(t){t.parentNode&&t.parentNode.removeChild(t)}function ml(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function N(t){return document.createElement(t)}function Ce(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Z(t){return document.createTextNode(t)}function ee(){return Z(" ")}function yr(t,r,e,o){return t.addEventListener(r,e,o),()=>t.removeEventListener(r,e,o)}function T(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}function Ze(t,r,e){const o=r.toLowerCase();o in t?t[o]=typeof t[o]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:T(t,r,e)}function _l(t){return Array.from(t.childNodes)}function oe(t,r){r=""+r,t.data!==r&&(t.data=r)}function Qe(t,r,e){t.classList.toggle(r,!!e)}function gl(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}let Lt;function It(t){Lt=t}function bl(){if(!Lt)throw new Error("Function called outside component initialization");return Lt}function yl(t){bl().$$.on_mount.push(t)}const ot=[],vr=[];let st=[];const Bi=[],vl=Promise.resolve();let Eo=!1;function xl(){Eo||(Eo=!0,vl.then(we))}function So(t){st.push(t)}const Wr=new Set;let et=0;function we(){if(et!==0)return;const t=Lt;do{try{for(;et<ot.length;){const r=ot[et];et++,It(r),wl(r.$$)}}catch(r){throw ot.length=0,et=0,r}for(It(null),ot.length=0,et=0;vr.length;)vr.pop()();for(let r=0;r<st.length;r+=1){const e=st[r];Wr.has(e)||(Wr.add(e),e())}st.length=0}while(ot.length);for(;Bi.length;)Bi.pop()();Eo=!1,Wr.clear(),It(t)}function wl(t){if(t.fragment!==null){t.update(),gt(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(So)}}function El(t){const r=[],e=[];st.forEach(o=>t.indexOf(o)===-1?r.push(o):e.push(o)),e.forEach(o=>o()),st=r}const Sl=new Set;function Al(t,r){t&&t.i&&(Sl.delete(t),t.i(r))}function zi(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Cl(t,r,e){const{fragment:o,after_update:i}=t.$$;o&&o.m(r,e),So(()=>{const s=t.$$.on_mount.map(Qs).filter(ni);t.$$.on_destroy?t.$$.on_destroy.push(...s):gt(s),t.$$.on_mount=[]}),i.forEach(So)}function Tl(t,r){const e=t.$$;e.fragment!==null&&(El(e.after_update),gt(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function Pl(t,r){t.$$.dirty[0]===-1&&(ot.push(t),xl(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Dl(t,r,e,o,i,s,n=null,a=[-1]){const l=Lt;It(t);const u=t.$$={fragment:null,ctx:[],props:s,update:be,not_equal:i,bound:Hi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Hi(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(h,d,...p)=>{const f=p.length?p[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=f)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](f),c&&Pl(t,h)),d}):[],u.update(),c=!0,gt(u.before_update),u.fragment=o?o(u.ctx):!1,r.target){if(r.hydrate){const h=_l(r.target);u.fragment&&u.fragment.l(h),h.forEach(De)}else u.fragment&&u.fragment.c();r.intro&&Al(t.$$.fragment),Cl(t,r.target,r.anchor),we()}It(l)}let rn;typeof HTMLElement=="function"&&(rn=class extends HTMLElement{constructor(r,e,o){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=e,o&&this.attachShadow({mode:"open"})}addEventListener(r,e,o){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const i=this.$$c.$on(r,e);this.$$l_u.set(e,i)}super.addEventListener(r,e,o)}removeEventListener(r,e,o){if(super.removeEventListener(r,e,o),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let n;return{c:function(){n=N("slot"),s!=="default"&&T(n,"name",s)},m:function(u,c){$e(u,n,c)},d:function(u){u&&De(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},o=gl(this);for(const s of this.$$s)s in o&&(e[s]=[r(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=hr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ir(or({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=hr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(r,e,o){var i;this.$$r||(r=this.$$g_p(r),this.$$d[r]=hr(r,o,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function hr(t,r,e,o){var s;const i=(s=e[t])==null?void 0:s.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!o||!e[t])return r;if(o==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function kl(t,r,e,o,i,s){let n=class extends rn{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=hr(a,l,r),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),o.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=n,n}class Ol{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){Tl(this,1),this.$destroy=be}$on(r,e){if(!ni(e))return be;const o=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return o.push(e),()=>{const i=o.indexOf(e);i!==-1&&o.splice(i,1)}}$set(r){this.$$set&&!cl(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Ml="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ml);var Ao=function(t,r){return Ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},Ao(t,r)};function ke(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ao(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var B=function(){return B=Object.assign||function(r){for(var e,o=1,i=arguments.length;o<i;o++){e=arguments[o];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},B.apply(this,arguments)};function Il(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]]);return e}function Co(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],o=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function To(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var o=e.call(t),i,s=[],n;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s}function nt(t,r,e){if(e||arguments.length===2)for(var o=0,i=r.length,s;o<i;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return t.concat(s||Array.prototype.slice.call(r))}function Te(t){return typeof t=="function"}function on(t){var r=function(o){Error.call(o),o.stack=new Error().stack},e=t(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var qr=on(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
1
|
+
"use strict";var il=Object.defineProperty,sl=Object.defineProperties;var nl=Object.getOwnPropertyDescriptors;var $i=Object.getOwnPropertySymbols;var al=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable;var Gr=(t,r,e)=>r in t?il(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,or=(t,r)=>{for(var e in r||(r={}))al.call(r,e)&&Gr(t,e,r[e]);if($i)for(var e of $i(r))ll.call(r,e)&&Gr(t,e,r[e]);return t},ir=(t,r)=>sl(t,nl(r));var _e=(t,r,e)=>Gr(t,typeof r!="symbol"?r+"":r,e);var St=(t,r,e)=>new Promise((o,i)=>{var s=l=>{try{a(e.next(l))}catch(u){i(u)}},n=l=>{try{a(e.throw(l))}catch(u){i(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function be(){}function Qs(t){return t()}function Hi(){return Object.create(null)}function gt(t){t.forEach(Qs)}function ni(t){return typeof t=="function"}function en(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}function ul(t){return Object.keys(t).length===0}function tn(t,...r){if(t==null){for(const o of r)o(void 0);return be}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function cl(t,r,e){t.$$.on_destroy.push(tn(r,e))}function b(t,r){t.appendChild(r)}function hl(t,r,e){const o=dl(t);if(!o.getElementById(r)){const i=N("style");i.id=r,i.textContent=e,pl(o,i)}}function dl(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function pl(t,r){return b(t.head||t,r),r.sheet}function $e(t,r,e){t.insertBefore(r,e||null)}function De(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function N(t){return document.createElement(t)}function Ce(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Z(t){return document.createTextNode(t)}function ee(){return Z(" ")}function yr(t,r,e,o){return t.addEventListener(r,e,o),()=>t.removeEventListener(r,e,o)}function T(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}function Ze(t,r,e){const o=r.toLowerCase();o in t?t[o]=typeof t[o]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:T(t,r,e)}function ml(t){return Array.from(t.childNodes)}function oe(t,r){r=""+r,t.data!==r&&(t.data=r)}function Qe(t,r,e){t.classList.toggle(r,!!e)}function _l(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}let Lt;function It(t){Lt=t}function gl(){if(!Lt)throw new Error("Function called outside component initialization");return Lt}function bl(t){gl().$$.on_mount.push(t)}const ot=[],vr=[];let st=[];const Bi=[],yl=Promise.resolve();let Eo=!1;function vl(){Eo||(Eo=!0,yl.then(we))}function So(t){st.push(t)}const Wr=new Set;let et=0;function we(){if(et!==0)return;const t=Lt;do{try{for(;et<ot.length;){const r=ot[et];et++,It(r),xl(r.$$)}}catch(r){throw ot.length=0,et=0,r}for(It(null),ot.length=0,et=0;vr.length;)vr.pop()();for(let r=0;r<st.length;r+=1){const e=st[r];Wr.has(e)||(Wr.add(e),e())}st.length=0}while(ot.length);for(;Bi.length;)Bi.pop()();Eo=!1,Wr.clear(),It(t)}function xl(t){if(t.fragment!==null){t.update(),gt(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(So)}}function wl(t){const r=[],e=[];st.forEach(o=>t.indexOf(o)===-1?r.push(o):e.push(o)),e.forEach(o=>o()),st=r}const El=new Set;function Sl(t,r){t&&t.i&&(El.delete(t),t.i(r))}function zi(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Al(t,r,e){const{fragment:o,after_update:i}=t.$$;o&&o.m(r,e),So(()=>{const s=t.$$.on_mount.map(Qs).filter(ni);t.$$.on_destroy?t.$$.on_destroy.push(...s):gt(s),t.$$.on_mount=[]}),i.forEach(So)}function Cl(t,r){const e=t.$$;e.fragment!==null&&(wl(e.after_update),gt(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function Tl(t,r){t.$$.dirty[0]===-1&&(ot.push(t),vl(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Pl(t,r,e,o,i,s,n=null,a=[-1]){const l=Lt;It(t);const u=t.$$={fragment:null,ctx:[],props:s,update:be,not_equal:i,bound:Hi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Hi(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(h,d,...p)=>{const f=p.length?p[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=f)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](f),c&&Tl(t,h)),d}):[],u.update(),c=!0,gt(u.before_update),u.fragment=o?o(u.ctx):!1,r.target){if(r.hydrate){const h=ml(r.target);u.fragment&&u.fragment.l(h),h.forEach(De)}else u.fragment&&u.fragment.c();r.intro&&Sl(t.$$.fragment),Al(t,r.target,r.anchor),we()}It(l)}let rn;typeof HTMLElement=="function"&&(rn=class extends HTMLElement{constructor(r,e,o){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=e,o&&this.attachShadow({mode:"open"})}addEventListener(r,e,o){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const i=this.$$c.$on(r,e);this.$$l_u.set(e,i)}super.addEventListener(r,e,o)}removeEventListener(r,e,o){if(super.removeEventListener(r,e,o),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let n;return{c:function(){n=N("slot"),s!=="default"&&T(n,"name",s)},m:function(u,c){$e(u,n,c)},d:function(u){u&&De(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},o=_l(this);for(const s of this.$$s)s in o&&(e[s]=[r(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=hr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ir(or({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=hr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(r,e,o){var i;this.$$r||(r=this.$$g_p(r),this.$$d[r]=hr(r,o,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function hr(t,r,e,o){var s;const i=(s=e[t])==null?void 0:s.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!o||!e[t])return r;if(o==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function Dl(t,r,e,o,i,s){let n=class extends rn{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=hr(a,l,r),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),o.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=n,n}class kl{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){Cl(this,1),this.$destroy=be}$on(r,e){if(!ni(e))return be;const o=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return o.push(e),()=>{const i=o.indexOf(e);i!==-1&&o.splice(i,1)}}$set(r){this.$$set&&!ul(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Ol="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ol);var Ao=function(t,r){return Ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},Ao(t,r)};function ke(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ao(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var B=function(){return B=Object.assign||function(r){for(var e,o=1,i=arguments.length;o<i;o++){e=arguments[o];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},B.apply(this,arguments)};function Ml(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]]);return e}function Co(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],o=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function To(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var o=e.call(t),i,s=[],n;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s}function nt(t,r,e){if(e||arguments.length===2)for(var o=0,i=r.length,s;o<i;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return t.concat(s||Array.prototype.slice.call(r))}function Te(t){return typeof t=="function"}function on(t){var r=function(o){Error.call(o),o.stack=new Error().stack},e=t(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var qr=on(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(o,i){return i+1+") "+o.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Po(t,r){if(t){var e=t.indexOf(r);0<=e&&t.splice(e,1)}}var Or=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var r,e,o,i,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Co(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}else n.remove(this);var c=this.initialTeardown;if(Te(c))try{c()}catch(v){s=v instanceof qr?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Co(h),p=d.next();!p.done;p=d.next()){var f=p.value;try{Fi(f)}catch(v){s=s!=null?s:[],v instanceof qr?s=nt(nt([],To(s)),To(v.errors)):s.push(v)}}}catch(v){o={error:v}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}if(s)throw new qr(s)}},t.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)Fi(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},t.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},t.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},t.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&Po(e,r)},t.prototype.remove=function(r){var e=this._finalizers;e&&Po(e,r),r instanceof t&&r._removeParent(this)},t.EMPTY=function(){var r=new t;return r.closed=!0,r}(),t}(),sn=Or.EMPTY;function nn(t){return t instanceof Or||t&&"closed"in t&&Te(t.remove)&&Te(t.add)&&Te(t.unsubscribe)}function Fi(t){Te(t)?t():t.unsubscribe()}var an={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ln={setTimeout:function(t,r){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];return setTimeout.apply(void 0,nt([t,r],To(e)))},clearTimeout:function(t){var r=ln.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Nl(t){ln.setTimeout(function(){throw t})}function Ri(){}function dr(t){t()}var un=function(t){ke(r,t);function r(e){var o=t.call(this)||this;return o.isStopped=!1,e?(o.destination=e,nn(e)&&e.add(o)):o.destination=Bl,o}return r.create=function(e,o,i){return new Do(e,o,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Or),Ll=Function.prototype.bind;function Xr(t,r){return Ll.call(t,r)}var $l=function(){function t(r){this.partialObserver=r}return t.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(o){sr(o)}},t.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(o){sr(o)}else sr(r)},t.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){sr(e)}},t}(),Do=function(t){ke(r,t);function r(e,o,i){var s=t.call(this)||this,n;if(Te(e)||!e)n={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0};else{var a;s&&an.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},n={next:e.next&&Xr(e.next,a),error:e.error&&Xr(e.error,a),complete:e.complete&&Xr(e.complete,a)}):n=e}return s.destination=new $l(n),s}return r}(un);function sr(t){Nl(t)}function Hl(t){throw t}var Bl={closed:!0,next:Ri,error:Hl,complete:Ri},zl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fl(t){return t}function Rl(t){return t.length===0?Fl:t.length===1?t[0]:function(e){return t.reduce(function(o,i){return i(o)},e)}}var Ui=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(r,e,o){var i=this,s=jl(r)?r:new Do(r,e,o);return dr(function(){var n=i,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},t.prototype.forEach=function(r,e){var o=this;return e=ji(e),new e(function(i,s){var n=new Do({next:function(a){try{r(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:i});o.subscribe(n)})},t.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},t.prototype[zl]=function(){return this},t.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Rl(r)(this)},t.prototype.toPromise=function(r){var e=this;return r=ji(r),new r(function(o,i){var s;e.subscribe(function(n){return s=n},function(n){return i(n)},function(){return o(s)})})},t.create=function(r){return new t(r)},t}();function ji(t){var r;return(r=t!=null?t:an.Promise)!==null&&r!==void 0?r:Promise}function Ul(t){return t&&Te(t.next)&&Te(t.error)&&Te(t.complete)}function jl(t){return t&&t instanceof un||Ul(t)&&nn(t)}var Vl=on(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cn=function(t){ke(r,t);function r(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var o=new Vi(this,this);return o.operator=e,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new Vl},r.prototype.next=function(e){var o=this;dr(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Co(o.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}}})},r.prototype.error=function(e){var o=this;dr(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var i=o.observers;i.length;)i.shift().error(e)}})},r.prototype.complete=function(){var e=this;dr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var o=this,i=this,s=i.hasError,n=i.isStopped,a=i.observers;return s||n?sn:(this.currentObservers=null,a.push(e),new Or(function(){o.currentObservers=null,Po(a,e)}))},r.prototype._checkFinalizedStatuses=function(e){var o=this,i=o.hasError,s=o.thrownError,n=o.isStopped;i?e.error(s):n&&e.complete()},r.prototype.asObservable=function(){var e=new Ui;return e.source=this,e},r.create=function(e,o){return new Vi(e,o)},r}(Ui),Vi=function(t){ke(r,t);function r(e,o){var i=t.call(this)||this;return i.destination=e,i.source=o,i}return r.prototype.next=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,e)},r.prototype.error=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.call(o,e)},r.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},r.prototype._subscribe=function(e){var o,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&i!==void 0?i:sn},r}(cn),hn={now:function(){return(hn.delegate||Date).now()},delegate:void 0},Yl=function(t){ke(r,t);function r(e,o,i){e===void 0&&(e=1/0),o===void 0&&(o=1/0),i===void 0&&(i=hn);var s=t.call(this)||this;return s._bufferSize=e,s._windowTime=o,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(e){var o=this,i=o.isStopped,s=o._buffer,n=o._infiniteTimeWindow,a=o._timestampProvider,l=o._windowTime;i||(s.push(e),!n&&s.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),i=this,s=i._infiniteTimeWindow,n=i._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=s?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),o},r.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,i=e._timestampProvider,s=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*o;if(o<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=i.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},r}(cn);const Yi=[],Gi={},Gl=(t,r=0)=>{if(Yi.indexOf(t)==-1){const e=new Yl(r);Gi[t]=e,Yi.push(t)}return Gi[t]},tt=[];function Wl(t,r){return{subscribe:Mr(t,r).subscribe}}function Mr(t,r=be){let e;const o=new Set;function i(a){if(en(t,a)&&(t=a,e)){const l=!tt.length;for(const u of o)u[1](),tt.push(u,t);if(l){for(let u=0;u<tt.length;u+=2)tt[u][0](tt[u+1]);tt.length=0}}}function s(a){i(a(t))}function n(a,l=be){const u=[a,l];return o.add(u),o.size===1&&(e=r(i,s)||be),a(t),()=>{o.delete(u),o.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:n}}function bt(t,r,e){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return Wl(e,(n,a)=>{let l=!1;const u=[];let c=0,h=be;const d=()=>{if(c)return;h();const f=r(o?u[0]:u,n,a);s?n(f):h=ni(f)?f:be},p=i.map((f,v)=>tn(f,P=>{u[v]=P,c&=~(1<<v),l&&d()},()=>{c|=1<<v}));return l=!0,d(),function(){gt(p),h(),l=!1}})}var ql=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xl=function(r){return Kl(r)&&!Jl(r)};function Kl(t){return!!t&&typeof t=="object"}function Jl(t){var r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||eu(t)}var Zl=typeof Symbol=="function"&&Symbol.for,Ql=Zl?Symbol.for("react.element"):60103;function eu(t){return t.$$typeof===Ql}function tu(t){return Array.isArray(t)?[]:{}}function $t(t,r){return r.clone!==!1&&r.isMergeableObject(t)?ct(tu(t),t,r):t}function ru(t,r,e){return t.concat(r).map(function(o){return $t(o,e)})}function ou(t,r){if(!r.customMerge)return ct;var e=r.customMerge(t);return typeof e=="function"?e:ct}function iu(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]}function Wi(t){return Object.keys(t).concat(iu(t))}function pn(t,r){try{return r in t}catch(e){return!1}}function su(t,r){return pn(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function nu(t,r,e){var o={};return e.isMergeableObject(t)&&Wi(t).forEach(function(i){o[i]=$t(t[i],e)}),Wi(r).forEach(function(i){su(t,i)||(pn(t,i)&&e.isMergeableObject(r[i])?o[i]=ou(i,e)(t[i],r[i],e):o[i]=$t(r[i],e))}),o}function ct(t,r,e){e=e||{},e.arrayMerge=e.arrayMerge||ru,e.isMergeableObject=e.isMergeableObject||Xl,e.cloneUnlessOtherwiseSpecified=$t;var o=Array.isArray(r),i=Array.isArray(t),s=o===i;return s?o?e.arrayMerge(t,r,e):nu(t,r,e):$t(r,e)}ct.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(o,i){return ct(o,i,e)},{})};var au=ct,lu=au;const uu=dn(lu);var I;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(I||(I={}));var Y;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Y||(Y={}));var ht;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(ht||(ht={}));function qi(t){return t.type===Y.literal}function cu(t){return t.type===Y.argument}function fn(t){return t.type===Y.number}function mn(t){return t.type===Y.date}function _n(t){return t.type===Y.time}function gn(t){return t.type===Y.select}function bn(t){return t.type===Y.plural}function hu(t){return t.type===Y.pound}function yn(t){return t.type===Y.tag}function vn(t){return!!(t&&typeof t=="object"&&t.type===ht.number)}function ko(t){return!!(t&&typeof t=="object"&&t.type===ht.dateTime)}var xn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,du=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function pu(t){var r={};return t.replace(du,function(e){var o=e.length;switch(e[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var fu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(fu).filter(function(d){return d.length>0}),e=[],o=0,i=r;o<i.length;o++){var s=i[o],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function _u(t){return t.replace(/^(.*?)-/,"")}var Xi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wn=/^(@+)?(\+|#+)?[rs]?$/g,gu=/(\*)(0+)|(#+)(0+)|(0+)/g,En=/^(0+)$/;function Ki(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(wn,function(e,o,i){return typeof i!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):i==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof i=="string"?i.length:0)),""}),r}function Sn(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function bu(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if(e==="+!"?(r.signDisplay="always",t=t.slice(2)):e==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!En.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function Ji(t){var r={},e=Sn(t);return e||r}function yu(t){for(var r={},e=0,o=t;e<o.length;e++){var i=o[e];switch(i.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=i.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=_u(i.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=B(B(B({},r),{notation:"scientific"}),i.options.reduce(function(l,u){return B(B({},l),Ji(u))},{}));continue;case"engineering":r=B(B(B({},r),{notation:"engineering"}),i.options.reduce(function(l,u){return B(B({},l),Ji(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(gu,function(l,u,c,h,d,p){if(u)r.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(En.test(i.stem)){r.minimumIntegerDigits=i.stem.length;continue}if(Xi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xi,function(l,u,c,h,d,p){return c==="*"?r.minimumFractionDigits=u.length:h&&h[0]==="#"?r.maximumFractionDigits=h.length:d&&p?(r.minimumFractionDigits=d.length,r.maximumFractionDigits=d.length+p.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?r=B(B({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=B(B({},r),Ki(s)));continue}if(wn.test(i.stem)){r=B(B({},r),Ki(i.stem));continue}var n=Sn(i.stem);n&&(r=B(B({},r),n));var a=bu(i.stem);a&&(r=B(B({},r),a))}return r}var nr={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function vu(t,r){for(var e="",o=0;o<t.length;o++){var i=t.charAt(o);if(i==="j"){for(var s=0;o+1<t.length&&t.charAt(o+1)===i;)s++,o++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=xu(r);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=u+e}else i==="J"?e+="H":e+=i}return e}function xu(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,o;e!=="root"&&(o=t.maximize().region);var i=nr[o||""]||nr[e||""]||nr["".concat(e,"-001")]||nr["001"];return i[0]}var Kr,wu=new RegExp("^".concat(xn.source,"*")),Eu=new RegExp("".concat(xn.source,"*$"));function L(t,r){return{start:t,end:r}}var Su=!!String.prototype.startsWith&&"_a".startsWith("a",1),Au=!!String.fromCodePoint,Cu=!!Object.fromEntries,Tu=!!String.prototype.codePointAt,Pu=!!String.prototype.trimStart,Du=!!String.prototype.trimEnd,ku=!!Number.isSafeInteger,Ou=ku?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Oo=!0;try{var Mu=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oo=((Kr=Mu.exec("a"))===null||Kr===void 0?void 0:Kr[0])==="a"}catch(t){Oo=!1}var Zi=Su?function(r,e,o){return r.startsWith(e,o)}:function(r,e,o){return r.slice(o,o+e.length)===e},Mo=Au?String.fromCodePoint:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var o="",i=r.length,s=0,n;i>s;){if(n=r[s++],n>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return o},Qi=Cu?Object.fromEntries:function(r){for(var e={},o=0,i=r;o<i.length;o++){var s=i[o],n=s[0],a=s[1];e[n]=a}return e},An=Tu?function(r,e){return r.codePointAt(e)}:function(r,e){var o=r.length;if(!(e<0||e>=o)){var i=r.charCodeAt(e),s;return i<55296||i>56319||e+1===o||(s=r.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Iu=Pu?function(r){return r.trimStart()}:function(r){return r.replace(wu,"")},Nu=Du?function(r){return r.trimEnd()}:function(r){return r.replace(Eu,"")};function Cn(t,r){return new RegExp(t,r)}var Io;if(Oo){var es=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Io=function(r,e){var o;es.lastIndex=e;var i=es.exec(r);return(o=i[1])!==null&&o!==void 0?o:""}}else Io=function(r,e){for(var o=[];;){var i=An(r,e);if(i===void 0||Tn(i)||Bu(i))break;o.push(i),e+=i>=65536?2:1}return Mo.apply(void 0,o)};var Lu=function(){function t(r,e){e===void 0&&(e={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,e,o){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(r,o);if(n.err)return n;i.push(n.val)}else{if(s===125&&r>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Y.pound,location:L(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(I.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&No(this.peek()||0)){var n=this.parseTag(r,e);if(n.err)return n;i.push(n.val)}else{var n=this.parseLiteral(r,e);if(n.err)return n;i.push(n.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(r,e){var o=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(i,"/>"),location:L(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,e,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!No(this.char()))return this.error(I.INVALID_TAG,L(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(I.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:i,children:n,location:L(o,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,L(a,this.clonePosition())))}else return this.error(I.UNCLOSED_TAG,L(o,this.clonePosition()))}else return this.error(I.INVALID_TAG,L(o,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&Hu(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,e){for(var o=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var n=this.tryParseUnquoted(r,e);if(n){i+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=L(o,this.clonePosition());return{val:{type:Y.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$u(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(o);this.bump()}return Mo.apply(void 0,e)},t.prototype.tryParseUnquoted=function(r,e){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(e==="plural"||e==="selectordinal")||o===125&&r>0?null:(this.bump(),Mo(o))},t.prototype.parseArgument=function(r,e){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(I.EMPTY_ARGUMENT,L(o,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(I.MALFORMED_ARGUMENT,L(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:i,location:L(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition())):this.parseArgumentOptions(r,e,i,o);default:return this.error(I.MALFORMED_ARGUMENT,L(o,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),e=this.offset(),o=Io(this.message,e),i=e+o.length;this.bumpTo(i);var s=this.clonePosition(),n=L(r,s);return{value:o,location:n}},t.prototype.parseArgumentOptions=function(r,e,o,i){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(I.EXPECT_ARGUMENT_TYPE,L(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Nu(h.val);if(d.length===0)return this.error(I.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var p=L(c,this.clonePosition());u={style:d,styleLocation:p}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var v=L(i,this.clonePosition());if(u&&Zi(u==null?void 0:u.style,"::",0)){var P=Iu(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:Y.number,value:o,location:v,style:h.val},err:null}}else{if(P.length===0)return this.error(I.EXPECT_DATE_TIME_SKELETON,v);var D=P;this.locale&&(D=vu(P,this.locale));var d={type:ht.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?pu(D):{}},O=a==="date"?Y.date:Y.time;return{val:{type:O,value:o,location:v,style:d},err:null}}}return{val:{type:a==="number"?Y.number:a==="date"?Y.date:Y.time,value:o,location:v,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var F=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,L(F,B({},F)));this.bumpSpace();var K=this.parseIdentifierIfPossible(),q=0;if(a!=="select"&&K.value==="offset"){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),K=this.parseIdentifierIfPossible(),q=h.val}var W=this.tryParsePluralOrSelectOptions(r,a,e,K);if(W.err)return W;var f=this.tryParseArgumentClose(i);if(f.err)return f;var ae=L(i,this.clonePosition());return a==="select"?{val:{type:Y.select,value:o,options:Qi(W.val),location:ae},err:null}:{val:{type:Y.plural,value:o,options:Qi(W.val),offset:q,pluralType:a==="plural"?"cardinal":"ordinal",location:ae},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,L(n,l))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,e=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,e){var o=[];try{o=mu(r)}catch(i){return this.error(I.INVALID_NUMBER_SKELETON,e)}return{val:{type:ht.number,tokens:o,location:e,parsedOptions:this.shouldParseSkeletons?yu(o):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,e,o,i){for(var s,n=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=L(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(r+1,e,o);if(f.err)return f;var v=this.tryParseArgumentClose(p);if(v.err)return v;a.push([u,{value:f.val,location:L(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(e==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(I.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(r,e){var o=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=L(i,this.clonePosition());return s?(n*=o,Ou(n)?{val:n,err:null}:this.error(e,l)):this.error(r,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var e=An(this.message,r);if(e===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(r,e){return{val:null,err:{kind:r,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(Zi(this.message,r,this.offset())){for(var e=0;e<r.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var e=this.offset(),o=this.message.indexOf(r,e);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var e=this.offset();if(e===r)break;if(e>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Tn(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),e=this.offset(),o=this.message.charCodeAt(e+(r>=65536?2:1));return o!=null?o:null},t}();function No(t){return t>=97&&t<=122||t>=65&&t<=90}function $u(t){return No(t)||t===47}function Hu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Tn(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Bu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Lo(t){t.forEach(function(r){if(delete r.location,gn(r)||bn(r))for(var e in r.options)delete r.options[e].location,Lo(r.options[e].value);else fn(r)&&vn(r.style)||(mn(r)||_n(r))&&ko(r.style)?delete r.style.location:yn(r)&&Lo(r.children)})}function zu(t,r){r===void 0&&(r={}),r=B({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new Lu(t,r).parse();if(e.err){var o=SyntaxError(I[e.err.kind]);throw o.location=e.err.location,o.originalMessage=e.err.message,o}return r!=null&&r.captureLocation||Lo(e.val),e.val}function Jr(t,r){var e=r&&r.cache?r.cache:Yu,o=r&&r.serializer?r.serializer:Vu,i=r&&r.strategy?r.strategy:Ru;return i(t,{cache:e,serializer:o})}function Fu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Pn(t,r,e,o){var i=Fu(o)?o:e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.call(this,o),r.set(i,s)),s}function Dn(t,r,e){var o=Array.prototype.slice.call(arguments,3),i=e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.apply(this,o),r.set(i,s)),s}function ai(t,r,e,o,i){return e.bind(r,t,o,i)}function Ru(t,r){var e=t.length===1?Pn:Dn;return ai(t,this,e,r.cache.create(),r.serializer)}function Uu(t,r){return ai(t,this,Dn,r.cache.create(),r.serializer)}function ju(t,r){return ai(t,this,Pn,r.cache.create(),r.serializer)}var Vu=function(){return JSON.stringify(arguments)};function li(){this.cache=Object.create(null)}li.prototype.get=function(t){return this.cache[t]};li.prototype.set=function(t,r){this.cache[t]=r};var Yu={create:function(){return new li}},Zr={variadic:Uu,monadic:ju},dt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(dt||(dt={}));var Ir=function(t){ke(r,t);function r(e,o,i){var s=t.call(this,e)||this;return s.code=o,s.originalMessage=i,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ts=function(t){ke(r,t);function r(e,o,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(o,'". Options are "').concat(Object.keys(i).join('", "'),'"'),dt.INVALID_VALUE,s)||this}return r}(Ir),Gu=function(t){ke(r,t);function r(e,o,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(o),dt.INVALID_VALUE,i)||this}return r}(Ir),Wu=function(t){ke(r,t);function r(e,o){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(o,'"'),dt.MISSING_VALUE,o)||this}return r}(Ir),ne;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ne||(ne={}));function qu(t){return t.length<2?t:t.reduce(function(r,e){var o=r[r.length-1];return!o||o.type!==ne.literal||e.type!==ne.literal?r.push(e):o.value+=e.value,r},[])}function Xu(t){return typeof t=="function"}function pr(t,r,e,o,i,s,n){if(t.length===1&&qi(t[0]))return[{type:ne.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(qi(c)){a.push({type:ne.literal,value:c.value});continue}if(hu(c)){typeof s=="number"&&a.push({type:ne.literal,value:e.getNumberFormat(r).format(s)});continue}var h=c.value;if(!(i&&h in i))throw new Wu(h,n);var d=i[h];if(cu(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ne.literal:ne.object,value:d});continue}if(mn(c)){var p=typeof c.style=="string"?o.date[c.style]:ko(c.style)?c.style.parsedOptions:void 0;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(_n(c)){var p=typeof c.style=="string"?o.time[c.style]:ko(c.style)?c.style.parsedOptions:o.time.medium;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(fn(c)){var p=typeof c.style=="string"?o.number[c.style]:vn(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:ne.literal,value:e.getNumberFormat(r,p).format(d)});continue}if(yn(c)){var f=c.children,v=c.value,P=i[v];if(!Xu(P))throw new Gu(v,"function",n);var D=pr(f,r,e,o,i,s),O=P(D.map(function(q){return q.value}));Array.isArray(O)||(O=[O]),a.push.apply(a,O.map(function(q){return{type:typeof q=="string"?ne.literal:ne.object,value:q}}))}if(gn(c)){var F=c.options[d]||c.options.other;if(!F)throw new ts(c.value,d,Object.keys(c.options),n);a.push.apply(a,pr(F.value,r,e,o,i));continue}if(bn(c)){var F=c.options["=".concat(d)];if(!F){if(!Intl.PluralRules)throw new Ir(`Intl.PluralRules is not available in this environment.
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Po(t,r){if(t){var e=t.indexOf(r);0<=e&&t.splice(e,1)}}var Or=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var r,e,o,i,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Co(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}else n.remove(this);var c=this.initialTeardown;if(Te(c))try{c()}catch(v){s=v instanceof qr?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Co(h),p=d.next();!p.done;p=d.next()){var f=p.value;try{Fi(f)}catch(v){s=s!=null?s:[],v instanceof qr?s=nt(nt([],To(s)),To(v.errors)):s.push(v)}}}catch(v){o={error:v}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}if(s)throw new qr(s)}},t.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)Fi(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},t.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},t.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},t.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&Po(e,r)},t.prototype.remove=function(r){var e=this._finalizers;e&&Po(e,r),r instanceof t&&r._removeParent(this)},t.EMPTY=function(){var r=new t;return r.closed=!0,r}(),t}(),sn=Or.EMPTY;function nn(t){return t instanceof Or||t&&"closed"in t&&Te(t.remove)&&Te(t.add)&&Te(t.unsubscribe)}function Fi(t){Te(t)?t():t.unsubscribe()}var an={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Il={setTimeout:function(t,r){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];return setTimeout.apply(void 0,nt([t,r],To(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Nl(t){Il.setTimeout(function(){throw t})}function Ri(){}function dr(t){t()}var ln=function(t){ke(r,t);function r(e){var o=t.call(this)||this;return o.isStopped=!1,e?(o.destination=e,nn(e)&&e.add(o)):o.destination=Bl,o}return r.create=function(e,o,i){return new Do(e,o,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Or),Ll=Function.prototype.bind;function Xr(t,r){return Ll.call(t,r)}var $l=function(){function t(r){this.partialObserver=r}return t.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(o){sr(o)}},t.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(o){sr(o)}else sr(r)},t.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){sr(e)}},t}(),Do=function(t){ke(r,t);function r(e,o,i){var s=t.call(this)||this,n;if(Te(e)||!e)n={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0};else{var a;s&&an.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},n={next:e.next&&Xr(e.next,a),error:e.error&&Xr(e.error,a),complete:e.complete&&Xr(e.complete,a)}):n=e}return s.destination=new $l(n),s}return r}(ln);function sr(t){Nl(t)}function Hl(t){throw t}var Bl={closed:!0,next:Ri,error:Hl,complete:Ri},zl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fl(t){return t}function Rl(t){return t.length===0?Fl:t.length===1?t[0]:function(e){return t.reduce(function(o,i){return i(o)},e)}}var Ui=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(r,e,o){var i=this,s=jl(r)?r:new Do(r,e,o);return dr(function(){var n=i,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},t.prototype.forEach=function(r,e){var o=this;return e=ji(e),new e(function(i,s){var n=new Do({next:function(a){try{r(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:i});o.subscribe(n)})},t.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},t.prototype[zl]=function(){return this},t.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Rl(r)(this)},t.prototype.toPromise=function(r){var e=this;return r=ji(r),new r(function(o,i){var s;e.subscribe(function(n){return s=n},function(n){return i(n)},function(){return o(s)})})},t.create=function(r){return new t(r)},t}();function ji(t){var r;return(r=t!=null?t:an.Promise)!==null&&r!==void 0?r:Promise}function Ul(t){return t&&Te(t.next)&&Te(t.error)&&Te(t.complete)}function jl(t){return t&&t instanceof ln||Ul(t)&&nn(t)}var Vl=on(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),un=function(t){ke(r,t);function r(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var o=new Vi(this,this);return o.operator=e,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new Vl},r.prototype.next=function(e){var o=this;dr(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Co(o.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}}})},r.prototype.error=function(e){var o=this;dr(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var i=o.observers;i.length;)i.shift().error(e)}})},r.prototype.complete=function(){var e=this;dr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var o=this,i=this,s=i.hasError,n=i.isStopped,a=i.observers;return s||n?sn:(this.currentObservers=null,a.push(e),new Or(function(){o.currentObservers=null,Po(a,e)}))},r.prototype._checkFinalizedStatuses=function(e){var o=this,i=o.hasError,s=o.thrownError,n=o.isStopped;i?e.error(s):n&&e.complete()},r.prototype.asObservable=function(){var e=new Ui;return e.source=this,e},r.create=function(e,o){return new Vi(e,o)},r}(Ui),Vi=function(t){ke(r,t);function r(e,o){var i=t.call(this)||this;return i.destination=e,i.source=o,i}return r.prototype.next=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,e)},r.prototype.error=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.call(o,e)},r.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},r.prototype._subscribe=function(e){var o,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&i!==void 0?i:sn},r}(un),cn={now:function(){return(cn.delegate||Date).now()},delegate:void 0},Yl=function(t){ke(r,t);function r(e,o,i){e===void 0&&(e=1/0),o===void 0&&(o=1/0),i===void 0&&(i=cn);var s=t.call(this)||this;return s._bufferSize=e,s._windowTime=o,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(e){var o=this,i=o.isStopped,s=o._buffer,n=o._infiniteTimeWindow,a=o._timestampProvider,l=o._windowTime;i||(s.push(e),!n&&s.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),i=this,s=i._infiniteTimeWindow,n=i._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=s?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),o},r.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,i=e._timestampProvider,s=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*o;if(o<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=i.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},r}(un);const Yi=[],Gi={},Gl=(t,r=0)=>{if(Yi.indexOf(t)==-1){const e=new Yl(r);Gi[t]=e,Yi.push(t)}return Gi[t]},tt=[];function Wl(t,r){return{subscribe:Mr(t,r).subscribe}}function Mr(t,r=be){let e;const o=new Set;function i(a){if(en(t,a)&&(t=a,e)){const l=!tt.length;for(const u of o)u[1](),tt.push(u,t);if(l){for(let u=0;u<tt.length;u+=2)tt[u][0](tt[u+1]);tt.length=0}}}function s(a){i(a(t))}function n(a,l=be){const u=[a,l];return o.add(u),o.size===1&&(e=r(i,s)||be),a(t),()=>{o.delete(u),o.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:n}}function bt(t,r,e){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return Wl(e,(n,a)=>{let l=!1;const u=[];let c=0,h=be;const d=()=>{if(c)return;h();const f=r(o?u[0]:u,n,a);s?n(f):h=ni(f)?f:be},p=i.map((f,v)=>tn(f,P=>{u[v]=P,c&=~(1<<v),l&&d()},()=>{c|=1<<v}));return l=!0,d(),function(){gt(p),h(),l=!1}})}var ql=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xl=function(r){return Kl(r)&&!Jl(r)};function Kl(t){return!!t&&typeof t=="object"}function Jl(t){var r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||eu(t)}var Zl=typeof Symbol=="function"&&Symbol.for,Ql=Zl?Symbol.for("react.element"):60103;function eu(t){return t.$$typeof===Ql}function tu(t){return Array.isArray(t)?[]:{}}function $t(t,r){return r.clone!==!1&&r.isMergeableObject(t)?ct(tu(t),t,r):t}function ru(t,r,e){return t.concat(r).map(function(o){return $t(o,e)})}function ou(t,r){if(!r.customMerge)return ct;var e=r.customMerge(t);return typeof e=="function"?e:ct}function iu(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]}function Wi(t){return Object.keys(t).concat(iu(t))}function dn(t,r){try{return r in t}catch(e){return!1}}function su(t,r){return dn(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function nu(t,r,e){var o={};return e.isMergeableObject(t)&&Wi(t).forEach(function(i){o[i]=$t(t[i],e)}),Wi(r).forEach(function(i){su(t,i)||(dn(t,i)&&e.isMergeableObject(r[i])?o[i]=ou(i,e)(t[i],r[i],e):o[i]=$t(r[i],e))}),o}function ct(t,r,e){e=e||{},e.arrayMerge=e.arrayMerge||ru,e.isMergeableObject=e.isMergeableObject||Xl,e.cloneUnlessOtherwiseSpecified=$t;var o=Array.isArray(r),i=Array.isArray(t),s=o===i;return s?o?e.arrayMerge(t,r,e):nu(t,r,e):$t(r,e)}ct.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(o,i){return ct(o,i,e)},{})};var au=ct,lu=au;const uu=hn(lu);function Kr(t,r){var e=r&&r.cache?r.cache:mu,o=r&&r.serializer?r.serializer:fu,i=r&&r.strategy?r.strategy:hu;return i(t,{cache:e,serializer:o})}function cu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function pn(t,r,e,o){var i=cu(o)?o:e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.call(this,o),r.set(i,s)),s}function fn(t,r,e){var o=Array.prototype.slice.call(arguments,3),i=e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.apply(this,o),r.set(i,s)),s}function ai(t,r,e,o,i){return e.bind(r,t,o,i)}function hu(t,r){var e=t.length===1?pn:fn;return ai(t,this,e,r.cache.create(),r.serializer)}function du(t,r){return ai(t,this,fn,r.cache.create(),r.serializer)}function pu(t,r){return ai(t,this,pn,r.cache.create(),r.serializer)}var fu=function(){return JSON.stringify(arguments)};function li(){this.cache=Object.create(null)}li.prototype.get=function(t){return this.cache[t]};li.prototype.set=function(t,r){this.cache[t]=r};var mu={create:function(){return new li}},Jr={variadic:du,monadic:pu},I;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(I||(I={}));var Y;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Y||(Y={}));var ht;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(ht||(ht={}));function qi(t){return t.type===Y.literal}function _u(t){return t.type===Y.argument}function mn(t){return t.type===Y.number}function _n(t){return t.type===Y.date}function gn(t){return t.type===Y.time}function bn(t){return t.type===Y.select}function yn(t){return t.type===Y.plural}function gu(t){return t.type===Y.pound}function vn(t){return t.type===Y.tag}function xn(t){return!!(t&&typeof t=="object"&&t.type===ht.number)}function ko(t){return!!(t&&typeof t=="object"&&t.type===ht.dateTime)}var wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bu=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function yu(t){var r={};return t.replace(bu,function(e){var o=e.length;switch(e[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var vu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function xu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(vu).filter(function(d){return d.length>0}),e=[],o=0,i=r;o<i.length;o++){var s=i[o],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function wu(t){return t.replace(/^(.*?)-/,"")}var Xi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,En=/^(@+)?(\+|#+)?[rs]?$/g,Eu=/(\*)(0+)|(#+)(0+)|(0+)/g,Sn=/^(0+)$/;function Ki(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(En,function(e,o,i){return typeof i!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):i==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof i=="string"?i.length:0)),""}),r}function An(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Su(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if(e==="+!"?(r.signDisplay="always",t=t.slice(2)):e==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!Sn.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function Ji(t){var r={},e=An(t);return e||r}function Au(t){for(var r={},e=0,o=t;e<o.length;e++){var i=o[e];switch(i.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=i.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=wu(i.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=B(B(B({},r),{notation:"scientific"}),i.options.reduce(function(l,u){return B(B({},l),Ji(u))},{}));continue;case"engineering":r=B(B(B({},r),{notation:"engineering"}),i.options.reduce(function(l,u){return B(B({},l),Ji(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Eu,function(l,u,c,h,d,p){if(u)r.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sn.test(i.stem)){r.minimumIntegerDigits=i.stem.length;continue}if(Xi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xi,function(l,u,c,h,d,p){return c==="*"?r.minimumFractionDigits=u.length:h&&h[0]==="#"?r.maximumFractionDigits=h.length:d&&p?(r.minimumFractionDigits=d.length,r.maximumFractionDigits=d.length+p.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?r=B(B({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=B(B({},r),Ki(s)));continue}if(En.test(i.stem)){r=B(B({},r),Ki(i.stem));continue}var n=An(i.stem);n&&(r=B(B({},r),n));var a=Su(i.stem);a&&(r=B(B({},r),a))}return r}var nr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Cu(t,r){for(var e="",o=0;o<t.length;o++){var i=t.charAt(o);if(i==="j"){for(var s=0;o+1<t.length&&t.charAt(o+1)===i;)s++,o++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=Tu(r);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=u+e}else i==="J"?e+="H":e+=i}return e}function Tu(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,o;e!=="root"&&(o=t.maximize().region);var i=nr[o||""]||nr[e||""]||nr["".concat(e,"-001")]||nr["001"];return i[0]}var Zr,Pu=new RegExp("^".concat(wn.source,"*")),Du=new RegExp("".concat(wn.source,"*$"));function L(t,r){return{start:t,end:r}}var ku=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ou=!!String.fromCodePoint,Mu=!!Object.fromEntries,Iu=!!String.prototype.codePointAt,Nu=!!String.prototype.trimStart,Lu=!!String.prototype.trimEnd,$u=!!Number.isSafeInteger,Hu=$u?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Oo=!0;try{var Bu=Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oo=((Zr=Bu.exec("a"))===null||Zr===void 0?void 0:Zr[0])==="a"}catch(t){Oo=!1}var Zi=ku?function(r,e,o){return r.startsWith(e,o)}:function(r,e,o){return r.slice(o,o+e.length)===e},Mo=Ou?String.fromCodePoint:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var o="",i=r.length,s=0,n;i>s;){if(n=r[s++],n>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return o},Qi=Mu?Object.fromEntries:function(r){for(var e={},o=0,i=r;o<i.length;o++){var s=i[o],n=s[0],a=s[1];e[n]=a}return e},Cn=Iu?function(r,e){return r.codePointAt(e)}:function(r,e){var o=r.length;if(!(e<0||e>=o)){var i=r.charCodeAt(e),s;return i<55296||i>56319||e+1===o||(s=r.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},zu=Nu?function(r){return r.trimStart()}:function(r){return r.replace(Pu,"")},Fu=Lu?function(r){return r.trimEnd()}:function(r){return r.replace(Du,"")};function Tn(t,r){return new RegExp(t,r)}var Io;if(Oo){var es=Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Io=function(r,e){var o;es.lastIndex=e;var i=es.exec(r);return(o=i[1])!==null&&o!==void 0?o:""}}else Io=function(r,e){for(var o=[];;){var i=Cn(r,e);if(i===void 0||Pn(i)||Vu(i))break;o.push(i),e+=i>=65536?2:1}return Mo.apply(void 0,o)};var Ru=function(){function t(r,e){e===void 0&&(e={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,e,o){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(r,o);if(n.err)return n;i.push(n.val)}else{if(s===125&&r>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Y.pound,location:L(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(I.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&No(this.peek()||0)){var n=this.parseTag(r,e);if(n.err)return n;i.push(n.val)}else{var n=this.parseLiteral(r,e);if(n.err)return n;i.push(n.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(r,e){var o=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(i,"/>"),location:L(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,e,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!No(this.char()))return this.error(I.INVALID_TAG,L(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(I.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:i,children:n,location:L(o,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,L(a,this.clonePosition())))}else return this.error(I.UNCLOSED_TAG,L(o,this.clonePosition()))}else return this.error(I.INVALID_TAG,L(o,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&ju(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,e){for(var o=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var n=this.tryParseUnquoted(r,e);if(n){i+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=L(o,this.clonePosition());return{val:{type:Y.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Uu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(o);this.bump()}return Mo.apply(void 0,e)},t.prototype.tryParseUnquoted=function(r,e){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(e==="plural"||e==="selectordinal")||o===125&&r>0?null:(this.bump(),Mo(o))},t.prototype.parseArgument=function(r,e){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(I.EMPTY_ARGUMENT,L(o,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(I.MALFORMED_ARGUMENT,L(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:i,location:L(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(o,this.clonePosition())):this.parseArgumentOptions(r,e,i,o);default:return this.error(I.MALFORMED_ARGUMENT,L(o,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),e=this.offset(),o=Io(this.message,e),i=e+o.length;this.bumpTo(i);var s=this.clonePosition(),n=L(r,s);return{value:o,location:n}},t.prototype.parseArgumentOptions=function(r,e,o,i){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(I.EXPECT_ARGUMENT_TYPE,L(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Fu(h.val);if(d.length===0)return this.error(I.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var p=L(c,this.clonePosition());u={style:d,styleLocation:p}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var v=L(i,this.clonePosition());if(u&&Zi(u==null?void 0:u.style,"::",0)){var P=zu(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:Y.number,value:o,location:v,style:h.val},err:null}}else{if(P.length===0)return this.error(I.EXPECT_DATE_TIME_SKELETON,v);var D=P;this.locale&&(D=Cu(P,this.locale));var d={type:ht.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?yu(D):{}},O=a==="date"?Y.date:Y.time;return{val:{type:O,value:o,location:v,style:d},err:null}}}return{val:{type:a==="number"?Y.number:a==="date"?Y.date:Y.time,value:o,location:v,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var F=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,L(F,B({},F)));this.bumpSpace();var K=this.parseIdentifierIfPossible(),q=0;if(a!=="select"&&K.value==="offset"){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),K=this.parseIdentifierIfPossible(),q=h.val}var W=this.tryParsePluralOrSelectOptions(r,a,e,K);if(W.err)return W;var f=this.tryParseArgumentClose(i);if(f.err)return f;var ae=L(i,this.clonePosition());return a==="select"?{val:{type:Y.select,value:o,options:Qi(W.val),location:ae},err:null}:{val:{type:Y.plural,value:o,options:Qi(W.val),offset:q,pluralType:a==="plural"?"cardinal":"ordinal",location:ae},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,L(n,l))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,e=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,e){var o=[];try{o=xu(r)}catch(i){return this.error(I.INVALID_NUMBER_SKELETON,e)}return{val:{type:ht.number,tokens:o,location:e,parsedOptions:this.shouldParseSkeletons?Au(o):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,e,o,i){for(var s,n=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=L(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(r+1,e,o);if(f.err)return f;var v=this.tryParseArgumentClose(p);if(v.err)return v;a.push([u,{value:f.val,location:L(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(e==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(I.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(r,e){var o=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=L(i,this.clonePosition());return s?(n*=o,Hu(n)?{val:n,err:null}:this.error(e,l)):this.error(r,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var e=Cn(this.message,r);if(e===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(r,e){return{val:null,err:{kind:r,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(Zi(this.message,r,this.offset())){for(var e=0;e<r.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var e=this.offset(),o=this.message.indexOf(r,e);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var e=this.offset();if(e===r)break;if(e>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pn(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),e=this.offset(),o=this.message.charCodeAt(e+(r>=65536?2:1));return o!=null?o:null},t}();function No(t){return t>=97&&t<=122||t>=65&&t<=90}function Uu(t){return No(t)||t===47}function ju(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Pn(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Vu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Lo(t){t.forEach(function(r){if(delete r.location,bn(r)||yn(r))for(var e in r.options)delete r.options[e].location,Lo(r.options[e].value);else mn(r)&&xn(r.style)||(_n(r)||gn(r))&&ko(r.style)?delete r.style.location:vn(r)&&Lo(r.children)})}function Yu(t,r){r===void 0&&(r={}),r=B({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new Ru(t,r).parse();if(e.err){var o=SyntaxError(I[e.err.kind]);throw o.location=e.err.location,o.originalMessage=e.err.message,o}return r!=null&&r.captureLocation||Lo(e.val),e.val}var dt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(dt||(dt={}));var Ir=function(t){ke(r,t);function r(e,o,i){var s=t.call(this,e)||this;return s.code=o,s.originalMessage=i,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ts=function(t){ke(r,t);function r(e,o,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(o,'". Options are "').concat(Object.keys(i).join('", "'),'"'),dt.INVALID_VALUE,s)||this}return r}(Ir),Gu=function(t){ke(r,t);function r(e,o,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(o),dt.INVALID_VALUE,i)||this}return r}(Ir),Wu=function(t){ke(r,t);function r(e,o){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(o,'"'),dt.MISSING_VALUE,o)||this}return r}(Ir),ne;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ne||(ne={}));function qu(t){return t.length<2?t:t.reduce(function(r,e){var o=r[r.length-1];return!o||o.type!==ne.literal||e.type!==ne.literal?r.push(e):o.value+=e.value,r},[])}function Xu(t){return typeof t=="function"}function pr(t,r,e,o,i,s,n){if(t.length===1&&qi(t[0]))return[{type:ne.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(qi(c)){a.push({type:ne.literal,value:c.value});continue}if(gu(c)){typeof s=="number"&&a.push({type:ne.literal,value:e.getNumberFormat(r).format(s)});continue}var h=c.value;if(!(i&&h in i))throw new Wu(h,n);var d=i[h];if(_u(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ne.literal:ne.object,value:d});continue}if(_n(c)){var p=typeof c.style=="string"?o.date[c.style]:ko(c.style)?c.style.parsedOptions:void 0;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(gn(c)){var p=typeof c.style=="string"?o.time[c.style]:ko(c.style)?c.style.parsedOptions:o.time.medium;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(mn(c)){var p=typeof c.style=="string"?o.number[c.style]:xn(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:ne.literal,value:e.getNumberFormat(r,p).format(d)});continue}if(vn(c)){var f=c.children,v=c.value,P=i[v];if(!Xu(P))throw new Gu(v,"function",n);var D=pr(f,r,e,o,i,s),O=P(D.map(function(q){return q.value}));Array.isArray(O)||(O=[O]),a.push.apply(a,O.map(function(q){return{type:typeof q=="string"?ne.literal:ne.object,value:q}}))}if(bn(c)){var F=c.options[d]||c.options.other;if(!F)throw new ts(c.value,d,Object.keys(c.options),n);a.push.apply(a,pr(F.value,r,e,o,i));continue}if(yn(c)){var F=c.options["=".concat(d)];if(!F){if(!Intl.PluralRules)throw new Ir(`Intl.PluralRules is not available in this environment.
|
|
4
4
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
-
`,dt.MISSING_INTL_API,n);var K=e.getPluralRules(r,{type:c.pluralType}).select(d-(c.offset||0));F=c.options[K]||c.options.other}if(!F)throw new ts(c.value,d,Object.keys(c.options),n);a.push.apply(a,pr(F.value,r,e,o,i,d-(c.offset||0)));continue}}return qu(a)}function Ku(t,r){return r?B(B(B({},t||{}),r||{}),Object.keys(t).reduce(function(e,o){return e[o]=B(B({},t[o]),r[o]||{}),e},{})):t}function Ju(t,r){return r?Object.keys(t).reduce(function(e,o){return e[o]=Ku(t[o],r[o]),e},B({},t)):t}function Qr(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}function Zu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.number),strategy:Zr.variadic}),getDateTimeFormat:Jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.dateTime),strategy:Zr.variadic}),getPluralRules:Jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.pluralRules),strategy:Zr.variadic})}}var Qu=function(){function t(r,e,o,i){var s=this;if(e===void 0&&(e=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ne.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return pr(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=i||{};n.formatters;var a=Il(n,["formatters"]);this.ast=t.__parse(r,B(B({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ju(t.formats,o),this.formatters=i&&i.formatters||Zu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(r);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=zu,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function ec(t,r){if(r==null)return;if(r in t)return t[r];const e=r.split(".");let o=t;for(let i=0;i<e.length;i++)if(typeof o=="object"){if(i>0){const s=e.slice(i,e.length).join(".");if(s in o){o=o[s];break}}o=o[e[i]]}else o=void 0;return o}const Ne={},tc=(t,r,e)=>e&&(r in Ne||(Ne[r]={}),t in Ne[r]||(Ne[r][t]=e),e),kn=(t,r)=>{if(r==null)return;if(r in Ne&&t in Ne[r])return Ne[r][t];const e=Nr(r);for(let o=0;o<e.length;o++){const i=e[o],s=oc(i,t);if(s)return tc(t,r,s)}};let ui;const Xt=Mr({});function rc(t){return ui[t]||null}function On(t){return t in ui}function oc(t,r){if(!On(t))return null;const e=rc(t);return ec(e,r)}function ic(t){if(t==null)return;const r=Nr(t);for(let e=0;e<r.length;e++){const o=r[e];if(On(o))return o}}function Mn(t,...r){delete Ne[t],Xt.update(e=>(e[t]=uu.all([e[t]||{},...r]),e))}bt([Xt],([t])=>Object.keys(t));Xt.subscribe(t=>ui=t);const fr={};function sc(t,r){fr[t].delete(r),fr[t].size===0&&delete fr[t]}function In(t){return fr[t]}function nc(t){return Nr(t).map(r=>{const e=In(r);return[r,e?[...e]:[]]}).filter(([,r])=>r.length>0)}function $o(t){return t==null?!1:Nr(t).some(r=>{var e;return(e=In(r))==null?void 0:e.size})}function ac(t,r){return Promise.all(r.map(o=>(sc(t,o),o().then(i=>i.default||i)))).then(o=>Mn(t,...o))}const At={};function Nn(t){if(!$o(t))return t in At?At[t]:Promise.resolve();const r=nc(t);return At[t]=Promise.all(r.map(([e,o])=>ac(e,o))).then(()=>{if($o(t))return Nn(t);delete At[t]}),At[t]}const lc={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},uc={fallbackLocale:null,loadingDelay:200,formats:lc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},cc=uc;function pt(){return cc}const eo=Mr(!1);var hc=Object.defineProperty,dc=Object.defineProperties,pc=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,os=(t,r,e)=>r in t?hc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,_c=(t,r)=>{for(var e in r||(r={}))fc.call(r,e)&&os(t,e,r[e]);if(rs)for(var e of rs(r))mc.call(r,e)&&os(t,e,r[e]);return t},gc=(t,r)=>dc(t,pc(r));let Ho;const xr=Mr(null);function is(t){return t.split("-").map((r,e,o)=>o.slice(0,e+1).join("-")).reverse()}function Nr(t,r=pt().fallbackLocale){const e=is(t);return r?[...new Set([...e,...is(r)])]:e}function We(){return Ho!=null?Ho:void 0}xr.subscribe(t=>{Ho=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const bc=t=>{if(t&&ic(t)&&$o(t)){const{loadingDelay:r}=pt();let e;return typeof window!="undefined"&&We()!=null&&r?e=window.setTimeout(()=>eo.set(!0),r):eo.set(!0),Nn(t).then(()=>{xr.set(t)}).finally(()=>{clearTimeout(e),eo.set(!1)})}return xr.set(t)},yt=gc(_c({},xr),{set:bc}),Lr=t=>{const r=Object.create(null);return o=>{const i=JSON.stringify(o);return i in r?r[i]:r[i]=t(o)}};var yc=Object.defineProperty,wr=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,ss=(t,r,e)=>r in t?yc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ci=(t,r)=>{for(var e in r||(r={}))Ln.call(r,e)&&ss(t,e,r[e]);if(wr)for(var e of wr(r))$n.call(r,e)&&ss(t,e,r[e]);return t},vt=(t,r)=>{var e={};for(var o in t)Ln.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&wr)for(var o of wr(t))r.indexOf(o)<0&&$n.call(t,o)&&(e[o]=t[o]);return e};const Ht=(t,r)=>{const{formats:e}=pt();if(t in e&&r in e[t])return e[t][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${t} format.`)},vc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return o&&(i=Ht("number",o)),new Intl.NumberFormat(e,i)}),xc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return o?i=Ht("date",o):Object.keys(i).length===0&&(i=Ht("date","short")),new Intl.DateTimeFormat(e,i)}),wc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return o?i=Ht("time",o):Object.keys(i).length===0&&(i=Ht("time","short")),new Intl.DateTimeFormat(e,i)}),Ec=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return vc(ci({locale:e},o))},Sc=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return xc(ci({locale:e},o))},Ac=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return wc(ci({locale:e},o))},Cc=Lr((t,r=We())=>new Qu(t,r,pt().formats,{ignoreTag:pt().ignoreTag})),Tc=(t,r={})=>{var e,o,i,s;let n=r;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=We(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=kn(t,l);if(!c)c=(s=(i=(o=(e=pt()).handleMissingMessage)==null?void 0:o.call(e,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?s:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=Cc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},Pc=(t,r)=>Ac(r).format(t),Dc=(t,r)=>Sc(r).format(t),kc=(t,r)=>Ec(r).format(t),Oc=(t,r=We())=>kn(t,r),Mc=bt([yt,Xt],()=>Tc);bt([yt],()=>Pc);bt([yt],()=>Dc);bt([yt],()=>kc);bt([yt,Xt],()=>Oc);window.emWidgets={topic:Gl};const Ic=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Hn={exports:{}};(function(t,r){(function(e,o){t.exports=o()})(ql,function(){var e=1e3,o=6e4,i=36e5,s="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",p="year",f="date",v="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],m=w%100;return"["+w+(g[(m-20)%10]||g[m]||g[0])+"]"}},F=function(w,g,m){var x=String(w);return!x||x.length>=g?w:""+Array(g+1-x.length).join(m)+w},K={s:F,z:function(w){var g=-w.utcOffset(),m=Math.abs(g),x=Math.floor(m/60),_=m%60;return(g<=0?"+":"-")+F(x,2,"0")+":"+F(_,2,"0")},m:function w(g,m){if(g.date()<m.date())return-w(m,g);var x=12*(m.year()-g.year())+(m.month()-g.month()),_=g.clone().add(x,h),A=m-_<0,E=g.clone().add(x+(A?-1:1),h);return+(-(x+(m-_)/(A?_-E:E-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:p,w:c,d:u,D:f,h:l,m:a,s:n,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},q="en",W={};W[q]=O;var ae="$isDayjsObject",ye=function(w){return w instanceof ve||!(!w||!w[ae])},pe=function w(g,m,x){var _;if(!g)return q;if(typeof g=="string"){var A=g.toLowerCase();W[A]&&(_=A),m&&(W[A]=m,_=A);var E=g.split("-");if(!_&&E.length>1)return w(E[0])}else{var z=g.name;W[z]=g,_=z}return!x&&_&&(q=_),_||!x&&q},j=function(w,g){if(ye(w))return w.clone();var m=typeof g=="object"?g:{};return m.date=w,m.args=arguments,new ve(m)},M=K;M.l=pe,M.i=ye,M.w=function(w,g){return j(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ve=function(){function w(m){this.$L=pe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ae]=!0}var g=w.prototype;return g.parse=function(m){this.$d=function(x){var _=x.date,A=x.utc;if(_===null)return new Date(NaN);if(M.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var E=_.match(P);if(E){var z=E[2]-1||0,$=(E[7]||"0").substring(0,3);return A?new Date(Date.UTC(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,$)):new Date(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,$)}}return new Date(_)}(m),this.init()},g.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return this.$d.toString()!==v},g.isSame=function(m,x){var _=j(m);return this.startOf(x)<=_&&_<=this.endOf(x)},g.isAfter=function(m,x){return j(m)<this.startOf(x)},g.isBefore=function(m,x){return this.endOf(x)<j(m)},g.$g=function(m,x,_){return M.u(m)?this[x]:this.set(_,m)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(m,x){var _=this,A=!!M.u(x)||x,E=M.p(m),z=function(V,k){var le=M.w(_.$u?Date.UTC(_.$y,k,V):new Date(_.$y,k,V),_);return A?le:le.endOf(u)},$=function(V,k){return M.w(_.toDate()[V].apply(_.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(k)),_)},R=this.$W,X=this.$M,J=this.$D,fe="set"+(this.$u?"UTC":"");switch(E){case p:return A?z(1,0):z(31,11);case h:return A?z(1,X):z(0,X+1);case c:var me=this.$locale().weekStart||0,y=(R<me?R+7:R)-me;return z(A?J-y:J+(6-y),X);case u:case f:return $(fe+"Hours",0);case l:return $(fe+"Minutes",1);case a:return $(fe+"Seconds",2);case n:return $(fe+"Milliseconds",3);default:return this.clone()}},g.endOf=function(m){return this.startOf(m,!1)},g.$set=function(m,x){var _,A=M.p(m),E="set"+(this.$u?"UTC":""),z=(_={},_[u]=E+"Date",_[f]=E+"Date",_[h]=E+"Month",_[p]=E+"FullYear",_[l]=E+"Hours",_[a]=E+"Minutes",_[n]=E+"Seconds",_[s]=E+"Milliseconds",_)[A],$=A===u?this.$D+(x-this.$W):x;if(A===h||A===p){var R=this.clone().set(f,1);R.$d[z]($),R.init(),this.$d=R.set(f,Math.min(this.$D,R.daysInMonth())).$d}else z&&this.$d[z]($);return this.init(),this},g.set=function(m,x){return this.clone().$set(m,x)},g.get=function(m){return this[M.p(m)]()},g.add=function(m,x){var _,A=this;m=Number(m);var E=M.p(x),z=function(X){var J=j(A);return M.w(J.date(J.date()+Math.round(X*m)),A)};if(E===h)return this.set(h,this.$M+m);if(E===p)return this.set(p,this.$y+m);if(E===u)return z(1);if(E===c)return z(7);var $=(_={},_[a]=o,_[l]=i,_[n]=e,_)[E]||1,R=this.$d.getTime()+m*$;return M.w(R,this)},g.subtract=function(m,x){return this.add(-1*m,x)},g.format=function(m){var x=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var A=m||"YYYY-MM-DDTHH:mm:ssZ",E=M.z(this),z=this.$H,$=this.$m,R=this.$M,X=_.weekdays,J=_.months,fe=_.meridiem,me=function(k,le,he,ze){return k&&(k[le]||k(x,A))||he[le].slice(0,ze)},y=function(k){return M.s(z%12||12,k,"0")},V=fe||function(k,le,he){var ze=k<12?"AM":"PM";return he?ze.toLowerCase():ze};return A.replace(D,function(k,le){return le||function(he){switch(he){case"YY":return String(x.$y).slice(-2);case"YYYY":return M.s(x.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return me(_.monthsShort,R,J,3);case"MMMM":return me(J,R);case"D":return x.$D;case"DD":return M.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return me(_.weekdaysMin,x.$W,X,2);case"ddd":return me(_.weekdaysShort,x.$W,X,3);case"dddd":return X[x.$W];case"H":return String(z);case"HH":return M.s(z,2,"0");case"h":return y(1);case"hh":return y(2);case"a":return V(z,$,!0);case"A":return V(z,$,!1);case"m":return String($);case"mm":return M.s($,2,"0");case"s":return String(x.$s);case"ss":return M.s(x.$s,2,"0");case"SSS":return M.s(x.$ms,3,"0");case"Z":return E}return null}(k)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(m,x,_){var A,E=this,z=M.p(x),$=j(m),R=($.utcOffset()-this.utcOffset())*o,X=this-$,J=function(){return M.m(E,$)};switch(z){case p:A=J()/12;break;case h:A=J();break;case d:A=J()/3;break;case c:A=(X-R)/6048e5;break;case u:A=(X-R)/864e5;break;case l:A=X/i;break;case a:A=X/o;break;case n:A=X/e;break;default:A=X}return _?A:M.a(A)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return W[this.$L]},g.locale=function(m,x){if(!m)return this.$L;var _=this.clone(),A=pe(m,x,!0);return A&&(_.$L=A),_},g.clone=function(){return M.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),Oe=ve.prototype;return j.prototype=Oe,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",f]].forEach(function(w){Oe[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),j.extend=function(w,g){return w.$i||(w(g,ve,j),w.$i=!0),j},j.locale=pe,j.isDayjs=ye,j.unix=function(w){return j(1e3*w)},j.en=W[q],j.Ls=W,j.p={},j})})(Hn);var Nc=Hn.exports;const to=dn(Nc);function ns(t,r){Mn(t,r)}function Lc(t){yt.set(t)}const as={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognise that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a period of your choosing from the drop-down menu below.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During a self-exclusion period, withdrawals will be possible, please check",termsAndConditions:"Terms and Conditions",selfExclusionText4:"to see the exact process; however, depositing funds or placing bets will be restricted. In the case of permanent self-exclusion, revocation is only possible upon written request and must occur no sooner than six months after the initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText5:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們認識到賭博可能帶來危害,因此為防止與賭博相關的問題,我們為用戶提供了排除本站所有投注形式的功能,您可從下拉菜單中選擇一個期間。",selfExclusionText2:'自我排除將從設置時開始生效,持續您選擇的期間。請在下方選擇一個時間範圍,然後點擊"保存"。',selfExclusionText3:"在自我排除期間,可進行提款操作,請查看",termsAndConditions:"條款和細則",selfExclusionText4:"了解具體流程;但存款或下注將受到限制。如選擇永久自我排除,撤銷申請僅可通過書面申請,且必須在最初申請六個月後才能進行。請注意,另一種請求自我排除的方法是通過以下方式聯繫客服:",selfExclusionText5:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible. Pour prévenir les problèmes liés au jeu, nous offrons à nos utilisateurs la possibilité de s’exclure de toutes les formes de paris sur notre site pour une durée de votre choix, à sélectionner dans le menu déroulant ci-dessous.",selfExclusionText2:"L'auto-exclusion prend effet dès qu'elle est définie pour la période choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant une période d'auto-exclusion, les retraits seront possibles. Veuillez consulter",termsAndConditions:"les Termes et Conditions",selfExclusionText4:"pour connaître le processus exact ; cependant, les dépôts et les paris seront restreints. En cas d'auto-exclusion permanente, la révocation n'est possible que sur demande écrite et ne peut avoir lieu avant six mois après la demande initiale. Veuillez noter qu'une autre façon de demander l'auto-exclusion est de contacter le service client comme suit :",selfExclusionText5:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate acestora, oferim utilizatorilor posibilitatea de a se exclude de la toate formele de pariere de pe site-ul nostru pentru o perioadă la alegerea dvs. din meniul derulant de mai jos.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul setării pentru perioada aleasă. Selectați un interval de timp mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"Pe durata perioadei de auto-excludere, retragerile vor fi posibile. Vă rugăm să verificați",termsAndConditions:"Termenii și Condițiile",selfExclusionText4:"pentru a vedea procesul exact; cu toate acestea, depunerile sau pariurile vor fi restricționate. În cazul auto-excluderii permanente, revocarea este posibilă doar printr-o cerere scrisă și nu mai devreme de șase luni de la aplicarea inițială. Rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți după cum urmează:",selfExclusionText5:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados con el juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período de tiempo a su elección en el menú desplegable a continuación.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período elegido. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, los retiros serán posibles. Por favor, consulte",termsAndConditions:"Términos y Condiciones",selfExclusionText4:"para ver el proceso exacto; sin embargo, los depósitos o apuestas estarán restringidos. En caso de autoexclusión permanente, la revocación solo será posible mediante solicitud escrita y no antes de seis meses después de la solicitud inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactar al Servicio al Cliente de la siguiente manera:",selfExclusionText5:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para evitar problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se excluírem de todas as formas de apostas no nosso site por um período à sua escolha no menu suspenso abaixo.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, os levantamentos serão possíveis. Por favor, consulte",termsAndConditions:"os Termos e Condições",selfExclusionText4:"para ver o processo exato; no entanto, os depósitos ou apostas serão restringidos. No caso de autoexclusão permanente, a revogação só será possível mediante pedido por escrito e deve ocorrer não antes de seis meses após a solicitação inicial. Note que outra forma de solicitar autoexclusão é contactar o Serviço de Atendimento ao Cliente da seguinte forma:",selfExclusionText5:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga kako bismo spriječili probleme povezane s kockanjem, nudimo korisnicima mogućnost isključenja iz svih oblika klađenja na našoj stranici na razdoblje po vašem izboru iz donjeg padajućeg izbornika.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka postavljanja za odabrano razdoblje. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja, isplate će biti moguće. Molimo provjerite",termsAndConditions:"Uvjeti i odredbe",selfExclusionText4:"za točan proces; međutim, polaganje sredstava ili postavljanje oklada bit će ograničeno. U slučaju trajnog samoisključenja, povlačenje je moguće samo uz pisani zahtjev i ne ranije od šest mjeseci nakon početne prijave. Napominjemo da alternativni način za traženje samoisključenja uključuje kontaktiranje korisničke službe na sljedeći način:",selfExclusionText5:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, então, para prevenir problemas relacionados ao jogo, oferecemos aos nossos usuários a possibilidade de se excluir de todas as formas de apostas em nosso site por um período de sua escolha no menu suspenso abaixo.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, os saques serão possíveis. Por favor, consulte",termsAndConditions:"os Termos e Condições",selfExclusionText4:"para ver o processo exato; no entanto, os depósitos ou apostas estarão restritos. No caso de autoexclusão permanente, a revogação só será possível mediante solicitação por escrito e deve ocorrer não antes de seis meses após o pedido inicial. Observe que outra forma de solicitar a autoexclusão é entrar em contato com o Serviço de Atendimento ao Cliente da seguinte forma:",selfExclusionText5:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados con el juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período de tiempo a su elección en el menú desplegable a continuación.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período elegido. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, los retiros serán posibles. Por favor, consulte",termsAndConditions:"Términos y Condiciones",selfExclusionText4:"para ver el proceso exacto; sin embargo, los depósitos o apuestas estarán restringidos. En caso de autoexclusión permanente, la revocación solo será posible mediante solicitud escrita y no antes de seis meses después de la solicitud inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactar al Servicio al Cliente de la siguiente manera:",selfExclusionText5:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, aşağıdaki açılır menüden seçebileceğiniz bir süre boyunca sitemizdeki tüm bahislerden kendilerini hariç tutma olanağı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçilen süre boyunca ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir zaman dilimi seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca para çekme işlemleri mümkün olacaktır. Lütfen kontrol edin",termsAndConditions:"Hüküm ve Koşullar",selfExclusionText4:"tam süreci görmek için; ancak para yatırma veya bahis yapma kısıtlanacaktır. Kalıcı hariç tutma durumunda, iptal yalnızca yazılı talep üzerine ve ilk başvurudan en az altı ay sonra mümkün olacaktır. Kendi kendini hariç tutma talebinde bulunmanın alternatif bir yolu olarak aşağıdaki şekilde Müşteri Hizmetleri ile iletişime geçebilirsiniz:",selfExclusionText5:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar"}};/**
|
|
5
|
+
`,dt.MISSING_INTL_API,n);var K=e.getPluralRules(r,{type:c.pluralType}).select(d-(c.offset||0));F=c.options[K]||c.options.other}if(!F)throw new ts(c.value,d,Object.keys(c.options),n);a.push.apply(a,pr(F.value,r,e,o,i,d-(c.offset||0)));continue}}return qu(a)}function Ku(t,r){return r?B(B(B({},t||{}),r||{}),Object.keys(t).reduce(function(e,o){return e[o]=B(B({},t[o]),r[o]||{}),e},{})):t}function Ju(t,r){return r?Object.keys(t).reduce(function(e,o){return e[o]=Ku(t[o],r[o]),e},B({},t)):t}function Qr(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}function Zu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.number),strategy:Jr.variadic}),getDateTimeFormat:Kr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.dateTime),strategy:Jr.variadic}),getPluralRules:Kr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,nt([void 0],e,!1)))},{cache:Qr(t.pluralRules),strategy:Jr.variadic})}}var Qu=function(){function t(r,e,o,i){e===void 0&&(e=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ne.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return pr(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=i||{};n.formatters;var a=Ml(n,["formatters"]);this.ast=t.__parse(r,B(B({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ju(t.formats,o),this.formatters=i&&i.formatters||Zu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(r);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=Yu,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function ec(t,r){if(r==null)return;if(r in t)return t[r];const e=r.split(".");let o=t;for(let i=0;i<e.length;i++)if(typeof o=="object"){if(i>0){const s=e.slice(i,e.length).join(".");if(s in o){o=o[s];break}}o=o[e[i]]}else o=void 0;return o}const Ne={},tc=(t,r,e)=>e&&(r in Ne||(Ne[r]={}),t in Ne[r]||(Ne[r][t]=e),e),Dn=(t,r)=>{if(r==null)return;if(r in Ne&&t in Ne[r])return Ne[r][t];const e=Nr(r);for(let o=0;o<e.length;o++){const i=e[o],s=oc(i,t);if(s)return tc(t,r,s)}};let ui;const Xt=Mr({});function rc(t){return ui[t]||null}function kn(t){return t in ui}function oc(t,r){if(!kn(t))return null;const e=rc(t);return ec(e,r)}function ic(t){if(t==null)return;const r=Nr(t);for(let e=0;e<r.length;e++){const o=r[e];if(kn(o))return o}}function On(t,...r){delete Ne[t],Xt.update(e=>(e[t]=uu.all([e[t]||{},...r]),e))}bt([Xt],([t])=>Object.keys(t));Xt.subscribe(t=>ui=t);const fr={};function sc(t,r){fr[t].delete(r),fr[t].size===0&&delete fr[t]}function Mn(t){return fr[t]}function nc(t){return Nr(t).map(r=>{const e=Mn(r);return[r,e?[...e]:[]]}).filter(([,r])=>r.length>0)}function $o(t){return t==null?!1:Nr(t).some(r=>{var e;return(e=Mn(r))==null?void 0:e.size})}function ac(t,r){return Promise.all(r.map(o=>(sc(t,o),o().then(i=>i.default||i)))).then(o=>On(t,...o))}const At={};function In(t){if(!$o(t))return t in At?At[t]:Promise.resolve();const r=nc(t);return At[t]=Promise.all(r.map(([e,o])=>ac(e,o))).then(()=>{if($o(t))return In(t);delete At[t]}),At[t]}const lc={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},uc={fallbackLocale:null,loadingDelay:200,formats:lc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},cc=uc;function pt(){return cc}const eo=Mr(!1);var hc=Object.defineProperty,dc=Object.defineProperties,pc=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,os=(t,r,e)=>r in t?hc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,_c=(t,r)=>{for(var e in r||(r={}))fc.call(r,e)&&os(t,e,r[e]);if(rs)for(var e of rs(r))mc.call(r,e)&&os(t,e,r[e]);return t},gc=(t,r)=>dc(t,pc(r));let Ho;const xr=Mr(null);function is(t){return t.split("-").map((r,e,o)=>o.slice(0,e+1).join("-")).reverse()}function Nr(t,r=pt().fallbackLocale){const e=is(t);return r?[...new Set([...e,...is(r)])]:e}function We(){return Ho!=null?Ho:void 0}xr.subscribe(t=>{Ho=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const bc=t=>{if(t&&ic(t)&&$o(t)){const{loadingDelay:r}=pt();let e;return typeof window!="undefined"&&We()!=null&&r?e=window.setTimeout(()=>eo.set(!0),r):eo.set(!0),In(t).then(()=>{xr.set(t)}).finally(()=>{clearTimeout(e),eo.set(!1)})}return xr.set(t)},yt=gc(_c({},xr),{set:bc}),Lr=t=>{const r=Object.create(null);return o=>{const i=JSON.stringify(o);return i in r?r[i]:r[i]=t(o)}};var yc=Object.defineProperty,wr=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ss=(t,r,e)=>r in t?yc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ci=(t,r)=>{for(var e in r||(r={}))Nn.call(r,e)&&ss(t,e,r[e]);if(wr)for(var e of wr(r))Ln.call(r,e)&&ss(t,e,r[e]);return t},vt=(t,r)=>{var e={};for(var o in t)Nn.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&wr)for(var o of wr(t))r.indexOf(o)<0&&Ln.call(t,o)&&(e[o]=t[o]);return e};const Ht=(t,r)=>{const{formats:e}=pt();if(t in e&&r in e[t])return e[t][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${t} format.`)},vc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return o&&(i=Ht("number",o)),new Intl.NumberFormat(e,i)}),xc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return o?i=Ht("date",o):Object.keys(i).length===0&&(i=Ht("date","short")),new Intl.DateTimeFormat(e,i)}),wc=Lr(t=>{var r=t,{locale:e,format:o}=r,i=vt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return o?i=Ht("time",o):Object.keys(i).length===0&&(i=Ht("time","short")),new Intl.DateTimeFormat(e,i)}),Ec=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return vc(ci({locale:e},o))},Sc=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return xc(ci({locale:e},o))},Ac=(t={})=>{var r=t,{locale:e=We()}=r,o=vt(r,["locale"]);return wc(ci({locale:e},o))},Cc=Lr((t,r=We())=>new Qu(t,r,pt().formats,{ignoreTag:pt().ignoreTag})),Tc=(t,r={})=>{var e,o,i,s;let n=r;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=We(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Dn(t,l);if(!c)c=(s=(i=(o=(e=pt()).handleMissingMessage)==null?void 0:o.call(e,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?s:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=Cc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},Pc=(t,r)=>Ac(r).format(t),Dc=(t,r)=>Sc(r).format(t),kc=(t,r)=>Ec(r).format(t),Oc=(t,r=We())=>Dn(t,r),Mc=bt([yt,Xt],()=>Tc);bt([yt],()=>Pc);bt([yt],()=>Dc);bt([yt],()=>kc);bt([yt,Xt],()=>Oc);window.emWidgets={topic:Gl};const Ic=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var $n={exports:{}};(function(t,r){(function(e,o){t.exports=o()})(ql,function(){var e=1e3,o=6e4,i=36e5,s="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",p="year",f="date",v="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],m=w%100;return"["+w+(g[(m-20)%10]||g[m]||g[0])+"]"}},F=function(w,g,m){var x=String(w);return!x||x.length>=g?w:""+Array(g+1-x.length).join(m)+w},K={s:F,z:function(w){var g=-w.utcOffset(),m=Math.abs(g),x=Math.floor(m/60),_=m%60;return(g<=0?"+":"-")+F(x,2,"0")+":"+F(_,2,"0")},m:function w(g,m){if(g.date()<m.date())return-w(m,g);var x=12*(m.year()-g.year())+(m.month()-g.month()),_=g.clone().add(x,h),A=m-_<0,E=g.clone().add(x+(A?-1:1),h);return+(-(x+(m-_)/(A?_-E:E-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:p,w:c,d:u,D:f,h:l,m:a,s:n,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},q="en",W={};W[q]=O;var ae="$isDayjsObject",ye=function(w){return w instanceof ve||!(!w||!w[ae])},pe=function w(g,m,x){var _;if(!g)return q;if(typeof g=="string"){var A=g.toLowerCase();W[A]&&(_=A),m&&(W[A]=m,_=A);var E=g.split("-");if(!_&&E.length>1)return w(E[0])}else{var z=g.name;W[z]=g,_=z}return!x&&_&&(q=_),_||!x&&q},j=function(w,g){if(ye(w))return w.clone();var m=typeof g=="object"?g:{};return m.date=w,m.args=arguments,new ve(m)},M=K;M.l=pe,M.i=ye,M.w=function(w,g){return j(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ve=function(){function w(m){this.$L=pe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ae]=!0}var g=w.prototype;return g.parse=function(m){this.$d=function(x){var _=x.date,A=x.utc;if(_===null)return new Date(NaN);if(M.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var E=_.match(P);if(E){var z=E[2]-1||0,$=(E[7]||"0").substring(0,3);return A?new Date(Date.UTC(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,$)):new Date(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,$)}}return new Date(_)}(m),this.init()},g.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return this.$d.toString()!==v},g.isSame=function(m,x){var _=j(m);return this.startOf(x)<=_&&_<=this.endOf(x)},g.isAfter=function(m,x){return j(m)<this.startOf(x)},g.isBefore=function(m,x){return this.endOf(x)<j(m)},g.$g=function(m,x,_){return M.u(m)?this[x]:this.set(_,m)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(m,x){var _=this,A=!!M.u(x)||x,E=M.p(m),z=function(V,k){var le=M.w(_.$u?Date.UTC(_.$y,k,V):new Date(_.$y,k,V),_);return A?le:le.endOf(u)},$=function(V,k){return M.w(_.toDate()[V].apply(_.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(k)),_)},R=this.$W,X=this.$M,J=this.$D,fe="set"+(this.$u?"UTC":"");switch(E){case p:return A?z(1,0):z(31,11);case h:return A?z(1,X):z(0,X+1);case c:var me=this.$locale().weekStart||0,y=(R<me?R+7:R)-me;return z(A?J-y:J+(6-y),X);case u:case f:return $(fe+"Hours",0);case l:return $(fe+"Minutes",1);case a:return $(fe+"Seconds",2);case n:return $(fe+"Milliseconds",3);default:return this.clone()}},g.endOf=function(m){return this.startOf(m,!1)},g.$set=function(m,x){var _,A=M.p(m),E="set"+(this.$u?"UTC":""),z=(_={},_[u]=E+"Date",_[f]=E+"Date",_[h]=E+"Month",_[p]=E+"FullYear",_[l]=E+"Hours",_[a]=E+"Minutes",_[n]=E+"Seconds",_[s]=E+"Milliseconds",_)[A],$=A===u?this.$D+(x-this.$W):x;if(A===h||A===p){var R=this.clone().set(f,1);R.$d[z]($),R.init(),this.$d=R.set(f,Math.min(this.$D,R.daysInMonth())).$d}else z&&this.$d[z]($);return this.init(),this},g.set=function(m,x){return this.clone().$set(m,x)},g.get=function(m){return this[M.p(m)]()},g.add=function(m,x){var _,A=this;m=Number(m);var E=M.p(x),z=function(X){var J=j(A);return M.w(J.date(J.date()+Math.round(X*m)),A)};if(E===h)return this.set(h,this.$M+m);if(E===p)return this.set(p,this.$y+m);if(E===u)return z(1);if(E===c)return z(7);var $=(_={},_[a]=o,_[l]=i,_[n]=e,_)[E]||1,R=this.$d.getTime()+m*$;return M.w(R,this)},g.subtract=function(m,x){return this.add(-1*m,x)},g.format=function(m){var x=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var A=m||"YYYY-MM-DDTHH:mm:ssZ",E=M.z(this),z=this.$H,$=this.$m,R=this.$M,X=_.weekdays,J=_.months,fe=_.meridiem,me=function(k,le,he,ze){return k&&(k[le]||k(x,A))||he[le].slice(0,ze)},y=function(k){return M.s(z%12||12,k,"0")},V=fe||function(k,le,he){var ze=k<12?"AM":"PM";return he?ze.toLowerCase():ze};return A.replace(D,function(k,le){return le||function(he){switch(he){case"YY":return String(x.$y).slice(-2);case"YYYY":return M.s(x.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return me(_.monthsShort,R,J,3);case"MMMM":return me(J,R);case"D":return x.$D;case"DD":return M.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return me(_.weekdaysMin,x.$W,X,2);case"ddd":return me(_.weekdaysShort,x.$W,X,3);case"dddd":return X[x.$W];case"H":return String(z);case"HH":return M.s(z,2,"0");case"h":return y(1);case"hh":return y(2);case"a":return V(z,$,!0);case"A":return V(z,$,!1);case"m":return String($);case"mm":return M.s($,2,"0");case"s":return String(x.$s);case"ss":return M.s(x.$s,2,"0");case"SSS":return M.s(x.$ms,3,"0");case"Z":return E}return null}(k)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(m,x,_){var A,E=this,z=M.p(x),$=j(m),R=($.utcOffset()-this.utcOffset())*o,X=this-$,J=function(){return M.m(E,$)};switch(z){case p:A=J()/12;break;case h:A=J();break;case d:A=J()/3;break;case c:A=(X-R)/6048e5;break;case u:A=(X-R)/864e5;break;case l:A=X/i;break;case a:A=X/o;break;case n:A=X/e;break;default:A=X}return _?A:M.a(A)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return W[this.$L]},g.locale=function(m,x){if(!m)return this.$L;var _=this.clone(),A=pe(m,x,!0);return A&&(_.$L=A),_},g.clone=function(){return M.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),Oe=ve.prototype;return j.prototype=Oe,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",f]].forEach(function(w){Oe[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),j.extend=function(w,g){return w.$i||(w(g,ve,j),w.$i=!0),j},j.locale=pe,j.isDayjs=ye,j.unix=function(w){return j(1e3*w)},j.en=W[q],j.Ls=W,j.p={},j})})($n);var Nc=$n.exports;const to=hn(Nc);function ns(t,r){On(t,r)}function Lc(t){yt.set(t)}const as={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognise that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a period of your choosing from the drop-down menu below.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During a self-exclusion period, withdrawals will be possible, please check",termsAndConditions:"Terms and Conditions",selfExclusionText4:"to see the exact process; however, depositing funds or placing bets will be restricted. In the case of permanent self-exclusion, revocation is only possible upon written request and must occur no sooner than six months after the initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText5:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們認識到賭博可能帶來危害,因此為防止與賭博相關的問題,我們為用戶提供了排除本站所有投注形式的功能,您可從下拉菜單中選擇一個期間。",selfExclusionText2:'自我排除將從設置時開始生效,持續您選擇的期間。請在下方選擇一個時間範圍,然後點擊"保存"。',selfExclusionText3:"在自我排除期間,可進行提款操作,請查看",termsAndConditions:"條款和細則",selfExclusionText4:"了解具體流程;但存款或下注將受到限制。如選擇永久自我排除,撤銷申請僅可通過書面申請,且必須在最初申請六個月後才能進行。請注意,另一種請求自我排除的方法是通過以下方式聯繫客服:",selfExclusionText5:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible. Pour prévenir les problèmes liés au jeu, nous offrons à nos utilisateurs la possibilité de s’exclure de toutes les formes de paris sur notre site pour une durée de votre choix, à sélectionner dans le menu déroulant ci-dessous.",selfExclusionText2:"L'auto-exclusion prend effet dès qu'elle est définie pour la période choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant une période d'auto-exclusion, les retraits seront possibles. Veuillez consulter",termsAndConditions:"les Termes et Conditions",selfExclusionText4:"pour connaître le processus exact ; cependant, les dépôts et les paris seront restreints. En cas d'auto-exclusion permanente, la révocation n'est possible que sur demande écrite et ne peut avoir lieu avant six mois après la demande initiale. Veuillez noter qu'une autre façon de demander l'auto-exclusion est de contacter le service client comme suit :",selfExclusionText5:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate acestora, oferim utilizatorilor posibilitatea de a se exclude de la toate formele de pariere de pe site-ul nostru pentru o perioadă la alegerea dvs. din meniul derulant de mai jos.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul setării pentru perioada aleasă. Selectați un interval de timp mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"Pe durata perioadei de auto-excludere, retragerile vor fi posibile. Vă rugăm să verificați",termsAndConditions:"Termenii și Condițiile",selfExclusionText4:"pentru a vedea procesul exact; cu toate acestea, depunerile sau pariurile vor fi restricționate. În cazul auto-excluderii permanente, revocarea este posibilă doar printr-o cerere scrisă și nu mai devreme de șase luni de la aplicarea inițială. Rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți după cum urmează:",selfExclusionText5:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados con el juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período de tiempo a su elección en el menú desplegable a continuación.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período elegido. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, los retiros serán posibles. Por favor, consulte",termsAndConditions:"Términos y Condiciones",selfExclusionText4:"para ver el proceso exacto; sin embargo, los depósitos o apuestas estarán restringidos. En caso de autoexclusión permanente, la revocación solo será posible mediante solicitud escrita y no antes de seis meses después de la solicitud inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactar al Servicio al Cliente de la siguiente manera:",selfExclusionText5:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para evitar problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se excluírem de todas as formas de apostas no nosso site por um período à sua escolha no menu suspenso abaixo.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, os levantamentos serão possíveis. Por favor, consulte",termsAndConditions:"os Termos e Condições",selfExclusionText4:"para ver o processo exato; no entanto, os depósitos ou apostas serão restringidos. No caso de autoexclusão permanente, a revogação só será possível mediante pedido por escrito e deve ocorrer não antes de seis meses após a solicitação inicial. Note que outra forma de solicitar autoexclusão é contactar o Serviço de Atendimento ao Cliente da seguinte forma:",selfExclusionText5:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga kako bismo spriječili probleme povezane s kockanjem, nudimo korisnicima mogućnost isključenja iz svih oblika klađenja na našoj stranici na razdoblje po vašem izboru iz donjeg padajućeg izbornika.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka postavljanja za odabrano razdoblje. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja, isplate će biti moguće. Molimo provjerite",termsAndConditions:"Uvjeti i odredbe",selfExclusionText4:"za točan proces; međutim, polaganje sredstava ili postavljanje oklada bit će ograničeno. U slučaju trajnog samoisključenja, povlačenje je moguće samo uz pisani zahtjev i ne ranije od šest mjeseci nakon početne prijave. Napominjemo da alternativni način za traženje samoisključenja uključuje kontaktiranje korisničke službe na sljedeći način:",selfExclusionText5:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, então, para prevenir problemas relacionados ao jogo, oferecemos aos nossos usuários a possibilidade de se excluir de todas as formas de apostas em nosso site por um período de sua escolha no menu suspenso abaixo.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, os saques serão possíveis. Por favor, consulte",termsAndConditions:"os Termos e Condições",selfExclusionText4:"para ver o processo exato; no entanto, os depósitos ou apostas estarão restritos. No caso de autoexclusão permanente, a revogação só será possível mediante solicitação por escrito e deve ocorrer não antes de seis meses após o pedido inicial. Observe que outra forma de solicitar a autoexclusão é entrar em contato com o Serviço de Atendimento ao Cliente da seguinte forma:",selfExclusionText5:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados con el juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período de tiempo a su elección en el menú desplegable a continuación.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período elegido. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, los retiros serán posibles. Por favor, consulte",termsAndConditions:"Términos y Condiciones",selfExclusionText4:"para ver el proceso exacto; sin embargo, los depósitos o apuestas estarán restringidos. En caso de autoexclusión permanente, la revocación solo será posible mediante solicitud escrita y no antes de seis meses después de la solicitud inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactar al Servicio al Cliente de la siguiente manera:",selfExclusionText5:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, aşağıdaki açılır menüden seçebileceğiniz bir süre boyunca sitemizdeki tüm bahislerden kendilerini hariç tutma olanağı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçilen süre boyunca ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir zaman dilimi seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca para çekme işlemleri mümkün olacaktır. Lütfen kontrol edin",termsAndConditions:"Hüküm ve Koşullar",selfExclusionText4:"tam süreci görmek için; ancak para yatırma veya bahis yapma kısıtlanacaktır. Kalıcı hariç tutma durumunda, iptal yalnızca yazılı talep üzerine ve ilk başvurudan en az altı ay sonra mümkün olacaktır. Kendi kendini hariç tutma talebinde bulunmanın alternatif bir yolu olarak aşağıdaki şekilde Müşteri Hizmetleri ile iletişime geçebilirsiniz:",selfExclusionText5:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar"}};/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
8
8
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -18,13 +18,13 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var ro;const Er=window,cs=Er.trustedTypes,zc=cs?cs.emptyScript:"",hs=Er.reactiveElementPolyfillSupport,Bo={toAttribute(t,r){switch(r){case Boolean:t=t?zc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,r){let e=t;switch(r){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(o){e=null}}return e}},
|
|
21
|
+
*/var ro;const Er=window,cs=Er.trustedTypes,zc=cs?cs.emptyScript:"",hs=Er.reactiveElementPolyfillSupport,Bo={toAttribute(t,r){switch(r){case Boolean:t=t?zc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,r){let e=t;switch(r){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(o){e=null}}return e}},Hn=(t,r)=>r!==t&&(r==r||t==t),oo={attribute:!0,type:String,converter:Bo,reflect:!1,hasChanged:Hn},zo="finalized";let it=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(r){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(r)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,o)=>{const i=this._$Ep(o,e);i!==void 0&&(this._$Ev.set(i,o),r.push(i))}),r}static createProperty(r,e=oo){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(r,e),!e.noAccessor&&!this.prototype.hasOwnProperty(r)){const o=typeof r=="symbol"?Symbol():"__"+r,i=this.getPropertyDescriptor(r,o,e);i!==void 0&&Object.defineProperty(this.prototype,r,i)}}static getPropertyDescriptor(r,e,o){return{get(){return this[e]},set(i){const s=this[r];this[e]=i,this.requestUpdate(r,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)||oo}static finalize(){if(this.hasOwnProperty(zo))return!1;this[zo]=!0;const r=Object.getPrototypeOf(this);if(r.finalize(),r.h!==void 0&&(this.h=[...r.h]),this.elementProperties=new Map(r.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of o)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const o=new Set(r.flat(1/0).reverse());for(const i of o)e.unshift(us(i))}else r!==void 0&&e.push(us(r));return e}static _$Ep(r,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof r=="string"?r.toLowerCase():void 0}_$Eu(){var r;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(r=this.constructor.h)===null||r===void 0||r.forEach(e=>e(this))}addController(r){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)===null||o===void 0||o.call(r))}removeController(r){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(r)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((r,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var r;const e=(r=this.shadowRoot)!==null&&r!==void 0?r:this.attachShadow(this.constructor.shadowRootOptions);return Bc(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$ES)===null||r===void 0||r.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$ES)===null||r===void 0||r.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(r,e,o){this._$AK(r,o)}_$EO(r,e,o=oo){var i;const s=this.constructor._$Ep(r,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Bo).toAttribute(e,o.type);this._$El=r,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(r,e){var o;const i=this.constructor,s=i._$Ev.get(r);if(s!==void 0&&this._$El!==s){const n=i.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Bo;this._$El=s,this[s]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(r,e,o){let i=!0;r!==void 0&&(((o=o||this.constructor.getPropertyOptions(r)).hasChanged||Hn)(this[r],e)?(this._$AL.has(r)||this._$AL.set(r,e),o.reflect===!0&&this._$El!==r&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(r,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return St(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,s)=>this[s]=i),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(o)}willUpdate(r){}_$AE(r){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(r){return!0}update(r){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(r){}firstUpdated(r){}};it[zo]=!0,it.elementProperties=new Map,it.elementStyles=[],it.shadowRootOptions={mode:"open"},hs==null||hs({ReactiveElement:it}),((ro=Er.reactiveElementVersions)!==null&&ro!==void 0?ro:Er.reactiveElementVersions=[]).push("1.6.3");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/var io;const Sr=window,ft=Sr.trustedTypes,ds=ft?ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fo="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,
|
|
25
|
+
*/var io;const Sr=window,ft=Sr.trustedTypes,ds=ft?ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fo="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,Bn="?"+Ie,Fc=`<${Bn}>`,Ge=document,Bt=()=>Ge.createComment(""),zt=t=>t===null||typeof t!="object"&&typeof t!="function",zn=Array.isArray,Rc=t=>zn(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",so=`[
|
|
26
26
|
\f\r]`,Ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ps=/-->/g,fs=/>/g,Re=RegExp(`>|${so}(?:([^\\s"'>=/]+)(${so}*=${so}*(?:[^
|
|
27
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ms=/'/g,_s=/"/g,
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ms=/'/g,_s=/"/g,Fn=/^(?:script|style|textarea|title)$/i,mt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),gs=new WeakMap,Ue=Ge.createTreeWalker(Ge,129,null,!1);function Rn(t,r){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ds!==void 0?ds.createHTML(r):r}const Uc=(t,r)=>{const e=t.length-1,o=[];let i,s=r===2?"<svg>":"",n=Ct;for(let a=0;a<e;a++){const l=t[a];let u,c,h=-1,d=0;for(;d<l.length&&(n.lastIndex=d,c=n.exec(l),c!==null);)d=n.lastIndex,n===Ct?c[1]==="!--"?n=ps:c[1]!==void 0?n=fs:c[2]!==void 0?(Fn.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=Re):c[3]!==void 0&&(n=Re):n===Re?c[0]===">"?(n=i!=null?i:Ct,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?Re:c[3]==='"'?_s:ms):n===_s||n===ms?n=Re:n===ps||n===fs?n=Ct:(n=Re,i=void 0);const p=n===Re&&t[a+1].startsWith("/>")?" ":"";s+=n===Ct?l+Fc:h>=0?(o.push(u),l.slice(0,h)+Fo+l.slice(h)+Ie+p):l+Ie+(h===-2?(o.push(void 0),a):p)}return[Rn(t,s+(t[e]||"<?>")+(r===2?"</svg>":"")),o]};class Ft{constructor({strings:r,_$litType$:e},o){let i;this.parts=[];let s=0,n=0;const a=r.length-1,l=this.parts,[u,c]=Uc(r,e);if(this.el=Ft.createElement(u,o),Ue.currentNode=this.el.content,e===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(i=Ue.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const d of i.getAttributeNames())if(d.endsWith(Fo)||d.startsWith(Ie)){const p=c[n++];if(h.push(d),p!==void 0){const f=i.getAttribute(p.toLowerCase()+Fo).split(Ie),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:f,ctor:v[1]==="."?Vc:v[1]==="?"?Gc:v[1]==="@"?Wc:$r})}else l.push({type:6,index:s})}for(const d of h)i.removeAttribute(d)}if(Fn.test(i.tagName)){const h=i.textContent.split(Ie),d=h.length-1;if(d>0){i.textContent=ft?ft.emptyScript:"";for(let p=0;p<d;p++)i.append(h[p],Bt()),Ue.nextNode(),l.push({type:2,index:++s});i.append(h[d],Bt())}}}else if(i.nodeType===8)if(i.data===Bn)l.push({type:2,index:s});else{let h=-1;for(;(h=i.data.indexOf(Ie,h+1))!==-1;)l.push({type:7,index:s}),h+=Ie.length-1}s++}}static createElement(r,e){const o=Ge.createElement("template");return o.innerHTML=r,o}}function _t(t,r,e=t,o){var i,s,n,a;if(r===mt)return r;let l=o!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[o]:e._$Cl;const u=zt(r)?void 0:r._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(t),l._$AT(t,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(r=_t(t,l._$AS(t,r.values),l,o)),r}class jc{constructor(r,e){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var e;const{el:{content:o},parts:i}=this._$AD,s=((e=r==null?void 0:r.creationScope)!==null&&e!==void 0?e:Ge).importNode(o,!0);Ue.currentNode=s;let n=Ue.nextNode(),a=0,l=0,u=i[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Kt(n,n.nextSibling,this,r):u.type===1?c=new u.ctor(n,u.name,u.strings,this,r):u.type===6&&(c=new qc(n,this,r)),this._$AV.push(c),u=i[++l]}a!==(u==null?void 0:u.index)&&(n=Ue.nextNode(),a++)}return Ue.currentNode=Ge,s}v(r){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(r,o,e),e+=o.strings.length-2):o._$AI(r[e])),e++}}class Kt{constructor(r,e,o,i){var s;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=r,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=(s=i==null?void 0:i.isConnected)===null||s===void 0||s}get _$AU(){var r,e;return(e=(r=this._$AM)===null||r===void 0?void 0:r._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let r=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=e.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,e=this){r=_t(this,r,e),zt(r)?r===te||r==null||r===""?(this._$AH!==te&&this._$AR(),this._$AH=te):r!==this._$AH&&r!==mt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):Rc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==te&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(Ge.createTextNode(r)),this._$AH=r}g(r){var e;const{values:o,_$litType$:i}=r,s=typeof i=="number"?this._$AC(r):(i.el===void 0&&(i.el=Ft.createElement(Rn(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===s)this._$AH.v(o);else{const n=new jc(s,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(r){let e=gs.get(r.strings);return e===void 0&&gs.set(r.strings,e=new Ft(r)),e}T(r){zn(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const s of r)i===e.length?e.push(o=new Kt(this.k(Bt()),this.k(Bt()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(r=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);r&&r!==this._$AB;){const i=r.nextSibling;r.remove(),r=i}}setConnected(r){var e;this._$AM===void 0&&(this._$Cp=r,(e=this._$AP)===null||e===void 0||e.call(this,r))}}class $r{constructor(r,e,o,i,s){this.type=1,this._$AH=te,this._$AN=void 0,this.element=r,this.name=e,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,e=this,o,i){const s=this.strings;let n=!1;if(s===void 0)r=_t(this,r,e,0),n=!zt(r)||r!==this._$AH&&r!==mt,n&&(this._$AH=r);else{const a=r;let l,u;for(r=s[0],l=0;l<s.length-1;l++)u=_t(this,a[o+l],e,l),u===mt&&(u=this._$AH[l]),n||(n=!zt(u)||u!==this._$AH[l]),u===te?r=te:r!==te&&(r+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}n&&!i&&this.j(r)}j(r){r===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r!=null?r:"")}}class Vc extends $r{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===te?void 0:r}}const Yc=ft?ft.emptyScript:"";class Gc extends $r{constructor(){super(...arguments),this.type=4}j(r){r&&r!==te?this.element.setAttribute(this.name,Yc):this.element.removeAttribute(this.name)}}class Wc extends $r{constructor(r,e,o,i,s){super(r,e,o,i,s),this.type=5}_$AI(r,e=this){var o;if((r=(o=_t(this,r,e,0))!==null&&o!==void 0?o:te)===mt)return;const i=this._$AH,s=r===te&&i!==te||r.capture!==i.capture||r.once!==i.once||r.passive!==i.passive,n=r!==te&&(i===te||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,r):this._$AH.handleEvent(r)}}class qc{constructor(r,e,o){this.element=r,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(r){_t(this,r)}}const bs=Sr.litHtmlPolyfillSupport;bs==null||bs(Ft,Kt),((io=Sr.litHtmlVersions)!==null&&io!==void 0?io:Sr.litHtmlVersions=[]).push("2.8.0");const Xc=(t,r,e)=>{var o,i;const s=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:r;let n=s._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new Kt(r.insertBefore(Bt(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -36,11 +36,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
38
38
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
39
|
-
*/const
|
|
39
|
+
*/const Un=[];function jn(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Jc(t){return jn(customElements.get(t))}function Zc(t=[]){return[t].flat(1/0).filter(r=>r instanceof pi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function G(t,r,e={}){t&&Jc(t)&&console.warn(`The custom element definition for "${t}"
|
|
40
40
|
was finalized before a style module was registered.
|
|
41
41
|
Make sure to add component specific style modules before
|
|
42
|
-
importing the corresponding custom element.`),r=Zc(r),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,r,e):
|
|
43
|
-
`),r.content.appendChild(e)}function rh(t){const r=`${t}-default-theme`,e=Ro().filter(o=>o.moduleId!==r&&Qc(o.themeFor,t)).map(o=>ir(or({},o),{styles:[...
|
|
42
|
+
importing the corresponding custom element.`),r=Zc(r),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,r,e):Un.push({themeFor:t,styles:r,include:e.include,moduleId:e.moduleId})}function Ro(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Un}function Qc(t,r){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(r))}function eh(t=""){let r=0;return t.startsWith("lumo-")||t.startsWith("material-")?r=1:t.startsWith("vaadin-")&&(r=2),r}function Vn(t){const r=[];return t.include&&[].concat(t.include).forEach(e=>{const o=Ro().find(i=>i.moduleId===e);o?r.push(...Vn(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),r}function th(t,r){const e=document.createElement("style");e.innerHTML=t.map(o=>o.cssText).join(`
|
|
43
|
+
`),r.content.appendChild(e)}function rh(t){const r=`${t}-default-theme`,e=Ro().filter(o=>o.moduleId!==r&&Qc(o.themeFor,t)).map(o=>ir(or({},o),{styles:[...Vn(o),...o.styles],includePriority:eh(o.moduleId)})).sort((o,i)=>i.includePriority-o.includePriority);return e.length>0?e:Ro().filter(o=>o.moduleId===r)}const qe=t=>class extends Kc(t){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||jn(this)||th(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...rh(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,n)=>n===i.lastIndexOf(s))}};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
46
46
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -602,7 +602,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
602
602
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
603
603
|
Code distributed by Google as part of the polymer project is also
|
|
604
604
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
605
|
-
*/const
|
|
605
|
+
*/const Yn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const hh=Yn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const r=document.createElement("div");return r.attachShadow({mode:"open"}),r.shadowRoot.adoptedStyleSheets=[t],r.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let dh=window.Polymer&&window.Polymer.rootPath||_i(document.baseURI||window.location.href),Ar=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Cr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ph=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Gn=window.Polymer&&window.Polymer.legacyOptimizations||!1,Wn=window.Polymer&&window.Polymer.legacyWarnings||!1,fh=window.Polymer&&window.Polymer.syncInitialRender||!1,Uo=window.Polymer&&window.Polymer.legacyUndefined||!1,mh=window.Polymer&&window.Polymer.orderedComputed||!1,vs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,_h=window.Polymer&&window.Polymer.fastDomIf||!1,xs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let gh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
606
606
|
@license
|
|
607
607
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
608
608
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -618,7 +618,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
618
618
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
619
619
|
Code distributed by Google as part of the polymer project is also
|
|
620
620
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
621
|
-
*/let gi={},
|
|
621
|
+
*/let gi={},qn={};function ws(t,r){gi[t]=qn[t.toLowerCase()]=r}function Es(t){return gi[t]||qn[t.toLowerCase()]}function yh(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Rt extends HTMLElement{static get observedAttributes(){return["id"]}static import(r,e){if(r){let o=Es(r);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(r,e,o,i){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const r=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Nt(this.getAttribute("assetpath")||"",r.baseURI);this.__assetpath=_i(e)}return this.__assetpath}register(r){if(r=r||this.id,r){if(Cr&&Es(r)!==void 0)throw ws(r,null),new Error(`strictTemplatePolicy: dom-module ${r} re-registered`);this.id=r,ws(r,this),yh(this)}}}Rt.prototype.modules=gi;customElements.define("dom-module",Rt);/**
|
|
622
622
|
@license
|
|
623
623
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
624
624
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -626,7 +626,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
626
626
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
627
627
|
Code distributed by Google as part of the polymer project is also
|
|
628
628
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
629
|
-
*/const vh="link[rel=import][type~=css]",xh="include",Ss="shady-unscoped";function
|
|
629
|
+
*/const vh="link[rel=import][type~=css]",xh="include",Ss="shady-unscoped";function Xn(t){return Rt.import(t)}function As(t){let r=t.body?t.body:t;const e=mi(r.textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function wh(t){const r=t.trim().split(/\s+/),e=[];for(let o=0;o<r.length;o++)e.push(...Eh(r[o]));return e}function Eh(t){const r=Xn(t);if(!r)return console.warn("Could not find style data in module named",t),[];if(r._styles===void 0){const e=[];e.push(...Jn(r));const o=r.querySelector("template");o&&e.push(...Kn(o,r.assetpath)),r._styles=e}return r._styles}function Kn(t,r){if(!t._styles){const e=[],o=t.content.querySelectorAll("style");for(let i=0;i<o.length;i++){let s=o[i],n=s.getAttribute(xh);n&&e.push(...wh(n).filter(function(a,l,u){return u.indexOf(a)===l})),r&&(s.textContent=mi(s.textContent,r)),e.push(s)}t._styles=e}return t._styles}function Sh(t){let r=Xn(t);return r?Jn(r):[]}function Jn(t){const r=[],e=t.querySelectorAll(vh);for(let o=0;o<e.length;o++){let i=e[o];if(i.import){const s=i.import,n=i.hasAttribute(Ss);if(n&&!s._unscopedStyle){const a=As(s);a.setAttribute(Ss,""),s._unscopedStyle=a}else s._style||(s._style=As(s));r.push(n?s._unscopedStyle:s._style)}}return r}/**
|
|
630
630
|
@license
|
|
631
631
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
632
632
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -642,7 +642,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
642
642
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
643
643
|
Code distributed by Google as part of the polymer project is also
|
|
644
644
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
645
|
-
*/function jo(t){return t.indexOf(".")>=0}function Xe(t){let r=t.indexOf(".");return r===-1?t:t.slice(0,r)}function
|
|
645
|
+
*/function jo(t){return t.indexOf(".")>=0}function Xe(t){let r=t.indexOf(".");return r===-1?t:t.slice(0,r)}function Zn(t,r){return t.indexOf(r+".")===0}function Ut(t,r){return r.indexOf(t+".")===0}function jt(t,r,e){return r+e.slice(t.length)}function Ah(t,r){return t===r||Zn(t,r)||Ut(t,r)}function Ot(t){if(Array.isArray(t)){let r=[];for(let e=0;e<t.length;e++){let o=t[e].toString().split(".");for(let i=0;i<o.length;i++)r.push(o[i])}return r.join(".")}else return t}function Qn(t){return Array.isArray(t)?Ot(t).split("."):t.toString().split(".")}function ce(t,r,e){let o=t,i=Qn(r);for(let s=0;s<i.length;s++){if(!o)return;let n=i[s];o=o[n]}return e&&(e.path=i.join(".")),o}function Cs(t,r,e){let o=t,i=Qn(r),s=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(o=o[a],!o)return}o[s]=e}else o[r]=e;return i.join(".")}/**
|
|
646
646
|
@license
|
|
647
647
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
648
648
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -650,7 +650,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
650
650
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
651
651
|
Code distributed by Google as part of the polymer project is also
|
|
652
652
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
653
|
-
*/const Tr={},Ch=/-[a-z]/g,Th=/([A-Z])/g;function
|
|
653
|
+
*/const Tr={},Ch=/-[a-z]/g,Th=/([A-Z])/g;function ea(t){return Tr[t]||(Tr[t]=t.indexOf("-")<0?t:t.replace(Ch,r=>r[1].toUpperCase()))}function Br(t){return Tr[t]||(Tr[t]=t.replace(Th,"-$1").toLowerCase())}/**
|
|
654
654
|
@license
|
|
655
655
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
656
656
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -658,7 +658,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
658
658
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
659
659
|
Code distributed by Google as part of the polymer project is also
|
|
660
660
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
661
|
-
*/let Ph=0,
|
|
661
|
+
*/let Ph=0,ta=0,at=[],Dh=0,Vo=!1,ra=document.createTextNode("");new window.MutationObserver(kh).observe(ra,{characterData:!0});function kh(){Vo=!1;const t=at.length;for(let r=0;r<t;r++){let e=at[r];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}at.splice(0,t),ta+=t}const Oh={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},oa={run(t){return Vo||(Vo=!0,ra.textContent=Dh++),at.push(t),Ph++},cancel(t){const r=t-ta;if(r>=0){if(!at[r])throw new Error("invalid async handle: "+t);at[r]=null}}};/**
|
|
662
662
|
@license
|
|
663
663
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
664
664
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -666,7 +666,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
666
666
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
667
667
|
Code distributed by Google as part of the polymer project is also
|
|
668
668
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
669
|
-
*/const Mh=ia
|
|
669
|
+
*/const Mh=oa,ia=Q(t=>{class r extends t{static createProperties(o){const i=this.prototype;for(let s in o)s in i||i._createPropertyAccessor(s)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,i){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,i))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[o];return i||(i=this.constructor.attributeNameForProperty(o),this.__dataAttributes[i]=o),i}_definePropertyAccessor(o,i){Object.defineProperty(this,o,{get(){return this.__data[o]},set:i?function(){}:function(s){this._setPendingProperty(o,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,i){this._setPendingProperty(o,i)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,i,s){let n=this.__data[o],a=this._shouldPropertyChange(o,i,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=i,this.__dataPending[o]=i),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Mh.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const o=this.__data,i=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(o,i,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,i,s)),this.__dataCounter--}_shouldPropertiesChange(o,i,s){return!!i}_propertiesChanged(o,i,s){}_shouldPropertyChange(o,i,s){return s!==i&&(s===s||i===i)}attributeChangedCallback(o,i,s,n){i!==s&&this._attributeToProperty(o,s),super.attributeChangedCallback&&super.attributeChangedCallback(o,i,s,n)}_attributeToProperty(o,i,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(i,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,i,s){this.__serializing=!0,s=arguments.length<3?this[o]:s,this._valueToNodeAttribute(this,s,i||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,i,s){const n=this._serializeValue(i);(s==="class"||s==="name"||s==="slot")&&(o=ie(o)),n===void 0?o.removeAttribute(s):o.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,i){switch(i){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return r});/**
|
|
670
670
|
@license
|
|
671
671
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
672
672
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -674,7 +674,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
674
674
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
675
675
|
Code distributed by Google as part of the polymer project is also
|
|
676
676
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
677
|
-
*/const
|
|
677
|
+
*/const sa={};let lr=HTMLElement.prototype;for(;lr;){let t=Object.getOwnPropertyNames(lr);for(let r=0;r<t.length;r++)sa[t[r]]=!0;lr=Object.getPrototypeOf(lr)}const Ih=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Nh(t,r){if(!sa[r]){let e=t[r];e!==void 0&&(t.__data?t._setPendingProperty(r,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[r]=e))}}const Lh=Q(t=>{const r=ia(t);class e extends r{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let s=0;s<i.length;s++)this.prototype._createPropertyAccessor(ea(i[s]))}static attributeNameForProperty(i){return Br(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let s in i)this._setProperty(s,i[s])}_ensureAttribute(i,s){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,s,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(Ih(i))return i;try{return JSON.stringify(i)}catch(s){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,s){let n;switch(s){case Object:try{n=JSON.parse(i)}catch(a){n=i}break;case Array:try{n=JSON.parse(i)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,s);break}return n}_definePropertyAccessor(i,s){Nh(this,i),super._definePropertyAccessor(i,s)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return e});/**
|
|
678
678
|
@license
|
|
679
679
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
680
680
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -682,7 +682,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
682
682
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
683
683
|
Code distributed by Google as part of the polymer project is also
|
|
684
684
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
685
|
-
*/const $h={"dom-if":!0,"dom-repeat":!0};let Ts=!1,Ps=!1;function Hh(){if(!Ts){Ts=!0;const t=document.createElement("textarea");t.placeholder="a",Ps=t.placeholder===t.textContent}return Ps}function Bh(t){Hh()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const zh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:r=>r});return(r,e,o)=>{const i=e.getAttribute(o);if(t&&o.startsWith("on-")){r.setAttribute(o,t.createScript(i,o));return}r.setAttribute(o,i)}})();function Fh(t){let r=t.getAttribute("is");if(r&&$h[r]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(r),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];zh(t,e,o),e.removeAttribute(o)}}return t}function
|
|
685
|
+
*/const $h={"dom-if":!0,"dom-repeat":!0};let Ts=!1,Ps=!1;function Hh(){if(!Ts){Ts=!0;const t=document.createElement("textarea");t.placeholder="a",Ps=t.placeholder===t.textContent}return Ps}function Bh(t){Hh()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const zh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:r=>r});return(r,e,o)=>{const i=e.getAttribute(o);if(t&&o.startsWith("on-")){r.setAttribute(o,t.createScript(i,o));return}r.setAttribute(o,i)}})();function Fh(t){let r=t.getAttribute("is");if(r&&$h[r]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(r),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];zh(t,e,o),e.removeAttribute(o)}}return t}function na(t,r){let e=r.parentInfo&&na(t,r.parentInfo);if(e){for(let o=e.firstChild,i=0;o;o=o.nextSibling)if(r.parentIndex===i++)return o}else return t}function Rh(t,r,e,o){o.id&&(r[o.id]=e)}function Uh(t,r,e){if(e.events&&e.events.length)for(let o=0,i=e.events,s;o<i.length&&(s=i[o]);o++)t._addMethodEventListenerToNode(r,s.name,s.value,t)}function jh(t,r,e,o){e.templateInfo&&(r._templateInfo=e.templateInfo,r._parentTemplateInfo=o)}function Vh(t,r,e){return t=t._methodHost||t,function(i){t[e]?t[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const Yh=Q(t=>{class r extends t{static _parseTemplate(o,i){if(!o._templateInfo){let s=o._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!i,s.stripWhiteSpace=i&&i.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,s,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,i,s){return this._parseTemplateNode(o.content,i,s)}static _parseTemplateNode(o,i,s){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,s)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),Bh(a),a.firstChild&&this._parseTemplateChildNodes(a,i,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,s)||n),n||s.noted}static _parseTemplateChildNodes(o,i,s){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Fh(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,o.removeChild(c),c=l;if(i.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,i,s){let n=o,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,i,s){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(o,i,s,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(o,i,s,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(o){let i=o._templateInfo;return i&&i.content||o.content}_stampTemplate(o,i){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),i=i||this.constructor._parseTemplate(o);let s=i.nodeInfoList,n=i.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,c=s.length,h;u<c&&(h=s[u]);u++){let d=l[u]=na(a,h);Rh(this,a.$,d,h),jh(this,d,h,i),Uh(this,d,h)}return a=a,a}_addMethodEventListenerToNode(o,i,s,n){n=n||o;let a=Vh(n,i,s);return this._addEventListenerToNode(o,i,a),a}_addEventListenerToNode(o,i,s){o.addEventListener(i,s)}_removeEventListenerFromNode(o,i,s){o.removeEventListener(i,s)}}return r});/**
|
|
686
686
|
* @fileoverview
|
|
687
687
|
* @suppress {checkPrototypalTypes}
|
|
688
688
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -692,7 +692,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
692
692
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
693
693
|
* Google as part of the polymer project is also subject to an additional IP
|
|
694
694
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
695
|
-
*/let Vt=0;const Yt=[],H={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},la="__computeInfo",Gh=/[A-Z]/;function lo(t,r,e){let o=t[r];if(!o)o=t[r]={};else if(!t.hasOwnProperty(r)&&(o=t[r]=Object.create(t[r]),e))for(let i in o){let s=o[i],n=o[i]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return o}function Mt(t,r,e,o,i,s){if(r){let n=!1;const a=Vt++;for(let l in e){let u=i?Xe(l):l,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!i||bi(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(t,l,e,o,p.info,i,s),n=!0)}return n}return!1}function Wh(t,r,e,o,i,s,n,a){let l=!1,u=n?Xe(o):o,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||bi(o,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(t,o,i,s,p.info,n,a),l=!0);return l}function bi(t,r){if(r){let e=r.name;return e==t||!!(r.structured&&Qn(e,t))||!!(r.wildcard&&Ut(e,t))}else return!0}function Ds(t,r,e,o,i){let s=typeof i.method=="string"?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function qh(t,r,e,o,i){let s=t[H.NOTIFY],n,a=Vt++;for(let u in r)r[u]&&(s&&Wh(t,s,a,u,e,o,i)||i&&Xh(t,u,e))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Xh(t,r,e){let o=Xe(r);if(o!==r){let i=Br(o)+"-changed";return ua(t,i,e[r],r),!0}return!1}function ua(t,r,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),ie(t).dispatchEvent(new CustomEvent(r,{detail:i}))}function Kh(t,r,e,o,i,s){let a=(s?Xe(r):r)!=r?r:null,l=a?ce(t,a):t.__data[r];a&&l===void 0&&(l=e[r]),ua(t,i.eventName,l,a)}function Jh(t,r,e,o,i){let s,n=t.detail,a=n&&n.path;a?(o=jt(e,o,a),s=n&&n.value):s=t.currentTarget[e],s=i?!s:s,(!r[H.READ_ONLY]||!r[H.READ_ONLY][o])&&r._setPendingPropertyOrPath(o,s,!0,!!a)&&(!n||!n.queueProperty)&&r._invalidateProperties()}function Zh(t,r,e,o,i){let s=t.__data[r];Ar&&(s=Ar(s,i.attrName,"attribute",t)),t._propertyToAttribute(r,i.attrName,s)}function Qh(t,r,e,o){let i=t[H.COMPUTE];if(i)if(mh){Vt++;const s=td(t),n=[];for(let l in r)ks(l,i,n,s,o);let a;for(;a=n.shift();)ca(t,"",r,e,a)&&ks(a.methodInfo,i,n,s,o);Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let s=r;for(;Mt(t,i,s,e,o);)Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const ed=(t,r,e)=>{let o=0,i=r.length-1,s=-1;for(;o<=i;){const n=o+i>>1,a=e.get(r[n].methodInfo)-e.get(t.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),r.splice(s,0,t)},ks=(t,r,e,o,i)=>{const s=i?Xe(t):t,n=r[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Vt&&(!i||bi(t,l.trigger))&&(l.info.lastRun=Vt,ed(l.info,e,o))}};function td(t){let r=t.constructor.__orderedComputedDeps;if(!r){r=new Map;const e=t[H.COMPUTE];let{counts:o,ready:i,total:s}=rd(t),n;for(;n=i.shift();){r.set(n,r.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--o[u]===0&&i.push(u)})}s!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=r}return r}function rd(t){const r=t[la],e={},o=t[H.COMPUTE],i=[];let s=0;for(let n in r){const a=r[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)r[n]||i.push(n);return{counts:e,ready:i,total:s}}function ca(t,r,e,o,i){let s=Yo(t,r,e,o,i);if(s===Yt)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function od(t,r,e){let o=t.__dataLinkedPaths;if(o){let i;for(let s in o){let n=o[s];Ut(s,r)?(i=jt(s,n,r),t._setPendingPropertyOrPath(i,e,!0,!0)):Ut(n,r)&&(i=jt(n,s,r),t._setPendingPropertyOrPath(i,e,!0,!0))}}}function uo(t,r,e,o,i,s,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),ld(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Br(i)+"-changed",a.listenerNegate=c}let l=r.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,id(t,r,a,c,l)}}function id(t,r,e,o,i){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let s=o.dependencies,n={index:i,binding:e,part:o,evaluator:t};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=da(l),l.wildcard=!0),t._addTemplatePropertyEffect(r,l.rootProperty,{fn:sd,info:n,trigger:l})}}}function sd(t,r,e,o,i,s,n){let a=n[i.index],l=i.binding,u=i.part;if(s&&u.source&&r.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[r];r=jt(u.source,l.target,r),a._setPendingPropertyOrPath(r,c,!1,!0)&&t._enqueueClient(a)}else{let c=i.evaluator._evaluateBinding(t,u,r,e,o,s);c!==Yt&&nd(t,a,l,u,c)}}function nd(t,r,e,o,i){if(i=ad(r,i,e,o),Ar&&(i=Ar(i,e.target,e.kind,r)),e.kind=="attribute")t._valueToNodeAttribute(r,i,e.target);else{let s=e.target;r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[s]?(!r[H.READ_ONLY]||!r[H.READ_ONLY][s])&&r._setPendingProperty(s,i)&&t._enqueueClient(r):t._setUnmanagedPropertyToNode(r,s,i)}}function ad(t,r,e,o){if(e.isCompound){let i=t.__dataCompoundStorage[e.target];i[o.compoundIndex]=r,r=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(r=r==null?"":r),r}function ld(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function ud(t,r){let{nodeList:e,nodeInfoList:o}=r;if(o.length)for(let i=0;i<o.length;i++){let s=o[i],n=e[i],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];cd(n,u),hd(n,t,u)}n.__dataHost=t}}function cd(t,r){if(r.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=r.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let s=r.target;e[s]=i,r.literal&&r.kind=="property"&&(s==="className"&&(t=ie(t)),t[s]=r.literal)}}function hd(t,r,e){if(e.listenerEvent){let o=e.parts[0];t.addEventListener(e.listenerEvent,function(i){Jh(i,r,e.target,o.source,o.negate)})}}function Os(t,r,e,o,i,s){s=r.static||s&&(typeof s!="object"||s[r.methodName]);let n={methodName:r.methodName,args:r.args,methodInfo:i,dynamicFn:s};for(let a=0,l;a<r.args.length&&(l=r.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return s&&t._addPropertyEffect(r.methodName,e,{fn:o,info:n}),n}function Yo(t,r,e,o,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,r,e);return a===Yt?Yt:n.apply(s,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const dd=[],ha="(?:[a-zA-Z_$][\\w.:$\\-*]*)",pd="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",fd="(?:'(?:[^'\\\\]|\\\\.)*')",md='(?:"(?:[^"\\\\]|\\\\.)*")',_d="(?:"+fd+"|"+md+")",Ms="(?:("+ha+"|"+pd+"|"+_d+")\\s*)",gd="(?:"+Ms+"(?:,\\s*"+Ms+")*)",bd="(?:\\(\\s*(?:"+gd+"?)\\)\\s*)",yd="("+ha+"\\s*"+bd+"?)",vd="(\\[\\[|{{)\\s*",xd="(?:]]|}})",wd="(?:(!)\\s*)?",Ed=vd+wd+yd+xd,Is=new RegExp(Ed,"g");function Ns(t){let r="";for(let e=0;e<t.length;e++){let o=t[e].literal;r+=o||""}return r}function co(t){let r=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(r){let o={methodName:r[1],static:!0,args:dd};if(r[2].trim()){let i=r[2].replace(/\\,/g,",").split(",");return Sd(i,o)}else return o}return null}function Sd(t,r){return r.args=t.map(function(e){let o=da(e);return o.literal||(r.static=!1),o},this),r}function da(t){let r=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:r,value:"",literal:!1},o=r[0];switch(o==="-"&&(o=r[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=r.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(r),e.literal=!0;break}return e.literal||(e.rootProperty=Xe(r),e.structured=jo(r),e.structured&&(e.wildcard=r.slice(-2)==".*",e.wildcard&&(e.name=r.slice(0,-2)))),e}function Ls(t,r,e){let o=ce(t,e);return o===void 0&&(o=r[e]),o}function pa(t,r,e,o){const i={indexSplices:o};Uo&&!t._overrideLegacyUndefined&&(r.splices=i),t.notifyPath(e+".splices",i),t.notifyPath(e+".length",r.length),Uo&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function Tt(t,r,e,o,i,s){pa(t,r,e,[{index:o,addedCount:i,removed:s,object:r,type:"splice"}])}function Ad(t){return t[0].toUpperCase()+t.substring(1)}const yi=Q(t=>{const r=Yh(Lh(t));class e extends r{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return H}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Pt.length){let i=Pt[Pt.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[H.READ_ONLY];for(let n in i)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,s,n){this._createPropertyAccessor(i,s==H.READ_ONLY);let a=lo(this,s,!0)[i];a||(a=this[s][i]=[]),a.push(n)}_removePropertyEffect(i,s,n){let a=lo(this,s,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,s){let n=this[s];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,H.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,H.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,H.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,H.COMPUTE)}_setPendingPropertyOrPath(i,s,n,a){if(a||Xe(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=ce(this,i);if(i=Cs(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,n))return od(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,n);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,n){(n!==i[s]||typeof n=="object")&&(s==="className"&&(i=ie(i)),i[s]=n)}_setPendingProperty(i,s,n){let a=this.__dataHasPaths&&jo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(a||this[H.NOTIFY]&&this[H.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let n=i[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let n in i)(s||!this[H.READ_ONLY]||!this[H.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Qh(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),Mt(this,this[H.REFLECT],s,n,a),Mt(this,this[H.OBSERVE],s,n,a),l&&qh(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,n){this[H.PROPAGATE]&&Mt(this,this[H.PROPAGATE],i,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,n)}_runEffectsForTemplate(i,s,n,a){const l=(u,c)=>{Mt(this,i.propertyEffects,u,n,c,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};i.runEffects?i.runEffects(l,s,a):l(s,a)}linkPaths(i,s){i=Ot(i),s=Ot(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=Ot(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let n={path:""},a=ce(this,i,n);pa(this,a,n.path,s)}get(i,s){return ce(s||this,i)}set(i,s,n){n?Cs(n,i,s):(!this[H.READ_ONLY]||!this[H.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let n={path:""},a=ce(this,i,n),l=a.length,u=a.push(...s);return s.length&&Tt(this,a,n.path,l,s.length,[]),u}pop(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.pop();return a&&Tt(this,n,s.path,n.length,0,[l]),l}splice(i,s,n,...a){let l={path:""},u=ce(this,i,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,n,...a),(a.length||c.length)&&Tt(this,u,l.path,s,a.length,c),c}shift(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.shift();return a&&Tt(this,n,s.path,0,0,[l]),l}unshift(i,...s){let n={path:""},a=ce(this,i,n),l=a.unshift(...s);return s.length&&Tt(this,a,n.path,0,s.length,[]),l}notifyPath(i,s){let n;if(arguments.length==1){let a={path:""};s=ce(this,i,a),n=a.path}else Array.isArray(i)?n=Ot(i):n=i;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,H.READ_ONLY),s&&(this["_set"+Ad(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,s,n){let a={property:i,method:s,dynamicFn:!!n};this._addPropertyEffect(i,H.OBSERVE,{fn:Ds,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(s,H.OBSERVE,{fn:Ds,info:a,trigger:{name:s}})}_createMethodObserver(i,s){let n=co(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");Os(this,n,H.OBSERVE,Yo,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,H.NOTIFY,{fn:Kh,info:{eventName:Br(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,H.REFLECT,{fn:Zh,info:{attrName:s}})}_createComputedProperty(i,s,n){let a=co(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Os(this,a,H.COMPUTE,ca,i,n);lo(this,la)[i]=l}_marshalArgs(i,s,n){const a=this.__data,l=[];for(let u=0,c=i.length;u<c;u++){let{name:h,structured:d,wildcard:p,value:f,literal:v}=i[u];if(!v)if(p){const P=Ut(h,s),D=Ls(a,n,P?s:h);f={path:P?s:h,value:D,base:P?ce(a,h):D}}else f=d?Ls(a,n,h):a[h];if(Uo&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return Yt;l[u]=f}return l}static addPropertyEffect(i,s,n){this.prototype._addPropertyEffect(i,s,n)}static createPropertyObserver(i,s,n){this.prototype._createPropertyObserver(i,s,n)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,n){this.prototype._createComputedProperty(i,s,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,s,n){let a=i.hostProps=i.hostProps||{};a[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),Pt.push(this);let n=super._stampTemplate(i,s);if(Pt.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,ud(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ie(ie(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,s,n){let a=r._parseTemplateNode.call(this,i,s,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=Ns(l)||" ",uo(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,s,n,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";Gh.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=Ns(u);return d&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(d+=" "+i.getAttribute(a)),i.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&c==="value"&&i.setAttribute(c,""),i.removeAttribute(c),h==="property"&&(a=ta(a)),uo(this,s,n,h,a,u,d),!0}else return r._parseTemplateNodeAttribute.call(this,i,s,n,a,l)}static _parseTemplateNestedTemplate(i,s,n){let a=r._parseTemplateNestedTemplate.call(this,i,s,n);const l=i.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";vs&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(_h&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),vs||(n.parentInfo.noted=!0));else{let p="{";for(let f in d){let v=[{mode:p,source:f,dependencies:[f],hostProp:!0}];uo(this,s,n,"property","_host_"+f,v)}}return a}static _parseBindings(i,s){let n=[],a=0,l;for(;(l=Is.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,p="",f=-1;u=="{"&&(f=h.indexOf("::"))>0&&(p=h.substring(f+2),h=h.substring(0,f),d=!0);let v=co(h),P=[];if(v){let{args:D,methodName:O}=v;for(let K=0;K<D.length;K++){let q=D[K];q.literal||P.push(q)}let F=s.dynamicFns;(F&&F[O]||v.static)&&(P.push(O),v.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:v,dependencies:P,event:p}),a=Is.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(i,s,n,a,l,u){let c;return s.signature?c=Yo(i,n,a,l,s.signature):n!=s.source?c=ce(i,s.source):u&&jo(n)?c=ce(i,n):c=i.__data[n],s.negate&&(c=!c),c}}return e}),Pt=[];/**
|
|
695
|
+
*/let Vt=0;const Yt=[],H={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},aa="__computeInfo",Gh=/[A-Z]/;function lo(t,r,e){let o=t[r];if(!o)o=t[r]={};else if(!t.hasOwnProperty(r)&&(o=t[r]=Object.create(t[r]),e))for(let i in o){let s=o[i],n=o[i]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return o}function Mt(t,r,e,o,i,s){if(r){let n=!1;const a=Vt++;for(let l in e){let u=i?Xe(l):l,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!i||bi(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(t,l,e,o,p.info,i,s),n=!0)}return n}return!1}function Wh(t,r,e,o,i,s,n,a){let l=!1,u=n?Xe(o):o,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||bi(o,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(t,o,i,s,p.info,n,a),l=!0);return l}function bi(t,r){if(r){let e=r.name;return e==t||!!(r.structured&&Zn(e,t))||!!(r.wildcard&&Ut(e,t))}else return!0}function Ds(t,r,e,o,i){let s=typeof i.method=="string"?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function qh(t,r,e,o,i){let s=t[H.NOTIFY],n,a=Vt++;for(let u in r)r[u]&&(s&&Wh(t,s,a,u,e,o,i)||i&&Xh(t,u,e))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Xh(t,r,e){let o=Xe(r);if(o!==r){let i=Br(o)+"-changed";return la(t,i,e[r],r),!0}return!1}function la(t,r,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),ie(t).dispatchEvent(new CustomEvent(r,{detail:i}))}function Kh(t,r,e,o,i,s){let a=(s?Xe(r):r)!=r?r:null,l=a?ce(t,a):t.__data[r];a&&l===void 0&&(l=e[r]),la(t,i.eventName,l,a)}function Jh(t,r,e,o,i){let s,n=t.detail,a=n&&n.path;a?(o=jt(e,o,a),s=n&&n.value):s=t.currentTarget[e],s=i?!s:s,(!r[H.READ_ONLY]||!r[H.READ_ONLY][o])&&r._setPendingPropertyOrPath(o,s,!0,!!a)&&(!n||!n.queueProperty)&&r._invalidateProperties()}function Zh(t,r,e,o,i){let s=t.__data[r];Ar&&(s=Ar(s,i.attrName,"attribute",t)),t._propertyToAttribute(r,i.attrName,s)}function Qh(t,r,e,o){let i=t[H.COMPUTE];if(i)if(mh){Vt++;const s=td(t),n=[];for(let l in r)ks(l,i,n,s,o);let a;for(;a=n.shift();)ua(t,"",r,e,a)&&ks(a.methodInfo,i,n,s,o);Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let s=r;for(;Mt(t,i,s,e,o);)Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const ed=(t,r,e)=>{let o=0,i=r.length-1,s=-1;for(;o<=i;){const n=o+i>>1,a=e.get(r[n].methodInfo)-e.get(t.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),r.splice(s,0,t)},ks=(t,r,e,o,i)=>{const s=i?Xe(t):t,n=r[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Vt&&(!i||bi(t,l.trigger))&&(l.info.lastRun=Vt,ed(l.info,e,o))}};function td(t){let r=t.constructor.__orderedComputedDeps;if(!r){r=new Map;const e=t[H.COMPUTE];let{counts:o,ready:i,total:s}=rd(t),n;for(;n=i.shift();){r.set(n,r.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--o[u]===0&&i.push(u)})}s!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=r}return r}function rd(t){const r=t[aa],e={},o=t[H.COMPUTE],i=[];let s=0;for(let n in r){const a=r[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)r[n]||i.push(n);return{counts:e,ready:i,total:s}}function ua(t,r,e,o,i){let s=Yo(t,r,e,o,i);if(s===Yt)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function od(t,r,e){let o=t.__dataLinkedPaths;if(o){let i;for(let s in o){let n=o[s];Ut(s,r)?(i=jt(s,n,r),t._setPendingPropertyOrPath(i,e,!0,!0)):Ut(n,r)&&(i=jt(n,s,r),t._setPendingPropertyOrPath(i,e,!0,!0))}}}function uo(t,r,e,o,i,s,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),ld(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Br(i)+"-changed",a.listenerNegate=c}let l=r.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,id(t,r,a,c,l)}}function id(t,r,e,o,i){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let s=o.dependencies,n={index:i,binding:e,part:o,evaluator:t};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=ha(l),l.wildcard=!0),t._addTemplatePropertyEffect(r,l.rootProperty,{fn:sd,info:n,trigger:l})}}}function sd(t,r,e,o,i,s,n){let a=n[i.index],l=i.binding,u=i.part;if(s&&u.source&&r.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[r];r=jt(u.source,l.target,r),a._setPendingPropertyOrPath(r,c,!1,!0)&&t._enqueueClient(a)}else{let c=i.evaluator._evaluateBinding(t,u,r,e,o,s);c!==Yt&&nd(t,a,l,u,c)}}function nd(t,r,e,o,i){if(i=ad(r,i,e,o),Ar&&(i=Ar(i,e.target,e.kind,r)),e.kind=="attribute")t._valueToNodeAttribute(r,i,e.target);else{let s=e.target;r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[s]?(!r[H.READ_ONLY]||!r[H.READ_ONLY][s])&&r._setPendingProperty(s,i)&&t._enqueueClient(r):t._setUnmanagedPropertyToNode(r,s,i)}}function ad(t,r,e,o){if(e.isCompound){let i=t.__dataCompoundStorage[e.target];i[o.compoundIndex]=r,r=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(r=r==null?"":r),r}function ld(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function ud(t,r){let{nodeList:e,nodeInfoList:o}=r;if(o.length)for(let i=0;i<o.length;i++){let s=o[i],n=e[i],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];cd(n,u),hd(n,t,u)}n.__dataHost=t}}function cd(t,r){if(r.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=r.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let s=r.target;e[s]=i,r.literal&&r.kind=="property"&&(s==="className"&&(t=ie(t)),t[s]=r.literal)}}function hd(t,r,e){if(e.listenerEvent){let o=e.parts[0];t.addEventListener(e.listenerEvent,function(i){Jh(i,r,e.target,o.source,o.negate)})}}function Os(t,r,e,o,i,s){s=r.static||s&&(typeof s!="object"||s[r.methodName]);let n={methodName:r.methodName,args:r.args,methodInfo:i,dynamicFn:s};for(let a=0,l;a<r.args.length&&(l=r.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return s&&t._addPropertyEffect(r.methodName,e,{fn:o,info:n}),n}function Yo(t,r,e,o,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,r,e);return a===Yt?Yt:n.apply(s,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const dd=[],ca="(?:[a-zA-Z_$][\\w.:$\\-*]*)",pd="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",fd="(?:'(?:[^'\\\\]|\\\\.)*')",md='(?:"(?:[^"\\\\]|\\\\.)*")',_d="(?:"+fd+"|"+md+")",Ms="(?:("+ca+"|"+pd+"|"+_d+")\\s*)",gd="(?:"+Ms+"(?:,\\s*"+Ms+")*)",bd="(?:\\(\\s*(?:"+gd+"?)\\)\\s*)",yd="("+ca+"\\s*"+bd+"?)",vd="(\\[\\[|{{)\\s*",xd="(?:]]|}})",wd="(?:(!)\\s*)?",Ed=vd+wd+yd+xd,Is=new RegExp(Ed,"g");function Ns(t){let r="";for(let e=0;e<t.length;e++){let o=t[e].literal;r+=o||""}return r}function co(t){let r=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(r){let o={methodName:r[1],static:!0,args:dd};if(r[2].trim()){let i=r[2].replace(/\\,/g,",").split(",");return Sd(i,o)}else return o}return null}function Sd(t,r){return r.args=t.map(function(e){let o=ha(e);return o.literal||(r.static=!1),o},this),r}function ha(t){let r=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:r,value:"",literal:!1},o=r[0];switch(o==="-"&&(o=r[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=r.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(r),e.literal=!0;break}return e.literal||(e.rootProperty=Xe(r),e.structured=jo(r),e.structured&&(e.wildcard=r.slice(-2)==".*",e.wildcard&&(e.name=r.slice(0,-2)))),e}function Ls(t,r,e){let o=ce(t,e);return o===void 0&&(o=r[e]),o}function da(t,r,e,o){const i={indexSplices:o};Uo&&!t._overrideLegacyUndefined&&(r.splices=i),t.notifyPath(e+".splices",i),t.notifyPath(e+".length",r.length),Uo&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function Tt(t,r,e,o,i,s){da(t,r,e,[{index:o,addedCount:i,removed:s,object:r,type:"splice"}])}function Ad(t){return t[0].toUpperCase()+t.substring(1)}const yi=Q(t=>{const r=Yh(Lh(t));class e extends r{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return H}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Pt.length){let i=Pt[Pt.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[H.READ_ONLY];for(let n in i)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,s,n){this._createPropertyAccessor(i,s==H.READ_ONLY);let a=lo(this,s,!0)[i];a||(a=this[s][i]=[]),a.push(n)}_removePropertyEffect(i,s,n){let a=lo(this,s,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,s){let n=this[s];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,H.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,H.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,H.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,H.COMPUTE)}_setPendingPropertyOrPath(i,s,n,a){if(a||Xe(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=ce(this,i);if(i=Cs(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,n))return od(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,n);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,n){(n!==i[s]||typeof n=="object")&&(s==="className"&&(i=ie(i)),i[s]=n)}_setPendingProperty(i,s,n){let a=this.__dataHasPaths&&jo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(a||this[H.NOTIFY]&&this[H.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let n=i[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let n in i)(s||!this[H.READ_ONLY]||!this[H.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Qh(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),Mt(this,this[H.REFLECT],s,n,a),Mt(this,this[H.OBSERVE],s,n,a),l&&qh(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,n){this[H.PROPAGATE]&&Mt(this,this[H.PROPAGATE],i,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,n)}_runEffectsForTemplate(i,s,n,a){const l=(u,c)=>{Mt(this,i.propertyEffects,u,n,c,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};i.runEffects?i.runEffects(l,s,a):l(s,a)}linkPaths(i,s){i=Ot(i),s=Ot(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=Ot(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let n={path:""},a=ce(this,i,n);da(this,a,n.path,s)}get(i,s){return ce(s||this,i)}set(i,s,n){n?Cs(n,i,s):(!this[H.READ_ONLY]||!this[H.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let n={path:""},a=ce(this,i,n),l=a.length,u=a.push(...s);return s.length&&Tt(this,a,n.path,l,s.length,[]),u}pop(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.pop();return a&&Tt(this,n,s.path,n.length,0,[l]),l}splice(i,s,n,...a){let l={path:""},u=ce(this,i,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,n,...a),(a.length||c.length)&&Tt(this,u,l.path,s,a.length,c),c}shift(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.shift();return a&&Tt(this,n,s.path,0,0,[l]),l}unshift(i,...s){let n={path:""},a=ce(this,i,n),l=a.unshift(...s);return s.length&&Tt(this,a,n.path,0,s.length,[]),l}notifyPath(i,s){let n;if(arguments.length==1){let a={path:""};s=ce(this,i,a),n=a.path}else Array.isArray(i)?n=Ot(i):n=i;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,H.READ_ONLY),s&&(this["_set"+Ad(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,s,n){let a={property:i,method:s,dynamicFn:!!n};this._addPropertyEffect(i,H.OBSERVE,{fn:Ds,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(s,H.OBSERVE,{fn:Ds,info:a,trigger:{name:s}})}_createMethodObserver(i,s){let n=co(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");Os(this,n,H.OBSERVE,Yo,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,H.NOTIFY,{fn:Kh,info:{eventName:Br(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,H.REFLECT,{fn:Zh,info:{attrName:s}})}_createComputedProperty(i,s,n){let a=co(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Os(this,a,H.COMPUTE,ua,i,n);lo(this,aa)[i]=l}_marshalArgs(i,s,n){const a=this.__data,l=[];for(let u=0,c=i.length;u<c;u++){let{name:h,structured:d,wildcard:p,value:f,literal:v}=i[u];if(!v)if(p){const P=Ut(h,s),D=Ls(a,n,P?s:h);f={path:P?s:h,value:D,base:P?ce(a,h):D}}else f=d?Ls(a,n,h):a[h];if(Uo&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return Yt;l[u]=f}return l}static addPropertyEffect(i,s,n){this.prototype._addPropertyEffect(i,s,n)}static createPropertyObserver(i,s,n){this.prototype._createPropertyObserver(i,s,n)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,n){this.prototype._createComputedProperty(i,s,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,s,n){let a=i.hostProps=i.hostProps||{};a[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),Pt.push(this);let n=super._stampTemplate(i,s);if(Pt.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,ud(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ie(ie(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,s,n){let a=r._parseTemplateNode.call(this,i,s,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=Ns(l)||" ",uo(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,s,n,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";Gh.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=Ns(u);return d&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(d+=" "+i.getAttribute(a)),i.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&c==="value"&&i.setAttribute(c,""),i.removeAttribute(c),h==="property"&&(a=ea(a)),uo(this,s,n,h,a,u,d),!0}else return r._parseTemplateNodeAttribute.call(this,i,s,n,a,l)}static _parseTemplateNestedTemplate(i,s,n){let a=r._parseTemplateNestedTemplate.call(this,i,s,n);const l=i.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";vs&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(_h&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),vs||(n.parentInfo.noted=!0));else{let p="{";for(let f in d){let v=[{mode:p,source:f,dependencies:[f],hostProp:!0}];uo(this,s,n,"property","_host_"+f,v)}}return a}static _parseBindings(i,s){let n=[],a=0,l;for(;(l=Is.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,p="",f=-1;u=="{"&&(f=h.indexOf("::"))>0&&(p=h.substring(f+2),h=h.substring(0,f),d=!0);let v=co(h),P=[];if(v){let{args:D,methodName:O}=v;for(let K=0;K<D.length;K++){let q=D[K];q.literal||P.push(q)}let F=s.dynamicFns;(F&&F[O]||v.static)&&(P.push(O),v.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:v,dependencies:P,event:p}),a=Is.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(i,s,n,a,l,u){let c;return s.signature?c=Yo(i,n,a,l,s.signature):n!=s.source?c=ce(i,s.source):u&&jo(n)?c=ce(i,n):c=i.__data[n],s.negate&&(c=!c),c}}return e}),Pt=[];/**
|
|
696
696
|
@license
|
|
697
697
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
698
698
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -708,7 +708,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
708
708
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
709
709
|
Code distributed by Google as part of the polymer project is also
|
|
710
710
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
711
|
-
*/function Cd(t){const r={};for(let e in t){const o=t[e];r[e]=typeof o=="function"?{type:o}:o}return r}const Td=Q(t=>{const r=
|
|
711
|
+
*/function Cd(t){const r={};for(let e in t){const o=t[e];r[e]=typeof o=="function"?{type:o}:o}return r}const Td=Q(t=>{const r=ia(t);function e(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof i?n:null}function o(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=Cd(a))}s.__ownProperties=n}return s.__ownProperties}class i extends r{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
|
|
712
712
|
* @fileoverview
|
|
713
713
|
* @suppress {checkPrototypalTypes}
|
|
714
714
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -718,7 +718,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
718
718
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
719
719
|
* Google as part of the polymer project is also subject to an additional IP
|
|
720
720
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
721
|
-
*/const Pd="3.5.
|
|
721
|
+
*/const Pd="3.5.2",$s=window.ShadyCSS&&window.ShadyCSS.cssBuild,Dd=Q(t=>{const r=Td(yi(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,c,h){if(!$s){const d=u.content.querySelectorAll("style"),p=Kn(u),f=Sh(c),v=u.content.firstElementChild;for(let D=0;D<f.length;D++){let O=f[D];O.textContent=l._processStyleText(O.textContent,h),u.content.insertBefore(O,v)}let P=0;for(let D=0;D<p.length;D++){let O=p[D],F=d[P];F!==O?(O=O.cloneNode(!0),F.parentNode.insertBefore(O,F)):P++,O.textContent=l._processStyleText(O.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),gh&&$s&&hh){const d=u.content.querySelectorAll("style");if(d){let p="";Array.from(d).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let u=null;if(l&&(!Cr||ph)&&(u=Rt.import(l,"template"),Cr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends r{static get polymerElementVersion(){return Pd}static _finalizeClass(){r._finalizeClass.call(this);const u=o(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Gn||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)i(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=_i(u.url);else{const c=Rt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=dh,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return mi(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Nt(h):"";s(this,c,u,d),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const c=ie(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),fh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Nt(this.importPath)),Nt(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,r._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return Wn&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
|
|
722
722
|
@license
|
|
723
723
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
724
724
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -726,7 +726,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
726
726
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
727
727
|
Code distributed by Google as part of the polymer project is also
|
|
728
728
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
729
|
-
*/const Hs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class
|
|
729
|
+
*/const Hs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class pa{constructor(r,e){ma(r,e);const o=e.reduce((i,s,n)=>i+fa(s)+r[n+1],r[0]);this.value=o.toString()}toString(){return this.value}}function fa(t){if(t instanceof pa)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function kd(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof pa)return fa(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Ke=function(r,...e){ma(r,e);const o=document.createElement("template");let i=e.reduce((s,n,a)=>s+kd(n)+r[a+1],r[0]);return Hs&&(i=Hs.createHTML(i)),o.innerHTML=i,o},ma=(t,r)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||r.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
730
730
|
@license
|
|
731
731
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
732
732
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1213,7 +1213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1213
1213
|
* @license
|
|
1214
1214
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1215
1215
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1216
|
-
*/const
|
|
1216
|
+
*/const _a=C`
|
|
1217
1217
|
:host {
|
|
1218
1218
|
top: var(--lumo-space-m);
|
|
1219
1219
|
right: var(--lumo-space-m);
|
|
@@ -1276,11 +1276,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1276
1276
|
opacity: 1;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
`;G("",
|
|
1279
|
+
`;G("",_a,{moduleId:"lumo-overlay"});/**
|
|
1280
1280
|
* @license
|
|
1281
1281
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1282
1282
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1283
|
-
*/const
|
|
1283
|
+
*/const ga=C`
|
|
1284
1284
|
:host([opening]),
|
|
1285
1285
|
:host([closing]) {
|
|
1286
1286
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -1310,7 +1310,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1310
1310
|
opacity: 0;
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
`;G("",
|
|
1313
|
+
`;G("",ga,{moduleId:"lumo-menu-overlay-core"});const Ud=C`
|
|
1314
1314
|
/* Small viewport (bottom sheet) styles */
|
|
1315
1315
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1316
1316
|
@media (max-width: 420px), (max-height: 420px) {
|
|
@@ -1372,7 +1372,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1372
1372
|
transform: translateY(150%);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
`,
|
|
1375
|
+
`,ba=[_a,ga,Ud];G("",ba,{moduleId:"lumo-menu-overlay"});const jd=C`
|
|
1376
1376
|
[part='overlay'] {
|
|
1377
1377
|
/*
|
|
1378
1378
|
Width:
|
|
@@ -1420,7 +1420,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1420
1420
|
max-height: 70vh;
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
`;G("vaadin-date-picker-overlay",[
|
|
1423
|
+
`;G("vaadin-date-picker-overlay",[ba,jd],{moduleId:"lumo-date-picker-overlay"});/**
|
|
1424
1424
|
* @license
|
|
1425
1425
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1426
1426
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2070,7 +2070,485 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2070
2070
|
* @license
|
|
2071
2071
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2072
2072
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2073
|
-
*/const wt=Q(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Qd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,gr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ep(){function t(){return!0}return
|
|
2073
|
+
*/const wt=Q(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Qd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,gr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ep(){function t(){return!0}return ya(t)}function tp(){try{return rp()?!0:op()?gr?!ip():!ep():!1}catch(t){return!1}}function rp(){return localStorage.getItem("vaadin.developmentmode.force")}function op(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function ip(){return!!(gr&&Object.keys(gr).map(r=>gr[r]).filter(r=>r.productionMode).length>0)}function ya(t,r){if(typeof t!="function")return;const e=Qd.exec(t.toString());if(e)try{t=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return t(r)}window.Vaadin=window.Vaadin||{};const Bs=function(t,r){if(window.Vaadin.developmentMode)return ya(t,r)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=tp());function sp(){/*! vaadin-dev-mode:start
|
|
2074
|
+
(function () {
|
|
2075
|
+
'use strict';
|
|
2076
|
+
|
|
2077
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2078
|
+
return typeof obj;
|
|
2079
|
+
} : function (obj) {
|
|
2080
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2081
|
+
};
|
|
2082
|
+
|
|
2083
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2084
|
+
if (!(instance instanceof Constructor)) {
|
|
2085
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2086
|
+
}
|
|
2087
|
+
};
|
|
2088
|
+
|
|
2089
|
+
var createClass = function () {
|
|
2090
|
+
function defineProperties(target, props) {
|
|
2091
|
+
for (var i = 0; i < props.length; i++) {
|
|
2092
|
+
var descriptor = props[i];
|
|
2093
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2094
|
+
descriptor.configurable = true;
|
|
2095
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2096
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2101
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2102
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2103
|
+
return Constructor;
|
|
2104
|
+
};
|
|
2105
|
+
}();
|
|
2106
|
+
|
|
2107
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2108
|
+
return window.Polymer && window.Polymer.version;
|
|
2109
|
+
};
|
|
2110
|
+
|
|
2111
|
+
var StatisticsGatherer = function () {
|
|
2112
|
+
function StatisticsGatherer(logger) {
|
|
2113
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2114
|
+
|
|
2115
|
+
this.now = new Date().getTime();
|
|
2116
|
+
this.logger = logger;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
createClass(StatisticsGatherer, [{
|
|
2120
|
+
key: 'frameworkVersionDetectors',
|
|
2121
|
+
value: function frameworkVersionDetectors() {
|
|
2122
|
+
return {
|
|
2123
|
+
'Flow': function Flow() {
|
|
2124
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2125
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2126
|
+
return window.Vaadin.Flow.clients[key];
|
|
2127
|
+
}).filter(function (client) {
|
|
2128
|
+
return client.getVersionInfo;
|
|
2129
|
+
}).map(function (client) {
|
|
2130
|
+
return client.getVersionInfo().flow;
|
|
2131
|
+
});
|
|
2132
|
+
if (flowVersions.length > 0) {
|
|
2133
|
+
return flowVersions[0];
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2138
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2139
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2140
|
+
return client.getVersionInfo;
|
|
2141
|
+
}).map(function (client) {
|
|
2142
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2143
|
+
});
|
|
2144
|
+
if (frameworkVersions.length > 0) {
|
|
2145
|
+
return frameworkVersions[0];
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
'AngularJs': function AngularJs() {
|
|
2150
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2151
|
+
return window.angular.version.full;
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
'Angular': function Angular() {
|
|
2155
|
+
if (window.ng) {
|
|
2156
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2157
|
+
if (tags.length > 0) {
|
|
2158
|
+
return tags[0].getAttribute("ng-version");
|
|
2159
|
+
}
|
|
2160
|
+
return "Unknown";
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
'Backbone.js': function BackboneJs() {
|
|
2164
|
+
if (window.Backbone) {
|
|
2165
|
+
return window.Backbone.VERSION;
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
'React': function React() {
|
|
2169
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2170
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2171
|
+
// React does not publish the version by default
|
|
2172
|
+
return "unknown";
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
'Ember': function Ember() {
|
|
2176
|
+
if (window.Em && window.Em.VERSION) {
|
|
2177
|
+
return window.Em.VERSION;
|
|
2178
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2179
|
+
return window.Ember.VERSION;
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
'jQuery': function (_jQuery) {
|
|
2183
|
+
function jQuery() {
|
|
2184
|
+
return _jQuery.apply(this, arguments);
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
jQuery.toString = function () {
|
|
2188
|
+
return _jQuery.toString();
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
return jQuery;
|
|
2192
|
+
}(function () {
|
|
2193
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2194
|
+
return jQuery.prototype.jquery;
|
|
2195
|
+
}
|
|
2196
|
+
}),
|
|
2197
|
+
'Polymer': function Polymer() {
|
|
2198
|
+
var version = getPolymerVersion();
|
|
2199
|
+
if (version) {
|
|
2200
|
+
return version;
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
'LitElement': function LitElement() {
|
|
2204
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2205
|
+
if (version) {
|
|
2206
|
+
return version;
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
'LitHtml': function LitHtml() {
|
|
2210
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2211
|
+
if (version) {
|
|
2212
|
+
return version;
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
'Vue.js': function VueJs() {
|
|
2216
|
+
if (window.Vue) {
|
|
2217
|
+
return window.Vue.version;
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
}, {
|
|
2223
|
+
key: 'getUsedVaadinElements',
|
|
2224
|
+
value: function getUsedVaadinElements(elements) {
|
|
2225
|
+
var version = getPolymerVersion();
|
|
2226
|
+
var elementClasses = void 0;
|
|
2227
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2228
|
+
// Check all locations calling the method getEntries() in
|
|
2229
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2230
|
+
// Currently it is only used by BootstrapHandler.
|
|
2231
|
+
if (version && version.indexOf('2') === 0) {
|
|
2232
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2233
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2234
|
+
return window.Vaadin[c];
|
|
2235
|
+
}).filter(function (c) {
|
|
2236
|
+
return c.is;
|
|
2237
|
+
});
|
|
2238
|
+
} else {
|
|
2239
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2240
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2241
|
+
}
|
|
2242
|
+
elementClasses.forEach(function (klass) {
|
|
2243
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2244
|
+
elements[klass.is] = { version: version };
|
|
2245
|
+
});
|
|
2246
|
+
}
|
|
2247
|
+
}, {
|
|
2248
|
+
key: 'getUsedVaadinThemes',
|
|
2249
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2250
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2251
|
+
var theme;
|
|
2252
|
+
var version = getPolymerVersion();
|
|
2253
|
+
if (version && version.indexOf('2') === 0) {
|
|
2254
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2255
|
+
theme = window.Vaadin[themeName];
|
|
2256
|
+
} else {
|
|
2257
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2258
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2259
|
+
}
|
|
2260
|
+
if (theme && theme.version) {
|
|
2261
|
+
themes[themeName] = { version: theme.version };
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
}, {
|
|
2266
|
+
key: 'getFrameworks',
|
|
2267
|
+
value: function getFrameworks(frameworks) {
|
|
2268
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2269
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2270
|
+
var detector = detectors[framework];
|
|
2271
|
+
try {
|
|
2272
|
+
var version = detector();
|
|
2273
|
+
if (version) {
|
|
2274
|
+
frameworks[framework] = { version: version };
|
|
2275
|
+
}
|
|
2276
|
+
} catch (e) {}
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
}, {
|
|
2280
|
+
key: 'gather',
|
|
2281
|
+
value: function gather(storage) {
|
|
2282
|
+
var storedStats = storage.read();
|
|
2283
|
+
var gatheredStats = {};
|
|
2284
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2285
|
+
|
|
2286
|
+
types.forEach(function (type) {
|
|
2287
|
+
gatheredStats[type] = {};
|
|
2288
|
+
if (!storedStats[type]) {
|
|
2289
|
+
storedStats[type] = {};
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
|
|
2293
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2294
|
+
|
|
2295
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2296
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2297
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2298
|
+
|
|
2299
|
+
var now = this.now;
|
|
2300
|
+
types.forEach(function (type) {
|
|
2301
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2302
|
+
keys.forEach(function (key) {
|
|
2303
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2304
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2305
|
+
}
|
|
2306
|
+
// Discards any previously logged version number
|
|
2307
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2308
|
+
storedStats[type][key].lastUsed = now;
|
|
2309
|
+
});
|
|
2310
|
+
});
|
|
2311
|
+
|
|
2312
|
+
var newStats = JSON.stringify(storedStats);
|
|
2313
|
+
storage.write(newStats);
|
|
2314
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2315
|
+
this.logger.debug("New stats: " + newStats);
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}]);
|
|
2319
|
+
return StatisticsGatherer;
|
|
2320
|
+
}();
|
|
2321
|
+
|
|
2322
|
+
var StatisticsStorage = function () {
|
|
2323
|
+
function StatisticsStorage(key) {
|
|
2324
|
+
classCallCheck(this, StatisticsStorage);
|
|
2325
|
+
|
|
2326
|
+
this.key = key;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
createClass(StatisticsStorage, [{
|
|
2330
|
+
key: 'read',
|
|
2331
|
+
value: function read() {
|
|
2332
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2333
|
+
try {
|
|
2334
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2335
|
+
} catch (e) {
|
|
2336
|
+
return {};
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
}, {
|
|
2340
|
+
key: 'write',
|
|
2341
|
+
value: function write(data) {
|
|
2342
|
+
localStorage.setItem(this.key, data);
|
|
2343
|
+
}
|
|
2344
|
+
}, {
|
|
2345
|
+
key: 'clear',
|
|
2346
|
+
value: function clear() {
|
|
2347
|
+
localStorage.removeItem(this.key);
|
|
2348
|
+
}
|
|
2349
|
+
}, {
|
|
2350
|
+
key: 'isEmpty',
|
|
2351
|
+
value: function isEmpty() {
|
|
2352
|
+
var storedStats = this.read();
|
|
2353
|
+
var empty = true;
|
|
2354
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2355
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2356
|
+
empty = false;
|
|
2357
|
+
}
|
|
2358
|
+
});
|
|
2359
|
+
|
|
2360
|
+
return empty;
|
|
2361
|
+
}
|
|
2362
|
+
}]);
|
|
2363
|
+
return StatisticsStorage;
|
|
2364
|
+
}();
|
|
2365
|
+
|
|
2366
|
+
var StatisticsSender = function () {
|
|
2367
|
+
function StatisticsSender(url, logger) {
|
|
2368
|
+
classCallCheck(this, StatisticsSender);
|
|
2369
|
+
|
|
2370
|
+
this.url = url;
|
|
2371
|
+
this.logger = logger;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
createClass(StatisticsSender, [{
|
|
2375
|
+
key: 'send',
|
|
2376
|
+
value: function send(data, errorHandler) {
|
|
2377
|
+
var logger = this.logger;
|
|
2378
|
+
|
|
2379
|
+
if (navigator.onLine === false) {
|
|
2380
|
+
logger.debug("Offline, can't send");
|
|
2381
|
+
errorHandler();
|
|
2382
|
+
return;
|
|
2383
|
+
}
|
|
2384
|
+
logger.debug("Sending data to " + this.url);
|
|
2385
|
+
|
|
2386
|
+
var req = new XMLHttpRequest();
|
|
2387
|
+
req.withCredentials = true;
|
|
2388
|
+
req.addEventListener("load", function () {
|
|
2389
|
+
// Stats sent, nothing more to do
|
|
2390
|
+
logger.debug("Response: " + req.responseText);
|
|
2391
|
+
});
|
|
2392
|
+
req.addEventListener("error", function () {
|
|
2393
|
+
logger.debug("Send failed");
|
|
2394
|
+
errorHandler();
|
|
2395
|
+
});
|
|
2396
|
+
req.addEventListener("abort", function () {
|
|
2397
|
+
logger.debug("Send aborted");
|
|
2398
|
+
errorHandler();
|
|
2399
|
+
});
|
|
2400
|
+
req.open("POST", this.url);
|
|
2401
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2402
|
+
req.send(data);
|
|
2403
|
+
}
|
|
2404
|
+
}]);
|
|
2405
|
+
return StatisticsSender;
|
|
2406
|
+
}();
|
|
2407
|
+
|
|
2408
|
+
var StatisticsLogger = function () {
|
|
2409
|
+
function StatisticsLogger(id) {
|
|
2410
|
+
classCallCheck(this, StatisticsLogger);
|
|
2411
|
+
|
|
2412
|
+
this.id = id;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
createClass(StatisticsLogger, [{
|
|
2416
|
+
key: '_isDebug',
|
|
2417
|
+
value: function _isDebug() {
|
|
2418
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2419
|
+
}
|
|
2420
|
+
}, {
|
|
2421
|
+
key: 'debug',
|
|
2422
|
+
value: function debug(msg) {
|
|
2423
|
+
if (this._isDebug()) {
|
|
2424
|
+
console.info(this.id + ": " + msg);
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
}]);
|
|
2428
|
+
return StatisticsLogger;
|
|
2429
|
+
}();
|
|
2430
|
+
|
|
2431
|
+
var UsageStatistics = function () {
|
|
2432
|
+
function UsageStatistics() {
|
|
2433
|
+
classCallCheck(this, UsageStatistics);
|
|
2434
|
+
|
|
2435
|
+
this.now = new Date();
|
|
2436
|
+
this.timeNow = this.now.getTime();
|
|
2437
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2438
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2439
|
+
|
|
2440
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2441
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2442
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2443
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
createClass(UsageStatistics, [{
|
|
2447
|
+
key: 'maybeGatherAndSend',
|
|
2448
|
+
value: function maybeGatherAndSend() {
|
|
2449
|
+
var _this = this;
|
|
2450
|
+
|
|
2451
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2452
|
+
return;
|
|
2453
|
+
}
|
|
2454
|
+
this.gatherer.gather(this.storage);
|
|
2455
|
+
setTimeout(function () {
|
|
2456
|
+
_this.maybeSend();
|
|
2457
|
+
}, this.gatherDelay * 1000);
|
|
2458
|
+
}
|
|
2459
|
+
}, {
|
|
2460
|
+
key: 'lottery',
|
|
2461
|
+
value: function lottery() {
|
|
2462
|
+
return true;
|
|
2463
|
+
}
|
|
2464
|
+
}, {
|
|
2465
|
+
key: 'currentMonth',
|
|
2466
|
+
value: function currentMonth() {
|
|
2467
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2468
|
+
}
|
|
2469
|
+
}, {
|
|
2470
|
+
key: 'maybeSend',
|
|
2471
|
+
value: function maybeSend() {
|
|
2472
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2473
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2474
|
+
|
|
2475
|
+
if (!firstUse) {
|
|
2476
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2477
|
+
firstUse = this.timeNow;
|
|
2478
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2482
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2483
|
+
return;
|
|
2484
|
+
}
|
|
2485
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2486
|
+
this.logger.debug("This month has already been processed");
|
|
2487
|
+
return;
|
|
2488
|
+
}
|
|
2489
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2490
|
+
// Use random sampling
|
|
2491
|
+
if (this.lottery()) {
|
|
2492
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2493
|
+
} else {
|
|
2494
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2495
|
+
return;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
this.send();
|
|
2499
|
+
}
|
|
2500
|
+
}, {
|
|
2501
|
+
key: 'send',
|
|
2502
|
+
value: function send() {
|
|
2503
|
+
// Ensure we have the latest data
|
|
2504
|
+
this.gatherer.gather(this.storage);
|
|
2505
|
+
|
|
2506
|
+
// Read, send and clean up
|
|
2507
|
+
var data = this.storage.read();
|
|
2508
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2509
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2510
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2511
|
+
var self = this;
|
|
2512
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2513
|
+
// Revert the 'month processed' flag
|
|
2514
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2515
|
+
});
|
|
2516
|
+
}
|
|
2517
|
+
}], [{
|
|
2518
|
+
key: 'version',
|
|
2519
|
+
get: function get$1() {
|
|
2520
|
+
return '2.1.2';
|
|
2521
|
+
}
|
|
2522
|
+
}, {
|
|
2523
|
+
key: 'firstUseKey',
|
|
2524
|
+
get: function get$1() {
|
|
2525
|
+
return 'vaadin.statistics.firstuse';
|
|
2526
|
+
}
|
|
2527
|
+
}, {
|
|
2528
|
+
key: 'monthProcessedKey',
|
|
2529
|
+
get: function get$1() {
|
|
2530
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2531
|
+
}
|
|
2532
|
+
}, {
|
|
2533
|
+
key: 'optOutKey',
|
|
2534
|
+
get: function get$1() {
|
|
2535
|
+
return 'vaadin.statistics.optout';
|
|
2536
|
+
}
|
|
2537
|
+
}]);
|
|
2538
|
+
return UsageStatistics;
|
|
2539
|
+
}();
|
|
2540
|
+
|
|
2541
|
+
try {
|
|
2542
|
+
window.Vaadin = window.Vaadin || {};
|
|
2543
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2544
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2545
|
+
} catch (e) {
|
|
2546
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
}());
|
|
2550
|
+
|
|
2551
|
+
vaadin-dev-mode:end **/}const np=function(){if(typeof Bs=="function")return Bs(sp)};/**
|
|
2074
2552
|
* @license
|
|
2075
2553
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2076
2554
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2078,7 +2556,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2078
2556
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2079
2557
|
* Code distributed by Google as part of the polymer project is also
|
|
2080
2558
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2081
|
-
*/let zs=0,
|
|
2559
|
+
*/let zs=0,va=0;const lt=[];let qo=!1;function ap(){qo=!1;const t=lt.length;for(let r=0;r<t;r++){const e=lt[r];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}lt.splice(0,t),va+=t}const Pr={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},lp={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},up={run(t){qo||(qo=!0,queueMicrotask(()=>ap())),lt.push(t);const r=zs;return zs+=1,r},cancel(t){const r=t-va;if(r>=0){if(!lt[r])throw new Error(`invalid async handle: ${t}`);lt[r]=null}}};/**
|
|
2082
2560
|
@license
|
|
2083
2561
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2084
2562
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2090,11 +2568,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2090
2568
|
* @license
|
|
2091
2569
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2092
2570
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2093
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){np()};let ho;const Fs=new Set,
|
|
2571
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){np()};let ho;const Fs=new Set,xa=t=>class extends zr(t){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Fs.has(e)&&(window.Vaadin.registrations.push(this),Fs.add(e),window.Vaadin.developmentModeCallback&&(ho=Gt.debounce(ho,lp,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),cp(ho)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2094
2572
|
* @license
|
|
2095
2573
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2096
2574
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
-
*/function hp(t){const r=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){r.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return r}function vi(t){return t?new Set(t.split(" ")):new Set}function Fr(t){return t?[...t].join(" "):""}function
|
|
2575
|
+
*/function hp(t){const r=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){r.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return r}function vi(t){return t?new Set(t.split(" ")):new Set}function Fr(t){return t?[...t].join(" "):""}function wa(t,r,e){const o=vi(t.getAttribute(r));o.add(e),t.setAttribute(r,Fr(o))}function dp(t,r,e){const o=vi(t.getAttribute(r));if(o.delete(e),o.size===0){t.removeAttribute(r);return}t.setAttribute(r,Fr(o))}function pp(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
|
|
2098
2576
|
* @license
|
|
2099
2577
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2100
2578
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2102,15 +2580,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2102
2580
|
* @license
|
|
2103
2581
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2104
2582
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2105
|
-
*/let mp=0;function
|
|
2583
|
+
*/let mp=0;function Ea(){return mp++}/**
|
|
2106
2584
|
* @license
|
|
2107
2585
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2108
2586
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2109
|
-
*/class je extends EventTarget{static generateId(r,e){return`${e||"default"}-${r.localName}-${
|
|
2587
|
+
*/class je extends EventTarget{static generateId(r,e){return`${e||"default"}-${r.localName}-${Ea()}`}constructor(r,e,o,i={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l}=i;this.host=r,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(r,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let r=this.getSlotChild();r?(this.node=r,this.initAddedNode(r)):(r=this.attachDefaultNode(),this.initNode(r))}initMultiple(){const r=this.getSlotChildren();if(r.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=r,r.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:r,slotName:e,tagName:o}=this;let i=this.defaultNode;return!i&&o&&(i=document.createElement(o),i instanceof Element&&(e!==""&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&r.appendChild(i),i}getSlotChildren(){const{slotName:r}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===r||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&r==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(r){const{slotInitializer:e}=this;e&&e(r,this.host)}initCustomNode(r){}teardownNode(r){}initAddedNode(r){r!==this.defaultNode&&(this.initCustomNode(r),this.initNode(r))}observeSlot(){const{slotName:r}=this,e=r===""?"slot:not([name])":`slot[name=${r}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new fp(o,({addedNodes:i,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=i.filter(l=>!pp(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2110
2588
|
* @license
|
|
2111
2589
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2112
2590
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2113
|
-
*/class
|
|
2591
|
+
*/class Sa extends je{constructor(r){super(r,"tooltip"),this.setTarget(r)}initCustomNode(r){r.target=this.target,this.ariaTarget!==void 0&&(r.ariaTarget=this.ariaTarget),this.context!==void 0&&(r.context=this.context),this.manual!==void 0&&(r.manual=this.manual),this.opened!==void 0&&(r.opened=this.opened),this.position!==void 0&&(r._position=this.position),this.shouldShow!==void 0&&(r.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(r){this.ariaTarget=r;const e=this.node;e&&(e.ariaTarget=r)}setContext(r){this.context=r;const e=this.node;e&&(e.context=r)}setManual(r){this.manual=r;const e=this.node;e&&(e.manual=r)}setOpened(r){this.opened=r;const e=this.node;e&&(e.opened=r)}setPosition(r){this.position=r;const e=this.node;e&&(e._position=r)}setShouldShow(r){this.shouldShow=r;const e=this.node;e&&(e.shouldShow=r)}setTarget(r){this.target=r;const e=this.node;e&&(e.target=r)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2114
2592
|
* @license
|
|
2115
2593
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2116
2594
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2195,11 +2673,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2195
2673
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2196
2674
|
Code distributed by Google as part of the polymer project is also
|
|
2197
2675
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2198
|
-
*/const bp=!1,yp=t=>t,xi=typeof document.head.style.touchAction=="string",Jo="__polymerGestures",po="__polymerGesturesHandled",Zo="__polymerGesturesTouchAction",Rs=25,Us=5,vp=2,xp=["mousedown","mousemove","mouseup","click"],wp=[0,1,4,2],Ep=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function wi(t){return xp.indexOf(t)>-1}let
|
|
2676
|
+
*/const bp=!1,yp=t=>t,xi=typeof document.head.style.touchAction=="string",Jo="__polymerGestures",po="__polymerGesturesHandled",Zo="__polymerGesturesTouchAction",Rs=25,Us=5,vp=2,xp=["mousedown","mousemove","mouseup","click"],wp=[0,1,4,2],Ep=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function wi(t){return xp.indexOf(t)>-1}let Aa=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Aa=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function Sp(t){if(!(wi(t)||t==="touchend")&&xi&&Aa&&bp)return{passive:!0}}const Ap=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Cp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ye(t){const r=t.type;if(!wi(r))return!1;if(r==="mousemove"){let o=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!Ep&&(o=wp[t.which]||0),!!(o&1)}return(t.button===void 0?0:t.button)===0}function Tp(t){if(t.type==="click"){if(t.detail===0)return!0;const r=Le(t);if(!r.nodeType||r.nodeType!==Node.ELEMENT_NODE)return!0;const e=r.getBoundingClientRect(),o=t.pageX,i=t.pageY;return!(o>=e.left&&o<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const Ae={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Pp(t){let r="auto";const e=Ta(t);for(let o=0,i;o<e.length;o++)if(i=e[o],i[Zo]){r=i[Zo];break}return r}function Ca(t,r,e){t.movefn=r,t.upfn=e,document.addEventListener("mousemove",r),document.addEventListener("mouseup",e)}function ut(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Ta=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ei={},Ve=[];function Dp(t,r){let e=document.elementFromPoint(t,r),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const i=o;if(o=o.shadowRoot.elementFromPoint(t,r),i===o)break;o&&(e=o)}return e}function Le(t){const r=Ta(t);return r.length>0?r[0]:t.target}function kp(t){const r=t.type,o=t.currentTarget[Jo];if(!o)return;const i=o[r];if(!i)return;if(!t[po]&&(t[po]={},r.startsWith("touch"))){const n=t.changedTouches[0];if(r==="touchstart"&&t.touches.length===1&&(Ae.touch.id=n.identifier),Ae.touch.id!==n.identifier)return;xi||(r==="touchstart"||r==="touchmove")&&Op(t)}const s=t[po];if(!s.skip){for(let n=0,a;n<Ve.length;n++)a=Ve[n],i[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Ve.length;n++)a=Ve[n],i[a.name]&&!s[a.name]&&(s[a.name]=!0,a[r](t))}}function Op(t){const r=t.changedTouches[0],e=t.type;if(e==="touchstart")Ae.touch.x=r.clientX,Ae.touch.y=r.clientY,Ae.touch.scrollDecided=!1;else if(e==="touchmove"){if(Ae.touch.scrollDecided)return;Ae.touch.scrollDecided=!0;const o=Pp(t);let i=!1;const s=Math.abs(Ae.touch.x-r.clientX),n=Math.abs(Ae.touch.y-r.clientY);t.cancelable&&(o==="none"?i=!0:o==="pan-x"?i=n>s:o==="pan-y"&&(i=s>n)),i?t.preventDefault():Dr("track")}}function Ee(t,r,e){return Ei[r]?(Mp(t,r,e),!0):!1}function Mp(t,r,e){const o=Ei[r],i=o.deps,s=o.name;let n=t[Jo];n||(t[Jo]=n={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(Ap&&wi(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&t.addEventListener(l,kp,Sp(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);t.addEventListener(r,e),o.touchAction&&Pa(t,o.touchAction)}function Si(t){Ve.push(t),t.emits.forEach(r=>{Ei[r]=t})}function Ip(t){for(let r=0,e;r<Ve.length;r++){e=Ve[r];for(let o=0,i;o<e.emits.length;o++)if(i=e.emits[o],i===t)return e}return null}function Pa(t,r){xi&&t instanceof HTMLElement&&up.run(()=>{t.style.touchAction=r}),t[Zo]=r}function Ai(t,r,e){const o=new Event(r,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,yp(t).dispatchEvent(o),o.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Dr(t){const r=Ip(t);r.info&&(r.info.prevent=!0)}Si({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ut(this.info)},mousedown(t){if(!Ye(t))return;const r=Le(t),e=this,o=s=>{Ye(s)||(Dt("up",r,s),ut(e.info))},i=s=>{Ye(s)&&Dt("up",r,s),ut(e.info)};Ca(this.info,o,i),Dt("down",r,t)},touchstart(t){Dt("down",Le(t),t.changedTouches[0],t)},touchend(t){Dt("up",Le(t),t.changedTouches[0],t)}});function Dt(t,r,e,o){r&&Ai(r,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(i){return Dr(i)}})}Si({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>vp&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ut(this.info)},mousedown(t){if(!Ye(t))return;const r=Le(t),e=this,o=s=>{const n=s.clientX,a=s.clientY;js(e.info,n,a)&&(e.info.state=e.info.started?s.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Dr("tap"),e.info.addMove({x:n,y:a}),Ye(s)||(e.info.state="end",ut(e.info)),r&&fo(e.info,r,s),e.info.started=!0)},i=s=>{e.info.started&&o(s),ut(e.info)};Ca(this.info,o,i),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchmove(t){const r=Le(t),e=t.changedTouches[0],o=e.clientX,i=e.clientY;js(this.info,o,i)&&(this.info.state==="start"&&Dr("tap"),this.info.addMove({x:o,y:i}),fo(this.info,r,e),this.info.state="track",this.info.started=!0)},touchend(t){const r=Le(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),fo(this.info,r,e))}});function js(t,r,e){if(t.prevent)return!1;if(t.started)return!0;const o=Math.abs(t.x-r),i=Math.abs(t.y-e);return o>=Us||i>=Us}function fo(t,r,e){if(!r)return;const o=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],s=i.x-t.x,n=i.y-t.y;let a,l=0;o&&(a=i.x-o.x,l=i.y-o.y),Ai(r,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Dp(e.clientX,e.clientY)}})}Si({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Ye(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ye(t)&&Vs(this.info,t)},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchend(t){Vs(this.info,t.changedTouches[0],t)}});function Vs(t,r,e){const o=Math.abs(r.clientX-t.x),i=Math.abs(r.clientY-t.y),s=Le(e||r);!s||Cp[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(i)||o<=Rs&&i<=Rs||Tp(r))&&(t.prevent||Ai(s,"tap",{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:e}))}/**
|
|
2199
2677
|
* @license
|
|
2200
2678
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2201
2679
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2202
|
-
*/const
|
|
2680
|
+
*/const Da=Q(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2203
2681
|
* @license
|
|
2204
2682
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2205
2683
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2207,11 +2685,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2207
2685
|
* @license
|
|
2208
2686
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2209
2687
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2210
|
-
*/const Np=t=>class extends
|
|
2688
|
+
*/const Np=t=>class extends Da(Rr(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
2211
2689
|
* @license
|
|
2212
2690
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2213
2691
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2214
|
-
*/let Ci=!1;window.addEventListener("keydown",()=>{Ci=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ci=!1},{capture:!0});function Qo(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Lp(){return Ci}function $p(t){const r=t.style;if(r.visibility==="hidden"||r.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Hp(t,r){const e=Math.max(t.tabIndex,0),o=Math.max(r.tabIndex,0);return e===0||o===0?o>e:e>o}function Bp(t,r){const e=[];for(;t.length>0&&r.length>0;)Hp(t[0],r[0])?e.push(r.shift()):e.push(t.shift());return e.concat(t,r)}function ei(t){const r=t.length;if(r<2)return t;const e=Math.ceil(r/2),o=ei(t.slice(0,e)),i=ei(t.slice(e));return Bp(o,i)}function zp(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Fp(t){return t.getRootNode().activeElement===t}function Rp(t){if(!zp(t))return-1;const r=t.getAttribute("tabindex")||0;return Number(r)}function
|
|
2692
|
+
*/let Ci=!1;window.addEventListener("keydown",()=>{Ci=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ci=!1},{capture:!0});function Qo(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Lp(){return Ci}function $p(t){const r=t.style;if(r.visibility==="hidden"||r.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Hp(t,r){const e=Math.max(t.tabIndex,0),o=Math.max(r.tabIndex,0);return e===0||o===0?o>e:e>o}function Bp(t,r){const e=[];for(;t.length>0&&r.length>0;)Hp(t[0],r[0])?e.push(r.shift()):e.push(t.shift());return e.concat(t,r)}function ei(t){const r=t.length;if(r<2)return t;const e=Math.ceil(r/2),o=ei(t.slice(0,e)),i=ei(t.slice(e));return Bp(o,i)}function zp(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Fp(t){return t.getRootNode().activeElement===t}function Rp(t){if(!zp(t))return-1;const r=t.getAttribute("tabindex")||0;return Number(r)}function ka(t,r){if(t.nodeType!==Node.ELEMENT_NODE||$p(t))return!1;const e=t,o=Rp(e);let i=o>0;o>=0&&r.push(e);let s=[];return e.localName==="slot"?s=e.assignedNodes({flatten:!0}):s=(e.shadowRoot||e).children,[...s].forEach(n=>{i=ka(n,r)||i}),i}function Up(t){const r=[];return ka(t,r)?ei(r):r}/**
|
|
2215
2693
|
* @license
|
|
2216
2694
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2217
2695
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2219,15 +2697,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2219
2697
|
* @license
|
|
2220
2698
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2221
2699
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2222
|
-
*/const
|
|
2700
|
+
*/const Oa=t=>class extends Da(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
2223
2701
|
* @license
|
|
2224
2702
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2225
2703
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2226
|
-
*/const jp=t=>class extends Np(
|
|
2704
|
+
*/const jp=t=>class extends Np(Oa(Ti(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
2227
2705
|
* @license
|
|
2228
2706
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2229
2707
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2230
|
-
*/G("vaadin-button",_p,{moduleId:"vaadin-button-styles"});class Vp extends jp(
|
|
2708
|
+
*/G("vaadin-button",_p,{moduleId:"vaadin-button-styles"});class Vp extends jp(xa(qe(wt(He)))){static get is(){return"vaadin-button"}static get template(){return gp(Ke)}ready(){super.ready(),this._tooltipController=new Sa(this),this.addController(this._tooltipController)}}ge(Vp);G("vaadin-date-picker-year",C`
|
|
2231
2709
|
:host([current]) [part='year-number'] {
|
|
2232
2710
|
color: var(--lumo-primary-text-color);
|
|
2233
2711
|
}
|
|
@@ -2541,7 +3019,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2541
3019
|
:host([disabled]) * {
|
|
2542
3020
|
color: var(--lumo-disabled-text-color) !important;
|
|
2543
3021
|
}
|
|
2544
|
-
`,{moduleId:"lumo-month-calendar"});const
|
|
3022
|
+
`,{moduleId:"lumo-month-calendar"});const Ma=document.createElement("template");Ma.innerHTML=`
|
|
2545
3023
|
<style>
|
|
2546
3024
|
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2547
3025
|
50% {
|
|
@@ -2549,7 +3027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2549
3027
|
}
|
|
2550
3028
|
}
|
|
2551
3029
|
</style>
|
|
2552
|
-
`;document.head.appendChild(
|
|
3030
|
+
`;document.head.appendChild(Ma.content);/**
|
|
2553
3031
|
* @license
|
|
2554
3032
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2555
3033
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2610,7 +3088,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2610
3088
|
* @license
|
|
2611
3089
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2612
3090
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2613
|
-
*/const
|
|
3091
|
+
*/const Ia=C`
|
|
2614
3092
|
[part$='button'] {
|
|
2615
3093
|
flex: none;
|
|
2616
3094
|
width: 1em;
|
|
@@ -2637,7 +3115,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2637
3115
|
font-family: 'lumo-icons';
|
|
2638
3116
|
display: block;
|
|
2639
3117
|
}
|
|
2640
|
-
`;G("",
|
|
3118
|
+
`;G("",Ia,{moduleId:"lumo-field-button"});/**
|
|
2641
3119
|
* @license
|
|
2642
3120
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2643
3121
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2696,7 +3174,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2696
3174
|
* @license
|
|
2697
3175
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2698
3176
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2699
|
-
*/const
|
|
3177
|
+
*/const Na=C`
|
|
2700
3178
|
[part='label'] {
|
|
2701
3179
|
align-self: flex-start;
|
|
2702
3180
|
color: var(--lumo-secondary-text-color);
|
|
@@ -2792,7 +3270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2792
3270
|
margin-left: 0;
|
|
2793
3271
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2794
3272
|
}
|
|
2795
|
-
`;G("",
|
|
3273
|
+
`;G("",Na,{moduleId:"lumo-required-field"});/**
|
|
2796
3274
|
* @license
|
|
2797
3275
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2798
3276
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2930,7 +3408,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2930
3408
|
[part='clear-button']::before {
|
|
2931
3409
|
content: var(--lumo-icons-cross);
|
|
2932
3410
|
}
|
|
2933
|
-
|
|
3411
|
+
`,La=[Na,Ia,Gp,Wp];G("",La,{moduleId:"lumo-input-field-shared-styles"});const qp=C`
|
|
2934
3412
|
:host {
|
|
2935
3413
|
outline: none;
|
|
2936
3414
|
}
|
|
@@ -2956,7 +3434,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2956
3434
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
2957
3435
|
--_lumo-text-field-overflow-mask-image: none;
|
|
2958
3436
|
}
|
|
2959
|
-
`;G("vaadin-date-picker",[
|
|
3437
|
+
`;G("vaadin-date-picker",[La,qp],{moduleId:"lumo-date-picker"});/**
|
|
2960
3438
|
@license
|
|
2961
3439
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2962
3440
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2964,19 +3442,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2964
3442
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2965
3443
|
Code distributed by Google as part of the polymer project is also
|
|
2966
3444
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2967
|
-
*/let ti=!1,Xp=[]
|
|
3445
|
+
*/let ti=!1,Xp=[],$a=[];function Kp(){ti=!0,requestAnimationFrame(function(){ti=!1,Jp(Xp),setTimeout(function(){Zp($a)})})}function Jp(t){for(;t.length;)Ha(t.shift())}function Zp(t){for(let r=0,e=t.length;r<e;r++)Ha(t.shift())}function Ha(t){const r=t[0],e=t[1],o=t[2];try{e.apply(r,o)}catch(i){setTimeout(()=>{throw i})}}function Ba(t,r,e){ti||Kp(),$a.push([t,r,e])}/**
|
|
2968
3446
|
* @license
|
|
2969
3447
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2970
3448
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2971
|
-
*/const Ur=t=>t.test(navigator.userAgent),ri=t=>t.test(navigator.platform),Qp=t=>t.test(navigator.vendor);Ur(/Android/u);Ur(/Chrome/u)&&Qp(/Google Inc/u);const ef=Ur(/Firefox/u),tf=ri(/^iPad/u)||ri(/^Mac/u)&&navigator.maxTouchPoints>1,rf=ri(/^iPhone/u),
|
|
3449
|
+
*/const Ur=t=>t.test(navigator.userAgent),ri=t=>t.test(navigator.platform),Qp=t=>t.test(navigator.vendor);Ur(/Android/u);Ur(/Chrome/u)&&Qp(/Google Inc/u);const ef=Ur(/Firefox/u),tf=ri(/^iPad/u)||ri(/^Mac/u)&&navigator.maxTouchPoints>1,rf=ri(/^iPhone/u),za=rf||tf;Ur(/^((?!chrome|android).)*safari/iu);const of=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
|
|
2972
3450
|
* @license
|
|
2973
3451
|
* Copyright (c) 2017 Anton Korzunov
|
|
2974
3452
|
* SPDX-License-Identifier: MIT
|
|
2975
|
-
*/let rt=new WeakMap,ur=new WeakMap,cr={},mo=0;const Ys=t=>t&&t.nodeType===Node.ELEMENT_NODE,_o=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},sf=(t,r)=>Ys(t)?r.map(e=>{if(!Ys(e))return _o(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return _o(e,"is not contained inside",t),null}).filter(e=>!!e):(_o(t,"is not a valid element"),[]),nf=(t,r,e,o)=>{const i=sf(r,Array.isArray(t)?t:[t]);cr[e]||(cr[e]=new WeakMap);const s=cr[e],n=[],a=new Set,l=new Set(i),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};i.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))c(f);else{const v=f.getAttribute(o),P=v!==null&&v!=="false",D=(rt.get(f)||0)+1,O=(s.get(f)||0)+1;rt.set(f,D),s.set(f,O),n.push(f),D===1&&P&&ur.set(f,!0),O===1&&f.setAttribute(e,"true"),P||f.setAttribute(o,"true")}})};return c(r),a.clear(),mo+=1,()=>{n.forEach(h=>{const d=rt.get(h)-1,p=s.get(h)-1;rt.set(h,d),s.set(h,p),d||(ur.has(h)?ur.delete(h):h.removeAttribute(o)),p||h.removeAttribute(e)}),mo-=1,mo||(rt=new WeakMap,rt=new WeakMap,ur=new WeakMap,cr={})}},
|
|
3453
|
+
*/let rt=new WeakMap,ur=new WeakMap,cr={},mo=0;const Ys=t=>t&&t.nodeType===Node.ELEMENT_NODE,_o=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},sf=(t,r)=>Ys(t)?r.map(e=>{if(!Ys(e))return _o(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return _o(e,"is not contained inside",t),null}).filter(e=>!!e):(_o(t,"is not a valid element"),[]),nf=(t,r,e,o)=>{const i=sf(r,Array.isArray(t)?t:[t]);cr[e]||(cr[e]=new WeakMap);const s=cr[e],n=[],a=new Set,l=new Set(i),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};i.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))c(f);else{const v=f.getAttribute(o),P=v!==null&&v!=="false",D=(rt.get(f)||0)+1,O=(s.get(f)||0)+1;rt.set(f,D),s.set(f,O),n.push(f),D===1&&P&&ur.set(f,!0),O===1&&f.setAttribute(e,"true"),P||f.setAttribute(o,"true")}})};return c(r),a.clear(),mo+=1,()=>{n.forEach(h=>{const d=rt.get(h)-1,p=s.get(h)-1;rt.set(h,d),s.set(h,p),d||(ur.has(h)?ur.delete(h):h.removeAttribute(o)),p||h.removeAttribute(e)}),mo-=1,mo||(rt=new WeakMap,rt=new WeakMap,ur=new WeakMap,cr={})}},Fa=(t,r=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(t)?t:[t]);return r&&o.push(...Array.from(r.querySelectorAll("[aria-live]"))),nf(o,r,e,"aria-hidden")};/**
|
|
2976
3454
|
* @license
|
|
2977
3455
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2978
3456
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2979
|
-
*/class af{constructor(r,e){this.host=r,this.callback=typeof e=="function"?e:()=>r}showModal(){const r=this.callback();this.__showOthers=
|
|
3457
|
+
*/class af{constructor(r,e){this.host=r,this.callback=typeof e=="function"?e:()=>r}showModal(){const r=this.callback();this.__showOthers=Fa(r)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2980
3458
|
* @license
|
|
2981
3459
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2982
3460
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2996,7 +3474,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2996
3474
|
* @license
|
|
2997
3475
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2998
3476
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2999
|
-
*/const pf=t=>class extends cf(df(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),
|
|
3477
|
+
*/const pf=t=>class extends cf(df(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),za&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,s=document.documentElement.clientHeight;i&&s>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,o,i,s){const n=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.innerHTML="",delete this._$litPart$),s&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),Ba(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const i=`__${e}Handler`,s=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
|
|
3000
3478
|
* @license
|
|
3001
3479
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3002
3480
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3096,11 +3574,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3096
3574
|
* @license
|
|
3097
3575
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3098
3576
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3099
|
-
*/function bf(t){let r=t.getDay();r===0&&(r=7);const e=4-r,o=new Date(t.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());const s=o.getTime()-i.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function Pe(t,r){return t instanceof Date&&r instanceof Date&&t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function Wt(t,r,e){return(!r||t>=r)&&(!e||t<=e)}function
|
|
3577
|
+
*/function bf(t){let r=t.getDay();r===0&&(r=7);const e=4-r,o=new Date(t.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());const s=o.getTime()-i.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function Pe(t,r){return t instanceof Date&&r instanceof Date&&t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function Wt(t,r,e){return(!r||t>=r)&&(!e||t<=e)}function Ra(t,r){return r.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const i=Math.abs(t.getTime()-o.getTime()),s=Math.abs(e.getTime()-t.getTime());return i<s?o:e})}function Ua(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function ja(t){const r=new Date,e=new Date(r);return e.setDate(1),e.setMonth(parseInt(t)+r.getMonth()),e}function yf(t,r,e=0,o=1){if(r>99)throw new Error("The provided year cannot have more than 2 digits.");if(r<0)throw new Error("The provided year cannot be negative.");let i=r+Math.floor(t.getFullYear()/100)*100;return t<new Date(i-50,e,o)?i-=100:t>new Date(i+50,e,o)&&(i+=100),i}function kt(t){const r=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!r)return;const e=new Date(0,0);return e.setFullYear(parseInt(r[1],10)),e.setMonth(parseInt(r[2],10)-1),e.setDate(parseInt(r[3],10)),e}/**
|
|
3100
3578
|
* @license
|
|
3101
3579
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3102
3580
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3103
|
-
*/const
|
|
3581
|
+
*/const Va=document.createElement("template");Va.innerHTML=`
|
|
3104
3582
|
<style>
|
|
3105
3583
|
:host {
|
|
3106
3584
|
display: block;
|
|
@@ -3150,11 +3628,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3150
3628
|
<div class="buffer"></div>
|
|
3151
3629
|
<div id="fullHeight"></div>
|
|
3152
3630
|
</div>
|
|
3153
|
-
`;class
|
|
3631
|
+
`;class Ya extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Va.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(r){r&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const r=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,r);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(r){this._preventScrollEvent=!0,r>this._firstIndex&&r<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(r-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~r,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=r%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(r=>{this.$[r.id]=r}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,ef&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(r,e){}_finishInit(){this._initDone||(this._buffers.forEach(r=>{[...r.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(r){const e=r?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const r=this.$.scroller.scrollTop;(r<this._bufferHeight||r>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=r>this._buffers[1].translateY+e,i=r<this._buffers[0].translateY+e;(o||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Gt.debounce(this._debouncerScrollFinish,Pr.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(r=>{r.style.transform=`translate3d(0, ${r.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Gt.debounce(this._debouncerUpdateClones,Pr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const r=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const s=`vaadin-infinite-scroller-item-content-${Ea()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",s),this.appendChild(i),this._isVisible(i,r)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(r){if(r.firstElementChild)return;const e=r.instance;r.instance=this._createElement(),r.appendChild(r.instance),Object.keys(e).forEach(o=>{r.instance[o]=e[o]})}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,i)=>{if(!o.updated){const s=this._firstIndex+this.bufferSize*i;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!r||this._isVisible(l,e))&&this._updateElement(l.instance,s+a)}),o.updated=!0}})}_isVisible(r,e){const o=r.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
|
|
3154
3632
|
* @license
|
|
3155
3633
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3156
3634
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3157
|
-
*/const
|
|
3635
|
+
*/const Ga=document.createElement("template");Ga.innerHTML=`
|
|
3158
3636
|
<style>
|
|
3159
3637
|
:host {
|
|
3160
3638
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3166,11 +3644,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3166
3644
|
height: 100%;
|
|
3167
3645
|
}
|
|
3168
3646
|
</style>
|
|
3169
|
-
`;class vf extends
|
|
3647
|
+
`;class vf extends Ya{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ga.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(r,e){r.month=ja(e)}}ge(vf);/**
|
|
3170
3648
|
* @license
|
|
3171
3649
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3172
3650
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3173
|
-
*/const
|
|
3651
|
+
*/const Wa=document.createElement("template");Wa.innerHTML=`
|
|
3174
3652
|
<style>
|
|
3175
3653
|
:host {
|
|
3176
3654
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3204,7 +3682,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3204
3682
|
border-left-color: #000;
|
|
3205
3683
|
}
|
|
3206
3684
|
</style>
|
|
3207
|
-
`;class xf extends
|
|
3685
|
+
`;class xf extends Ya{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Wa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(r,e){r.year=this._yearAfterXYears(e)}_yearAfterXYears(r){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(r)+e.getFullYear()),o.getFullYear()}}ge(xf);/**
|
|
3208
3686
|
* @license
|
|
3209
3687
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3210
3688
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3233,7 +3711,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3233
3711
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3234
3712
|
Code distributed by Google as part of the polymer project is also
|
|
3235
3713
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3236
|
-
*/let oi=null;function ii(){return oi}ii.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ii,writable:!0}});const
|
|
3714
|
+
*/let oi=null;function ii(){return oi}ii.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ii,writable:!0}});const qa=yi(ii),Sf=Di(qa);function Af(t,r){oi=t,Object.setPrototypeOf(t,r.prototype),new r,oi=null}const Cf=yi(class{});function Tf(t,r){for(let e=0;e<r.length;e++){let o=r[e];if(!!t!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)t?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(t)o.__polymerReplaced__=document.createComment("hidden-slot"),ie(ie(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const i=o.__polymerReplaced__;i&&ie(ie(i).parentNode).replaceChild(o,i)}else o.style&&(t?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=t,o._showHideChildren&&o._showHideChildren(t)}}class Be extends Cf{constructor(r){super(),this._configureProperties(r),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(r&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(r){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in r)this._setPendingProperty(o,r[o])}forwardHostProp(r,e){this._setPendingPropertyOrPath(r,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(r,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(r,e,i=>{i.model=this,o(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(r,e,o)}}_showHideChildren(r){Tf(r,this.children)}_setUnmanagedPropertyToNode(r,e,o){r.__hideTemplateChildren__&&r.nodeType==Node.TEXT_NODE&&e=="textContent"?r.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(r,e,o)}get parentModel(){let r=this.__parentModel;if(!r){let e;r=this;do r=r.__dataHost.__dataHost;while((e=r.__templatizeOptions)&&!e.parentModel);this.__parentModel=r}return r}dispatchEvent(r){return!0}}Be.prototype.__dataHost;Be.prototype.__templatizeOptions;Be.prototype._methodHost;Be.prototype.__templatizeOwner;Be.prototype.__hostProps;const Pf=Di(Be);function Ws(t){let r=t.__dataHost;return r&&r._methodHost||r}function Df(t,r,e){let o=e.mutableData?Pf:Be;si.mixin&&(o=si.mixin(o));let i=class extends o{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(t),Mf(i,t,r,e),i}function kf(t,r,e,o){let i=e.forwardHostProp;if(i&&r.hasHostProps){const s=t.localName=="template";let n=r.templatizeTemplateClass;if(!n){if(s){let l=e.mutableData?Sf:qa;class u extends l{}n=r.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}n=r.templatizeTemplateClass=u}let a=r.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Of(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Wn&&o&&Lf(r,e,o)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)Af(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const a=r.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Of(t,r){return function(o,i,s){r.call(o.__templatizeOwner,i.substring(6),s[i])}}function Mf(t,r,e,o){let i=e.hostProps||{};for(let s in o.instanceProps){delete i[s];let n=o.notifyInstanceProp;n&&t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:If(s,n)})}if(o.forwardHostProp&&r.__dataHost)for(let s in i)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Nf()})}function If(t,r){return function(o,i,s){r.call(o.__templatizeOwner,o,i,s[i])}}function Nf(){return function(r,e,o){r.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function si(t,r,e){if(Cr&&!Ws(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=r;let i=(r?r.constructor:Be)._parseTemplate(t),s=i.templatizeInstanceClass;s||(s=Df(t,i,e),i.templatizeInstanceClass=s);const n=Ws(t);kf(t,i,e,n);let a=class extends s{};return a.prototype._methodHost=n,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=r,a.prototype.__hostProps=i.hostProps,a=a,a}function Lf(t,r,e){const o=e.constructor._properties,{propertyEffects:i}=t,{instanceProps:s}=r;for(let n in i)if(!o[n]&&!(s&&s[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function $f(t,r){let e;for(;r;)if(e=r.__dataHost?r:r.__templatizeInstance)if(e.__dataHost!=t)r=e.__dataHost;else return e;else r=ie(r).parentNode;return null}/**
|
|
3237
3715
|
@license
|
|
3238
3716
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3239
3717
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3249,7 +3727,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3249
3727
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3250
3728
|
Code distributed by Google as part of the polymer project is also
|
|
3251
3729
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3252
|
-
*/const
|
|
3730
|
+
*/const Xa=function(){let t,r;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),r=Bf();while(t||r)};/**
|
|
3253
3731
|
@license
|
|
3254
3732
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3255
3733
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3257,7 +3735,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3257
3735
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3258
3736
|
Code distributed by Google as part of the polymer project is also
|
|
3259
3737
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3260
|
-
*/let qs=!1;function zf(){if(
|
|
3738
|
+
*/let qs=!1;function zf(){if(Gn&&!Yn){if(!qs){qs=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
|
|
3261
3739
|
@license
|
|
3262
3740
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3263
3741
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3265,7 +3743,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3265
3743
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3266
3744
|
Code distributed by Google as part of the polymer project is also
|
|
3267
3745
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3268
|
-
*/const Ff=Ef(He);class Xs extends Ff{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!xs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),zf()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let r=ie(ie(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,r);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const r=this;let e=this.template=r._templateInfo?r:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=si(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(i,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,s)},notifyInstanceProp:function(i,s,n){if(Ah(this.as,s)){let a=i[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=jt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if(typeof r=="string"){let e=r,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return r}__sortChanged(r){this.__sortFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__filterChanged(r){this.__filterFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(r){return Math.ceil(1e3/r)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(r){if(this.__sortFn||this.__filterFn){if(!r)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)r.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(r){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(r.path,r.value)||(r.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(r,e=0){this.__renderDebouncer=kr.debounce(this.__renderDebouncer,e>0?Oh.after(e):
|
|
3746
|
+
*/const Ff=Ef(He);class Xs extends Ff{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!xs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),zf()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let r=ie(ie(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,r);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const r=this;let e=this.template=r._templateInfo?r:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=si(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(i,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,s)},notifyInstanceProp:function(i,s,n){if(Ah(this.as,s)){let a=i[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=jt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if(typeof r=="string"){let e=r,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return r}__sortChanged(r){this.__sortFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__filterChanged(r){this.__filterFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(r){return Math.ceil(1e3/r)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(r){if(this.__sortFn||this.__filterFn){if(!r)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)r.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(r){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(r.path,r.value)||(r.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(r,e=0){this.__renderDebouncer=kr.debounce(this.__renderDebouncer,e>0?Oh.after(e):oa,r.bind(this)),Hf(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Xa()}__render(){if(!this.__ensureTemplatized())return;let r=this.items||[];const e=this.__sortAndFilterItems(r),o=this.__calculateLimit(e.length);this.__updateInstances(r,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!xs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(r){let e=new Array(r.length);for(let o=0;o<r.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,i,s)=>this.__filterFn(r[o],i,s))),this.__sortFn&&e.sort((o,i)=>this.__sortFn(r[o],r[i])),e}__calculateLimit(r){let e=r;const o=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(r,this.initialCount),i=Math.max(e-o,0),this.__chunkCount=i||1):(i=Math.min(Math.max(r-o,0),this.__chunkCount),e=Math.min(o+i,r)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<r,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const r=performance.now()-this.__renderStartTime,e=this._targetFrameTime/r;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(r,e,o){const i=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let n=this.__instances[s],a=o[s],l=r[a];i[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(r){let e=this.__instances[r];const o=ie(e.root);for(let i=0;i<e.children.length;i++){let s=e.children[i];o.appendChild(s)}return e}__attachInstance(r,e){let o=this.__instances[r];e.insertBefore(o.root,this)}__detachAndRemoveInstance(r){this.__detachInstance(r),this.__instances.splice(r,1)}__stampInstance(r,e,o){let i={};return i[this.as]=r,i[this.indexAs]=e,i[this.itemsIndexAs]=o,new this.__ctor(i)}__insertInstance(r,e,o){const i=this.__stampInstance(r,e,o);let s=this.__instances[e+1],n=s?s.children[0]:this;return ie(ie(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(r){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(r)}__handleItemPath(r,e){let o=r.slice(6),i=o.indexOf("."),s=i<0?o:o.substring(0,i);if(s==parseInt(s,10)){let n=i<0?"":o.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(r){let e=this.modelForElement(r);return e&&e[this.as]}indexForElement(r){let e=this.modelForElement(r);return e&&e[this.indexAs]}modelForElement(r){return $f(this.template,r)}}customElements.define(Xs.is,Xs);/**
|
|
3269
3747
|
* @license
|
|
3270
3748
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3271
3749
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3379,11 +3857,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3379
3857
|
* @license
|
|
3380
3858
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3381
3859
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3382
|
-
*/class
|
|
3860
|
+
*/class Ka{constructor(r,e){this.query=r,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(r){typeof this.callback=="function"&&this.callback(r.matches)}}/**
|
|
3383
3861
|
* @license
|
|
3384
3862
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3385
3863
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3386
|
-
*/const Vf=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Da(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ja(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new je(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new je(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new je(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new je(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,s){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,s))}__updateCalendars(e,o,i,s,n,a,l,u,c){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=s,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(s=>{s.selectedDate=o,i?s.setAttribute("theme",i):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+u,o);return}const s=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;s?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Gt.debounce(this._debouncer,Pr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(ja(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(u=>{i=u});const s=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Va(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Pe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&Pe(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return St(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return St(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{za(this,()=>{Ka(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ua(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,s=new Date(0,0);return s.setFullYear(i.getFullYear()),s.setMonth(i.getMonth()),s.setDate(i.getDate()),this._dateAllowed(s,e,o)}};/**
|
|
3864
|
+
*/const Vf=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Pa(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ka(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new je(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new je(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new je(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new je(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,s){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,s))}__updateCalendars(e,o,i,s,n,a,l,u,c){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=s,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(s=>{s.selectedDate=o,i?s.setAttribute("theme",i):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+u,o);return}const s=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;s?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Gt.debounce(this._debouncer,Pr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Ua(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(u=>{i=u});const s=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return ja(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Pe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&Pe(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return St(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return St(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{Ba(this,()=>{Xa(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ra(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,s=new Date(0,0);return s.setFullYear(i.getFullYear()),s.setMonth(i.getMonth()),s.setDate(i.getDate()),this._dateAllowed(s,e,o)}};/**
|
|
3387
3865
|
* @license
|
|
3388
3866
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3389
3867
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3475,7 +3953,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3475
3953
|
* @license
|
|
3476
3954
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3477
3955
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3478
|
-
*/const
|
|
3956
|
+
*/const Ja=Q(t=>class extends Ti(Oa(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
3479
3957
|
* @license
|
|
3480
3958
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3481
3959
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3483,15 +3961,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3483
3961
|
* @license
|
|
3484
3962
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3485
3963
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3486
|
-
*/const
|
|
3964
|
+
*/const Za=Q(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
|
|
3487
3965
|
* @license
|
|
3488
3966
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3489
3967
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3490
|
-
*/const Kf=t=>class extends
|
|
3968
|
+
*/const Kf=t=>class extends Za(Rr(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),of||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3491
3969
|
* @license
|
|
3492
3970
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3493
3971
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3494
|
-
*/const xo=new Map;function ki(t){return xo.has(t)||xo.set(t,new WeakMap),xo.get(t)}function
|
|
3972
|
+
*/const xo=new Map;function ki(t){return xo.has(t)||xo.set(t,new WeakMap),xo.get(t)}function Qa(t,r){t&&t.removeAttribute(r)}function el(t,r){if(!t||!r)return;const e=ki(r);if(e.has(t))return;const o=vi(t.getAttribute(r));e.set(t,new Set(o))}function Jf(t,r){if(!t||!r)return;const e=ki(r),o=e.get(t);!o||o.size===0?t.removeAttribute(r):wa(t,r,Fr(o)),e.delete(t)}function wo(t,r,e={newId:null,oldId:null,fromUser:!1}){if(!t||!r)return;const{newId:o,oldId:i,fromUser:s}=e,n=ki(r),a=n.get(t);if(!s&&a){i&&a.delete(i),o&&a.add(o);return}s&&(a?o||n.delete(t):el(t,r),Qa(t,r)),dp(t,r,i);const l=o||Fr(a);l&&wa(t,r,l)}function Zf(t,r){el(t,r),Qa(t,r)}/**
|
|
3495
3973
|
* @license
|
|
3496
3974
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3497
3975
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3519,11 +3997,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3519
3997
|
* @license
|
|
3520
3998
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3521
3999
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3522
|
-
*/const
|
|
4000
|
+
*/const tl=Q(t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
3523
4001
|
* @license
|
|
3524
4002
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3525
4003
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3526
|
-
*/const im=t=>class extends
|
|
4004
|
+
*/const im=t=>class extends tl(om(wt(t))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Qf(this),this._helperController=new tm(this),this._errorController=new em(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.__labelChanged(o,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3527
4005
|
* @license
|
|
3528
4006
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3529
4007
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3531,11 +4009,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3531
4009
|
* @license
|
|
3532
4010
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3533
4011
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3534
|
-
*/const
|
|
4012
|
+
*/const rl=Q(t=>class extends sm(tl(Za(t))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const i=this._hasValidConstraints(o),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3535
4013
|
* @license
|
|
3536
4014
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3537
4015
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3538
|
-
*/const nm=t=>class extends Xf(
|
|
4016
|
+
*/const nm=t=>class extends Xf(Ja(rl(im(Kf(Rr(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3539
4017
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3540
4018
|
font: inherit;
|
|
3541
4019
|
color: inherit;
|
|
@@ -3631,7 +4109,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3631
4109
|
* @license
|
|
3632
4110
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3633
4111
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3634
|
-
*/const mm=t=>class extends pm(wt(Za(ol(Rr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let s,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,s=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?kt(this.referenceDate):new Date;a=yf(l,a,n,s)}}else o.length===2?(n=parseInt(o[0])-1,s=parseInt(o[1])):o.length===1&&(s=parseInt(o[0]));if(s!==void 0)return{day:s,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Fa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ja(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new fm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=kt(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(ja(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Wt(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),o&&i&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,s,n,a){return!e||o&&(!a||n)||i&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(c,h="00")=>(h+c).substr((h+c).length-h.length);let i="",s="0000",n=e.getFullYear();n<0?(n=-n,i="-",s="000000"):e.getFullYear()>=1e4&&(i="+",s="000000");const a=i+o(n,s),l=o(e.getMonth()+1),u=o(e.getDate());return[a,l,u].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=kt(e);if(e&&!i){this.value=o;return}e?Pe(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,s,n,a,l,u){e&&(e.i18n=o,e.label=i,e.minDate=s,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=Ra(n)}_getInitialPosition(){const e=kt(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Wt(o,this._minDate,this._maxDate)?o:Ua(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Pe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return kt(e)}};/**
|
|
4112
|
+
*/const mm=t=>class extends pm(wt(Ja(rl(Rr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let s,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,s=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?kt(this.referenceDate):new Date;a=yf(l,a,n,s)}}else o.length===2?(n=parseInt(o[0])-1,s=parseInt(o[1])):o.length===1&&(s=parseInt(o[0]));if(s!==void 0)return{day:s,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:za},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ka(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new fm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=kt(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ua(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Wt(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),o&&i&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,s,n,a){return!e||o&&(!a||n)||i&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(c,h="00")=>(h+c).substr((h+c).length-h.length);let i="",s="0000",n=e.getFullYear();n<0?(n=-n,i="-",s="000000"):e.getFullYear()>=1e4&&(i="+",s="000000");const a=i+o(n,s),l=o(e.getMonth()+1),u=o(e.getDate());return[a,l,u].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=kt(e);if(e&&!i){this.value=o;return}e?Pe(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,s,n,a,l,u){e&&(e.i18n=o,e.label=i,e.minDate=s,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=Fa(n)}_getInitialPosition(){const e=kt(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Wt(o,this._minDate,this._maxDate)?o:Ra(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Pe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return kt(e)}};/**
|
|
3635
4113
|
* @license
|
|
3636
4114
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3637
4115
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3652,7 +4130,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3652
4130
|
* @license
|
|
3653
4131
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3654
4132
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3655
|
-
*/G("vaadin-date-picker",[dm,_m],{moduleId:"vaadin-date-picker-styles"});class gm extends mm(nm(qe(
|
|
4133
|
+
*/G("vaadin-date-picker",[dm,_m],{moduleId:"vaadin-date-picker-styles"});class gm extends mm(nm(qe(xa(He)))){static get is(){return"vaadin-date-picker"}static get template(){return Ke`
|
|
3656
4134
|
<div class="vaadin-date-picker-container">
|
|
3657
4135
|
<div part="label">
|
|
3658
4136
|
<slot name="label"></slot>
|
|
@@ -3694,4 +4172,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3694
4172
|
></vaadin-date-picker-overlay>
|
|
3695
4173
|
|
|
3696
4174
|
<slot name="tooltip"></slot>
|
|
3697
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new am(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new lm(this.inputElement,this._labelController)),this._tooltipController=new Aa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(r){r.detail.sourceEvent&&r.detail.sourceEvent.composedPath().includes(this)&&r.preventDefault()}_toggle(r){r.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(r){super._openedChanged(r),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ge(gm);function bm(t){dl(t,"svelte-1vhi15f",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Ks(t,r,e){const o=t.slice();return o[43]=r[e],o}function ym(t){let r,e,o,i,s,n,a,l,u,c,h=t[14]("titleSelfExclusion")+"",d,p,f;return{c(){r=N("div"),e=Ce("svg"),o=Ce("defs"),i=Ce("style"),s=Z(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=Ce("g"),a=Ce("g"),l=Ce("path"),u=ee(),c=N("h2"),d=Z(h),T(l,"class","aaa"),T(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),T(l,"transform","translate(15 15) rotate(180)"),T(a,"transform","translate(20 158)"),T(n,"transform","translate(-20 -158)"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"width","15"),T(e,"height","15"),T(e,"viewBox","0 0 15 15"),T(c,"class","PlayerSelfExclusionTitleMobile"),T(r,"class","MenuReturnButton")},m(v,P){$e(v,r,P),b(r,e),b(e,o),b(o,i),b(i,s),b(e,n),b(n,a),b(a,l),b(r,u),b(r,c),b(c,d),p||(f=yr(r,"click",t[25]),p=!0)},p(v,P){P[0]&16384&&h!==(h=v[14]("titleSelfExclusion")+"")&&oe(d,h)},d(v){v&&De(r),p=!1,f()}}}function Js(t){let r,e=t[14](`${t[43].key}`)+"",o,i,s;function n(){return t[27](t[43])}return{c(){r=N("div"),o=Z(e)},m(a,l){$e(a,r,l),b(r,o),i||(s=yr(r,"click",n),i=!0)},p(a,l){t=a,l[0]&16416&&e!==(e=t[14](`${t[43].key}`)+"")&&oe(o,e)},d(a){a&&De(r),i=!1,s()}}}function Zs(t){let r,e,o=t[14]("duration")+"",i,s,n,a=t[14]("dateInstructions")+"",l,u,c,h,d;return{c(){r=N("div"),e=N("label"),i=Z(o),s=ee(),n=N("span"),l=Z(a),u=ee(),c=N("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=ee(),d=N("vaadin-date-picker"),T(e,"for","SelfExclusionDate"),T(n,"class","SelfExclusionDateInstructions"),Ze(d,"min",t[6]),Ze(d,"max",t[7]),Ze(d,"value",t[6]),T(r,"class","SelfExclusionDateWrapper "+(t[15]?"SelfExclusionDateWrapperMobile":""))},m(p,f){$e(p,r,f),b(r,e),b(e,i),b(r,s),b(r,n),b(n,l),b(n,u),b(n,c),b(r,h),b(r,d),t[28](d)},p(p,f){f[0]&16384&&o!==(o=p[14]("duration")+"")&&oe(i,o),f[0]&16384&&a!==(a=p[14]("dateInstructions")+"")&&oe(l,a),f[0]&64&&Ze(d,"min",p[6]),f[0]&128&&Ze(d,"max",p[7]),f[0]&64&&Ze(d,"value",p[6])},d(p){p&&De(r),t[28](null)}}}function vm(t){let r,e,o=t[14]("temporarySelfExclusion",{values:{date:t[8]}})+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16640&&o!==(o=s[14]("temporarySelfExclusion",{values:{date:s[8]}})+"")&&oe(i,o)},d(s){s&&De(r)}}}function xm(t){let r,e,o=t[14]("noPeriodSelected")+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16384&&o!==(o=s[14]("noPeriodSelected")+"")&&oe(i,o)},d(s){s&&De(r)}}}function wm(t){let r,e,o=t[14]("permanentSelfExclusion")+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16384&&o!==(o=s[14]("permanentSelfExclusion")+"")&&oe(i,o)},d(s){s&&De(r)}}}function Em(t){let r,e,o,i,s=t[14]("titleSelfExclusion")+"",n,a,l,u,c=t[14]("selfExclusionText1",{values:{operatorname:t[0]}})+"",h,d,p,f=t[14]("selfExclusionText2")+"",v,P,D,O,F=t[14]("selfExclusionText3",{values:{operatorname:t[0]}})+"",K,q,W,ae=t[14]("termsAndConditions")+"",ye,pe,j,M=t[14]("selfExclusionText4",{values:{operatorname:t[0]}})+"",ve,Oe,w,g=t[14]("selfExclusionText5")+"",m,x,_,A,E,z,$,R,X,J=t[14](`${t[9]}`)+"",fe,me,y,V,k,le,he,ze,jr,Et,Mi,Zt,Me,Qt=t[14]("save")+"",Vr,er,tr,Yr,Ii,Fe=t[15]&&ym(t),Je=zi(t[5]),se=[];for(let S=0;S<Je.length;S+=1)se[S]=Js(Ks(t,Je,S));let ue=t[11]&&Zs(t);function Ni(S,U){return S[10]?wm:S[12]?vm:xm}let rr=Ni(t),xe=rr(t);return{c(){r=N("div"),e=N("form"),Fe&&Fe.c(),o=ee(),i=N("h2"),n=Z(s),a=ee(),l=N("div"),u=N("p"),h=Z(c),d=ee(),p=N("p"),v=Z(f),P=ee(),D=N("p"),O=N("span"),K=Z(F),q=ee(),W=N("a"),ye=Z(ae),pe=ee(),j=N("span"),ve=Z(M),Oe=ee(),w=N("p"),m=Z(g),x=ee(),_=N("a"),A=Z(t[1]),z=ee(),$=N("div"),R=N("div"),X=N("p"),fe=Z(J),me=ee(),y=Ce("svg"),V=Ce("g"),k=Ce("path"),le=ee(),he=N("div");for(let S=0;S<se.length;S+=1)se[S].c();ze=ee(),ue&&ue.c(),jr=ee(),Et=N("div"),xe.c(),Mi=ee(),Zt=N("div"),Me=N("button"),Vr=Z(Qt),T(i,"class","PlayerSelfExclusionTitle "+(t[15]?"PlayerSelfExclusionTitleNone":"")),T(u,"class","SelfExclusionDescriptionText"),T(p,"class","SelfExclusionDescriptionText"),T(W,"href",t[2]),T(D,"class","SelfExclusionDescriptionText"),T(_,"href",E="mailto:"+t[1]),T(w,"class","SelfExclusionDescriptionText"),T(l,"class","SelfExclusionDescription "+(t[15]?"SelfExclusionDescriptionMobile":"")),T(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),T(k,"stroke-linecap","round"),T(y,"xmlns","http://www.w3.org/2000/svg"),T(y,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(y,"version","1.1"),T(y,"viewBox","0 0 100 100"),T(y,"xml:space","preserve"),T(y,"class","SelfExclusionConfigIcon"),Qe(y,"active",t[13]),T(R,"class","SelfExclusionConfigLabel"),T(he,"class","SelfExclusionDropDown"),Qe(he,"active",t[13]),T($,"class","SelfExclusionConfigWrapper "+(t[15]?"SelfExclusionConfigWrapperMobile":"")),Qe($,"active",t[13]),T(Et,"class","SelfExclusionDescription "+(t[15]?"SelfExclusionDescriptionMobile":"")),T(Me,"class",er="SelfExclusionSave "+(t[12]?"active":"")),Me.disabled=tr=!t[12],T(Zt,"class","SelfExclusionActionButtons "+(t[15]?"SelfExclusionActionButtonsMobile":"")),T(e,"class","SelfExclusionWrapper "+(t[15]?"SelfExclusionWrapperMobile":""))},m(S,U){$e(S,r,U),b(r,e),Fe&&Fe.m(e,null),b(e,o),b(e,i),b(i,n),b(e,a),b(e,l),b(l,u),b(u,h),b(l,d),b(l,p),b(p,v),b(l,P),b(l,D),b(D,O),b(O,K),b(D,q),b(D,W),b(W,ye),b(D,pe),b(D,j),b(j,ve),b(l,Oe),b(l,w),b(w,m),b(w,x),b(w,_),b(_,A),b(e,z),b(e,$),b($,R),b(R,X),b(X,fe),b(R,me),b(R,y),b(y,V),b(V,k),b($,le),b($,he);for(let re=0;re<se.length;re+=1)se[re]&&se[re].m(he,null);b(e,ze),ue&&ue.m(e,null),b(e,jr),b(e,Et),xe.m(Et,null),b(e,Mi),b(e,Zt),b(Zt,Me),b(Me,Vr),t[30](r),Yr||(Ii=[yr(R,"click",t[26]),yr(Me,"click",t[29])],Yr=!0)},p(S,U){if(S[15]&&Fe.p(S,U),U[0]&16384&&s!==(s=S[14]("titleSelfExclusion")+"")&&oe(n,s),U[0]&16385&&c!==(c=S[14]("selfExclusionText1",{values:{operatorname:S[0]}})+"")&&oe(h,c),U[0]&16384&&f!==(f=S[14]("selfExclusionText2")+"")&&oe(v,f),U[0]&16385&&F!==(F=S[14]("selfExclusionText3",{values:{operatorname:S[0]}})+"")&&oe(K,F),U[0]&16384&&ae!==(ae=S[14]("termsAndConditions")+"")&&oe(ye,ae),U[0]&4&&T(W,"href",S[2]),U[0]&16385&&M!==(M=S[14]("selfExclusionText4",{values:{operatorname:S[0]}})+"")&&oe(ve,M),U[0]&16384&&g!==(g=S[14]("selfExclusionText5")+"")&&oe(m,g),U[0]&2&&oe(A,S[1]),U[0]&2&&E!==(E="mailto:"+S[1])&&T(_,"href",E),U[0]&16896&&J!==(J=S[14](`${S[9]}`)+"")&&oe(fe,J),U[0]&8192&&Qe(y,"active",S[13]),U[0]&147488){Je=zi(S[5]);let re;for(re=0;re<Je.length;re+=1){const Li=Ks(S,Je,re);se[re]?se[re].p(Li,U):(se[re]=Js(Li),se[re].c(),se[re].m(he,null))}for(;re<se.length;re+=1)se[re].d(1);se.length=Je.length}U[0]&8192&&Qe(he,"active",S[13]),U[0]&8192&&Qe($,"active",S[13]),S[11]?ue?ue.p(S,U):(ue=Zs(S),ue.c(),ue.m(e,jr)):ue&&(ue.d(1),ue=null),rr===(rr=Ni(S))&&xe?xe.p(S,U):(xe.d(1),xe=rr(S),xe&&(xe.c(),xe.m(Et,null))),U[0]&16384&&Qt!==(Qt=S[14]("save")+"")&&oe(Vr,Qt),U[0]&4096&&er!==(er="SelfExclusionSave "+(S[12]?"active":""))&&T(Me,"class",er),U[0]&4096&&tr!==(tr=!S[12])&&(Me.disabled=tr)},i:be,o:be,d(S){S&&De(r),Fe&&Fe.d(),ml(se,S),ue&&ue.d(),xe.d(),t[30](null),Yr=!1,gt(Ii)}}}function Sm(t,r,e){let o;hl(t,Mc,y=>e(14,o=y));let{endpoint:i="",lang:s="en",operator:n="Everymatrix",supportemail:a="",termsconditionslink:l="",clientstyling:u="",clientstylingurl:c="",translationurl:h=""}=r,d,p,f=[],v=window.navigator.userAgent,P,D,O="",F="",K="selectAPeriod",q=Ic(v)!=="PC",W=!1,ae=!1,ye=!1,pe=!1;const j=()=>{fetch(h).then(V=>V.json()).then(V=>{Object.keys(V).forEach(k=>{ns(k,V[k])})}).catch(V=>{console.log(V)})};Object.keys(as).forEach(y=>{ns(y,as[y])});const M=()=>{let y=new URL(`${i}/v1/player/selfExclusionSettings`);fetch(y,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(k=>ve(k)).then(k=>{e(5,f=k.periods)}).catch(k=>{console.log(k)})},ve=y=>{if(y.status>=300)throw new Error("There was an error fetching the config");return y.json()},Oe=()=>{e(13,pe=!pe)},w=y=>{switch(F=y.text,e(9,K=y.key),e(12,ye=!0),e(13,pe=!1),e(10,W=!1),e(11,ae=!1),F){case"Until":e(11,ae=!0),e(6,P=to().add(6,"M").format("YYYY-MM-DD")),e(7,D=to().add(5,"y").format("YYYY-MM-DD")),e(8,O=P);break;case"Permanent":e(10,W=!W);break;default:const[V,k]=F.split(" "),le=k.includes("Day")?"days":k.includes("Month")?"months":k.includes("Year")?"years":null;if(!le)return;e(8,O=to().add(Number(V),le).format("YYYY-MM-DD"));break}},g=y=>{y.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:K,selfExclusionExpiryDate:O},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:q},window.location.href)},x=y=>{e(8,O=y.target.value)},_=()=>{p.addEventListener("change",x,!1)},A=()=>{let y=document.createElement("style");y.innerHTML=u,d.appendChild(y)},E=()=>{let y=new URL(c),V=document.createElement("style");fetch(y.href).then(k=>k.text()).then(k=>{V.innerHTML=k,setTimeout(()=>{d.appendChild(V)},1)})};yl(()=>()=>{p.removeEventListener("change",x)});const z=()=>{Lc(s)},$=()=>m(),R=()=>Oe(),X=y=>w(y);function J(y){vr[y?"unshift":"push"](()=>{p=y,e(4,p)})}const fe=y=>g(y);function me(y){vr[y?"unshift":"push"](()=>{d=y,e(3,d)})}return t.$$set=y=>{"endpoint"in y&&e(20,i=y.endpoint),"lang"in y&&e(21,s=y.lang),"operator"in y&&e(0,n=y.operator),"supportemail"in y&&e(1,a=y.supportemail),"termsconditionslink"in y&&e(2,l=y.termsconditionslink),"clientstyling"in y&&e(22,u=y.clientstyling),"clientstylingurl"in y&&e(23,c=y.clientstylingurl),"translationurl"in y&&e(24,h=y.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&16&&p&&_(),t.$$.dirty[0]&1048576&&i&&M(),t.$$.dirty[0]&2097152&&s&&z(),t.$$.dirty[0]&8388616&&c&&d&&E(),t.$$.dirty[0]&4194312&&u&&d&&A(),t.$$.dirty[0]&16777216&&h&&j()},[n,a,l,d,p,f,P,D,O,K,W,ae,ye,pe,o,q,Oe,w,g,m,i,s,u,c,h,$,R,X,J,fe,me]}class il extends Ol{constructor(r){super(),Dl(this,r,Sm,Em,en,{endpoint:20,lang:21,operator:0,supportemail:1,termsconditionslink:2,clientstyling:22,clientstylingurl:23,translationurl:24},bm,[-1,-1])}get endpoint(){return this.$$.ctx[20]}set endpoint(r){this.$$set({endpoint:r}),we()}get lang(){return this.$$.ctx[21]}set lang(r){this.$$set({lang:r}),we()}get operator(){return this.$$.ctx[0]}set operator(r){this.$$set({operator:r}),we()}get supportemail(){return this.$$.ctx[1]}set supportemail(r){this.$$set({supportemail:r}),we()}get termsconditionslink(){return this.$$.ctx[2]}set termsconditionslink(r){this.$$set({termsconditionslink:r}),we()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(r){this.$$set({clientstyling:r}),we()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),we()}get translationurl(){return this.$$.ctx[24]}set translationurl(r){this.$$set({translationurl:r}),we()}}kl(il,{endpoint:{},lang:{},operator:{},supportemail:{},termsconditionslink:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=il;
|
|
4175
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new am(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new lm(this.inputElement,this._labelController)),this._tooltipController=new Sa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(r){r.detail.sourceEvent&&r.detail.sourceEvent.composedPath().includes(this)&&r.preventDefault()}_toggle(r){r.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(r){super._openedChanged(r),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ge(gm);function bm(t){hl(t,"svelte-qpnd27",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Ks(t,r,e){const o=t.slice();return o[43]=r[e],o}function ym(t){let r,e,o,i,s,n,a,l,u,c,h=t[14]("titleSelfExclusion")+"",d,p,f;return{c(){r=N("div"),e=Ce("svg"),o=Ce("defs"),i=Ce("style"),s=Z(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=Ce("g"),a=Ce("g"),l=Ce("path"),u=ee(),c=N("h2"),d=Z(h),T(l,"class","aaa"),T(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),T(l,"transform","translate(15 15) rotate(180)"),T(a,"transform","translate(20 158)"),T(n,"transform","translate(-20 -158)"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"width","15"),T(e,"height","15"),T(e,"viewBox","0 0 15 15"),T(c,"class","PlayerSelfExclusionTitleMobile"),T(r,"class","MenuReturnButton")},m(v,P){$e(v,r,P),b(r,e),b(e,o),b(o,i),b(i,s),b(e,n),b(n,a),b(a,l),b(r,u),b(r,c),b(c,d),p||(f=yr(r,"click",t[25]),p=!0)},p(v,P){P[0]&16384&&h!==(h=v[14]("titleSelfExclusion")+"")&&oe(d,h)},d(v){v&&De(r),p=!1,f()}}}function Js(t){let r,e=t[14](`${t[43].key}`)+"",o,i,s;function n(){return t[27](t[43])}return{c(){r=N("div"),o=Z(e)},m(a,l){$e(a,r,l),b(r,o),i||(s=yr(r,"click",n),i=!0)},p(a,l){t=a,l[0]&16416&&e!==(e=t[14](`${t[43].key}`)+"")&&oe(o,e)},d(a){a&&De(r),i=!1,s()}}}function Zs(t){let r,e,o=t[14]("duration")+"",i,s,n,a=t[14]("dateInstructions")+"",l,u,c,h,d;return{c(){r=N("div"),e=N("label"),i=Z(o),s=ee(),n=N("span"),l=Z(a),u=ee(),c=N("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=ee(),d=N("vaadin-date-picker"),T(e,"for","SelfExclusionDate"),T(n,"class","SelfExclusionDateInstructions"),Ze(d,"min",t[6]),Ze(d,"max",t[7]),Ze(d,"value",t[6]),T(r,"class","SelfExclusionDateWrapper "+(t[15]?"SelfExclusionDateWrapperMobile":""))},m(p,f){$e(p,r,f),b(r,e),b(e,i),b(r,s),b(r,n),b(n,l),b(n,u),b(n,c),b(r,h),b(r,d),t[28](d)},p(p,f){f[0]&16384&&o!==(o=p[14]("duration")+"")&&oe(i,o),f[0]&16384&&a!==(a=p[14]("dateInstructions")+"")&&oe(l,a),f[0]&64&&Ze(d,"min",p[6]),f[0]&128&&Ze(d,"max",p[7]),f[0]&64&&Ze(d,"value",p[6])},d(p){p&&De(r),t[28](null)}}}function vm(t){let r,e,o=t[14]("temporarySelfExclusion",{values:{date:t[8]}})+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16640&&o!==(o=s[14]("temporarySelfExclusion",{values:{date:s[8]}})+"")&&oe(i,o)},d(s){s&&De(r)}}}function xm(t){let r,e,o=t[14]("noPeriodSelected")+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16384&&o!==(o=s[14]("noPeriodSelected")+"")&&oe(i,o)},d(s){s&&De(r)}}}function wm(t){let r,e,o=t[14]("permanentSelfExclusion")+"",i;return{c(){r=N("p"),e=N("strong"),i=Z(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,i)},p(s,n){n[0]&16384&&o!==(o=s[14]("permanentSelfExclusion")+"")&&oe(i,o)},d(s){s&&De(r)}}}function Em(t){let r,e,o,i,s=t[14]("titleSelfExclusion")+"",n,a,l,u,c=t[14]("selfExclusionText1",{values:{operatorname:t[0]}})+"",h,d,p,f=t[14]("selfExclusionText2")+"",v,P,D,O,F=t[14]("selfExclusionText3",{values:{operatorname:t[0]}})+"",K,q,W,ae=t[14]("termsAndConditions")+"",ye,pe,j,M=t[14]("selfExclusionText4",{values:{operatorname:t[0]}})+"",ve,Oe,w,g=t[14]("selfExclusionText5")+"",m,x,_,A,E,z,$,R,X,J=t[14](`${t[9]}`)+"",fe,me,y,V,k,le,he,ze,jr,Et,Mi,Zt,Me,Qt=t[14]("save")+"",Vr,er,tr,Yr,Ii,Fe=t[15]&&ym(t),Je=zi(t[5]),se=[];for(let S=0;S<Je.length;S+=1)se[S]=Js(Ks(t,Je,S));let ue=t[11]&&Zs(t);function Ni(S,U){return S[10]?wm:S[12]?vm:xm}let rr=Ni(t),xe=rr(t);return{c(){r=N("div"),e=N("form"),Fe&&Fe.c(),o=ee(),i=N("h2"),n=Z(s),a=ee(),l=N("div"),u=N("p"),h=Z(c),d=ee(),p=N("p"),v=Z(f),P=ee(),D=N("p"),O=N("span"),K=Z(F),q=ee(),W=N("a"),ye=Z(ae),pe=ee(),j=N("span"),ve=Z(M),Oe=ee(),w=N("p"),m=Z(g),x=ee(),_=N("a"),A=Z(t[1]),z=ee(),$=N("div"),R=N("div"),X=N("p"),fe=Z(J),me=ee(),y=Ce("svg"),V=Ce("g"),k=Ce("path"),le=ee(),he=N("div");for(let S=0;S<se.length;S+=1)se[S].c();ze=ee(),ue&&ue.c(),jr=ee(),Et=N("div"),xe.c(),Mi=ee(),Zt=N("div"),Me=N("button"),Vr=Z(Qt),T(i,"class","PlayerSelfExclusionTitle "+(t[15]?"PlayerSelfExclusionTitleNone":"")),T(u,"class","SelfExclusionDescriptionText"),T(p,"class","SelfExclusionDescriptionText"),T(W,"href",t[2]),T(D,"class","SelfExclusionDescriptionText"),T(_,"href",E="mailto:"+t[1]),T(w,"class","SelfExclusionDescriptionText"),T(l,"class","SelfExclusionDescription "+(t[15]?"SelfExclusionDescriptionMobile":"")),T(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),T(k,"stroke-linecap","round"),T(y,"xmlns","http://www.w3.org/2000/svg"),T(y,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(y,"version","1.1"),T(y,"viewBox","0 0 100 100"),T(y,"xml:space","preserve"),T(y,"class","SelfExclusionConfigIcon"),Qe(y,"active",t[13]),T(R,"class","SelfExclusionConfigLabel"),T(he,"class","SelfExclusionDropDown"),Qe(he,"active",t[13]),T($,"class","SelfExclusionConfigWrapper "+(t[15]?"SelfExclusionConfigWrapperMobile":"")),Qe($,"active",t[13]),T(Et,"class","SelfExclusionDescription "+(t[15]?"SelfExclusionDescriptionMobile":"")),T(Me,"class",er="SelfExclusionSave "+(t[12]?"active":"")),Me.disabled=tr=!t[12],T(Zt,"class","SelfExclusionActionButtons "+(t[15]?"SelfExclusionActionButtonsMobile":"")),T(e,"class","SelfExclusionWrapper "+(t[15]?"SelfExclusionWrapperMobile":""))},m(S,U){$e(S,r,U),b(r,e),Fe&&Fe.m(e,null),b(e,o),b(e,i),b(i,n),b(e,a),b(e,l),b(l,u),b(u,h),b(l,d),b(l,p),b(p,v),b(l,P),b(l,D),b(D,O),b(O,K),b(D,q),b(D,W),b(W,ye),b(D,pe),b(D,j),b(j,ve),b(l,Oe),b(l,w),b(w,m),b(w,x),b(w,_),b(_,A),b(e,z),b(e,$),b($,R),b(R,X),b(X,fe),b(R,me),b(R,y),b(y,V),b(V,k),b($,le),b($,he);for(let re=0;re<se.length;re+=1)se[re]&&se[re].m(he,null);b(e,ze),ue&&ue.m(e,null),b(e,jr),b(e,Et),xe.m(Et,null),b(e,Mi),b(e,Zt),b(Zt,Me),b(Me,Vr),t[30](r),Yr||(Ii=[yr(R,"click",t[26]),yr(Me,"click",t[29])],Yr=!0)},p(S,U){if(S[15]&&Fe.p(S,U),U[0]&16384&&s!==(s=S[14]("titleSelfExclusion")+"")&&oe(n,s),U[0]&16385&&c!==(c=S[14]("selfExclusionText1",{values:{operatorname:S[0]}})+"")&&oe(h,c),U[0]&16384&&f!==(f=S[14]("selfExclusionText2")+"")&&oe(v,f),U[0]&16385&&F!==(F=S[14]("selfExclusionText3",{values:{operatorname:S[0]}})+"")&&oe(K,F),U[0]&16384&&ae!==(ae=S[14]("termsAndConditions")+"")&&oe(ye,ae),U[0]&4&&T(W,"href",S[2]),U[0]&16385&&M!==(M=S[14]("selfExclusionText4",{values:{operatorname:S[0]}})+"")&&oe(ve,M),U[0]&16384&&g!==(g=S[14]("selfExclusionText5")+"")&&oe(m,g),U[0]&2&&oe(A,S[1]),U[0]&2&&E!==(E="mailto:"+S[1])&&T(_,"href",E),U[0]&16896&&J!==(J=S[14](`${S[9]}`)+"")&&oe(fe,J),U[0]&8192&&Qe(y,"active",S[13]),U[0]&147488){Je=zi(S[5]);let re;for(re=0;re<Je.length;re+=1){const Li=Ks(S,Je,re);se[re]?se[re].p(Li,U):(se[re]=Js(Li),se[re].c(),se[re].m(he,null))}for(;re<se.length;re+=1)se[re].d(1);se.length=Je.length}U[0]&8192&&Qe(he,"active",S[13]),U[0]&8192&&Qe($,"active",S[13]),S[11]?ue?ue.p(S,U):(ue=Zs(S),ue.c(),ue.m(e,jr)):ue&&(ue.d(1),ue=null),rr===(rr=Ni(S))&&xe?xe.p(S,U):(xe.d(1),xe=rr(S),xe&&(xe.c(),xe.m(Et,null))),U[0]&16384&&Qt!==(Qt=S[14]("save")+"")&&oe(Vr,Qt),U[0]&4096&&er!==(er="SelfExclusionSave "+(S[12]?"active":""))&&T(Me,"class",er),U[0]&4096&&tr!==(tr=!S[12])&&(Me.disabled=tr)},i:be,o:be,d(S){S&&De(r),Fe&&Fe.d(),fl(se,S),ue&&ue.d(),xe.d(),t[30](null),Yr=!1,gt(Ii)}}}function Sm(t,r,e){let o;cl(t,Mc,y=>e(14,o=y));let{endpoint:i="",lang:s="en",operator:n="Everymatrix",supportemail:a="",termsconditionslink:l="",clientstyling:u="",clientstylingurl:c="",translationurl:h=""}=r,d,p,f=[],v=window.navigator.userAgent,P,D,O="",F="",K="selectAPeriod",q=Ic(v)!=="PC",W=!1,ae=!1,ye=!1,pe=!1;const j=()=>{fetch(h).then(V=>V.json()).then(V=>{Object.keys(V).forEach(k=>{ns(k,V[k])})}).catch(V=>{console.log(V)})};Object.keys(as).forEach(y=>{ns(y,as[y])});const M=()=>{let y=new URL(`${i}/v1/player/selfExclusionSettings`);fetch(y,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(k=>ve(k)).then(k=>{e(5,f=k.periods)}).catch(k=>{console.log(k)})},ve=y=>{if(y.status>=300)throw new Error("There was an error fetching the config");return y.json()},Oe=()=>{e(13,pe=!pe)},w=y=>{switch(F=y.text,e(9,K=y.key),e(12,ye=!0),e(13,pe=!1),e(10,W=!1),e(11,ae=!1),F){case"Until":e(11,ae=!0),e(6,P=to().add(6,"M").format("YYYY-MM-DD")),e(7,D=to().add(5,"y").format("YYYY-MM-DD")),e(8,O=P);break;case"Permanent":e(10,W=!W);break;default:const[V,k]=F.split(" "),le=k.includes("Day")?"days":k.includes("Month")?"months":k.includes("Year")?"years":null;if(!le)return;e(8,O=to().add(Number(V),le).format("YYYY-MM-DD"));break}},g=y=>{y.preventDefault(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:K,selfExclusionExpiryDate:O},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:q},window.location.href)},x=y=>{e(8,O=y.target.value)},_=()=>{p.addEventListener("change",x,!1)},A=()=>{let y=document.createElement("style");y.innerHTML=u,d.appendChild(y)},E=()=>{let y=new URL(c),V=document.createElement("style");fetch(y.href).then(k=>k.text()).then(k=>{V.innerHTML=k,setTimeout(()=>{d.appendChild(V)},1)})};bl(()=>()=>{p.removeEventListener("change",x)});const z=()=>{Lc(s)},$=()=>m(),R=()=>Oe(),X=y=>w(y);function J(y){vr[y?"unshift":"push"](()=>{p=y,e(4,p)})}const fe=y=>g(y);function me(y){vr[y?"unshift":"push"](()=>{d=y,e(3,d)})}return t.$$set=y=>{"endpoint"in y&&e(20,i=y.endpoint),"lang"in y&&e(21,s=y.lang),"operator"in y&&e(0,n=y.operator),"supportemail"in y&&e(1,a=y.supportemail),"termsconditionslink"in y&&e(2,l=y.termsconditionslink),"clientstyling"in y&&e(22,u=y.clientstyling),"clientstylingurl"in y&&e(23,c=y.clientstylingurl),"translationurl"in y&&e(24,h=y.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&16&&p&&_(),t.$$.dirty[0]&1048576&&i&&M(),t.$$.dirty[0]&2097152&&s&&z(),t.$$.dirty[0]&8388616&&c&&d&&E(),t.$$.dirty[0]&4194312&&u&&d&&A(),t.$$.dirty[0]&16777216&&h&&j()},[n,a,l,d,p,f,P,D,O,K,W,ae,ye,pe,o,q,Oe,w,g,m,i,s,u,c,h,$,R,X,J,fe,me]}class ol extends kl{constructor(r){super(),Pl(this,r,Sm,Em,en,{endpoint:20,lang:21,operator:0,supportemail:1,termsconditionslink:2,clientstyling:22,clientstylingurl:23,translationurl:24},bm,[-1,-1])}get endpoint(){return this.$$.ctx[20]}set endpoint(r){this.$$set({endpoint:r}),we()}get lang(){return this.$$.ctx[21]}set lang(r){this.$$set({lang:r}),we()}get operator(){return this.$$.ctx[0]}set operator(r){this.$$set({operator:r}),we()}get supportemail(){return this.$$.ctx[1]}set supportemail(r){this.$$set({supportemail:r}),we()}get termsconditionslink(){return this.$$.ctx[2]}set termsconditionslink(r){this.$$set({termsconditionslink:r}),we()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(r){this.$$set({clientstyling:r}),we()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),we()}get translationurl(){return this.$$.ctx[24]}set translationurl(r){this.$$set({translationurl:r}),we()}}Dl(ol,{endpoint:{},lang:{},operator:{},supportemail:{},termsconditionslink:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=ol;
|