@everymatrix/general-registration-multistep 1.87.25 → 1.87.27

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.
@@ -1497,38 +1497,38 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1497
1497
  * @license
1498
1498
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1499
1499
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1500
- */function gn(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function bn(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=bn();fn.forEach((e=>{gn(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const En=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),gn(this,bn(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const r=bn(),o=i===r&&-1===fn.indexOf(this),s=!i&&e&&-1===fn.indexOf(this);o||s?(this.__subscribe(),gn(this,r,i)):i!==r&&e===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=fn.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){"dir"===i&&""===e&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){fn.includes(this)||fn.push(this)}__unsubscribe(){fn.includes(this)&&fn.splice(fn.indexOf(this),1)}}
1500
+ */function gn(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function bn(){return document.documentElement.getAttribute("dir")}const En=new MutationObserver((function(){const t=bn();fn.forEach((e=>{gn(e,t)}))}));En.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const yn=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),gn(this,bn(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const r=bn(),o=i===r&&-1===fn.indexOf(this),s=!i&&e&&-1===fn.indexOf(this);o||s?(this.__subscribe(),gn(this,r,i)):i!==r&&e===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=fn.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){"dir"===i&&""===e&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){fn.includes(this)||fn.push(this)}__unsubscribe(){fn.includes(this)&&fn.splice(fn.indexOf(this),1)}}
1501
1501
  /**
1502
1502
  * @license
1503
1503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1504
1504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1505
- */;let yn;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)en(t,e)}(rn)};const wn=new Set,kn=t=>class extends(En(t)){static finalize(){super.finalize();const{is:t}=this;t&&!wn.has(t)&&(window.Vaadin.registrations.push(this),wn.add(t),window.Vaadin.developmentModeCallback&&(yn=mn.debounce(yn,dn,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),pn(yn)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
1505
+ */;let wn;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)en(t,e)}(rn)};const kn=new Set,xn=t=>class extends(yn(t)){static finalize(){super.finalize();const{is:t}=this;t&&!kn.has(t)&&(window.Vaadin.registrations.push(this),kn.add(t),window.Vaadin.developmentModeCallback&&(wn=mn.debounce(wn,dn,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),pn(wn)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
1506
1506
  /**
1507
1507
  * @license
1508
1508
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1509
1509
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1510
- */;function xn(t){const e=[];let i;return"slot"===t.localName?i=t.assignedElements():(e.push(t),i=[...t.children]),i.forEach((t=>e.push(...xn(t)))),e}function Sn(t){return t?new Set(t.split(" ")):new Set}function An(t){return t?[...t].join(" "):""}function Cn(t,e,i){const r=Sn(t.getAttribute(e));r.add(i),t.setAttribute(e,An(r))}
1510
+ */;function Sn(t){const e=[];let i;return"slot"===t.localName?i=t.assignedElements():(e.push(t),i=[...t.children]),i.forEach((t=>e.push(...Sn(t)))),e}function An(t){return t?new Set(t.split(" ")):new Set}function Cn(t){return t?[...t].join(" "):""}function In(t,e,i){const r=An(t.getAttribute(e));r.add(i),t.setAttribute(e,Cn(r))}
1511
1511
  /**
1512
1512
  * @license
1513
1513
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1514
1514
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1515
1515
  */
1516
- class In{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],r=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const s=t.indexOf(e);-1===s?i.push(e):s!==o&&r.push(e)})),(e.length||i.length||r.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:r,removedNodes:i}),this._storedNodes=t}}
1516
+ class Tn{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],r=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const s=t.indexOf(e);-1===s?i.push(e):s!==o&&r.push(e)})),(e.length||i.length||r.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:r,removedNodes:i}),this._storedNodes=t}}
1517
1517
  /**
1518
1518
  * @license
1519
1519
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1520
1520
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1521
- */let Tn=0;function Rn(){return Tn++}
1521
+ */let Rn=0;function On(){return Rn++}
1522
1522
  /**
1523
1523
  * @license
1524
1524
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1525
1525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1526
- */class On extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Rn()}`}constructor(t,e,i,r={}){super();const{initializer:o,multiple:s,observe:n,useUniqueId:a,uniqueIdPrefix:l}=r;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof s&&s,this.slotInitializer=o,s&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(""!==e&&r.setAttribute("slot",e),this.defaultNode=r)),r&&(this.node=r,t.appendChild(r)),r}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new In(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],r=t.filter((t=>{return!((e=t).nodeType===Node.TEXT_NODE&&""===e.textContent.trim()||i.includes(t));var e}));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter((t=>t!==this.defaultNode)),r.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))}))}}
1526
+ */class Dn extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${On()}`}constructor(t,e,i,r={}){super();const{initializer:o,multiple:s,observe:n,useUniqueId:a,uniqueIdPrefix:l}=r;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof s&&s,this.slotInitializer=o,s&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(""!==e&&r.setAttribute("slot",e),this.defaultNode=r)),r&&(this.node=r,t.appendChild(r)),r}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new Tn(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],r=t.filter((t=>{return!((e=t).nodeType===Node.TEXT_NODE&&""===e.textContent.trim()||i.includes(t));var e}));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter((t=>t!==this.defaultNode)),r.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))}))}}
1527
1527
  /**
1528
1528
  * @license
1529
1529
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1530
1530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1531
- */class Dn extends On{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1531
+ */class Nn extends Dn{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1532
1532
  /**
1533
1533
  @license
1534
1534
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1537,12 +1537,12 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1537
1537
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1538
1538
  Code distributed by Google as part of the polymer project is also
1539
1539
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1540
- */const Nn=t=>t,zn="string"==typeof document.head.style.touchAction,Gn="__polymerGestures",Mn="__polymerGesturesHandled",Bn="__polymerGesturesTouchAction",Un=["mousedown","mousemove","mouseup","click"],Pn=[0,1,4,2],Ln=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function jn(t){return Un.indexOf(t)>-1}!function(){try{const t=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Fn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Vn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Hn(t){const e=t.type;if(!jn(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ln&&(e=Pn[t.which]||0),!!(1&e)}return 0===(void 0===t.button?0:t.button)}const qn={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function $n(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Xn(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Kn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Wn={},Yn=[];function Zn(t){const e=Kn(t);return e.length>0?e[0]:t.target}function Qn(t){const e=t.type,i=t.currentTarget[Gn];if(!i)return;const r=i[e];if(!r)return;if(!t[Mn]&&(t[Mn]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(qn.touch.id=i.identifier),qn.touch.id!==i.identifier)return;zn||("touchstart"===e||"touchmove"===e)&&function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)qn.touch.x=e.clientX,qn.touch.y=e.clientY,qn.touch.scrollDecided=!1;else if("touchmove"===i){if(qn.touch.scrollDecided)return;qn.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=Kn(t);for(let t,r=0;r<i.length;r++)if(t=i[r],t[Bn]){e=t[Bn];break}return e}(t);let r=!1;const o=Math.abs(qn.touch.x-e.clientX),s=Math.abs(qn.touch.y-e.clientY);t.cancelable&&("none"===i?r=!0:"pan-x"===i?r=s>o:"pan-y"===i&&(r=o>s)),r?t.preventDefault():ra("track")}}(t)}const o=t[Mn];if(!o.skip){for(let e,i=0;i<Yn.length;i++)e=Yn[i],r[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,s=0;s<Yn.length;s++)i=Yn[s],r[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function Jn(t,e,i){return!!Wn[e]&&(function(t,e,i){const r=Wn[e],o=r.deps,s=r.name;let n=t[Gn];n||(t[Gn]=n={});for(let e,i,r=0;r<o.length;r++)e=o[r],(!Fn||!jn(e)||"click"===e)&&(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Qn,void 0),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),r.touchAction&&ea(t,r.touchAction)}(t,e,i),!0)}function ta(t){Yn.push(t),t.emits.forEach((e=>{Wn[e]=t}))}function ea(t,e){zn&&t instanceof HTMLElement&&cn.run((()=>{t.style.touchAction=e})),t[Bn]=e}function ia(t,e,i){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,Nn(t).dispatchEvent(r),r.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function ra(t){const e=function(t){for(let e,i=0;i<Yn.length;i++){e=Yn[i];for(let i,r=0;r<e.emits.length;r++)if(i=e.emits[r],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function oa(t,e,i,r){e&&ia(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:t=>ra(t)})}function sa(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-e),o=Math.abs(t.y-i);return r>=5||o>=5}function na(t,e,i){if(!e)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let s,n=0;r&&(s=o.x-r.x,n=o.y-r.y),ia(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:s,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,e),o===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function aa(t,e,i){const r=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),s=Zn(i||e);!s||Vn[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Zn(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=i.left&&r<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||ia(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
1540
+ */const zn=t=>t,Gn="string"==typeof document.head.style.touchAction,Mn="__polymerGestures",Bn="__polymerGesturesHandled",Un="__polymerGesturesTouchAction",Pn=["mousedown","mousemove","mouseup","click"],Ln=[0,1,4,2],jn=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Fn(t){return Pn.indexOf(t)>-1}!function(){try{const t=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Vn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Hn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function qn(t){const e=t.type;if(!Fn(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!jn&&(e=Ln[t.which]||0),!!(1&e)}return 0===(void 0===t.button?0:t.button)}const $n={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Xn(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Kn(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Wn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Yn={},Zn=[];function Qn(t){const e=Wn(t);return e.length>0?e[0]:t.target}function Jn(t){const e=t.type,i=t.currentTarget[Mn];if(!i)return;const r=i[e];if(!r)return;if(!t[Bn]&&(t[Bn]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&($n.touch.id=i.identifier),$n.touch.id!==i.identifier)return;Gn||("touchstart"===e||"touchmove"===e)&&function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)$n.touch.x=e.clientX,$n.touch.y=e.clientY,$n.touch.scrollDecided=!1;else if("touchmove"===i){if($n.touch.scrollDecided)return;$n.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=Wn(t);for(let t,r=0;r<i.length;r++)if(t=i[r],t[Un]){e=t[Un];break}return e}(t);let r=!1;const o=Math.abs($n.touch.x-e.clientX),s=Math.abs($n.touch.y-e.clientY);t.cancelable&&("none"===i?r=!0:"pan-x"===i?r=s>o:"pan-y"===i&&(r=o>s)),r?t.preventDefault():oa("track")}}(t)}const o=t[Bn];if(!o.skip){for(let e,i=0;i<Zn.length;i++)e=Zn[i],r[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,s=0;s<Zn.length;s++)i=Zn[s],r[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function ta(t,e,i){return!!Yn[e]&&(function(t,e,i){const r=Yn[e],o=r.deps,s=r.name;let n=t[Mn];n||(t[Mn]=n={});for(let e,i,r=0;r<o.length;r++)e=o[r],(!Vn||!Fn(e)||"click"===e)&&(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Jn,void 0),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),r.touchAction&&ia(t,r.touchAction)}(t,e,i),!0)}function ea(t){Zn.push(t),t.emits.forEach((e=>{Yn[e]=t}))}function ia(t,e){Gn&&t instanceof HTMLElement&&cn.run((()=>{t.style.touchAction=e})),t[Un]=e}function ra(t,e,i){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,zn(t).dispatchEvent(r),r.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function oa(t){const e=function(t){for(let e,i=0;i<Zn.length;i++){e=Zn[i];for(let i,r=0;r<e.emits.length;r++)if(i=e.emits[r],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function sa(t,e,i,r){e&&ra(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:t=>oa(t)})}function na(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-e),o=Math.abs(t.y-i);return r>=5||o>=5}function aa(t,e,i){if(!e)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let s,n=0;r&&(s=o.x-r.x,n=o.y-r.y),ra(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:s,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,e),o===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function la(t,e,i){const r=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),s=Qn(i||e);!s||Hn[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Qn(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=i.left&&r<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||ra(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
1541
1541
  /**
1542
1542
  * @license
1543
1543
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1544
1544
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1545
- */ta({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Xn(this.info)},mousedown(t){if(!Hn(t))return;const e=Zn(t),i=this;$n(this.info,(t=>{Hn(t)||(oa("up",e,t),Xn(i.info))}),(t=>{Hn(t)&&oa("up",e,t),Xn(i.info)})),oa("down",e,t)},touchstart(t){oa("down",Zn(t),t.changedTouches[0],t)},touchend(t){oa("up",Zn(t),t.changedTouches[0],t)}}),ta({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>2&&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,Xn(this.info)},mousedown(t){if(!Hn(t))return;const e=Zn(t),i=this,r=t=>{const r=t.clientX,o=t.clientY;sa(i.info,r,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&ra("tap"),i.info.addMove({x:r,y:o}),Hn(t)||(i.info.state="end",Xn(i.info)),e&&na(i.info,e,t),i.info.started=!0)};$n(this.info,r,(t=>{i.info.started&&r(t),Xn(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Zn(t),i=t.changedTouches[0],r=i.clientX,o=i.clientY;sa(this.info,r,o)&&("start"===this.info.state&&ra("tap"),this.info.addMove({x:r,y:o}),na(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Zn(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),na(this.info,e,i))}}),ta({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){Hn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Hn(t)&&aa(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){aa(this.info,t.changedTouches[0],t)}});const la=ao((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),ha=ao((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),da=t=>class extends(la(ha(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Jn(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Jn(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
1545
+ */ea({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kn(this.info)},mousedown(t){if(!qn(t))return;const e=Qn(t),i=this;Xn(this.info,(t=>{qn(t)||(sa("up",e,t),Kn(i.info))}),(t=>{qn(t)&&sa("up",e,t),Kn(i.info)})),sa("down",e,t)},touchstart(t){sa("down",Qn(t),t.changedTouches[0],t)},touchend(t){sa("up",Qn(t),t.changedTouches[0],t)}}),ea({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>2&&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,Kn(this.info)},mousedown(t){if(!qn(t))return;const e=Qn(t),i=this,r=t=>{const r=t.clientX,o=t.clientY;na(i.info,r,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&oa("tap"),i.info.addMove({x:r,y:o}),qn(t)||(i.info.state="end",Kn(i.info)),e&&aa(i.info,e,t),i.info.started=!0)};Xn(this.info,r,(t=>{i.info.started&&r(t),Kn(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Qn(t),i=t.changedTouches[0],r=i.clientX,o=i.clientY;na(this.info,r,o)&&("start"===this.info.state&&oa("tap"),this.info.addMove({x:r,y:o}),aa(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Qn(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),aa(this.info,e,i))}}),ea({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){qn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){qn(t)&&la(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){la(this.info,t.changedTouches[0],t)}});const ha=ao((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),da=ao((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),ca=t=>class extends(ha(da(t))){get _activeKeys(){return[" "]}ready(){super.ready(),ta(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),ta(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
1546
1546
  /**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1552,64 +1552,64 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1552
1552
  * @license
1553
1553
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1554
1554
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1555
- */let ca=!1;function ua(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ma(){return ca}function pa(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}function va(t,e){const i=Math.max(t.tabIndex,0),r=Math.max(e.tabIndex,0);return 0===i||0===r?r>i:i>r}function _a(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)va(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}(_a(t.slice(0,i)),_a(t.slice(i)))}function fa(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||pa(t)}function ga(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function ba(t){return t.getRootNode().activeElement===t}function Ea(t,e){if(t.nodeType!==Node.ELEMENT_NODE||pa(t))return!1;const i=t,r=function(t){if(!ga(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=r>0;r>=0&&e.push(i);let s=[];return s="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...s].forEach((t=>{o=Ea(t,e)||o})),o}window.addEventListener("keydown",(()=>{ca=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{ca=!1}),{capture:!0});
1555
+ */let ua=!1;function ma(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function pa(){return ua}function va(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}function _a(t,e){const i=Math.max(t.tabIndex,0),r=Math.max(e.tabIndex,0);return 0===i||0===r?r>i:i>r}function fa(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)_a(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}(fa(t.slice(0,i)),fa(t.slice(i)))}function ga(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||va(t)}function ba(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function Ea(t){return t.getRootNode().activeElement===t}function ya(t,e){if(t.nodeType!==Node.ELEMENT_NODE||va(t))return!1;const i=t,r=function(t){if(!ba(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=r>0;r>=0&&e.push(i);let s=[];return s="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...s].forEach((t=>{o=ya(t,e)||o})),o}window.addEventListener("keydown",(()=>{ua=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{ua=!1}),{capture:!0});
1556
1556
  /**
1557
1557
  * @license
1558
1558
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1559
1559
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1560
1560
  */
1561
- const ya=ao((t=>class extends t{get _keyboardActive(){return ma()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),wa=t=>class extends(la(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
1561
+ const wa=ao((t=>class extends t{get _keyboardActive(){return pa()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),ka=t=>class extends(ha(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
1562
1562
  /**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */,ka=ao((t=>class extends(ya(wa(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(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),xa=ao((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),Sa=ao((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 null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),(""!==t||void 0!==e)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Aa=ao((t=>class extends(xa(la(Sa(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}})),Ca=new Map;
1566
+ */,xa=ao((t=>class extends(wa(ka(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(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),Sa=ao((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),Aa=ao((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 null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),(""!==t||void 0!==e)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Ca=ao((t=>class extends(Sa(ha(Aa(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}})),Ia=new Map;
1567
1567
  /**
1568
1568
  * @license
1569
1569
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1570
1570
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1571
- */function Ia(t){return Ca.has(t)||Ca.set(t,new WeakMap),Ca.get(t)}function Ta(t,e){t&&t.removeAttribute(e)}function Ra(t,e){if(!t||!e)return;const i=Ia(e);if(i.has(t))return;const r=Sn(t.getAttribute(e));i.set(t,new Set(r))}function Oa(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=Ia(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):Ra(t,e),Ta(t,e)),function(t,e,i){const r=Sn(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,An(r)):t.removeAttribute(e)}(t,e,o);const l=r||An(a);l&&Cn(t,e,l)}
1571
+ */function Ta(t){return Ia.has(t)||Ia.set(t,new WeakMap),Ia.get(t)}function Ra(t,e){t&&t.removeAttribute(e)}function Oa(t,e){if(!t||!e)return;const i=Ta(e);if(i.has(t))return;const r=An(t.getAttribute(e));i.set(t,new Set(r))}function Da(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=Ta(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):Oa(t,e),Ra(t,e)),function(t,e,i){const r=An(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,Cn(r)):t.removeAttribute(e)}(t,e,o);const l=r||Cn(a);l&&In(t,e,l)}
1572
1572
  /**
1573
1573
  * @license
1574
1574
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1575
1575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1576
1576
  */
1577
- class Da{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){Ra(t,e),Ta(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Ia(e),r=i.get(t);r&&0!==r.size?Cn(t,e,An(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Oa(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Oa(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Oa(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1577
+ class Na{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){Oa(t,e),Ra(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Ta(e),r=i.get(t);r&&0!==r.size?In(t,e,Cn(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Da(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Da(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Da(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1578
1578
  /**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const Na=ao((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),za=document.createElement("div");
1582
+ */const za=ao((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),Ga=document.createElement("div");
1583
1583
  /**
1584
1584
  * @license
1585
1585
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1586
1586
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1587
- */let Ga;function Ma(t,e={}){const i=e.mode||"polite",r=void 0===e.timeout?150:e.timeout;"alert"===i?(za.removeAttribute("aria-live"),za.removeAttribute("role"),Ga=mn.debounce(Ga,hn,(()=>{za.setAttribute("role","alert")}))):(Ga&&Ga.cancel(),za.removeAttribute("role"),za.setAttribute("aria-live",i)),za.textContent="",setTimeout((()=>{za.textContent=t}),r)}
1587
+ */let Ma;function Ba(t,e={}){const i=e.mode||"polite",r=void 0===e.timeout?150:e.timeout;"alert"===i?(Ga.removeAttribute("aria-live"),Ga.removeAttribute("role"),Ma=mn.debounce(Ma,hn,(()=>{Ga.setAttribute("role","alert")}))):(Ma&&Ma.cancel(),Ga.removeAttribute("role"),Ga.setAttribute("aria-live",i)),Ga.textContent="",setTimeout((()=>{Ga.textContent=t}),r)}
1588
1588
  /**
1589
1589
  * @license
1590
1590
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1591
1591
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1592
- */za.style.position="fixed",za.style.clip="rect(0px, 0px, 0px, 0px)",za.setAttribute("aria-live","polite"),document.body.appendChild(za);class Ba extends On{constructor(t,e,i,r={}){super(t,e,i,ni(si({},r),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||!this.nodes||t===this.nodes[0])&&!t.id&&(t.id=this.defaultId)}}
1592
+ */Ga.style.position="fixed",Ga.style.clip="rect(0px, 0px, 0px, 0px)",Ga.setAttribute("aria-live","polite"),document.body.appendChild(Ga);class Ua extends Dn{constructor(t,e,i,r={}){super(t,e,i,ni(si({},r),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||!this.nodes||t===this.nodes[0])&&!t.id&&(t.id=this.defaultId)}}
1593
1593
  /**
1594
1594
  * @license
1595
1595
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1596
1596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
- */class Ua extends Ba{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,r=!(!i||!e||""===e.trim());t&&(t.textContent=r?e:"",t.hidden=!r,r&&Ma(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
1597
+ */class Pa extends Ua{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,r=!(!i||!e||""===e.trim());t&&(t.textContent=r?e:"",t.hidden=!r,r&&Ba(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
1598
1598
  /**
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */class Pa extends Ba{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&""!==t.trim()){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
1602
+ */class La extends Ua{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&""!==t.trim()){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
1603
1603
  /**
1604
1604
  * @license
1605
1605
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1606
1606
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1607
- */class La extends Ba{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&""!==t.trim()){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
1607
+ */class ja extends Ua{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&""!==t.trim()){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
1608
1608
  /**
1609
1609
  * @license
1610
1610
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1611
1611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1612
- */const ja=ao((t=>class extends(Na(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new La(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Fa=ao((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Va=t=>class extends(Fa(ja(Na(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 Da(this),this._helperController=new Pa(this),this._errorController=new Ua(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
1612
+ */const Fa=ao((t=>class extends(za(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ja(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Va=ao((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Ha=t=>class extends(Va(Fa(za(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 Na(this),this._helperController=new La(this),this._errorController=new Pa(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
1613
1613
  /**
1614
1614
  * @license
1615
1615
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1619,17 +1619,17 @@ class Da{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1619
1619
  * @license
1620
1620
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */class Ha extends On{constructor(t,e,i={}){const{uniqueIdPrefix:r}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:r})}}
1622
+ */class qa extends Dn{constructor(t,e,i={}){const{uniqueIdPrefix:r}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:r})}}
1623
1623
  /**
1624
1624
  * @license
1625
1625
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1626
1626
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1627
- */class qa{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)})),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
1627
+ */class $a{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)})),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
1628
1628
  /**
1629
1629
  * @license
1630
1630
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1631
1631
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1632
- */const $a=t=>class extends(Va(Aa(ka(da(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Ha(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new qa(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(t){return!this.readonly&&"a"!==t.target.localName&&t.target!==this._helperNode&&t.target!==this._errorNode&&super._shouldSetActive(t)}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("click",this._boundOnInputClick)}_onInputClick(t){this.readonly&&t.preventDefault()}__readonlyChanged(t,e){e&&(t?e.setAttribute("aria-readonly","true"):e.removeAttribute("aria-readonly"))}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}checkValidity(){return!this.required||!!this.checked}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_checkedChanged(t){(t||this.__oldChecked)&&this.validate(),this.__oldChecked=t}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1632
+ */const Xa=t=>class extends(Ha(Ca(xa(ca(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(t){return!this.readonly&&"a"!==t.target.localName&&t.target!==this._helperNode&&t.target!==this._errorNode&&super._shouldSetActive(t)}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("click",this._boundOnInputClick)}_onInputClick(t){this.readonly&&t.preventDefault()}__readonlyChanged(t,e){e&&(t?e.setAttribute("aria-readonly","true"):e.removeAttribute("aria-readonly"))}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}checkValidity(){return!this.required||!!this.checked}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_checkedChanged(t){(t||this.__oldChecked)&&this.validate(),this.__oldChecked=t}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1633
1633
  /**
1634
1634
  * @license
1635
1635
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -1728,7 +1728,7 @@ Rr("vaadin-checkbox",_i`
1728
1728
  outline-width: 2px;
1729
1729
  }
1730
1730
  }
1731
- `,{moduleId:"vaadin-checkbox-styles"});class Xa extends($a(kn(Gr(Qs)))){static get is(){return"vaadin-checkbox"}static get template(){return Ys`
1731
+ `,{moduleId:"vaadin-checkbox-styles"});class Ka extends(Xa(xn(Gr(Qs)))){static get is(){return"vaadin-checkbox"}static get template(){return Ys`
1732
1732
  <div class="vaadin-checkbox-container">
1733
1733
  <div part="checkbox" aria-hidden="true"></div>
1734
1734
  <slot name="input"></slot>
@@ -1744,13 +1744,13 @@ Rr("vaadin-checkbox",_i`
1744
1744
  </div>
1745
1745
  </div>
1746
1746
  <slot name="tooltip"></slot>
1747
- `}ready(){super.ready(),this._tooltipController=new Dn(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Xa);
1747
+ `}ready(){super.ready(),this._tooltipController=new Nn(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Ka);
1748
1748
  /**
1749
1749
  * @license
1750
1750
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1751
1751
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1752
1752
  */
1753
- const Ka=_i`
1753
+ const Wa=_i`
1754
1754
  :host {
1755
1755
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1756
1756
  }
@@ -1811,7 +1811,7 @@ const Ka=_i`
1811
1811
  * @license
1812
1812
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1813
1813
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1814
- */,Wa=_i`
1814
+ */,Ya=_i`
1815
1815
  [part='label'] {
1816
1816
  align-self: flex-start;
1817
1817
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1923,7 +1923,7 @@ const Ka=_i`
1923
1923
  margin-left: 0;
1924
1924
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1925
1925
  }
1926
- `;Rr("",Wa,{moduleId:"lumo-required-field"}),Rr("vaadin-checkbox-group",[Wa,Ka,_i`
1926
+ `;Rr("",Ya,{moduleId:"lumo-required-field"}),Rr("vaadin-checkbox-group",[Ya,Wa,_i`
1927
1927
  :host {
1928
1928
  color: var(--lumo-body-text-color);
1929
1929
  font-size: var(--lumo-font-size-m);
@@ -1972,7 +1972,7 @@ const Ka=_i`
1972
1972
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1973
1973
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1974
1974
  */
1975
- const Ya=t=>class extends(Va(ya(la(t)))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Dn(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new In(t,(({addedNodes:t,removedNodes:e})=>{const i=this.__filterCheckboxes(t),r=this.__filterCheckboxes(e);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const o=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(t){return t.filter((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-checkbox"===t.localName))}__warnOfCheckboxesWithoutValue(t){t.some((t=>{const{value:e}=t;return!(t.hasAttribute("value")||e&&"on"!==e)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(t){t.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(t.disabled=!0),this.readonly&&(t.readonly=!0),t.checked?this.__addCheckboxToValue(t.value):this.value&&this.value.includes(t.value)&&(t.checked=!0)}__unregisterCheckbox(t){t.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),t.checked&&this.__removeCheckboxFromValue(t.value)}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__checkboxes.forEach((e=>{e.disabled=t}))}__addCheckboxToValue(t){this.value?this.value.includes(t)||(this.value=[...this.value,t]):this.value=[t]}__removeCheckboxFromValue(t){this.value&&this.value.includes(t)&&(this.value=this.value.filter((e=>e!==t)))}__onCheckboxCheckedChanged(t){const e=t.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(t,e){t&&0===t.length&&void 0===e||(this.toggleAttribute("has-value",t&&t.length>0),this.__checkboxes.forEach((e=>{e.checked=t&&t.includes(e.value)})),void 0!==e&&this.validate())}__readonlyChanged(t,e){(t||e)&&this.__checkboxes.forEach((e=>{e.readonly=t}))}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}}
1975
+ const Za=t=>class extends(Ha(wa(ha(t)))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Nn(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Tn(t,(({addedNodes:t,removedNodes:e})=>{const i=this.__filterCheckboxes(t),r=this.__filterCheckboxes(e);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const o=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(t){return t.filter((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-checkbox"===t.localName))}__warnOfCheckboxesWithoutValue(t){t.some((t=>{const{value:e}=t;return!(t.hasAttribute("value")||e&&"on"!==e)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(t){t.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(t.disabled=!0),this.readonly&&(t.readonly=!0),t.checked?this.__addCheckboxToValue(t.value):this.value&&this.value.includes(t.value)&&(t.checked=!0)}__unregisterCheckbox(t){t.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),t.checked&&this.__removeCheckboxFromValue(t.value)}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__checkboxes.forEach((e=>{e.disabled=t}))}__addCheckboxToValue(t){this.value?this.value.includes(t)||(this.value=[...this.value,t]):this.value=[t]}__removeCheckboxFromValue(t){this.value&&this.value.includes(t)&&(this.value=this.value.filter((e=>e!==t)))}__onCheckboxCheckedChanged(t){const e=t.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(t,e){t&&0===t.length&&void 0===e||(this.toggleAttribute("has-value",t&&t.length>0),this.__checkboxes.forEach((e=>{e.checked=t&&t.includes(e.value)})),void 0!==e&&this.validate())}__readonlyChanged(t,e){(t||e)&&this.__checkboxes.forEach((e=>{e.readonly=t}))}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}}
1976
1976
  /**
1977
1977
  * @license
1978
1978
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
@@ -2012,7 +2012,7 @@ Rr("vaadin-checkbox-group",_i`
2012
2012
  :host(:not([has-label])) [part='label'] {
2013
2013
  display: none;
2014
2014
  }
2015
- `,{moduleId:"vaadin-checkbox-group-styles"});class Za extends(Ya(kn(Gr(Qs)))){static get is(){return"vaadin-checkbox-group"}static get template(){return Ys`
2015
+ `,{moduleId:"vaadin-checkbox-group-styles"});class Qa extends(Za(xn(Gr(Qs)))){static get is(){return"vaadin-checkbox-group"}static get template(){return Ys`
2016
2016
  <div class="vaadin-group-field-container">
2017
2017
  <div part="label">
2018
2018
  <slot name="label"></slot>
@@ -2033,13 +2033,13 @@ Rr("vaadin-checkbox-group",_i`
2033
2033
  </div>
2034
2034
 
2035
2035
  <slot name="tooltip"></slot>
2036
- `}}hi(Za);
2036
+ `}}hi(Qa);
2037
2037
  /**
2038
2038
  * @license
2039
2039
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2040
2040
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2041
2041
  */
2042
- const Qa=_i`
2042
+ const Ja=_i`
2043
2043
  :host {
2044
2044
  top: var(--lumo-space-m);
2045
2045
  right: var(--lumo-space-m);
@@ -2104,13 +2104,13 @@ const Qa=_i`
2104
2104
  opacity: 1;
2105
2105
  }
2106
2106
  }
2107
- `;Rr("",Qa,{moduleId:"lumo-overlay"});
2107
+ `;Rr("",Ja,{moduleId:"lumo-overlay"});
2108
2108
  /**
2109
2109
  * @license
2110
2110
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2111
2111
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2112
2112
  */
2113
- const Ja=_i`
2113
+ const tl=_i`
2114
2114
  :host([opening]),
2115
2115
  :host([closing]) {
2116
2116
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2140,7 +2140,7 @@ const Ja=_i`
2140
2140
  opacity: 0;
2141
2141
  }
2142
2142
  }
2143
- `;Rr("",Ja,{moduleId:"lumo-menu-overlay-core"});const tl=[Qa,Ja,_i`
2143
+ `;Rr("",tl,{moduleId:"lumo-menu-overlay-core"});const el=[Ja,tl,_i`
2144
2144
  /* Small viewport (bottom sheet) styles */
2145
2145
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2146
2146
  @media (max-width: 450px), (max-height: 450px) {
@@ -2202,7 +2202,7 @@ const Ja=_i`
2202
2202
  transform: translateY(150%);
2203
2203
  }
2204
2204
  }
2205
- `];Rr("",tl,{moduleId:"lumo-menu-overlay"}),Rr("vaadin-date-picker-overlay",[tl,_i`
2205
+ `];Rr("",el,{moduleId:"lumo-menu-overlay"}),Rr("vaadin-date-picker-overlay",[el,_i`
2206
2206
  [part='overlay'] {
2207
2207
  /*
2208
2208
  Width:
@@ -2247,7 +2247,7 @@ const Ja=_i`
2247
2247
  max-height: 70vh;
2248
2248
  }
2249
2249
  }
2250
- `],{moduleId:"lumo-date-picker-overlay"});const el=_i`
2250
+ `],{moduleId:"lumo-date-picker-overlay"});const il=_i`
2251
2251
  :host {
2252
2252
  /* Sizing */
2253
2253
  --lumo-button-size: var(--lumo-size-m);
@@ -2523,7 +2523,7 @@ const Ja=_i`
2523
2523
  margin-left: 0;
2524
2524
  margin-right: 0;
2525
2525
  }
2526
- `;Rr("vaadin-button",el,{moduleId:"lumo-button"}),Rr("vaadin-date-picker-year",_i`
2526
+ `;Rr("vaadin-button",il,{moduleId:"lumo-button"}),Rr("vaadin-date-picker-year",_i`
2527
2527
  :host([current]) [part='year-number'] {
2528
2528
  color: var(--lumo-primary-text-color);
2529
2529
  }
@@ -3028,7 +3028,7 @@ const Ja=_i`
3028
3028
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3029
3029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3030
3030
  */
3031
- const il=_i`
3031
+ const rl=_i`
3032
3032
  [part$='button'] {
3033
3033
  flex: none;
3034
3034
  width: 1em;
@@ -3055,13 +3055,13 @@ const il=_i`
3055
3055
  font-family: 'lumo-icons';
3056
3056
  display: block;
3057
3057
  }
3058
- `;Rr("",il,{moduleId:"lumo-field-button"});
3058
+ `;Rr("",rl,{moduleId:"lumo-field-button"});
3059
3059
  /**
3060
3060
  * @license
3061
3061
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3062
3062
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3063
3063
  */
3064
- const rl=[Wa,il,Ka,_i`
3064
+ const ol=[Ya,rl,Wa,_i`
3065
3065
  :host {
3066
3066
  --lumo-text-field-size: var(--lumo-size-m);
3067
3067
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3192,7 +3192,7 @@ const rl=[Wa,il,Ka,_i`
3192
3192
  [part='clear-button']::before {
3193
3193
  content: var(--lumo-icons-cross);
3194
3194
  }
3195
- `];Rr("",rl,{moduleId:"lumo-input-field-shared-styles"}),Rr("vaadin-date-picker",[rl,_i`
3195
+ `];Rr("",ol,{moduleId:"lumo-input-field-shared-styles"}),Rr("vaadin-date-picker",[ol,_i`
3196
3196
  [part='toggle-button']::before {
3197
3197
  content: var(--lumo-icons-calendar);
3198
3198
  }
@@ -3220,7 +3220,7 @@ const rl=[Wa,il,Ka,_i`
3220
3220
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3221
3221
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3222
3222
  */
3223
- const ol=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}
3223
+ const sl=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}
3224
3224
  /**
3225
3225
  * @license
3226
3226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -3296,17 +3296,17 @@ Rr("vaadin-input-container",_i`
3296
3296
  /* Override default opacity in Firefox */
3297
3297
  opacity: 1;
3298
3298
  }
3299
- `,{moduleId:"vaadin-input-container-styles"});class sl extends(ol(Gr(En(Qs)))){static get is(){return"vaadin-input-container"}static get template(){return Ys`
3299
+ `,{moduleId:"vaadin-input-container-styles"});class nl extends(sl(Gr(yn(Qs)))){static get is(){return"vaadin-input-container"}static get template(){return Ys`
3300
3300
  <slot name="prefix"></slot>
3301
3301
  <slot></slot>
3302
3302
  <slot name="suffix"></slot>
3303
- `}}hi(sl);
3303
+ `}}hi(nl);
3304
3304
  /**
3305
3305
  * @license
3306
3306
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3307
3307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
3308
  */
3309
- const nl=_i`
3309
+ const al=_i`
3310
3310
  :host {
3311
3311
  z-index: 200;
3312
3312
  position: fixed;
@@ -3374,62 +3374,62 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3374
3374
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3375
3375
  Code distributed by Google as part of the polymer project is also
3376
3376
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3377
- */;let al=!1,ll=[],hl=[];function dl(t){const e=t[0],i=t[1],r=t[2];try{i.apply(e,r)}catch(t){setTimeout((()=>{throw t}))}}function cl(t,e,i){al||(al=!0,requestAnimationFrame((function(){al=!1,function(t){for(;t.length;)dl(t.shift())}(ll),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)dl(t.shift())}(hl)}))}))),hl.push([t,e,i])
3377
+ */;let ll=!1,hl=[],dl=[];function cl(t){const e=t[0],i=t[1],r=t[2];try{i.apply(e,r)}catch(t){setTimeout((()=>{throw t}))}}function ul(t,e,i){ll||(ll=!0,requestAnimationFrame((function(){ll=!1,function(t){for(;t.length;)cl(t.shift())}(hl),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)cl(t.shift())}(dl)}))}))),dl.push([t,e,i])
3378
3378
  /**
3379
3379
  * @license
3380
3380
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3381
3381
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
- */}const ul=t=>t.test(navigator.userAgent),ml=t=>t.test(navigator.platform);ul(/Android/u),ul(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),ul(/Firefox/u);const pl=ml(/^iPad/u)||ml(/^Mac/u)&&navigator.maxTouchPoints>1,vl=ml(/^iPhone/u)||pl,_l=ul(/^((?!chrome|android).)*safari/iu),fl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
3382
+ */}const ml=t=>t.test(navigator.userAgent),pl=t=>t.test(navigator.platform);ml(/Android/u),ml(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),ml(/Firefox/u);const vl=pl(/^iPad/u)||pl(/^Mac/u)&&navigator.maxTouchPoints>1,_l=pl(/^iPhone/u)||vl,fl=ml(/^((?!chrome|android).)*safari/iu),gl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
3383
3383
  /**
3384
3384
  * @license
3385
3385
  * Copyright (c) 2017 Anton Korzunov
3386
3386
  * SPDX-License-Identifier: MIT
3387
- */let gl=new WeakMap,bl=new WeakMap,El={},yl=0;const wl=t=>t&&t.nodeType===Node.ELEMENT_NODE,kl=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},xl=(t,e=document.body,i="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,r)=>{const o=((t,e)=>wl(t)?e.map((e=>{if(!wl(e))return kl(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return kl(e,"is not contained inside",t),null})).filter((t=>!!t)):(kl(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);El[i]||(El[i]=new WeakMap);const s=El[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const d=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))d(t);else{const e=t.getAttribute(r),o=null!==e&&"false"!==e,a=(gl.get(t)||0)+1,l=(s.get(t)||0)+1;gl.set(t,a),s.set(t,l),n.push(t),1===a&&o&&bl.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(r,"true")}}))};return d(e),a.clear(),yl+=1,()=>{n.forEach((t=>{const e=gl.get(t)-1,o=s.get(t)-1;gl.set(t,e),s.set(t,o),e||(bl.has(t)?bl.delete(t):t.removeAttribute(r)),o||t.removeAttribute(i)})),yl-=1,yl||(gl=new WeakMap,gl=new WeakMap,bl=new WeakMap,El={})}})(r,e,i,"aria-hidden")
3387
+ */let bl=new WeakMap,El=new WeakMap,yl={},wl=0;const kl=t=>t&&t.nodeType===Node.ELEMENT_NODE,xl=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},Sl=(t,e=document.body,i="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,r)=>{const o=((t,e)=>kl(t)?e.map((e=>{if(!kl(e))return xl(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return xl(e,"is not contained inside",t),null})).filter((t=>!!t)):(xl(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);yl[i]||(yl[i]=new WeakMap);const s=yl[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const d=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))d(t);else{const e=t.getAttribute(r),o=null!==e&&"false"!==e,a=(bl.get(t)||0)+1,l=(s.get(t)||0)+1;bl.set(t,a),s.set(t,l),n.push(t),1===a&&o&&El.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(r,"true")}}))};return d(e),a.clear(),wl+=1,()=>{n.forEach((t=>{const e=bl.get(t)-1,o=s.get(t)-1;bl.set(t,e),s.set(t,o),e||(El.has(t)?El.delete(t):t.removeAttribute(r)),o||t.removeAttribute(i)})),wl-=1,wl||(bl=new WeakMap,bl=new WeakMap,El=new WeakMap,yl={})}})(r,e,i,"aria-hidden")
3388
3388
  /**
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */};class Sl{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=xl(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
3392
+ */};class Al{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Sl(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
3393
3393
  /**
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3397
- */class Al{saveFocus(t){this.focusNode=t||ua()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;ua()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
3397
+ */class Cl{saveFocus(t){this.focusNode=t||ma()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;ma()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
3398
3398
  /**
3399
3399
  * @license
3400
3400
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3401
3401
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3402
- */const Cl=[];class Il{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Ea(t,e)?_a(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(ba).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Cl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Cl.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Cl).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
3402
+ */const Il=[];class Tl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return ya(t,e)?fa(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ea).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Il.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Il.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Il).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
3403
3403
  /**
3404
3404
  * @license
3405
3405
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3406
3406
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3407
- */const Tl=t=>class extends(Na(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Sl(this),this.__focusTrapController=new Il(this),this.__focusRestorationController=new Al}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!ma();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=ua();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
3407
+ */const Rl=t=>class extends(za(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Al(this),this.__focusTrapController=new Tl(this),this.__focusRestorationController=new Cl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!pa();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=ma();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
3408
3408
  /**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */,Rl=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Ol=()=>Rl().filter((t=>t.$.overlay)),Dl=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Ol().pop())()}bringToFront(){let t="";const e=Rl().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ol().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Ol();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
3412
+ */,Ol=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Dl=()=>Ol().filter((t=>t.$.overlay)),Nl=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Dl().pop())()}bringToFront(){let t="";const e=Ol().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Dl().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Dl();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
3413
3413
  /**
3414
3414
  * @license
3415
3415
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3416
3416
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3417
- */,Nl=t=>class extends(Tl(Dl(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),vl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,r){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const s=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==r;this._oldOpened=r,s&&n&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),cl(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,r=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
3417
+ */,zl=t=>class extends(Rl(Nl(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),_l&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,r){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const s=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==r;this._oldOpened=r,s&&n&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),ul(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,r=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
3418
3418
  /**
3419
3419
  * @license
3420
3420
  * Copyright (c) 2024 Vaadin Ltd.
3421
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3422
- */,zl={start:"top",end:"bottom"},Gl={start:"left",end:"right"},Ml=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Bl=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i=null;const r=document.documentElement;function o(){i&&i.disconnect(),i=null}return function s(n=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(n||e(),!d||!c)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(r.clientWidth-(l+d))}px ${-Math.floor(r.clientHeight-(h+c))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!m)return s();0===e&&(e=1e-7),s(!1,e)}m=!1}),u),i.observe(t)}(!0),o}
3422
+ */,Gl={start:"top",end:"bottom"},Ml={start:"left",end:"right"},Bl=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Ul=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i=null;const r=document.documentElement;function o(){i&&i.disconnect(),i=null}return function s(n=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(n||e(),!d||!c)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(r.clientWidth-(l+d))}px ${-Math.floor(r.clientHeight-(h+c))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!m)return s();0===e&&(e=1e-7),s(!1,e)}m=!1}),u),i.observe(t)}(!0),o}
3423
3423
  /**
3424
3424
  * @license
3425
3425
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3426
3426
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3427
- */(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Ml.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Ml.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(t,i),o=!i&&r||i&&!r;this.style.alignItems=o?"flex-start":"flex-end";const s=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,s,this.noVerticalOverlap,zl,this,e),a=this.__calculatePositionInOneDimension(t,s,this.noHorizontalOverlap,Gl,this,r);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,r,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Gl)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,zl)}__shouldAlignStart(t,e,i,r,o,s,n){const a=i-t[s?n.end:n.start]-r[n.end],l=t[s?n.start:n.end]-r[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let r;if(t===e.end){if(e.end===zl.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Gl.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return r}__calculatePositionInOneDimension(t,e,i,r,o,s){const n=s?r.start:r.end,a=s?r.end:r.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,r,l),d=h?`${h}px`:`${l+(e[s?r.start:r.end]-t[i===s?r.end:r.start])*(s?-1:1)}px`;return{[n]:d,[a]:""}}}
3427
+ */(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Bl.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Bl.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(t,i),o=!i&&r||i&&!r;this.style.alignItems=o?"flex-start":"flex-end";const s=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,s,this.noVerticalOverlap,Gl,this,e),a=this.__calculatePositionInOneDimension(t,s,this.noHorizontalOverlap,Ml,this,r);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,r,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Ml)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Gl)}__shouldAlignStart(t,e,i,r,o,s,n){const a=i-t[s?n.end:n.start]-r[n.end],l=t[s?n.start:n.end]-r[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let r;if(t===e.end){if(e.end===Gl.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Ml.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return r}__calculatePositionInOneDimension(t,e,i,r,o,s){const n=s?r.start:r.end,a=s?r.end:r.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,r,l),d=h?`${h}px`:`${l+(e[s?r.start:r.end]-t[i===s?r.end:r.start])*(s?-1:1)}px`;return{[n]:d,[a]:""}}}
3428
3428
  /**
3429
3429
  * @license
3430
3430
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3431
3431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3432
- */,Ul=t=>class extends(Bl(Nl(t))){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ga(t.composedPath()[0])&&t.preventDefault()}}
3432
+ */,Pl=t=>class extends(Ul(zl(t))){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ba(t.composedPath()[0])&&t.preventDefault()}}
3433
3433
  /**
3434
3434
  * @license
3435
3435
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3440,7 +3440,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3441
3441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3442
3442
  */
3443
- Rr("vaadin-date-picker-overlay",[nl,_i`
3443
+ Rr("vaadin-date-picker-overlay",[al,_i`
3444
3444
  [part='overlay'] {
3445
3445
  display: flex;
3446
3446
  flex: auto;
@@ -3455,20 +3455,20 @@ Rr("vaadin-date-picker-overlay",[nl,_i`
3455
3455
  outline: 3px solid;
3456
3456
  }
3457
3457
  }
3458
- `],{moduleId:"vaadin-date-picker-overlay-styles"});class Pl extends(Ul(En(Gr(Qs)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ys`
3458
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Ll extends(Pl(yn(Gr(Qs)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ys`
3459
3459
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3460
3460
  <div part="overlay" id="overlay">
3461
3461
  <div part="content" id="content">
3462
3462
  <slot></slot>
3463
3463
  </div>
3464
3464
  </div>
3465
- `}}hi(Pl);
3465
+ `}}hi(Ll);
3466
3466
  /**
3467
3467
  * @license
3468
3468
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3469
3469
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3470
3470
  */
3471
- const Ll=_i`
3471
+ const jl=_i`
3472
3472
  :host {
3473
3473
  display: inline-block;
3474
3474
  position: relative;
@@ -3528,7 +3528,7 @@ const Ll=_i`
3528
3528
  outline-color: GrayText;
3529
3529
  }
3530
3530
  }
3531
- `,jl=t=>class extends(da(wa(ya(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(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
3531
+ `,Fl=t=>class extends(ca(ka(wa(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(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
3532
3532
  /**
3533
3533
  * @license
3534
3534
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -3538,7 +3538,7 @@ const Ll=_i`
3538
3538
  * @license
3539
3539
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3540
3540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3541
- */Rr("vaadin-button",Ll,{moduleId:"vaadin-button-styles"});class Fl extends(jl(kn(Gr(Na(Qs))))){static get is(){return"vaadin-button"}static get template(){return Ys`
3541
+ */Rr("vaadin-button",jl,{moduleId:"vaadin-button-styles"});class Vl extends(Fl(xn(Gr(za(Qs))))){static get is(){return"vaadin-button"}static get template(){return Ys`
3542
3542
  <div class="vaadin-button-container">
3543
3543
  <span part="prefix" aria-hidden="true">
3544
3544
  <slot name="prefix"></slot>
@@ -3551,7 +3551,7 @@ const Ll=_i`
3551
3551
  </span>
3552
3552
  </div>
3553
3553
  <slot name="tooltip"></slot>
3554
- `}ready(){super.ready(),this._tooltipController=new Dn(this),this.addController(this._tooltipController)}}function Vl(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function Hl(t,e,i=Vl){return t instanceof Date&&e instanceof Date&&i(t).getTime()===i(e).getTime()}function ql(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function $l(t,e,i,r){let o=!1;return"function"==typeof r&&t&&(o=r(ql(t))),(!e||t>=e)&&(!i||t<=i)&&!o}function Xl(t,e){return e.filter((t=>void 0!==t)).reduce(((e,i)=>i?e?Math.abs(t.getTime()-i.getTime())<Math.abs(e.getTime()-t.getTime())?i:e:i:e))}function Kl(t){const e=new Date,i=new Date(e);return i.setDate(1),i.setMonth(parseInt(t)+e.getMonth()),i}function Wl(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const i=new Date(0,0);return i.setFullYear(parseInt(e[1],10)),i.setMonth(parseInt(e[2],10)-1),i.setDate(parseInt(e[3],10)),i}hi(Fl);
3554
+ `}ready(){super.ready(),this._tooltipController=new Nn(this),this.addController(this._tooltipController)}}function Hl(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function ql(t,e,i=Hl){return t instanceof Date&&e instanceof Date&&i(t).getTime()===i(e).getTime()}function $l(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function Xl(t,e,i,r){let o=!1;return"function"==typeof r&&t&&(o=r($l(t))),(!e||t>=e)&&(!i||t<=i)&&!o}function Kl(t,e){return e.filter((t=>void 0!==t)).reduce(((e,i)=>i?e?Math.abs(t.getTime()-i.getTime())<Math.abs(e.getTime()-t.getTime())?i:e:i:e))}function Wl(t){const e=new Date,i=new Date(e);return i.setDate(1),i.setMonth(parseInt(t)+e.getMonth()),i}function Yl(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const i=new Date(0,0);return i.setFullYear(parseInt(e[1],10)),i.setMonth(parseInt(e[2],10)-1),i.setDate(parseInt(e[3],10)),i}hi(Vl);
3555
3555
  /**
3556
3556
  @license
3557
3557
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3561,7 +3561,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3561
3561
  Code distributed by Google as part of the polymer project is also
3562
3562
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3563
3563
  */
3564
- class Yl{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,Zl.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Zl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,i){return t instanceof Yl?t._cancelAsync():t=new Yl,t.setConfig(e,i),t}}let Zl=new Set;const Ql=function(){const t=!!Zl.size;return Zl.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t
3564
+ class Zl{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,Ql.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Ql.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,i){return t instanceof Zl?t._cancelAsync():t=new Zl,t.setConfig(e,i),t}}let Ql=new Set;const Jl=function(){const t=!!Ql.size;return Ql.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t
3565
3565
  /**
3566
3566
  @license
3567
3567
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3570,29 +3570,29 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3570
3570
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3571
3571
  Code distributed by Google as part of the polymer project is also
3572
3572
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3573
- */},Jl=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Ql()}while(t||e)},th=document.createElement("template");th.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class eh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(th.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Jl()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?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 t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||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=mn.debounce(this._debouncerScrollFinish,ln.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=mn.debounce(this._debouncerUpdateClones,ln.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${Rn()}`,o=document.createElement("slot");o.setAttribute("name",r),o._itemWrapper=i,e.appendChild(o),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const s=i._itemWrapper;(!t||this._isVisible(s,e))&&this._updateElement(s.instance,o+r)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
3573
+ */},th=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Jl()}while(t||e)},eh=document.createElement("template");eh.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class ih extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(eh.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),th()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?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 t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||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=mn.debounce(this._debouncerScrollFinish,ln.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=mn.debounce(this._debouncerUpdateClones,ln.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${On()}`,o=document.createElement("slot");o.setAttribute("name",r),o._itemWrapper=i,e.appendChild(o),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const s=i._itemWrapper;(!t||this._isVisible(s,e))&&this._updateElement(s.instance,o+r)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
3574
3574
  /**
3575
3575
  * @license
3576
3576
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3577
3577
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3578
- */const ih=document.createElement("template");ih.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",hi(class extends eh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ih.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Kl(e)}});
3578
+ */const rh=document.createElement("template");rh.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",hi(class extends ih{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(rh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Wl(e)}});
3579
3579
  /**
3580
3580
  * @license
3581
3581
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3582
3582
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3583
3583
  */
3584
- const rh=document.createElement("template");rh.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",hi(class extends eh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(rh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}});
3584
+ const oh=document.createElement("template");oh.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",hi(class extends ih{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(oh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}});
3585
3585
  /**
3586
3586
  * @license
3587
3587
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3588
3588
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3589
3589
  */
3590
- const oh=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===(new Date).getFullYear())}}
3590
+ const sh=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===(new Date).getFullYear())}}
3591
3591
  /**
3592
3592
  * @license
3593
3593
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3594
3594
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3595
- */;class sh extends(Gr(oh(Qs))){static get is(){return"vaadin-date-picker-year"}static get template(){return Ys`
3595
+ */;class nh extends(Gr(sh(Qs))){static get is(){return"vaadin-date-picker-year"}static get template(){return Ys`
3596
3596
  <style>
3597
3597
  :host {
3598
3598
  display: block;
@@ -3611,7 +3611,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3611
3611
  Code distributed by Google as part of the polymer project is also
3612
3612
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3613
3613
  */
3614
- function nh(t,e,i,r,o){let s;o&&(s="object"==typeof i&&null!==i,s&&(r=t.__dataTemp[e]));let n=r!==i&&(r==r||i==i);return s&&n&&(t.__dataTemp[e]=i),n}hi(sh);const ah=ao((t=>class extends t{_shouldPropertyChange(t,e,i){return nh(this,t,e,i,!0)}})),lh=ao((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return nh(this,t,e,i,this.mutableData)}}));ah._mutablePropertyChange=nh;
3614
+ function ah(t,e,i,r,o){let s;o&&(s="object"==typeof i&&null!==i,s&&(r=t.__dataTemp[e]));let n=r!==i&&(r==r||i==i);return s&&n&&(t.__dataTemp[e]=i),n}hi(nh);const lh=ao((t=>class extends t{_shouldPropertyChange(t,e,i){return ah(this,t,e,i,!0)}})),hh=ao((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return ah(this,t,e,i,this.mutableData)}}));lh._mutablePropertyChange=ah;
3615
3615
  /**
3616
3616
  @license
3617
3617
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3621,7 +3621,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3621
3621
  Code distributed by Google as part of the polymer project is also
3622
3622
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3623
3623
  */
3624
- let hh=null;function dh(){return hh}dh.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:dh,writable:!0}});const ch=Fs(dh),uh=ah(ch),mh=Fs(class{});class ph extends mh{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,i(t)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,i)}}_showHideChildren(t){!function(t,e){for(let i=0;i<e.length;i++){let r=e[i];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),ko(ko(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&ko(ko(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const vh=ah(ph);function _h(t){let e=t.__dataHost;return e&&e._methodHost||e}function fh(t,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function gh(t,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function bh(t,e,i){if(Wr&&!_h(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let r=(e?e.constructor:ph)._parseTemplate(t),o=r.templatizeInstanceClass;o||(o=function(t,e,i){let r=i.mutableData?vh:ph;bh.mixin&&(r=bh.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(t),function(t,e,i,r){let o=i.hostProps||{};for(let e in r.instanceProps){delete o[e];let i=r.notifyInstanceProp;i&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gh(0,i)})}if(r.forwardHostProp&&e.__dataHost)for(let e in o)i.hasHostProps||(i.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}})}(o,t,e,i),o}(t,r,i),r.templatizeInstanceClass=o);const s=_h(t);!function(t,e,i,r){let o=i.forwardHostProp;if(o&&e.hasHostProps){const s="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(s){let t=i.mutableData?uh:ch;class r extends t{}n=e.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}n=e.templatizeTemplateClass=r}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fh(0,o)}),n.prototype._createNotifyingProperty("_host_"+t);Qr&&r&&function(t,e,i){const r=i.constructor._properties,{propertyEffects:o}=t,{instanceProps:s}=e;for(let t in o)if(!(r[t]||s&&s[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:r}=e[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,i,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)(function(t,e){hh=t,Object.setPrototypeOf(t,e.prototype),new e,hh=null})(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i)if(e="_host_"+e,e in t){const i=t[e];delete t[e],t.__data[e]=i}}}}(t,r,i,s);let n=class extends o{};return n.prototype._methodHost=s,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n}
3624
+ let dh=null;function ch(){return dh}ch.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ch,writable:!0}});const uh=Fs(ch),mh=lh(uh),ph=Fs(class{});class vh extends ph{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,i(t)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,i)}}_showHideChildren(t){!function(t,e){for(let i=0;i<e.length;i++){let r=e[i];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),ko(ko(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&ko(ko(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const _h=lh(vh);function fh(t){let e=t.__dataHost;return e&&e._methodHost||e}function gh(t,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function bh(t,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function Eh(t,e,i){if(Wr&&!fh(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let r=(e?e.constructor:vh)._parseTemplate(t),o=r.templatizeInstanceClass;o||(o=function(t,e,i){let r=i.mutableData?_h:vh;Eh.mixin&&(r=Eh.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(t),function(t,e,i,r){let o=i.hostProps||{};for(let e in r.instanceProps){delete o[e];let i=r.notifyInstanceProp;i&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bh(0,i)})}if(r.forwardHostProp&&e.__dataHost)for(let e in o)i.hasHostProps||(i.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}})}(o,t,e,i),o}(t,r,i),r.templatizeInstanceClass=o);const s=fh(t);!function(t,e,i,r){let o=i.forwardHostProp;if(o&&e.hasHostProps){const s="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(s){let t=i.mutableData?mh:uh;class r extends t{}n=e.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}n=e.templatizeTemplateClass=r}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:gh(0,o)}),n.prototype._createNotifyingProperty("_host_"+t);Qr&&r&&function(t,e,i){const r=i.constructor._properties,{propertyEffects:o}=t,{instanceProps:s}=e;for(let t in o)if(!(r[t]||s&&s[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:r}=e[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,i,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)(function(t,e){dh=t,Object.setPrototypeOf(t,e.prototype),new e,dh=null})(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i)if(e="_host_"+e,e in t){const i=t[e];delete t[e],t.__data[e]=i}}}}(t,r,i,s);let n=class extends o{};return n.prototype._methodHost=s,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n}
3625
3625
  /**
3626
3626
  @license
3627
3627
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3631,7 +3631,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3631
3631
  Code distributed by Google as part of the polymer project is also
3632
3632
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3633
3633
  */
3634
- let Eh=!1;
3634
+ let yh=!1;
3635
3635
  /**
3636
3636
  @license
3637
3637
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3641,13 +3641,13 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3641
3641
  Code distributed by Google as part of the polymer project is also
3642
3642
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3643
3643
  */
3644
- const yh=lh(Qs);class wh extends yh{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:!oo,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}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(Zr&&!qr){if(!Eh){Eh=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=ko(ko(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=bh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let r,o=0;o<i.length&&(r=i[o]);o++)r.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if(function(t,e){return t===e||Ao(t,e)||Co(t,e)}(this.as,e)){let r=t[this.itemsIndexAs];e==this.as&&(this.items[r]=i);let o=Io(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,e);this.notifyPath(o,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Yl.debounce(this.__renderDebouncer,e>0?Ho.after(e):qo,t.bind(this)),Zl.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Jl()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!oo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,r)=>this.__filterFn(t[e],i,r)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),r=Math.max(e-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+r,t)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const r=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],s=i[o],n=t[s];r[s]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,s),e._flushProperties()):this.__insertInstance(n,o,s)}for(let t=this.__instances.length-1;t>=o;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=ko(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let r={};return r[this.as]=t,r[this.indexAs]=e,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(t,e,i){const r=this.__stampInstance(t,e,i);let o=this.__instances[e+1],s=o?o.children[0]:this;return ko(ko(this).parentNode).insertBefore(r.root,s),this.__instances[e]=r,r}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),r=i.indexOf("."),o=r<0?i:i.substring(0,r);if(o==parseInt(o,10)){let t=r<0?"":i.substring(r+1);this.__handleObservedPaths(t);let s=this.__instances[this.__itemsIdxToInstIdx[o]];return s&&(s._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),s._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=ko(e).parentNode;return null}(this.template,t)}}customElements.define(wh.is,wh);
3644
+ const wh=hh(Qs);class kh extends wh{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:!oo,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}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(Zr&&!qr){if(!yh){yh=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=ko(ko(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Eh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let r,o=0;o<i.length&&(r=i[o]);o++)r.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if(function(t,e){return t===e||Ao(t,e)||Co(t,e)}(this.as,e)){let r=t[this.itemsIndexAs];e==this.as&&(this.items[r]=i);let o=Io(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,e);this.notifyPath(o,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Zl.debounce(this.__renderDebouncer,e>0?Ho.after(e):qo,t.bind(this)),Ql.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),th()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!oo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,r)=>this.__filterFn(t[e],i,r)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),r=Math.max(e-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+r,t)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const r=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],s=i[o],n=t[s];r[s]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,s),e._flushProperties()):this.__insertInstance(n,o,s)}for(let t=this.__instances.length-1;t>=o;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=ko(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let r={};return r[this.as]=t,r[this.indexAs]=e,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(t,e,i){const r=this.__stampInstance(t,e,i);let o=this.__instances[e+1],s=o?o.children[0]:this;return ko(ko(this).parentNode).insertBefore(r.root,s),this.__instances[e]=r,r}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),r=i.indexOf("."),o=r<0?i:i.substring(0,r);if(o==parseInt(o,10)){let t=r<0?"":i.substring(r+1);this.__handleObservedPaths(t);let s=this.__instances[this.__itemsIdxToInstIdx[o]];return s&&(s._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),s._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=ko(e).parentNode;return null}(this.template,t)}}customElements.define(kh.is,kh);
3645
3645
  /**
3646
3646
  * @license
3647
3647
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3648
3648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3649
3649
  */
3650
- const kh=t=>class extends(ya(t)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>Hl(t.date,this.focusedDate)))}ready(){super.ready(),Jn(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),!(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0||$l(r,e,i)||$l(o,e,i))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(void 0===t||void 0===e)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:o}=t,s=this._applyFirstDayOfWeek(r,o);return this._applyFirstDayOfWeek(i,o).map(((t,e)=>({weekDay:t,weekDayShort:s[e]}))).slice(0,7)}__focusedDateChanged(t,e){Array.isArray(e)&&e.some((e=>Hl(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&1===e.firstDayOfWeek}_isToday(t){return Hl(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==e.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],o=i.getMonth(),s=t.getMonth();for(;i.getMonth()===s||i.getMonth()===o;)r.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(t){return t.reduce(((t,e,i)=>(i%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){
3650
+ const xh=t=>class extends(wa(t)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>ql(t.date,this.focusedDate)))}ready(){super.ready(),ta(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),!(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0||Xl(r,e,i)||Xl(o,e,i))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(void 0===t||void 0===e)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:o}=t,s=this._applyFirstDayOfWeek(r,o);return this._applyFirstDayOfWeek(i,o).map(((t,e)=>({weekDay:t,weekDayShort:s[e]}))).slice(0,7)}__focusedDateChanged(t,e){Array.isArray(e)&&e.some((e=>ql(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&1===e.firstDayOfWeek}_isToday(t){return ql(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==e.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],o=i.getMonth(),s=t.getMonth();for(;i.getMonth()===s||i.getMonth()===o;)r.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(t){return t.reduce(((t,e,i)=>(i%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){
3651
3651
  /**
3652
3652
  * @license
3653
3653
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3719,7 +3719,7 @@ Rr("vaadin-month-calendar",_i`
3719
3719
  outline: 3px solid;
3720
3720
  }
3721
3721
  }
3722
- `,{moduleId:"vaadin-month-calendar-styles"});class xh extends(kh(Gr(Qs))){static get template(){return Ys`
3722
+ `,{moduleId:"vaadin-month-calendar-styles"});class Sh extends(xh(Gr(Qs))){static get template(){return Ys`
3723
3723
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3724
3724
  <table
3725
3725
  id="monthGrid"
@@ -3761,18 +3761,18 @@ Rr("vaadin-month-calendar",_i`
3761
3761
  </template>
3762
3762
  </tbody>
3763
3763
  </table>
3764
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&1===e.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,r,o,s){const n=["date"],a=t>Vl(new Date),l=t<Vl(new Date);return this.__isDayDisabled(t,r,o,s)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,i)&&n.push("selected"),this._isToday(t)&&n.push("today"),l&&n.push("past"),a&&n.push("future"),n.join(" ")}__isDayFocused(t,e){return Hl(t,e)}__isDaySelected(t,e){return Hl(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,r){return!$l(t,e,i,r)}__getDayAriaDisabled(t,e,i,r){if(void 0!==t&&(void 0!==e||void 0!==i||void 0!==r)&&this.__isDayDisabled(t,e,i,r))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}hi(xh);
3764
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&1===e.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,r,o,s){const n=["date"],a=t>Hl(new Date),l=t<Hl(new Date);return this.__isDayDisabled(t,r,o,s)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,i)&&n.push("selected"),this._isToday(t)&&n.push("today"),l&&n.push("past"),a&&n.push("future"),n.join(" ")}__isDayFocused(t,e){return ql(t,e)}__isDaySelected(t,e){return ql(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,r){return!Xl(t,e,i,r)}__getDayAriaDisabled(t,e,i,r){if(void 0!==t&&(void 0!==e||void 0!==i||void 0!==r)&&this.__isDayDisabled(t,e,i,r))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}hi(Sh);
3765
3765
  /**
3766
3766
  * @license
3767
3767
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3768
3768
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3769
3769
  */
3770
- class Sh{constructor(t,e){this.query=t,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(t){"function"==typeof this.callback&&this.callback(t.matches)}}
3770
+ class Ah{constructor(t,e){this.query=t,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(t){"function"==typeof this.callback&&this.callback(t.matches)}}
3771
3771
  /**
3772
3772
  * @license
3773
3773
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3774
3774
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3775
- */const Ah=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},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){ea(this.$.scrollers,"pan-y"),Jn(this.$.scrollers,"track",this._track.bind(this)),Jn(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Jn(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Jn(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Sh(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new On(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),Jn(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new On(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),Jn(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new On(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new On(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),Jn(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,r,o){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,r,o))}__updateCalendars(t,e,i,r,o,s,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=r,t.isDateDisabled=h,t.focusedDate=s,t.selectedDate=o,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+r,e)}const r=this._monthScroller.position>i,o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,s=this._monthScroller.position+o-1<i;r?this._scrollToPosition(i,e):s&&this._scrollToPosition(i-o+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=mn.debounce(this._debouncer,ln.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(ql(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let r=0;const o=this._monthScroller.position,s=t=>{r||(r=t);const e=t-r;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,o,this._targetPosition-o);this._monthScroller.position=t,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Kl(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Hl(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Hl(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return li(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return li(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{cl(this,(()=>{Jl(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(Xl(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,r=this.isDateDisabled){return $l(t,e,i,r)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
3775
+ */const Ch=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},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){ia(this.$.scrollers,"pan-y"),ta(this.$.scrollers,"track",this._track.bind(this)),ta(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ta(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ta(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ah(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new Dn(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),ta(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Dn(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),ta(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Dn(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Dn(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),ta(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,r,o){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,r,o))}__updateCalendars(t,e,i,r,o,s,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=r,t.isDateDisabled=h,t.focusedDate=s,t.selectedDate=o,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+r,e)}const r=this._monthScroller.position>i,o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,s=this._monthScroller.position+o-1<i;r?this._scrollToPosition(i,e):s&&this._scrollToPosition(i-o+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=mn.debounce(this._debouncer,ln.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate($l(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let r=0;const o=this._monthScroller.position,s=t=>{r||(r=t);const e=t-r;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,o,this._targetPosition-o);this._monthScroller.position=t,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Wl(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){ql(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&ql(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return li(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return li(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{ul(this,(()=>{th(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(Kl(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,r=this.isDateDisabled){return Xl(t,e,i,r)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
3776
3776
  /**
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3843,7 +3843,7 @@ Rr("vaadin-date-picker-overlay-content",_i`
3843
3843
  z-index: 2;
3844
3844
  flex-shrink: 0;
3845
3845
  }
3846
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ch extends(Ah(Na(Gr(En(Qs))))){static get template(){return Ys`
3846
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ih extends(Ch(za(Gr(yn(Qs))))){static get template(){return Ys`
3847
3847
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3848
3848
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3849
3849
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3863,23 +3863,23 @@ Rr("vaadin-date-picker-overlay-content",_i`
3863
3863
  <slot name="today-button"></slot>
3864
3864
  <slot name="cancel-button"></slot>
3865
3865
  </div>
3866
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}hi(Ch);
3866
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}hi(Ih);
3867
3867
  /**
3868
3868
  * @license
3869
3869
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3870
3870
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3871
3871
  */
3872
- const Ih=new WeakMap,Th=ao((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return Ih.has(t)||Ih.set(t,new Set),Ih.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),Rh=t=>class extends(Sa(ha(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",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),fl||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3872
+ const Th=new WeakMap,Rh=ao((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return Th.has(t)||Th.set(t,new Set),Th.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),Oh=t=>class extends(Aa(da(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",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),gl||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3873
3873
  /**
3874
3874
  * @license
3875
3875
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3876
3876
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3877
- */,Oh=ao((t=>class extends(xa(Fa(Sa(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((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||0===t}})),Dh=t=>class extends(Th(ka(Oh(Va(Rh(ha(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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=mn.debounce(this._preventInputDebouncer,ln.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
3877
+ */,Dh=ao((t=>class extends(Sa(Va(Aa(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((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||0===t}})),Nh=t=>class extends(Rh(xa(Dh(Ha(Oh(da(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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=mn.debounce(this._preventInputDebouncer,ln.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
3878
3878
  /**
3879
3879
  * @license
3880
3880
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3881
3881
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3882
- */,Nh=_i`
3882
+ */,zh=_i`
3883
3883
  :host {
3884
3884
  display: inline-flex;
3885
3885
  outline: none;
@@ -3918,7 +3918,7 @@ const Ih=new WeakMap,Th=ao((t=>class extends t{get slotStyles(){return{}}connect
3918
3918
  * @license
3919
3919
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3920
3920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3921
- */,zh=_i`
3921
+ */,Gh=_i`
3922
3922
  [class$='container'] {
3923
3923
  display: flex;
3924
3924
  flex-direction: column;
@@ -3931,7 +3931,7 @@ const Ih=new WeakMap,Th=ao((t=>class extends t{get slotStyles(){return{}}connect
3931
3931
  * @license
3932
3932
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3933
3933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3934
- */,Gh=[Nh,zh,_i`
3934
+ */,Mh=[zh,Gh,_i`
3935
3935
  [part='clear-button'] {
3936
3936
  display: none;
3937
3937
  cursor: default;
@@ -3949,17 +3949,17 @@ const Ih=new WeakMap,Th=ao((t=>class extends t{get slotStyles(){return{}}connect
3949
3949
  * @license
3950
3950
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3951
3951
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3952
- */],Mh=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e||void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const r="string"==typeof t?t.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
3952
+ */],Bh=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e||void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const r="string"==typeof t?t.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
3953
3953
  /**
3954
3954
  * @license
3955
3955
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3956
3956
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3957
- */;class Bh{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
3957
+ */;class Uh{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
3958
3958
  /**
3959
3959
  * @license
3960
3960
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3961
3961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3962
- */const Uh=t=>class extends(Mh(Na(ka(Oh(ha(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: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),i=new Date;let r,o=i.getMonth(),s=i.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1]),s=parseInt(e[2]),e[2].length<3&&s>=0&&(s=function(t,e,i=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+100*Math.floor(t.getFullYear()/100);return t<new Date(o-50,i,r)?o-=100:t>new Date(o+50,i,r)&&(o+=100),o}(this.referenceDate?Wl(this.referenceDate):new Date,s,o,r))):2===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:o,year:s}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:vl},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!ma()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Sh(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new Bh(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e),this._overlayContent=e,e.addEventListener("close",(()=>{this._close()})),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",(t=>{this.__commitDate(t.detail.date),this._close()})),e.addEventListener("date-selected",(t=>{this.__commitDate(t.detail.date)})),e.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),e.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value})),e.addEventListener("click",(t=>t.stopPropagation()))}__parseDate(t){if(!this.i18n.parseDate)return;let e=this.i18n.parseDate(t);return e&&(e=Wl(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime())?e:void 0}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(ql(t))}checkValidity(){const t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||$l(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&i&&r}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:e}=t;return!(!this.opened||null===e||e===document.body||this.contains(e)||this._overlayContent.contains(e))||!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,r,o,s){return!t||e&&(!s||o)||i&&o||!r.parseDate}_formatISO(t){return function(t){return t instanceof Date?function(t){const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="",r="0000",o=t.year;return o<0?(o=-o,i="-",r="000000"):t.year>=1e4&&(i="+",r="000000"),[i+e(o,r),e(t.month+1),e(t.day)].join("-")}({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0===t||void 0===e||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0===t||void 0===e||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,e){const i=Wl(t);!t||i?(t?Hl(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)):this.value=e}__updateOverlayContent(t,e,i,r,o,s,n,a,l){t&&(t.i18n=e,t.label=i,t.minDate=r,t.maxDate=o,t.focusedDate=s,t.selectedDate=n,t.showWeekNumbers=a,t.isDateDisabled=l)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=xl(this._noInput?t:[r,t])}_getInitialPosition(){const t=Wl(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||$l(e,this._minDate,this._maxDate,this.isDateDisabled)?e:this._minDate||this._maxDate?Xl(e,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this.__parseDate(this._inputElementValue||"");t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===[9].indexOf(t.keyCode)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly)return t.stopPropagation(),void this._onClearButtonClick(t);""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Hl(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return Wl(t)}}
3962
+ */const Ph=t=>class extends(Bh(za(xa(Dh(da(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: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),i=new Date;let r,o=i.getMonth(),s=i.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1]),s=parseInt(e[2]),e[2].length<3&&s>=0&&(s=function(t,e,i=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+100*Math.floor(t.getFullYear()/100);return t<new Date(o-50,i,r)?o-=100:t>new Date(o+50,i,r)&&(o+=100),o}(this.referenceDate?Yl(this.referenceDate):new Date,s,o,r))):2===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:o,year:s}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:_l},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!pa()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ah(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new Uh(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e),this._overlayContent=e,e.addEventListener("close",(()=>{this._close()})),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",(t=>{this.__commitDate(t.detail.date),this._close()})),e.addEventListener("date-selected",(t=>{this.__commitDate(t.detail.date)})),e.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),e.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value})),e.addEventListener("click",(t=>t.stopPropagation()))}__parseDate(t){if(!this.i18n.parseDate)return;let e=this.i18n.parseDate(t);return e&&(e=Yl(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime())?e:void 0}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate($l(t))}checkValidity(){const t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||Xl(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&i&&r}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:e}=t;return!(!this.opened||null===e||e===document.body||this.contains(e)||this._overlayContent.contains(e))||!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,r,o,s){return!t||e&&(!s||o)||i&&o||!r.parseDate}_formatISO(t){return function(t){return t instanceof Date?function(t){const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="",r="0000",o=t.year;return o<0?(o=-o,i="-",r="000000"):t.year>=1e4&&(i="+",r="000000"),[i+e(o,r),e(t.month+1),e(t.day)].join("-")}({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0===t||void 0===e||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0===t||void 0===e||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,e){const i=Yl(t);!t||i?(t?ql(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)):this.value=e}__updateOverlayContent(t,e,i,r,o,s,n,a,l){t&&(t.i18n=e,t.label=i,t.minDate=r,t.maxDate=o,t.focusedDate=s,t.selectedDate=n,t.showWeekNumbers=a,t.isDateDisabled=l)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=Sl(this._noInput?t:[r,t])}_getInitialPosition(){const t=Yl(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||Xl(e,this._minDate,this._maxDate,this.isDateDisabled)?e:this._minDate||this._maxDate?Kl(e,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this.__parseDate(this._inputElementValue||"");t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===[9].indexOf(t.keyCode)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly)return t.stopPropagation(),void this._onClearButtonClick(t);""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,ql(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return Yl(t)}}
3963
3963
  /**
3964
3964
  * @license
3965
3965
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3970,7 +3970,7 @@ const Ih=new WeakMap,Th=ao((t=>class extends t{get slotStyles(){return{}}connect
3970
3970
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3971
3971
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3972
3972
  */
3973
- Rr("vaadin-date-picker",[Gh,_i`
3973
+ Rr("vaadin-date-picker",[Mh,_i`
3974
3974
  :host([opened]) {
3975
3975
  pointer-events: auto;
3976
3976
  }
@@ -3983,7 +3983,7 @@ Rr("vaadin-date-picker",[Gh,_i`
3983
3983
  direction: rtl;
3984
3984
  text-align: left;
3985
3985
  }
3986
- `],{moduleId:"vaadin-date-picker-styles"});class Ph extends(Uh(Dh(Gr(kn(Qs))))){static get is(){return"vaadin-date-picker"}static get template(){return Ys`
3986
+ `],{moduleId:"vaadin-date-picker-styles"});class Lh extends(Ph(Nh(Gr(xn(Qs))))){static get is(){return"vaadin-date-picker"}static get template(){return Ys`
3987
3987
  <div class="vaadin-date-picker-container">
3988
3988
  <div part="label">
3989
3989
  <slot name="label"></slot>
@@ -4025,29 +4025,29 @@ Rr("vaadin-date-picker",[Gh,_i`
4025
4025
  ></vaadin-date-picker-overlay>
4026
4026
 
4027
4027
  <slot name="tooltip"></slot>
4028
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ha(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}),{uniqueIdPrefix:"search-input"})),this.addController(new qa(this.inputElement,this._labelController)),this._tooltipController=new Dn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}hi(Ph),
4028
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}),{uniqueIdPrefix:"search-input"})),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}hi(Lh),
4029
4029
  /**
4030
4030
  * @license
4031
4031
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4032
4032
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4033
4033
  */
4034
- Rr("vaadin-text-field",rl,{moduleId:"lumo-text-field-styles"});
4034
+ Rr("vaadin-text-field",ol,{moduleId:"lumo-text-field-styles"});
4035
4035
  /**
4036
4036
  * @license
4037
4037
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4038
4038
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4039
4039
  */
4040
- const Lh=t=>class extends(Dh(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}
4040
+ const jh=t=>class extends(Nh(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}
4041
4041
  /**
4042
4042
  * @license
4043
4043
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4044
4044
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4045
- */,jh=t=>class extends(Lh(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ha(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new qa(this.inputElement,this._labelController))}}
4045
+ */,Fh=t=>class extends(jh(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController))}}
4046
4046
  /**
4047
4047
  * @license
4048
4048
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4049
4049
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4050
- */;Rr("vaadin-text-field",Gh,{moduleId:"vaadin-text-field-styles"});class Fh extends(jh(Gr(kn(Qs)))){static get is(){return"vaadin-text-field"}static get template(){return Ys`
4050
+ */;Rr("vaadin-text-field",Mh,{moduleId:"vaadin-text-field-styles"});class Vh extends(Fh(Gr(xn(Qs)))){static get is(){return"vaadin-text-field"}static get template(){return Ys`
4051
4051
  <div class="vaadin-field-container">
4052
4052
  <div part="label">
4053
4053
  <slot name="label"></slot>
@@ -4076,7 +4076,7 @@ const Lh=t=>class extends(Dh(t)){static get properties(){return{autocomplete:{ty
4076
4076
  </div>
4077
4077
  </div>
4078
4078
  <slot name="tooltip"></slot>
4079
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Dn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Fh),Rr("vaadin-password-field-button",[el,_i`
4079
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Vh),Rr("vaadin-password-field-button",[il,_i`
4080
4080
  :host {
4081
4081
  position: absolute;
4082
4082
  right: 0;
@@ -4089,7 +4089,7 @@ const Lh=t=>class extends(Dh(t)){static get properties(){return{autocomplete:{ty
4089
4089
  background: transparent;
4090
4090
  outline: none;
4091
4091
  }
4092
- `],{moduleId:"lumo-password-field-button"}),Rr("vaadin-password-field",[rl,_i`
4092
+ `],{moduleId:"lumo-password-field-button"}),Rr("vaadin-password-field",[ol,_i`
4093
4093
  [part='reveal-button']::before {
4094
4094
  content: var(--lumo-icons-eye);
4095
4095
  }
@@ -4113,22 +4113,22 @@ const Lh=t=>class extends(Dh(t)){static get properties(){return{autocomplete:{ty
4113
4113
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4114
4114
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4115
4115
  */
4116
- Rr("vaadin-password-field-button",Ll,{moduleId:"vaadin-password-field-button-styles"});class Vh extends(jl(En(Gr(Qs)))){static get is(){return"vaadin-password-field-button"}static get template(){return Ys``}}hi(Vh);
4116
+ Rr("vaadin-password-field-button",jl,{moduleId:"vaadin-password-field-button-styles"});class Hh extends(Fl(yn(Gr(Qs)))){static get is(){return"vaadin-password-field-button"}static get template(){return Ys``}}hi(Hh);
4117
4117
  /**
4118
4118
  * @license
4119
4119
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4120
4120
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4121
4121
  */
4122
- const Hh=t=>class extends(Th(la(ya(Sa(t))))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new On(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t&&t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}}
4122
+ const qh=t=>class extends(Rh(ha(wa(Aa(t))))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Dn(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t&&t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}}
4123
4123
  /**
4124
4124
  * @license
4125
4125
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4126
4126
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4127
- */,qh=Ys`
4127
+ */,$h=Ys`
4128
4128
  <div part="reveal-button" slot="suffix">
4129
4129
  <slot name="reveal"></slot>
4130
4130
  </div>
4131
- `;let $h;class Xh extends(Hh(Fh)){static get is(){return"vaadin-password-field"}static get template(){if(!$h){$h=super.template.cloneNode(!0);const t=qh.content.querySelector('[part="reveal-button"]');$h.content.querySelector('[part="input-field"]').appendChild(t)}return $h}}hi(Xh);const Kh=_i`
4131
+ `;let Xh;class Kh extends(qh(Vh)){static get is(){return"vaadin-password-field"}static get template(){if(!Xh){Xh=super.template.cloneNode(!0);const t=$h.content.querySelector('[part="reveal-button"]');Xh.content.querySelector('[part="input-field"]').appendChild(t)}return Xh}}hi(Kh);const Wh=_i`
4132
4132
  :host {
4133
4133
  display: flex;
4134
4134
  align-items: center;
@@ -4212,7 +4212,7 @@ const Hh=t=>class extends(Th(la(ya(Sa(t))))){static get properties(){return{reve
4212
4212
  width: var(--lumo-icon-size-m);
4213
4213
  height: var(--lumo-icon-size-m);
4214
4214
  }
4215
- `;Rr("vaadin-item",Kh,{moduleId:"lumo-item"});const Wh=_i`
4215
+ `;Rr("vaadin-item",Wh,{moduleId:"lumo-item"});const Yh=_i`
4216
4216
  :host {
4217
4217
  transition: background-color 100ms;
4218
4218
  overflow: hidden;
@@ -4224,13 +4224,13 @@ const Hh=t=>class extends(Th(la(ya(Sa(t))))){static get properties(){return{reve
4224
4224
  :host([focused]:not([disabled])) {
4225
4225
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4226
4226
  }
4227
- `;Rr("vaadin-combo-box-item",[Kh,Wh],{moduleId:"lumo-combo-box-item"});
4227
+ `;Rr("vaadin-combo-box-item",[Wh,Yh],{moduleId:"lumo-combo-box-item"});
4228
4228
  /**
4229
4229
  * @license
4230
4230
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4231
4231
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4232
4232
  */
4233
- const Yh=_i`
4233
+ const Zh=_i`
4234
4234
  [part~='loader'] {
4235
4235
  box-sizing: border-box;
4236
4236
  width: var(--lumo-icon-size-s);
@@ -4272,7 +4272,7 @@ const Yh=_i`
4272
4272
  transform: rotate(360deg);
4273
4273
  }
4274
4274
  }
4275
- `,Zh=_i`
4275
+ `,Qh=_i`
4276
4276
  [part='content'] {
4277
4277
  padding: 0;
4278
4278
  }
@@ -4293,7 +4293,7 @@ const Yh=_i`
4293
4293
  :host([bottom-aligned]) [part~='overlay'] {
4294
4294
  margin-bottom: var(--lumo-space-xs);
4295
4295
  }
4296
- `,Qh=_i`
4296
+ `,Jh=_i`
4297
4297
  [part~='loader'] {
4298
4298
  position: absolute;
4299
4299
  z-index: 1;
@@ -4301,12 +4301,12 @@ const Yh=_i`
4301
4301
  top: var(--lumo-space-s);
4302
4302
  margin-inline: auto 0;
4303
4303
  }
4304
- `;Rr("vaadin-combo-box-overlay",[Qa,Ja,Zh,Yh,Qh,_i`
4304
+ `;Rr("vaadin-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4305
4305
  :host {
4306
4306
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4307
4307
  --_vaadin-combo-box-items-container-border-style: solid;
4308
4308
  }
4309
- `],{moduleId:"lumo-combo-box-overlay"}),Rr("vaadin-combo-box",[rl,_i`
4309
+ `],{moduleId:"lumo-combo-box-overlay"}),Rr("vaadin-combo-box",[ol,_i`
4310
4310
  [part='toggle-button']::before {
4311
4311
  content: var(--lumo-icons-dropdown);
4312
4312
  }
@@ -4316,12 +4316,12 @@ const Yh=_i`
4316
4316
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4317
4317
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4318
4318
  */
4319
- const Jh=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0===i||void 0===e||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
4319
+ const td=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0===i||void 0===e||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
4320
4320
  /**
4321
4321
  * @license
4322
4322
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4323
4323
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4324
- */;class td extends(Jh(Gr(En(Qs)))){static get template(){return Ys`
4324
+ */;class ed extends(td(Gr(yn(Qs)))){static get template(){return Ys`
4325
4325
  <style>
4326
4326
  :host {
4327
4327
  display: block;
@@ -4335,18 +4335,18 @@ const Jh=t=>class extends t{static get properties(){return{index:{type:Number},i
4335
4335
  <div part="content">
4336
4336
  <slot></slot>
4337
4337
  </div>
4338
- `}static get is(){return"vaadin-combo-box-item"}}hi(td);
4338
+ `}static get is(){return"vaadin-combo-box-item"}}hi(ed);
4339
4339
  /**
4340
4340
  * @license
4341
4341
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4342
4342
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4343
4343
  */
4344
- const ed=t=>class extends(Bl(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ga(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const e=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);""===e?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,e)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}}
4344
+ const id=t=>class extends(Ul(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ba(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const e=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);""===e?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,e)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}}
4345
4345
  /**
4346
4346
  * @license
4347
4347
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4348
4348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4349
- */;Rr("vaadin-combo-box-overlay",[nl,_i`
4349
+ */;Rr("vaadin-combo-box-overlay",[al,_i`
4350
4350
  #overlay {
4351
4351
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4352
4352
  }
@@ -4356,7 +4356,7 @@ const ed=t=>class extends(Bl(t)){static get observers(){return["_setOverlayWidth
4356
4356
  flex-direction: column;
4357
4357
  height: 100%;
4358
4358
  }
4359
- `],{moduleId:"vaadin-combo-box-overlay-styles"});class id extends(ed(Nl(En(Gr(Qs))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Ys`
4359
+ `],{moduleId:"vaadin-combo-box-overlay-styles"});class rd extends(id(zl(yn(Gr(Qs))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Ys`
4360
4360
  <div id="backdrop" part="backdrop" hidden></div>
4361
4361
  <div part="overlay" id="overlay">
4362
4362
  <div part="loader"></div>
@@ -4368,7 +4368,7 @@ const ed=t=>class extends(Bl(t)){static get observers(){return["_setOverlayWidth
4368
4368
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4369
4369
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4370
4370
  */
4371
- function rd(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4371
+ function od(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4372
4372
  /**
4373
4373
  * @license
4374
4374
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -4377,17 +4377,17 @@ function rd(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4377
4377
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4378
4378
  * Code distributed by Google as part of the polymer project is also
4379
4379
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4380
- */hi(id);const od=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sd=od&&od[1]>=8,nd={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{e<this._scrollBottom&&(t=r),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),cn)}},_getReusables(t){let e,i,r;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-c);r=this._getPhysicalSizeIncrement(e),i-=r,!(o.length>=l||i<=s);)if(t){if(a+o.length+1>=this._virtualCount||h+r>=d-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(n-o.length<=0||h+this._physicalSize-r<=c)break;o.push(e),h-=r,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),dn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),cn))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,hn))},_iterateItems(t,e){let i,r,o,s;if(2===arguments.length&&e){for(s=0;s<e.length;s++)if(i=e[s],r=this._computeVidx(i),null!=(o=t.call(this,i,r)))return o}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(o=t.call(this,i,r)))return o;for(i=0;i<this._physicalStart;i++,r++)if(null!=(o=t.call(this,i,r)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!sd&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1||(_n(),0===this._physicalCount))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;i<t&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),hn)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=mn.debounce(this._debouncers[t],i,e.bind(this)),pn(this._debouncers[t])}},ad=1e3;
4380
+ */hi(rd);const sd=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),nd=sd&&sd[1]>=8,ad={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{e<this._scrollBottom&&(t=r),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),cn)}},_getReusables(t){let e,i,r;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-c);r=this._getPhysicalSizeIncrement(e),i-=r,!(o.length>=l||i<=s);)if(t){if(a+o.length+1>=this._virtualCount||h+r>=d-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(n-o.length<=0||h+this._physicalSize-r<=c)break;o.push(e),h-=r,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),dn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),cn))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,hn))},_iterateItems(t,e){let i,r,o,s;if(2===arguments.length&&e){for(s=0;s<e.length;s++)if(i=e[s],r=this._computeVidx(i),null!=(o=t.call(this,i,r)))return o}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(o=t.call(this,i,r)))return o;for(i=0;i<this._physicalStart;i++,r++)if(null!=(o=t.call(this,i,r)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!nd&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1||(_n(),0===this._physicalCount))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;i<t&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),hn)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=mn.debounce(this._debouncers[t],i,e.bind(this)),pn(this._debouncers[t])}},ld=1e3;
4381
4381
  /**
4382
4382
  * @license
4383
4383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4384
4384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4385
- */class ld{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:r,elementsContainer:o,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=o||r,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:t}])=>{const e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.scrollTarget.addEventListener("virtualizer-element-focused",(t=>this.__onElementFocused(t))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((t=>t.__virtualizerPlaceholder))}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<ad?(i=t,this._vidxOffset=0):(i=ad,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),_n(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=t&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(t){_n();let e=0,i=0;const r=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((o*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=mn.debounce(this.__placeholderClearDebouncer,hn,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}})),void 0!==this.__pendingScrollToIndex&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;let e,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),_n(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const r=this.__getIndexScrollOffset(e);void 0!==i&&void 0!==r&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),_n(),this._debounce("_update",this._update,cn)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL="rtl"===t.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const r=this._physicalItems[t];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,r)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=mn.debounce(this.__fixInvalidItemPositioningDebouncer,ln.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=mn.debounce(this.__scrollReorderDebouncer,ln.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=mn.debounce(this.__debouncerWheelAnimationFrame,hn,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=mn.debounce(this._debouncerIgnoreNewWheel,ln.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,e)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const r=i.__virtualIndex-t,o=e.indexOf(i)-r;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(_l){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*e);else{const t=this._vidxOffset,i=ad,r=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(ld.prototype,nd);class hd{constructor(t){this.__adapter=new ld(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
4385
+ */class hd{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:r,elementsContainer:o,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=o||r,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:t}])=>{const e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.scrollTarget.addEventListener("virtualizer-element-focused",(t=>this.__onElementFocused(t))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((t=>t.__virtualizerPlaceholder))}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<ld?(i=t,this._vidxOffset=0):(i=ld,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),_n(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=t&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(t){_n();let e=0,i=0;const r=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((o*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=mn.debounce(this.__placeholderClearDebouncer,hn,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}})),void 0!==this.__pendingScrollToIndex&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;let e,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),_n(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const r=this.__getIndexScrollOffset(e);void 0!==i&&void 0!==r&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),_n(),this._debounce("_update",this._update,cn)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL="rtl"===t.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const r=this._physicalItems[t];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,r)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=mn.debounce(this.__fixInvalidItemPositioningDebouncer,ln.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=mn.debounce(this.__scrollReorderDebouncer,ln.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=mn.debounce(this.__debouncerWheelAnimationFrame,hn,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=mn.debounce(this._debouncerIgnoreNewWheel,ln.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,e)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const r=i.__virtualIndex-t,o=e.indexOf(i)-r;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(fl){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*e);else{const t=this._vidxOffset,i=ld,r=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(hd.prototype,ad);class dd{constructor(t){this.__adapter=new hd(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
4386
4386
  /**
4387
4387
  * @license
4388
4388
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4389
4389
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4390
- */const dd=class{toString(){return""}},cd=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Rn()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!r||t!==r.index)return;const o=r.getBoundingClientRect(),s=this.getBoundingClientRect(),n=o.bottom-s.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof dd)&&(i&&void 0!==t&&void 0!==e?rd(i,t)===rd(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new hd({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],r=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&r===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof dd&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4390
+ */const cd=class{toString(){return""}},ud=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${On()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!r||t!==r.index)return;const o=r.getBoundingClientRect(),s=this.getBoundingClientRect(),n=o.bottom-s.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof cd)&&(i&&void 0!==t&&void 0!==e?od(i,t)===od(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new dd({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],r=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&r===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof cd&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4391
4391
  /**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
@@ -4397,7 +4397,7 @@ function rd(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4397
4397
  * @license
4398
4398
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4399
4399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4400
- */class ud extends(cd(Qs)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Ys`
4400
+ */class md extends(ud(Qs)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Ys`
4401
4401
  <style>
4402
4402
  :host {
4403
4403
  display: block;
@@ -4424,48 +4424,48 @@ function rd(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4424
4424
  <div id="selector">
4425
4425
  <slot></slot>
4426
4426
  </div>
4427
- `}}hi(ud);
4427
+ `}}hi(md);
4428
4428
  /**
4429
4429
  * @license
4430
4430
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4431
4431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4432
4432
  */
4433
- const md=t=>class extends(Oh(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
4433
+ const pd=t=>class extends(Dh(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
4434
4434
  /**
4435
4435
  * @license
4436
4436
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4437
4437
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4438
- */;function pd(t,e,i=0){let r=e;for(const e of t.subCaches){const t=e.parentCacheIndex;if(r<=t)break;if(r<=t+e.flatSize)return pd(e,r-t-1,i+1);r-=e.flatSize}return{cache:t,item:t.items[r],index:r,page:Math.floor(r/t.pageSize),level:i}}function vd({getItemId:t},e,i,r=0,o=0){for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&t(n)===t(i))return{cache:e,level:r,item:n,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:o+e.getFlatIndex(s)}}for(const s of e.subCaches){const n=vd({getItemId:t},s,i,r+1,o+e.getFlatIndex(s.parentCacheIndex)+1);if(n)return n}}function _d(t,[e,...i],r=0){e===1/0&&(e=t.size-1);const o=t.getFlatIndex(e),s=t.getSubCache(e);return s&&s.flatSize>0&&i.length?_d(s,i,r+o+1):r+o}
4438
+ */;function vd(t,e,i=0){let r=e;for(const e of t.subCaches){const t=e.parentCacheIndex;if(r<=t)break;if(r<=t+e.flatSize)return vd(e,r-t-1,i+1);r-=e.flatSize}return{cache:t,item:t.items[r],index:r,page:Math.floor(r/t.pageSize),level:i}}function _d({getItemId:t},e,i,r=0,o=0){for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&t(n)===t(i))return{cache:e,level:r,item:n,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:o+e.getFlatIndex(s)}}for(const s of e.subCaches){const n=_d({getItemId:t},s,i,r+1,o+e.getFlatIndex(s.parentCacheIndex)+1);if(n)return n}}function fd(t,[e,...i],r=0){e===1/0&&(e=t.size-1);const o=t.getFlatIndex(e),s=t.getSubCache(e);return s&&s.flatSize>0&&i.length?fd(s,i,r+o+1):r+o}
4439
4439
  /**
4440
4440
  * @license
4441
4441
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4442
4442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4443
- */class fd{constructor(t,e,i,r,o){ai(this,"context"),ai(this,"pageSize"),ai(this,"items",[]),ai(this,"pendingRequests",{}),ai(this,"__subCacheByIndex",{}),ai(this,"__size",0),ai(this,"__flatSize",0),this.context=t,this.pageSize=e,this.size=i,this.parentCache=r,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((t=>t.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var e;if(this.__size!==t){if(this.__size=t,void 0!==this.context.placeholder){this.items.length=t||0;for(let i=0;i<t;i++)(e=this.items)[i]||(e[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach((t=>{parseInt(t)*this.pageSize>=this.size&&delete this.pendingRequests[t]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((t,e)=>(e.recalculateFlatSize(),t+e.flatSize)),0):0}setPage(t,e){const i=t*this.pageSize;e.forEach(((t,e)=>{const r=i+e;(void 0===this.size||r<this.size)&&(this.items[r]=t)}))}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new fd(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce(((t,i)=>e>i.parentCacheIndex?t+i.flatSize:t),e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=pd(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=pd(this,t);return{cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex
4443
+ */class gd{constructor(t,e,i,r,o){ai(this,"context"),ai(this,"pageSize"),ai(this,"items",[]),ai(this,"pendingRequests",{}),ai(this,"__subCacheByIndex",{}),ai(this,"__size",0),ai(this,"__flatSize",0),this.context=t,this.pageSize=e,this.size=i,this.parentCache=r,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((t=>t.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var e;if(this.__size!==t){if(this.__size=t,void 0!==this.context.placeholder){this.items.length=t||0;for(let i=0;i<t;i++)(e=this.items)[i]||(e[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach((t=>{parseInt(t)*this.pageSize>=this.size&&delete this.pendingRequests[t]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((t,e)=>(e.recalculateFlatSize(),t+e.flatSize)),0):0}setPage(t,e){const i=t*this.pageSize;e.forEach(((t,e)=>{const r=i+e;(void 0===this.size||r<this.size)&&(this.items[r]=t)}))}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new gd(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce(((t,i)=>e>i.parentCacheIndex?t+i.flatSize:t),e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=vd(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=vd(this,t);return{cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex
4444
4444
  /**
4445
4445
  * @license
4446
4446
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4447
4447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4448
- */}}class gd extends EventTarget{constructor(t,{size:e,pageSize:i,isExpanded:r,getItemId:o,isPlaceholder:s,placeholder:n,dataProvider:a,dataProviderParams:l}){super(),ai(this,"host"),ai(this,"dataProvider"),ai(this,"dataProviderParams"),ai(this,"pageSize"),ai(this,"isExpanded"),ai(this,"getItemId"),ai(this,"rootCache"),ai(this,"placeholder"),ai(this,"isPlaceholder"),this.host=t,this.pageSize=i,this.getItemId=o,this.isExpanded=r,this.placeholder=n,this.isPlaceholder=s,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(e)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return pd(this.rootCache,t)}getItemContext(t){return vd({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return _d(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:e,page:i,item:r}=this.getFlatIndexContext(t);this.__isItemLoaded(r)||this.__loadCachePage(e,i)}ensureFlatIndexHierarchy(t){const{cache:e,item:i,index:r}=this.getFlatIndexContext(t);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!e.getSubCache(r)){const t=e.createSubCache(r);this.__loadCachePage(t,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new fd(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,e){if(!this.dataProvider||t.pendingRequests[e])return;let i={page:e,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(i=si(si({},i),this.dataProviderParams()));const r=(o,s)=>{t.pendingRequests[e]===r&&(void 0!==s?t.size=s:i.parentItem&&(t.size=o.length),t.setPage(e,o),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[e],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[e]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}
4448
+ */}}class bd extends EventTarget{constructor(t,{size:e,pageSize:i,isExpanded:r,getItemId:o,isPlaceholder:s,placeholder:n,dataProvider:a,dataProviderParams:l}){super(),ai(this,"host"),ai(this,"dataProvider"),ai(this,"dataProviderParams"),ai(this,"pageSize"),ai(this,"isExpanded"),ai(this,"getItemId"),ai(this,"rootCache"),ai(this,"placeholder"),ai(this,"isPlaceholder"),this.host=t,this.pageSize=i,this.getItemId=o,this.isExpanded=r,this.placeholder=n,this.isPlaceholder=s,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(e)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return vd(this.rootCache,t)}getItemContext(t){return _d({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return fd(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:e,page:i,item:r}=this.getFlatIndexContext(t);this.__isItemLoaded(r)||this.__loadCachePage(e,i)}ensureFlatIndexHierarchy(t){const{cache:e,item:i,index:r}=this.getFlatIndexContext(t);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!e.getSubCache(r)){const t=e.createSubCache(r);this.__loadCachePage(t,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new gd(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,e){if(!this.dataProvider||t.pendingRequests[e])return;let i={page:e,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(i=si(si({},i),this.dataProviderParams()));const r=(o,s)=>{t.pendingRequests[e]===r&&(void 0!==s?t.size=s:i.parentItem&&(t.size=o.length),t.setPage(e,o),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[e],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[e]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}
4449
4449
  /**
4450
4450
  * @license
4451
4451
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4452
4452
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4453
- */const bd=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new gd(this,{placeholder:new dd,isPlaceholder:t=>t instanceof dd,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{if(!this._shouldFetchData())return;const e=t.detail.index;void 0!==e&&this.__dataProviderController.ensureFlatIndexLoaded(e)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){!this._shouldFetchData()||!t||(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:e}=this.__dataProviderController;e.size!==t&&(e.size=t,e.items=[...e.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:e}=this.__dataProviderController;e.items!==t&&(e.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
4453
+ */const Ed=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new bd(this,{placeholder:new cd,isPlaceholder:t=>t instanceof cd,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{if(!this._shouldFetchData())return;const e=t.detail.index;void 0!==e&&this.__dataProviderController.ensureFlatIndexLoaded(e)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){!this._shouldFetchData()||!t||(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:e}=this.__dataProviderController;e.size!==t&&(e.size=t,e.items=[...e.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:e}=this.__dataProviderController;e.items!==t&&(e.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
4454
4454
  /**
4455
4455
  * @license
4456
4456
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4457
4457
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4458
- */;function Ed(t){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}
4458
+ */;function yd(t){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}
4459
4459
  /**
4460
4460
  * @license
4461
4461
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4462
4462
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4463
- */function yd(t){return null!=t}function wd(t,e){return t.findIndex((t=>!(t instanceof dd)&&e(t)))}const kd=t=>class extends(Mh(Na(Fa(ya(ha(Sa(la(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),Ed(this),this.addController(new Bh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=t||this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=t=>{t.innerHTML||t.appendChild(e)},i.requestContentUpdate(),this._scroller=e}_updateScroller(t,e,i,r,o,s,n,a,l,h){if(t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:r,selectedItem:o,itemIdPath:s,focusedIndex:n,renderer:a,theme:l,itemClassNameGenerator:h}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(t){}}_openedOrItemsChanged(t,e,i,r){this._overlayOpened=t&&(r||i||!(!e||!e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&ba(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?!this._isInputFocused()&&!fl&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?rd(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?rd(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue())return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{fl&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._revertInputValueToValue():this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(yd(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,e){return t&&t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)))}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const e=this._dropdownItems;this._dropdownItems=t;const i=e?e[this._focusedIndex]:null,r=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=t[r]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&yd(e)?wd(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?wd(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof dd)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(ma())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}}
4463
+ */function wd(t){return null!=t}function kd(t,e){return t.findIndex((t=>!(t instanceof cd)&&e(t)))}const xd=t=>class extends(Bh(za(Va(wa(da(Aa(ha(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),yd(this),this.addController(new Uh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=t||this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=t=>{t.innerHTML||t.appendChild(e)},i.requestContentUpdate(),this._scroller=e}_updateScroller(t,e,i,r,o,s,n,a,l,h){if(t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:r,selectedItem:o,itemIdPath:s,focusedIndex:n,renderer:a,theme:l,itemClassNameGenerator:h}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(t){}}_openedOrItemsChanged(t,e,i,r){this._overlayOpened=t&&(r||i||!(!e||!e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&Ea(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?!this._isInputFocused()&&!gl&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?od(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?od(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue())return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{gl&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._revertInputValueToValue():this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(wd(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,e){return t&&t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)))}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const e=this._dropdownItems;this._dropdownItems=t;const i=e?e[this._focusedIndex]:null,r=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=t[r]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&wd(e)?kd(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?kd(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof cd)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(pa())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}}
4464
4464
  /**
4465
4465
  * @license
4466
4466
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4467
4467
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4468
- */;Rr("vaadin-combo-box",Gh,{moduleId:"vaadin-combo-box-styles"});class xd extends(bd(kd(md(Dh(Gr(kn(Qs))))))){static get is(){return"vaadin-combo-box"}static get template(){return Ys`
4468
+ */;Rr("vaadin-combo-box",Mh,{moduleId:"vaadin-combo-box-styles"});class Sd extends(Ed(xd(pd(Nh(Gr(xn(Qs))))))){static get is(){return"vaadin-combo-box"}static get template(){return Ys`
4469
4469
  <style>
4470
4470
  :host([opened]) {
4471
4471
  pointer-events: auto;
@@ -4510,7 +4510,7 @@ const md=t=>class extends(Oh(t)){static get properties(){return{pattern:{type:St
4510
4510
  ></vaadin-combo-box-overlay>
4511
4511
 
4512
4512
  <slot name="tooltip"></slot>
4513
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ha(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new qa(this.inputElement,this._labelController)),this._tooltipController=new Dn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}hi(xd),Rr("vaadin-multi-select-combo-box-chip",[il,_i`
4513
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}hi(Sd),Rr("vaadin-multi-select-combo-box-chip",[rl,_i`
4514
4514
  :host {
4515
4515
  font-size: var(--lumo-font-size-xxs);
4516
4516
  line-height: 1;
@@ -4599,14 +4599,14 @@ const md=t=>class extends(Oh(t)){static get properties(){return{pattern:{type:St
4599
4599
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4600
4600
  pointer-events: none;
4601
4601
  }
4602
- `],{moduleId:"lumo-multi-select-combo-box-chip"}),Rr("vaadin-multi-select-combo-box-item",[Kh,Wh,_i`
4602
+ `],{moduleId:"lumo-multi-select-combo-box-chip"}),Rr("vaadin-multi-select-combo-box-item",[Wh,Yh,_i`
4603
4603
  @media (any-hover: hover) {
4604
4604
  :host(:hover[readonly]) {
4605
4605
  background-color: transparent;
4606
4606
  cursor: default;
4607
4607
  }
4608
4608
  }
4609
- `],{moduleId:"lumo-multi-select-combo-box-item"}),Rr("vaadin-multi-select-combo-box-overlay",[Qa,Ja,Zh,Yh,Qh,_i`
4609
+ `],{moduleId:"lumo-multi-select-combo-box-item"}),Rr("vaadin-multi-select-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4610
4610
  :host {
4611
4611
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4612
4612
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4615,7 +4615,7 @@ const md=t=>class extends(Oh(t)){static get properties(){return{pattern:{type:St
4615
4615
  :host([auto-expand-vertically]) {
4616
4616
  padding-block: var(--lumo-space-xs);
4617
4617
  }
4618
- `,{moduleId:"lumo-multi-select-combo-box-container"}),Rr("vaadin-multi-select-combo-box",[rl,_i`
4618
+ `,{moduleId:"lumo-multi-select-combo-box-container"}),Rr("vaadin-multi-select-combo-box",[ol,_i`
4619
4619
  :host([has-value]) {
4620
4620
  padding-inline-start: 0;
4621
4621
  }
@@ -4674,7 +4674,7 @@ const md=t=>class extends(Oh(t)){static get properties(){return{pattern:{type:St
4674
4674
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4675
4675
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4676
4676
  */
4677
- class Sd extends(Gr(Qs)){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return Ys`
4677
+ class Ad extends(Gr(Qs)){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return Ys`
4678
4678
  <style>
4679
4679
  :host {
4680
4680
  display: inline-flex;
@@ -4703,7 +4703,7 @@ class Sd extends(Gr(Qs)){static get is(){return"vaadin-multi-select-combo-box-ch
4703
4703
  </style>
4704
4704
  <div part="label">[[label]]</div>
4705
4705
  <div part="remove-button" on-click="_onRemoveClick"></div>
4706
- `}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}let Ad;hi(Sd),
4706
+ `}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}let Cd;hi(Ad),
4707
4707
  /**
4708
4708
  * @license
4709
4709
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4719,13 +4719,13 @@ Rr("vaadin-multi-select-combo-box-container",_i`
4719
4719
  :host([auto-expand-vertically]) #wrapper {
4720
4720
  flex-wrap: wrap;
4721
4721
  }
4722
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"}),hi(class extends sl{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Ad){Ad=super.template.cloneNode(!0);const t=Ad.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1])}return Ad}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}});
4722
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"}),hi(class extends nl{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Cd){Cd=super.template.cloneNode(!0);const t=Cd.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1])}return Cd}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}});
4723
4723
  /**
4724
4724
  * @license
4725
4725
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4726
4726
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4727
4727
  */
4728
- class Cd extends(Jh(Gr(En(Qs)))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return Ys`
4728
+ class Id extends(td(Gr(yn(Qs)))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return Ys`
4729
4729
  <style>
4730
4730
  :host {
4731
4731
  display: block;
@@ -4739,7 +4739,7 @@ class Cd extends(Jh(Gr(En(Qs)))){static get is(){return"vaadin-multi-select-comb
4739
4739
  <div part="content">
4740
4740
  <slot></slot>
4741
4741
  </div>
4742
- `}}hi(Cd),Rr("vaadin-multi-select-combo-box-overlay",[nl,_i`
4742
+ `}}hi(Id),Rr("vaadin-multi-select-combo-box-overlay",[al,_i`
4743
4743
  #overlay {
4744
4744
  width: var(
4745
4745
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4752,19 +4752,19 @@ class Cd extends(Jh(Gr(En(Qs)))){static get is(){return"vaadin-multi-select-comb
4752
4752
  flex-direction: column;
4753
4753
  height: 100%;
4754
4754
  }
4755
- `],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Id extends(ed(Nl(En(Gr(Qs))))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return Ys`
4755
+ `],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Td extends(id(zl(yn(Gr(Qs))))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return Ys`
4756
4756
  <div id="backdrop" part="backdrop" hidden></div>
4757
4757
  <div part="overlay" id="overlay">
4758
4758
  <div part="loader"></div>
4759
4759
  <div part="content" id="content"><slot></slot></div>
4760
4760
  </div>
4761
- `}}hi(Id);
4761
+ `}}hi(Td);
4762
4762
  /**
4763
4763
  * @license
4764
4764
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4765
4765
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4766
4766
  */
4767
- class Td extends(cd(Qs)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return Ys`
4767
+ class Rd extends(ud(Qs)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return Ys`
4768
4768
  <style>
4769
4769
  :host {
4770
4770
  display: block;
@@ -4791,13 +4791,13 @@ class Td extends(cd(Qs)){static get is(){return"vaadin-multi-select-combo-box-sc
4791
4791
  <div id="selector">
4792
4792
  <slot></slot>
4793
4793
  </div>
4794
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof dd||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}hi(Td);
4794
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof cd||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}hi(Rd);
4795
4795
  /**
4796
4796
  * @license
4797
4797
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4798
4798
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4799
4799
  */
4800
- class Rd extends(bd(kd(Gr(Qs)))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return Ys`
4800
+ class Od extends(Ed(xd(Gr(Qs)))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return Ys`
4801
4801
  <style>
4802
4802
  :host([opened]) {
4803
4803
  pointer-events: auto;
@@ -4815,18 +4815,18 @@ class Rd extends(bd(kd(Gr(Qs)))){static get is(){return"vaadin-multi-select-comb
4815
4815
  no-vertical-overlap
4816
4816
  restore-focus-node="[[inputElement]]"
4817
4817
  ></vaadin-multi-select-combo-box-overlay>
4818
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof dd||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}hi(Rd);
4818
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof cd||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}hi(Od);
4819
4819
  /**
4820
4820
  * @license
4821
4821
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4822
4822
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4823
4823
  */
4824
- const Od=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resizables?t.target.resizables.forEach((e=>{e._onResize(t.contentRect)})):t.target._onResize(t.contentRect)}))}))})),Dd=ao((t=>class extends t{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Od.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,Od.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),Od.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),0===e.size&&Od.unobserve(t)),this.__parent=null}}_onResize(t){}}));
4824
+ const Dd=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resizables?t.target.resizables.forEach((e=>{e._onResize(t.contentRect)})):t.target._onResize(t.contentRect)}))}))})),Nd=ao((t=>class extends t{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Dd.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,Dd.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),Dd.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),0===e.size&&Dd.unobserve(t)),this.__parent=null}}_onResize(t){}}));
4825
4825
  /**
4826
4826
  * @license
4827
4827
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4828
4828
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4829
- */Rr("vaadin-multi-select-combo-box",[Gh,_i`
4829
+ */Rr("vaadin-multi-select-combo-box",[Mh,_i`
4830
4830
  :host {
4831
4831
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4832
4832
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4864,7 +4864,7 @@ const Od=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
4864
4864
  :host([auto-expand-horizontally]) [class$='container'] {
4865
4865
  width: auto;
4866
4866
  }
4867
- `],{moduleId:"vaadin-multi-select-combo-box-styles"});class Nd extends(Dd(Dh(Gr(kn(Qs))))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return Ys`
4867
+ `],{moduleId:"vaadin-multi-select-combo-box-styles"});class zd extends(Nd(Nh(Gr(xn(Qs))))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return Ys`
4868
4868
  <div class="vaadin-multi-select-combo-box-container">
4869
4869
  <div part="label">
4870
4870
  <slot name="label"></slot>
@@ -4935,7 +4935,7 @@ const Od=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
4935
4935
  </div>
4936
4936
 
4937
4937
  <slot name="tooltip"></slot>
4938
- `}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ha(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new qa(this.inputElement,this._labelController)),this._tooltipController=new Dn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new On(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),Ed(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),Ma(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let r=0;r<e.length;r++)if(e[r]&&e[r][i]===t[i])return r;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const r=e?"selected":"deselected",o=this.i18n.total.replace("{count}",i||0);Ma(`${t} ${this.i18n[r]} ${o}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),r=this._getItemLabel(t);let o=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===r.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),o=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(r,o,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),r=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=e-i;t.length>1&&(r-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,r=null;i>=0;i--){const o=this.__createChip(t[i]);this.insertBefore(o,r),r=o,e.unshift(o)}const s=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),s.unshift(t.pop());const r=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=r)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(o,r)}px`)}this._overflowItems=s}else{for(let e=t.length-1,i=null;e>=0;e--){const s=this.__createChip(t[e]);if(this.insertBefore(s,i),!this.autoExpandVertically&&this.$.chips.clientWidth>r){if(null!==i){s.remove();break}s.style.maxWidth=`${Math.max(o,r)}px`}t.pop(),i=s}this._overflowItems=t}}__updateOverflowChip(t,e,i,r){if(t){const o=e.length;t.label=`${o}`,t.setAttribute("count",`${o}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===o),t.disabled=i,t.readonly=r}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?r=-1:i>-1&&(r=i+1):-1===i?r=t.length-1:i>0&&(r=i-1),void 0!==r&&(this._focusedChipIndex=r)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?r=t.length-1:i>0&&(r=i-1):i===t.length-1?r=-1:i>-1&&(r=i+1),void 0!==r&&(this._focusedChipIndex=r)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&Ma(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}hi(Nd),Rr("vaadin-notification-card",_i`
4938
+ `}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Dn(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),yd(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),Ba(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let r=0;r<e.length;r++)if(e[r]&&e[r][i]===t[i])return r;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const r=e?"selected":"deselected",o=this.i18n.total.replace("{count}",i||0);Ba(`${t} ${this.i18n[r]} ${o}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),r=this._getItemLabel(t);let o=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===r.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),o=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(r,o,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),r=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=e-i;t.length>1&&(r-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,r=null;i>=0;i--){const o=this.__createChip(t[i]);this.insertBefore(o,r),r=o,e.unshift(o)}const s=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),s.unshift(t.pop());const r=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=r)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(o,r)}px`)}this._overflowItems=s}else{for(let e=t.length-1,i=null;e>=0;e--){const s=this.__createChip(t[e]);if(this.insertBefore(s,i),!this.autoExpandVertically&&this.$.chips.clientWidth>r){if(null!==i){s.remove();break}s.style.maxWidth=`${Math.max(o,r)}px`}t.pop(),i=s}this._overflowItems=t}}__updateOverflowChip(t,e,i,r){if(t){const o=e.length;t.label=`${o}`,t.setAttribute("count",`${o}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===o),t.disabled=i,t.readonly=r}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?r=-1:i>-1&&(r=i+1):-1===i?r=t.length-1:i>0&&(r=i-1),void 0!==r&&(this._focusedChipIndex=r)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?r=t.length-1:i>0&&(r=i-1):i===t.length-1?r=-1:i>-1&&(r=i+1),void 0!==r&&(this._focusedChipIndex=r)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&Ba(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}hi(zd),Rr("vaadin-notification-card",_i`
4939
4939
  :host {
4940
4940
  position: relative;
4941
4941
  margin: var(--lumo-space-s);
@@ -5155,7 +5155,7 @@ const Od=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
5155
5155
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5156
5156
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5157
5157
  */
5158
- class zd extends(Dl(Gr(kn(Qs)))){static get template(){return Ys`
5158
+ class Gd extends(Nl(Gr(xn(Qs)))){static get template(){return Ys`
5159
5159
  <style>
5160
5160
  :host {
5161
5161
  position: fixed;
@@ -5222,7 +5222,7 @@ class zd extends(Dl(Gr(kn(Qs)))){static get template(){return Ys`
5222
5222
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5223
5223
  </div>
5224
5224
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5225
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),vl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class Gd extends(Gr(Qs)){static get template(){return Ys`
5225
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),_l&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class Md extends(Gr(Qs)){static get template(){return Ys`
5226
5226
  <style>
5227
5227
  :host {
5228
5228
  display: block;
@@ -5244,14 +5244,14 @@ class zd extends(Dl(Gr(kn(Qs)))){static get template(){return Ys`
5244
5244
  <slot></slot>
5245
5245
  </div>
5246
5246
  </div>
5247
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Md extends(Mh(yr(kn(Qs)))){static get template(){return Ys`
5247
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Bd extends(Bh(yr(xn(Qs)))){static get template(){return Ys`
5248
5248
  <style>
5249
5249
  :host {
5250
5250
  display: none !important;
5251
5251
  }
5252
5252
  </style>
5253
5253
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5254
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Md._createAndShowNotification(void 0!==(null==(i=t)?void 0:i._$litType$)?e=>{vr(t,e)}:e=>{e.innerText=t},e);var i}static _createAndShowNotification(t,e){const i=document.createElement(Md.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",(t=>{t.detail.value||i.remove()})),i}get _container(){return Md._container||(Md._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Md._container)),Md._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ed(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,i){if(!i)return;const r=this._oldRenderer!==t;this._oldRenderer=t,r&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`))return void console.warn(`Invalid alignment parameter provided: position=${this.position}`);this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&"none"!==t?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}hi(zd),hi(Gd),hi(Md);const Bd=_i`
5254
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Bd._createAndShowNotification(void 0!==(null==(i=t)?void 0:i._$litType$)?e=>{vr(t,e)}:e=>{e.innerText=t},e);var i}static _createAndShowNotification(t,e){const i=document.createElement(Bd.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",(t=>{t.detail.value||i.remove()})),i}get _container(){return Bd._container||(Bd._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Bd._container)),Bd._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),yd(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,i){if(!i)return;const r=this._oldRenderer!==t;this._oldRenderer=t,r&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`))return void console.warn(`Invalid alignment parameter provided: position=${this.position}`);this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&"none"!==t?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}hi(Gd),hi(Md),hi(Bd);const Ud=_i`
5255
5255
  :host {
5256
5256
  -webkit-tap-highlight-color: transparent;
5257
5257
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5265,13 +5265,13 @@ class zd extends(Dl(Gr(kn(Qs)))){static get template(){return Ys`
5265
5265
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5266
5266
  background-color: var(--lumo-contrast-10pct);
5267
5267
  }
5268
- `;Rr("vaadin-list-box",Bd,{moduleId:"lumo-list-box"}),
5268
+ `;Rr("vaadin-list-box",Ud,{moduleId:"lumo-list-box"}),
5269
5269
  /**
5270
5270
  * @license
5271
5271
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5272
5272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5273
5273
  */
5274
- Rr("vaadin-select-item",Kh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list-box",Bd,{moduleId:"lumo-select-list-box"}),Rr("vaadin-select",[rl,_i`
5274
+ Rr("vaadin-select-item",Wh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list-box",Ud,{moduleId:"lumo-select-list-box"}),Rr("vaadin-select",[ol,_i`
5275
5275
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5276
5276
  text-align: start;
5277
5277
  }
@@ -5333,7 +5333,7 @@ Rr("vaadin-select-item",Kh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list
5333
5333
  ::slotted(*:hover) {
5334
5334
  background-color: transparent;
5335
5335
  }
5336
- `,{moduleId:"lumo-select-value-button"}),Rr("vaadin-select-overlay",[tl,_i`
5336
+ `,{moduleId:"lumo-select-value-button"}),Rr("vaadin-select-overlay",[el,_i`
5337
5337
  :host {
5338
5338
  --_lumo-item-selected-icon-display: block;
5339
5339
  }
@@ -5375,12 +5375,12 @@ Rr("vaadin-select-item",Kh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list
5375
5375
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5376
5376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5377
5377
  */
5378
- const Ud=t=>class extends(da(ya(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
5378
+ const Pd=t=>class extends(ca(wa(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
5379
5379
  /**
5380
5380
  * @license
5381
5381
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5382
5382
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5383
- */;class Pd extends(Ud(Gr(En(Qs)))){static get is(){return"vaadin-select-item"}static get template(){return Ys`
5383
+ */;class Ld extends(Pd(Gr(yn(Qs)))){static get is(){return"vaadin-select-item"}static get template(){return Ys`
5384
5384
  <style>
5385
5385
  :host {
5386
5386
  display: inline-block;
@@ -5400,23 +5400,23 @@ const Ud=t=>class extends(da(ya(t))){static get properties(){return{_hasVaadinIt
5400
5400
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5401
5401
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5402
5402
  */
5403
- function Ld(t,e){const{scrollLeft:i}=t;return"rtl"!==e?i:t.scrollWidth-t.clientWidth+i}hi(Pd);
5403
+ function jd(t,e){const{scrollLeft:i}=t;return"rtl"!==e?i:t.scrollWidth-t.clientWidth+i}hi(Ld);
5404
5404
  /**
5405
5405
  * @license
5406
5406
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5407
5407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5408
5408
  */
5409
- const jd=t=>class extends(ha(t)){get focused(){return(this._getItems()||[]).find(ba)}get _vertical(){return!0}focus(){const t=this._getItems();if(Array.isArray(t)){const e=this._getAvailableIndex(t,0,null,(t=>!fa(t)));e>=0&&this._focus(e)}}_getItems(){return Array.from(this.children)}_onKeyDown(t){if(super._onKeyDown(t),t.metaKey||t.ctrlKey)return;const{key:e}=t,i=this._getItems()||[],r=i.indexOf(this.focused);let o,s;const n=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKey(e)?(s=-n,o=r-n):this.__isNextKey(e)?(s=n,o=r+n):"Home"===e?(s=1,o=0):"End"===e&&(s=-1,o=i.length-1),o=this._getAvailableIndex(i,o,s,(t=>!fa(t))),o>=0&&(t.preventDefault(),this._focus(o,!0))}__isPrevKey(t){return this._vertical?"ArrowUp"===t:"ArrowLeft"===t}__isNextKey(t){return this._vertical?"ArrowDown"===t:"ArrowRight"===t}_focus(t,e=!1){const i=this._getItems();this._focusItem(i[t],e)}_focusItem(t){t&&(t.focus(),t.setAttribute("focus-ring",""))}_getAvailableIndex(t,e,i,r){const o=t.length;let s=e;for(let e=0;"number"==typeof s&&e<o;e+=1,s+=i||1){s<0?s=o-1:s>=o&&(s=0);const e=t[s];if(!e.hasAttribute("disabled")&&this.__isMatchingItem(e,r))return s}return-1}__isMatchingItem(t,e){return"function"!=typeof e||e(t)}}
5409
+ const Fd=t=>class extends(da(t)){get focused(){return(this._getItems()||[]).find(Ea)}get _vertical(){return!0}focus(){const t=this._getItems();if(Array.isArray(t)){const e=this._getAvailableIndex(t,0,null,(t=>!ga(t)));e>=0&&this._focus(e)}}_getItems(){return Array.from(this.children)}_onKeyDown(t){if(super._onKeyDown(t),t.metaKey||t.ctrlKey)return;const{key:e}=t,i=this._getItems()||[],r=i.indexOf(this.focused);let o,s;const n=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKey(e)?(s=-n,o=r-n):this.__isNextKey(e)?(s=n,o=r+n):"Home"===e?(s=1,o=0):"End"===e&&(s=-1,o=i.length-1),o=this._getAvailableIndex(i,o,s,(t=>!ga(t))),o>=0&&(t.preventDefault(),this._focus(o,!0))}__isPrevKey(t){return this._vertical?"ArrowUp"===t:"ArrowLeft"===t}__isNextKey(t){return this._vertical?"ArrowDown"===t:"ArrowRight"===t}_focus(t,e=!1){const i=this._getItems();this._focusItem(i[t],e)}_focusItem(t){t&&(t.focus(),t.setAttribute("focus-ring",""))}_getAvailableIndex(t,e,i,r){const o=t.length;let s=e;for(let e=0;"number"==typeof s&&e<o;e+=1,s+=i||1){s<0?s=o-1:s>=o&&(s=0);const e=t[s];if(!e.hasAttribute("disabled")&&this.__isMatchingItem(e,r))return s}return-1}__isMatchingItem(t,e){return"function"!=typeof e||e(t)}}
5410
5410
  /**
5411
5411
  * @license
5412
5412
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5413
5413
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5414
- */,Fd=t=>class extends(jd(t)){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(){this._observer&&this._observer.flush();const t=Array.isArray(this.items)?this.items:[],e=this._getAvailableIndex(t,0,null,(t=>0===t.tabIndex&&!fa(t)));e>=0?this._focus(e):super.focus()}ready(){super.ready(),this.addEventListener("click",(t=>this._onClick(t)));const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new In(t,(()=>{this._setItems(this._filterItems(xn(this)))}))}_getItems(){return this.items}_enhanceItems(t,e,i,r){if(!r&&t){this.setAttribute("aria-orientation",e||"vertical"),t.forEach((t=>{e?t.setAttribute("orientation",e):t.removeAttribute("orientation")})),this._setFocusable(i<0||!i?0:i);const r=t[i];t.forEach((t=>{t.selected=t===r})),r&&!r.disabled&&this._scrollToItem(i)}}_filterItems(t){return t.filter((t=>t._hasVaadinItemMixin))}_onClick(t){if(t.metaKey||t.shiftKey||t.ctrlKey||t.defaultPrevented)return;const e=this._filterItems(t.composedPath())[0];let i;e&&!e.disabled&&(i=this.items.indexOf(e))>=0&&(this.selected=i)}_searchKey(t,e){return this._searchReset=mn.debounce(this._searchReset,ln.after(500),(()=>{this._searchBuf=""})),this._searchBuf+=e.toLowerCase(),this.items.some((t=>this.__isMatchingKey(t)))||(this._searchBuf=e.toLowerCase()),this._getAvailableIndex(this.items,1===this._searchBuf.length?t+1:t,1,(t=>this.__isMatchingKey(t)&&"none"!==getComputedStyle(t).display))}__isMatchingKey(t){return t.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(t){if(t.metaKey||t.ctrlKey)return;const e=t.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(e)&&1===e.length){const t=this._searchKey(i,e);t>=0&&this._focus(t)}else super._onKeyDown(t)}_isItemHidden(t){return"none"===getComputedStyle(t).display}_setFocusable(t){t=this._getAvailableIndex(this.items,t,1);const e=this.items[t];this.items.forEach((t=>{t.tabIndex=t===e?0:-1}))}_focus(t){this.items.forEach(((e,i)=>{e.focused=i===t})),this._setFocusable(t),this._scrollToItem(t),super._focus(t)}_scrollToItem(t){const e=this.items[t];if(!e)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),o=(this.items[t+1]||e).getBoundingClientRect(),s=(this.items[t-1]||e).getBoundingClientRect();let n=0;!this._isRTL&&o[i[1]]>=r[i[1]]||this._isRTL&&o[i[1]]<=r[i[1]]?n=o[i[1]]-r[i[1]]:(!this._isRTL&&s[i[0]]<=r[i[0]]||this._isRTL&&s[i[0]]>=r[i[0]])&&(n=s[i[0]]-r[i[0]]),this._scroll(n)}_scroll(t){if(this._vertical)this._scrollerElement.scrollTop+=t;else{const e=this.getAttribute("dir")||"ltr",i=Ld(this._scrollerElement,e)+t;!function(t,e,i){t.scrollLeft="rtl"!==e?i:t.clientWidth-t.scrollWidth+i}(this._scrollerElement,e,i)}}}
5414
+ */,Vd=t=>class extends(Fd(t)){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(){this._observer&&this._observer.flush();const t=Array.isArray(this.items)?this.items:[],e=this._getAvailableIndex(t,0,null,(t=>0===t.tabIndex&&!ga(t)));e>=0?this._focus(e):super.focus()}ready(){super.ready(),this.addEventListener("click",(t=>this._onClick(t)));const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Tn(t,(()=>{this._setItems(this._filterItems(Sn(this)))}))}_getItems(){return this.items}_enhanceItems(t,e,i,r){if(!r&&t){this.setAttribute("aria-orientation",e||"vertical"),t.forEach((t=>{e?t.setAttribute("orientation",e):t.removeAttribute("orientation")})),this._setFocusable(i<0||!i?0:i);const r=t[i];t.forEach((t=>{t.selected=t===r})),r&&!r.disabled&&this._scrollToItem(i)}}_filterItems(t){return t.filter((t=>t._hasVaadinItemMixin))}_onClick(t){if(t.metaKey||t.shiftKey||t.ctrlKey||t.defaultPrevented)return;const e=this._filterItems(t.composedPath())[0];let i;e&&!e.disabled&&(i=this.items.indexOf(e))>=0&&(this.selected=i)}_searchKey(t,e){return this._searchReset=mn.debounce(this._searchReset,ln.after(500),(()=>{this._searchBuf=""})),this._searchBuf+=e.toLowerCase(),this.items.some((t=>this.__isMatchingKey(t)))||(this._searchBuf=e.toLowerCase()),this._getAvailableIndex(this.items,1===this._searchBuf.length?t+1:t,1,(t=>this.__isMatchingKey(t)&&"none"!==getComputedStyle(t).display))}__isMatchingKey(t){return t.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(t){if(t.metaKey||t.ctrlKey)return;const e=t.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(e)&&1===e.length){const t=this._searchKey(i,e);t>=0&&this._focus(t)}else super._onKeyDown(t)}_isItemHidden(t){return"none"===getComputedStyle(t).display}_setFocusable(t){t=this._getAvailableIndex(this.items,t,1);const e=this.items[t];this.items.forEach((t=>{t.tabIndex=t===e?0:-1}))}_focus(t){this.items.forEach(((e,i)=>{e.focused=i===t})),this._setFocusable(t),this._scrollToItem(t),super._focus(t)}_scrollToItem(t){const e=this.items[t];if(!e)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),o=(this.items[t+1]||e).getBoundingClientRect(),s=(this.items[t-1]||e).getBoundingClientRect();let n=0;!this._isRTL&&o[i[1]]>=r[i[1]]||this._isRTL&&o[i[1]]<=r[i[1]]?n=o[i[1]]-r[i[1]]:(!this._isRTL&&s[i[0]]<=r[i[0]]||this._isRTL&&s[i[0]]>=r[i[0]])&&(n=s[i[0]]-r[i[0]]),this._scroll(n)}_scroll(t){if(this._vertical)this._scrollerElement.scrollTop+=t;else{const e=this.getAttribute("dir")||"ltr",i=jd(this._scrollerElement,e)+t;!function(t,e,i){t.scrollLeft="rtl"!==e?i:t.clientWidth-t.scrollWidth+i}(this._scrollerElement,e,i)}}}
5415
5415
  /**
5416
5416
  * @license
5417
5417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5418
5418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5419
- */;class Vd extends(Fd(Gr(En(Na(Qs))))){static get is(){return"vaadin-select-list-box"}static get template(){return Ys`
5419
+ */;class Hd extends(Vd(Gr(yn(za(Qs))))){static get is(){return"vaadin-select-list-box"}static get template(){return Ys`
5420
5420
  <style>
5421
5421
  :host {
5422
5422
  display: flex;
@@ -5436,18 +5436,18 @@ const jd=t=>class extends(ha(t)){get focused(){return(this._getItems()||[]).find
5436
5436
  <div part="items">
5437
5437
  <slot></slot>
5438
5438
  </div>
5439
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}hi(Vd);
5439
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}hi(Hd);
5440
5440
  /**
5441
5441
  * @license
5442
5442
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5443
5443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5444
5444
  */
5445
- const Hd=t=>class extends(Bl(Nl(En(t)))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find((t=>"style"!==t.localName))}_updateOverlayWidth(t,e){if(t&&e){const t="--vaadin-select-overlay-width",i=getComputedStyle(e).getPropertyValue(t);""===i?this.style.removeProperty(t):this.style.setProperty(t,i)}}}
5445
+ const qd=t=>class extends(Ul(zl(yn(t)))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find((t=>"style"!==t.localName))}_updateOverlayWidth(t,e){if(t&&e){const t="--vaadin-select-overlay-width",i=getComputedStyle(e).getPropertyValue(t);""===i?this.style.removeProperty(t):this.style.setProperty(t,i)}}}
5446
5446
  /**
5447
5447
  * @license
5448
5448
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5449
5449
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5450
- */;Rr("vaadin-select-overlay",[nl,_i`
5450
+ */;Rr("vaadin-select-overlay",[al,_i`
5451
5451
  :host {
5452
5452
  align-items: flex-start;
5453
5453
  justify-content: flex-start;
@@ -5462,14 +5462,14 @@ const Hd=t=>class extends(Bl(Nl(En(t)))){static get observers(){return["_updateO
5462
5462
  outline: 3px solid;
5463
5463
  }
5464
5464
  }
5465
- `],{moduleId:"vaadin-select-overlay-styles"});class qd extends(Hd(Gr(Qs))){static get is(){return"vaadin-select-overlay"}static get template(){return Ys`
5465
+ `],{moduleId:"vaadin-select-overlay-styles"});class $d extends(qd(Gr(Qs))){static get is(){return"vaadin-select-overlay"}static get template(){return Ys`
5466
5466
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5467
5467
  <div part="overlay" id="overlay" tabindex="0">
5468
5468
  <div part="content" id="content">
5469
5469
  <slot></slot>
5470
5470
  </div>
5471
5471
  </div>
5472
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t)}}}hi(qd),
5472
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t)}}}hi($d),
5473
5473
  /**
5474
5474
  * @license
5475
5475
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -5517,19 +5517,19 @@ Rr("vaadin-select-value-button",_i`
5517
5517
  width: 100%;
5518
5518
  line-height: inherit;
5519
5519
  }
5520
- `,{moduleId:"vaadin-select-value-button-styles"});class $d extends(jl(Gr(Qs))){static get is(){return"vaadin-select-value-button"}static get template(){return Ys`
5520
+ `,{moduleId:"vaadin-select-value-button-styles"});class Xd extends(Fl(Gr(Qs))){static get is(){return"vaadin-select-value-button"}static get template(){return Ys`
5521
5521
  <div class="vaadin-button-container">
5522
5522
  <span part="label">
5523
5523
  <slot></slot>
5524
5524
  </span>
5525
5525
  </div>
5526
- `}}hi($d);
5526
+ `}}hi(Xd);
5527
5527
  /**
5528
5528
  * @license
5529
5529
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5530
5530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5531
5531
  */
5532
- const Xd=_i`
5532
+ const Kd=_i`
5533
5533
  .sr-only {
5534
5534
  border: 0 !important;
5535
5535
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5548,17 +5548,17 @@ const Xd=_i`
5548
5548
  * @license
5549
5549
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5550
5550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5551
- */;class Kd extends On{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}
5551
+ */;class Wd extends Dn{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}
5552
5552
  /**
5553
5553
  * @license
5554
5554
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5555
5555
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5556
- */const Wd=t=>class extends(Mh(ka(xa(ha(Va(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Rn()}`,this._srLabelController=new La(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Kd(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Sh(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new Dn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=!(!e||void 0===e.value||e.value===this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0!==e&&!this.__dispatchChangePending&&this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),Oa(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,r)=>void 0===t&&e.value===i?r:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}__dispatchChange(){return li(this,null,(function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}))}}
5556
+ */const Yd=t=>class extends(Bh(xa(Sa(da(Ha(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${On()}`,this._srLabelController=new ja(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Wd(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Ah(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=!(!e||void 0===e.value||e.value===this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0!==e&&!this.__dispatchChangePending&&this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),Da(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,r)=>void 0===t&&e.value===i?r:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}__dispatchChange(){return li(this,null,(function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}))}}
5557
5557
  /**
5558
5558
  * @license
5559
5559
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5560
5560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5561
- */;Rr("vaadin-select",[Nh,zh,Xd],{moduleId:"vaadin-select-styles"});class Yd extends(Wd(kn(Gr(Qs)))){static get is(){return"vaadin-select"}static get template(){return Ys`
5561
+ */;Rr("vaadin-select",[zh,Gh,Kd],{moduleId:"vaadin-select-styles"});class Zd extends(Yd(xn(Gr(Qs)))){static get is(){return"vaadin-select"}static get template(){return Ys`
5562
5562
  <style>
5563
5563
  :host {
5564
5564
  position: relative;
@@ -5611,7 +5611,7 @@ const Xd=_i`
5611
5611
  <div class="sr-only">
5612
5612
  <slot name="sr-label"></slot>
5613
5613
  </div>
5614
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ed(this)}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}hi(Yd);const Zd=_i`
5614
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),yd(this)}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}hi(Zd);const Qd=_i`
5615
5615
  /* Optical centering */
5616
5616
  :host::before,
5617
5617
  :host::after {
@@ -5711,7 +5711,7 @@ const Xd=_i`
5711
5711
  transform: scale(1.02);
5712
5712
  }
5713
5713
  }
5714
- `;Rr("vaadin-dialog-overlay",[Qa,Zd],{moduleId:"lumo-dialog"}),Rr("vaadin-confirm-dialog-overlay",[Qa,Zd,_i`
5714
+ `;Rr("vaadin-dialog-overlay",[Ja,Qd],{moduleId:"lumo-dialog"}),Rr("vaadin-confirm-dialog-overlay",[Ja,Qd,_i`
5715
5715
  [part='header'] ::slotted(h3) {
5716
5716
  margin-top: 0 !important;
5717
5717
  margin-bottom: 0 !important;
@@ -5752,12 +5752,12 @@ const Xd=_i`
5752
5752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5753
5753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5754
5754
  */
5755
- const Qd=t=>class extends t{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const t=this.$.overlay;t.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),t.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),t.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=t}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout((()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)}))}_onOverlayOpened(t){!1===t.detail.value&&(this.opened=!1)}_handleOutsideClick(t){this.noCloseOnOutsideClick&&t.preventDefault()}_handleEscPress(t){this.noCloseOnEsc&&t.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}}
5755
+ const Jd=t=>class extends t{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const t=this.$.overlay;t.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),t.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),t.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=t}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout((()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)}))}_onOverlayOpened(t){!1===t.detail.value&&(this.opened=!1)}_handleOutsideClick(t){this.noCloseOnOutsideClick&&t.preventDefault()}_handleEscPress(t){this.noCloseOnEsc&&t.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}}
5756
5756
  /**
5757
5757
  * @license
5758
5758
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5759
5759
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5760
- */,Jd=_i`
5760
+ */,tc=_i`
5761
5761
  [part='header'],
5762
5762
  [part='header-content'],
5763
5763
  [part='footer'] {
@@ -5933,7 +5933,7 @@ const Qd=t=>class extends t{static get properties(){return{opened:{type:Boolean,
5933
5933
  * @license
5934
5934
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5935
5935
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5936
- */;const tc=t=>class extends t{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(t,e,i){const r=`--_vaadin-confirm-dialog-content-${e}`;i?t.style.setProperty(r,i):t.style.removeProperty(r)}__updateContentHeight(t,e){e&&this.__updateDimension(e,"height",t)}__updateContentWidth(t,e){e&&this.__updateDimension(e,"width",t)}}
5936
+ */;const ec=t=>class extends t{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(t,e,i){const r=`--_vaadin-confirm-dialog-content-${e}`;i?t.style.setProperty(r,i):t.style.removeProperty(r)}__updateContentHeight(t,e){e&&this.__updateDimension(e,"height",t)}__updateContentWidth(t,e){e&&this.__updateDimension(e,"width",t)}}
5937
5937
  /**
5938
5938
  * @license
5939
5939
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
@@ -5944,7 +5944,7 @@ const Qd=t=>class extends t{static get properties(){return{opened:{type:Boolean,
5944
5944
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5945
5945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5946
5946
  */
5947
- Rr("vaadin-confirm-dialog-overlay",[nl,Jd,_i`
5947
+ Rr("vaadin-confirm-dialog-overlay",[al,tc,_i`
5948
5948
  :host {
5949
5949
  --_vaadin-confirm-dialog-content-width: auto;
5950
5950
  --_vaadin-confirm-dialog-content-height: auto;
@@ -5963,7 +5963,7 @@ Rr("vaadin-confirm-dialog-overlay",[nl,Jd,_i`
5963
5963
  [part='footer'] > * {
5964
5964
  pointer-events: all;
5965
5965
  }
5966
- `],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class ec extends(Nl(En(Gr(Qs)))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return Ys`
5966
+ `],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class ic extends(zl(yn(Gr(Qs)))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return Ys`
5967
5967
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
5968
5968
  <div part="overlay" id="overlay" tabindex="0">
5969
5969
  <section id="resizerContainer" class="resizer-container">
@@ -5984,7 +5984,7 @@ Rr("vaadin-confirm-dialog-overlay",[nl,Jd,_i`
5984
5984
  </footer>
5985
5985
  </section>
5986
5986
  </div>
5987
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}hi(ec);class ic extends(tc(Qd(Mh(yr(Qs))))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return Ys`
5987
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}hi(ic);class rc extends(ec(Jd(Bh(yr(Qs))))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return Ys`
5988
5988
  <style>
5989
5989
  :host {
5990
5990
  display: none;
@@ -6005,18 +6005,18 @@ Rr("vaadin-confirm-dialog-overlay",[nl,Jd,_i`
6005
6005
  restore-focus-on-close
6006
6006
  focus-trap
6007
6007
  ></vaadin-confirm-dialog-overlay>
6008
- `}}hi(ic);
6008
+ `}}hi(rc);
6009
6009
  /**
6010
6010
  * @license
6011
6011
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6012
6012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6013
6013
  */
6014
- const rc=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new On(this,"header","h3",{initializer:t=>{this._headerNode=t}}),this.addController(this._headerController),this._messageController=new On(this,"","div",{multiple:!0,observe:!1,initializer:t=>{const e=document.createElement("div");e.style.display="contents";const i=`confirm-dialog-message-${Rn()}`;e.id=i,this.appendChild(e),e.appendChild(t),this._messageNodes=[...this._messageNodes,e]}}),this.addController(this._messageController),this._cancelController=new On(this,"cancel-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("cancel",t)}}),this.addController(this._cancelController),this._rejectController=new On(this,"reject-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("reject",t)}}),this.addController(this._rejectController),this._confirmController=new On(this,"confirm-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("confirm",t)}}),this.addController(this._confirmController)}_initOverlay(t){t.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),t.addEventListener("vaadin-overlay-open",(()=>this.__onDialogOpened())),t.addEventListener("vaadin-overlay-closed",(()=>this.__onDialogClosed())),t.setAttribute("role","alertdialog")}__onDialogOpened(){const t=this._overlayElement;this.__slottedNodes.forEach((e=>{t.appendChild(e)}));const e=t.querySelector('[slot="confirm-button"]');e&&e.focus()}__onDialogClosed(){this.__slottedNodes.forEach((t=>{this.appendChild(t)})),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(t,e,i){!t||!e||(void 0!==i?Oa(t,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):e.forEach((e=>{Oa(t,"aria-describedby",{newId:e.id})})),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(t,e){const i=`_${t}Button`,r=`__${t}`;this[i]&&this[i]!==e&&this[i].remove(),e.addEventListener("click",this[r]),this[i]=e}__updateCancelButton(t,e,i,r){t&&(t===this._cancelController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}__updateConfirmButton(t,e,i){t&&t===this._confirmController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i))}__updateHeaderNode(t,e){t&&t===this._headerController.defaultNode&&(t.textContent=e)}__updateMessageNodes(t,e){if(t&&t.length>0){const i=t.find((t=>this._messageController.defaultNode&&t===this._messageController.defaultNode.parentElement));i&&(i.firstChild.textContent=e)}}__updateRejectButton(t,e,i,r){t&&(t===this._rejectController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}_escPressed(t){t.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(t){return t||"confirmation"}}
6014
+ const oc=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Dn(this,"header","h3",{initializer:t=>{this._headerNode=t}}),this.addController(this._headerController),this._messageController=new Dn(this,"","div",{multiple:!0,observe:!1,initializer:t=>{const e=document.createElement("div");e.style.display="contents";const i=`confirm-dialog-message-${On()}`;e.id=i,this.appendChild(e),e.appendChild(t),this._messageNodes=[...this._messageNodes,e]}}),this.addController(this._messageController),this._cancelController=new Dn(this,"cancel-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("cancel",t)}}),this.addController(this._cancelController),this._rejectController=new Dn(this,"reject-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("reject",t)}}),this.addController(this._rejectController),this._confirmController=new Dn(this,"confirm-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("confirm",t)}}),this.addController(this._confirmController)}_initOverlay(t){t.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),t.addEventListener("vaadin-overlay-open",(()=>this.__onDialogOpened())),t.addEventListener("vaadin-overlay-closed",(()=>this.__onDialogClosed())),t.setAttribute("role","alertdialog")}__onDialogOpened(){const t=this._overlayElement;this.__slottedNodes.forEach((e=>{t.appendChild(e)}));const e=t.querySelector('[slot="confirm-button"]');e&&e.focus()}__onDialogClosed(){this.__slottedNodes.forEach((t=>{this.appendChild(t)})),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(t,e,i){!t||!e||(void 0!==i?Da(t,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):e.forEach((e=>{Da(t,"aria-describedby",{newId:e.id})})),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(t,e){const i=`_${t}Button`,r=`__${t}`;this[i]&&this[i]!==e&&this[i].remove(),e.addEventListener("click",this[r]),this[i]=e}__updateCancelButton(t,e,i,r){t&&(t===this._cancelController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}__updateConfirmButton(t,e,i){t&&t===this._confirmController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i))}__updateHeaderNode(t,e){t&&t===this._headerController.defaultNode&&(t.textContent=e)}__updateMessageNodes(t,e){if(t&&t.length>0){const i=t.find((t=>this._messageController.defaultNode&&t===this._messageController.defaultNode.parentElement));i&&(i.firstChild.textContent=e)}}__updateRejectButton(t,e,i,r){t&&(t===this._rejectController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}_escPressed(t){t.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(t){return t||"confirmation"}}
6015
6015
  /**
6016
6016
  * @license
6017
6017
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6018
6018
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6019
- */;class oc extends(rc(kn(yr(Na(Qs))))){static get template(){return Ys`
6019
+ */;class sc extends(oc(xn(yr(za(Qs))))){static get template(){return Ys`
6020
6020
  <style>
6021
6021
  :host,
6022
6022
  [hidden] {
@@ -6043,7 +6043,7 @@ const rc=t=>class extends t{static get properties(){return{accessibleDescription
6043
6043
  <slot name="reject-button"></slot>
6044
6044
  <slot name="confirm-button"></slot>
6045
6045
  </div>
6046
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}hi(oc),Rr("vaadin-tab",_i`
6046
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}hi(sc),Rr("vaadin-tab",_i`
6047
6047
  :host {
6048
6048
  box-sizing: border-box;
6049
6049
  padding: 0.5rem 0.75rem;
@@ -6282,7 +6282,7 @@ const rc=t=>class extends t{static get properties(){return{accessibleDescription
6282
6282
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6283
6283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6284
6284
  */
6285
- const sc=t=>class extends(Ud(t)){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(t){const e=this.hasAttribute("active");if(super._onKeyUp(t),e){const t=this.querySelector("a");t&&t.click()}}}
6285
+ const nc=t=>class extends(Pd(t)){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(t){const e=this.hasAttribute("active");if(super._onKeyUp(t),e){const t=this.querySelector("a");t&&t.click()}}}
6286
6286
  /**
6287
6287
  * @license
6288
6288
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -6312,10 +6312,10 @@ Rr("vaadin-tab",_i`
6312
6312
  border-bottom: 2px solid;
6313
6313
  }
6314
6314
  }
6315
- `,{moduleId:"vaadin-tab-styles"});class nc extends(kn(Gr(sc(Na(Qs))))){static get template(){return Ys`
6315
+ `,{moduleId:"vaadin-tab-styles"});class ac extends(xn(Gr(nc(za(Qs))))){static get template(){return Ys`
6316
6316
  <slot></slot>
6317
6317
  <slot name="tooltip"></slot>
6318
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Dn(this),this.addController(this._tooltipController)}}hi(nc),Rr("vaadin-tabs",_i`
6318
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Nn(this),this.addController(this._tooltipController)}}hi(ac),Rr("vaadin-tabs",_i`
6319
6319
  :host {
6320
6320
  -webkit-tap-highlight-color: transparent;
6321
6321
  }
@@ -6559,7 +6559,7 @@ Rr("vaadin-tab",_i`
6559
6559
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6560
6560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6561
6561
  */
6562
- const ac=t=>class extends(Dd(Fd(t))){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver((()=>{setTimeout((()=>this._updateOverflow()))}))}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",(()=>this._updateOverflow())),this.setAttribute("role","tablist"),cl(this,(()=>{this._updateOverflow()}))}_onResize(){this._updateOverflow()}__tabsItemsChanged(t){this.__itemsResizeObserver.disconnect(),(t||[]).forEach((t=>{this.__itemsResizeObserver.observe(t)})),this._updateOverflow()}_scrollForward(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),r=[...this.items].reverse().find((r=>this._isItemVisible(r,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;s=this.__isRTL?r.right-(i.right-o):r.left-(i.left+o),-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-o)),this._scroll(s)}_scrollBack(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),r=this.items.find((r=>this._isItemVisible(r,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;s=this.__isRTL?r.left-(i.left+o):r.right-(i.right-o),this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-o)),this._scroll(s)}_isItemVisible(t,e,i,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const o=r.right-(this.__isRTL?i:e),s=r.left+(this.__isRTL?e:i),n=t.getBoundingClientRect();return o>Math.floor(n.left)&&s<Math.ceil(n.right)}_getNavigationButtonVisibleWidth(t){const e=this.shadowRoot.querySelector(`[part="${t}"]`);return"0"===window.getComputedStyle(e).opacity?0:e.clientWidth}_updateOverflow(){const t=this._vertical?this._scrollerElement.scrollTop:Ld(this._scrollerElement,this.getAttribute("dir")),e=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(t)>1?"start":"";Math.ceil(t)<Math.ceil(e-this._scrollOffset)&&(i+=" end"),1===this.__direction&&(i=i.replace(/start|end/giu,(t=>"start"===t?"end":"start"))),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}}
6562
+ const lc=t=>class extends(Nd(Vd(t))){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver((()=>{setTimeout((()=>this._updateOverflow()))}))}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",(()=>this._updateOverflow())),this.setAttribute("role","tablist"),ul(this,(()=>{this._updateOverflow()}))}_onResize(){this._updateOverflow()}__tabsItemsChanged(t){this.__itemsResizeObserver.disconnect(),(t||[]).forEach((t=>{this.__itemsResizeObserver.observe(t)})),this._updateOverflow()}_scrollForward(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),r=[...this.items].reverse().find((r=>this._isItemVisible(r,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;s=this.__isRTL?r.right-(i.right-o):r.left-(i.left+o),-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-o)),this._scroll(s)}_scrollBack(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),r=this.items.find((r=>this._isItemVisible(r,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;s=this.__isRTL?r.left-(i.left+o):r.right-(i.right-o),this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-o)),this._scroll(s)}_isItemVisible(t,e,i,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const o=r.right-(this.__isRTL?i:e),s=r.left+(this.__isRTL?e:i),n=t.getBoundingClientRect();return o>Math.floor(n.left)&&s<Math.ceil(n.right)}_getNavigationButtonVisibleWidth(t){const e=this.shadowRoot.querySelector(`[part="${t}"]`);return"0"===window.getComputedStyle(e).opacity?0:e.clientWidth}_updateOverflow(){const t=this._vertical?this._scrollerElement.scrollTop:jd(this._scrollerElement,this.getAttribute("dir")),e=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(t)>1?"start":"";Math.ceil(t)<Math.ceil(e-this._scrollOffset)&&(i+=" end"),1===this.__direction&&(i=i.replace(/start|end/giu,(t=>"start"===t?"end":"start"))),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}}
6563
6563
  /**
6564
6564
  * @license
6565
6565
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -6646,7 +6646,7 @@ Rr("vaadin-tabs",_i`
6646
6646
  :host([dir='rtl']) [part='forward-button']::after {
6647
6647
  content: '\\25C0';
6648
6648
  }
6649
- `,{moduleId:"vaadin-tabs-styles"});class lc extends(ac(kn(Gr(Qs)))){static get template(){return Ys`
6649
+ `,{moduleId:"vaadin-tabs-styles"});class hc extends(lc(xn(Gr(Qs)))){static get template(){return Ys`
6650
6650
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6651
6651
 
6652
6652
  <div id="scroll" part="tabs">
@@ -6654,4 +6654,4 @@ Rr("vaadin-tabs",_i`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}hi(lc);const hc=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])"string"==typeof t[e][i]&&(s[e][i]=t[e][i])})),e(!0)}))})))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?i("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return i("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&""!==this.displayName.trim()?i("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return i(o,{key:"0474aad44033fe0c48473af7938e9ddb77b684e8",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};hc.style=":host{display:block;height:100%}";const dc={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",requestTwofaError:"There was an error when sending the code",loadingMessage:"Please wait, loading...",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",verifyButton:"Verify"},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",requestTwofaError:"Hiba történt a kód elküldésekor",successMessage:"Sikeres regisztráció",loadingMessage:"Kérjük, várjon, betöltés folyamatban...",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",requestTwofaError:"Došlo je do pogreške prilikom slanja koda",successMessage:"Register successful",loadingMessage:"Molimo pričekajte, učitavanje...",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, carregando...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",requestTwofaError:"Kod gönderilirken bir hata oluştu",successMessage:"Kayıt başarılı",loadingMessage:"Lütfen bekleyin, yükleniyor...",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",requestTwofaError:"There was an error when sending the code",successMessage:"Register successful",loadingMessage:"Please wait, loading...",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",requestTwofaError:"A apărut o eroare la trimiterea codului",successMessage:"Înregistrare reușită",loadingMessage:"Vă rugăm așteptați, se încarcă...",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour",requestTwofaError:"Une erreur est survenue lors de l'envoi du code",loadingMessage:"Veuillez patienter, chargement...",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, a carregar...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",requestTwofaError:"Beim Senden des Codes ist ein Fehler aufgetreten",successMessage:"Registrierung erfolgreich",loadingMessage:"Bitte warten, wird geladen...",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},cc="DocumentNumber",uc="DocumentType",mc="Passport",pc="SouthAfricanID",vc="Mobile",_c=/\s+/g,fc=/-/g,gc=(t,e,i)=>{let r=dc[dc[e]?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},bc=(t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:t,data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)};var Ec={},yc={},wc=Object.defineProperty,kc=Object.defineProperties,xc=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,Ac=Object.prototype.hasOwnProperty,Cc=Object.prototype.propertyIsEnumerable,Ic=(t,e,i)=>e in t?wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tc=(t,e)=>{for(var i in e||(e={}))Ac.call(e,i)&&Ic(t,i,e[i]);if(Sc)for(var i of Sc(e))Cc.call(e,i)&&Ic(t,i,e[i]);return t},Rc=(t,e)=>kc(t,xc(e)),Oc=(t,e,i)=>(Ic(t,"symbol"!=typeof e?e+"":e,i),i);function Dc(){}function Nc(t){return t()}function zc(){return Object.create(null)}function Gc(t){t.forEach(Nc)}function Mc(t){return"function"==typeof t}function Bc(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Uc(t,...e){if(null==t){for(const t of e)t(void 0);return Dc}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Pc(t,e){t.appendChild(e)}function Lc(t,e,i){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=Vc("style");t.id=e,t.textContent=i,function(t,e){Pc(t.head||t,e)}(r,t)}}function jc(t,e,i){t.insertBefore(e,i||null)}function Fc(t){t.parentNode&&t.parentNode.removeChild(t)}function Vc(t){return document.createElement(t)}function Hc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function qc(t){return document.createTextNode(t)}function $c(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}let Xc;function Kc(t){Xc=t}function Wc(t){(function(){if(!Xc)throw new Error("Function called outside component initialization");return Xc})().$$.on_mount.push(t)}const Yc=[],Zc=[];let Qc=[];const Jc=[],tu=Promise.resolve();let eu=!1;function iu(t){Qc.push(t)}const ru=new Set;let ou=0;function su(){if(0!==ou)return;const t=Xc;do{try{for(;ou<Yc.length;){const t=Yc[ou];ou++,Kc(t),nu(t.$$)}}catch(t){throw Yc.length=0,ou=0,t}for(Kc(null),Yc.length=0,ou=0;Zc.length;)Zc.pop()();for(let t=0;t<Qc.length;t+=1){const e=Qc[t];ru.has(e)||(ru.add(e),e())}Qc.length=0}while(Yc.length);for(;Jc.length;)Jc.pop()();eu=!1,ru.clear(),Kc(t)}function nu(t){if(null!==t.fragment){t.update(),Gc(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(iu)}}const au=new Set;function lu(t,e,i,r,o,s,n=null,a=[-1]){const l=Xc;Kc(t);const h=t.$$={fragment:null,ctx:[],props:s,update:Dc,not_equal:o,bound:zc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:zc(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let d=!1;if(h.ctx=i?i(t,e.props||{},((e,i,...r)=>{const s=r.length?r[0]:i;return h.ctx&&o(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),d&&function(t,e){-1===t.$$.dirty[0]&&(Yc.push(t),eu||(eu=!0,tu.then(su)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],h.update(),d=!0,Gc(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);h.fragment&&h.fragment.l(t),t.forEach(Fc)}else h.fragment&&h.fragment.c();e.intro&&function(t){t&&t.i&&(au.delete(t),t.i(void 0))}(t.$$.fragment),function(t,e,i){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,i),iu((()=>{const e=t.$$.on_mount.map(Nc).filter(Mc);t.$$.on_destroy?t.$$.on_destroy.push(...e):Gc(e),t.$$.on_mount=[]})),o.forEach(iu)}(t,e.target,e.anchor),su()}Kc(l)}let hu;function du(t,e,i,r){var o;const s=null==(o=i[t])?void 0:o.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function cu(t,e,i,r,o){let s=class extends hu{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(s.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(i){var r;i=du(t,i,e),this.$$d[t]=i,null==(r=this.$$c)||r.$set({[t]:i})}})})),r.forEach((t=>{Object.defineProperty(s.prototype,t,{get(){var e;return null==(e=this.$$c)?void 0:e[t]}})})),t.element=s,s}"function"==typeof HTMLElement&&(hu=class extends HTMLElement{constructor(t,e,i){super(),Oc(this,"$$ctor"),Oc(this,"$$s"),Oc(this,"$$c"),Oc(this,"$$cn",!1),Oc(this,"$$d",{}),Oc(this,"$$r",!1),Oc(this,"$$p_d",{}),Oc(this,"$$l",{}),Oc(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}connectedCallback(){return t=this,e=function*(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=Vc("slot"),"default"!==t&&$c(e,"name",t)},m:function(t,i){jc(t,e,i)},d:function(t){t&&Fc(e)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const r of this.$$s)r in i&&(e[r]=[t(r)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=du(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Rc(Tc({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=du(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const t in this.$$l)for(const e of this.$$l[t]){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}this.$$l={}}},new Promise(((i,r)=>{var o=t=>{try{n(e.next(t))}catch(t){r(t)}},s=t=>{try{n(e.throw(t))}catch(t){r(t)}},n=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,s);n((e=e.apply(t,null)).next())}));var t,e}attributeChangedCallback(t,e,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=du(t,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class uu{constructor(){Oc(this,"$$"),Oc(this,"$$set")}$destroy(){(function(t,e){const i=t.$$;null!==i.fragment&&(function(t){const e=[],i=[];Qc.forEach((r=>-1===t.indexOf(r)?e.push(r):i.push(r))),i.forEach((t=>t())),Qc=e}(i.after_update),Gc(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=Dc}$on(t,e){if(!Mc(e))return Dc;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function mu(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function pu(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function vu(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}function _u(t){Lc(t,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function fu(t){let e;return{c(){e=Vc("div"),e.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,r){jc(i,e,r),t[4](e)},p:Dc,i:Dc,o:Dc,d(i){i&&Fc(e),t[4](null)}}}function gu(t,e,i){let r,{clientstyling:o=""}=e,{clientstylingurl:s=""}=e,{mbsource:n}=e;return Wc((()=>()=>{})),t.$$set=t=>{"clientstyling"in t&&i(1,o=t.clientstyling),"clientstylingurl"in t&&i(2,s=t.clientstylingurl),"mbsource"in t&&i(3,n=t.mbsource)},t.$$.update=()=>{3&t.$$.dirty&&o&&r&&mu(r,o),5&t.$$.dirty&&s&&r&&pu(r,s),9&t.$$.dirty&&n&&r&&vu(r,`${n}.Style`)},[r,o,s,n,function(t){Zc[t?"unshift":"push"]((()=>{r=t,i(0,r)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class bu extends uu{constructor(t){super(),lu(this,t,gu,fu,Bc,{clientstyling:1,clientstylingurl:2,mbsource:3},_u)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),su()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),su()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),su()}}cu(bu,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Eu=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"}));if(yc.GeneralAnimationLoading_ce=Eu,yc.HtmlTag=class{constructor(t=!1){Oc(this,"is_svg",!1),Oc(this,"e"),Oc(this,"n"),Oc(this,"t"),Oc(this,"a"),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,i=null){this.e||(this.e=this.is_svg?Hc(e.nodeName):Vc(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)jc(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(Fc)}},yc.SvelteComponent=uu,yc.append=Pc,yc.append_styles=Lc,yc.attr=$c,yc.binding_callbacks=Zc,yc.component_subscribe=function(t,e,i){t.$$.on_destroy.push(Uc(e,i))},yc.create_custom_element=cu,yc.destroy_each=function(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)},yc.detach=Fc,yc.element=Vc,yc.empty=function(){return qc("")},yc.ensure_array_like=function(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)},yc.flush=su,yc.init=lu,yc.insert=jc,yc.is_function=Mc,yc.listen=function(t,e,i,r){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)},yc.noop=Dc,yc.null_to_empty=function(t){return t},yc.onMount=Wc,yc.run_all=Gc,yc.safe_not_equal=Bc,yc.setClientStyling=mu,yc.setClientStylingURL=pu,yc.setStreamStyling=vu,yc.set_custom_element_data=function(t,e,i){const r=e.toLowerCase();r in t?t[r]="boolean"==typeof t[r]&&""===i||i:e in t?t[e]="boolean"==typeof t[e]&&""===i||i:$c(t,e,i)},yc.set_data=function(t,e){t.data!==(e=""+e)&&(t.data=e)},yc.space=function(){return qc(" ")},yc.subscribe=Uc,yc.svg_element=Hc,yc.text=qc,function(t){var e=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,l=(t,e)=>{for(var i in e||(e={}))s.call(e,i)&&a(t,i,e[i]);if(o)for(var i of o(e))n.call(e,i)&&a(t,i,e[i]);return t},h=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}));Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const d=yc,c=[];function u(t,e=d.noop){let i;const r=new Set;function o(e){if(d.safe_not_equal(t,e)&&(t=e,i)){const e=!c.length;for(const e of r)e[1](),c.push(e,t);if(e){for(let t=0;t<c.length;t+=2)c[t][0](c[t+1]);c.length=0}}}function s(e){o(e(t))}return{set:o,update:s,subscribe:function(n,a=d.noop){const l=[n,a];return r.add(l),1===r.size&&(i=e(o,s)||d.noop),n(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function m(t,e,i){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return function(t,e){return{subscribe:u(t,e).subscribe}}(i,((t,i)=>{let n=!1;const a=[];let l=0,h=d.noop;const c=()=>{if(l)return;h();const o=e(r?a[0]:a,t,i);s?t(o):h=d.is_function(o)?o:d.noop},u=o.map(((t,e)=>d.subscribe(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){d.run_all(u),h(),n=!1}}))}var p=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===v}(t)}(t));var e},v="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(t,e){return!1!==e.clone&&e.isMergeableObject(t)?E(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function f(t,e,i){return t.concat(e).map((function(t){return _(t,i)}))}function g(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function b(t,e){try{return e in t}catch(t){return!1}}function E(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||f,i.isMergeableObject=i.isMergeableObject||p,i.cloneUnlessOtherwiseSpecified=_;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&g(t).forEach((function(e){r[e]=_(t[e],i)})),g(e).forEach((function(o){(function(t,e){return b(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(r[o]=b(t,o)&&i.isMergeableObject(e[o])?function(t,e){if(!e.customMerge)return E;var i=e.customMerge(t);return"function"==typeof i?i:E}(o,i)(t[o],e[o],i):_(e[o],i))})),r}(t,e,i):_(e,i)}E.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return E(t,i,e)}),{})};const y=(w=E)&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w;var w,k=function(t,e){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function x(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var S=function(){return S=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S.apply(this,arguments)};function A(t,e,i){if(i||2===arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function C(t,e){return(e&&e.strategy?e.strategy:O)(t,{cache:e&&e.cache?e.cache:B,serializer:e&&e.serializer?e.serializer:G})}function I(t,e,i,r){var o=function(t){return null==t||"number"==typeof t||"boolean"==typeof t}(r)?r:i(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function T(t,e,i){var r=Array.prototype.slice.call(arguments,3),o=i(r),s=e.get(o);return void 0===s&&(s=t.apply(this,r),e.set(o,s)),s}function R(t,e,i,r,o){return i.bind(e,t,r,o)}function O(t,e){return R(t,this,1===t.length?I:T,e.cache.create(),e.serializer)}var D,N,z,G=function(){return JSON.stringify(arguments)},M=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),B={create:function(){return new M}},U={variadic:function(t,e){return R(t,this,T,e.cache.create(),e.serializer)}},P=function(){return P=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},P.apply(this,arguments)};function L(t){return t.type===N.literal}function j(t){return t.type===N.argument}function F(t){return t.type===N.number}function V(t){return t.type===N.date}function H(t){return t.type===N.time}function q(t){return t.type===N.select}function $(t){return t.type===N.plural}function X(t){return t.type===N.pound}function K(t){return t.type===N.tag}function W(t){return!(!t||"object"!=typeof t||t.type!==z.number)}function Y(t){return!(!t||"object"!=typeof t||t.type!==z.dateTime)}!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"}(D||(D={})),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"}(N||(N={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(z||(z={}));var Z=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Q=/(?:[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 J(t){var e={};return t.replace(Q,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var tt=function(){return tt=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tt.apply(this,arguments)},et=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function it(t){return t.replace(/^(.*?)-/,"")}var rt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ot=/^(@+)?(\+|#+)?[rs]?$/g,st=/(\*)(0+)|(#+)(0+)|(0+)/g,nt=/^(0+)$/;function at(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(ot,(function(t,i,r){return"string"!=typeof r?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):"+"===r?e.minimumSignificantDigits=i.length:"#"===i[0]?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),e}function lt(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 ht(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!nt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function dt(t){return lt(t)||{}}function ct(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=it(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=tt(tt(tt({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return tt(tt({},t),dt(e))}),{}));continue;case"engineering":e=tt(tt(tt({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return tt(tt({},t),dt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(st,(function(t,i,r,o,s,n){if(i)e.minimumIntegerDigits=r.length;else{if(o&&s)throw new Error("We currently do not support maximum integer digits");if(n)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(nt.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(rt.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(rt,(function(t,i,r,o,s,n){return"*"===r?e.minimumFractionDigits=i.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:s&&n?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+n.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var s=o.options[0];"w"===s?e=tt(tt({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=tt(tt({},e),at(s)))}else if(ot.test(o.stem))e=tt(tt({},e),at(o.stem));else{var n=lt(o.stem);n&&(e=tt(tt({},e),n));var a=ht(o.stem);a&&(e=tt(tt({},e),a))}}return e}var ut={"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 mt(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(ut[i||""]||ut[r||""]||ut["".concat(r,"-001")]||ut["001"])[0]}var pt,vt=new RegExp("^".concat(Z.source,"*")),_t=new RegExp("".concat(Z.source,"*$"));function ft(t,e){return{start:t,end:e}}var gt=!!String.prototype.startsWith&&"_a".startsWith("a",1),bt=!!String.fromCodePoint,Et=!!Object.fromEntries,yt=!!String.prototype.codePointAt,wt=!!String.prototype.trimStart,kt=!!String.prototype.trimEnd,xt=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},St=!0;try{St="a"===(null===(pt=Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pt?void 0:pt[0])}catch(w){St=!1}var At,Ct=gt?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},It=bt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r="",o=t.length,s=0;o>s;){if((i=t[s++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Tt=Et?Object.fromEntries:function(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];e[o[0]]=o[1]}return e},Rt=yt?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var r,o=t.charCodeAt(e);return o<55296||o>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Ot=wt?function(t){return t.trimStart()}:function(t){return t.replace(vt,"")},Dt=kt?function(t){return t.trimEnd()}:function(t){return t.replace(_t,"")};function Nt(t,e){return new RegExp(t,e)}if(St){var zt=Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");At=function(t,e){var i;return zt.lastIndex=e,null!==(i=zt.exec(t)[1])&&void 0!==i?i:""}}else At=function(t,e){for(var i=[];;){var r=Rt(t,e);if(void 0===r||Pt(r)||Lt(r))break;i.push(r),e+=r>=65536?2:1}return It.apply(void 0,i)};var Gt,Mt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,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(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((s=this.parseArgument(t,i)).err)return s;r.push(s.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(D.UNMATCHED_CLOSING_TAG,ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Bt(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;r.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;r.push(s.val)}}else{var n=this.clonePosition();this.bump(),r.push({type:N.pound,location:ft(n,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:N.literal,value:"<".concat(r,"/>"),location:ft(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var s=o.val,n=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Bt(this.char()))return this.error(D.INVALID_TAG,ft(n,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(D.UNMATCHED_CLOSING_TAG,ft(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:N.tag,value:r,children:s,location:ft(i,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,ft(n,this.clonePosition())))}return this.error(D.UNCLOSED_TAG,ft(i,this.clonePosition()))}return this.error(D.INVALID_TAG,ft(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ut(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{var s=this.tryParseUnquoted(t,e);if(s)r+=s;else{var n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}var a=ft(i,this.clonePosition());return{val:{type:N.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return Bt(t)||47===t}(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return It.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),It(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,ft(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(D.EMPTY_ARGUMENT,ft(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(D.MALFORMED_ARGUMENT,ft(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,ft(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:N.argument,value:r,location:ft(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,ft(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(D.MALFORMED_ARGUMENT,ft(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=At(this.message,e);return this.bumpTo(e+i.length),{value:i,location:ft(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var o,s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(n){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,ft(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=Dt(f.val)).length)return this.error(D.EXPECT_ARGUMENT_STYLE,ft(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:ft(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var d=ft(r,this.clonePosition());if(l&&Ct(null==l?void 0:l.style,"::",0)){var c=Ot(l.style.slice(2));if("number"===n)return(f=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?f:{val:{type:N.number,value:i,location:d,style:f.val},err:null};if(0===c.length)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var u=c;this.locale&&(u=function(t,e){for(var i="",r=0;r<t.length;r++){var o=t.charAt(r);if("j"===o){for(var s=0;r+1<t.length&&t.charAt(r+1)===o;)s++,r++;var n=1+(1&s),a=s<2?1:3+(s>>1),l=mt(e);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;n-- >0;)i=l+i}else i+="J"===o?"H":o}return i}(c,this.locale));var m={type:z.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?J(u):{}};return{val:{type:"date"===n?N.date:N.time,value:i,location:d,style:m},err:null}}return{val:{type:"number"===n?N.number:"date"===n?N.date:N.time,value:i,location:d,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,ft(p,P({},p)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),_=0;if("select"!==n&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft(this.clonePosition(),this.clonePosition()));var f;if(this.bumpSpace(),(f=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),_=f.val}var g,b=this.tryParsePluralOrSelectOptions(t,n,e,v);if(b.err)return b;if((g=this.tryParseArgumentClose(r)).err)return g;var E=ft(r,this.clonePosition());return"select"===n?{val:{type:N.select,value:i,options:Tt(b.val),location:E},err:null}:{val:{type:N.plural,value:i,options:Tt(b.val),offset:_,pluralType:"plural"===n?"cardinal":"ordinal",location:E},err:null};default:return this.error(D.INVALID_ARGUMENT_TYPE,ft(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,ft(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ft(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(et).filter((function(t){return t.length>0})),i=[],r=0,o=e;r<o.length;r++){var s=o[r].split("/");if(0===s.length)throw new Error("Invalid number skeleton");for(var n=s[0],a=s.slice(1),l=0,h=a;l<h.length;l++)if(0===h[l].length)throw new Error("Invalid number skeleton");i.push({stem:n,options:a})}return i}(t)}catch(t){return this.error(D.INVALID_NUMBER_SKELETON,e)}return{val:{type:z.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?ct(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var o,s=!1,n=[],a=new Set,l=r.value,h=r.location;;){if(0===l.length){var d=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=ft(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===e?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ft(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;n.push([l,{value:m.val,location:ft(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===n.length?this.error("select"===e?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(D.MISSING_OTHER_CLAUSE,ft(this.clonePosition(),this.clonePosition())):{val:n,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var n=this.char();if(!(n>=48&&n<=57))break;o=!0,s=10*s+(n-48),this.bump()}var a=ft(r,this.clonePosition());return o?xt(s*=i)?{val:s,err:null}:this.error(e,a):this.error(t,a)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Rt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Ct(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Bt(t){return t>=97&&t<=122||t>=65&&t<=90}function Ut(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||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 Pt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Lt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function jt(t){t.forEach((function(t){if(delete t.location,q(t)||$(t))for(var e in t.options)delete t.options[e].location,jt(t.options[e].value);else F(t)&&W(t.style)||(V(t)||H(t))&&Y(t.style)?delete t.style.location:K(t)&&jt(t.children)}))}function Ft(t,e){void 0===e&&(e={}),e=P({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Mt(t,e).parse();if(i.err){var r=SyntaxError(D[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=e&&e.captureLocation||jt(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Gt||(Gt={}));var Vt,Ht=function(t){function e(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return x(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),qt=function(t){function e(e,i,r,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Gt.INVALID_VALUE,o)||this}return x(e,t),e}(Ht),$t=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),Gt.INVALID_VALUE,r)||this}return x(e,t),e}(Ht),Xt=function(t){function e(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),Gt.MISSING_VALUE,i)||this}return x(e,t),e}(Ht);function Kt(t){return"function"==typeof t}function Wt(t,e,i,r,o,s,n){if(1===t.length&&L(t[0]))return[{type:Vt.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(L(d))a.push({type:Vt.literal,value:d.value});else if(X(d))"number"==typeof s&&a.push({type:Vt.literal,value:i.getNumberFormat(e).format(s)});else{var c=d.value;if(!o||!(c in o))throw new Xt(c,n);var u=o[c];if(j(d))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?Vt.literal:Vt.object,value:u});else if(V(d)){var m="string"==typeof d.style?r.date[d.style]:Y(d.style)?d.style.parsedOptions:void 0;a.push({type:Vt.literal,value:i.getDateTimeFormat(e,m).format(u)})}else if(H(d))m="string"==typeof d.style?r.time[d.style]:Y(d.style)?d.style.parsedOptions:r.time.medium,a.push({type:Vt.literal,value:i.getDateTimeFormat(e,m).format(u)});else if(F(d))(m="string"==typeof d.style?r.number[d.style]:W(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:Vt.literal,value:i.getNumberFormat(e,m).format(u)});else{if(K(d)){var p=d.children,v=d.value,_=o[v];if(!Kt(_))throw new $t(v,"function",n);var f=_(Wt(p,e,i,r,o,s).map((function(t){return t.value})));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map((function(t){return{type:"string"==typeof t?Vt.literal:Vt.object,value:t}})))}if(q(d)){if(!(g=d.options[u]||d.options.other))throw new qt(d.value,u,Object.keys(d.options),n);a.push.apply(a,Wt(g.value,e,i,r,o))}else if($(d)){var g;if(!(g=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new Ht('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gt.MISSING_INTL_API,n);var b=i.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));g=d.options[b]||d.options.other}if(!g)throw new qt(d.value,u,Object.keys(d.options),n);a.push.apply(a,Wt(g.value,e,i,r,o,u-(d.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var i=t[t.length-1];return i&&i.type===Vt.literal&&e.type===Vt.literal?i.value+=e.value:t.push(e),t}),[])}(a)}function Yt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Vt||(Vt={}));var Zt=function(){function t(e,i,r,o){void 0===i&&(i=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);if(1===e.length)return e[0].value;var i=e.reduce((function(t,e){return t.length&&e.type===Vt.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(t){return Wt(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=s.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(i[r[o]]=t[r[o]])}return i}(o||{},["formatters"]);this.ast=t.__parse(e,S(S({},n),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(t,e){return e?Object.keys(t).reduce((function(i,r){return i[r]=function(t,e){return e?S(S(S({},t||{}),e||{}),Object.keys(t).reduce((function(i,r){return i[r]=S(S({},t[r]),e[r]||{}),i}),{})):t}(t[r],e[r]),i}),S({},t)):t}(t.formats,r),this.formatters=o&&o.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:C((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,A([void 0],e,!1)))}),{cache:Yt(t.number),strategy:U.variadic}),getDateTimeFormat:C((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,A([void 0],e,!1)))}),{cache:Yt(t.dateTime),strategy:U.variadic}),getPluralRules:C((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,A([void 0],e,!1)))}),{cache:Yt(t.pluralRules),strategy:U.variadic})}}(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(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=Ft,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}();const Qt={},Jt=(t,e,i)=>i&&(e in Qt||(Qt[e]={}),t in Qt[e]||(Qt[e][t]=i),i),te=(t,e)=>{if(null==e)return;if(e in Qt&&t in Qt[e])return Qt[e][t];const i=xe(e);for(let r=0;r<i.length;r++){const o=oe(i[r],t);if(o)return Jt(t,e,o)}};let ee;const ie=u({});function re(t){return t in ee}function oe(t,e){if(!re(t))return null;const i=function(t){return ee[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const i=e.split(".");let r=t;for(let t=0;t<i.length;t++)if("object"==typeof r){if(t>0){const e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}(i,e)}function se(t,...e){delete Qt[t],ie.update((i=>(i[t]=y.all([i[t]||{},...e]),i)))}m([ie],(([t])=>Object.keys(t))),ie.subscribe((t=>ee=t));const ne={};function ae(t){return ne[t]}function le(t){return null!=t&&xe(t).some((t=>{var e;return null==(e=ae(t))?void 0:e.size}))}const he={};function de(t){if(!le(t))return t in he?he[t]:Promise.resolve();const e=function(t){return xe(t).map((t=>{const e=ae(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return he[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){ne[t].delete(e),0===ne[t].size&&delete ne[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>se(t,...e)))}(t,e)))).then((()=>{if(le(t))return de(t);delete he[t]})),he[t]}const ce={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ue(){return ce}const me=u(!1);var pe=Object.defineProperty,ve=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ee=(t,e,i)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let ye;const we=u(null);function ke(t){return t.split("-").map(((t,e,i)=>i.slice(0,e+1).join("-"))).reverse()}function xe(t,e=ue().fallbackLocale){const i=ke(t);return e?[...new Set([...i,...ke(e)])]:i}function Se(){return null!=ye?ye:void 0}we.subscribe((t=>{ye=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ae=((t,e)=>ve(t,_e(e)))(((t,e)=>{for(var i in e||(e={}))ge.call(e,i)&&Ee(t,i,e[i]);if(fe)for(var i of fe(e))be.call(e,i)&&Ee(t,i,e[i]);return t})({},we),{set:t=>{if(t&&function(t){if(null==t)return;const e=xe(t);for(let t=0;t<e.length;t++){const i=e[t];if(re(i))return i}}(t)&&le(t)){const{loadingDelay:e}=ue();let i;return"undefined"!=typeof window&&null!=Se()&&e?i=window.setTimeout((()=>me.set(!0)),e):me.set(!0),de(t).then((()=>{we.set(t)})).finally((()=>{clearTimeout(i),me.set(!1)}))}return we.set(t)}}),Ce=t=>{const e=Object.create(null);return i=>{const r=JSON.stringify(i);return r in e?e[r]:e[r]=t(i)}};var Ie=Object.defineProperty,Te=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,De=(t,e,i)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ne=(t,e)=>{for(var i in e||(e={}))Re.call(e,i)&&De(t,i,e[i]);if(Te)for(var i of Te(e))Oe.call(e,i)&&De(t,i,e[i]);return t},ze=(t,e)=>{var i={};for(var r in t)Re.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&Te)for(var r of Te(t))e.indexOf(r)<0&&Oe.call(t,r)&&(i[r]=t[r]);return i};const Ge=(t,e)=>{const{formats:i}=ue();if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Me=Ce((t=>{var e=t,{locale:i,format:r}=e,o=ze(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Ge("number",r)),new Intl.NumberFormat(i,o)})),Be=Ce((t=>{var e=t,{locale:i,format:r}=e,o=ze(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Ge("date",r):0===Object.keys(o).length&&(o=Ge("date","short")),new Intl.DateTimeFormat(i,o)})),Ue=Ce((t=>{var e=t,{locale:i,format:r}=e,o=ze(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Ge("time",r):0===Object.keys(o).length&&(o=Ge("time","short")),new Intl.DateTimeFormat(i,o)})),Pe=Ce(((t,e=Se())=>new Zt(t,e,ue().formats,{ignoreTag:ue().ignoreTag}))),Le=(t,e={})=>{var i,r,o,s;let n=e;"object"==typeof t&&(n=t,t=n.id);const{values:a,locale:l=Se(),default:h}=n;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=te(t,l);if(d){if("string"!=typeof d)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d}else d=null!=(s=null!=(o=null==(r=(i=ue()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:t,defaultValue:h}))?o:h)?s:t;if(!a)return d;let c=d;try{c=Pe(d,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c},je=(t,e)=>((t={})=>{var e=t,{locale:i=Se()}=e,r=ze(e,["locale"]);return Ue(Ne({locale:i},r))})(e).format(t),Fe=(t,e)=>((t={})=>{var e=t,{locale:i=Se()}=e,r=ze(e,["locale"]);return Be(Ne({locale:i},r))})(e).format(t),Ve=(t,e)=>((t={})=>{var e=t,{locale:i=Se()}=e,r=ze(e,["locale"]);return Me(Ne({locale:i},r))})(e).format(t),He=(t,e=Se())=>te(t,e),qe=m([Ae,ie],(()=>Le));function $e(t,e){se(t,e)}m([Ae],(()=>je)),m([Ae],(()=>Fe)),m([Ae],(()=>Ve)),m([Ae,ie],(()=>He));const Xe={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};var Ke;function We(){let t,e;return{c(){t=d.svg_element("svg"),e=d.svg_element("path"),d.attr(e,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),d.attr(t,"xmlns","http://www.w3.org/2000/svg"),d.attr(t,"viewBox","0 0 512 512")},m(i,r){d.insert(i,t,r),d.append(t,e)},p:d.noop,i:d.noop,o:d.noop,d(e){e&&d.detach(t)}}}function Ye(t){d.append_styles(t,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;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);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}')}function Ze(t,e,i){const r=t.slice();return r[64]=e[i],r}function Qe(t,e,i){const r=t.slice();return r[61]=e[i],r[62]=e,r[63]=i,r}function Je(t,e,i){const r=t.slice();return r[64]=e[i],r}function ti(t){let e,i,r=d.ensure_array_like(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=oi(Ze(t,r,e));return{c(){e=d.element("div"),i=d.element("form");for(let t=0;t<o.length;t+=1)o[t].c();d.attr(i,"class","checkbox svelte-etk3ty"),d.attr(e,"class","legacyStyle")},m(r,s){d.insert(r,e,s),d.append(e,i);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(i,null);t[31](i)},p(t,e){if(590336&e[0]){let s;for(r=d.ensure_array_like(t[9]),s=0;s<r.length;s+=1){const n=Ze(t,r,s);o[s]?o[s].p(n,e):(o[s]=oi(n),o[s].c(),o[s].m(i,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=r.length}},d(i){i&&d.detach(e),d.destroy_each(o,i),t[31](null)}}}function ei(t){let e,i,r,o,s,n,a,l,h=t[16]("title")||t[16]("description"),c=(t[16]("saveButtonContent")||"Save Consents")+"",u=h&&si(t),m=d.ensure_array_like(t[8]),p=[];for(let e=0;e<m.length;e+=1)p[e]=ci(Qe(t,m,e));let v=t[6]&&ui(t);return{c(){u&&u.c(),e=d.space();for(let t=0;t<p.length;t+=1)p[t].c();i=d.space(),r=d.element("button"),s=d.space(),v&&v.c(),n=d.empty(),d.attr(r,"class","SaveConsentsButton svelte-etk3ty"),r.disabled=o=!t[14]},m(o,h){u&&u.m(o,h),d.insert(o,e,h);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(o,h);d.insert(o,i,h),d.insert(o,r,h),r.innerHTML=c,d.insert(o,s,h),v&&v.m(o,h),d.insert(o,n,h),a||(l=d.listen(r,"click",t[17]),a=!0)},p(t,s){if(65536&s[0]&&(h=t[16]("title")||t[16]("description")),h?u?u.p(t,s):(u=si(t),u.c(),u.m(e.parentNode,e)):u&&(u.d(1),u=null),867088&s[0]){let e;for(m=d.ensure_array_like(t[8]),e=0;e<m.length;e+=1){const r=Qe(t,m,e);p[e]?p[e].p(r,s):(p[e]=ci(r),p[e].c(),p[e].m(i.parentNode,i))}for(;e<p.length;e+=1)p[e].d(1);p.length=m.length}65536&s[0]&&c!==(c=(t[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=c),16384&s[0]&&o!==(o=!t[14])&&(r.disabled=o),t[6]?v?v.p(t,s):(v=ui(t),v.c(),v.m(n.parentNode,n)):v&&(v.d(1),v=null)},d(t){t&&(d.detach(e),d.detach(i),d.detach(r),d.detach(s),d.detach(n)),u&&u.d(t),d.destroy_each(p,t),v&&v.d(t),a=!1,l()}}}function ii(t){let e,i,r;return{c(){e=d.element("div"),i=d.element("strong"),r=d.text(t[7]),d.attr(i,"class","ErrorMessage svelte-etk3ty"),d.attr(e,"class","ContainerCenter svelte-etk3ty")},m(t,o){d.insert(t,e,o),d.append(e,i),d.append(i,r)},p(t,e){128&e[0]&&d.set_data(r,t[7])},d(t){t&&d.detach(e)}}}function ri(t){let e;return{c(){e=d.element("general-animation-loading"),d.set_custom_element_data(e,"clientstyling",t[1]),d.set_custom_element_data(e,"clientstylingurl",t[2]),d.set_custom_element_data(e,"mbsource",t[3])},m(t,i){d.insert(t,e,i)},p(t,i){2&i[0]&&d.set_custom_element_data(e,"clientstyling",t[1]),4&i[0]&&d.set_custom_element_data(e,"clientstylingurl",t[2]),8&i[0]&&d.set_custom_element_data(e,"mbsource",t[3])},d(t){t&&d.detach(e)}}}function oi(t){let e,i,r,o,s,n,a,l,h,c,u,m,p,v,_,f,g,b=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"",E=t[64].mustAccept?" *":"";function y(...e){return t[30](t[64],...e)}return{c(){e=d.element("div"),i=d.element("input"),s=d.space(),n=d.element("label"),a=d.element("div"),l=new d.HtmlTag(!1),h=d.text(E),u=d.space(),m=d.element("small"),v=d.space(),d.attr(i,"class","checkbox__input svelte-etk3ty"),d.attr(i,"type","checkbox"),i.checked=r="1"===t[64].status,d.attr(i,"id",o=`${t[64].tagCode}__input`),l.a=h,d.attr(a,"class","checkbox__label-text svelte-etk3ty"),d.attr(n,"class","checkbox__label svelte-etk3ty"),d.attr(n,"for",c=`${t[64].tagCode}__input`),d.attr(m,"class","checkbox__error-message svelte-etk3ty"),d.attr(m,"id",p="checkBoxError__"+t[64].tagCode),d.attr(e,"class",_="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")},m(t,r){d.insert(t,e,r),d.append(e,i),d.append(e,s),d.append(e,n),d.append(n,a),l.m(b,a),d.append(a,h),d.append(e,u),d.append(e,m),d.append(e,v),f||(g=d.listen(i,"input",y),f=!0)},p(s,a){t=s,512&a[0]&&r!==(r="1"===t[64].status)&&(i.checked=r),512&a[0]&&o!==(o=`${t[64].tagCode}__input`)&&d.attr(i,"id",o),66048&a[0]&&b!==(b=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"")&&l.p(b),512&a[0]&&E!==(E=t[64].mustAccept?" *":"")&&d.set_data(h,E),512&a[0]&&c!==(c=`${t[64].tagCode}__input`)&&d.attr(n,"for",c),512&a[0]&&p!==(p="checkBoxError__"+t[64].tagCode)&&d.attr(m,"id",p),512&a[0]&&_!==(_="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")&&d.attr(e,"class",_)},d(t){t&&d.detach(e),f=!1,g()}}}function si(t){let e,i,r=t[16]("title"),o=t[16]("description"),s=r&&ni(t),n=o&&ai(t);return{c(){e=d.element("div"),s&&s.c(),i=d.space(),n&&n.c(),d.attr(e,"class","PlayerConsentsHeader svelte-etk3ty")},m(t,r){d.insert(t,e,r),s&&s.m(e,null),d.append(e,i),n&&n.m(e,null)},p(t,a){65536&a[0]&&(r=t[16]("title")),r?s?s.p(t,a):(s=ni(t),s.c(),s.m(e,i)):s&&(s.d(1),s=null),65536&a[0]&&(o=t[16]("description")),o?n?n.p(t,a):(n=ai(t),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(t){t&&d.detach(e),s&&s.d(),n&&n.d()}}}function ni(t){let e,i,r=t[16]("title")+"";return{c(){e=d.element("h2"),i=d.text(r),d.attr(e,"class","PlayerConsentsTitle")},m(t,r){d.insert(t,e,r),d.append(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("title")+"")&&d.set_data(i,r)},d(t){t&&d.detach(e)}}}function ai(t){let e,i,r=t[16]("description")+"";return{c(){e=d.element("p"),i=d.text(r),d.attr(e,"class","PlayerConsentsDescription")},m(t,r){d.insert(t,e,r),d.append(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("description")+"")&&d.set_data(i,r)},d(t){t&&d.detach(e)}}}function li(){let t;return{c(){t=d.element("sup"),t.textContent="*",d.attr(t,"class","ConsentRequired svelte-etk3ty")},m(e,i){d.insert(e,t,i)},d(e){e&&d.detach(t)}}}function hi(t){let e,i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"";return{c(){e=d.element("p"),d.attr(e,"class","ConsentDescription svelte-etk3ty")},m(t,r){d.insert(t,e,r),e.innerHTML=i},p(t,r){66304&r[0]&&i!==(i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"")&&(e.innerHTML=i)},d(t){t&&d.detach(e)}}}function di(t){let e,i,r,o,s,n,a,l,h,c,u,m,p,v,_,f=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"",g=!0===t[64].mustAccept&&li(),b="true"===t[4]&&hi(t);function E(...e){return t[29](t[64],...e)}return{c(){e=d.element("div"),i=d.element("div"),r=d.element("h4"),o=new d.HtmlTag(!1),s=d.space(),g&&g.c(),n=d.space(),b&&b.c(),a=d.space(),l=d.element("label"),h=d.element("input"),m=d.space(),p=d.element("span"),o.a=s,d.attr(r,"class","ConsentName svelte-etk3ty"),d.attr(i,"class","ConsentContent"),d.attr(h,"type","checkbox"),h.disabled=c=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode],h.checked=u=t[13][t[64].tagCode],d.attr(h,"class","svelte-etk3ty"),d.attr(p,"class","Slider Round svelte-etk3ty"),d.attr(l,"class","ToggleSwitch svelte-etk3ty"),d.attr(e,"class","ConsentItem svelte-etk3ty")},m(t,c){d.insert(t,e,c),d.append(e,i),d.append(i,r),o.m(f,r),d.append(r,s),g&&g.m(r,null),d.append(i,n),b&&b.m(i,null),d.append(e,a),d.append(e,l),d.append(l,h),d.append(l,m),d.append(l,p),v||(_=d.listen(h,"input",E),v=!0)},p(e,s){t=e,66304&s[0]&&f!==(f=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"")&&o.p(f),!0===t[64].mustAccept?g||(g=li(),g.c(),g.m(r,null)):g&&(g.d(1),g=null),"true"===t[4]?b?b.p(t,s):(b=hi(t),b.c(),b.m(i,null)):b&&(b.d(1),b=null),4864&s[0]&&c!==(c=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode])&&(h.disabled=c),8960&s[0]&&u!==(u=t[13][t[64].tagCode])&&(h.checked=u)},d(t){t&&d.detach(e),g&&g.d(),b&&b.d(),v=!1,_()}}}function ci(t){let e,i,r,o,s,n,a,l,h,c,u,m,p=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"";function v(){t[26].call(n,t[61])}function _(){return t[27](t[61])}function f(...e){return t[28](t[61],...e)}let g=d.ensure_array_like(t[9].filter(f)),b=[];for(let e=0;e<g.length;e+=1)b[e]=di(Je(t,g,e));return{c(){e=d.element("div"),i=d.element("div"),r=d.element("h3"),o=d.space(),s=d.element("label"),n=d.element("input"),a=d.space(),l=d.element("span"),h=d.space(),c=d.element("div");for(let t=0;t<b.length;t+=1)b[t].c();d.attr(n,"type","checkbox"),d.attr(n,"class","svelte-etk3ty"),d.attr(l,"class","Slider Round svelte-etk3ty"),d.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),d.attr(i,"class","AccordionHeader svelte-etk3ty"),d.attr(c,"class","AccordionContent svelte-etk3ty"),d.attr(e,"class","AccordionItem svelte-etk3ty")},m(f,g){d.insert(f,e,g),d.append(e,i),d.append(i,r),r.innerHTML=p,d.append(i,o),d.append(i,s),d.append(s,n),n.checked=t[11][t[61].categoryTagCode],d.append(s,a),d.append(s,l),d.append(e,h),d.append(e,c);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(c,null);u||(m=[d.listen(n,"change",v),d.listen(n,"change",_)],u=!0)},p(e,i){if(t=e,65792&i[0]&&p!==(p=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"")&&(r.innerHTML=p),2304&i[0]&&(n.checked=t[11][t[61].categoryTagCode]),602896&i[0]){let e;for(g=d.ensure_array_like(t[9].filter(f)),e=0;e<g.length;e+=1){const r=Je(t,g,e);b[e]?b[e].p(r,i):(b[e]=di(r),b[e].c(),b[e].m(c,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=g.length}},d(t){t&&d.detach(e),d.destroy_each(b,t),u=!1,d.run_all(m)}}}function ui(t){let e,i,r,o,s;return{c(){e=d.element("div"),i=d.element("circle-exclamation-icon"),r=d.space(),o=d.element("strong"),s=d.text(t[6]),d.set_custom_element_data(i,"class","svelte-etk3ty"),d.attr(o,"class","ErrorMessage svelte-etk3ty"),d.attr(e,"class","ConsentErrorContainer svelte-etk3ty")},m(t,n){d.insert(t,e,n),d.append(e,i),d.append(e,r),d.append(e,o),d.append(o,s)},p(t,e){64&e[0]&&d.set_data(s,t[6])},d(t){t&&d.detach(e)}}}function mi(t){let e,i;function r(t){return t[10]?ri:t[7]?ii:t[0]?ei:t[0]?void 0:ti}let o=r(t),s=o&&o(t);return{c(){e=d.element("div"),i=d.element("div"),s&&s.c(),d.attr(i,"class","ConsentsContainer svelte-etk3ty"),d.attr(e,"class",d.null_to_empty("")+" svelte-etk3ty")},m(r,o){d.insert(r,e,o),d.append(e,i),s&&s.m(i,null),t[32](i)},p(t,e){o===(o=r(t))&&s?s.p(t,e):(s&&s.d(1),s=o&&o(t),s&&(s.c(),s.m(i,null)))},i:d.noop,o:d.noop,d(i){i&&d.detach(e),s&&s.d(),t[32](null)}}}function pi(t,e,o){let s;d.component_subscribe(t,qe,(t=>o(16,s=t)));let n,a,c,{session:u=""}=e,{userid:m=""}=e,{endpoint:p=""}=e,{clientstyling:v=""}=e,{clientstylingurl:_=""}=e,{mbsource:f}=e,{lang:g="en"}=e,{displayconsentdescription:b=""}=e,{translationurl:E=""}=e,{modalconsents:y="false"}=e,w=!1,k=!1,x="",S="",A="",C="",I=[],T=[],R=[],O=!0,D=!0,N={},z={},G={},M={},B={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},U=!1;Object.keys(Xe).forEach((t=>{$e(t,Xe[t])}));const P=(t,e=!1)=>{e?o(7,C=t):($(),o(6,A=t))},L=(t,e,i,r=!1)=>h(this,null,(function*(){try{const r=yield fetch(t,i);if(!r.ok)throw new Error(s(e));const o=yield r.json();return k?o:o.filter((t=>!0===t.showOnRegister))}catch(t){throw P(t instanceof TypeError?s(e):t.message,r),t}})),j=()=>h(this,null,(function*(){try{let t=[],e=[];if(k?[t,e]=yield F():t=yield F(),o(10,O=!1),T=[...t],o(8,I=V(T).sort(((t,e)=>t.categoryTagCode.localeCompare(e.categoryTagCode)))),o(11,N=H(I)),z=l({},N),o(9,R=[...e]),T.forEach((t=>{let e=R.find((e=>e.tagCode===t.tagCode));e||(e=((t,e)=>i(t,r(e)))(l({},t),{status:B.denied.value}),R.push(e)),e.description=t.description,e.orderNumber=t.orderNumber})),"true"===y){if(o(9,R=R.filter((t=>t.status===B.expired.value))),0!==R.length)return;P(s("wrongModalConfig"),!0)}q()}catch(t){throw o(10,O=!1),P(t instanceof TypeError?s("invalidUrl"):t.message,!0),t}})),F=()=>h(this,null,(function*(){const t=new URL(`${p}/api/v1/gm/consents`);if(t.searchParams.append("Status","Active"),!k)return yield L(t.href,"fetchConsentsError",{method:"GET"},!0);const e=new URL(`${p}/api/v1/gm/user-consents/${S}`);return yield Promise.all([L(t.href,"fetchConsentsError",{method:"GET"},!0),L(e.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":x,"Content-Type":"application/json"}})])})),V=t=>{const e=new Map;return t.forEach((t=>{e.has(t.category.categoryTagCode)||e.set(t.category.categoryTagCode,t.category)})),Array.from(e.values())},H=t=>{const e=localStorage.getItem("categoryToggle"+S);if(null===e){const e=t.reduce(((t,e)=>(t[e.categoryTagCode]=!1,t)),{});return localStorage.setItem("categoryToggle"+S,JSON.stringify(e)),e}return JSON.parse(e)},q=()=>{R.forEach((t=>{o(12,G[t.tagCode]=t.status===B.accepted.value,G)})),o(13,M=l({},G))},$=()=>{o(13,M=l({},G)),o(11,N=l({},z))},X=t=>{R.filter((e=>e.category.categoryTagCode===t)).forEach((e=>{e.status=e.status===B.denied.value?B.accepted.value:B.denied.value,o(13,M[e.tagCode]=N[t]||!1,M)})),o(14,a=Z())},K=(t,e,i)=>{const r=R.find((t=>t.id===i)),n=e?"value":"key";let a;if(!e&&r.mustAccept){const t=Array.from(c.children);for(const e of t)if(a=Array.from(e.children).find((t=>t.getAttribute("id")===`checkBoxError__${r.tagCode}`)),a)break}if(r.status===B.accepted[n]?(r.status=B.denied[n],a&&(a.innerHTML=s("requiredError"))):(r.status=B.accepted[n],a&&(a.innerHTML="")),e){o(13,M[r.tagCode]=!M[r.tagCode],M);const t=R.filter((t=>t.category.categoryTagCode===e.categoryTagCode)).every((t=>t.status!==B.denied.value));o(11,N[e.categoryTagCode]=t,N)}W()},W=(t=>{let e;return function(...i){const r=this;clearTimeout(e),e=setTimeout((()=>{t.apply(r,i)}),500)}})((()=>Y())),Y=()=>{o(14,a=Z()),u||(window.postMessage({type:"isConsentsValid",isValid:a}),localStorage.setItem("playerConsents",JSON.stringify(R)))},Z=()=>0===R.filter((t=>R.some((e=>t.tagCode===e.tagCode&&e.mustAccept&&(t.status===B.denied.key||t.status===B.denied.value))))).length,Q=t=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)};return d.onMount((()=>{setTimeout((()=>{o(25,w=!0)}),50);const t=t=>(t=>{t.data&&"setUpPlayerConsents"!==t.data.type||(t=>{const e=new URL(`${p}/api/v2/gm/legislation/consents`),i={method:"POST",body:JSON.stringify({playerConsents:R,registrationId:t}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,i).then((t=>{t.ok||(U=!0)})).catch((t=>(console.error(t),Q(t)))).finally((()=>{o(10,O=!1)}))})(t.data.registerid)})(t);return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}})),t.$$set=t=>{"session"in t&&o(0,u=t.session),"userid"in t&&o(20,m=t.userid),"endpoint"in t&&o(21,p=t.endpoint),"clientstyling"in t&&o(1,v=t.clientstyling),"clientstylingurl"in t&&o(2,_=t.clientstylingurl),"mbsource"in t&&o(3,f=t.mbsource),"lang"in t&&o(22,g=t.lang),"displayconsentdescription"in t&&o(4,b=t.displayconsentdescription),"translationurl"in t&&o(23,E=t.translationurl),"modalconsents"in t&&o(24,y=t.modalconsents)},t.$$.update=()=>{33554433&t.$$.dirty[0]&&w&&u&&(u&&(x=u,k=!0),m&&(S=m),j()),1&t.$$.dirty[0]&&(u||(()=>{U=!1;const t=new URL(`${p}/api/v2/gm/legislation/consents`);fetch(t.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.ok?t.json():(U=!0,t.json().then((t=>(console.error(t),Q(t))))))).then((t=>{if(!U){if(T=t,localStorage.getItem("playerConsents")){try{o(9,R=JSON.parse(localStorage.getItem("playerConsents")))}catch(t){return console.error(t),Q(t)}return}return o(9,R=T.map((t=>({id:t.id,status:B.denied.key,friendlyName:t.friendlyName,tagCode:t.tagCode,selected:null,mustAccept:t.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(R)),R}})).catch((t=>(console.error(t),Q(t)))).finally((()=>{o(10,O=!1)}))})()),34&t.$$.dirty[0]&&v&&n&&d.setClientStyling(n,v),36&t.$$.dirty[0]&&_&&n&&d.setClientStylingURL(n,_),40&t.$$.dirty[0]&&n&&d.setStreamStyling(n,`${f}.Style`),4194304&t.$$.dirty[0]&&g&&function(t){Ae.set(t)}(g),8388608&t.$$.dirty[0]&&E&&(()=>{let t=new URL(E);fetch(t.href).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{$e(e,t[e])}))})).catch((t=>{console.log(t)}))})()},[u,v,_,f,b,n,A,C,I,R,O,N,G,M,a,c,s,()=>h(this,null,(function*(){if(!D)return;D=!1;const t=[],e=[];if(Object.keys(M).forEach((i=>{const r=R.find((t=>t.tagCode===i));M[i]!==G[i]&&(r?t.push({tagCode:i,status:M[i]?B.accepted.value:B.denied.value}):e.push({tagCode:i,status:M[i]?B.accepted.value:B.denied.value}))})),!k)return localStorage.setItem("categoryToggle"+S,JSON.stringify(N)),z=l({},N),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(e)},window.location.href),void(D=!0);const i=new URL(`${p}/api/v1/gm/user-consents/${S}`);try{const r=yield Promise.allSettled([e.length>0&&L(i.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})}),t.length>0&&L(i.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:t})})]);r.forEach(((i,r)=>{if("rejected"===i.status||!1===i.value.ok){const i=r<e.length?e[r]:t[r-e.length];o(13,M[i.tagCode]=G[i.tagCode],M)}})),r.every((t=>"fulfilled"===t.status))&&(localStorage.setItem("categoryToggle"+S,JSON.stringify(N)),z=l({},N),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),o(12,G=l({},M)))}catch(t){P(t instanceof TypeError?s("saveChangesError"):t.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{D=!0,o(14,a=!1)}})),X,K,m,p,g,E,y,w,function(t){N[t.categoryTagCode]=this.checked,o(11,N)},t=>X(t.categoryTagCode),(t,e)=>e.category.categoryTagCode===t.categoryTagCode,t=>K(0,t.category,t.id),t=>K(0,null,t.id),function(t){d.binding_callbacks[t?"unshift":"push"]((()=>{c=t,o(15,c)}))},function(t){d.binding_callbacks[t?"unshift":"push"]((()=>{n=t,o(5,n)}))}]}"undefined"!=typeof window&&(customElements.define=(Ke=customElements.define,function(...t){try{return Ke.apply(this,t)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}),Promise.resolve().then((()=>yc)).then((t=>t.GeneralAnimationLoading_ce)).then((({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)}))),customElements.define("circle-exclamation-icon",d.create_custom_element(class extends d.SvelteComponent{constructor(t){super(),d.init(this,t,null,We,d.safe_not_equal,{})}},{},[],[],!0));class vi extends d.SvelteComponent{constructor(t){super(),d.init(this,t,pi,mi,d.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},Ye,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),d.flush()}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),d.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),d.flush()}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),d.flush()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),d.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),d.flush()}}d.create_custom_element(vi,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0),t.default=vi}(Ec),"undefined"!=typeof window){customElements.define=function(t){return function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}}(customElements.define),Promise.resolve().then((()=>Ec)).then((({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element)}))}const yu=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.validationChange=e(this,"validationChange",7),this.isSelectingAddress=!1,this.lastPostalCode=null,this.pinAttemptsExceeded=!1,this.documentIdNineDigits=!1,this.selectedCountry="",this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.lastStep="",this.emitValue=!1,this.form=null,this.errorCode="",this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registerCredentialsEvent=null,this.twofaDestination="",this.postalcodelength=5,this.registrationStepsState={regId:null},this.getIgnoreCountry=t=>"PostalCode"===t.name&&this.haspostalcodelookup&&!this.listOfInputs.some((t=>"CountryCode"===t.name)),this.getStepClass=t=>this.currentStep===t?"bullet active":this.currentStep>t?"bullet checked":"bullet",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.handleInitialClick=t=>{this.isInitalInteraction&&(bc("register_start",{field:t.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.haspostalcodelookup=!1,this.ignorebtag=!1,this.enableSouthAfricanMode=!0,this.errorMessage="",this.isFormValid=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=!1,this.registrationStep="",this.forms={},this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0,this.addresses=[],this.addressUpdateKey=0,this.currentStep=1}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href);const t=Number(this.registrationStep.replace("Step",""));this.currentStep=t}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((t=>t.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(t){this.listOfInputValidity.find((e=>e.name==t.detail.name)).isValid=t.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(t){var e,i,r,o;this.listOfInputValues.find((e=>{e.name==t.detail.name&&(e.value=t.detail.value,e.type=t.detail.type||null)}));const{name:s,value:n}=t.detail;if(s===uc){let e=t.detail.value;"identitycard"===(e||"").replace(_c,"").toLowerCase()&&(e=pc),window.documentTypeValue=e;const i=this.listOfInputValues.find((t=>t.name===cc));i&&(i.value="");const r=this.listOfInputValidity.find((t=>t.name===cc));return r&&(r.isValid=!1),window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""})),void window.dispatchEvent(new CustomEvent("documentNumberResetValidation"))}const a=window.documentTypeValue;if(s===cc&&a===mc)if(8===n.length||9===n.length){const t=(t=>{if(!t)return null;const e=t.slice(0,6),i=parseInt(e.slice(0,2),10),r=e.slice(2,4),o=e.slice(4,6),s=$e(`${i>(new Date).getFullYear()%100?1900+i:2e3+i}${r}${o}`,"yyyyMMdd",new Date);return p(s)?at(s,"yyyy-MM-dd"):null})(n);window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:t||""})),this.documentIdNineDigits=!0}else this.documentIdNineDigits&&window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:""})),this.documentIdNineDigits=!1;if(s===vc){const o=null!==(i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value)&&void 0!==i?i:{};let s="string"==typeof o.phone?o.phone:"";s.startsWith("0")&&(s=s.slice(1));const n=this.listOfInputValues.find((t=>t.name===vc));n&&(n.value={prefix:null!==(r=o.prefix)&&void 0!==r?r:"",phone:s})}if(this.haspostalcodelookup){const{name:e,value:i}=t.detail;if("CountryCode"===e&&(this.selectedCountry=i,"GB"===i&&(this.selectedCountry="UK"),this.resetAllAddressFields(),window.dispatchEvent(new CustomEvent("countryCodeUpdated",{detail:{name:e,value:this.selectedCountry}}))),"PostalCode"===e)if(this.listOfInputs.some((t=>"CountryCode"===t.name))||(this.selectedCountry="UK"),!this.isSelectingAddress&&this.addresses.length>0&&i!==this.lastPostalCode&&(this.addresses=[]),i.length>=this.postalcodelength){if(this.isSelectingAddress)return;if(!this.lastPostalCode||this.lastPostalCode!==i||0===this.addresses.length){const t=this.selectedCountry||(null===(o=this.listOfInputValues.find((t=>"CountryCode"===t.name)))||void 0===o?void 0:o.value)||"";"GB"!==this.selectedCountry&&"UK"!==this.selectedCountry||(this.addrDebounce&&clearTimeout(this.addrDebounce),this.addrDebounce=setTimeout((()=>{this.fetchAddresses(t,i)}),500)),this.lastPostalCode=i}}else i.length<this.postalcodelength&&(this.addresses=[],this.lastPostalCode=null)}this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(t.detail.name,t.detail.value)}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;this.listOfInputValues=this.listOfInputValues.map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{value:i||""}):"address2"===t.name?Object.assign(Object.assign({},t),{value:r||""}):"City"===t.name?Object.assign(Object.assign({},t),{value:e||""}):t)),this.forms[this.registrationStep]&&(this.forms[this.registrationStep]=this.forms[this.registrationStep].map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{defaultValue:i}):"address2"===t.name?Object.assign(Object.assign({},t),{defaultValue:r}):"City"===t.name?Object.assign(Object.assign({},t),{defaultValue:e}):t))),this.addressUpdateKey=Date.now(),this.forms=Object.assign({},this.forms),this.stepsStateMachine({event:"set",type:"values"}),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.isSelectingAddress=!1}handleCountryCodeUpdateGlobal(t){const{name:e}=t.detail;if("CountryCode"===e){const t=localStorage.getItem("registrationStepsState");if(t){const e=JSON.parse(t);Object.keys(e).forEach((t=>{e[t]&&e[t].registerUserData&&["address1","address2","City","PostalCode"].forEach((i=>{e[t].registerUserData[i]&&(e[t].registerUserData[i].value="")}))})),localStorage.setItem("registrationStepsState",JSON.stringify(e))}}}handleRequestTwofa(){if(!this.twofaDestination)return;const t=new URL(`${this.endpoint}/api/v1/gm/legislation/twoFaCode/`),e=new Headers({"Content-Type":"application/problem+json; charset=utf-8"}),i=JSON.stringify({channel:"Sms",destination:this.twofaDestination});fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>{t.ok||t.json().then((t=>{var e;const i=null===(e=t.thirdPartyResponse)||void 0===e?void 0:e.errorCode;this.errorMessage=gc(i,this.language)||gc("requestTwofaError",this.language)}))})).catch((t=>console.log(t)))}messageHandler(t){t.data&&"isConsentsValid"===t.data.type&&(this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=t.data.isValid,this.isConsentValid=t.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}handleBirthDateUpdated(t){var e;const i=t.detail.birthDate;if((null===(e=this.listOfInputValues.find((t=>t.name===uc)))||void 0===e?void 0:e.value)!==mc)return;const r=this.listOfInputValues.find((t=>t.name===cc));if(!i)return r.value="",void window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""}));const o=i.replace(fc,"").slice(2);r.value=r.value&&r.value.length>=6?o+r.value.slice(6):o,window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:r.value}))}async componentWillLoad(){await customElements.whenDefined("general-input");const t=await this.getRegisterConfig();this.formatConfig(t),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap(),this.isLoading=!1}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setupConditionalValidationMap(){for(const t of this.listOfInputs){const e=[],i=[];for(const r of t.validate.custom)r.correlationField&&r.correlationValue?i.push(r):e.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},t.validate);i.custom=[...e,r];const o=r.correlationField,s=r.correlationValue;this.conditionalValidationMap[o]=this.conditionalValidationMap[o]||{},this.conditionalValidationMap[o][s]=this.conditionalValidationMap[o][s]||{},this.conditionalValidationMap[o][s][t.name]=i}}}handleConditionalValidation(t,e){if(this.conditionalValidationMap[t]&&this.conditionalValidationMap[t][e])for(const[i,r]of Object.entries(this.conditionalValidationMap[t][e])){const t=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[t]&&(this.forms[t][this.registrationStep].find((t=>t.name===i)).validate=r,this.validationChange.emit({validation:r,field:i}))}}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.errorMessage="",this.registerErrors=!1,this.setRegisterStep()}backHandler(t){t.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.errorMessage="",this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let t="",e="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(t||(t=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:t),e||(e=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:e))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:t,userPassword:e}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(t){var e;const i=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(t.event){case"set":if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];t.fields=this.listOfInputs,t.actions=this.listOfActions,t.fieldsValidity=this.listOfInputValidity}"values"==t.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((t,e)=>(t[e.name]={value:e.value,isDuplicate:e.isDuplicate},t)),{})),i();break;case"get":const r=JSON.parse(localStorage.getItem("registrationStepsState"));if(!r)return;if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];this.listOfInputs=t.fields,this.listOfActions=t.actions,this.listOfInputValidity=t.fieldsValidity}if("values"==t.type){const t=r[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(t).map((e=>({name:e,value:t[e].value,isDuplicate:t[e].isDuplicate})));let i=null===(e=this.listOfInputValues.find((t=>t.name===uc)))||void 0===e?void 0:e.value;"Identity Card"===i&&(i=pc),window.documentTypeValue=i,this.listOfInputValues.forEach((t=>{const e=this.listOfInputs.find((e=>e.name===t.name));e&&(e.defaultValue=t.value,"togglecheckbox"===e.inputType&&e.data.subFields.forEach((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));t.defaultValue=e.value})))}))}this.isConsentReady=this.listOfActions.some((t=>"/Consents"===t)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}triggerNotification(t,e="WidgetNotification"){window.postMessage({type:e,data:{type:"error",message:t}},window.location.href)}getRegisterConfig(t){const e=new URL(`${this.endpoint}/v1/player/legislation/registration/config/`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),t&&e.searchParams.append("registrationId",t);const r={method:"GET",headers:i};return new Promise(((t,i)=>{this.isLoading=!0,fetch(e.href,r).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage=gc(`${this.errorCode}`,this.language)||gc("generalError",this.language),this.triggerNotification(this.errorMessage)}))))).then((e=>(this.isLoading=!1,e?t(e):i("Get register config is empty or has an error."))),(t=>(console.error("Get register config is empty or has an error: ",t),i(t)))).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const t=new URL(`${this.endpoint}/v1/player/legislation/registration/step/`),e={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((t=>!t.isDuplicate)).reduce(((t,e)=>("TypeOfPublicArea"===e.name?t[e.name]=e.value.toLowerCase():"tel"===e.type?(t.MobilePrefix=e.value.prefix,t[e.name]=e.value.phone):"checkboxgroup"===e.type?null!==e.value&&Object.entries(e.value).forEach((([e,i])=>{t[e]=i?"true":"false"})):t[e.name]="toggle"===e.type?e.value?"true":"false":e.value,t)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(e),headers:i};this.lastStep===this.registrationStep&&bc("register_submit",{registrationId:this.registrationID}),fetch(t.href,r).then((t=>t.ok?("Step1"===this.registrationStep?bc("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:e.registerUserDto.IBAN,username:e.registerUserDto.Username}}):"Step2"===this.registrationStep?bc("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:e.registerUserDto.Gender,fullName:`${e.registerUserDto.FirstnameOnDocument} ${e.registerUserDto.LastNameOnDocument}`,city:e.registerUserDto.City}}):"Step3"===this.registrationStep&&bc("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:e.registerUserDto.PersonalID,documentType:e.registerUserDto.DocumentType}}),t.json()):t.json().then((t=>(this.errorCode=t.thirdPartyResponse.errorCode,"GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?this.errorMessage=t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?this.errorMessage=gc(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?(this.errorMessage=t.thirdPartyResponse.message,"The Potvrdite SMS is required."==t.thirdPartyResponse.message&&(this.errorMessage=gc("GmErr_BadRequest_INVALID_CODE",this.language))):"GmErr_ATTEMPTS_EXCEEDED"==this.errorCode?(this.pinAttemptsExceeded=!0,this.errorMessage=gc("GmErr_ATTEMPTS_EXCEEDED",this.language)||gc(this.errorCode,this.language)):this.errorMessage=gc(`${this.errorCode}`,this.language)||gc("generalError",this.language),this.triggerNotification(this.errorMessage),Promise.reject(this.errorMessage)))))).then((t=>{this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.find((t=>"/request-2FA"===t))&&(this.twofaDestination=Object.values(this.listOfInputValues.find((t=>"tel"===t.type)).value).join(""),this.handleRequestTwofa()),this.listOfActions.some((t=>"/register"==t))?(this.listOfActions.some((t=>"/generate-2FA-code/Generate2FACode"==t))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((t=>t==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((t=>{this.formatConfig(t),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}),(t=>{this.triggerNotification(t)})))})).catch((t=>{this.isLoadingPOST=!1,console.error(t)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const t=new URL(`${this.endpoint}/v1/player/legislation/register/`),e=new Headers;e.append("Content-Type","application/json"),e.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:e};fetch(t.href,i).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:gc(`${this.errorCode}`,this.language)||gc("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),this.triggerNotification(this.errorMessage),bc("register_fail",{error:this.errorMessage})}))))).then((t=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==t?void 0:t.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:gc("successMessage",this.language)}},window.location.href),bc("register_closed",{userId:t.userId}))})).catch((t=>{this.isLoading=!1,console.error(t)})).finally((()=>{this.isLoading=!1}))}formatConfig(t){if(this.listOfInputs=t.content.fields.flatMap((t=>{const e=t.validate.custom.find((t=>"duplicate-input"===t.rule)),i=Object.assign({},t);return e?[i,Object.assign(Object.assign({},t),{name:`${t.name}Duplicate`,displayName:e.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((t,e)=>{var i;return"togglecheckbox"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?e.data.subFields.forEach((e=>{t.push({name:e.name,isValid:this.setInitialValidStatus(e)})})):t.push({name:e.name,isValid:this.setInitialValidStatus(e)}),t}),[]),this.listOfInputValues=this.listOfInputs.reduce(((t,e)=>{var i;const r=null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&e.data.subFields.forEach((e=>{var i;t.push({name:e.name,value:"checkbox"==(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),t.push({name:e.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),t}),[]),this.btag&&this.addBtagValue(),this.listOfActions=t.content.actions.map((t=>t)),this.registrationID=t.content.registrationID,this.registrationStep=t.content.step,this.listOfActions.some((t=>"/register"==t))&&(this.lastStep=this.registrationStep),this.listOfActions.some((t=>"/Consents"==t))){if(this.isConsentReady)return this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var e;this.forms=Object.assign(Object.assign({},this.forms),{[this.registrationStep]:this.listOfInputs.map((t=>Object.assign({},t)))}),this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{dc[t]=dc[t]||{};for(let i in e[t])dc[t][i]=e[t][i]})),t(!0)}))}))).then((()=>{this.listOfInputs.forEach((t=>{var e,i;return this.addTranslation(t),"togglecheckbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&t.data.subFields.forEach((t=>this.addTranslation(t))),"checkboxgroup"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(t),t.data.subFields.forEach((t=>this.addTranslation(t)))),t}))})).catch((t=>{console.error("Failed to fetch translations:",t)})),this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const t=this.listOfInputs.find((t=>"btag"===t.name.toLowerCase()));t&&(t.defaultValue=this.btag);const e=this.listOfInputValues.find((t=>"btag"===t.name.toLowerCase()));e&&(e.value=this.btag)}addTranslation(t){dc[dc[this.language]?this.language:"en"][t.name]&&Object.keys(dc[this.language][t.name]).forEach((e=>{t[e]=dc[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o,s;return"checkbox"==(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&0==(null===(i=t.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=t.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(o=t.validate)||void 0===o?void 0:o.mandatory)||"true"===t.defaultValue)&&(null!==t.defaultValue||!1===(null===(s=t.validate)||void 0===s?void 0:s.mandatory)||!1)}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){const e=t.filter((t=>{var e;const i=this.listOfInputs.find((e=>e.name===t.name)),r=null===(e=this.listOfInputValues.find((e=>e.name===t.name)))||void 0===e?void 0:e.value;return!(i&&!i.validate.mandatory&&(null==(o=r)||("string"==typeof o?""===o.trim():Array.isArray(o)?0===o.length:"object"==typeof o&&0===Object.keys(o).length)))&&!1===t.isValid;var o}));return e.length>0}renderErrorMessage(t){return i("p",{class:"registration registration__error-message"},t)}resetAllAddressFields(){this.listOfInputValues=this.listOfInputValues.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{value:""}):t)),Object.keys(this.forms).forEach((t=>{this.forms[t]=this.forms[t].map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{defaultValue:""}):t))})),this.listOfInputValidity=this.listOfInputValidity.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{isValid:!1}):t)),this.addresses=[],this.forms=Object.assign({},this.forms)}fetchAddresses(t,e){var i;const r=null===(i=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===i?void 0:i.value;if(!r||r.length<this.postalcodelength)return;window.dispatchEvent(new CustomEvent("addressFetchStarted",{detail:{postalCode:e}}));const o=new URL(`${this.endpoint}/api/pam/v1/lookup/addresses?country=${t}&postalCode=${e}`),s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json"),fetch(o.href,{method:"GET",headers:s}).then((async t=>{if(!t.ok){const e=await t.json();throw new Error(`Failed to fetch addresses: ${e.message||JSON.stringify(e)}`)}return t.json()})).then((t=>{var e;const i=null===(e=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===e?void 0:e.value;this.addresses=i&&i.length>=this.postalcodelength&&t.addresses||[]})).catch((()=>{this.addresses=[],this.lastPostalCode=null}))}renderForm(){return i("div",null,i("div",{class:"RegisterTimeline custom__reg"},i("button",{class:"RegisterBackButton "+("Step1"==this.registrationStep?"disabledRegBtn":""),onClick:t=>this.backHandler(t)},i("span",{class:"arrow"},"←"),"Back"),i("div",{class:"RegisterTimelineWrapper"},i("div",{class:"RegisterTimeline__content"},i("div",{class:"step step__one"},i("span",{class:this.getStepClass(1),"data-number":"1"})),i("div",{class:"connector"}),i("div",{class:"step step__two"},i("span",{class:this.getStepClass(2),"data-number":"2"})),i("div",{class:"connector"}),i("div",{class:"step step__three"},i("span",{class:this.getStepClass(3),"data-number":"3"})))),this.errorMessage&&i("p",{class:"RegisterTimeline__errorMsg",innerHTML:this.errorMessage})),i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form",ref:t=>this.form=t,onClick:this.handleInitialClick},this.forms[this.registrationStep]&&this.forms[this.registrationStep].map((t=>{var e,r;return i("div",{key:t.name,class:"input-wrapper "+(this.ignorebtag&&"Btag"===t.name?"hide-btag":"")},i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,options:t.data?"checkboxgroup"===t.inputType.toLowerCase()||"togglecheckbox"===t.inputType.toLowerCase()?t.data.subFields:t.data.values:[],defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,mbSource:this.mbSource,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,"date-format":this.dateFormat,"twofa-destination":this.twofaDestination,"twofa-resend-interval-seconds":null===(e=t.customInfo)||void 0===e?void 0:e.twofaResendIntervalSeconds,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick,haspostalcodelookup:this.haspostalcodelookup,addresses:this.haspostalcodelookup?this.addresses:null,postalcodelength:this.haspostalcodelookup?this.postalcodelength:null,"enable-south-african-mode":this.enableSouthAfricanMode,key:["address1","address2","City"].includes(t.name)?`${t.name}-${this.addressUpdateKey}`:t.name,"ignore-country":this.getIgnoreCountry(t),"pin-attempts-exceeded":this.pinAttemptsExceeded}),(null===(r=t.customInfo)||void 0===r?void 0:r.description)&&i("div",{class:"input-description"},t.customInfo.description))})),this.forms[this.registrationStep]&&this.isConsentReady&&this.renderConsents(),this.forms[this.registrationStep]&&this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage}))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",null,this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},i("button",{class:`registration__button registration__button--next ${this.registrationStep} ${!this.isFormValid||this.pinAttemptsExceeded?"registration__button--disabled":""}`,type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!!this.pinAttemptsExceeded||!this.isFormValid},gc("Step2"===this.registrationStep?"verifyButton":this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:t=>this.backHandler(t)},gc("backButton",this.language))))}render(){return this.isLoading&&!this.registerErrors?i("p",{class:"registration registration__loading-message"},gc("loadingMessage",this.language)):!this.isLoading&&this.registerErrors?this.renderErrorMessage(this.errorMessage):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};yu.style='@charset "UTF-8";\n*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n.registration .RegisterTimeline.custom__reg {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 40px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimeline__errorMsg {\n width: 100%;\n text-align: center;\n margin-top: 40px;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n padding: 10px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n all: unset;\n font-size: var(--emw--pam-page-title, 16px);\n color: var(--emw--color-black, #000000);\n cursor: pointer;\n padding: 8px 8px 8px 0;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton.disabledRegBtn {\n opacity: 0;\n pointer-events: none;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton .arrow {\n margin-right: 6px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n max-width: 100%;\n width: 100%;\n margin-top: 20px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .RegisterTimeline__content {\n width: 300px;\n display: flex;\n align-items: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .step {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--emw--pam-page-title, 16px);\n position: relative;\n background-color: var(--emw--registration-input-bg, #f0f5f9);\n color: var(--emw--color-gray-150, #979797);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.active {\n background: var(--emw--color-blue-primary, #111fa3);\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet:not(.checked)::before {\n content: attr(data-number);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked {\n background: var(--emw--color-primary, #22B04E);\n color: transparent;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked::before {\n content: "✓";\n font-size: 25px;\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .connector {\n flex: 1 1 auto;\n min-width: 40px;\n height: 2px;\n margin: 0 10px;\n border-radius: 2px;\n background-color: var(--emw--color-gray-50, #F9F8F8);\n}\n\n.registration__form {\n grid-template-columns: repeat(1fr);\n}\n\n.registration__error-message {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const wu=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return a("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},i("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};wu.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const ku=class{constructor(i){t(this,i),this.sendOriginalValidityState=e(this,"sendOriginalValidityState",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let r=!1;return t&&(r=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}}))}setValidity(){var t,e;return!!this.noValidation||(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed)))&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return a("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return a(`${t}`,this.language)?a(`${t}`,this.language):e}return(null===(o=this.passwordComplexity)||void 0===o?void 0:o.every((t=>t.passed)))||this.showPopup?void 0:a("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,r=this.passwordComplexity.every((t=>t.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},a("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},a(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:e,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((t,e)=>i("div",{key:e},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),i("span",null,a(`${t.ruleKey}`,this.language)?a(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return i("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},i("p",{class:"customreg-password__complexity--title"},a("PasswordMustContain",this.language)),i("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>i("div",{class:"customreg-password__complexity--rule",key:e},i("span",{class:`customreg-password__complexity--icon ${t.passed?n.PASSWORD_COMPLEXITY_PASSED:n.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),i("span",null,a(t.ruleKey,this.language)||t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fe895585dd908f75eee4ba797dc9c02b237bed7f",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"844bdb3dab98e62cc5d92a761b85adcdc44831d0",class:"password__wrapper--flex"},i("label",{key:"28041267a6df666e7df3660a907f995eff092ae1",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"79c300643134802f04d8f909fe7bb3895911c88a",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"43ae58549e42ba59054162c25887ec36eb826aaa",class:"password__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"0edcfed0ea65666537240f531e5239bd5b11181e",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&i("small",{key:"c8aeba074e66b771d745194fec535aa0b82de6d8",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};ku.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const xu=class{constructor(i){t(this,i),this.sendAddressValue=e(this,"sendAddressValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),r=`${e.street}`.trim(),o=`${e.city}`.trim();this.sendAddressValue.emit({city:o,address1:i,address2:r}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:o}),r&&this.valueHandler({name:"address2",value:r}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),r=(null==i?void 0:i.ref)||t.address1||t.PostalCode;r.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),r.focus()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),r=e.includes(this.addressesDropdownRef),o=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||r||o||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let r="";this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid");let o="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,s=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&o,n=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&o,h=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return i("div",{key:"f274a95e0a64ec67f01be8a5cf053d475c16e9ca",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"23aa865fd99048cb5c638f0b66b4ff3e8e451d97",class:"text__wrapper--flex"},i("label",{key:"c5d12c1548ec8bfde130a95cc20783f20295a253",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"db2f499ff6ca8f4e3b1a8ac83e7f8856fc1ca888",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"a1d7ef42855a21f336dbbb337cc8cb644de0c655",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"18a6812958691749d0c7c3396ce69a3f46f7f1e4",class:"input__text-wrapper"},i("input",{key:"41aa9e6b8817eee602347d7a3a909f0d81985d3d",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${r}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!o&&i("p",{key:"7083c22e5ebb306ad9ca3c4dc29dcd66bc8b17d5",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},a("enterIEAddressManually",this.language)),s&&i("div",{key:"95ad996e43da19386f4576eb35850c7ba09e1620",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},i("div",{key:"3997d92f28ec2ecee49b2480a5edb0a8431aa1c8",class:"options"},this.addresses.map(((t,e)=>i("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),h&&i("div",{key:"cf5f9c9f5f96aa2ef316eb44e97768e3552c4a2e",class:"postalcode__loading-spinner"},i("div",{key:"d9b0dda1be9fa871dee4b7d415f84a28b81c3362",class:"loading-spinner"}),i("span",{key:"b5a6c58d910f5be519617288310a8a456e7e8c1c"},a("searchingForAddresses",this.language))),n&&i("div",{key:"2b5503571824ec9f04f58959b8b38ff279fa6d1d",class:"postalcode__no-results-message"},a("postalLookUpNoAddressFound",this.language))),i("small",{key:"00e0cbe15e10c40c8f43939123c10819592fdce2",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};xu.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Su=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return a("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"33493de460303a32a37d253a0fd5f9da59676542",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"8aef7aa84a119742e05d72d976c936a560154b3f",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),i("label",{htmlFor:`${t.label}__input`},t.label)))),i("small",{key:"bec44ed4007e408ddeb0b0293b82e034c8e165f2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"a3b0a041beabe3f14661c0af8cd970040d060435",class:"radio__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Su.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const Au=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return a("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t,e;let r="";return this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"b0ed504667761e5fd77e0ac13382b467448a1944",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6",class:"select__wrapper--flex"},i("label",{key:"ad592c8c98ecbec1961d22cdfeb8cec910291ea8",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad",class:this.validation.mandatory?"select__label--required":""})),i("div",{key:"29d0f504d0f51175818dffffb882ac4e6e9c3bde",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"66e524ffebc43f9418e90b3bd2d7ae62eba47da3",class:"select__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?i("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):i("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),i("small",{key:"0143b538740c3a8e9bfcab6bbb44660355c40cf7",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Au.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const Cu=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(t.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){return!!this.inputReference&&(!(this.validation.mandatory&&(!this.phoneValue||""===this.phoneValue.trim()))&&(this.phoneValue&&""!==this.phoneValue.trim()?!(this.validation.minLength&&this.phoneValue.length<this.validation.minLength)&&(!(this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength)&&!(this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))):!this.validation.mandatory))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||this.validation.minLength&&this.phoneValue&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue&&this.phoneValue.length>this.validation.maxLength?a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?a("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"f534de21d5597a3e90912eb87fff893511d09920",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"431fb8cbaea0d2244847823ea4d04d8c73a5341c",class:"tel__wrapper--flex-label"},i("label",{key:"2eb210b2f0c2e0e632997f59fe7aa667578f72fd",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2d912b828f7d9475a1bbb5bac13495779f31198e",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"ce4433263d27dc9d3fb2caf45069d7a92e9ae3a7",class:"tel__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"480cd17eafb4f2ff1e396531429177cb3130eb95",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"5f2292c8509e5f68786d0f462c689102b1c75dc3",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"77232e119eed4960f5e1d809507b8585dd112256",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"0d925cee41881c8c822073790e26ca7dc4a81049",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Cu.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const Iu=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==n.FIRSTNAME_ON_DOCUMENT&&this.name!==n.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(n.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let o="";"address1"===this.name?o=i:"address2"===this.name?o=r:"City"===this.name&&(o=e),this.value=o,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===n.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===n.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===n.PASSPORT)return n.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===n.SOUTH_AFRICAN_ID){if(i.length!==n.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!n.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let r="";for(let t=1;t<12;t+=2)r+=e[t];return(10-(i+(2*parseInt(r,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;const o=this.value.trim();if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":a(e.errorKey,this.language)}if(""===o&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)||r}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return a(`${t}`,this.language)?a(`${t}`,this.language):e}return""}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"7e4006b92f6c1e2d8b39694fd85fad7d672c18fd",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"e70be4a8daef6cbaa25d438b4d1edaecf6db5159",class:"text__wrapper--flex"},i("label",{key:"0b09f624c460c9d777dd10b887430a4e6de8cacc",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"df36d8f44540b35a65f816ade477c4f4ff077977",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"85e25624de052cad543c883514ba0c0a522d249f",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"bf34796489a118f3c4849c3b8b7680fb77f5a2eb",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"725e4208a8170b6cf34869c44ec8cb29c2c7c93f",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Iu.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Tu=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return a("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"828751327e59e9649afc04c6c9f7a02ef7dcae8d",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"d02a2a6ef595aaf7142cbc6e9681394ee4db8fee",class:"togglecheckbox__wrapper--flex"},i("input",{key:"fca6401ef6eb178f53471362444d54ed69086429",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"3781a8fdfeb719422693bcd541a4a3fe708e705a",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"27a4c6b047cd332407ee40c82cf7be1914ed34c9",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"f1367d7e061d20ad68c24dfbe3147e6b67df746f",class:"togglecheckbox__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"98d42103554de4d14a65eafd1722bf9d587a27f1",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Tu.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';const Ru=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.resendCode=e(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,r=i.value.slice(-1);if(i.value=r,!r)return;this.code[e]=r,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[e+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const r=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!r)return;const o=r.slice(0,this.validation.maxLength).split("");this.code=[...o,...new Array(this.validation.maxLength-o.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=o.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const s=this.inputRefs[Math.min(o.length,this.inputRefs.length-1)];null==s||s.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const t=this.code.join(""),e=t.length===this.validation.maxLength,i=null!==t.match(this.validationPattern);this.isValid=e&&i}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const e=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey;e&&(this.errorMessage=a(e,this.language))}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return i("div",{key:"08b9139f1c2236dd40a045517a9623ad966f29d3",class:"twofa",ref:t=>this.stylingContainer=t},i("div",{key:"7528885100be3d450ec52aafd6085a4c852710c8",class:"twofa__error-message"},i("p",{key:"51dab3f02156b5eb3b7408f06f2d359cfbda11a7"},this.errorMessage)),i("div",{key:"f336f89ecee0724663b1bbb4d443bb834336b5c1",class:"twofa__description",innerHTML:a("twofaDescription",this.language,{values:{destination:this.destination}})}),i("div",{key:"5127127ccc8e50428f8319fddc9e21606f3b4148",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>i("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),i("div",{key:"be82ae1192129d571275b78c8097c3023468cf3e",class:"twofa__button-wrapper"},i("p",{key:"11de61d738ffa74bfd44f0d7c88fc4e456647d0c",class:"twofa__resend-message"},a("twofaResendMessage",this.language)),i("button",{key:"84d5c55c4d9bf024164ec52e2100cfcc8c236ac2",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?a("twofaResendButton",this.language):this.formatTime())))}get host(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStylingUrl:["handleStylingUrlChange"],clientStyling:["handleStylingChange"]}}};Ru.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";export{h as checkbox_group_input,d as checkbox_input,Ye as date_input,Ze as email_input,hc as general_input,yu as general_registration_multistep,wu as number_input,ku as password_input,xu as postalcode_input,Su as radio_input,Au as select_input,Cu as tel_input,Iu as text_input,Tu as toggle_checkbox_input,Ru as twofa_input}
6657
+ `}static get is(){return"vaadin-tabs"}}hi(hc);const dc=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])"string"==typeof t[e][i]&&(s[e][i]=t[e][i])})),e(!0)}))})))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?i("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return i("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&""!==this.displayName.trim()?i("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return i(o,{key:"0474aad44033fe0c48473af7938e9ddb77b684e8",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};dc.style=":host{display:block;height:100%}";const cc={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",requestTwofaError:"There was an error when sending the code",loadingMessage:"Please wait, loading...",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",verifyButton:"Verify"},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",requestTwofaError:"Hiba történt a kód elküldésekor",successMessage:"Sikeres regisztráció",loadingMessage:"Kérjük, várjon, betöltés folyamatban...",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",requestTwofaError:"Došlo je do pogreške prilikom slanja koda",successMessage:"Register successful",loadingMessage:"Molimo pričekajte, učitavanje...",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, carregando...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",requestTwofaError:"Kod gönderilirken bir hata oluştu",successMessage:"Kayıt başarılı",loadingMessage:"Lütfen bekleyin, yükleniyor...",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",requestTwofaError:"There was an error when sending the code",successMessage:"Register successful",loadingMessage:"Please wait, loading...",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",requestTwofaError:"A apărut o eroare la trimiterea codului",successMessage:"Înregistrare reușită",loadingMessage:"Vă rugăm așteptați, se încarcă...",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour",requestTwofaError:"Une erreur est survenue lors de l'envoi du code",loadingMessage:"Veuillez patienter, chargement...",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, a carregar...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",requestTwofaError:"Beim Senden des Codes ist ein Fehler aufgetreten",successMessage:"Registrierung erfolgreich",loadingMessage:"Bitte warten, wird geladen...",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},uc="DocumentNumber",mc="DocumentType",pc="Passport",vc="SouthAfricanID",_c="Mobile",fc=/\s+/g,gc=/-/g,bc=(t,e,i)=>{let r=cc[cc[e]?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},Ec=(t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:t,data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)};var yc={},wc={};!function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=yc;function i(t){e.append_styles(t,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function r(t){let i;return{c(){i=e.element("div"),i.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(r,o){e.insert(r,i,o),t[4](i)},p:e.noop,i:e.noop,o:e.noop,d(r){r&&e.detach(i),t[4](null)}}}function o(t,i,r){let o,{clientstyling:s=""}=i,{clientstylingurl:n=""}=i,{mbsource:a}=i;return e.onMount((()=>()=>{})),t.$$set=t=>{"clientstyling"in t&&r(1,s=t.clientstyling),"clientstylingurl"in t&&r(2,n=t.clientstylingurl),"mbsource"in t&&r(3,a=t.mbsource)},t.$$.update=()=>{3&t.$$.dirty&&s&&o&&e.setClientStyling(o,s),5&t.$$.dirty&&n&&o&&e.setClientStylingURL(o,n),9&t.$$.dirty&&a&&o&&e.setStreamStyling(o,`${a}.Style`,void 0)},[o,s,n,a,function(t){e.binding_callbacks[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}class s extends e.SvelteComponent{constructor(t){super(),e.init(this,t,o,r,e.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},i)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(s,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0),t.default=s}(wc);var kc=Object.defineProperty,xc=Object.defineProperties,Sc=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Cc=Object.prototype.hasOwnProperty,Ic=Object.prototype.propertyIsEnumerable,Tc=(t,e,i)=>e in t?kc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Rc=(t,e)=>{for(var i in e||(e={}))Cc.call(e,i)&&Tc(t,i,e[i]);if(Ac)for(var i of Ac(e))Ic.call(e,i)&&Tc(t,i,e[i]);return t},Oc=(t,e)=>xc(t,Sc(e)),Dc=(t,e,i)=>(Tc(t,"symbol"!=typeof e?e+"":e,i),i),Nc=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}));function zc(){}function Gc(t){return t()}function Mc(){return Object.create(null)}function Bc(t){t.forEach(Gc)}function Uc(t){return"function"==typeof t}function Pc(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Lc(t,...e){if(null==t){for(const t of e)t(void 0);return zc}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function jc(t,e){t.appendChild(e)}function Fc(t,e,i){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=$c("style");t.id=e,t.textContent=i,function(t,e){jc(t.head||t,e)}(r,t)}}function Vc(t,e,i){t.insertBefore(e,i||null)}function Hc(t){t.parentNode&&t.parentNode.removeChild(t)}function qc(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function $c(t){return document.createElement(t)}function Xc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Kc(t){return document.createTextNode(t)}function Wc(){return Kc(" ")}function Yc(t,e,i,r){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)}function Zc(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Qc(t,e,i){const r=e.toLowerCase();r in t?t[r]="boolean"==typeof t[r]&&""===i||i:e in t?t[e]="boolean"==typeof t[e]&&""===i||i:Zc(t,e,i)}function Jc(t,e){t.data!==(e=""+e)&&(t.data=e)}class tu{constructor(t=!1){Dc(this,"is_svg",!1),Dc(this,"e"),Dc(this,"n"),Dc(this,"t"),Dc(this,"a"),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,i=null){this.e||(this.e=this.is_svg?Xc(e.nodeName):$c(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)Vc(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(Hc)}}let eu;function iu(t){eu=t}function ru(t){(function(){if(!eu)throw new Error("Function called outside component initialization");return eu})().$$.on_mount.push(t)}const ou=[],su=[];let nu=[];const au=[],lu=Promise.resolve();let hu=!1;function du(t){nu.push(t)}const cu=new Set;let uu=0;function mu(){if(0!==uu)return;const t=eu;do{try{for(;uu<ou.length;){const t=ou[uu];uu++,iu(t),pu(t.$$)}}catch(t){throw ou.length=0,uu=0,t}for(iu(null),ou.length=0,uu=0;su.length;)su.pop()();for(let t=0;t<nu.length;t+=1){const e=nu[t];cu.has(e)||(cu.add(e),e())}nu.length=0}while(ou.length);for(;au.length;)au.pop()();hu=!1,cu.clear(),iu(t)}function pu(t){if(null!==t.fragment){t.update(),Bc(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(du)}}const vu=new Set;function _u(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function fu(t,e,i,r,o,s,n=null,a=[-1]){const l=eu;iu(t);const h=t.$$={fragment:null,ctx:[],props:s,update:zc,not_equal:o,bound:Mc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Mc(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let d=!1;if(h.ctx=i?i(t,e.props||{},((e,i,...r)=>{const s=r.length?r[0]:i;return h.ctx&&o(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),d&&function(t,e){-1===t.$$.dirty[0]&&(ou.push(t),hu||(hu=!0,lu.then(mu)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],h.update(),d=!0,Bc(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);h.fragment&&h.fragment.l(t),t.forEach(Hc)}else h.fragment&&h.fragment.c();e.intro&&function(t){t&&t.i&&(vu.delete(t),t.i(void 0))}(t.$$.fragment),function(t,e,i){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,i),du((()=>{const e=t.$$.on_mount.map(Gc).filter(Uc);t.$$.on_destroy?t.$$.on_destroy.push(...e):Bc(e),t.$$.on_mount=[]})),o.forEach(du)}(t,e.target,e.anchor),mu()}iu(l)}let gu;function bu(t,e,i,r){var o;const s=null==(o=i[t])?void 0:o.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function Eu(t,e,i,r,o){let s=class extends gu{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(s.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(i){var r;i=bu(t,i,e),this.$$d[t]=i,null==(r=this.$$c)||r.$set({[t]:i})}})})),r.forEach((t=>{Object.defineProperty(s.prototype,t,{get(){var e;return null==(e=this.$$c)?void 0:e[t]}})})),t.element=s,s}"function"==typeof HTMLElement&&(gu=class extends HTMLElement{constructor(t,e,i){super(),Dc(this,"$$ctor"),Dc(this,"$$s"),Dc(this,"$$c"),Dc(this,"$$cn",!1),Dc(this,"$$d",{}),Dc(this,"$$r",!1),Dc(this,"$$p_d",{}),Dc(this,"$$l",{}),Dc(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}connectedCallback(){return Nc(this,null,(function*(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=$c("slot"),"default"!==t&&Zc(e,"name",t)},m:function(t,i){Vc(t,e,i)},d:function(t){t&&Hc(e)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const r of this.$$s)r in i&&(e[r]=[t(r)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=bu(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Oc(Rc({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=bu(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const t in this.$$l)for(const e of this.$$l[t]){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}this.$$l={}}}))}attributeChangedCallback(t,e,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=bu(t,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class yu{constructor(){Dc(this,"$$"),Dc(this,"$$set")}$destroy(){(function(t,e){const i=t.$$;null!==i.fragment&&(function(t){const e=[],i=[];nu.forEach((r=>-1===t.indexOf(r)?e.push(r):i.push(r))),i.forEach((t=>t())),nu=e}(i.after_update),Bc(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=zc}$on(t,e){if(!Uc(e))return zc;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const wu="__WIDGET_GLOBAL_STYLE_CACHE__";function ku(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function xu(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function Su(t,e,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[wu]||(window[wu]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{var r;if(!t)return;const o=t.getRootNode(),s=window[wu];let n=null==(r=s[e])?void 0:r.sheet;n?s[e].refCount=s[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(i),s[e]={sheet:n,refCount:1});const a=o.adoptedStyleSheets||[];a.includes(n)||(o.adoptedStyleSheets=[...a,n])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[wu][e]){const t=window[wu][e];t.refCount>1?t.refCount=t.refCount-1:delete window[wu][e]}o()},i}const Au=[];function Cu(t,e=zc){let i;const r=new Set;function o(e){if(Pc(t,e)&&(t=e,i)){const e=!Au.length;for(const e of r)e[1](),Au.push(e,t);if(e){for(let t=0;t<Au.length;t+=2)Au[t][0](Au[t+1]);Au.length=0}}}function s(e){o(e(t))}return{set:o,update:s,subscribe:function(n,a=zc){const l=[n,a];return r.add(l),1===r.size&&(i=e(o,s)||zc),n(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Iu(t,e,i){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return function(t,e){return{subscribe:Cu(t,e).subscribe}}(i,((t,i)=>{let n=!1;const a=[];let l=0,h=zc;const d=()=>{if(l)return;h();const o=e(r?a[0]:a,t,i);s?t(o):h=Uc(o)?o:zc},c=o.map(((t,e)=>Lc(t,(t=>{a[e]=t,l&=~(1<<e),n&&d()}),(()=>{l|=1<<e}))));return n=!0,d(),function(){Bc(c),h(),n=!1}}))}var Tu=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Ru}(t)}(t));var e},Ru="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ou(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Gu(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function Du(t,e,i){return t.concat(e).map((function(t){return Ou(t,i)}))}function Nu(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function zu(t,e){try{return e in t}catch(t){return!1}}function Gu(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Du,i.isMergeableObject=i.isMergeableObject||Tu,i.cloneUnlessOtherwiseSpecified=Ou;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&Nu(t).forEach((function(e){r[e]=Ou(t[e],i)})),Nu(e).forEach((function(o){(function(t,e){return zu(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(r[o]=zu(t,o)&&i.isMergeableObject(e[o])?function(t,e){if(!e.customMerge)return Gu;var i=e.customMerge(t);return"function"==typeof i?i:Gu}(o,i)(t[o],e[o],i):Ou(e[o],i))})),r}(t,e,i):Ou(e,i)}Gu.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return Gu(t,i,e)}),{})};const Mu=(Bu=Gu)&&Bu.__esModule&&Object.prototype.hasOwnProperty.call(Bu,"default")?Bu.default:Bu;var Bu,Uu=function(t,e){return(Uu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function Pu(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Uu(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Lu=function(){return Lu=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Lu.apply(this,arguments)};function ju(t,e,i){if(i||2===arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function Fu(t,e){return(e&&e.strategy?e.strategy:$u)(t,{cache:e&&e.cache?e.cache:Qu,serializer:e&&e.serializer?e.serializer:Yu})}function Vu(t,e,i,r){var o=function(t){return null==t||"number"==typeof t||"boolean"==typeof t}(r)?r:i(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function Hu(t,e,i){var r=Array.prototype.slice.call(arguments,3),o=i(r),s=e.get(o);return void 0===s&&(s=t.apply(this,r),e.set(o,s)),s}function qu(t,e,i,r,o){return i.bind(e,t,r,o)}function $u(t,e){return qu(t,this,1===t.length?Vu:Hu,e.cache.create(),e.serializer)}var Xu,Ku,Wu,Yu=function(){return JSON.stringify(arguments)},Zu=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),Qu={create:function(){return new Zu}},Ju={variadic:function(t,e){return qu(t,this,Hu,e.cache.create(),e.serializer)}},tm=function(){return tm=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tm.apply(this,arguments)};function em(t){return t.type===Ku.literal}function im(t){return t.type===Ku.argument}function rm(t){return t.type===Ku.number}function om(t){return t.type===Ku.date}function sm(t){return t.type===Ku.time}function nm(t){return t.type===Ku.select}function am(t){return t.type===Ku.plural}function lm(t){return t.type===Ku.pound}function hm(t){return t.type===Ku.tag}function dm(t){return!(!t||"object"!=typeof t||t.type!==Wu.number)}function cm(t){return!(!t||"object"!=typeof t||t.type!==Wu.dateTime)}!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"}(Xu||(Xu={})),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"}(Ku||(Ku={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Wu||(Wu={}));var um=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,mm=/(?:[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 pm(t){var e={};return t.replace(mm,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var vm=function(){return vm=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vm.apply(this,arguments)},_m=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function fm(t){return t.replace(/^(.*?)-/,"")}var gm=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bm=/^(@+)?(\+|#+)?[rs]?$/g,Em=/(\*)(0+)|(#+)(0+)|(0+)/g,ym=/^(0+)$/;function wm(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(bm,(function(t,i,r){return"string"!=typeof r?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):"+"===r?e.minimumSignificantDigits=i.length:"#"===i[0]?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),e}function km(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 xm(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!ym.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Sm(t){return km(t)||{}}function Am(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=fm(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=vm(vm(vm({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return vm(vm({},t),Sm(e))}),{}));continue;case"engineering":e=vm(vm(vm({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return vm(vm({},t),Sm(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Em,(function(t,i,r,o,s,n){if(i)e.minimumIntegerDigits=r.length;else{if(o&&s)throw new Error("We currently do not support maximum integer digits");if(n)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ym.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(gm.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(gm,(function(t,i,r,o,s,n){return"*"===r?e.minimumFractionDigits=i.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:s&&n?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+n.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var s=o.options[0];"w"===s?e=vm(vm({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=vm(vm({},e),wm(s)))}else if(bm.test(o.stem))e=vm(vm({},e),wm(o.stem));else{var n=km(o.stem);n&&(e=vm(vm({},e),n));var a=xm(o.stem);a&&(e=vm(vm({},e),a))}}return e}var Cm={"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 Im(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(Cm[i||""]||Cm[r||""]||Cm["".concat(r,"-001")]||Cm["001"])[0]}var Tm,Rm=new RegExp("^".concat(um.source,"*")),Om=new RegExp("".concat(um.source,"*$"));function Dm(t,e){return{start:t,end:e}}var Nm=!!String.prototype.startsWith&&"_a".startsWith("a",1),zm=!!String.fromCodePoint,Gm=!!Object.fromEntries,Mm=!!String.prototype.codePointAt,Bm=!!String.prototype.trimStart,Um=!!String.prototype.trimEnd,Pm=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Lm=!0;try{Lm="a"===(null===(Tm=Km("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Tm?void 0:Tm[0])}catch(Bu){Lm=!1}var jm,Fm=Nm?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Vm=zm?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r="",o=t.length,s=0;o>s;){if((i=t[s++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Hm=Gm?Object.fromEntries:function(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];e[o[0]]=o[1]}return e},qm=Mm?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var r,o=t.charCodeAt(e);return o<55296||o>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},$m=Bm?function(t){return t.trimStart()}:function(t){return t.replace(Rm,"")},Xm=Um?function(t){return t.trimEnd()}:function(t){return t.replace(Om,"")};function Km(t,e){return new RegExp(t,e)}if(Lm){var Wm=Km("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");jm=function(t,e){var i;return Wm.lastIndex=e,null!==(i=Wm.exec(t)[1])&&void 0!==i?i:""}}else jm=function(t,e){for(var i=[];;){var r=qm(t,e);if(void 0===r||tp(r)||ep(r))break;i.push(r),e+=r>=65536?2:1}return Vm.apply(void 0,i)};var Ym,Zm=function(){function t(t,e){void 0===e&&(e={}),this.message=t,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(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((s=this.parseArgument(t,i)).err)return s;r.push(s.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(Xu.UNMATCHED_CLOSING_TAG,Dm(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Qm(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;r.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;r.push(s.val)}}else{var n=this.clonePosition();this.bump(),r.push({type:Ku.pound,location:Dm(n,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ku.literal,value:"<".concat(r,"/>"),location:Dm(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var s=o.val,n=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qm(this.char()))return this.error(Xu.INVALID_TAG,Dm(n,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Xu.UNMATCHED_CLOSING_TAG,Dm(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ku.tag,value:r,children:s,location:Dm(i,this.clonePosition())},err:null}:this.error(Xu.INVALID_TAG,Dm(n,this.clonePosition())))}return this.error(Xu.UNCLOSED_TAG,Dm(i,this.clonePosition()))}return this.error(Xu.INVALID_TAG,Dm(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Jm(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{var s=this.tryParseUnquoted(t,e);if(s)r+=s;else{var n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}var a=Dm(i,this.clonePosition());return{val:{type:Ku.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return Qm(t)||47===t}(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return Vm.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),Vm(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Xu.EMPTY_ARGUMENT,Dm(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Xu.MALFORMED_ARGUMENT,Dm(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ku.argument,value:r,location:Dm(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(Xu.MALFORMED_ARGUMENT,Dm(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=jm(this.message,e);return this.bumpTo(e+i.length),{value:i,location:Dm(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var o,s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(n){case"":return this.error(Xu.EXPECT_ARGUMENT_TYPE,Dm(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=Xm(f.val)).length)return this.error(Xu.EXPECT_ARGUMENT_STYLE,Dm(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Dm(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var d=Dm(r,this.clonePosition());if(l&&Fm(null==l?void 0:l.style,"::",0)){var c=$m(l.style.slice(2));if("number"===n)return(f=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?f:{val:{type:Ku.number,value:i,location:d,style:f.val},err:null};if(0===c.length)return this.error(Xu.EXPECT_DATE_TIME_SKELETON,d);var u=c;this.locale&&(u=function(t,e){for(var i="",r=0;r<t.length;r++){var o=t.charAt(r);if("j"===o){for(var s=0;r+1<t.length&&t.charAt(r+1)===o;)s++,r++;var n=1+(1&s),a=s<2?1:3+(s>>1),l=Im(e);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;n-- >0;)i=l+i}else i+="J"===o?"H":o}return i}(c,this.locale));var m={type:Wu.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?pm(u):{}};return{val:{type:"date"===n?Ku.date:Ku.time,value:i,location:d,style:m},err:null}}return{val:{type:"number"===n?Ku.number:"date"===n?Ku.date:Ku.time,value:i,location:d,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Xu.EXPECT_SELECT_ARGUMENT_OPTIONS,Dm(p,tm({},p)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),_=0;if("select"!==n&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(Xu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dm(this.clonePosition(),this.clonePosition()));var f;if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Xu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xu.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),_=f.val}var g,b=this.tryParsePluralOrSelectOptions(t,n,e,v);if(b.err)return b;if((g=this.tryParseArgumentClose(r)).err)return g;var E=Dm(r,this.clonePosition());return"select"===n?{val:{type:Ku.select,value:i,options:Hm(b.val),location:E},err:null}:{val:{type:Ku.plural,value:i,options:Hm(b.val),offset:_,pluralType:"plural"===n?"cardinal":"ordinal",location:E},err:null};default:return this.error(Xu.INVALID_ARGUMENT_TYPE,Dm(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Xu.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Dm(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(_m).filter((function(t){return t.length>0})),i=[],r=0,o=e;r<o.length;r++){var s=o[r].split("/");if(0===s.length)throw new Error("Invalid number skeleton");for(var n=s[0],a=s.slice(1),l=0,h=a;l<h.length;l++)if(0===h[l].length)throw new Error("Invalid number skeleton");i.push({stem:n,options:a})}return i}(t)}catch(t){return this.error(Xu.INVALID_NUMBER_SKELETON,e)}return{val:{type:Wu.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Am(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var o,s=!1,n=[],a=new Set,l=r.value,h=r.location;;){if(0===l.length){var d=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xu.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=Dm(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===e?Xu.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Xu.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Xu.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Dm(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;n.push([l,{value:m.val,location:Dm(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===n.length?this.error("select"===e?Xu.EXPECT_SELECT_ARGUMENT_SELECTOR:Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dm(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Xu.MISSING_OTHER_CLAUSE,Dm(this.clonePosition(),this.clonePosition())):{val:n,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var n=this.char();if(!(n>=48&&n<=57))break;o=!0,s=10*s+(n-48),this.bump()}var a=Dm(r,this.clonePosition());return o?Pm(s*=i)?{val:s,err:null}:this.error(e,a):this.error(t,a)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=qm(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Fm(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&tp(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Qm(t){return t>=97&&t<=122||t>=65&&t<=90}function Jm(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||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 tp(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ep(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ip(t){t.forEach((function(t){if(delete t.location,nm(t)||am(t))for(var e in t.options)delete t.options[e].location,ip(t.options[e].value);else rm(t)&&dm(t.style)||(om(t)||sm(t))&&cm(t.style)?delete t.style.location:hm(t)&&ip(t.children)}))}function rp(t,e){void 0===e&&(e={}),e=tm({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Zm(t,e).parse();if(i.err){var r=SyntaxError(Xu[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=e&&e.captureLocation||ip(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Ym||(Ym={}));var op,sp=function(t){function e(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return Pu(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),np=function(t){function e(e,i,r,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ym.INVALID_VALUE,o)||this}return Pu(e,t),e}(sp),ap=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),Ym.INVALID_VALUE,r)||this}return Pu(e,t),e}(sp),lp=function(t){function e(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),Ym.MISSING_VALUE,i)||this}return Pu(e,t),e}(sp);function hp(t){return"function"==typeof t}function dp(t,e,i,r,o,s,n){if(1===t.length&&em(t[0]))return[{type:op.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(em(d))a.push({type:op.literal,value:d.value});else if(lm(d))"number"==typeof s&&a.push({type:op.literal,value:i.getNumberFormat(e).format(s)});else{var c=d.value;if(!o||!(c in o))throw new lp(c,n);var u=o[c];if(im(d))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?op.literal:op.object,value:u});else if(om(d)){var m="string"==typeof d.style?r.date[d.style]:cm(d.style)?d.style.parsedOptions:void 0;a.push({type:op.literal,value:i.getDateTimeFormat(e,m).format(u)})}else if(sm(d))m="string"==typeof d.style?r.time[d.style]:cm(d.style)?d.style.parsedOptions:r.time.medium,a.push({type:op.literal,value:i.getDateTimeFormat(e,m).format(u)});else if(rm(d))(m="string"==typeof d.style?r.number[d.style]:dm(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:op.literal,value:i.getNumberFormat(e,m).format(u)});else{if(hm(d)){var p=d.children,v=d.value,_=o[v];if(!hp(_))throw new ap(v,"function",n);var f=_(dp(p,e,i,r,o,s).map((function(t){return t.value})));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map((function(t){return{type:"string"==typeof t?op.literal:op.object,value:t}})))}if(nm(d)){if(!(g=d.options[u]||d.options.other))throw new np(d.value,u,Object.keys(d.options),n);a.push.apply(a,dp(g.value,e,i,r,o))}else if(am(d)){var g;if(!(g=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new sp('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ym.MISSING_INTL_API,n);var b=i.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));g=d.options[b]||d.options.other}if(!g)throw new np(d.value,u,Object.keys(d.options),n);a.push.apply(a,dp(g.value,e,i,r,o,u-(d.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var i=t[t.length-1];return i&&i.type===op.literal&&e.type===op.literal?i.value+=e.value:t.push(e),t}),[])}(a)}function cp(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(op||(op={}));var up=function(){function t(e,i,r,o){void 0===i&&(i=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);if(1===e.length)return e[0].value;var i=e.reduce((function(t,e){return t.length&&e.type===op.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(t){return dp(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=s.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(i[r[o]]=t[r[o]])}return i}(o||{},["formatters"]);this.ast=t.__parse(e,Lu(Lu({},n),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(t,e){return e?Object.keys(t).reduce((function(i,r){return i[r]=function(t,e){return e?Lu(Lu(Lu({},t||{}),e||{}),Object.keys(t).reduce((function(i,r){return i[r]=Lu(Lu({},t[r]),e[r]||{}),i}),{})):t}(t[r],e[r]),i}),Lu({},t)):t}(t.formats,r),this.formatters=o&&o.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.number),strategy:Ju.variadic}),getDateTimeFormat:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.dateTime),strategy:Ju.variadic}),getPluralRules:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.pluralRules),strategy:Ju.variadic})}}(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(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=rp,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}();const mp={},pp=(t,e,i)=>i&&(e in mp||(mp[e]={}),t in mp[e]||(mp[e][t]=i),i),vp=(t,e)=>{if(null==e)return;if(e in mp&&t in mp[e])return mp[e][t];const i=Pp(e);for(let r=0;r<i.length;r++){const o=bp(i[r],t);if(o)return pp(t,e,o)}};let _p;const fp=Cu({});function gp(t){return t in _p}function bp(t,e){if(!gp(t))return null;const i=function(t){return _p[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const i=e.split(".");let r=t;for(let t=0;t<i.length;t++)if("object"==typeof r){if(t>0){const e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}(i,e)}function Ep(t,...e){delete mp[t],fp.update((i=>(i[t]=Mu.all([i[t]||{},...e]),i)))}Iu([fp],(([t])=>Object.keys(t))),fp.subscribe((t=>_p=t));const yp={};function wp(t){return yp[t]}function kp(t){return null!=t&&Pp(t).some((t=>{var e;return null==(e=wp(t))?void 0:e.size}))}const xp={};function Sp(t){if(!kp(t))return t in xp?xp[t]:Promise.resolve();const e=function(t){return Pp(t).map((t=>{const e=wp(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return xp[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){yp[t].delete(e),0===yp[t].size&&delete yp[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>Ep(t,...e)))}(t,e)))).then((()=>{if(kp(t))return Sp(t);delete xp[t]})),xp[t]}const Ap={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Cp(){return Ap}const Ip=Cu(!1);var Tp=Object.defineProperty,Rp=Object.defineProperties,Op=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable,Gp=(t,e,i)=>e in t?Tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let Mp;const Bp=Cu(null);function Up(t){return t.split("-").map(((t,e,i)=>i.slice(0,e+1).join("-"))).reverse()}function Pp(t,e=Cp().fallbackLocale){const i=Up(t);return e?[...new Set([...i,...Up(e)])]:i}function Lp(){return null!=Mp?Mp:void 0}Bp.subscribe((t=>{Mp=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const jp=((t,e)=>Rp(t,Op(e)))(((t,e)=>{for(var i in e||(e={}))Np.call(e,i)&&Gp(t,i,e[i]);if(Dp)for(var i of Dp(e))zp.call(e,i)&&Gp(t,i,e[i]);return t})({},Bp),{set:t=>{if(t&&function(t){if(null==t)return;const e=Pp(t);for(let t=0;t<e.length;t++){const i=e[t];if(gp(i))return i}}(t)&&kp(t)){const{loadingDelay:e}=Cp();let i;return"undefined"!=typeof window&&null!=Lp()&&e?i=window.setTimeout((()=>Ip.set(!0)),e):Ip.set(!0),Sp(t).then((()=>{Bp.set(t)})).finally((()=>{clearTimeout(i),Ip.set(!1)}))}return Bp.set(t)}}),Fp=t=>{const e=Object.create(null);return i=>{const r=JSON.stringify(i);return r in e?e[r]:e[r]=t(i)}};var Vp=Object.defineProperty,Hp=Object.getOwnPropertySymbols,qp=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable,Xp=(t,e,i)=>e in t?Vp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kp=(t,e)=>{for(var i in e||(e={}))qp.call(e,i)&&Xp(t,i,e[i]);if(Hp)for(var i of Hp(e))$p.call(e,i)&&Xp(t,i,e[i]);return t},Wp=(t,e)=>{var i={};for(var r in t)qp.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&Hp)for(var r of Hp(t))e.indexOf(r)<0&&$p.call(t,r)&&(i[r]=t[r]);return i};const Yp=(t,e)=>{const{formats:i}=Cp();if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Zp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Yp("number",r)),new Intl.NumberFormat(i,o)})),Qp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Yp("date",r):0===Object.keys(o).length&&(o=Yp("date","short")),new Intl.DateTimeFormat(i,o)})),Jp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Yp("time",r):0===Object.keys(o).length&&(o=Yp("time","short")),new Intl.DateTimeFormat(i,o)})),tv=Fp(((t,e=Lp())=>new up(t,e,Cp().formats,{ignoreTag:Cp().ignoreTag}))),ev=(t,e={})=>{var i,r,o,s;let n=e;"object"==typeof t&&(n=t,t=n.id);const{values:a,locale:l=Lp(),default:h}=n;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=vp(t,l);if(d){if("string"!=typeof d)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d}else d=null!=(s=null!=(o=null==(r=(i=Cp()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:t,defaultValue:h}))?o:h)?s:t;if(!a)return d;let c=d;try{c=tv(d,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c},iv=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Jp(Kp({locale:i},r))})(e).format(t),rv=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Qp(Kp({locale:i},r))})(e).format(t),ov=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Zp(Kp({locale:i},r))})(e).format(t),sv=(t,e=Lp())=>vp(t,e),nv=Iu([jp,fp],(()=>ev));function av(t,e){Ep(t,e)}Iu([jp],(()=>iv)),Iu([jp],(()=>rv)),Iu([jp],(()=>ov)),Iu([jp,fp],(()=>sv));const lv={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};var hv;function dv(){let t,e;return{c(){t=Xc("svg"),e=Xc("path"),Zc(e,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),Zc(t,"xmlns","http://www.w3.org/2000/svg"),Zc(t,"viewBox","0 0 512 512")},m(i,r){Vc(i,t,r),jc(t,e)},p:zc,i:zc,o:zc,d(e){e&&Hc(t)}}}function cv(t){Fc(t,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;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);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}')}function uv(t,e,i){const r=t.slice();return r[64]=e[i],r}function mv(t,e,i){const r=t.slice();return r[61]=e[i],r[62]=e,r[63]=i,r}function pv(t,e,i){const r=t.slice();return r[64]=e[i],r}function vv(t){let e,i,r=_u(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=bv(uv(t,r,e));return{c(){e=$c("div"),i=$c("form");for(let t=0;t<o.length;t+=1)o[t].c();Zc(i,"class","checkbox svelte-etk3ty"),Zc(e,"class","legacyStyle")},m(r,s){Vc(r,e,s),jc(e,i);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(i,null);t[31](i)},p(t,e){if(590336&e[0]){let s;for(r=_u(t[9]),s=0;s<r.length;s+=1){const n=uv(t,r,s);o[s]?o[s].p(n,e):(o[s]=bv(n),o[s].c(),o[s].m(i,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=r.length}},d(i){i&&Hc(e),qc(o,i),t[31](null)}}}function _v(t){let e,i,r,o,s,n,a,l,h=t[16]("title")||t[16]("description"),d=(t[16]("saveButtonContent")||"Save Consents")+"",c=h&&Ev(t),u=_u(t[8]),m=[];for(let e=0;e<u.length;e+=1)m[e]=Av(mv(t,u,e));let p=t[6]&&Cv(t);return{c(){c&&c.c(),e=Wc();for(let t=0;t<m.length;t+=1)m[t].c();i=Wc(),r=$c("button"),s=Wc(),p&&p.c(),n=Kc(""),Zc(r,"class","SaveConsentsButton svelte-etk3ty"),r.disabled=o=!t[14]},m(o,h){c&&c.m(o,h),Vc(o,e,h);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(o,h);Vc(o,i,h),Vc(o,r,h),r.innerHTML=d,Vc(o,s,h),p&&p.m(o,h),Vc(o,n,h),a||(l=Yc(r,"click",t[17]),a=!0)},p(t,s){if(65536&s[0]&&(h=t[16]("title")||t[16]("description")),h?c?c.p(t,s):(c=Ev(t),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),867088&s[0]){let e;for(u=_u(t[8]),e=0;e<u.length;e+=1){const r=mv(t,u,e);m[e]?m[e].p(r,s):(m[e]=Av(r),m[e].c(),m[e].m(i.parentNode,i))}for(;e<m.length;e+=1)m[e].d(1);m.length=u.length}65536&s[0]&&d!==(d=(t[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=d),16384&s[0]&&o!==(o=!t[14])&&(r.disabled=o),t[6]?p?p.p(t,s):(p=Cv(t),p.c(),p.m(n.parentNode,n)):p&&(p.d(1),p=null)},d(t){t&&(Hc(e),Hc(i),Hc(r),Hc(s),Hc(n)),c&&c.d(t),qc(m,t),p&&p.d(t),a=!1,l()}}}function fv(t){let e,i,r;return{c(){e=$c("div"),i=$c("strong"),r=Kc(t[7]),Zc(i,"class","ErrorMessage svelte-etk3ty"),Zc(e,"class","ContainerCenter svelte-etk3ty")},m(t,o){Vc(t,e,o),jc(e,i),jc(i,r)},p(t,e){128&e[0]&&Jc(r,t[7])},d(t){t&&Hc(e)}}}function gv(t){let e;return{c(){e=$c("general-animation-loading"),Qc(e,"clientstyling",t[1]),Qc(e,"clientstylingurl",t[2]),Qc(e,"mbsource",t[3])},m(t,i){Vc(t,e,i)},p(t,i){2&i[0]&&Qc(e,"clientstyling",t[1]),4&i[0]&&Qc(e,"clientstylingurl",t[2]),8&i[0]&&Qc(e,"mbsource",t[3])},d(t){t&&Hc(e)}}}function bv(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_,f,g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"",b=t[64].mustAccept?" *":"";function E(...e){return t[30](t[64],...e)}return{c(){e=$c("div"),i=$c("input"),s=Wc(),n=$c("label"),a=$c("div"),l=new tu(!1),h=Kc(b),c=Wc(),u=$c("small"),p=Wc(),Zc(i,"class","checkbox__input svelte-etk3ty"),Zc(i,"type","checkbox"),i.checked=r="1"===t[64].status,Zc(i,"id",o=`${t[64].tagCode}__input`),l.a=h,Zc(a,"class","checkbox__label-text svelte-etk3ty"),Zc(n,"class","checkbox__label svelte-etk3ty"),Zc(n,"for",d=`${t[64].tagCode}__input`),Zc(u,"class","checkbox__error-message svelte-etk3ty"),Zc(u,"id",m="checkBoxError__"+t[64].tagCode),Zc(e,"class",v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")},m(t,r){Vc(t,e,r),jc(e,i),jc(e,s),jc(e,n),jc(n,a),l.m(g,a),jc(a,h),jc(e,c),jc(e,u),jc(e,p),_||(f=Yc(i,"input",E),_=!0)},p(s,a){t=s,512&a[0]&&r!==(r="1"===t[64].status)&&(i.checked=r),512&a[0]&&o!==(o=`${t[64].tagCode}__input`)&&Zc(i,"id",o),66048&a[0]&&g!==(g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"")&&l.p(g),512&a[0]&&b!==(b=t[64].mustAccept?" *":"")&&Jc(h,b),512&a[0]&&d!==(d=`${t[64].tagCode}__input`)&&Zc(n,"for",d),512&a[0]&&m!==(m="checkBoxError__"+t[64].tagCode)&&Zc(u,"id",m),512&a[0]&&v!==(v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")&&Zc(e,"class",v)},d(t){t&&Hc(e),_=!1,f()}}}function Ev(t){let e,i,r=t[16]("title"),o=t[16]("description"),s=r&&yv(t),n=o&&wv(t);return{c(){e=$c("div"),s&&s.c(),i=Wc(),n&&n.c(),Zc(e,"class","PlayerConsentsHeader svelte-etk3ty")},m(t,r){Vc(t,e,r),s&&s.m(e,null),jc(e,i),n&&n.m(e,null)},p(t,a){65536&a[0]&&(r=t[16]("title")),r?s?s.p(t,a):(s=yv(t),s.c(),s.m(e,i)):s&&(s.d(1),s=null),65536&a[0]&&(o=t[16]("description")),o?n?n.p(t,a):(n=wv(t),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(t){t&&Hc(e),s&&s.d(),n&&n.d()}}}function yv(t){let e,i,r=t[16]("title")+"";return{c(){e=$c("h2"),i=Kc(r),Zc(e,"class","PlayerConsentsTitle")},m(t,r){Vc(t,e,r),jc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("title")+"")&&Jc(i,r)},d(t){t&&Hc(e)}}}function wv(t){let e,i,r=t[16]("description")+"";return{c(){e=$c("p"),i=Kc(r),Zc(e,"class","PlayerConsentsDescription")},m(t,r){Vc(t,e,r),jc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("description")+"")&&Jc(i,r)},d(t){t&&Hc(e)}}}function kv(){let t;return{c(){t=$c("sup"),t.textContent="*",Zc(t,"class","ConsentRequired svelte-etk3ty")},m(e,i){Vc(e,t,i)},d(e){e&&Hc(t)}}}function xv(t){let e,i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"";return{c(){e=$c("p"),Zc(e,"class","ConsentDescription svelte-etk3ty")},m(t,r){Vc(t,e,r),e.innerHTML=i},p(t,r){66304&r[0]&&i!==(i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"")&&(e.innerHTML=i)},d(t){t&&Hc(e)}}}function Sv(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"",f=!0===t[64].mustAccept&&kv(),g="true"===t[4]&&xv(t);function b(...e){return t[29](t[64],...e)}return{c(){e=$c("div"),i=$c("div"),r=$c("h4"),o=new tu(!1),s=Wc(),f&&f.c(),n=Wc(),g&&g.c(),a=Wc(),l=$c("label"),h=$c("input"),u=Wc(),m=$c("span"),o.a=s,Zc(r,"class","ConsentName svelte-etk3ty"),Zc(i,"class","ConsentContent"),Zc(h,"type","checkbox"),h.disabled=d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode],h.checked=c=t[13][t[64].tagCode],Zc(h,"class","svelte-etk3ty"),Zc(m,"class","Slider Round svelte-etk3ty"),Zc(l,"class","ToggleSwitch svelte-etk3ty"),Zc(e,"class","ConsentItem svelte-etk3ty")},m(t,d){Vc(t,e,d),jc(e,i),jc(i,r),o.m(_,r),jc(r,s),f&&f.m(r,null),jc(i,n),g&&g.m(i,null),jc(e,a),jc(e,l),jc(l,h),jc(l,u),jc(l,m),p||(v=Yc(h,"input",b),p=!0)},p(e,s){t=e,66304&s[0]&&_!==(_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"")&&o.p(_),!0===t[64].mustAccept?f||(f=kv(),f.c(),f.m(r,null)):f&&(f.d(1),f=null),"true"===t[4]?g?g.p(t,s):(g=xv(t),g.c(),g.m(i,null)):g&&(g.d(1),g=null),4864&s[0]&&d!==(d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode])&&(h.disabled=d),8960&s[0]&&c!==(c=t[13][t[64].tagCode])&&(h.checked=c)},d(t){t&&Hc(e),f&&f.d(),g&&g.d(),p=!1,v()}}}function Av(t){let e,i,r,o,s,n,a,l,h,d,c,u,m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"";function p(){t[26].call(n,t[61])}function v(){return t[27](t[61])}function _(...e){return t[28](t[61],...e)}let f=_u(t[9].filter(_)),g=[];for(let e=0;e<f.length;e+=1)g[e]=Sv(pv(t,f,e));return{c(){e=$c("div"),i=$c("div"),r=$c("h3"),o=Wc(),s=$c("label"),n=$c("input"),a=Wc(),l=$c("span"),h=Wc(),d=$c("div");for(let t=0;t<g.length;t+=1)g[t].c();Zc(n,"type","checkbox"),Zc(n,"class","svelte-etk3ty"),Zc(l,"class","Slider Round svelte-etk3ty"),Zc(s,"class","ToggleSwitch Big svelte-etk3ty"),Zc(i,"class","AccordionHeader svelte-etk3ty"),Zc(d,"class","AccordionContent svelte-etk3ty"),Zc(e,"class","AccordionItem svelte-etk3ty")},m(_,f){Vc(_,e,f),jc(e,i),jc(i,r),r.innerHTML=m,jc(i,o),jc(i,s),jc(s,n),n.checked=t[11][t[61].categoryTagCode],jc(s,a),jc(s,l),jc(e,h),jc(e,d);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(d,null);c||(u=[Yc(n,"change",p),Yc(n,"change",v)],c=!0)},p(e,i){if(t=e,65792&i[0]&&m!==(m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"")&&(r.innerHTML=m),2304&i[0]&&(n.checked=t[11][t[61].categoryTagCode]),602896&i[0]){let e;for(f=_u(t[9].filter(_)),e=0;e<f.length;e+=1){const r=pv(t,f,e);g[e]?g[e].p(r,i):(g[e]=Sv(r),g[e].c(),g[e].m(d,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}},d(t){t&&Hc(e),qc(g,t),c=!1,Bc(u)}}}function Cv(t){let e,i,r,o,s;return{c(){e=$c("div"),i=$c("circle-exclamation-icon"),r=Wc(),o=$c("strong"),s=Kc(t[6]),Qc(i,"class","svelte-etk3ty"),Zc(o,"class","ErrorMessage svelte-etk3ty"),Zc(e,"class","ConsentErrorContainer svelte-etk3ty")},m(t,n){Vc(t,e,n),jc(e,i),jc(e,r),jc(e,o),jc(o,s)},p(t,e){64&e[0]&&Jc(s,t[6])},d(t){t&&Hc(e)}}}function Iv(t){let e,i;function r(t){return t[10]?gv:t[7]?fv:t[0]?_v:t[0]?void 0:vv}let o=r(t),s=o&&o(t);return{c(){e=$c("div"),i=$c("div"),s&&s.c(),Zc(i,"class","ConsentsContainer svelte-etk3ty"),Zc(e,"class"," svelte-etk3ty")},m(r,o){Vc(r,e,o),jc(e,i),s&&s.m(i,null),t[32](i)},p(t,e){o===(o=r(t))&&s?s.p(t,e):(s&&s.d(1),s=o&&o(t),s&&(s.c(),s.m(i,null)))},i:zc,o:zc,d(i){i&&Hc(e),s&&s.d(),t[32](null)}}}function Tv(t,e,i){let r;!function(t,e,i){t.$$.on_destroy.push(Lc(nv,i))}(t,0,(t=>i(16,r=t)));let o,s,n,{session:a=""}=e,{userid:l=""}=e,{endpoint:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:c=""}=e,{mbsource:u}=e,{lang:m="en"}=e,{displayconsentdescription:p=""}=e,{translationurl:v=""}=e,{modalconsents:_="false"}=e,f=!1,g=!1,b="",E="",y="",w="",k=[],x=[],S=[],A=!0,C=!0,I={},T={},R={},O={},D={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},N=!1;Object.keys(lv).forEach((t=>{av(t,lv[t])}));const z=(t,e=!1)=>{e?i(7,w=t):(j(),i(6,y=t))},G=(t,e,i,o=!1)=>Nc(this,null,(function*(){try{const o=yield fetch(t,i);if(!o.ok)throw new Error(r(e));const s=yield o.json();return g?s:s.filter((t=>!0===t.showOnRegister))}catch(t){throw z(t instanceof TypeError?r(e):t.message,o),t}})),M=()=>Nc(this,null,(function*(){try{let t=[],e=[];if(g?[t,e]=yield B():t=yield B(),i(10,A=!1),x=[...t],i(8,k=U(x).sort(((t,e)=>t.categoryTagCode.localeCompare(e.categoryTagCode)))),i(11,I=P(k)),T=Rc({},I),i(9,S=[...e]),x.forEach((t=>{let e=S.find((e=>e.tagCode===t.tagCode));e||(e=Oc(Rc({},t),{status:D.denied.value}),S.push(e)),e.description=t.description,e.orderNumber=t.orderNumber})),"true"===_){if(i(9,S=S.filter((t=>t.status===D.expired.value))),0!==S.length)return;z(r("wrongModalConfig"),!0)}L()}catch(t){throw i(10,A=!1),z(t instanceof TypeError?r("invalidUrl"):t.message,!0),t}})),B=()=>Nc(this,null,(function*(){const t=new URL(`${h}/api/v1/gm/consents`);if(t.searchParams.append("Status","Active"),!g)return yield G(t.href,"fetchConsentsError",{method:"GET"},!0);const e=new URL(`${h}/api/v1/gm/user-consents/${E}`);return yield Promise.all([G(t.href,"fetchConsentsError",{method:"GET"},!0),G(e.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":b,"Content-Type":"application/json"}})])})),U=t=>{const e=new Map;return t.forEach((t=>{e.has(t.category.categoryTagCode)||e.set(t.category.categoryTagCode,t.category)})),Array.from(e.values())},P=t=>{const e=localStorage.getItem("categoryToggle"+E);if(null===e){const e=t.reduce(((t,e)=>(t[e.categoryTagCode]=!1,t)),{});return localStorage.setItem("categoryToggle"+E,JSON.stringify(e)),e}return JSON.parse(e)},L=()=>{S.forEach((t=>{i(12,R[t.tagCode]=t.status===D.accepted.value,R)})),i(13,O=Rc({},R))},j=()=>{i(13,O=Rc({},R)),i(11,I=Rc({},T))},F=t=>{S.filter((e=>e.category.categoryTagCode===t)).forEach((e=>{e.status=e.status===D.denied.value?D.accepted.value:D.denied.value,i(13,O[e.tagCode]=I[t]||!1,O)})),i(14,s=$())},V=(t,e,o)=>{const s=S.find((t=>t.id===o)),a=e?"value":"key";let l;if(!e&&s.mustAccept){const t=Array.from(n.children);for(const e of t)if(l=Array.from(e.children).find((t=>t.getAttribute("id")===`checkBoxError__${s.tagCode}`)),l)break}if(s.status===D.accepted[a]?(s.status=D.denied[a],l&&(l.innerHTML=r("requiredError"))):(s.status=D.accepted[a],l&&(l.innerHTML="")),e){i(13,O[s.tagCode]=!O[s.tagCode],O);const t=S.filter((t=>t.category.categoryTagCode===e.categoryTagCode)).every((t=>t.status!==D.denied.value));i(11,I[e.categoryTagCode]=t,I)}H()},H=(t=>{let e;return function(...i){const r=this;clearTimeout(e),e=setTimeout((()=>{t.apply(r,i)}),500)}})((()=>q())),q=()=>{i(14,s=$()),a||(window.postMessage({type:"isConsentsValid",isValid:s}),localStorage.setItem("playerConsents",JSON.stringify(S)))},$=()=>0===S.filter((t=>S.some((e=>t.tagCode===e.tagCode&&e.mustAccept&&(t.status===D.denied.key||t.status===D.denied.value))))).length,X=t=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)};return ru((()=>{setTimeout((()=>{i(25,f=!0)}),50);const t=t=>(t=>{t.data&&"setUpPlayerConsents"!==t.data.type||(t=>{const e=new URL(`${h}/api/v2/gm/legislation/consents`),r={method:"POST",body:JSON.stringify({playerConsents:S,registrationId:t}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((t=>{t.ok||(N=!0)})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!1)}))})(t.data.registerid)})(t);return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}})),t.$$set=t=>{"session"in t&&i(0,a=t.session),"userid"in t&&i(20,l=t.userid),"endpoint"in t&&i(21,h=t.endpoint),"clientstyling"in t&&i(1,d=t.clientstyling),"clientstylingurl"in t&&i(2,c=t.clientstylingurl),"mbsource"in t&&i(3,u=t.mbsource),"lang"in t&&i(22,m=t.lang),"displayconsentdescription"in t&&i(4,p=t.displayconsentdescription),"translationurl"in t&&i(23,v=t.translationurl),"modalconsents"in t&&i(24,_=t.modalconsents)},t.$$.update=()=>{33554433&t.$$.dirty[0]&&f&&a&&(a&&(b=a,g=!0),l&&(E=l),M()),1&t.$$.dirty[0]&&(a||(()=>{N=!1;const t=new URL(`${h}/api/v2/gm/legislation/consents`);fetch(t.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.ok?t.json():(N=!0,t.json().then((t=>(console.error(t),X(t))))))).then((t=>{if(!N){if(x=t,localStorage.getItem("playerConsents")){try{i(9,S=JSON.parse(localStorage.getItem("playerConsents")))}catch(t){return console.error(t),X(t)}return}return i(9,S=x.map((t=>({id:t.id,status:D.denied.key,friendlyName:t.friendlyName,tagCode:t.tagCode,selected:null,mustAccept:t.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(S)),S}})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!1)}))})()),34&t.$$.dirty[0]&&d&&o&&ku(o,d),36&t.$$.dirty[0]&&c&&o&&xu(o,c),40&t.$$.dirty[0]&&o&&Su(o,`${u}.Style`,void 0),4194304&t.$$.dirty[0]&&m&&function(t){jp.set(t)}(m),8388608&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v);fetch(t.href).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{av(e,t[e])}))})).catch((t=>{console.log(t)}))})()},[a,d,c,u,p,o,y,w,k,S,A,I,R,O,s,n,r,()=>Nc(this,null,(function*(){if(!C)return;C=!1;const t=[],e=[];if(Object.keys(O).forEach((i=>{const r=S.find((t=>t.tagCode===i));O[i]!==R[i]&&(r?t.push({tagCode:i,status:O[i]?D.accepted.value:D.denied.value}):e.push({tagCode:i,status:O[i]?D.accepted.value:D.denied.value}))})),!g)return localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(e)},window.location.href),void(C=!0);const o=new URL(`${h}/api/v1/gm/user-consents/${E}`);try{const r=yield Promise.allSettled([e.length>0&&G(o.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})}),t.length>0&&G(o.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:t})})]);r.forEach(((r,o)=>{if("rejected"===r.status||!1===r.value.ok){const r=o<e.length?e[o]:t[o-e.length];i(13,O[r.tagCode]=R[r.tagCode],O)}})),r.every((t=>"fulfilled"===t.status))&&(localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),i(12,R=Rc({},O)))}catch(t){z(t instanceof TypeError?r("saveChangesError"):t.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{C=!0,i(14,s=!1)}})),F,V,l,h,m,v,_,f,function(t){I[t.categoryTagCode]=this.checked,i(11,I)},t=>F(t.categoryTagCode),(t,e)=>e.category.categoryTagCode===t.categoryTagCode,t=>V(0,t.category,t.id),t=>V(0,null,t.id),function(t){su[t?"unshift":"push"]((()=>{n=t,i(15,n)}))},function(t){su[t?"unshift":"push"]((()=>{o=t,i(5,o)}))}]}"undefined"!=typeof window&&(customElements.define=(hv=customElements.define,function(...t){try{return hv.apply(this,t)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}),Promise.resolve().then((()=>wc)).then((({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)}))),customElements.define("circle-exclamation-icon",Eu(class extends yu{constructor(t){super(),fu(this,t,null,dv,Pc,{})}},{},[],[],!0));class Rv extends yu{constructor(t){super(),fu(this,t,Tv,Iv,Pc,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},cv,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),mu()}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),mu()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),mu()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),mu()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),mu()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),mu()}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),mu()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),mu()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),mu()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),mu()}}Eu(Rv,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);const Ov=Object.freeze(Object.defineProperty({__proto__:null,default:Rv},Symbol.toStringTag,{value:"Module"}));if(yc.PlayerConsents_ce=Ov,yc.SvelteComponent=yu,yc.append_styles=Fc,yc.binding_callbacks=su,yc.create_custom_element=Eu,yc.detach=Hc,yc.element=$c,yc.flush=mu,yc.init=fu,yc.insert=Vc,yc.noop=zc,yc.onMount=ru,yc.safe_not_equal=Pc,yc.setClientStyling=ku,yc.setClientStylingURL=xu,yc.setStreamStyling=Su,"undefined"!=typeof window){let t=function(t){return function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=t(customElements.define),Promise.resolve().then((()=>yc)).then((t=>t.PlayerConsents_ce)).then((({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element)}))}const Dv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.validationChange=e(this,"validationChange",7),this.isSelectingAddress=!1,this.lastPostalCode=null,this.pinAttemptsExceeded=!1,this.documentIdNineDigits=!1,this.selectedCountry="",this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.lastStep="",this.emitValue=!1,this.form=null,this.errorCode="",this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registerCredentialsEvent=null,this.twofaDestination="",this.postalcodelength=5,this.registrationStepsState={regId:null},this.getIgnoreCountry=t=>"PostalCode"===t.name&&this.haspostalcodelookup&&!this.listOfInputs.some((t=>"CountryCode"===t.name)),this.getStepClass=t=>this.currentStep===t?"bullet active":this.currentStep>t?"bullet checked":"bullet",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.handleInitialClick=t=>{this.isInitalInteraction&&(Ec("register_start",{field:t.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.haspostalcodelookup=!1,this.ignorebtag=!1,this.enableSouthAfricanMode=!0,this.errorMessage="",this.isFormValid=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=!1,this.registrationStep="",this.forms={},this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0,this.addresses=[],this.addressUpdateKey=0,this.currentStep=1}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href);const t=Number(this.registrationStep.replace("Step",""));this.currentStep=t}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((t=>t.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(t){this.listOfInputValidity.find((e=>e.name==t.detail.name)).isValid=t.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(t){var e,i,r,o;this.listOfInputValues.find((e=>{e.name==t.detail.name&&(e.value=t.detail.value,e.type=t.detail.type||null)}));const{name:s,value:n}=t.detail;if(s===mc){let e=t.detail.value;"identitycard"===(e||"").replace(fc,"").toLowerCase()&&(e=vc),window.documentTypeValue=e;const i=this.listOfInputValues.find((t=>t.name===uc));i&&(i.value="");const r=this.listOfInputValidity.find((t=>t.name===uc));return r&&(r.isValid=!1),window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""})),void window.dispatchEvent(new CustomEvent("documentNumberResetValidation"))}const a=window.documentTypeValue;if(s===uc&&a===pc)if(8===n.length||9===n.length){const t=(t=>{if(!t)return null;const e=t.slice(0,6),i=parseInt(e.slice(0,2),10),r=e.slice(2,4),o=e.slice(4,6),s=$e(`${i>(new Date).getFullYear()%100?1900+i:2e3+i}${r}${o}`,"yyyyMMdd",new Date);return p(s)?at(s,"yyyy-MM-dd"):null})(n);window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:t||""})),this.documentIdNineDigits=!0}else this.documentIdNineDigits&&window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:""})),this.documentIdNineDigits=!1;if(s===_c){const o=null!==(i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value)&&void 0!==i?i:{};let s="string"==typeof o.phone?o.phone:"";s.startsWith("0")&&(s=s.slice(1));const n=this.listOfInputValues.find((t=>t.name===_c));n&&(n.value={prefix:null!==(r=o.prefix)&&void 0!==r?r:"",phone:s})}if(this.haspostalcodelookup){const{name:e,value:i}=t.detail;if("CountryCode"===e&&(this.selectedCountry=i,"GB"===i&&(this.selectedCountry="UK"),this.resetAllAddressFields(),window.dispatchEvent(new CustomEvent("countryCodeUpdated",{detail:{name:e,value:this.selectedCountry}}))),"PostalCode"===e)if(this.listOfInputs.some((t=>"CountryCode"===t.name))||(this.selectedCountry="UK"),!this.isSelectingAddress&&this.addresses.length>0&&i!==this.lastPostalCode&&(this.addresses=[]),i.length>=this.postalcodelength){if(this.isSelectingAddress)return;if(!this.lastPostalCode||this.lastPostalCode!==i||0===this.addresses.length){const t=this.selectedCountry||(null===(o=this.listOfInputValues.find((t=>"CountryCode"===t.name)))||void 0===o?void 0:o.value)||"";"GB"!==this.selectedCountry&&"UK"!==this.selectedCountry||(this.addrDebounce&&clearTimeout(this.addrDebounce),this.addrDebounce=setTimeout((()=>{this.fetchAddresses(t,i)}),500)),this.lastPostalCode=i}}else i.length<this.postalcodelength&&(this.addresses=[],this.lastPostalCode=null)}this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(t.detail.name,t.detail.value)}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;this.listOfInputValues=this.listOfInputValues.map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{value:i||""}):"address2"===t.name?Object.assign(Object.assign({},t),{value:r||""}):"City"===t.name?Object.assign(Object.assign({},t),{value:e||""}):t)),this.forms[this.registrationStep]&&(this.forms[this.registrationStep]=this.forms[this.registrationStep].map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{defaultValue:i}):"address2"===t.name?Object.assign(Object.assign({},t),{defaultValue:r}):"City"===t.name?Object.assign(Object.assign({},t),{defaultValue:e}):t))),this.addressUpdateKey=Date.now(),this.forms=Object.assign({},this.forms),this.stepsStateMachine({event:"set",type:"values"}),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.isSelectingAddress=!1}handleCountryCodeUpdateGlobal(t){const{name:e}=t.detail;if("CountryCode"===e){const t=localStorage.getItem("registrationStepsState");if(t){const e=JSON.parse(t);Object.keys(e).forEach((t=>{e[t]&&e[t].registerUserData&&["address1","address2","City","PostalCode"].forEach((i=>{e[t].registerUserData[i]&&(e[t].registerUserData[i].value="")}))})),localStorage.setItem("registrationStepsState",JSON.stringify(e))}}}handleRequestTwofa(){if(!this.twofaDestination)return;const t=new URL(`${this.endpoint}/api/v1/gm/legislation/twoFaCode/`),e=new Headers({"Content-Type":"application/problem+json; charset=utf-8"}),i=JSON.stringify({channel:"Sms",destination:this.twofaDestination});fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>{t.ok||t.json().then((t=>{var e;const i=null===(e=t.thirdPartyResponse)||void 0===e?void 0:e.errorCode;this.errorMessage=bc(i,this.language)||bc("requestTwofaError",this.language)}))})).catch((t=>console.log(t)))}messageHandler(t){t.data&&"isConsentsValid"===t.data.type&&(this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=t.data.isValid,this.isConsentValid=t.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}handleBirthDateUpdated(t){var e;const i=t.detail.birthDate;if((null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value)!==pc)return;const r=this.listOfInputValues.find((t=>t.name===uc));if(!i)return r.value="",void window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""}));const o=i.replace(gc,"").slice(2);r.value=r.value&&r.value.length>=6?o+r.value.slice(6):o,window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:r.value}))}async componentWillLoad(){await customElements.whenDefined("general-input");const t=await this.getRegisterConfig();this.formatConfig(t),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap(),this.isLoading=!1}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setupConditionalValidationMap(){for(const t of this.listOfInputs){const e=[],i=[];for(const r of t.validate.custom)r.correlationField&&r.correlationValue?i.push(r):e.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},t.validate);i.custom=[...e,r];const o=r.correlationField,s=r.correlationValue;this.conditionalValidationMap[o]=this.conditionalValidationMap[o]||{},this.conditionalValidationMap[o][s]=this.conditionalValidationMap[o][s]||{},this.conditionalValidationMap[o][s][t.name]=i}}}handleConditionalValidation(t,e){if(this.conditionalValidationMap[t]&&this.conditionalValidationMap[t][e])for(const[i,r]of Object.entries(this.conditionalValidationMap[t][e])){const t=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[t]&&(this.forms[t][this.registrationStep].find((t=>t.name===i)).validate=r,this.validationChange.emit({validation:r,field:i}))}}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.errorMessage="",this.registerErrors=!1,this.setRegisterStep()}backHandler(t){t.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.errorMessage="",this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let t="",e="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(t||(t=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:t),e||(e=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:e))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:t,userPassword:e}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(t){var e;const i=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(t.event){case"set":if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];t.fields=this.listOfInputs,t.actions=this.listOfActions,t.fieldsValidity=this.listOfInputValidity}"values"==t.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((t,e)=>(t[e.name]={value:e.value,isDuplicate:e.isDuplicate},t)),{})),i();break;case"get":const r=JSON.parse(localStorage.getItem("registrationStepsState"));if(!r)return;if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];this.listOfInputs=t.fields,this.listOfActions=t.actions,this.listOfInputValidity=t.fieldsValidity}if("values"==t.type){const t=r[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(t).map((e=>({name:e,value:t[e].value,isDuplicate:t[e].isDuplicate})));let i=null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value;"Identity Card"===i&&(i=vc),window.documentTypeValue=i,this.listOfInputValues.forEach((t=>{const e=this.listOfInputs.find((e=>e.name===t.name));e&&(e.defaultValue=t.value,"togglecheckbox"===e.inputType&&e.data.subFields.forEach((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));t.defaultValue=e.value})))}))}this.isConsentReady=this.listOfActions.some((t=>"/Consents"===t)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}triggerNotification(t,e="WidgetNotification"){window.postMessage({type:e,data:{type:"error",message:t}},window.location.href)}getRegisterConfig(t){const e=new URL(`${this.endpoint}/v1/player/legislation/registration/config/`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),t&&e.searchParams.append("registrationId",t);const r={method:"GET",headers:i};return new Promise(((t,i)=>{this.isLoading=!0,fetch(e.href,r).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage=bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),this.triggerNotification(this.errorMessage)}))))).then((e=>(this.isLoading=!1,e?t(e):i("Get register config is empty or has an error."))),(t=>(console.error("Get register config is empty or has an error: ",t),i(t)))).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const t=new URL(`${this.endpoint}/v1/player/legislation/registration/step/`),e={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((t=>!t.isDuplicate)).reduce(((t,e)=>("TypeOfPublicArea"===e.name?t[e.name]=e.value.toLowerCase():"tel"===e.type?(t.MobilePrefix=e.value.prefix,t[e.name]=e.value.phone):"checkboxgroup"===e.type?null!==e.value&&Object.entries(e.value).forEach((([e,i])=>{t[e]=i?"true":"false"})):t[e.name]="toggle"===e.type?e.value?"true":"false":e.value,t)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(e),headers:i};this.lastStep===this.registrationStep&&Ec("register_submit",{registrationId:this.registrationID}),fetch(t.href,r).then((t=>t.ok?("Step1"===this.registrationStep?Ec("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:e.registerUserDto.IBAN,username:e.registerUserDto.Username}}):"Step2"===this.registrationStep?Ec("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:e.registerUserDto.Gender,fullName:`${e.registerUserDto.FirstnameOnDocument} ${e.registerUserDto.LastNameOnDocument}`,city:e.registerUserDto.City}}):"Step3"===this.registrationStep&&Ec("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:e.registerUserDto.PersonalID,documentType:e.registerUserDto.DocumentType}}),t.json()):t.json().then((t=>(this.errorCode=t.thirdPartyResponse.errorCode,"GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?this.errorMessage=t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?this.errorMessage=bc(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?(this.errorMessage=t.thirdPartyResponse.message,"The Potvrdite SMS is required."==t.thirdPartyResponse.message&&(this.errorMessage=bc("GmErr_BadRequest_INVALID_CODE",this.language))):"GmErr_ATTEMPTS_EXCEEDED"==this.errorCode?(this.pinAttemptsExceeded=!0,this.errorMessage=bc("GmErr_ATTEMPTS_EXCEEDED",this.language)||bc(this.errorCode,this.language)):this.errorMessage=bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),this.triggerNotification(this.errorMessage),Promise.reject(this.errorMessage)))))).then((t=>{this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.find((t=>"/request-2FA"===t))&&(this.twofaDestination=Object.values(this.listOfInputValues.find((t=>"tel"===t.type)).value).join(""),this.handleRequestTwofa()),this.listOfActions.some((t=>"/register"==t))?(this.listOfActions.some((t=>"/generate-2FA-code/Generate2FACode"==t))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((t=>t==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((t=>{this.formatConfig(t),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}),(t=>{this.triggerNotification(t)})))})).catch((t=>{this.isLoadingPOST=!1,console.error(t)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const t=new URL(`${this.endpoint}/v1/player/legislation/register/`),e=new Headers;e.append("Content-Type","application/json"),e.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:e};fetch(t.href,i).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),this.triggerNotification(this.errorMessage),Ec("register_fail",{error:this.errorMessage})}))))).then((t=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==t?void 0:t.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:bc("successMessage",this.language)}},window.location.href),Ec("register_closed",{userId:t.userId}))})).catch((t=>{this.isLoading=!1,console.error(t)})).finally((()=>{this.isLoading=!1}))}formatConfig(t){if(this.listOfInputs=t.content.fields.flatMap((t=>{const e=t.validate.custom.find((t=>"duplicate-input"===t.rule)),i=Object.assign({},t);return e?[i,Object.assign(Object.assign({},t),{name:`${t.name}Duplicate`,displayName:e.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((t,e)=>{var i;return"togglecheckbox"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?e.data.subFields.forEach((e=>{t.push({name:e.name,isValid:this.setInitialValidStatus(e)})})):t.push({name:e.name,isValid:this.setInitialValidStatus(e)}),t}),[]),this.listOfInputValues=this.listOfInputs.reduce(((t,e)=>{var i;const r=null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&e.data.subFields.forEach((e=>{var i;t.push({name:e.name,value:"checkbox"==(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),t.push({name:e.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),t}),[]),this.btag&&this.addBtagValue(),this.listOfActions=t.content.actions.map((t=>t)),this.registrationID=t.content.registrationID,this.registrationStep=t.content.step,this.listOfActions.some((t=>"/register"==t))&&(this.lastStep=this.registrationStep),this.listOfActions.some((t=>"/Consents"==t))){if(this.isConsentReady)return this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var e;this.forms=Object.assign(Object.assign({},this.forms),{[this.registrationStep]:this.listOfInputs.map((t=>Object.assign({},t)))}),this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{cc[t]=cc[t]||{};for(let i in e[t])cc[t][i]=e[t][i]})),t(!0)}))}))).then((()=>{this.listOfInputs.forEach((t=>{var e,i;return this.addTranslation(t),"togglecheckbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&t.data.subFields.forEach((t=>this.addTranslation(t))),"checkboxgroup"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(t),t.data.subFields.forEach((t=>this.addTranslation(t)))),t}))})).catch((t=>{console.error("Failed to fetch translations:",t)})),this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const t=this.listOfInputs.find((t=>"btag"===t.name.toLowerCase()));t&&(t.defaultValue=this.btag);const e=this.listOfInputValues.find((t=>"btag"===t.name.toLowerCase()));e&&(e.value=this.btag)}addTranslation(t){cc[cc[this.language]?this.language:"en"][t.name]&&Object.keys(cc[this.language][t.name]).forEach((e=>{t[e]=cc[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o,s;return"checkbox"==(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&0==(null===(i=t.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=t.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(o=t.validate)||void 0===o?void 0:o.mandatory)||"true"===t.defaultValue)&&(null!==t.defaultValue||!1===(null===(s=t.validate)||void 0===s?void 0:s.mandatory)||!1)}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){const e=t.filter((t=>{var e;const i=this.listOfInputs.find((e=>e.name===t.name)),r=null===(e=this.listOfInputValues.find((e=>e.name===t.name)))||void 0===e?void 0:e.value;return!(i&&!i.validate.mandatory&&(null==(o=r)||("string"==typeof o?""===o.trim():Array.isArray(o)?0===o.length:"object"==typeof o&&0===Object.keys(o).length)))&&!1===t.isValid;var o}));return e.length>0}renderErrorMessage(t){return i("p",{class:"registration registration__error-message"},t)}resetAllAddressFields(){this.listOfInputValues=this.listOfInputValues.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{value:""}):t)),Object.keys(this.forms).forEach((t=>{this.forms[t]=this.forms[t].map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{defaultValue:""}):t))})),this.listOfInputValidity=this.listOfInputValidity.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{isValid:!1}):t)),this.addresses=[],this.forms=Object.assign({},this.forms)}fetchAddresses(t,e){var i;const r=null===(i=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===i?void 0:i.value;if(!r||r.length<this.postalcodelength)return;window.dispatchEvent(new CustomEvent("addressFetchStarted",{detail:{postalCode:e}}));const o=new URL(`${this.endpoint}/api/pam/v1/lookup/addresses?country=${t}&postalCode=${e}`),s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json"),fetch(o.href,{method:"GET",headers:s}).then((async t=>{if(!t.ok){const e=await t.json();throw new Error(`Failed to fetch addresses: ${e.message||JSON.stringify(e)}`)}return t.json()})).then((t=>{var e;const i=null===(e=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===e?void 0:e.value;this.addresses=i&&i.length>=this.postalcodelength&&t.addresses||[]})).catch((()=>{this.addresses=[],this.lastPostalCode=null}))}renderForm(){return i("div",null,i("div",{class:"RegisterTimeline custom__reg"},i("button",{class:"RegisterBackButton "+("Step1"==this.registrationStep?"disabledRegBtn":""),onClick:t=>this.backHandler(t)},i("span",{class:"arrow"},"←"),"Back"),i("div",{class:"RegisterTimelineWrapper"},i("div",{class:"RegisterTimeline__content"},i("div",{class:"step step__one"},i("span",{class:this.getStepClass(1),"data-number":"1"})),i("div",{class:"connector"}),i("div",{class:"step step__two"},i("span",{class:this.getStepClass(2),"data-number":"2"})),i("div",{class:"connector"}),i("div",{class:"step step__three"},i("span",{class:this.getStepClass(3),"data-number":"3"})))),this.errorMessage&&i("p",{class:"RegisterTimeline__errorMsg",innerHTML:this.errorMessage})),i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form",ref:t=>this.form=t,onClick:this.handleInitialClick},this.forms[this.registrationStep]&&this.forms[this.registrationStep].map((t=>{var e,r;return i("div",{key:t.name,class:"input-wrapper "+(this.ignorebtag&&"Btag"===t.name?"hide-btag":"")},i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,options:t.data?"checkboxgroup"===t.inputType.toLowerCase()||"togglecheckbox"===t.inputType.toLowerCase()?t.data.subFields:t.data.values:[],defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,mbSource:this.mbSource,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,"date-format":this.dateFormat,"twofa-destination":this.twofaDestination,"twofa-resend-interval-seconds":null===(e=t.customInfo)||void 0===e?void 0:e.twofaResendIntervalSeconds,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick,haspostalcodelookup:this.haspostalcodelookup,addresses:this.haspostalcodelookup?this.addresses:null,postalcodelength:this.haspostalcodelookup?this.postalcodelength:null,"enable-south-african-mode":this.enableSouthAfricanMode,key:["address1","address2","City"].includes(t.name)?`${t.name}-${this.addressUpdateKey}`:t.name,"ignore-country":this.getIgnoreCountry(t),"pin-attempts-exceeded":this.pinAttemptsExceeded}),(null===(r=t.customInfo)||void 0===r?void 0:r.description)&&i("div",{class:"input-description"},t.customInfo.description))})),this.forms[this.registrationStep]&&this.isConsentReady&&this.renderConsents(),this.forms[this.registrationStep]&&this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage}))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",null,this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},i("button",{class:`registration__button registration__button--next ${this.registrationStep} ${!this.isFormValid||this.pinAttemptsExceeded?"registration__button--disabled":""}`,type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!!this.pinAttemptsExceeded||!this.isFormValid},bc("Step2"===this.registrationStep?"verifyButton":this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:t=>this.backHandler(t)},bc("backButton",this.language))))}render(){return this.isLoading&&!this.registerErrors?i("p",{class:"registration registration__loading-message"},bc("loadingMessage",this.language)):!this.isLoading&&this.registerErrors?this.renderErrorMessage(this.errorMessage):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};Dv.style='@charset "UTF-8";\n*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n.registration .RegisterTimeline.custom__reg {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 40px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimeline__errorMsg {\n width: 100%;\n text-align: center;\n margin-top: 40px;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n padding: 10px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n all: unset;\n font-size: var(--emw--pam-page-title, 16px);\n color: var(--emw--color-black, #000000);\n cursor: pointer;\n padding: 8px 8px 8px 0;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton.disabledRegBtn {\n opacity: 0;\n pointer-events: none;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton .arrow {\n margin-right: 6px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n max-width: 100%;\n width: 100%;\n margin-top: 20px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .RegisterTimeline__content {\n width: 300px;\n display: flex;\n align-items: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .step {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--emw--pam-page-title, 16px);\n position: relative;\n background-color: var(--emw--registration-input-bg, #f0f5f9);\n color: var(--emw--color-gray-150, #979797);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.active {\n background: var(--emw--color-blue-primary, #111fa3);\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet:not(.checked)::before {\n content: attr(data-number);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked {\n background: var(--emw--color-primary, #22B04E);\n color: transparent;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked::before {\n content: "✓";\n font-size: 25px;\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .connector {\n flex: 1 1 auto;\n min-width: 40px;\n height: 2px;\n margin: 0 10px;\n border-radius: 2px;\n background-color: var(--emw--color-gray-50, #F9F8F8);\n}\n\n.registration__form {\n grid-template-columns: repeat(1fr);\n}\n\n.registration__error-message {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const Nv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return a("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},i("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Nv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const zv=class{constructor(i){t(this,i),this.sendOriginalValidityState=e(this,"sendOriginalValidityState",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let r=!1;return t&&(r=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}}))}setValidity(){var t,e;return!!this.noValidation||(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed)))&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return a("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return a(`${t}`,this.language)?a(`${t}`,this.language):e}return(null===(o=this.passwordComplexity)||void 0===o?void 0:o.every((t=>t.passed)))||this.showPopup?void 0:a("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,r=this.passwordComplexity.every((t=>t.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},a("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},a(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:e,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((t,e)=>i("div",{key:e},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),i("span",null,a(`${t.ruleKey}`,this.language)?a(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return i("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},i("p",{class:"customreg-password__complexity--title"},a("PasswordMustContain",this.language)),i("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>i("div",{class:"customreg-password__complexity--rule",key:e},i("span",{class:`customreg-password__complexity--icon ${t.passed?n.PASSWORD_COMPLEXITY_PASSED:n.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),i("span",null,a(t.ruleKey,this.language)||t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fe895585dd908f75eee4ba797dc9c02b237bed7f",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"844bdb3dab98e62cc5d92a761b85adcdc44831d0",class:"password__wrapper--flex"},i("label",{key:"28041267a6df666e7df3660a907f995eff092ae1",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"79c300643134802f04d8f909fe7bb3895911c88a",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"43ae58549e42ba59054162c25887ec36eb826aaa",class:"password__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"0edcfed0ea65666537240f531e5239bd5b11181e",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&i("small",{key:"c8aeba074e66b771d745194fec535aa0b82de6d8",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zv.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const Gv=class{constructor(i){t(this,i),this.sendAddressValue=e(this,"sendAddressValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),r=`${e.street}`.trim(),o=`${e.city}`.trim();this.sendAddressValue.emit({city:o,address1:i,address2:r}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:o}),r&&this.valueHandler({name:"address2",value:r}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),r=(null==i?void 0:i.ref)||t.address1||t.PostalCode;r.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),r.focus()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),r=e.includes(this.addressesDropdownRef),o=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||r||o||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let r="";this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid");let o="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,s=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&o,n=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&o,h=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return i("div",{key:"f274a95e0a64ec67f01be8a5cf053d475c16e9ca",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"23aa865fd99048cb5c638f0b66b4ff3e8e451d97",class:"text__wrapper--flex"},i("label",{key:"c5d12c1548ec8bfde130a95cc20783f20295a253",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"db2f499ff6ca8f4e3b1a8ac83e7f8856fc1ca888",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"a1d7ef42855a21f336dbbb337cc8cb644de0c655",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"18a6812958691749d0c7c3396ce69a3f46f7f1e4",class:"input__text-wrapper"},i("input",{key:"41aa9e6b8817eee602347d7a3a909f0d81985d3d",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${r}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!o&&i("p",{key:"7083c22e5ebb306ad9ca3c4dc29dcd66bc8b17d5",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},a("enterIEAddressManually",this.language)),s&&i("div",{key:"95ad996e43da19386f4576eb35850c7ba09e1620",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},i("div",{key:"3997d92f28ec2ecee49b2480a5edb0a8431aa1c8",class:"options"},this.addresses.map(((t,e)=>i("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),h&&i("div",{key:"cf5f9c9f5f96aa2ef316eb44e97768e3552c4a2e",class:"postalcode__loading-spinner"},i("div",{key:"d9b0dda1be9fa871dee4b7d415f84a28b81c3362",class:"loading-spinner"}),i("span",{key:"b5a6c58d910f5be519617288310a8a456e7e8c1c"},a("searchingForAddresses",this.language))),n&&i("div",{key:"2b5503571824ec9f04f58959b8b38ff279fa6d1d",class:"postalcode__no-results-message"},a("postalLookUpNoAddressFound",this.language))),i("small",{key:"00e0cbe15e10c40c8f43939123c10819592fdce2",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Gv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Mv=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return a("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"33493de460303a32a37d253a0fd5f9da59676542",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"8aef7aa84a119742e05d72d976c936a560154b3f",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),i("label",{htmlFor:`${t.label}__input`},t.label)))),i("small",{key:"bec44ed4007e408ddeb0b0293b82e034c8e165f2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"a3b0a041beabe3f14661c0af8cd970040d060435",class:"radio__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Mv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const Bv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return a("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t,e;let r="";return this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"b0ed504667761e5fd77e0ac13382b467448a1944",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6",class:"select__wrapper--flex"},i("label",{key:"ad592c8c98ecbec1961d22cdfeb8cec910291ea8",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad",class:this.validation.mandatory?"select__label--required":""})),i("div",{key:"29d0f504d0f51175818dffffb882ac4e6e9c3bde",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"66e524ffebc43f9418e90b3bd2d7ae62eba47da3",class:"select__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?i("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):i("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),i("small",{key:"0143b538740c3a8e9bfcab6bbb44660355c40cf7",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const Uv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(t.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){return!!this.inputReference&&(!(this.validation.mandatory&&(!this.phoneValue||""===this.phoneValue.trim()))&&(this.phoneValue&&""!==this.phoneValue.trim()?!(this.validation.minLength&&this.phoneValue.length<this.validation.minLength)&&(!(this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength)&&!(this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))):!this.validation.mandatory))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)?a(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||this.validation.minLength&&this.phoneValue&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue&&this.phoneValue.length>this.validation.maxLength?a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?a("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"f534de21d5597a3e90912eb87fff893511d09920",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"431fb8cbaea0d2244847823ea4d04d8c73a5341c",class:"tel__wrapper--flex-label"},i("label",{key:"2eb210b2f0c2e0e632997f59fe7aa667578f72fd",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2d912b828f7d9475a1bbb5bac13495779f31198e",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"ce4433263d27dc9d3fb2caf45069d7a92e9ae3a7",class:"tel__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"480cd17eafb4f2ff1e396531429177cb3130eb95",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"5f2292c8509e5f68786d0f462c689102b1c75dc3",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"77232e119eed4960f5e1d809507b8585dd112256",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"0d925cee41881c8c822073790e26ca7dc4a81049",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Uv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const Pv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==n.FIRSTNAME_ON_DOCUMENT&&this.name!==n.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(n.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let o="";"address1"===this.name?o=i:"address2"===this.name?o=r:"City"===this.name&&(o=e),this.value=o,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===n.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===n.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===n.PASSPORT)return n.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===n.SOUTH_AFRICAN_ID){if(i.length!==n.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!n.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let r="";for(let t=1;t<12;t+=2)r+=e[t];return(10-(i+(2*parseInt(r,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;const o=this.value.trim();if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":a(e.errorKey,this.language)}if(""===o&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return a(`${i}`,this.language)||r}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return a(`${t}`,this.language)?a(`${t}`,this.language):e}return""}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"7e4006b92f6c1e2d8b39694fd85fad7d672c18fd",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"e70be4a8daef6cbaa25d438b4d1edaecf6db5159",class:"text__wrapper--flex"},i("label",{key:"0b09f624c460c9d777dd10b887430a4e6de8cacc",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"df36d8f44540b35a65f816ade477c4f4ff077977",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"85e25624de052cad543c883514ba0c0a522d249f",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"bf34796489a118f3c4849c3b8b7680fb77f5a2eb",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"725e4208a8170b6cf34869c44ec8cb29c2c7c93f",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Pv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Lv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return a("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"828751327e59e9649afc04c6c9f7a02ef7dcae8d",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"d02a2a6ef595aaf7142cbc6e9681394ee4db8fee",class:"togglecheckbox__wrapper--flex"},i("input",{key:"fca6401ef6eb178f53471362444d54ed69086429",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"3781a8fdfeb719422693bcd541a4a3fe708e705a",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"27a4c6b047cd332407ee40c82cf7be1914ed34c9",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"f1367d7e061d20ad68c24dfbe3147e6b67df746f",class:"togglecheckbox__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"98d42103554de4d14a65eafd1722bf9d587a27f1",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Lv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';const jv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.resendCode=e(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,r=i.value.slice(-1);if(i.value=r,!r)return;this.code[e]=r,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[e+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const r=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!r)return;const o=r.slice(0,this.validation.maxLength).split("");this.code=[...o,...new Array(this.validation.maxLength-o.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=o.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const s=this.inputRefs[Math.min(o.length,this.inputRefs.length-1)];null==s||s.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const t=this.code.join(""),e=t.length===this.validation.maxLength,i=null!==t.match(this.validationPattern);this.isValid=e&&i}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const e=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey;e&&(this.errorMessage=a(e,this.language))}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return i("div",{key:"08b9139f1c2236dd40a045517a9623ad966f29d3",class:"twofa",ref:t=>this.stylingContainer=t},i("div",{key:"7528885100be3d450ec52aafd6085a4c852710c8",class:"twofa__error-message"},i("p",{key:"51dab3f02156b5eb3b7408f06f2d359cfbda11a7"},this.errorMessage)),i("div",{key:"f336f89ecee0724663b1bbb4d443bb834336b5c1",class:"twofa__description",innerHTML:a("twofaDescription",this.language,{values:{destination:this.destination}})}),i("div",{key:"5127127ccc8e50428f8319fddc9e21606f3b4148",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>i("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),i("div",{key:"be82ae1192129d571275b78c8097c3023468cf3e",class:"twofa__button-wrapper"},i("p",{key:"11de61d738ffa74bfd44f0d7c88fc4e456647d0c",class:"twofa__resend-message"},a("twofaResendMessage",this.language)),i("button",{key:"84d5c55c4d9bf024164ec52e2100cfcc8c236ac2",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?a("twofaResendButton",this.language):this.formatTime())))}get host(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStylingUrl:["handleStylingUrlChange"],clientStyling:["handleStylingChange"]}}};jv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";export{h as checkbox_group_input,d as checkbox_input,Ye as date_input,Ze as email_input,dc as general_input,Dv as general_registration_multistep,Nv as number_input,zv as password_input,Gv as postalcode_input,Mv as radio_input,Bv as select_input,Uv as tel_input,Pv as text_input,Lv as toggle_checkbox_input,jv as twofa_input}