@everymatrix/player-account-controller-nd 1.66.1 → 1.66.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/components/{PlayerAccountControllerNd-gtGxOlzr.js → PlayerAccountControllerNd-C-gx4fZ-.js} +9 -9
  2. package/components/{PlayerAccountControllerNd-kA_PT5aP.js → PlayerAccountControllerNd-DKwVpFJI.js} +9 -9
  3. package/components/PlayerAccountControllerNd-HkDZ9PkO.cjs +1 -0
  4. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B3S3aE0o.js → PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js} +843 -769
  5. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs +26 -0
  6. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-HpGAoH_E.js → PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js} +1065 -991
  7. package/components/{PlayerAccountGamingLimitsWrapper2Nd-fpNsXAyX.js → PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js} +1 -1
  8. package/components/{PlayerAccountGamingLimitsWrapper2Nd-CErgPgvk.cjs → PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs} +1 -1
  9. package/components/{PlayerAccountGamingLimitsWrapper2Nd-4ZYALP2a.js → PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js} +1 -1
  10. package/components/{PlayerAccountSelfExclusionNd-CIP0pLzc.js → PlayerAccountSelfExclusionNd-BTHM1Lql.js} +1 -0
  11. package/components/{PlayerAccountSelfExclusionNd-C6g9CN37.js → PlayerAccountSelfExclusionNd-C64gq5do.js} +1 -0
  12. package/components/{PlayerAccountSelfExclusionNd-t6Q0Nexu.cjs → PlayerAccountSelfExclusionNd-psZ7cU0X.cjs} +131 -131
  13. package/components/{PlayerAccountTimeout-CLxGgNmd.js → PlayerAccountTimeout-CZL2-AHn.js} +1 -1
  14. package/components/{PlayerAccountTimeout-XhHX4kXc.js → PlayerAccountTimeout-DB1Vd2mK.js} +1 -1
  15. package/components/{PlayerAccountTimeout-D-cCHJBm.cjs → PlayerAccountTimeout-DopVU6lf.cjs} +1 -1
  16. package/components/{PlayerAccountTransactionsHistory-jkghMl1H.js → PlayerAccountTransactionsHistory-BJvXF3-v.js} +1932 -1867
  17. package/components/{PlayerAccountTransactionsHistory-_Sm0nfWr.cjs → PlayerAccountTransactionsHistory-DpccQlBh.cjs} +265 -265
  18. package/components/{PlayerAccountTransactionsHistory-YbNAPwhH.js → PlayerAccountTransactionsHistory-cwuw-lF-.js} +1648 -1633
  19. package/components/{PlayerBonusHistory-BXx0_fP4.js → PlayerBonusHistory-8skqbymr.js} +1 -1
  20. package/components/{PlayerBonusHistory-DJTWzw3S.js → PlayerBonusHistory-D6yYroMc.js} +1 -1
  21. package/components/{PlayerBonusHistory-D8cY-irD.cjs → PlayerBonusHistory-lQGquKx2.cjs} +1 -1
  22. package/components/{PlayerGamingHistory-BHH-2mBi.js → PlayerGamingHistory-C6CoiIJP.js} +1 -1
  23. package/components/{PlayerGamingHistory-2WbuH8Jo.js → PlayerGamingHistory-Cqr2wcuP.js} +1 -1
  24. package/components/{PlayerGamingHistory-DV45eT8w.cjs → PlayerGamingHistory-NKEvUygB.cjs} +1 -1
  25. package/es2015/player-account-controller-nd.cjs +1 -1
  26. package/es2015/player-account-controller-nd.js +1 -1
  27. package/esnext/player-account-controller-nd.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{general-input-6HMiojaV.js → checkbox-group-input_14-BcBdDpf8.js} +7654 -3097
  30. package/stencil/{general-input-DGu8X142.js → checkbox-group-input_14-CJHYJs5Y.js} +7664 -3107
  31. package/stencil/checkbox-group-input_14-CNR6zkvw.cjs +5901 -0
  32. package/stencil/{index-9cd44522--OAp7ePk.js → index-13661b98-Bg3nkDqk.js} +88 -103
  33. package/stencil/index-13661b98-D16qyHKo.cjs +1 -0
  34. package/stencil/{index-9cd44522-C0ycW8_E.js → index-13661b98-DcT9swce.js} +84 -99
  35. package/stencil/pam-change-password-YhGkcb7G.js +25 -0
  36. package/stencil/{player-change-password-gm2-5cb5c6c1-Bu5Dac83.js → pam-change-password-f4a1e7e7-CfVbvq6Y.js} +223 -74
  37. package/stencil/pam-change-password-f4a1e7e7-DtMPJ715.cjs +125 -0
  38. package/stencil/{player-change-password-gm2-5cb5c6c1-Bi9IbxQV.js → pam-change-password-f4a1e7e7-e1XqJgP9.js} +223 -74
  39. package/stencil/pam-change-password-sLrzK4Qt.js +7 -0
  40. package/stencil/pam-change-password-uD3esedo.cjs +1 -0
  41. package/components/PlayerAccountControllerNd-DR6ofLiD.cjs +0 -1
  42. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-CWcAVks7.cjs +0 -24
  43. package/stencil/checkbox-group-input_9-BVBeSmHl.js +0 -3895
  44. package/stencil/checkbox-group-input_9-CixpoaRc.cjs +0 -2
  45. package/stencil/checkbox-group-input_9-Ckf5IThK.js +0 -3895
  46. package/stencil/general-input-C54NeVAb.cjs +0 -5636
  47. package/stencil/index-9cd44522-CqgRbQOU.cjs +0 -1
  48. package/stencil/locale-CB060R77.cjs +0 -1
  49. package/stencil/locale-Cxpe53Ym.js +0 -153
  50. package/stencil/password-input_2-BWxS0D5h.js +0 -313
  51. package/stencil/password-input_2-Bz7EgS5w.cjs +0 -193
  52. package/stencil/password-input_2-KI96oR82.js +0 -313
  53. package/stencil/player-change-password-gm2-5cb5c6c1-B561Hszb.cjs +0 -1
  54. package/stencil/player-change-password-gm2-BRh6ZaCn.js +0 -25
  55. package/stencil/player-change-password-gm2-COxZYE4t.cjs +0 -1
  56. package/stencil/player-change-password-gm2-tu3usKOk.js +0 -7
  57. package/stencil/toggle-checkbox-input-BQz8G4GG.cjs +0 -1
  58. package/stencil/toggle-checkbox-input-Bhz93bXQ.js +0 -68
  59. package/stencil/toggle-checkbox-input-lRQooUAB.js +0 -68
  60. package/stencil/tooltipIcon-ee9760a8-BCCb4EU-.js +0 -4
  61. package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-9cd44522-CqgRbQOU.cjs"),x=require("./locale-CB060R77.cjs"),Q=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),dt='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__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;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__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}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',ct=dt,$e=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=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.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((t,i)=>(t[i.name]=this.selectedValues.includes(i.name),t),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==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.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(t=>t.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){const i=t.target.checked;this.showCheckboxes=i,this.selectedValues=i?this.options.map(a=>a.name):[]}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return s.h("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},s.h("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&s.h("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),s.h("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&s.h("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map(t=>s.h("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName}))))}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};$e.style=ct;const ht='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__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}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{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}.checkbox__tooltip.visible{opacity:1}',ft=ht,Le=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",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}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderLabel(){return s.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},s.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?s.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),s.h("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),s.h("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&s.h("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Le.style=ft;function B(t){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},B(t)}function M(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function pt(t){return M(1,arguments),t instanceof Date||B(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function D(t){M(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||B(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function vt(t){if(M(1,arguments),!pt(t)&&typeof t!="number")return!1;var i=D(t);return!isNaN(Number(i))}function F(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function mt(t,i){M(2,arguments);var a=D(t).getTime(),r=F(i);return new Date(a+r)}function Ye(t,i){M(2,arguments);var a=F(i);return mt(t,-a)}var gt=864e5;function yt(t){M(1,arguments);var i=D(t),a=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var r=i.getTime(),e=a-r;return Math.floor(e/gt)+1}function ee(t){M(1,arguments);var i=1,a=D(t),r=a.getUTCDay(),e=(r<i?7:0)+r-i;return a.setUTCDate(a.getUTCDate()-e),a.setUTCHours(0,0,0,0),a}function qe(t){M(1,arguments);var i=D(t),a=i.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(a+1,0,4),r.setUTCHours(0,0,0,0);var e=ee(r),o=new Date(0);o.setUTCFullYear(a,0,4),o.setUTCHours(0,0,0,0);var n=ee(o);return i.getTime()>=e.getTime()?a+1:i.getTime()>=n.getTime()?a:a-1}function bt(t){M(1,arguments);var i=qe(t),a=new Date(0);a.setUTCFullYear(i,0,4),a.setUTCHours(0,0,0,0);var r=ee(a);return r}var wt=6048e5;function Ae(t){M(1,arguments);var i=D(t),a=ee(i).getTime()-bt(i).getTime();return Math.round(a/wt)+1}var _t={};function te(){return _t}function Z(t,i){var a,r,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((a=(r=(e=(o=i==null?void 0:i.weekStartsOn)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&e!==void 0?e:g.weekStartsOn)!==null&&r!==void 0?r:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&a!==void 0?a:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=D(t),T=C.getUTCDay(),S=(T<y?7:0)+T-y;return C.setUTCDate(C.getUTCDate()-S),C.setUTCHours(0,0,0,0),C}function _e(t,i){var a,r,e,o,n,l,c,h;M(1,arguments);var g=D(t),y=g.getUTCFullYear(),C=te(),T=F((a=(r=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:C.firstWeekContainsDate)!==null&&r!==void 0?r:(c=C.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(y+1,0,T),S.setUTCHours(0,0,0,0);var L=Z(S,i),R=new Date(0);R.setUTCFullYear(y,0,T),R.setUTCHours(0,0,0,0);var N=Z(R,i);return g.getTime()>=L.getTime()?y+1:g.getTime()>=N.getTime()?y:y-1}function xt(t,i){var a,r,e,o,n,l,c,h;M(1,arguments);var g=te(),y=F((a=(r=(e=(o=i==null?void 0:i.firstWeekContainsDate)!==null&&o!==void 0?o:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&e!==void 0?e:g.firstWeekContainsDate)!==null&&r!==void 0?r:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1),C=_e(t,i),T=new Date(0);T.setUTCFullYear(C,0,y),T.setUTCHours(0,0,0,0);var S=Z(T,i);return S}var Tt=6048e5;function Ne(t,i){M(1,arguments);var a=D(t),r=Z(a,i).getTime()-xt(a,i).getTime();return Math.round(r/Tt)+1}function w(t,i){for(var a=t<0?"-":"",r=Math.abs(t).toString();r.length<i;)r="0"+r;return a+r}var kt={y:function(i,a){var r=i.getUTCFullYear(),e=r>0?r:1-r;return w(a==="yy"?e%100:e,a.length)},M:function(i,a){var r=i.getUTCMonth();return a==="M"?String(r+1):w(r+1,2)},d:function(i,a){return w(i.getUTCDate(),a.length)},a:function(i,a){var r=i.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(i,a){return w(i.getUTCHours()%12||12,a.length)},H:function(i,a){return w(i.getUTCHours(),a.length)},m:function(i,a){return w(i.getUTCMinutes(),a.length)},s:function(i,a){return w(i.getUTCSeconds(),a.length)},S:function(i,a){var r=a.length,e=i.getUTCMilliseconds(),o=Math.floor(e*Math.pow(10,r-3));return w(o,a.length)}};const j=kt;var J={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ct={G:function(i,a,r){var e=i.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})}},y:function(i,a,r){if(a==="yo"){var e=i.getUTCFullYear(),o=e>0?e:1-e;return r.ordinalNumber(o,{unit:"year"})}return j.y(i,a)},Y:function(i,a,r,e){var o=_e(i,e),n=o>0?o:1-o;if(a==="YY"){var l=n%100;return w(l,2)}return a==="Yo"?r.ordinalNumber(n,{unit:"year"}):w(n,a.length)},R:function(i,a){var r=qe(i);return w(r,a.length)},u:function(i,a){var r=i.getUTCFullYear();return w(r,a.length)},Q:function(i,a,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(a){case"Q":return String(e);case"QQ":return w(e,2);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,a,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(a){case"q":return String(e);case"qq":return w(e,2);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,a,r){var e=i.getUTCMonth();switch(a){case"M":case"MM":return j.M(i,a);case"Mo":return r.ordinalNumber(e+1,{unit:"month"});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})}},L:function(i,a,r){var e=i.getUTCMonth();switch(a){case"L":return String(e+1);case"LL":return w(e+1,2);case"Lo":return r.ordinalNumber(e+1,{unit:"month"});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})}},w:function(i,a,r,e){var o=Ne(i,e);return a==="wo"?r.ordinalNumber(o,{unit:"week"}):w(o,a.length)},I:function(i,a,r){var e=Ae(i);return a==="Io"?r.ordinalNumber(e,{unit:"week"}):w(e,a.length)},d:function(i,a,r){return a==="do"?r.ordinalNumber(i.getUTCDate(),{unit:"date"}):j.d(i,a)},D:function(i,a,r){var e=yt(i);return a==="Do"?r.ordinalNumber(e,{unit:"dayOfYear"}):w(e,a.length)},E:function(i,a,r){var e=i.getUTCDay();switch(a){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})}},e:function(i,a,r,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(a){case"e":return String(n);case"ee":return w(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(i,a,r,e){var o=i.getUTCDay(),n=(o-e.weekStartsOn+8)%7||7;switch(a){case"c":return String(n);case"cc":return w(n,a.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(i,a,r){var e=i.getUTCDay(),o=e===0?7:e;switch(a){case"i":return String(o);case"ii":return w(o,a.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(e,{width:"short",context:"formatting"});case"iiii":default:return r.day(e,{width:"wide",context:"formatting"})}},a:function(i,a,r){var e=i.getUTCHours(),o=e/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(i,a,r){var e=i.getUTCHours(),o;switch(e===12?o=J.noon:e===0?o=J.midnight:o=e/12>=1?"pm":"am",a){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(i,a,r){var e=i.getUTCHours(),o;switch(e>=17?o=J.evening:e>=12?o=J.afternoon:e>=4?o=J.morning:o=J.night,a){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(i,a,r){if(a==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return j.h(i,a)},H:function(i,a,r){return a==="Ho"?r.ordinalNumber(i.getUTCHours(),{unit:"hour"}):j.H(i,a)},K:function(i,a,r){var e=i.getUTCHours()%12;return a==="Ko"?r.ordinalNumber(e,{unit:"hour"}):w(e,a.length)},k:function(i,a,r){var e=i.getUTCHours();return e===0&&(e=24),a==="ko"?r.ordinalNumber(e,{unit:"hour"}):w(e,a.length)},m:function(i,a,r){return a==="mo"?r.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):j.m(i,a)},s:function(i,a,r){return a==="so"?r.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):j.s(i,a)},S:function(i,a){return j.S(i,a)},X:function(i,a,r,e){var o=e._originalDate||i,n=o.getTimezoneOffset();if(n===0)return"Z";switch(a){case"X":return Oe(n);case"XXXX":case"XX":return K(n);case"XXXXX":case"XXX":default:return K(n,":")}},x:function(i,a,r,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(a){case"x":return Oe(n);case"xxxx":case"xx":return K(n);case"xxxxx":case"xxx":default:return K(n,":")}},O:function(i,a,r,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Se(n,":");case"OOOO":default:return"GMT"+K(n,":")}},z:function(i,a,r,e){var o=e._originalDate||i,n=o.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Se(n,":");case"zzzz":default:return"GMT"+K(n,":")}},t:function(i,a,r,e){var o=e._originalDate||i,n=Math.floor(o.getTime()/1e3);return w(n,a.length)},T:function(i,a,r,e){var o=e._originalDate||i,n=o.getTime();return w(n,a.length)}};function Se(t,i){var a=t>0?"-":"+",r=Math.abs(t),e=Math.floor(r/60),o=r%60;if(o===0)return a+String(e);var n=i;return a+String(e)+n+w(o,2)}function Oe(t,i){if(t%60===0){var a=t>0?"-":"+";return a+w(Math.abs(t)/60,2)}return K(t,i)}function K(t,i){var a=i||"",r=t>0?"-":"+",e=Math.abs(t),o=w(Math.floor(e/60),2),n=w(e%60,2);return r+o+a+n}const Vt=Ct;var Ie=function(i,a){switch(i){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},We=function(i,a){switch(i){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},Mt=function(i,a){var r=i.match(/(P+)(p+)?/)||[],e=r[1],o=r[2];if(!o)return Ie(i,a);var n;switch(e){case"P":n=a.dateTime({width:"short"});break;case"PP":n=a.dateTime({width:"medium"});break;case"PPP":n=a.dateTime({width:"long"});break;case"PPPP":default:n=a.dateTime({width:"full"});break}return n.replace("{{date}}",Ie(e,a)).replace("{{time}}",We(o,a))},Pt={p:We,P:Mt};const be=Pt;function Be(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}var Et=["D","DD"],Dt=["YY","YYYY"];function Qe(t){return Et.indexOf(t)!==-1}function ze(t){return Dt.indexOf(t)!==-1}function he(t,i,a){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var St={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ot=function(i,a,r){var e,o=St[i];return typeof o=="string"?e=o:a===1?e=o.one:e=o.other.replace("{{count}}",a.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+e:e+" ago":e};const It=Ot;function ye(t){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):t.defaultWidth,r=t.formats[a]||t.formats[t.defaultWidth];return r}}var Ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ft={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ut={date:ye({formats:Ht,defaultWidth:"full"}),time:ye({formats:Ft,defaultWidth:"full"}),dateTime:ye({formats:Rt,defaultWidth:"full"})};const $t=Ut;var Lt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yt=function(i,a,r,e){return Lt[i]};const qt=Yt;function oe(t){return function(i,a){var r=a!=null&&a.context?String(a.context):"standalone",e;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,n=a!=null&&a.width?String(a.width):o;e=t.formattingValues[n]||t.formattingValues[o]}else{var l=t.defaultWidth,c=a!=null&&a.width?String(a.width):t.defaultWidth;e=t.values[c]||t.values[l]}var h=t.argumentCallback?t.argumentCallback(i):i;return e[h]}}var At={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Bt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gt=function(i,a){var r=Number(i),e=r%100;if(e>20||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},jt={ordinalNumber:Gt,era:oe({values:At,defaultWidth:"wide"}),quarter:oe({values:Nt,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:oe({values:Wt,defaultWidth:"wide"}),day:oe({values:Bt,defaultWidth:"wide"}),dayPeriod:oe({values:Qt,defaultWidth:"wide",formattingValues:zt,defaultFormattingWidth:"wide"})};const Xt=jt;function se(t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=a.width,e=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=i.match(e);if(!o)return null;var n=o[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Zt(l,function(y){return y.test(n)}):Kt(l,function(y){return y.test(n)}),h;h=t.valueCallback?t.valueCallback(c):c,h=a.valueCallback?a.valueCallback(h):h;var g=i.slice(n.length);return{value:h,rest:g}}}function Kt(t,i){for(var a in t)if(t.hasOwnProperty(a)&&i(t[a]))return a}function Zt(t,i){for(var a=0;a<t.length;a++)if(i(t[a]))return a}function Jt(t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.match(t.matchPattern);if(!r)return null;var e=r[0],o=i.match(t.parsePattern);if(!o)return null;var n=t.valueCallback?t.valueCallback(o[0]):o[0];n=a.valueCallback?a.valueCallback(n):n;var l=i.slice(e.length);return{value:n,rest:l}}}var ei=/^(\d+)(th|st|nd|rd)?/i,ti=/\d+/i,ii={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ai={any:[/^b/i,/^(a|c)/i]},ri={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ni={any:[/1/i,/2/i,/3/i,/4/i]},oi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},si={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},li={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ui={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},di={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ci={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hi={ordinalNumber:Jt({matchPattern:ei,parsePattern:ti,valueCallback:function(i){return parseInt(i,10)}}),era:se({matchPatterns:ii,defaultMatchWidth:"wide",parsePatterns:ai,defaultParseWidth:"any"}),quarter:se({matchPatterns:ri,defaultMatchWidth:"wide",parsePatterns:ni,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:se({matchPatterns:oi,defaultMatchWidth:"wide",parsePatterns:si,defaultParseWidth:"any"}),day:se({matchPatterns:li,defaultMatchWidth:"wide",parsePatterns:ui,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:di,defaultMatchWidth:"any",parsePatterns:ci,defaultParseWidth:"any"})};const fi=hi;var pi={code:"en-US",formatDistance:It,formatLong:$t,formatRelative:qt,localize:Xt,match:fi,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ge=pi;var vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gi=/^'([^]*?)'?$/,yi=/''/g,bi=/[a-zA-Z]/;function wi(t,i,a){var r,e,o,n,l,c,h,g,y,C,T,S,L,R;M(2,arguments);var N=String(i),H=te(),Y=(r=(e=void 0)!==null&&e!==void 0?e:H.locale)!==null&&r!==void 0?r:Ge,W=F((o=(n=(l=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&l!==void 0?l:H.firstWeekContainsDate)!==null&&n!==void 0?n:(h=H.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=F((y=(C=(T=(S=void 0)!==null&&S!==void 0?S:void 0)!==null&&T!==void 0?T:H.weekStartsOn)!==null&&C!==void 0?C:(L=H.locale)===null||L===void 0||(R=L.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&y!==void 0?y:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var G=D(t);if(!vt(G))throw new RangeError("Invalid time value");var ie=Be(G),ae=Ye(G,ie),re={firstWeekContainsDate:W,weekStartsOn:z,locale:Y,_originalDate:G},ve=N.match(mi).map(function(I){var U=I[0];if(U==="p"||U==="P"){var X=be[U];return X(I,Y.formatLong)}return I}).join("").match(vi).map(function(I){if(I==="''")return"'";var U=I[0];if(U==="'")return _i(I);var X=Vt[U];if(X)return ze(I)&&he(I,i,String(t)),Qe(I)&&he(I,i,String(t)),X(ae,I,Y.localize,re);if(U.match(bi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return I}).join("");return ve}function _i(t){var i=t.match(gi);return i?i[1].replace(yi,"'"):t}function He(t,i){(i==null||i>t.length)&&(i=t.length);for(var a=0,r=Array(i);a<i;a++)r[a]=t[a];return r}function xi(t,i){if(t){if(typeof t=="string")return He(t,i);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?He(t,i):void 0}}function Fe(t,i){var a=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=xi(t))||i){a&&(t=a);var r=0,e=function(){};return{s:e,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(h){throw h},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,l=!1;return{s:function(){a=a.call(t)},n:function(){var h=a.next();return n=h.done,h},e:function(h){l=!0,o=h},f:function(){try{n||a.return==null||a.return()}finally{if(l)throw o}}}}function Ti(t,i){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a]);return t}function d(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t,i){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},we(t,i)}function v(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&we(t,i)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fe(t)}function je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(je=function(){return!!t})()}function ki(t,i){if(i&&(B(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function m(t){var i=je();return function(){var a,r=fe(t);if(i){var e=fe(this).constructor;a=Reflect.construct(r,arguments,e)}else a=r.apply(this,arguments);return ki(this,a)}}function f(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ci(t,i){if(B(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,i);if(B(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(t)}function Xe(t){var i=Ci(t,"string");return B(i)=="symbol"?i:i+""}function Vi(t,i){for(var a=0;a<i.length;a++){var r=i[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xe(r.key),r)}}function p(t,i,a){return i&&Vi(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,i,a){return(i=Xe(i))in t?Object.defineProperty(t,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[i]=a,t}var Mi=10,Ke=function(){function t(){f(this,t),u(this,"priority",void 0),u(this,"subPriority",0)}return p(t,[{key:"validate",value:function(a,r){return!0}}]),t}(),Pi=function(t){v(a,t);var i=m(a);function a(r,e,o,n,l){var c;return f(this,a),c=i.call(this),c.value=r,c.validateValue=e,c.setValue=o,c.priority=n,l&&(c.subPriority=l),c}return p(a,[{key:"validate",value:function(e,o){return this.validateValue(e,this.value,o)}},{key:"set",value:function(e,o,n){return this.setValue(e,o,this.value,n)}}]),a}(Ke),Ei=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",Mi),u(d(r),"subPriority",-1),r}return p(a,[{key:"set",value:function(e,o){if(o.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),a}(Ke),b=function(){function t(){f(this,t),u(this,"incompatibleTokens",void 0),u(this,"priority",void 0),u(this,"subPriority",void 0)}return p(t,[{key:"run",value:function(a,r,e,o){var n=this.parse(a,r,e,o);return n?{setter:new Pi(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(a,r,e){return!0}}]),t}(),Di=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",140),u(d(r),"incompatibleTokens",["R","u","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,o,n){return o.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),Si=6e4,Oi=36e5,Ii=1e3,P={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function E(t,i){return t&&{value:i(t.value),rest:t.rest}}function k(t,i){var a=i.match(t);return a?{value:parseInt(a[0],10),rest:i.slice(a[0].length)}:null}function A(t,i){var a=i.match(t);if(!a)return null;if(a[0]==="Z")return{value:0,rest:i.slice(1)};var r=a[1]==="+"?1:-1,e=a[2]?parseInt(a[2],10):0,o=a[3]?parseInt(a[3],10):0,n=a[5]?parseInt(a[5],10):0;return{value:r*(e*Oi+o*Si+n*Ii),rest:i.slice(a[0].length)}}function Ze(t){return k(P.anyDigitsSigned,t)}function V(t,i){switch(t){case 1:return k(P.singleDigit,i);case 2:return k(P.twoDigits,i);case 3:return k(P.threeDigits,i);case 4:return k(P.fourDigits,i);default:return k(new RegExp("^\\d{1,"+t+"}"),i)}}function pe(t,i){switch(t){case 1:return k(P.singleDigitSigned,i);case 2:return k(P.twoDigitsSigned,i);case 3:return k(P.threeDigitsSigned,i);case 4:return k(P.fourDigitsSigned,i);default:return k(new RegExp("^-?\\d{1,"+t+"}"),i)}}function xe(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Je(t,i){var a=i>0,r=a?i:1-i,e;if(r<=50)e=t||100;else{var o=r+50,n=Math.floor(o/100)*100,l=t>=o%100;e=t+n-(l?100:0)}return a?e:1-e}function et(t){return t%400===0||t%4===0&&t%100!==0}var Hi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",130),u(d(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="yy"}};switch(o){case"y":return E(V(4,e),l);case"yo":return E(n.ordinalNumber(e,{unit:"year"}),l);default:return E(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n){var l=e.getUTCFullYear();if(n.isTwoDigitYear){var c=Je(n.year,l);return e.setUTCFullYear(c,0,1),e.setUTCHours(0,0,0,0),e}var h=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(h,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),Fi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",130),u(d(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){var l=function(h){return{year:h,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return E(V(4,e),l);case"Yo":return E(n.ordinalNumber(e,{unit:"year"}),l);default:return E(V(o.length,e),l)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,n,l){var c=_e(e,l);if(n.isTwoDigitYear){var h=Je(n.year,c);return e.setUTCFullYear(h,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}var g=!("era"in o)||o.era===1?n.year:1-n.year;return e.setUTCFullYear(g,0,l.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,l)}}]),a}(b),Ri=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",130),u(d(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o){return pe(o==="R"?4:o.length,e)}},{key:"set",value:function(e,o,n){var l=new Date(0);return l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0),ee(l)}}]),a}(b),Ui=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",130),u(d(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o){return pe(o==="u"?4:o.length,e)}},{key:"set",value:function(e,o,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),$i=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",120),u(d(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"Q":case"QQ":return V(o.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),Li=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",120),u(d(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"q":case"qq":return V(o.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=1&&o<=4}},{key:"set",value:function(e,o,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),Yi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),u(d(r),"priority",110),r}return p(a,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"M":return E(k(P.month,e),l);case"MM":return E(V(2,e),l);case"Mo":return E(n.ordinalNumber(e,{unit:"month"}),l);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),a}(b),qi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",110),u(d(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){var l=function(h){return h-1};switch(o){case"L":return E(k(P.month,e),l);case"LL":return E(V(2,e),l);case"Lo":return E(n.ordinalNumber(e,{unit:"month"}),l);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),a}(b);function Ai(t,i,a){M(2,arguments);var r=D(t),e=F(i),o=Ne(r,a)-e;return r.setUTCDate(r.getUTCDate()-o*7),r}var Ni=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",100),u(d(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"w":return k(P.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n,l){return Z(Ai(e,n,l),l)}}]),a}(b);function Wi(t,i){M(2,arguments);var a=D(t),r=F(i),e=Ae(a)-r;return a.setUTCDate(a.getUTCDate()-e*7),a}var Bi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",100),u(d(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"I":return k(P.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=53}},{key:"set",value:function(e,o,n){return ee(Wi(e,n))}}]),a}(b),Qi=[31,28,31,30,31,30,31,31,30,31,30,31],zi=[31,29,31,30,31,30,31,31,30,31,30,31],Gi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"subPriority",1),u(d(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"d":return k(P.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n),c=e.getUTCMonth();return l?o>=1&&o<=zi[c]:o>=1&&o<=Qi[c]}},{key:"set",value:function(e,o,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),a}(b),ji=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"subpriority",1),u(d(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"D":case"DD":return k(P.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){var n=e.getUTCFullYear(),l=et(n);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(e,o,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),a}(b);function Te(t,i,a){var r,e,o,n,l,c,h,g;M(2,arguments);var y=te(),C=F((r=(e=(o=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(l=a.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:y.weekStartsOn)!==null&&e!==void 0?e:(h=y.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&r!==void 0?r:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=D(t),S=F(i),L=T.getUTCDay(),R=S%7,N=(R+7)%7,H=(N<C?7:0)+S-L;return T.setUTCDate(T.getUTCDate()+H),T}var Xi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),a}(b),Ki=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"e":case"ee":return E(V(o.length,e),c);case"eo":return E(n.ordinalNumber(e,{unit:"day"}),c);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),a}(b),Zi=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n,l){var c=function(g){var y=Math.floor((g-1)/7)*7;return(g+l.weekStartsOn+6)%7+y};switch(o){case"c":case"cc":return E(V(o.length,e),c);case"co":return E(n.ordinalNumber(e,{unit:"day"}),c);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,o){return o>=0&&o<=6}},{key:"set",value:function(e,o,n,l){return e=Te(e,n,l),e.setUTCHours(0,0,0,0),e}}]),a}(b);function Ji(t,i){M(2,arguments);var a=F(i);a%7===0&&(a=a-7);var r=1,e=D(t),o=e.getUTCDay(),n=a%7,l=(n+7)%7,c=(l<r?7:0)+a-o;return e.setUTCDate(e.getUTCDate()+c),e}var ea=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",90),u(d(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){var l=function(h){return h===0?7:h};switch(o){case"i":case"ii":return V(o.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return E(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiii":return E(n.day(e,{width:"narrow",context:"formatting"}),l);case"iiiiii":return E(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l);case"iiii":default:return E(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(e,o){return o>=1&&o<=7}},{key:"set",value:function(e,o,n){return e=Ji(e,n),e.setUTCHours(0,0,0,0),e}}]),a}(b),ta=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",80),u(d(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),a}(b),ia=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",80),u(d(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),a}(b),aa=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",80),u(d(r),"incompatibleTokens",["a","b","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,o,n){return e.setUTCHours(xe(n),0,0,0),e}}]),a}(b),ra=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",70),u(d(r),"incompatibleTokens",["H","K","k","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"h":return k(P.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=12}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):!l&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}]),a}(b),na=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",70),u(d(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"H":return k(P.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=23}},{key:"set",value:function(e,o,n){return e.setUTCHours(n,0,0,0),e}}]),a}(b),oa=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",70),u(d(r),"incompatibleTokens",["h","H","k","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"K":return k(P.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=11}},{key:"set",value:function(e,o,n){var l=e.getUTCHours()>=12;return l&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),a}(b),sa=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",70),u(d(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"k":return k(P.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=1&&o<=24}},{key:"set",value:function(e,o,n){var l=n<=24?n%24:n;return e.setUTCHours(l,0,0,0),e}}]),a}(b),la=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",60),u(d(r),"incompatibleTokens",["t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"m":return k(P.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCMinutes(n,0,0),e}}]),a}(b),ua=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",50),u(d(r),"incompatibleTokens",["t","T"]),r}return p(a,[{key:"parse",value:function(e,o,n){switch(o){case"s":return k(P.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return V(o.length,e)}}},{key:"validate",value:function(e,o){return o>=0&&o<=59}},{key:"set",value:function(e,o,n){return e.setUTCSeconds(n,0),e}}]),a}(b),da=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",30),u(d(r),"incompatibleTokens",["t","T"]),r}return p(a,[{key:"parse",value:function(e,o){var n=function(c){return Math.floor(c*Math.pow(10,-o.length+3))};return E(V(o.length,e),n)}},{key:"set",value:function(e,o,n){return e.setUTCMilliseconds(n),e}}]),a}(b),ca=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",10),u(d(r),"incompatibleTokens",["t","T","x"]),r}return p(a,[{key:"parse",value:function(e,o){switch(o){case"X":return A(q.basicOptionalMinutes,e);case"XX":return A(q.basic,e);case"XXXX":return A(q.basicOptionalSeconds,e);case"XXXXX":return A(q.extendedOptionalSeconds,e);case"XXX":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),a}(b),ha=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",10),u(d(r),"incompatibleTokens",["t","T","X"]),r}return p(a,[{key:"parse",value:function(e,o){switch(o){case"x":return A(q.basicOptionalMinutes,e);case"xx":return A(q.basic,e);case"xxxx":return A(q.basicOptionalSeconds,e);case"xxxxx":return A(q.extendedOptionalSeconds,e);case"xxx":default:return A(q.extended,e)}}},{key:"set",value:function(e,o,n){return o.timestampIsSet?e:new Date(e.getTime()-n)}}]),a}(b),fa=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",40),u(d(r),"incompatibleTokens","*"),r}return p(a,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),a}(b),pa=function(t){v(a,t);var i=m(a);function a(){var r;f(this,a);for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return r=i.call.apply(i,[this].concat(o)),u(d(r),"priority",20),u(d(r),"incompatibleTokens","*"),r}return p(a,[{key:"parse",value:function(e){return Ze(e)}},{key:"set",value:function(e,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),a}(b),va={G:new Di,y:new Hi,Y:new Fi,R:new Ri,u:new Ui,Q:new $i,q:new Li,M:new Yi,L:new qi,w:new Ni,I:new Bi,d:new Gi,D:new ji,E:new Xi,e:new Ki,c:new Zi,i:new ea,a:new ta,b:new ia,B:new aa,h:new ra,H:new na,K:new oa,k:new sa,m:new la,s:new ua,S:new da,X:new ca,x:new ha,t:new fa,T:new pa},ma=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ga=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ya=/^'([^]*?)'?$/,ba=/''/g,wa=/\S/,_a=/[a-zA-Z]/;function ce(t,i,a,r){var e,o,n,l,c,h,g,y,C,T,S,L,R,N;M(3,arguments);var H=String(t),Y=String(i),W=te(),z=(e=(o=void 0)!==null&&o!==void 0?o:W.locale)!==null&&e!==void 0?e:Ge;if(!z.match)throw new RangeError("locale must contain match property");var G=F((n=(l=(c=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&c!==void 0?c:W.firstWeekContainsDate)!==null&&l!==void 0?l:(g=W.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ie=F((C=(T=(S=(L=void 0)!==null&&L!==void 0?L:void 0)!==null&&S!==void 0?S:W.weekStartsOn)!==null&&T!==void 0?T:(R=W.locale)===null||R===void 0||(N=R.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&C!==void 0?C:0);if(!(ie>=0&&ie<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Y==="")return H===""?D(a):new Date(NaN);var ae={firstWeekContainsDate:G,weekStartsOn:ie,locale:z},re=[new Ei],ve=Y.match(ga).map(function(O){var _=O[0];if(_ in be){var $=be[_];return $(O,z.formatLong)}return O}).join("").match(ma),I=[],U=Fe(ve),X;try{var lt=function(){var _=X.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&ze(_)&&he(_,Y,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Qe(_)&&he(_,Y,t);var $=_[0],de=va[$];if(de){var Pe=de.incompatibleTokens;if(Array.isArray(Pe)){var Ee=I.find(function(De){return Pe.includes(De.token)||De.token===$});if(Ee)throw new RangeError("The format string mustn't contain `".concat(Ee.fullToken,"` and `").concat(_,"` at the same time"))}else if(de.incompatibleTokens==="*"&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));I.push({token:$,fullToken:_});var ge=de.run(H,_,z.match,ae);if(!ge)return{v:new Date(NaN)};re.push(ge.setter),H=ge.rest}else{if($.match(_a))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");if(_==="''"?_="'":$==="'"&&(_=xa(_)),H.indexOf(_)===0)H=H.slice(_.length);else return{v:new Date(NaN)}}};for(U.s();!(X=U.n()).done;){var ke=lt();if(B(ke)==="object")return ke.v}}catch(O){U.e(O)}finally{U.f()}if(H.length>0&&wa.test(H))return new Date(NaN);var ut=re.map(function(O){return O.priority}).sort(function(O,_){return _-O}).filter(function(O,_,$){return $.indexOf(O)===_}).map(function(O){return re.filter(function(_){return _.priority===O}).sort(function(_,$){return $.subPriority-_.subPriority})}).map(function(O){return O[0]}),me=D(a);if(isNaN(me.getTime()))return new Date(NaN);var ne=Ye(me,Be(me)),Ce={},le=Fe(ut),Ve;try{for(le.s();!(Ve=le.n()).done;){var Me=Ve.value;if(!Me.validate(ne,ae))return new Date(NaN);var ue=Me.set(ne,Ce,ae);Array.isArray(ue)?(ne=ue[0],Ti(Ce,ue[1])):ne=ue}}catch(O){le.e(O)}finally{le.f()}return ne}function xa(t){return t.match(ya)[1].replace(ba,"'")}function Re(t,i){M(2,arguments);var a=D(t),r=D(i);return a.getTime()>r.getTime()}function Ue(t,i){M(2,arguments);var a=D(t),r=D(i);return a.getTime()<r.getTime()}const Ta='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__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))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__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--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:rgba(204, 0, 0, 0.7019607843)}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__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}.date__tooltip.visible{opacity:1}',ka=Ta,tt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=i=>{const{year:a,month:r,day:e}=i,o=new Date(a,r,e);return wi(o,this.dateFormat||"yyyy-MM-dd")},this.parseDate=i=>{const a=ce(i,this.dateFormat||"yyyy-MM-dd",new Date);return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,i;this.minDate=ce(((t=this.validation.min)===null||t===void 0?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ce(((i=this.validation.max)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const t=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');t&&t.addEventListener("click",()=>this.handleCalendarIconClick())}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=ce(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(Ue(this.valueAsDate,this.minDate)||Re(this.valueAsDate,this.maxDate))return x.translate("dateError2",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"fe4318723f3be85d48c56210dae9eea53187ad75",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("label",{key:"e34777bbadaa76f2d9adb2e525c07baf4460616e",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),s.h("vaadin-date-picker",{key:"e2b972f58bd2e688fef70afaa340c5fb70f9e2b4",id:`${this.name}__input`,type:"date",class:`date__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:i=>this.handleInput(i),onBlur:this.handleBlur}),s.h("small",{key:"7a9d3342628bfd7f2798a6563a69ab7010c3075f",class:"date__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"04745e1bd587042af44784b3c46fbf2d0174af1f",class:"date__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};tt.style=ka;const Ca='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__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))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__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}.email__tooltip.visible{opacity:1}',Va=Ca,it=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.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 i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}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,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,a,r;if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"8cc90cea4b25fcd2fe05c9b6c609dc37a84d28a1",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"43d0be5a1fecc1fa937323746362c2daa55863a8",class:"email__wrapper--flex"},s.h("label",{key:"082b86cae6d59f2b2b025801373ae2f9efe7ef7a",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"57a25e865a0bb7376d675195940046be19066caa",class:"email__wrapper--relative"},this.tooltip&&s.h("img",{key:"8e720b021706191a33a39cc62e29b8acb747e740",class:"email__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"93cbeb1fcc0d5b992b9fb171b4d47b700087f284",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"0eab5e5e8cd4a525f2160637af1be9c2e4d313c1",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};it.style=Va;const Ma='*,*::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}',Pa=Ma,at=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.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 i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==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,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return x.translate("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const a=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,r=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${a}`,this.language)?x.translate(`${a}`,this.language):r}}renderTooltip(){return this.showTooltip?s.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"414aaa50eb36153d2879bc9c6d1024dd1def2712",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"b607615d56849a46aa0a33c47795a43c0b4f0d3f",class:"number__wrapper--flex"},s.h("label",{key:"109e742b76a4bdc539fb0299d9249ee7eddb088d",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"951f79012890dc185e9eb27e30f107a77df7fa09",class:"number__wrapper--relative"},this.tooltip&&s.h("img",{key:"7f9721c37bfb782bfd43ce948f94c113333a0e4d",class:"number__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"58f9b28983789f1a7525b3a9c30ab4c1fbaa9ab1",ref:i=>this.inputReference=i,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}),s.h("small",{key:"800f10c617221358f2d349b39e7831116f931f08",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};at.style=Pa;const Ea="*,*::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}",Da=Ea,rt=class{constructor(t){s.registerInstance(this,t),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==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 x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return s.h("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},s.h("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(t=>s.h("div",{class:"radio__wrapper"},s.h("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:i=>this.inputReference=i,value:t.value,name:this.name,required:this.validation.mandatory,onClick:i=>this.handleClick(i)}),s.h("label",{htmlFor:`${t.label}__input`},t.label))),s.h("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&s.h("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};rt.style=Da;const Sa='*,*::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]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}',Oa=Sa,nt=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=i=>{this.touched=!0;const a=i.target.value,r=this.options.find(e=>e.value.toLowerCase()===a.toLowerCase());r?this.value=r.value:this.value=a,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=i=>{const a=i.currentTarget;a.opened||(this.touched=!0,this.value=a.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=i=>{this.touched=!0,this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map(i=>({label:i.label,value:i.value})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getOptions(t).then(i=>{var a;const r=Object.keys(i)[0];this.displayedOptions=i[r].map(e=>({label:e.Name,value:e.Alpha2Code})),this.isComboBox=((a=this.displayedOptions)===null||a===void 0?void 0:a.length)>6})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue){const t=this.displayedOptions.find(i=>i.value.toUpperCase()===this.defaultValue.toUpperCase());this.value=t.value,this.valueHandler({name:this.name,value:this.value}),this.inputReference.value=this.value}this.isValid=this.setValidity()}getOptions(t){const i=new URL(t);return new Promise((a,r)=>{fetch(i.href).then(e=>e.json()).then(e=>{a(e)}).catch(e=>{console.error(e),r(e)})})}setValidity(){return this.vaadinCombo&&"validate"in this.vaadinCombo?this.vaadinCombo.validate():!1}setErrorMessage(){var t,i,a;if(!((i=(t=this.inputReference)===null||t===void 0?void 0:t.validity)===null||i===void 0)&&i.valueMissing||!((a=this.vaadinCombo)===null||a===void 0)&&a.invalid)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t,i;let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"064b5084b26c1c18300b91bc4e5c5199d6e57616",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},s.h("div",{key:"7d2adb9d5dd527a8a3e48fc5432f8f7c77de6d17",class:"select__wrapper--flex"},s.h("label",{key:"f9e8d1a0e7f211a10d36916b76f60b6525d012cd",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),s.h("div",{key:"13a01b566a332b4085ff44dc283ed34b302ca8e5",class:"select__wrapper--relative"},this.tooltip&&s.h("img",{key:"411d50bd0864fe021609436611fb2989c002c8a6",class:"select__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?s.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${a} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(t=this.validation)===null||t===void 0?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):s.h("vaadin-select",{name:this.name,id:`${this.name}__input`,class:`select__input ${a} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,onBlur:this.handleBlur}),s.h("small",{key:"6a39b060f974030f00cd27a01d805077de70bca3",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};nt.style=Oa;const Ia='*,*::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}.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){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__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.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}',Ha=Ia,ot=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.phoneValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},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.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const t=this.action.split(" ")[1];return this.getPhoneCodes(t).then(i=>{this.phoneCodesOptions=i.phoneCodes.map(a=>typeof a=="object"&&a.Prefix?{label:a.Prefix,value:a.Prefix}:{label:a,value:a})})}}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,type:"tel"}))}getPhoneCodes(t){const i=new URL(t);return new Promise((a,r)=>{fetch(i.href).then(e=>e.json()).then(e=>{a(e)}).catch(e=>{console.error(e),r(e)})})}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i;if(this.inputReference.validity.patternMismatch){const a=(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.errorKey,r=(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${a}`,this.language)?x.translate(`${a}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?s.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"a38531b8b0fa40e745a3a2b8ac39a56d0001c09f",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"70c35c825dafc0aee70835e87aeadab141dc22d3",class:"tel__wrapper--flex-label"},s.h("label",{key:"5ff2f5df35dcec4ea76f3b9496b193183c03188d",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"dc1625d8c724596b05ca2b0069f492ef9172bc10",class:"tel__wrapper--relative"},this.tooltip&&s.h("img",{key:"a6e94e7598b6734b4c83d95e13a113d6f835d755",class:"tel__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("div",{key:"d3865c4a88ea5b6de6791883b3b6955b6b3a0c15",class:`tel__wrapper--flex ${t}`},s.h("vaadin-combo-box",{key:"6d845d492057a29590bffb86c509d3f8cfbf6260",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:i=>this.handlePrefixInput(i)}),s.h("input",{key:"0cb8fe81d26828c0997379352ee25e5a416b5675",type:"tel",ref:i=>this.inputReference=i,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),s.h("small",{key:"1de6d39f83643e86d76659946d2996cc6e82c495",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ot.style=Ha;const Fa='*,*::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}',Ra=Fa,st=class{constructor(t){s.registerInstance(this,t),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}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&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){if(this.isDuplicateInput&&this.duplicateInputValue!==this.value||!this.inputReference)return!1;const t=this.inputReference.validity.valid,i=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return t&&i}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,a,r;if(this.inputReference.validity.valueMissing)return x.translate("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return x.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.value.match(this.validationPattern)==null){const e=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,o=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return x.translate(`${e}`,this.language)||o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=(a=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||a===void 0?void 0:a.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return x.translate(`${e}`,this.language)?x.translate(`${e}`,this.language):o}}renderTooltip(){return this.showTooltip?s.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"65f086c89daa3c3ebc40e6f0c58fbd24ff6e9050",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:i=>this.stylingContainer=i},s.h("div",{key:"970d4aa2de6419ab7904e1315c669aadc7f462b3",class:"text__wrapper--flex"},s.h("label",{key:"6e3d033ebcf3ecd4a8c3f3a3a35f1e2e4bc8261a",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"7247b4e12c1caf287534541d0cf019ddeaa78182",class:"text__wrapper--relative"},this.tooltip&&s.h("img",{key:"3b96da6c25789e12cbbc3408246650d6d1c72712",class:"text__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("input",{key:"8fc695313a9e2e19898380dfff97ee76b6e509df",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:i=>this.inputReference=i,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),s.h("small",{key:"90f0552125dbf888c915aa1b2e20446df6a48b9c",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};st.style=Ra;exports.checkbox_group_input=$e;exports.checkbox_input=Le;exports.date_input=tt;exports.email_input=it;exports.number_input=at;exports.radio_input=rt;exports.select_input=nt;exports.tel_input=ot;exports.text_input=st;