@everymatrix/pam-forgot-password 1.65.1 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pam-forgot-password/{p-16c769c5.entry.js → checkbox-group-input_14.entry.js} +1 -1
- package/dist/pam-forgot-password/index.esm.js +1 -1
- package/dist/pam-forgot-password/pam-forgot-password-0f76562c.js +1 -0
- package/dist/pam-forgot-password/pam-forgot-password.esm.js +1 -1
- package/dist/stencil.config.dev.js +1 -0
- package/dist/stencil.config.js +1 -0
- package/package.json +1 -1
- package/dist/pam-forgot-password/p-f10ac9f7.js +0 -1
- /package/dist/pam-forgot-password/{p-e1255160.js → app-globals-0f993ce5.js} +0 -0
- /package/dist/pam-forgot-password/{p-f5cf4939.js → index-6f00d158.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as s,H as r}from"./p-f5cf4939.js";export{P as pam_forgot_password}from"./p-f10ac9f7.js";const o={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"Should contains only numbers.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számokat kell tartalmaznia.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Treba sadržavati samo brojeve.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi."},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Sadece sayılar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas números",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos."},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Solo debe contener números",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos."}},n=(t,e,i)=>{let s=o[void 0!==e?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",l=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.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,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&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 n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map((t=>t.name)):[]}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return i("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&i("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&i("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>i("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return s(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};l.style='*,*::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}';const h=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.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,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){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 n("requiredError",this.language)}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),i("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),i("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&i("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function u(t){d(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function p(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function m(t,e){return d(2,arguments),function(t,e){d(2,arguments);var i=u(t).getTime(),s=p(e);return new Date(i+s)}(t,-p(e))}function v(t){d(1,arguments);var e=u(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function f(t){d(1,arguments);var e=u(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=v(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=v(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}h.style='*,*::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}';function b(t){d(1,arguments);var e=u(t),i=v(e).getTime()-function(t){d(1,arguments);var e=f(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),v(i)}(e).getTime();return Math.round(i/6048e5)+1}var g={};function y(){return g}function w(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=y(),m=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=u(t),f=v.getUTCDay(),b=(f<m?7:0)+f-m;return v.setUTCDate(v.getUTCDate()-b),v.setUTCHours(0,0,0,0),v}function _(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=u(t),m=c.getUTCFullYear(),v=y(),f=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:v.firstWeekContainsDate)&&void 0!==s?s:null===(l=v.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,f),b.setUTCHours(0,0,0,0);var g=w(b,e),_=new Date(0);_.setUTCFullYear(m,0,f),_.setUTCHours(0,0,0,0);var x=w(_,e);return c.getTime()>=g.getTime()?m+1:c.getTime()>=x.getTime()?m:m-1}function x(t,e){d(1,arguments);var i=u(t),s=w(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=y(),u=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),m=_(t,e),v=new Date(0);return v.setUTCFullYear(m,0,u),v.setUTCHours(0,0,0,0),w(v,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function k(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const C=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return k("yy"===e?s%100:s,e.length)},S=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):k(i+1,2)},A=function(t,e){return k(t.getUTCDate(),e.length)},E=function(t,e){return k(t.getUTCHours()%12||12,e.length)},I=function(t,e){return k(t.getUTCHours(),e.length)},z=function(t,e){return k(t.getUTCMinutes(),e.length)},T=function(t,e){return k(t.getUTCSeconds(),e.length)},D=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return k(Math.floor(s*Math.pow(10,i-3)),e.length)};function M(t,e){var i=t>0?"-":"+",s=Math.abs(t),r=Math.floor(s/60),o=s%60;if(0===o)return i+String(r);var n=e||"";return i+String(r)+n+k(o,2)}function O(t,e){return t%60==0?(t>0?"-":"+")+k(Math.abs(t)/60,2):F(t,e)}function F(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+k(Math.floor(r/60),2)+i+k(r%60,2)}const N={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return C(t,e)},Y:function(t,e,i,s){var r=_(t,s),o=r>0?r:1-r;return"YY"===e?k(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):k(o,e.length)},R:function(t,e){return k(f(t),e.length)},u:function(t,e){return k(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return k(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return k(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return S(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return k(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var r=x(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):k(r,e.length)},I:function(t,e,i){var s=b(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):k(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):A(t,e)},D:function(t,e,i){var s=function(t){d(1,arguments);var e=u(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):k(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return k(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return k(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),r=0===s?7:s;switch(e){case"i":return String(r);case"ii":return k(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return E(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):I(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):k(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):k(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):z(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):T(t,e)},S:function(t,e){return D(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return O(r);case"XXXX":case"XX":return F(r);default:return F(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return O(r);case"xxxx":case"xx":return F(r);default:return F(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+M(r,":");default:return"GMT"+F(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+M(r,":");default:return"GMT"+F(r,":")}},t:function(t,e,i,s){return k(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return k((s._originalDate||t).getTime(),e.length)}};var B=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},$=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},j={p:$,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return B(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",B(r,e)).replace("{{time}}",$(o,e))}};const L=j;function V(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var q=["D","DD"],R=["YY","YYYY"];function H(t){return-1!==q.indexOf(t)}function W(t){return-1!==R.indexOf(t)}function U(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function G(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var K,Q={date:G({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:G({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:G({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},J={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Z(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,o=null!=i&&i.width?String(i.width):r;s=t.formattingValues[o]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function X(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,r=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var o,n=r[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return o=t.valueCallback?t.valueCallback(l):l,{value:o=i.valueCallback?i.valueCallback(o):o,rest:e.slice(n.length)}}}const tt={code:"en-US",formatDistance:function(t,e,i){var s,r=Y[t];return s="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Q,formatRelative:function(t){return J[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:Z({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Z({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Z({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Z({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Z({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(K={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(K.matchPattern);if(!i)return null;var s=i[0],r=t.match(K.parsePattern);if(!r)return null;var o=K.valueCallback?K.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:X({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:X({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:X({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:X({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var et=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,st=/^'([^]*?)'?$/,rt=/''/g,ot=/[a-zA-Z]/;function nt(t,e,i){var s,r,o,n,a,l,h,v,f,b,g,w,_,x,k,C,S,A;d(2,arguments);var E=String(e),I=y(),z=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:I.locale)&&void 0!==s?s:tt,T=p(null!==(o=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==a?a:I.firstWeekContainsDate)&&void 0!==n?n:null===(f=I.locale)||void 0===f||null===(b=f.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=p(null!==(g=null!==(w=null!==(_=null!==(x=null==i?void 0:i.weekStartsOn)&&void 0!==x?x:null==i||null===(k=i.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==_?_:I.weekStartsOn)&&void 0!==w?w:null===(S=I.locale)||void 0===S||null===(A=S.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var M=u(t);if(!function(t){if(d(1,arguments),!function(t){return d(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=u(t);return!isNaN(Number(e))}(M))throw new RangeError("Invalid time value");var P=m(M,V(M)),O={firstWeekContainsDate:T,weekStartsOn:D,locale:z,_originalDate:M};return E.match(it).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,L[e])(t,z.formatLong):t})).join("").match(et).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(st))?o[1].replace(rt,"'"):r;var a=N[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!W(s)||U(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!H(s)||U(s,e,String(t)),a(P,s,z.localize,O);if(n.match(ot))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function lt(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return at(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?at(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,r=function(){};return{s:r,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function ht(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dt(t,e)}function ut(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dt(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mt=function(){return!!t})()}function vt(t){var e=mt();return function(){var i,s=pt(t);if(e){var r=pt(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ct(t)}(this,i)}}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function gt(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,bt(s.key),s)}}function yt(t,e,i){return e&>(t.prototype,e),i&>(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function wt(t,e,i){return(e=bt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var _t=function(){function t(){ft(this,t),wt(this,"priority",void 0),wt(this,"subPriority",0)}return yt(t,[{key:"validate",value:function(){return!0}}]),t}(),xt=function(){ut(e,_t);var t=vt(e);function e(i,s,r,o,n){var a;return ft(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return yt(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),kt=function(){ut(e,_t);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"subPriority",-1),i}return yt(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Ct=function(){function t(){ft(this,t),wt(this,"incompatibleTokens",void 0),wt(this,"priority",void 0),wt(this,"subPriority",void 0)}return yt(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new xt(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),St=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",140),wt(ct(i),"incompatibleTokens",["R","u","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),At=/^(1[0-2]|0?\d)/,Et=/^(3[0-1]|[0-2]?\d)/,It=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,zt=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Dt=/^(2[0-4]|[0-1]?\d)/,Mt=/^(1[0-1]|0?\d)/,Pt=/^(1[0-2]|0?\d)/,Ot=/^[0-5]?\d/,Ft=/^[0-5]?\d/,Nt=/^\d/,Bt=/^\d{1,2}/,$t=/^\d{1,3}/,jt=/^\d{1,4}/,Lt=/^-?\d+/,Vt=/^-?\d/,qt=/^-?\d{1,2}/,Rt=/^-?\d{1,3}/,Ht=/^-?\d{1,4}/,Wt=/^([+-])(\d{2})(\d{2})?|Z/,Ut=/^([+-])(\d{2})(\d{2})|Z/,Yt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Gt=/^([+-])(\d{2}):(\d{2})|Z/,Kt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Qt(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Jt(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function Zt(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function Xt(t){return Jt(Lt,t)}function te(t,e){switch(t){case 1:return Jt(Nt,e);case 2:return Jt(Bt,e);case 3:return Jt($t,e);case 4:return Jt(jt,e);default:return Jt(new RegExp("^\\d{1,"+t+"}"),e)}}function ee(t,e){switch(t){case 1:return Jt(Vt,e);case 2:return Jt(qt,e);case 3:return Jt(Rt,e);case 4:return Jt(Ht,e);default:return Jt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ie(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(t,e){var i,s=e>0,r=s?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return s?i:1-i}function re(t){return t%400==0||t%4==0&&t%100!=0}var oe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Qt(te(4,t),s);case"yo":return Qt(i.ordinalNumber(t,{unit:"year"}),s);default:return Qt(te(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var s=t.getUTCFullYear();if(i.isTwoDigitYear){var r=se(i.year,s);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ne=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Qt(te(4,t),s);case"Yo":return Qt(i.ordinalNumber(t,{unit:"year"}),s);default:return Qt(te(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,s){var r=_(t,s);if(i.isTwoDigitYear){var o=se(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(t,s)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(t,s)}}]),e}(),ae=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return ee("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),v(s)}}]),e}(),le=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return ee("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),he=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",120),wt(ct(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return te(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),ce=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",120),wt(ct(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return te(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),de=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),wt(ct(i),"priority",110),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return Qt(Jt(At,t),s);case"MM":return Qt(te(2,t),s);case"Mo":return Qt(i.ordinalNumber(t,{unit:"month"}),s);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ue=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",110),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return Qt(Jt(At,t),s);case"LL":return Qt(te(2,t),s);case"Lo":return Qt(i.ordinalNumber(t,{unit:"month"}),s);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),pe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",100),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Jt(zt,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return w(function(t,e,i){d(2,arguments);var s=u(t),r=p(e),o=x(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),me=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",100),wt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Jt(zt,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return v(function(t,e){d(2,arguments);var i=u(t),s=p(e),r=b(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),ve=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31],be=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"subPriority",1),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Jt(Et,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){var i=re(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=fe[s]:e>=1&&e<=ve[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),ge=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"subpriority",1),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Jt(It,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return re(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function ye(t,e,i){var s,r,o,n,a,l,h,c;d(2,arguments);var m=y(),v=p(null!==(s=null!==(r=null!==(o=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:m.weekStartsOn)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==s?s:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=u(t),b=p(e),g=((b%7+7)%7<v?7:0)+b-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+g),f}var we=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),_e=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Qt(te(e.length,t),r);case"eo":return Qt(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),xe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Qt(te(e.length,t),r);case"co":return Qt(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),ke=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return te(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return Qt(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return Qt(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Qt(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return Qt(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){d(2,arguments);var i=p(e);i%7==0&&(i-=7);var s=u(t),r=((i%7+7)%7<1?7:0)+i-s.getUTCDay();return s.setUTCDate(s.getUTCDate()+r),s}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Ce=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Se=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Ae=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["a","b","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Ee=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["H","K","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Jt(Pt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:s||12!==i?i:0,0,0,0),t}}]),e}(),Ie=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Jt(Tt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),ze=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["h","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Jt(Mt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:i,0,0,0),t}}]),e}(),Te=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Jt(Dt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),De=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",60),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Jt(Ot,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Me=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",50),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Jt(Ft,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),Pe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",30),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return Qt(te(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Oe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"incompatibleTokens",["t","T","x"]),i}return yt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return Zt(Wt,t);case"XX":return Zt(Ut,t);case"XXXX":return Zt(Yt,t);case"XXXXX":return Zt(Kt,t);default:return Zt(Gt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Fe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"incompatibleTokens",["t","T","X"]),i}return yt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return Zt(Wt,t);case"xx":return Zt(Ut,t);case"xxxx":return Zt(Yt,t);case"xxxxx":return Zt(Kt,t);default:return Zt(Gt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Ne=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",40),wt(ct(i),"incompatibleTokens","*"),i}return yt(e,[{key:"parse",value:function(t){return Xt(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Be=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",20),wt(ct(i),"incompatibleTokens","*"),i}return yt(e,[{key:"parse",value:function(t){return Xt(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),$e={G:new St,y:new oe,Y:new ne,R:new ae,u:new le,Q:new he,q:new ce,M:new de,L:new ue,w:new pe,I:new me,d:new be,D:new ge,E:new we,e:new _e,c:new xe,i:new ke,a:new Ce,b:new Se,B:new Ae,h:new Ee,H:new Ie,K:new ze,k:new Te,m:new De,s:new Me,S:new Pe,X:new Oe,x:new Fe,t:new Ne,T:new Be},je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ve=/^'([^]*?)'?$/,qe=/''/g,Re=/\S/,He=/[a-zA-Z]/;function We(t,e,i,s){var r,o,n,a,l,h,v,f,b,g,w,_,x,k,C,S,A,E;d(3,arguments);var I=String(t),z=String(e),T=y(),D=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:T.locale)&&void 0!==r?r:tt;if(!D.match)throw new RangeError("locale must contain match property");var M=p(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(v=s.locale)||void 0===v||null===(f=v.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:T.firstWeekContainsDate)&&void 0!==a?a:null===(b=T.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==n?n:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=p(null!==(w=null!==(_=null!==(x=null!==(k=null==s?void 0:s.weekStartsOn)&&void 0!==k?k:null==s||null===(C=s.locale)||void 0===C||null===(S=C.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==x?x:T.weekStartsOn)&&void 0!==_?_:null===(A=T.locale)||void 0===A||null===(E=A.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==w?w:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===z)return""===I?u(i):new Date(NaN);var O,F={firstWeekContainsDate:M,weekStartsOn:P,locale:D},N=[new kt],B=z.match(Le).map((function(t){var e=t[0];return e in L?(0,L[e])(t,D.formatLong):t})).join("").match(je),$=[],j=lt(B);try{var q=function(){var e=O.value;null!=s&&s.useAdditionalWeekYearTokens||!W(e)||U(e,z,t),null!=s&&s.useAdditionalDayOfYearTokens||!H(e)||U(e,z,t);var i=e[0],r=$e[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=$.find((function(t){return o.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&$.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));$.push({token:i,fullToken:e});var a=r.run(I,e,D.match,F);if(!a)return{v:new Date(NaN)};N.push(a.setter),I=a.rest}else{if(i.match(He))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Ve)[1].replace(qe,"'")),0!==I.indexOf(e))return{v:new Date(NaN)};I=I.slice(e.length)}};for(j.s();!(O=j.n()).done;){var R=q();if("object"===c(R))return R.v}}catch(t){j.e(t)}finally{j.f()}if(I.length>0&&Re.test(I))return new Date(NaN);var Y=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),G=u(i);if(isNaN(G.getTime()))return new Date(NaN);var K,Q=m(G,V(G)),J={},Z=lt(Y);try{for(Z.s();!(K=Z.n()).done;){var X=K.value;if(!X.validate(Q,F))return new Date(NaN);var et=X.set(Q,J,F);Array.isArray(et)?(Q=et[0],ht(J,et[1])):Q=et}}catch(t){Z.e(t)}finally{Z.f()}return Q}function Ue(t,e){d(2,arguments);var i=u(t),s=u(e);return i.getTime()>s.getTime()}function Ye(t,e){d(2,arguments);var i=u(t),s=u(e);return i.getTime()<s.getTime()}const Ge=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return nt(new Date(e,i,s),this.dateFormat||"yyyy-MM-dd")},this.parseDate=t=>{const e=We(t,this.dateFormat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=We((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=We((null===(e=this.validation.max)||void 0===e?void 0:e.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=We(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return!Ye(this.valueAsDate,this.minDate)&&!Ue(this.valueAsDate,this.maxDate)&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?n("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):Ye(this.valueAsDate,this.minDate)||Ue(this.valueAsDate,this.maxDate)?n("dateError2",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fe4318723f3be85d48c56210dae9eea53187ad75",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"e34777bbadaa76f2d9adb2e525c07baf4460616e",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),i("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:t=>this.handleInput(t),onBlur:this.handleBlur}),i("small",{key:"7a9d3342628bfd7f2798a6563a69ab7010c3075f",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"04745e1bd587042af44784b3c46fbf2d0174af1f",class:"date__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ge.style='*,*::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}';const Ke=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}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,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===s?void 0:s.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"8cc90cea4b25fcd2fe05c9b6c609dc37a84d28a1",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"43d0be5a1fecc1fa937323746362c2daa55863a8",class:"email__wrapper--flex"},i("label",{key:"082b86cae6d59f2b2b025801373ae2f9efe7ef7a",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"57a25e865a0bb7376d675195940046be19066caa",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"8e720b021706191a33a39cc62e29b8acb747e740",class:"email__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"93cbeb1fcc0d5b992b9fb171b4d47b700087f284",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"0eab5e5e8cd4a525f2160637af1be9c2e4d313c1",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ke.style='*,*::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}';var Qe=Object.defineProperty,Je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ii=(t,e,i)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,si=(t,e)=>{for(var i in e||(e={}))ti.call(e,i)&&ii(t,i,e[i]);if(Xe)for(var i of Xe(e))ei.call(e,i)&&ii(t,i,e[i]);return t},ri=(t,e)=>Je(t,Ze(e)),oi=(t,e,i)=>(ii(t,"symbol"!=typeof e?e+"":e,i),i),ni=(t,e,i)=>new Promise(((s,r)=>{var o=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(o,n);a((i=i.apply(t,e)).next())}))
|
|
1
|
+
import{r as t,c as e,h as i,g as s,H as r}from"./index-6f00d158.js";export{P as pam_forgot_password}from"./pam-forgot-password-0f76562c.js";const o={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"Should contains only numbers.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számokat kell tartalmaznia.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Treba sadržavati samo brojeve.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi."},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Sadece sayılar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas números",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos."},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Solo debe contener números",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos."}},n=(t,e,i)=>{let s=o[void 0!==e?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",l=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.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,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&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 n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map((t=>t.name)):[]}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return i("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&i("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&i("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>i("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return s(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};l.style='*,*::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}';const h=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.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,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){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 n("requiredError",this.language)}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),i("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),i("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&i("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function u(t){d(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function p(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function m(t,e){return d(2,arguments),function(t,e){d(2,arguments);var i=u(t).getTime(),s=p(e);return new Date(i+s)}(t,-p(e))}function v(t){d(1,arguments);var e=u(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function f(t){d(1,arguments);var e=u(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=v(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=v(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}h.style='*,*::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}';function b(t){d(1,arguments);var e=u(t),i=v(e).getTime()-function(t){d(1,arguments);var e=f(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),v(i)}(e).getTime();return Math.round(i/6048e5)+1}var g={};function y(){return g}function w(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=y(),m=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=u(t),f=v.getUTCDay(),b=(f<m?7:0)+f-m;return v.setUTCDate(v.getUTCDate()-b),v.setUTCHours(0,0,0,0),v}function _(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=u(t),m=c.getUTCFullYear(),v=y(),f=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:v.firstWeekContainsDate)&&void 0!==s?s:null===(l=v.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,f),b.setUTCHours(0,0,0,0);var g=w(b,e),_=new Date(0);_.setUTCFullYear(m,0,f),_.setUTCHours(0,0,0,0);var x=w(_,e);return c.getTime()>=g.getTime()?m+1:c.getTime()>=x.getTime()?m:m-1}function x(t,e){d(1,arguments);var i=u(t),s=w(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;d(1,arguments);var c=y(),u=p(null!==(i=null!==(s=null!==(r=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==s?s:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),m=_(t,e),v=new Date(0);return v.setUTCFullYear(m,0,u),v.setUTCHours(0,0,0,0),w(v,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function k(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const C=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return k("yy"===e?s%100:s,e.length)},S=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):k(i+1,2)},A=function(t,e){return k(t.getUTCDate(),e.length)},E=function(t,e){return k(t.getUTCHours()%12||12,e.length)},I=function(t,e){return k(t.getUTCHours(),e.length)},z=function(t,e){return k(t.getUTCMinutes(),e.length)},T=function(t,e){return k(t.getUTCSeconds(),e.length)},D=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return k(Math.floor(s*Math.pow(10,i-3)),e.length)};function M(t,e){var i=t>0?"-":"+",s=Math.abs(t),r=Math.floor(s/60),o=s%60;if(0===o)return i+String(r);var n=e||"";return i+String(r)+n+k(o,2)}function O(t,e){return t%60==0?(t>0?"-":"+")+k(Math.abs(t)/60,2):F(t,e)}function F(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+k(Math.floor(r/60),2)+i+k(r%60,2)}const N={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return C(t,e)},Y:function(t,e,i,s){var r=_(t,s),o=r>0?r:1-r;return"YY"===e?k(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):k(o,e.length)},R:function(t,e){return k(f(t),e.length)},u:function(t,e){return k(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return k(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return k(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return S(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return k(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var r=x(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):k(r,e.length)},I:function(t,e,i){var s=b(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):k(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):A(t,e)},D:function(t,e,i){var s=function(t){d(1,arguments);var e=u(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):k(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return k(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var r=t.getUTCDay(),o=(r-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return k(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),r=0===s?7:s;switch(e){case"i":return String(r);case"ii":return k(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return E(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):I(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):k(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):k(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):z(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):T(t,e)},S:function(t,e){return D(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return O(r);case"XXXX":case"XX":return F(r);default:return F(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return O(r);case"xxxx":case"xx":return F(r);default:return F(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+M(r,":");default:return"GMT"+F(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+M(r,":");default:return"GMT"+F(r,":")}},t:function(t,e,i,s){return k(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return k((s._originalDate||t).getTime(),e.length)}};var B=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},$=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},j={p:$,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return B(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",B(r,e)).replace("{{time}}",$(o,e))}};const L=j;function V(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var q=["D","DD"],R=["YY","YYYY"];function H(t){return-1!==q.indexOf(t)}function W(t){return-1!==R.indexOf(t)}function U(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function G(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var K,Q={date:G({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:G({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:G({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},J={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Z(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,o=null!=i&&i.width?String(i.width):r;s=t.formattingValues[o]||t.formattingValues[r]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function X(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,r=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!r)return null;var o,n=r[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return o=t.valueCallback?t.valueCallback(l):l,{value:o=i.valueCallback?i.valueCallback(o):o,rest:e.slice(n.length)}}}const tt={code:"en-US",formatDistance:function(t,e,i){var s,r=Y[t];return s="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Q,formatRelative:function(t){return J[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:Z({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Z({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Z({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Z({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Z({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(K={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(K.matchPattern);if(!i)return null;var s=i[0],r=t.match(K.parsePattern);if(!r)return null;var o=K.valueCallback?K.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:X({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:X({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:X({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:X({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var et=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,st=/^'([^]*?)'?$/,rt=/''/g,ot=/[a-zA-Z]/;function nt(t,e,i){var s,r,o,n,a,l,h,v,f,b,g,w,_,x,k,C,S,A;d(2,arguments);var E=String(e),I=y(),z=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:I.locale)&&void 0!==s?s:tt,T=p(null!==(o=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==a?a:I.firstWeekContainsDate)&&void 0!==n?n:null===(f=I.locale)||void 0===f||null===(b=f.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=p(null!==(g=null!==(w=null!==(_=null!==(x=null==i?void 0:i.weekStartsOn)&&void 0!==x?x:null==i||null===(k=i.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==_?_:I.weekStartsOn)&&void 0!==w?w:null===(S=I.locale)||void 0===S||null===(A=S.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var M=u(t);if(!function(t){if(d(1,arguments),!function(t){return d(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=u(t);return!isNaN(Number(e))}(M))throw new RangeError("Invalid time value");var P=m(M,V(M)),O={firstWeekContainsDate:T,weekStartsOn:D,locale:z,_originalDate:M};return E.match(it).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,L[e])(t,z.formatLong):t})).join("").match(et).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(st))?o[1].replace(rt,"'"):r;var a=N[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!W(s)||U(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!H(s)||U(s,e,String(t)),a(P,s,z.localize,O);if(n.match(ot))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function lt(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return at(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?at(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,r=function(){};return{s:r,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function ht(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dt(t,e)}function ut(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dt(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mt=function(){return!!t})()}function vt(t){var e=mt();return function(){var i,s=pt(t);if(e){var r=pt(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ct(t)}(this,i)}}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function gt(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,bt(s.key),s)}}function yt(t,e,i){return e&>(t.prototype,e),i&>(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function wt(t,e,i){return(e=bt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var _t=function(){function t(){ft(this,t),wt(this,"priority",void 0),wt(this,"subPriority",0)}return yt(t,[{key:"validate",value:function(){return!0}}]),t}(),xt=function(){ut(e,_t);var t=vt(e);function e(i,s,r,o,n){var a;return ft(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return yt(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),kt=function(){ut(e,_t);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"subPriority",-1),i}return yt(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Ct=function(){function t(){ft(this,t),wt(this,"incompatibleTokens",void 0),wt(this,"priority",void 0),wt(this,"subPriority",void 0)}return yt(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new xt(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),St=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",140),wt(ct(i),"incompatibleTokens",["R","u","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),At=/^(1[0-2]|0?\d)/,Et=/^(3[0-1]|[0-2]?\d)/,It=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,zt=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Dt=/^(2[0-4]|[0-1]?\d)/,Mt=/^(1[0-1]|0?\d)/,Pt=/^(1[0-2]|0?\d)/,Ot=/^[0-5]?\d/,Ft=/^[0-5]?\d/,Nt=/^\d/,Bt=/^\d{1,2}/,$t=/^\d{1,3}/,jt=/^\d{1,4}/,Lt=/^-?\d+/,Vt=/^-?\d/,qt=/^-?\d{1,2}/,Rt=/^-?\d{1,3}/,Ht=/^-?\d{1,4}/,Wt=/^([+-])(\d{2})(\d{2})?|Z/,Ut=/^([+-])(\d{2})(\d{2})|Z/,Yt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Gt=/^([+-])(\d{2}):(\d{2})|Z/,Kt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Qt(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Jt(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function Zt(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function Xt(t){return Jt(Lt,t)}function te(t,e){switch(t){case 1:return Jt(Nt,e);case 2:return Jt(Bt,e);case 3:return Jt($t,e);case 4:return Jt(jt,e);default:return Jt(new RegExp("^\\d{1,"+t+"}"),e)}}function ee(t,e){switch(t){case 1:return Jt(Vt,e);case 2:return Jt(qt,e);case 3:return Jt(Rt,e);case 4:return Jt(Ht,e);default:return Jt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ie(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(t,e){var i,s=e>0,r=s?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return s?i:1-i}function re(t){return t%400==0||t%4==0&&t%100!=0}var oe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Qt(te(4,t),s);case"yo":return Qt(i.ordinalNumber(t,{unit:"year"}),s);default:return Qt(te(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var s=t.getUTCFullYear();if(i.isTwoDigitYear){var r=se(i.year,s);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ne=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Qt(te(4,t),s);case"Yo":return Qt(i.ordinalNumber(t,{unit:"year"}),s);default:return Qt(te(e.length,t),s)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,s){var r=_(t,s);if(i.isTwoDigitYear){var o=se(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(t,s)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(t,s)}}]),e}(),ae=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return ee("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),v(s)}}]),e}(),le=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",130),wt(ct(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return ee("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),he=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",120),wt(ct(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return te(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),ce=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",120),wt(ct(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return te(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),de=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),wt(ct(i),"priority",110),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return Qt(Jt(At,t),s);case"MM":return Qt(te(2,t),s);case"Mo":return Qt(i.ordinalNumber(t,{unit:"month"}),s);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),ue=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",110),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return Qt(Jt(At,t),s);case"LL":return Qt(te(2,t),s);case"Lo":return Qt(i.ordinalNumber(t,{unit:"month"}),s);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),pe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",100),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Jt(zt,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return w(function(t,e,i){d(2,arguments);var s=u(t),r=p(e),o=x(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),me=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",100),wt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Jt(zt,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return v(function(t,e){d(2,arguments);var i=u(t),s=p(e),r=b(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),ve=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31],be=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"subPriority",1),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Jt(Et,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){var i=re(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=fe[s]:e>=1&&e<=ve[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),ge=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"subpriority",1),wt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Jt(It,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return re(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function ye(t,e,i){var s,r,o,n,a,l,h,c;d(2,arguments);var m=y(),v=p(null!==(s=null!==(r=null!==(o=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:m.weekStartsOn)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==s?s:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=u(t),b=p(e),g=((b%7+7)%7<v?7:0)+b-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+g),f}var we=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),_e=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Qt(te(e.length,t),r);case"eo":return Qt(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),xe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i,s){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+s.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Qt(te(e.length,t),r);case"co":return Qt(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,s){return(t=ye(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),ke=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",90),wt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return te(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return Qt(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return Qt(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Qt(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return Qt(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){d(2,arguments);var i=p(e);i%7==0&&(i-=7);var s=u(t),r=((i%7+7)%7<1?7:0)+i-s.getUTCDay();return s.setUTCDate(s.getUTCDate()+r),s}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Ce=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Se=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Ae=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",80),wt(ct(i),"incompatibleTokens",["a","b","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ie(i),0,0,0),t}}]),e}(),Ee=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["H","K","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Jt(Pt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:s||12!==i?i:0,0,0,0),t}}]),e}(),Ie=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Jt(Tt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),ze=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["h","H","k","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Jt(Mt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var s=t.getUTCHours()>=12;return t.setUTCHours(s&&i<12?i+12:i,0,0,0),t}}]),e}(),Te=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",70),wt(ct(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Jt(Dt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),De=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",60),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Jt(Ot,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),Me=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",50),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Jt(Ft,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return te(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),Pe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",30),wt(ct(i),"incompatibleTokens",["t","T"]),i}return yt(e,[{key:"parse",value:function(t,e){return Qt(te(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),Oe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"incompatibleTokens",["t","T","x"]),i}return yt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return Zt(Wt,t);case"XX":return Zt(Ut,t);case"XXXX":return Zt(Yt,t);case"XXXXX":return Zt(Kt,t);default:return Zt(Gt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Fe=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",10),wt(ct(i),"incompatibleTokens",["t","T","X"]),i}return yt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return Zt(Wt,t);case"xx":return Zt(Ut,t);case"xxxx":return Zt(Yt,t);case"xxxxx":return Zt(Kt,t);default:return Zt(Gt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Ne=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",40),wt(ct(i),"incompatibleTokens","*"),i}return yt(e,[{key:"parse",value:function(t){return Xt(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Be=function(){ut(e,Ct);var t=vt(e);function e(){var i;ft(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return wt(ct(i=t.call.apply(t,[this].concat(r))),"priority",20),wt(ct(i),"incompatibleTokens","*"),i}return yt(e,[{key:"parse",value:function(t){return Xt(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),$e={G:new St,y:new oe,Y:new ne,R:new ae,u:new le,Q:new he,q:new ce,M:new de,L:new ue,w:new pe,I:new me,d:new be,D:new ge,E:new we,e:new _e,c:new xe,i:new ke,a:new Ce,b:new Se,B:new Ae,h:new Ee,H:new Ie,K:new ze,k:new Te,m:new De,s:new Me,S:new Pe,X:new Oe,x:new Fe,t:new Ne,T:new Be},je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ve=/^'([^]*?)'?$/,qe=/''/g,Re=/\S/,He=/[a-zA-Z]/;function We(t,e,i,s){var r,o,n,a,l,h,v,f,b,g,w,_,x,k,C,S,A,E;d(3,arguments);var I=String(t),z=String(e),T=y(),D=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:T.locale)&&void 0!==r?r:tt;if(!D.match)throw new RangeError("locale must contain match property");var M=p(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(v=s.locale)||void 0===v||null===(f=v.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:T.firstWeekContainsDate)&&void 0!==a?a:null===(b=T.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==n?n:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=p(null!==(w=null!==(_=null!==(x=null!==(k=null==s?void 0:s.weekStartsOn)&&void 0!==k?k:null==s||null===(C=s.locale)||void 0===C||null===(S=C.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==x?x:T.weekStartsOn)&&void 0!==_?_:null===(A=T.locale)||void 0===A||null===(E=A.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==w?w:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===z)return""===I?u(i):new Date(NaN);var O,F={firstWeekContainsDate:M,weekStartsOn:P,locale:D},N=[new kt],B=z.match(Le).map((function(t){var e=t[0];return e in L?(0,L[e])(t,D.formatLong):t})).join("").match(je),$=[],j=lt(B);try{var q=function(){var e=O.value;null!=s&&s.useAdditionalWeekYearTokens||!W(e)||U(e,z,t),null!=s&&s.useAdditionalDayOfYearTokens||!H(e)||U(e,z,t);var i=e[0],r=$e[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=$.find((function(t){return o.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&$.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));$.push({token:i,fullToken:e});var a=r.run(I,e,D.match,F);if(!a)return{v:new Date(NaN)};N.push(a.setter),I=a.rest}else{if(i.match(He))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Ve)[1].replace(qe,"'")),0!==I.indexOf(e))return{v:new Date(NaN)};I=I.slice(e.length)}};for(j.s();!(O=j.n()).done;){var R=q();if("object"===c(R))return R.v}}catch(t){j.e(t)}finally{j.f()}if(I.length>0&&Re.test(I))return new Date(NaN);var Y=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),G=u(i);if(isNaN(G.getTime()))return new Date(NaN);var K,Q=m(G,V(G)),J={},Z=lt(Y);try{for(Z.s();!(K=Z.n()).done;){var X=K.value;if(!X.validate(Q,F))return new Date(NaN);var et=X.set(Q,J,F);Array.isArray(et)?(Q=et[0],ht(J,et[1])):Q=et}}catch(t){Z.e(t)}finally{Z.f()}return Q}function Ue(t,e){d(2,arguments);var i=u(t),s=u(e);return i.getTime()>s.getTime()}function Ye(t,e){d(2,arguments);var i=u(t),s=u(e);return i.getTime()<s.getTime()}const Ge=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return nt(new Date(e,i,s),this.dateFormat||"yyyy-MM-dd")},this.parseDate=t=>{const e=We(t,this.dateFormat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=We((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=We((null===(e=this.validation.max)||void 0===e?void 0:e.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=We(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return!Ye(this.valueAsDate,this.minDate)&&!Ue(this.valueAsDate,this.maxDate)&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?n("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):Ye(this.valueAsDate,this.minDate)||Ue(this.valueAsDate,this.maxDate)?n("dateError2",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fe4318723f3be85d48c56210dae9eea53187ad75",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"e34777bbadaa76f2d9adb2e525c07baf4460616e",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),i("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:t=>this.handleInput(t),onBlur:this.handleBlur}),i("small",{key:"7a9d3342628bfd7f2798a6563a69ab7010c3075f",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"04745e1bd587042af44784b3c46fbf2d0174af1f",class:"date__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return s(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ge.style='*,*::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}';const Ke=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}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,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===s?void 0:s.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"8cc90cea4b25fcd2fe05c9b6c609dc37a84d28a1",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"43d0be5a1fecc1fa937323746362c2daa55863a8",class:"email__wrapper--flex"},i("label",{key:"082b86cae6d59f2b2b025801373ae2f9efe7ef7a",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"57a25e865a0bb7376d675195940046be19066caa",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"8e720b021706191a33a39cc62e29b8acb747e740",class:"email__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"93cbeb1fcc0d5b992b9fb171b4d47b700087f284",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"0eab5e5e8cd4a525f2160637af1be9c2e4d313c1",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ke.style='*,*::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}';var Qe=Object.defineProperty,Je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ii=(t,e,i)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,si=(t,e)=>{for(var i in e||(e={}))ti.call(e,i)&&ii(t,i,e[i]);if(Xe)for(var i of Xe(e))ei.call(e,i)&&ii(t,i,e[i]);return t},ri=(t,e)=>Je(t,Ze(e)),oi=(t,e,i)=>(ii(t,"symbol"!=typeof e?e+"":e,i),i),ni=(t,e,i)=>new Promise(((s,r)=>{var o=t=>{try{a(i.next(t))}catch(t){r(t)}},n=t=>{try{a(i.throw(t))}catch(t){r(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(o,n);a((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PamForgotPassword}from"./
|
|
1
|
+
export{P as PamForgotPassword}from"./pam-forgot-password-0f76562c.js";import"./index-6f00d158.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./index-6f00d158.js";const a={en:{title:"Forgot Password",dropdownDisplayName:"Contact",telDisplayName:"Phone Number",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Enter your email",usernameDisplayName:"Username",usernamePlaceholder:"Enter your username",firstNameDisplayName:"First Name",firstNamePlaceholder:"Enter your first name",dateOfBirthDisplayName:"Date of Birth",dateOfBirthPlaceholder:"1911-11-11",loading:"Loading ...",submitError:"Something went wrong. Please try again later",configError:"Something went wrong. Please try again later",successMsg:"If your account exists, a reset link is on its way",btnSubmit:"submit",sms:"sms",email:"email"},ro:{title:"Parolă uitată",dropdownDisplayName:"Contact",telDisplayName:"Număr de telefon",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Introduceți emailul dvs.",usernameDisplayName:"Nume de utilizator",usernamePlaceholder:"Introduceți numele dvs. de utilizator",firstNameDisplayName:"Prenume",firstNamePlaceholder:"Introduceți prenumele dvs.",dateOfBirthDisplayName:"Data nașterii",dateOfBirthPlaceholder:"1911-11-11",loading:"Se încarcă ...",submitError:"Ceva nu a mers bine. Vă rugăm să încercați din nou mai târziu",configError:"Ceva nu a mers bine. Vă rugăm să încercați din nou mai târziu",successMsg:"Dacă contul dvs. există, un link de resetare este va fi trimis",btnSubmit:"Trimite",sms:"sms",email:"email"},fr:{title:"Mot de passe oublié",dropdownDisplayName:"Contact",telDisplayName:"Numéro de téléphone",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Entrez votre email",usernameDisplayName:"Nom d'utilisateur",usernamePlaceholder:"Entrez votre nom d'utilisateur",firstNameDisplayName:"Prénom",firstNamePlaceholder:"Entrez votre prénom",dateOfBirthDisplayName:"Date de naissance",dateOfBirthPlaceholder:"1911-11-11",loading:"Chargement ...",submitError:"Un problème est survenu. Veuillez réessayer plus tard",configError:"Un problème est survenu. Veuillez réessayer plus tard",successMsg:"Si votre compte existe, un lien de réinitialisation est en route",btnSubmit:"soumettre",sms:"sms",email:"email"},hu:{title:"Elfelejtett jelszó",dropdownDisplayName:"Kapcsolat",telDisplayName:"Telefonszám",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Adja meg az email címét",usernameDisplayName:"Felhasználónév",usernamePlaceholder:"Adja meg a felhasználónevét",firstNameDisplayName:"Keresztnév",firstNamePlaceholder:"Adja meg a keresztnevét",dateOfBirthDisplayName:"Születési dátum",dateOfBirthPlaceholder:"1911-11-11",loading:"Betöltés ...",submitError:"Valami hiba történt. Kérjük, próbálja meg később",configError:"Valami hiba történt. Kérjük, próbálja meg később",successMsg:"Ha létezik a fiókja, egy visszaállítási link úton van",btnSubmit:"Beküldés",sms:"sms",email:"email"},tr:{title:"Şifremi Unuttum",dropdownDisplayName:"İletişim",telDisplayName:"Telefon Numarası",telPlaceholder:"0000000000",emailDisplayName:"E-posta",emailPlaceholder:"E-postanızı girin",usernameDisplayName:"Kullanıcı Adı",usernamePlaceholder:"Kullanıcı adınızı girin",firstNameDisplayName:"İsim",firstNamePlaceholder:"İsminizi girin",dateOfBirthDisplayName:"Doğum Tarihi",dateOfBirthPlaceholder:"1911-11-11",loading:"Yükleniyor ...",submitError:"Bir şeyler ters gitti. Lütfen daha sonra tekrar deneyin",configError:"Bir şeyler ters gitti. Lütfen daha sonra tekrar deneyin",successMsg:"Hesabınız varsa, bir sıfırlama bağlantısı yolda",btnSubmit:"Gönder",sms:"sms",email:"e-posta"},el:{title:"Ξεχάσατε τον κωδικό;",dropdownDisplayName:"Επικοινωνία",telDisplayName:"Αριθμός τηλεφώνου",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Εισάγετε το email σας",usernameDisplayName:"Όνομα χρήστη",usernamePlaceholder:"Εισάγετε το όνομα χρήστη σας",firstNameDisplayName:"Όνομα",firstNamePlaceholder:"Εισάγετε το όνομά σας",dateOfBirthDisplayName:"Ημερομηνία γέννησης",dateOfBirthPlaceholder:"1911-11-11",loading:"Φόρτωση ...",submitError:"Κάτι πήγε στραβά. Παρακαλούμε δοκιμάστε ξανά αργότερα",configError:"Κάτι πήγε στραβά. Παρακαλούμε δοκιμάστε ξανά αργότερα",successMsg:"Αν ο λογαριασμός σας υπάρχει, ένας σύνδεσμος επαναφοράς είναι καθ' οδόν",btnSubmit:"υποβάλλουν",sms:"sms",email:"email"},es:{title:"Olvidé mi contraseña",dropdownDisplayName:"Contacto",telDisplayName:"Número de teléfono",telPlaceholder:"0000000000",emailDisplayName:"Correo electrónico",emailPlaceholder:"Introduce tu correo electrónico",usernameDisplayName:"Nombre de usuario",usernamePlaceholder:"Introduce tu nombre de usuario",firstNameDisplayName:"Nombre",firstNamePlaceholder:"Introduce tu nombre",dateOfBirthDisplayName:"Fecha de nacimiento",dateOfBirthPlaceholder:"1911-11-11",loading:"Cargando ...",submitError:"Algo salió mal. Por favor, inténtalo de nuevo más tarde",configError:"Algo salió mal. Por favor, inténtalo de nuevo más tarde",successMsg:"Si tu cuenta existe, un enlace de restablecimiento está en camino",btnSubmit:"enviar",sms:"sms",email:"email"},pt:{title:"Esqueci a Senha",dropdownDisplayName:"Contato",telDisplayName:"Número de Telefone",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Digite seu email",usernameDisplayName:"Nome de Usuário",usernamePlaceholder:"Digite seu nome de usuário",firstNameDisplayName:"Nome",firstNamePlaceholder:"Digite seu nome",dateOfBirthDisplayName:"Data de Nascimento",dateOfBirthPlaceholder:"1911-11-11",loading:"Carregando ...",submitError:"Algo deu errado. Por favor, tente novamente mais tarde",configError:"Algo deu errado. Por favor, tente novamente mais tarde",successMsg:"Se sua conta existir, um link de redefinição está a caminho",btnSubmit:"enviar",sms:"sms",email:"email"},hr:{title:"Zaboravljena lozinka",dropdownDisplayName:"Kontakt",telDisplayName:"Broj telefona",telPlaceholder:"0000000000",emailDisplayName:"E-mail",emailPlaceholder:"Unesite svoj e-mail",usernameDisplayName:"Korisničko ime",usernamePlaceholder:"Unesite svoje korisničko ime",firstNameDisplayName:"Ime",firstNamePlaceholder:"Unesite svoje ime",dateOfBirthDisplayName:"Datum rođenja",dateOfBirthPlaceholder:"1911-11-11",loading:"Učitavanje ...",submitError:"Nešto je pošlo po zlu. Molimo pokušajte ponovno kasnije",configError:"Nešto je pošlo po zlu. Molimo pokušajte ponovno kasnije",successMsg:"Ako vaš račun postoji, poveznica za poništavanje lozinke je na putu",btnSubmit:"pošalji",sms:"sms",email:"email"}},i=(e,t)=>a[void 0!==t?t:"en"][e];function o(){const e=navigator.userAgent.toLowerCase(),t=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>t&&t<800)return"mobile";if(t>a&&a<800)return"tablet"}return"desktop"}function r(e,t){if(e){const a=document.createElement("style");a.innerHTML=t,e.appendChild(a)}}function n(e,t){const a=new URL(t);fetch(a.href).then((e=>e.text())).then((t=>{const a=document.createElement("style");a.innerHTML=t,e&&e.appendChild(a)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const s=class{constructor(t){e(this,t),this.isContactValid=!1,this.validation={mandatory:!0,custom:[]},this.submitRequest=e=>{e.preventDefault();const t=new URL("/api/v1/players/password-management/password/forgot/request",this.endpoint),a=new Headers;this.captchaData.isEnabled&&this.captchaData.token&&a.append("X-Captcha-Response",this.captchaData.token),a.append("Content-Type","application/json");const o=JSON.stringify({contact:this.contact});fetch(t.href,{method:"POST",headers:a,body:o}).then((e=>e.json())).then((e=>{e.errorCode?this.sendErrorNotification(i("submitError",this.language)):(window.postMessage({type:"ForgotPasswordSuccess"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMsg",this.language)}},window.location.href))})).catch((()=>{this.sendErrorNotification(i("submitError",this.language))}))},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.endpoint=void 0,this.language=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.mbSource=void 0,this.translationUrl=void 0,this.contactType="",this.isBtnSubmitEnabled=!1,this.skeletonLoading=!0,this.hasError=!1,this.isMobile="mobile"===o()||"tablet"===o(),this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""},this.errorMessage=""}sendValidityStateHandler(e){"contact"!==e.detail.name||(this.isContactValid=e.detail.valid)}sendInputValueHandler(e){switch(e.detail.name){case"dropdown":this.contactType=e.detail.value.toLowerCase();break;case"contact":this.contact=e.detail.value}this.updateSubmitButtonState()}updateSubmitButtonState(){this.isBtnSubmitEnabled=this.isContactValid&&!!this.contact&&(!this.captchaData.isEnabled||!!this.captchaData.token)}handleClientStylingChange(e,t){e!=t&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl)}sendErrorNotification(e){window.postMessage({type:"HasError",error:e},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:e}},window.location.href)}async componentWillLoad(){var e;this.translationUrl&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])a[t][i]=e[t][i]})),t(!0)}))}))),this.getConfig().then((()=>{this.appendCaptchaScript()})).catch((e=>{console.error(e),this.hasError=!0,this.errorMessage=i("configError",this.language),this.sendErrorNotification(this.errorMessage)})).finally((()=>{this.skeletonLoading=!1}))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{a.innerHTML=t,e&&e.appendChild(a)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl)))}getConfig(){const e=new URL("/api/v1/players/password-management/password/forgot/config",this.endpoint);return new Promise(((t,a)=>{fetch(e.href).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);return e.json()})).then((e=>{const{captcha:a}=e;a&&"string"==typeof a.provider&&(a.provider=a.provider.toLowerCase()),this.captchaData=Object.assign({},a),t()})).catch((e=>{console.error("Error fetching login configuration:",e),a(e)}))}))}appendCaptchaScript(){const{isEnabled:e,provider:t}=this.captchaData;if(!e)return;const a=document.createElement("script");"cloudflare"===t?a.src="https://challenges.cloudflare.com/turnstile/v0/api.js":"google"===t&&(a.src="https://www.google.com/recaptcha/api.js"),a.onload=this.handleCaptcha.bind(this),document.head.appendChild(a)}handleCaptcha(){const{isEnabled:e,provider:t,siteKey:a}=this.captchaData;e&&["cloudflare","google"].includes(t)&&("cloudflare"===t?window.turnstile.render("#turnstileContainer",{sitekey:a,theme:"light",callback:this.captchaCallback.bind(this)}):"google"===t&&window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:a,callback:this.captchaCallback.bind(this),theme:"light"})})))}captchaCallback(e){this.captchaData.token=e,this.captchaData=Object.assign({},this.captchaData),this.updateSubmitButtonState()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return this.skeletonLoading?t("div",{class:"PlayerForgotPassword skeleton"},t("form",{class:"Form"},t("div",{class:"ButtonReturn"},t("ui-skeleton",{structure:"text",width:"auto",height:"30px"})),t("section",{class:"FieldsSection"},t("div",{class:"FieldContainer"},t("div",{class:"FieldTitle"},t("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),t("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"}))),t("section",{class:"ButtonsSection"},t("div",{class:"Button"},t("ui-skeleton",{structure:"rectangle",width:"auto",height:"50px"}))))):t("div",{class:"PlayerForgotPassword",ref:e=>this.stylingContainer=e},this.hasError?t("h4",{class:"Error"},i("configError",this.language)):t("form",{action:".",class:"Form"},t("div",{class:"ButtonReturn",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"TitleMobile"},i("title",this.language))),t("h2",{class:"Title"},i("title",this.language)),t("section",{class:"FieldsSection"},t("div",{class:"ContactWrapper"+(this.isMobile?"Mobile":"")},t("general-input",{class:"Contact",language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource,type:"email",name:"contact",displayName:i("emailDisplayName"),emitValue:!0,validation:this.validation,placeholder:i("emailPlaceholder")})),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&t("slot",{name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&t("slot",{name:"google"})),t("section",{class:"ButtonsWrapper"},t("button",{class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitRequest},i("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};s.style="::host {\n display: block;\n}\n\n.PlayerForgotPassword {\n font-family: inherit;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n opacity: 1;\n animation-name: fadeIn;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n container-type: inline-size;\n}\n.PlayerForgotPassword .Error {\n font-size: var(--emw--font-size-x-small, 12px);\n color: var(--emw--color-error, #ed0909);\n}\n.PlayerForgotPassword .Loading {\n font-size: var(--emw--font-size-x-small, 12px);\n color: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword .Title {\n background-color: transparent;\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--color-primary, #22B04E);\n font-weight: var(--emw--font-weight-semibold, 500);\n}\n.PlayerForgotPassword .TitleMobile {\n font-size: var(--emw--font-size-x-large, 20px);\n color: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword svg {\n fill: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword .ButtonReturn {\n display: none;\n font-family: inherit;\n align-items: center;\n gap: 10px;\n}\n.PlayerForgotPassword .Form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.PlayerForgotPassword .Form .FieldsSection {\n display: flex;\n flex-direction: column;\n gap: 30px;\n}\n.PlayerForgotPassword .Form .ContactWrapper {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 5px;\n}\n.PlayerForgotPassword .Form .ContactWrapper .Select {\n width: 25%;\n}\n.PlayerForgotPassword .Form .ContactWrapper .Contact {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 30px;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile .Select {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile .Contact {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ButtonsSection {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.PlayerForgotPassword .Button {\n font-family: inherit;\n border-radius: var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));\n background: var(--emw--button-background-color, var(--emw--color-primary, #22B04E));\n border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));\n color: var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));\n font-size: var(--emw--font-size-large, 20px);\n font-weight: var(--emw--font-weight-normal, 400);\n height: 50px;\n width: 100%;\n text-transform: uppercase;\n cursor: pointer;\n}\n.PlayerForgotPassword .Button:disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));\n pointer-events: none;\n cursor: not-allowed;\n}\n.PlayerForgotPassword.skeleton .Form .ButtonReturn {\n width: 150px;\n height: 30px;\n margin-top: 15px;\n display: block;\n}\n.PlayerForgotPassword.skeleton .Form .FieldsSection {\n display: block;\n}\n.PlayerForgotPassword.skeleton .Form .FieldsSection .FieldContainer .FieldTitle {\n width: 100px;\n margin-top: 30px;\n margin-bottom: 15px;\n}\n.PlayerForgotPassword.skeleton .Form .ButtonsSection .Button {\n font-family: inherit;\n border-radius: 50px;\n background: transparent;\n border: none;\n overflow: hidden;\n}\n@container (max-width: 425px) {\n .PlayerForgotPassword .Form .ButtonReturn {\n display: inline-flex;\n }\n .PlayerForgotPassword .Form .Title {\n display: none;\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0.01;\n }\n 1% {\n opacity: 0;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}";export{s as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as l,b as e}from"./
|
|
1
|
+
import{p as l,b as e}from"./index-6f00d158.js";export{s as setNonce}from"./index-6f00d158.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),l(i)})().then((async l=>(await i(),e([["checkbox-group-input_14",[[1,"pam-forgot-password",{endpoint:[513],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[513,"translation-url"],contactType:[32],isBtnSubmitEnabled:[32],skeletonLoading:[32],hasError:[32],isMobile:[32],captchaData:[32],errorMessage:[32]},[[0,"sendValidityState","sendValidityStateHandler"],[0,"sendInputValue","sendInputValueHandler"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}],[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}],[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}],[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32],showCheckboxes:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]]],l))));
|
package/dist/stencil.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-f5cf4939.js";const a={en:{title:"Forgot Password",dropdownDisplayName:"Contact",telDisplayName:"Phone Number",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Enter your email",usernameDisplayName:"Username",usernamePlaceholder:"Enter your username",firstNameDisplayName:"First Name",firstNamePlaceholder:"Enter your first name",dateOfBirthDisplayName:"Date of Birth",dateOfBirthPlaceholder:"1911-11-11",loading:"Loading ...",submitError:"Something went wrong. Please try again later",configError:"Something went wrong. Please try again later",successMsg:"If your account exists, a reset link is on its way",btnSubmit:"submit",sms:"sms",email:"email"},ro:{title:"Parolă uitată",dropdownDisplayName:"Contact",telDisplayName:"Număr de telefon",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Introduceți emailul dvs.",usernameDisplayName:"Nume de utilizator",usernamePlaceholder:"Introduceți numele dvs. de utilizator",firstNameDisplayName:"Prenume",firstNamePlaceholder:"Introduceți prenumele dvs.",dateOfBirthDisplayName:"Data nașterii",dateOfBirthPlaceholder:"1911-11-11",loading:"Se încarcă ...",submitError:"Ceva nu a mers bine. Vă rugăm să încercați din nou mai târziu",configError:"Ceva nu a mers bine. Vă rugăm să încercați din nou mai târziu",successMsg:"Dacă contul dvs. există, un link de resetare este va fi trimis",btnSubmit:"Trimite",sms:"sms",email:"email"},fr:{title:"Mot de passe oublié",dropdownDisplayName:"Contact",telDisplayName:"Numéro de téléphone",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Entrez votre email",usernameDisplayName:"Nom d'utilisateur",usernamePlaceholder:"Entrez votre nom d'utilisateur",firstNameDisplayName:"Prénom",firstNamePlaceholder:"Entrez votre prénom",dateOfBirthDisplayName:"Date de naissance",dateOfBirthPlaceholder:"1911-11-11",loading:"Chargement ...",submitError:"Un problème est survenu. Veuillez réessayer plus tard",configError:"Un problème est survenu. Veuillez réessayer plus tard",successMsg:"Si votre compte existe, un lien de réinitialisation est en route",btnSubmit:"soumettre",sms:"sms",email:"email"},hu:{title:"Elfelejtett jelszó",dropdownDisplayName:"Kapcsolat",telDisplayName:"Telefonszám",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Adja meg az email címét",usernameDisplayName:"Felhasználónév",usernamePlaceholder:"Adja meg a felhasználónevét",firstNameDisplayName:"Keresztnév",firstNamePlaceholder:"Adja meg a keresztnevét",dateOfBirthDisplayName:"Születési dátum",dateOfBirthPlaceholder:"1911-11-11",loading:"Betöltés ...",submitError:"Valami hiba történt. Kérjük, próbálja meg később",configError:"Valami hiba történt. Kérjük, próbálja meg később",successMsg:"Ha létezik a fiókja, egy visszaállítási link úton van",btnSubmit:"Beküldés",sms:"sms",email:"email"},tr:{title:"Şifremi Unuttum",dropdownDisplayName:"İletişim",telDisplayName:"Telefon Numarası",telPlaceholder:"0000000000",emailDisplayName:"E-posta",emailPlaceholder:"E-postanızı girin",usernameDisplayName:"Kullanıcı Adı",usernamePlaceholder:"Kullanıcı adınızı girin",firstNameDisplayName:"İsim",firstNamePlaceholder:"İsminizi girin",dateOfBirthDisplayName:"Doğum Tarihi",dateOfBirthPlaceholder:"1911-11-11",loading:"Yükleniyor ...",submitError:"Bir şeyler ters gitti. Lütfen daha sonra tekrar deneyin",configError:"Bir şeyler ters gitti. Lütfen daha sonra tekrar deneyin",successMsg:"Hesabınız varsa, bir sıfırlama bağlantısı yolda",btnSubmit:"Gönder",sms:"sms",email:"e-posta"},el:{title:"Ξεχάσατε τον κωδικό;",dropdownDisplayName:"Επικοινωνία",telDisplayName:"Αριθμός τηλεφώνου",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Εισάγετε το email σας",usernameDisplayName:"Όνομα χρήστη",usernamePlaceholder:"Εισάγετε το όνομα χρήστη σας",firstNameDisplayName:"Όνομα",firstNamePlaceholder:"Εισάγετε το όνομά σας",dateOfBirthDisplayName:"Ημερομηνία γέννησης",dateOfBirthPlaceholder:"1911-11-11",loading:"Φόρτωση ...",submitError:"Κάτι πήγε στραβά. Παρακαλούμε δοκιμάστε ξανά αργότερα",configError:"Κάτι πήγε στραβά. Παρακαλούμε δοκιμάστε ξανά αργότερα",successMsg:"Αν ο λογαριασμός σας υπάρχει, ένας σύνδεσμος επαναφοράς είναι καθ' οδόν",btnSubmit:"υποβάλλουν",sms:"sms",email:"email"},es:{title:"Olvidé mi contraseña",dropdownDisplayName:"Contacto",telDisplayName:"Número de teléfono",telPlaceholder:"0000000000",emailDisplayName:"Correo electrónico",emailPlaceholder:"Introduce tu correo electrónico",usernameDisplayName:"Nombre de usuario",usernamePlaceholder:"Introduce tu nombre de usuario",firstNameDisplayName:"Nombre",firstNamePlaceholder:"Introduce tu nombre",dateOfBirthDisplayName:"Fecha de nacimiento",dateOfBirthPlaceholder:"1911-11-11",loading:"Cargando ...",submitError:"Algo salió mal. Por favor, inténtalo de nuevo más tarde",configError:"Algo salió mal. Por favor, inténtalo de nuevo más tarde",successMsg:"Si tu cuenta existe, un enlace de restablecimiento está en camino",btnSubmit:"enviar",sms:"sms",email:"email"},pt:{title:"Esqueci a Senha",dropdownDisplayName:"Contato",telDisplayName:"Número de Telefone",telPlaceholder:"0000000000",emailDisplayName:"Email",emailPlaceholder:"Digite seu email",usernameDisplayName:"Nome de Usuário",usernamePlaceholder:"Digite seu nome de usuário",firstNameDisplayName:"Nome",firstNamePlaceholder:"Digite seu nome",dateOfBirthDisplayName:"Data de Nascimento",dateOfBirthPlaceholder:"1911-11-11",loading:"Carregando ...",submitError:"Algo deu errado. Por favor, tente novamente mais tarde",configError:"Algo deu errado. Por favor, tente novamente mais tarde",successMsg:"Se sua conta existir, um link de redefinição está a caminho",btnSubmit:"enviar",sms:"sms",email:"email"},hr:{title:"Zaboravljena lozinka",dropdownDisplayName:"Kontakt",telDisplayName:"Broj telefona",telPlaceholder:"0000000000",emailDisplayName:"E-mail",emailPlaceholder:"Unesite svoj e-mail",usernameDisplayName:"Korisničko ime",usernamePlaceholder:"Unesite svoje korisničko ime",firstNameDisplayName:"Ime",firstNamePlaceholder:"Unesite svoje ime",dateOfBirthDisplayName:"Datum rođenja",dateOfBirthPlaceholder:"1911-11-11",loading:"Učitavanje ...",submitError:"Nešto je pošlo po zlu. Molimo pokušajte ponovno kasnije",configError:"Nešto je pošlo po zlu. Molimo pokušajte ponovno kasnije",successMsg:"Ako vaš račun postoji, poveznica za poništavanje lozinke je na putu",btnSubmit:"pošalji",sms:"sms",email:"email"}},i=(e,t)=>a[void 0!==t?t:"en"][e];function o(){const e=navigator.userAgent.toLowerCase(),t=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>t&&t<800)return"mobile";if(t>a&&a<800)return"tablet"}return"desktop"}function r(e,t){if(e){const a=document.createElement("style");a.innerHTML=t,e.appendChild(a)}}function n(e,t){const a=new URL(t);fetch(a.href).then((e=>e.text())).then((t=>{const a=document.createElement("style");a.innerHTML=t,e&&e.appendChild(a)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const s=class{constructor(t){e(this,t),this.isContactValid=!1,this.validation={mandatory:!0,custom:[]},this.submitRequest=e=>{e.preventDefault();const t=new URL("/api/v1/players/password-management/password/forgot/request",this.endpoint),a=new Headers;this.captchaData.isEnabled&&this.captchaData.token&&a.append("X-Captcha-Response",this.captchaData.token),a.append("Content-Type","application/json");const o=JSON.stringify({contact:this.contact});fetch(t.href,{method:"POST",headers:a,body:o}).then((e=>e.json())).then((e=>{e.errorCode?this.sendErrorNotification(i("submitError",this.language)):(window.postMessage({type:"ForgotPasswordSuccess"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMsg",this.language)}},window.location.href))})).catch((()=>{this.sendErrorNotification(i("submitError",this.language))}))},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.endpoint=void 0,this.language=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.mbSource=void 0,this.translationUrl=void 0,this.contactType="",this.isBtnSubmitEnabled=!1,this.skeletonLoading=!0,this.hasError=!1,this.isMobile="mobile"===o()||"tablet"===o(),this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""},this.errorMessage=""}sendValidityStateHandler(e){"contact"!==e.detail.name||(this.isContactValid=e.detail.valid)}sendInputValueHandler(e){switch(e.detail.name){case"dropdown":this.contactType=e.detail.value.toLowerCase();break;case"contact":this.contact=e.detail.value}this.updateSubmitButtonState()}updateSubmitButtonState(){this.isBtnSubmitEnabled=this.isContactValid&&!!this.contact&&(!this.captchaData.isEnabled||!!this.captchaData.token)}handleClientStylingChange(e,t){e!=t&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl)}sendErrorNotification(e){window.postMessage({type:"HasError",error:e},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:e}},window.location.href)}async componentWillLoad(){var e;this.translationUrl&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])a[t][i]=e[t][i]})),t(!0)}))}))),this.getConfig().then((()=>{this.appendCaptchaScript()})).catch((e=>{console.error(e),this.hasError=!0,this.errorMessage=i("configError",this.language),this.sendErrorNotification(this.errorMessage)})).finally((()=>{this.skeletonLoading=!1}))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{a.innerHTML=t,e&&e.appendChild(a)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl)))}getConfig(){const e=new URL("/api/v1/players/password-management/password/forgot/config",this.endpoint);return new Promise(((t,a)=>{fetch(e.href).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);return e.json()})).then((e=>{const{captcha:a}=e;a&&"string"==typeof a.provider&&(a.provider=a.provider.toLowerCase()),this.captchaData=Object.assign({},a),t()})).catch((e=>{console.error("Error fetching login configuration:",e),a(e)}))}))}appendCaptchaScript(){const{isEnabled:e,provider:t}=this.captchaData;if(!e)return;const a=document.createElement("script");"cloudflare"===t?a.src="https://challenges.cloudflare.com/turnstile/v0/api.js":"google"===t&&(a.src="https://www.google.com/recaptcha/api.js"),a.onload=this.handleCaptcha.bind(this),document.head.appendChild(a)}handleCaptcha(){const{isEnabled:e,provider:t,siteKey:a}=this.captchaData;e&&["cloudflare","google"].includes(t)&&("cloudflare"===t?window.turnstile.render("#turnstileContainer",{sitekey:a,theme:"light",callback:this.captchaCallback.bind(this)}):"google"===t&&window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:a,callback:this.captchaCallback.bind(this),theme:"light"})})))}captchaCallback(e){this.captchaData.token=e,this.captchaData=Object.assign({},this.captchaData),this.updateSubmitButtonState()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return this.skeletonLoading?t("div",{class:"PlayerForgotPassword skeleton"},t("form",{class:"Form"},t("div",{class:"ButtonReturn"},t("ui-skeleton",{structure:"text",width:"auto",height:"30px"})),t("section",{class:"FieldsSection"},t("div",{class:"FieldContainer"},t("div",{class:"FieldTitle"},t("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),t("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"}))),t("section",{class:"ButtonsSection"},t("div",{class:"Button"},t("ui-skeleton",{structure:"rectangle",width:"auto",height:"50px"}))))):t("div",{class:"PlayerForgotPassword",ref:e=>this.stylingContainer=e},this.hasError?t("h4",{class:"Error"},i("configError",this.language)):t("form",{action:".",class:"Form"},t("div",{class:"ButtonReturn",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"TitleMobile"},i("title",this.language))),t("h2",{class:"Title"},i("title",this.language)),t("section",{class:"FieldsSection"},t("div",{class:"ContactWrapper"+(this.isMobile?"Mobile":"")},t("general-input",{class:"Contact",language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource,type:"email",name:"contact",displayName:i("emailDisplayName"),emitValue:!0,validation:this.validation,placeholder:i("emailPlaceholder")})),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&t("slot",{name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&t("slot",{name:"google"})),t("section",{class:"ButtonsWrapper"},t("button",{class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitRequest},i("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};s.style="::host {\n display: block;\n}\n\n.PlayerForgotPassword {\n font-family: inherit;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n opacity: 1;\n animation-name: fadeIn;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n container-type: inline-size;\n}\n.PlayerForgotPassword .Error {\n font-size: var(--emw--font-size-x-small, 12px);\n color: var(--emw--color-error, #ed0909);\n}\n.PlayerForgotPassword .Loading {\n font-size: var(--emw--font-size-x-small, 12px);\n color: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword .Title {\n background-color: transparent;\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--color-primary, #22B04E);\n font-weight: var(--emw--font-weight-semibold, 500);\n}\n.PlayerForgotPassword .TitleMobile {\n font-size: var(--emw--font-size-x-large, 20px);\n color: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword svg {\n fill: var(--emw--color-primary, #22B04E);\n}\n.PlayerForgotPassword .ButtonReturn {\n display: none;\n font-family: inherit;\n align-items: center;\n gap: 10px;\n}\n.PlayerForgotPassword .Form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.PlayerForgotPassword .Form .FieldsSection {\n display: flex;\n flex-direction: column;\n gap: 30px;\n}\n.PlayerForgotPassword .Form .ContactWrapper {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 5px;\n}\n.PlayerForgotPassword .Form .ContactWrapper .Select {\n width: 25%;\n}\n.PlayerForgotPassword .Form .ContactWrapper .Contact {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 30px;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile .Select {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ContactWrapperMobile .Contact {\n width: 100%;\n}\n.PlayerForgotPassword .Form .ButtonsSection {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.PlayerForgotPassword .Button {\n font-family: inherit;\n border-radius: var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));\n background: var(--emw--button-background-color, var(--emw--color-primary, #22B04E));\n border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));\n color: var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));\n font-size: var(--emw--font-size-large, 20px);\n font-weight: var(--emw--font-weight-normal, 400);\n height: 50px;\n width: 100%;\n text-transform: uppercase;\n cursor: pointer;\n}\n.PlayerForgotPassword .Button:disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));\n pointer-events: none;\n cursor: not-allowed;\n}\n.PlayerForgotPassword.skeleton .Form .ButtonReturn {\n width: 150px;\n height: 30px;\n margin-top: 15px;\n display: block;\n}\n.PlayerForgotPassword.skeleton .Form .FieldsSection {\n display: block;\n}\n.PlayerForgotPassword.skeleton .Form .FieldsSection .FieldContainer .FieldTitle {\n width: 100px;\n margin-top: 30px;\n margin-bottom: 15px;\n}\n.PlayerForgotPassword.skeleton .Form .ButtonsSection .Button {\n font-family: inherit;\n border-radius: 50px;\n background: transparent;\n border: none;\n overflow: hidden;\n}\n@container (max-width: 425px) {\n .PlayerForgotPassword .Form .ButtonReturn {\n display: inline-flex;\n }\n .PlayerForgotPassword .Form .Title {\n display: none;\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0.01;\n }\n 1% {\n opacity: 0;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}";export{s as P}
|
|
File without changes
|
|
File without changes
|