@everymatrix/bonus-elevate-powerups 0.5.54 → 0.5.56

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.
@@ -1,4 +1,4 @@
1
- import{s as t,a as e,b as i,t as s}from"./bonus-elevate-powerups-c2064845.js";export{B as bonus_elevate_powerups}from"./bonus-elevate-powerups-c2064845.js";import{r,c as o,h as n,g as a,H as l,f as h}from"./index-ec054cba.js";const d=["pt-br","en","es-mx","hu","hr"],c={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},u=(t,e,i)=>{const s=e;let r=c[void 0!==s&&d.includes(s)?s:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},p=class{constructor(t){r(this,t),this.reloadPageEmitter=o(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=7,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return n("ul",{class:"PaginationArea"},this.pagesArray.map((t=>n("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return n("general-styling-wrapper",{targetTranslations:c,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],s=Math.floor(t/2);const r=this.endPageIndex+1;if(e)if(this.currentPage<s||this.currentPage>r-s+1){i=Array.from({length:s},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==s){i=Array.from({length:s+1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==r-s+1){i=Array.from({length:s-1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r]);else this.currentPage<=t-s?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-s)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-s+1)),i.push("..."),i.unshift("..."));return i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return n("div",{key:"a6d3cd6cd1e5ff8d927486806d26c6eb61e57833",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&n("span",{key:"56f81e329deb0d5160d4d4e020571d1cc402dcc1",class:"PageOfMessage"},u("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),n("div",{key:"eaf964e00190b690564d57af6da91aed717e1690",class:"PageNavigation"},this.arrowsActive&&n("div",{key:"2be57e1c4d3d6fb80db83c6b5c60710573da5f5e",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},u("firstPage",this.language)),this.secondaryArrowsActive&&n("span",{key:"d240849c9ba6b9c14d4ebed6c346d7cc629a1a59",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},u("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&n("span",{key:"90cb6da1e51256e86f8678e0520d4b221b99957d",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},u("nextPage",this.language)),this.arrowsActive&&n("div",{key:"c74711a45bbbf822ca56e6f2fe70ee541ae91cfa",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",u("lastPage",this.language)," "),this.renderStylingWrapper()))}};p.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const m={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",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",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek 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",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",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",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter 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",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"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",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",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",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",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",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},v={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},f="requiredError",g="lengthError",b="fixedLengthError",y=(t,e,i)=>{let s=m[e]?m[e][t]:m.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},w=t=>{Object.keys(t).forEach((e=>{m[e]=m[e]||{},Object.keys(t[e]).forEach((i=>{"string"==typeof t[e][i]&&(m[e][i]=t[e][i])}))}))},_='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="6" cy="6" r="5.5" stroke="#979797"/>\n<rect x="5" y="5" width="2" height="5" fill="#979797"/>\n<circle cx="6" cy="3" r="1" fill="#979797"/>\n</svg>\n',x=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value=null,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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("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 n("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},n("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return n("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},n("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",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&&n("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),n("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&n("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>n("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};x.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 k=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderLabel(){var t;return n("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},n("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?n("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&n("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],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 S(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function E(t){S(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 A(t){if(S(1,arguments),!function(t){return S(1,arguments),t instanceof Date||"object"===C(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=E(t);return!isNaN(Number(e))}function M(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 D(t,e){return S(2,arguments),function(t,e){S(2,arguments);var i=E(t).getTime(),s=M(e);return new Date(i+s)}(t,-M(e))}function I(t){S(1,arguments);var e=E(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 z(t){S(1,arguments);var e=E(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=I(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=I(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}k.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-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;padding:0px;vertical-align:baseline}.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}.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::part(required-indicator)::after{display:none}.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}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function T(t){S(1,arguments);var e=E(t),i=I(e).getTime()-function(t){S(1,arguments);var e=z(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),I(i)}(e).getTime();return Math.round(i/6048e5)+1}var N={};function P(){return N}function F(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=P(),c=M(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:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=E(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function O(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=E(t),c=d.getUTCFullYear(),u=P(),p=M(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:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,p),m.setUTCHours(0,0,0,0);var v=F(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var g=F(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=g.getTime()?c:c-1}function L(t,e){S(1,arguments);var i=E(t),s=F(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=P(),c=M(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:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=O(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),F(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function j(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}var Y={y:function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return j("yy"===e?s%100:s,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):j(i+1,2)},d:function(t,e){return j(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return j(t.getUTCHours()%12||12,e.length)},H:function(t,e){return j(t.getUTCHours(),e.length)},m:function(t,e){return j(t.getUTCMinutes(),e.length)},s:function(t,e){return j(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,s=t.getUTCMilliseconds();return j(Math.floor(s*Math.pow(10,i-3)),e.length)}};const $=Y;var R={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 $.y(t,e)},Y:function(t,e,i,s){var r=O(t,s),o=r>0?r:1-r;return"YY"===e?j(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):j(o,e.length)},R:function(t,e){return j(z(t),e.length)},u:function(t,e){return j(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 j(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 j(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 $.M(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 j(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=L(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):j(r,e.length)},I:function(t,e,i){var s=T(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):j(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):$.d(t,e)},D:function(t,e,i){var s=function(t){S(1,arguments);var e=E(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"}):j(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 j(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 j(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 j(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 $.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$.H(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):j(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):j(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$.s(t,e)},S:function(t,e){return $.S(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return H(r);case"XXXX":case"XX":return q(r);default:return q(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return H(r);case"xxxx":case"xx":return q(r);default:return q(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+V(r,":");default:return"GMT"+q(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+V(r,":");default:return"GMT"+q(r,":")}},t:function(t,e,i,s){return j(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return j((s._originalDate||t).getTime(),e.length)}};function V(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+j(o,2)}function H(t,e){return t%60==0?(t>0?"-":"+")+j(Math.abs(t)/60,2):q(t,e)}function q(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+j(Math.floor(r/60),2)+i+j(r%60,2)}const W=R;var G=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"})}},U=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"})}},Z={p:U,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return G(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}}",G(r,e)).replace("{{time}}",U(o,e))}};const K=Z;function Q(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 J=["D","DD"],X=["YY","YYYY"];function tt(t){return-1!==J.indexOf(t)}function et(t){return-1!==X.indexOf(t)}function it(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 st={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function rt(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 ot={date:rt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rt({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:rt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function at(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 lt(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)}}}var ht;const dt={code:"en-US",formatDistance:function(t,e,i){var s,r=st[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:ot,formatRelative:function(t){return nt[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:at({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:at({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:at({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:at({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:at({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:(ht={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(ht.matchPattern);if(!i)return null;var s=i[0],r=t.match(ht.parsePattern);if(!r)return null;var o=ht.valueCallback?ht.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:lt({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:lt({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:lt({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:lt({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:lt({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 ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ut=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pt=/^'([^]*?)'?$/,mt=/''/g,vt=/[a-zA-Z]/;function ft(t,e,i){var s,r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,y,w;S(2,arguments);var _=String(e),x=P(),k=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:x.locale)&&void 0!==s?s:dt,C=M(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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(c=x.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=M(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var z=E(t);if(!A(z))throw new RangeError("Invalid time value");var T=D(z,Q(z)),N={firstWeekContainsDate:C,weekStartsOn:I,locale:k,_originalDate:z};return _.match(ut).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,K[e])(t,k.formatLong):t})).join("").match(ct).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(pt))?o[1].replace(mt,"'"):r;var a=W[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!et(s)||it(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!tt(s)||it(s,e,String(t)),a(T,s,k.localize,N);if(n.match(vt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function gt(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 bt(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 gt(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)?gt(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 yt(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 wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _t(t,e){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_t(t,e)}function xt(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&&_t(t,e)}function kt(t){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kt(t)}function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}function St(t){var e=Ct();return function(){var i,s=kt(t);if(e){var r=kt(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 wt(t)}(this,i)}}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t){var e=function(t){if("object"!=C(t)||!t)return t;var e;if("undefined"!=typeof Symbol&&void 0!==(e=t[Symbol.toPrimitive])){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 Mt(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,At(s.key),s)}}function Dt(t,e,i){return e&&Mt(t.prototype,e),i&&Mt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function It(t,e,i){return(e=At(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var zt=function(){function t(){Et(this,t),It(this,"priority",void 0),It(this,"subPriority",0)}return Dt(t,[{key:"validate",value:function(){return!0}}]),t}(),Tt=function(){xt(e,zt);var t=St(e);function e(i,s,r,o,n){var a;return Et(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return Dt(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}(),Nt=function(){xt(e,zt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"subPriority",-1),i}return Dt(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}(),Pt=function(){function t(){Et(this,t),It(this,"incompatibleTokens",void 0),It(this,"priority",void 0),It(this,"subPriority",void 0)}return Dt(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new Tt(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Ft=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",140),It(wt(i),"incompatibleTokens",["R","u","t","T"]),i}return Dt(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}(),Ot=/^(1[0-2]|0?\d)/,Lt=/^(3[0-1]|[0-2]?\d)/,Bt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,jt=/^(5[0-3]|[0-4]?\d)/,Yt=/^(2[0-3]|[0-1]?\d)/,$t=/^(2[0-4]|[0-1]?\d)/,Rt=/^(1[0-1]|0?\d)/,Vt=/^(1[0-2]|0?\d)/,Ht=/^[0-5]?\d/,qt=/^[0-5]?\d/,Wt=/^\d/,Gt=/^\d{1,2}/,Ut=/^\d{1,3}/,Zt=/^\d{1,4}/,Kt=/^-?\d+/,Qt=/^-?\d/,Jt=/^-?\d{1,2}/,Xt=/^-?\d{1,3}/,te=/^-?\d{1,4}/,ee=/^([+-])(\d{2})(\d{2})?|Z/,ie=/^([+-])(\d{2})(\d{2})|Z/,se=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,re=/^([+-])(\d{2}):(\d{2})|Z/,oe=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ne(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ae(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function le(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 he(t){return ae(Kt,t)}function de(t,e){switch(t){case 1:return ae(Wt,e);case 2:return ae(Gt,e);case 3:return ae(Ut,e);case 4:return ae(Zt,e);default:return ae(new RegExp("^\\d{1,"+t+"}"),e)}}function ce(t,e){switch(t){case 1:return ae(Qt,e);case 2:return ae(Jt,e);case 3:return ae(Xt,e);case 4:return ae(te,e);default:return ae(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ue(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function pe(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 me(t){return t%400==0||t%4==0&&t%100!=0}var ve=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ne(de(4,t),s);case"yo":return ne(i.ordinalNumber(t,{unit:"year"}),s);default:return ne(de(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=pe(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}(),fe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ne(de(4,t),s);case"Yo":return ne(i.ordinalNumber(t,{unit:"year"}),s);default:return ne(de(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=O(t,s);if(i.isTwoDigitYear){var o=pe(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),F(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),F(t,s)}}]),e}(),ge=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ce("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),I(s)}}]),e}(),be=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ce("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}(),ye=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",120),It(wt(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return de(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}(),we=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",120),It(wt(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return de(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}(),_e=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),It(wt(i),"priority",110),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return ne(ae(Ot,t),s);case"MM":return ne(de(2,t),s);case"Mo":return ne(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}(),xe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",110),It(wt(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return ne(ae(Ot,t),s);case"LL":return ne(de(2,t),s);case"Lo":return ne(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}(),ke=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",100),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return ae(jt,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return F(function(t,e,i){S(2,arguments);var s=E(t),r=M(e),o=L(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),Ce=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",100),It(wt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return ae(jt,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return I(function(t,e){S(2,arguments);var i=E(t),s=M(e),r=T(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Se=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],Ae=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"subPriority",1),It(wt(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return ae(Lt,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){var i=me(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=Ee[s]:e>=1&&e<=Se[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Me=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"subpriority",1),It(wt(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return ae(Bt,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return me(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 De(t,e,i){var s,r,o,n,a,l,h,d;S(2,arguments);var c=P(),u=M(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:c.weekStartsOn)&&void 0!==r?r:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=E(t),m=M(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Ie=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Dt(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),ze=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Dt(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 ne(de(e.length,t),r);case"eo":return ne(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Te=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Dt(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 ne(de(e.length,t),r);case"co":return ne(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Ne=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return de(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ne(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 ne(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ne(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return ne(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){S(2,arguments);var i=M(e);i%7==0&&(i-=7);var s=E(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}(),Pe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Fe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Oe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["a","b","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Le=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return ae(Vt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),Be=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return ae(Yt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),je=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return ae(Rt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),Ye=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return ae($t,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),$e=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",60),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return ae(Ht,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return de(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}(),Re=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",50),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return ae(qt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return de(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}(),Ve=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",30),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ne(de(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}(),He=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"incompatibleTokens",["t","T","x"]),i}return Dt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return le(ee,t);case"XX":return le(ie,t);case"XXXX":return le(se,t);case"XXXXX":return le(oe,t);default:return le(re,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),qe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"incompatibleTokens",["t","T","X"]),i}return Dt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return le(ee,t);case"xx":return le(ie,t);case"xxxx":return le(se,t);case"xxxxx":return le(oe,t);default:return le(re,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),We=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",40),It(wt(i),"incompatibleTokens","*"),i}return Dt(e,[{key:"parse",value:function(t){return he(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Ge=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",20),It(wt(i),"incompatibleTokens","*"),i}return Dt(e,[{key:"parse",value:function(t){return he(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Ue={G:new Ft,y:new ve,Y:new fe,R:new ge,u:new be,Q:new ye,q:new we,M:new _e,L:new xe,w:new ke,I:new Ce,d:new Ae,D:new Me,E:new Ie,e:new ze,c:new Te,i:new Ne,a:new Pe,b:new Fe,B:new Oe,h:new Le,H:new Be,K:new je,k:new Ye,m:new $e,s:new Re,S:new Ve,X:new He,x:new qe,t:new We,T:new Ge},Ze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ke=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qe=/^'([^]*?)'?$/,Je=/''/g,Xe=/\S/,ti=/[a-zA-Z]/;function ei(t,e,i,s){var r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,y,w,_;S(3,arguments);var x=String(t),k=String(e),A=P(),I=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:A.locale)&&void 0!==r?r:dt;if(!I.match)throw new RangeError("locale must contain match property");var z=M(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(d=s.locale)||void 0===d||null===(c=d.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:A.firstWeekContainsDate)&&void 0!==a?a:null===(u=A.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=M(null!==(m=null!==(v=null!==(f=null!==(g=null==s?void 0:s.weekStartsOn)&&void 0!==g?g:null==s||null===(b=s.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:A.weekStartsOn)&&void 0!==v?v:null===(w=A.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==m?m:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?E(i):new Date(NaN);var N,F={firstWeekContainsDate:z,weekStartsOn:T,locale:I},O=[new Nt],L=k.match(Ke).map((function(t){var e=t[0];return e in K?(0,K[e])(t,I.formatLong):t})).join("").match(Ze),B=[],j=bt(L);try{var Y=function(){var e=N.value;null!=s&&s.useAdditionalWeekYearTokens||!et(e)||it(e,k,t),null!=s&&s.useAdditionalDayOfYearTokens||!tt(e)||it(e,k,t);var i=e[0],r=Ue[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=B.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&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));B.push({token:i,fullToken:e});var a=r.run(x,e,I.match,F);if(!a)return{v:new Date(NaN)};O.push(a.setter),x=a.rest}else{if(i.match(ti))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Qe)[1].replace(Je,"'")),0!==x.indexOf(e))return{v:new Date(NaN)};x=x.slice(e.length)}};for(j.s();!(N=j.n()).done;){var $=Y();if("object"===C($))return $.v}}catch(t){j.e(t)}finally{j.f()}if(x.length>0&&Xe.test(x))return new Date(NaN);var R=O.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 O.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),V=E(i);if(isNaN(V.getTime()))return new Date(NaN);var H,q=D(V,Q(V)),W={},G=bt(R);try{for(G.s();!(H=G.n()).done;){var U=H.value;if(!U.validate(q,F))return new Date(NaN);var Z=U.set(q,W,F);Array.isArray(Z)?(q=Z[0],yt(W,Z[1])):q=Z}}catch(t){G.e(t)}finally{G.f()}return q}function ii(t,e){S(2,arguments);var i=E(t),s=E(e);return i.getTime()>s.getTime()}function si(t,e){S(2,arguments);var i=E(t),s=E(e);return i.getTime()<s.getTime()}function ri(t,e,i){return S(2,arguments),A(ei(t,e,new Date,i))}const oi=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return ft(new Date(e,i,s),this.dateFormat)},this.parseDate=t=>{const e=ei(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleDocumentIdUpdate=t=>{this.name===v.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=ei(this.value||"",v.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.handleMaskedTyping=t=>{var e;const i=t.target;if(!i)return;const s=null!==(e=i.selectionStart)&&void 0!==e?e:i.value.length,r=i.value,[o,n,a]=this.getFormatStructure(this.dateFormat),{seps:l}=this.parseFormat(this.dateFormat),[h,d]=l,c=o+n+a,u=r.replace(/\D/g,"").slice(0,c),p=u.slice(0,o),m=u.slice(o,o+n),v=u.slice(o+n,o+n+a);let f=p;u.length>o&&(f+=h+m),u.length>o+n&&(f+=d+v),i.value=f;const g=this.totalSeparatorLength(r,[h,d]),b=this.totalSeparatorLength(f,[h,d]);let y=s+Math.max(0,b-g);y=Math.max(0,Math.min(y,f.length));try{i.setSelectionRange(y,y)}catch(t){}if(u.length<c)return this.errorMessage="",void this.resetIncompleteState();try{const t=ei(f,this.dateFormat,new Date);if(t&&!isNaN(t.getTime())){const e=ft(t,"yyyy-MM-dd");this.value=e,this.valueAsDate=t,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=e),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(t){this.resetIncompleteState()}},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="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){return this.value?ft(ei(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}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})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=ei((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ei((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){var t;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",(()=>this.handleCalendarIconClick())),this.datePicker.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var t;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}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=ei(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return!(si(this.valueAsDate,this.minDate)||ii(this.valueAsDate,this.maxDate)||!ri(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?y("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):si(this.valueAsDate,this.minDate)||ii(this.valueAsDate,this.maxDate)?y("dateError2",this.language):ri(this.formattedValue,this.dateFormat)?void 0:y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}parseFormat(t){var e;const i=null!=t?t:"dd-MM-yyyy",s=/([dMy]+)|([^dMy]+)/g,r=[],o=[];let n;for(;n=s.exec(i);)n[1]?r.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const t=null!==(e=o[0])&&void 0!==e?e:"-";for(;o.length<2;)o.push(t)}return{tokens:r,seps:[o[0],o[1]]}}getFormatStructure(t){const{tokens:e}=this.parseFormat(t);if(e.length<3)return[2,2,4];const i=e.map((t=>t.length));return[i[0],i[1],i[2]]}totalSeparatorLength(t,e){if(!t)return 0;let i=0;for(const s of e){if(!s)continue;const e=new RegExp(this.escapeRegExp(s),"g"),r=t.match(e);r&&(i+=r.length*s.length)}return i}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,n("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),n("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${t} ${this.enableManualDateInput&&"date__manual-mode"}`,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),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),n("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&n("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};oi.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__manual-mode::part(toggle-button){display:none}.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:var(--emw--color-error, var(--emw--color-red, #ed0909))}.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 ni=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(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.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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),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 y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("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 y(`${i}`,this.language)?y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?n("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"),n("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},n("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&n("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",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}),n("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ni.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 ai=Object.defineProperty,li=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,pi=(t,e,i)=>e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,mi=(t,e)=>{for(var i in e||(e={}))ci.call(e,i)&&pi(t,i,e[i]);if(di)for(var i of di(e))ui.call(e,i)&&pi(t,i,e[i]);return t},vi=(t,e)=>li(t,hi(e)),fi=(t,e,i)=>(pi(t,"symbol"!=typeof e?e+"":e,i),i),gi=(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{s as t,a as e,b as i,t as s}from"./bonus-elevate-powerups-27cf1699.js";export{B as bonus_elevate_powerups}from"./bonus-elevate-powerups-27cf1699.js";import{r,c as o,h as n,g as a,H as l,f as h}from"./index-2341d543.js";const d=["pt-br","en","es-mx","hu","hr"],c={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},u=(t,e,i)=>{const s=e;let r=c[void 0!==s&&d.includes(s)?s:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},p=class{constructor(t){r(this,t),this.reloadPageEmitter=o(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=7,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return n("ul",{class:"PaginationArea"},this.pagesArray.map((t=>n("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return n("general-styling-wrapper",{targetTranslations:c,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],s=Math.floor(t/2);const r=this.endPageIndex+1;if(e)if(this.currentPage<s||this.currentPage>r-s+1){i=Array.from({length:s},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==s){i=Array.from({length:s+1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else if(this.currentPage==r-s+1){i=Array.from({length:s-1},((t,e)=>e+1)),i.push("...");for(let e=r-(t-i.length-1);e<=r;e++)i.push(e)}else i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r]);else this.currentPage<=t-s?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-s)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-s+1)),i.push("..."),i.unshift("..."));return i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return n("div",{key:"a6d3cd6cd1e5ff8d927486806d26c6eb61e57833",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&n("span",{key:"56f81e329deb0d5160d4d4e020571d1cc402dcc1",class:"PageOfMessage"},u("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),n("div",{key:"eaf964e00190b690564d57af6da91aed717e1690",class:"PageNavigation"},this.arrowsActive&&n("div",{key:"2be57e1c4d3d6fb80db83c6b5c60710573da5f5e",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},u("firstPage",this.language)),this.secondaryArrowsActive&&n("span",{key:"d240849c9ba6b9c14d4ebed6c346d7cc629a1a59",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},u("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&n("span",{key:"90cb6da1e51256e86f8678e0520d4b221b99957d",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},u("nextPage",this.language)),this.arrowsActive&&n("div",{key:"c74711a45bbbf822ca56e6f2fe70ee541ae91cfa",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",u("lastPage",this.language)," "),this.renderStylingWrapper()))}};p.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const m={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",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",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek 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",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",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",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter 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",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"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",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",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",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",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",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},v={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},f="requiredError",g="lengthError",b="fixedLengthError",y=(t,e,i)=>{let s=m[e]?m[e][t]:m.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},w=t=>{Object.keys(t).forEach((e=>{m[e]=m[e]||{},Object.keys(t[e]).forEach((i=>{"string"==typeof t[e][i]&&(m[e][i]=t[e][i])}))}))},_='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="6" cy="6" r="5.5" stroke="#979797"/>\n<rect x="5" y="5" width="2" height="5" fill="#979797"/>\n<circle cx="6" cy="3" r="1" fill="#979797"/>\n</svg>\n',x=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value=null,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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("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 n("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},n("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return n("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},n("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",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&&n("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),n("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&n("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>n("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};x.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 k=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderLabel(){var t;return n("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},n("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?n("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&n("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],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 S(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function E(t){S(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 A(t){if(S(1,arguments),!function(t){return S(1,arguments),t instanceof Date||"object"===C(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=E(t);return!isNaN(Number(e))}function M(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 D(t,e){return S(2,arguments),function(t,e){S(2,arguments);var i=E(t).getTime(),s=M(e);return new Date(i+s)}(t,-M(e))}function I(t){S(1,arguments);var e=E(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 z(t){S(1,arguments);var e=E(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var r=I(s),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var n=I(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}k.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-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;padding:0px;vertical-align:baseline}.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}.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::part(required-indicator)::after{display:none}.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}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function T(t){S(1,arguments);var e=E(t),i=I(e).getTime()-function(t){S(1,arguments);var e=z(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),I(i)}(e).getTime();return Math.round(i/6048e5)+1}var N={};function P(){return N}function O(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=P(),c=M(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:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=E(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function F(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=E(t),c=d.getUTCFullYear(),u=P(),p=M(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:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,p),m.setUTCHours(0,0,0,0);var v=O(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var g=O(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=g.getTime()?c:c-1}function L(t,e){S(1,arguments);var i=E(t),s=O(i,e).getTime()-function(t,e){var i,s,r,o,n,a,l,h;S(1,arguments);var d=P(),c=M(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:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=F(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),O(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}function j(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}var Y={y:function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return j("yy"===e?s%100:s,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):j(i+1,2)},d:function(t,e){return j(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return j(t.getUTCHours()%12||12,e.length)},H:function(t,e){return j(t.getUTCHours(),e.length)},m:function(t,e){return j(t.getUTCMinutes(),e.length)},s:function(t,e){return j(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,s=t.getUTCMilliseconds();return j(Math.floor(s*Math.pow(10,i-3)),e.length)}};const $=Y;var R={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 $.y(t,e)},Y:function(t,e,i,s){var r=F(t,s),o=r>0?r:1-r;return"YY"===e?j(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):j(o,e.length)},R:function(t,e){return j(z(t),e.length)},u:function(t,e){return j(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 j(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 j(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 $.M(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 j(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=L(t,s);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):j(r,e.length)},I:function(t,e,i){var s=T(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):j(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):$.d(t,e)},D:function(t,e,i){var s=function(t){S(1,arguments);var e=E(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"}):j(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 j(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 j(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 j(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 $.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$.H(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):j(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):j(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$.s(t,e)},S:function(t,e){return $.S(t,e)},X:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return H(r);case"XXXX":case"XX":return q(r);default:return q(r,":")}},x:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return H(r);case"xxxx":case"xx":return q(r);default:return q(r,":")}},O:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+V(r,":");default:return"GMT"+q(r,":")}},z:function(t,e,i,s){var r=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+V(r,":");default:return"GMT"+q(r,":")}},t:function(t,e,i,s){return j(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return j((s._originalDate||t).getTime(),e.length)}};function V(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+j(o,2)}function H(t,e){return t%60==0?(t>0?"-":"+")+j(Math.abs(t)/60,2):q(t,e)}function q(t,e){var i=e||"",s=t>0?"-":"+",r=Math.abs(t);return s+j(Math.floor(r/60),2)+i+j(r%60,2)}const W=R;var G=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"})}},U=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"})}},Z={p:U,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],r=s[1],o=s[2];if(!o)return G(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}}",G(r,e)).replace("{{time}}",U(o,e))}};const K=Z;function Q(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 J=["D","DD"],X=["YY","YYYY"];function tt(t){return-1!==J.indexOf(t)}function et(t){return-1!==X.indexOf(t)}function it(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 st={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function rt(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 ot={date:rt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rt({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:rt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function at(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 lt(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)}}}var ht;const dt={code:"en-US",formatDistance:function(t,e,i){var s,r=st[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:ot,formatRelative:function(t){return nt[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:at({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:at({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:at({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:at({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:at({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:(ht={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(ht.matchPattern);if(!i)return null;var s=i[0],r=t.match(ht.parsePattern);if(!r)return null;var o=ht.valueCallback?ht.valueCallback(r[0]):r[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(s.length)}}),era:lt({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:lt({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:lt({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:lt({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:lt({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 ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ut=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pt=/^'([^]*?)'?$/,mt=/''/g,vt=/[a-zA-Z]/;function ft(t,e,i){var s,r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,y,w;S(2,arguments);var _=String(e),x=P(),k=null!==(s=null!==(r=null==i?void 0:i.locale)&&void 0!==r?r:x.locale)&&void 0!==s?s:dt,C=M(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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(c=x.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=M(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var z=E(t);if(!A(z))throw new RangeError("Invalid time value");var T=D(z,Q(z)),N={firstWeekContainsDate:C,weekStartsOn:I,locale:k,_originalDate:z};return _.match(ut).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,K[e])(t,k.formatLong):t})).join("").match(ct).map((function(s){if("''"===s)return"'";var r,o,n=s[0];if("'"===n)return(o=(r=s).match(pt))?o[1].replace(mt,"'"):r;var a=W[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!et(s)||it(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!tt(s)||it(s,e,String(t)),a(T,s,k.localize,N);if(n.match(vt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function gt(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 bt(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 gt(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)?gt(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 yt(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 wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _t(t,e){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_t(t,e)}function xt(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&&_t(t,e)}function kt(t){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kt(t)}function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}function St(t){var e=Ct();return function(){var i,s=kt(t);if(e){var r=kt(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 wt(t)}(this,i)}}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t){var e=function(t){if("object"!=C(t)||!t)return t;var e;if("undefined"!=typeof Symbol&&void 0!==(e=t[Symbol.toPrimitive])){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 Mt(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,At(s.key),s)}}function Dt(t,e,i){return e&&Mt(t.prototype,e),i&&Mt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function It(t,e,i){return(e=At(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var zt=function(){function t(){Et(this,t),It(this,"priority",void 0),It(this,"subPriority",0)}return Dt(t,[{key:"validate",value:function(){return!0}}]),t}(),Tt=function(){xt(e,zt);var t=St(e);function e(i,s,r,o,n){var a;return Et(this,e),(a=t.call(this)).value=i,a.validateValue=s,a.setValue=r,a.priority=o,n&&(a.subPriority=n),a}return Dt(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}(),Nt=function(){xt(e,zt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"subPriority",-1),i}return Dt(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}(),Pt=function(){function t(){Et(this,t),It(this,"incompatibleTokens",void 0),It(this,"priority",void 0),It(this,"subPriority",void 0)}return Dt(t,[{key:"run",value:function(t,e,i,s){var r=this.parse(t,e,i,s);return r?{setter:new Tt(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Ot=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",140),It(wt(i),"incompatibleTokens",["R","u","t","T"]),i}return Dt(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}(),Ft=/^(1[0-2]|0?\d)/,Lt=/^(3[0-1]|[0-2]?\d)/,Bt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,jt=/^(5[0-3]|[0-4]?\d)/,Yt=/^(2[0-3]|[0-1]?\d)/,$t=/^(2[0-4]|[0-1]?\d)/,Rt=/^(1[0-1]|0?\d)/,Vt=/^(1[0-2]|0?\d)/,Ht=/^[0-5]?\d/,qt=/^[0-5]?\d/,Wt=/^\d/,Gt=/^\d{1,2}/,Ut=/^\d{1,3}/,Zt=/^\d{1,4}/,Kt=/^-?\d+/,Qt=/^-?\d/,Jt=/^-?\d{1,2}/,Xt=/^-?\d{1,3}/,te=/^-?\d{1,4}/,ee=/^([+-])(\d{2})(\d{2})?|Z/,ie=/^([+-])(\d{2})(\d{2})|Z/,se=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,re=/^([+-])(\d{2}):(\d{2})|Z/,oe=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ne(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ae(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function le(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 he(t){return ae(Kt,t)}function de(t,e){switch(t){case 1:return ae(Wt,e);case 2:return ae(Gt,e);case 3:return ae(Ut,e);case 4:return ae(Zt,e);default:return ae(new RegExp("^\\d{1,"+t+"}"),e)}}function ce(t,e){switch(t){case 1:return ae(Qt,e);case 2:return ae(Jt,e);case 3:return ae(Xt,e);case 4:return ae(te,e);default:return ae(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ue(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function pe(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 me(t){return t%400==0||t%4==0&&t%100!=0}var ve=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ne(de(4,t),s);case"yo":return ne(i.ordinalNumber(t,{unit:"year"}),s);default:return ne(de(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=pe(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}(),fe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ne(de(4,t),s);case"Yo":return ne(i.ordinalNumber(t,{unit:"year"}),s);default:return ne(de(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=F(t,s);if(i.isTwoDigitYear){var o=pe(i.year,r);return t.setUTCFullYear(o,0,s.firstWeekContainsDate),t.setUTCHours(0,0,0,0),O(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),O(t,s)}}]),e}(),ge=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ce("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),I(s)}}]),e}(),be=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",130),It(wt(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ce("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}(),ye=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",120),It(wt(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return de(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}(),we=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",120),It(wt(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return de(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}(),_e=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),It(wt(i),"priority",110),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"M":return ne(ae(Ft,t),s);case"MM":return ne(de(2,t),s);case"Mo":return ne(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}(),xe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",110),It(wt(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return t-1};switch(e){case"L":return ne(ae(Ft,t),s);case"LL":return ne(de(2,t),s);case"Lo":return ne(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}(),ke=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",100),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return ae(jt,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,s){return O(function(t,e,i){S(2,arguments);var s=E(t),r=M(e),o=L(s,i)-r;return s.setUTCDate(s.getUTCDate()-7*o),s}(t,i,s),s)}}]),e}(),Ce=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",100),It(wt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return ae(jt,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return I(function(t,e){S(2,arguments);var i=E(t),s=M(e),r=T(i)-s;return i.setUTCDate(i.getUTCDate()-7*r),i}(t,i))}}]),e}(),Se=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],Ae=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"subPriority",1),It(wt(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return ae(Lt,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){var i=me(t.getUTCFullYear()),s=t.getUTCMonth();return i?e>=1&&e<=Ee[s]:e>=1&&e<=Se[s]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Me=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"subpriority",1),It(wt(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return ae(Bt,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return de(e.length,t)}}},{key:"validate",value:function(t,e){return me(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 De(t,e,i){var s,r,o,n,a,l,h,d;S(2,arguments);var c=P(),u=M(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:c.weekStartsOn)&&void 0!==r?r:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=E(t),m=M(e),v=((m%7+7)%7<u?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+v),p}var Ie=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Dt(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),ze=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Dt(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 ne(de(e.length,t),r);case"eo":return ne(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Te=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Dt(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 ne(de(e.length,t),r);case"co":return ne(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=De(t,i,s)).setUTCHours(0,0,0,0),t}}]),e}(),Ne=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",90),It(wt(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return de(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ne(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 ne(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ne(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);default:return ne(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){S(2,arguments);var i=M(e);i%7==0&&(i-=7);var s=E(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}(),Pe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Oe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Fe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",80),It(wt(i),"incompatibleTokens",["a","b","t","T"]),i}return Dt(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(ue(i),0,0,0),t}}]),e}(),Le=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return ae(Vt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),Be=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return ae(Yt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),je=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return ae(Rt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),Ye=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",70),It(wt(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return ae($t,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return de(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}(),$e=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",60),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return ae(Ht,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return de(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}(),Re=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",50),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return ae(qt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return de(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}(),Ve=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",30),It(wt(i),"incompatibleTokens",["t","T"]),i}return Dt(e,[{key:"parse",value:function(t,e){return ne(de(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}(),He=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"incompatibleTokens",["t","T","x"]),i}return Dt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return le(ee,t);case"XX":return le(ie,t);case"XXXX":return le(se,t);case"XXXXX":return le(oe,t);default:return le(re,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),qe=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",10),It(wt(i),"incompatibleTokens",["t","T","X"]),i}return Dt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return le(ee,t);case"xx":return le(ie,t);case"xxxx":return le(se,t);case"xxxxx":return le(oe,t);default:return le(re,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),We=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",40),It(wt(i),"incompatibleTokens","*"),i}return Dt(e,[{key:"parse",value:function(t){return he(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Ge=function(){xt(e,Pt);var t=St(e);function e(){var i;Et(this,e);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return It(wt(i=t.call.apply(t,[this].concat(r))),"priority",20),It(wt(i),"incompatibleTokens","*"),i}return Dt(e,[{key:"parse",value:function(t){return he(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Ue={G:new Ot,y:new ve,Y:new fe,R:new ge,u:new be,Q:new ye,q:new we,M:new _e,L:new xe,w:new ke,I:new Ce,d:new Ae,D:new Me,E:new Ie,e:new ze,c:new Te,i:new Ne,a:new Pe,b:new Oe,B:new Fe,h:new Le,H:new Be,K:new je,k:new Ye,m:new $e,s:new Re,S:new Ve,X:new He,x:new qe,t:new We,T:new Ge},Ze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ke=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qe=/^'([^]*?)'?$/,Je=/''/g,Xe=/\S/,ti=/[a-zA-Z]/;function ei(t,e,i,s){var r,o,n,a,l,h,d,c,u,p,m,v,f,g,b,y,w,_;S(3,arguments);var x=String(t),k=String(e),A=P(),I=null!==(r=null!==(o=null==s?void 0:s.locale)&&void 0!==o?o:A.locale)&&void 0!==r?r:dt;if(!I.match)throw new RangeError("locale must contain match property");var z=M(null!==(n=null!==(a=null!==(l=null!==(h=null==s?void 0:s.firstWeekContainsDate)&&void 0!==h?h:null==s||null===(d=s.locale)||void 0===d||null===(c=d.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:A.firstWeekContainsDate)&&void 0!==a?a:null===(u=A.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=M(null!==(m=null!==(v=null!==(f=null!==(g=null==s?void 0:s.weekStartsOn)&&void 0!==g?g:null==s||null===(b=s.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:A.weekStartsOn)&&void 0!==v?v:null===(w=A.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==m?m:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?E(i):new Date(NaN);var N,O={firstWeekContainsDate:z,weekStartsOn:T,locale:I},F=[new Nt],L=k.match(Ke).map((function(t){var e=t[0];return e in K?(0,K[e])(t,I.formatLong):t})).join("").match(Ze),B=[],j=bt(L);try{var Y=function(){var e=N.value;null!=s&&s.useAdditionalWeekYearTokens||!et(e)||it(e,k,t),null!=s&&s.useAdditionalDayOfYearTokens||!tt(e)||it(e,k,t);var i=e[0],r=Ue[i];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var n=B.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&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));B.push({token:i,fullToken:e});var a=r.run(x,e,I.match,O);if(!a)return{v:new Date(NaN)};F.push(a.setter),x=a.rest}else{if(i.match(ti))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Qe)[1].replace(Je,"'")),0!==x.indexOf(e))return{v:new Date(NaN)};x=x.slice(e.length)}};for(j.s();!(N=j.n()).done;){var $=Y();if("object"===C($))return $.v}}catch(t){j.e(t)}finally{j.f()}if(x.length>0&&Xe.test(x))return new Date(NaN);var R=F.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 F.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),V=E(i);if(isNaN(V.getTime()))return new Date(NaN);var H,q=D(V,Q(V)),W={},G=bt(R);try{for(G.s();!(H=G.n()).done;){var U=H.value;if(!U.validate(q,O))return new Date(NaN);var Z=U.set(q,W,O);Array.isArray(Z)?(q=Z[0],yt(W,Z[1])):q=Z}}catch(t){G.e(t)}finally{G.f()}return q}function ii(t,e){S(2,arguments);var i=E(t),s=E(e);return i.getTime()>s.getTime()}function si(t,e){S(2,arguments);var i=E(t),s=E(e);return i.getTime()<s.getTime()}function ri(t,e,i){return S(2,arguments),A(ei(t,e,new Date,i))}const oi=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:s}=t;return ft(new Date(e,i,s),this.dateFormat)},this.parseDate=t=>{const e=ei(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleDocumentIdUpdate=t=>{this.name===v.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=ei(this.value||"",v.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.handleMaskedTyping=t=>{var e;const i=t.target;if(!i)return;const s=null!==(e=i.selectionStart)&&void 0!==e?e:i.value.length,r=i.value,[o,n,a]=this.getFormatStructure(this.dateFormat),{seps:l}=this.parseFormat(this.dateFormat),[h,d]=l,c=o+n+a,u=r.replace(/\D/g,"").slice(0,c),p=u.slice(0,o),m=u.slice(o,o+n),v=u.slice(o+n,o+n+a);let f=p;u.length>o&&(f+=h+m),u.length>o+n&&(f+=d+v),i.value=f;const g=this.totalSeparatorLength(r,[h,d]),b=this.totalSeparatorLength(f,[h,d]);let y=s+Math.max(0,b-g);y=Math.max(0,Math.min(y,f.length));try{i.setSelectionRange(y,y)}catch(t){}if(u.length<c)return this.errorMessage="",void this.resetIncompleteState();try{const t=ei(f,this.dateFormat,new Date);if(t&&!isNaN(t.getTime())){const e=ft(t,"yyyy-MM-dd");this.value=e,this.valueAsDate=t,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=e),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(t){this.resetIncompleteState()}},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="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){return this.value?ft(ei(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}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})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=ei((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ei((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){var t;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",(()=>this.handleCalendarIconClick())),this.datePicker.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var t;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=null===(t=this.datePicker)||void 0===t?void 0:t.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}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=ei(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return!(si(this.valueAsDate,this.minDate)||ii(this.valueAsDate,this.maxDate)||!ri(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?y("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):si(this.valueAsDate,this.minDate)||ii(this.valueAsDate,this.maxDate)?y("dateError2",this.language):ri(this.formattedValue,this.dateFormat)?void 0:y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}parseFormat(t){var e;const i=null!=t?t:"dd-MM-yyyy",s=/([dMy]+)|([^dMy]+)/g,r=[],o=[];let n;for(;n=s.exec(i);)n[1]?r.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const t=null!==(e=o[0])&&void 0!==e?e:"-";for(;o.length<2;)o.push(t)}return{tokens:r,seps:[o[0],o[1]]}}getFormatStructure(t){const{tokens:e}=this.parseFormat(t);if(e.length<3)return[2,2,4];const i=e.map((t=>t.length));return[i[0],i[1],i[2]]}totalSeparatorLength(t,e){if(!t)return 0;let i=0;for(const s of e){if(!s)continue;const e=new RegExp(this.escapeRegExp(s),"g"),r=t.match(e);r&&(i+=r.length*s.length)}return i}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,n("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),n("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${t} ${this.enableManualDateInput&&"date__manual-mode"}`,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),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),n("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&n("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};oi.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__manual-mode::part(toggle-button){display:none}.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:var(--emw--color-error, var(--emw--color-red, #ed0909))}.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 ni=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(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.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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),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 y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("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 y(`${i}`,this.language)?y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?n("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"),n("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},n("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&n("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",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}),n("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ni.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 ai=Object.defineProperty,li=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,pi=(t,e,i)=>e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,mi=(t,e)=>{for(var i in e||(e={}))ci.call(e,i)&&pi(t,i,e[i]);if(di)for(var i of di(e))ui.call(e,i)&&pi(t,i,e[i]);return t},vi=(t,e)=>li(t,hi(e)),fi=(t,e,i)=>(pi(t,"symbol"!=typeof e?e+"":e,i),i),gi=(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.
@@ -19,7 +19,7 @@ const wi=globalThis,_i=wi.ShadowRoot&&(void 0===wi.ShadyCSS||wi.ShadyCSS.nativeS
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */,{is:Mi,defineProperty:Di,getOwnPropertyDescriptor:Ii,getOwnPropertyNames:zi,getOwnPropertySymbols:Ti,getPrototypeOf:Ni}=Object,Pi=globalThis,Fi=Pi.trustedTypes,Oi=Fi?Fi.emptyScript:"",Li=Pi.reactiveElementPolyfillSupport,Bi={toAttribute(t,e){switch(e){case Boolean:t=t?Oi:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},ji=(t,e)=>!Mi(t,e),Yi={attribute:!0,type:String,converter:Bi,reflect:!1,useDefault:!1,hasChanged:ji};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Pi.litPropertyMetadata||(Pi.litPropertyMetadata=new WeakMap);let $i=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yi){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Di(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:r,set:o}=null!=(s=Ii(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const s=null==r?void 0:r.call(this);null==o||o.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Yi}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=Ni(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...zi(t),...Ti(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Ai(t))}else void 0!==t&&e.push(Ai(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return Ei(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(void 0!==r&&!0===s.reflect){const o=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:Bi).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i,s,r;const o=this.constructor,n=o._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=o.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Bi;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(r=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?r:l,this._$Em=null}}requestUpdate(t,e,i,s=!1,r){var o,n;if(void 0!==t){const a=this.constructor;if(!1===s&&(r=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(o=i.hasChanged)?o:ji)(r,e)||i.useDefault&&i.reflect&&r===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},o){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=o?o:e)?a:this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return gi(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Ri;$i.elementStyles=[],$i.shadowRootOptions={mode:"open"},$i.elementProperties=new Map,$i.finalized=new Map,null==Li||Li({ReactiveElement:$i}),(null!=(Ri=Pi.reactiveElementVersions)?Ri:Pi.reactiveElementVersions=[]).push("2.1.2");
22
+ */,{is:Mi,defineProperty:Di,getOwnPropertyDescriptor:Ii,getOwnPropertyNames:zi,getOwnPropertySymbols:Ti,getPrototypeOf:Ni}=Object,Pi=globalThis,Oi=Pi.trustedTypes,Fi=Oi?Oi.emptyScript:"",Li=Pi.reactiveElementPolyfillSupport,Bi={toAttribute(t,e){switch(e){case Boolean:t=t?Fi:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},ji=(t,e)=>!Mi(t,e),Yi={attribute:!0,type:String,converter:Bi,reflect:!1,useDefault:!1,hasChanged:ji};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Pi.litPropertyMetadata||(Pi.litPropertyMetadata=new WeakMap);let $i=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yi){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Di(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:r,set:o}=null!=(s=Ii(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const s=null==r?void 0:r.call(this);null==o||o.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Yi}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=Ni(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...zi(t),...Ti(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Ai(t))}else void 0!==t&&e.push(Ai(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return Ei(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(void 0!==r&&!0===s.reflect){const o=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:Bi).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i,s,r;const o=this.constructor,n=o._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=o.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Bi;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(r=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?r:l,this._$Em=null}}requestUpdate(t,e,i,s=!1,r){var o,n;if(void 0!==t){const a=this.constructor;if(!1===s&&(r=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(o=i.hasChanged)?o:ji)(r,e)||i.useDefault&&i.reflect&&r===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},o){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=o?o:e)?a:this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return gi(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Ri;$i.elementStyles=[],$i.shadowRootOptions={mode:"open"},$i.elementProperties=new Map,$i.finalized=new Map,null==Li||Li({ReactiveElement:$i}),(null!=(Ri=Pi.reactiveElementVersions)?Ri:Pi.reactiveElementVersions=[]).push("2.1.2");
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
@@ -41,7 +41,7 @@ const Is=t=>class extends t{static get properties(){return{_theme:{type:String,r
41
41
  * @license
42
42
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
43
43
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
- */,zs=[],Ts=new Set,Ns=new Set;function Ps(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Fs(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Os(t){return t.map((t=>t.cssText)).join("\n")}const Ls="vaadin-themable-mixin-style";function Bs(t){t.prototype instanceof Es?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(Ls).textContent=Os(t.getStylesForThis()),Ns.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Bs(i)}))}function js(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof Ci||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):zs.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&Ns.forEach((i=>{if(Fs(t,i)&&function(t){return Ps(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Bs(t),function(t){Ts.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof Es?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),Ei(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(Ls).textContent=e.prototype._template.content.getElementById(Ls).textContent}(i):i||Ts.delete(e)}))}(t)}}))}function Ys(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():zs}function $s(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Rs(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Ys().find((e=>e.moduleId===t));i?e.push(...Rs(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function Vs(t){const e=`${t}-default-theme`,i=Ys().filter((i=>i.moduleId!==e&&Fs(i.themeFor,t))).map((t=>vi(mi({},t),{styles:[...Rs(t),...t.styles],includePriority:$s(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Ys().filter((t=>t.moduleId===e))}const Hs=t=>class extends(Is(t)){constructor(){super(),Ts.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ns.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Ps(this)||function(t,e){const i=document.createElement("style");i.id=Ls,i.textContent=Os(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...Vs(this.is)];const s=this.__themes.flatMap((t=>t.styles));return s.filter(((t,e)=>e===s.lastIndexOf(t)))}}
44
+ */,zs=[],Ts=new Set,Ns=new Set;function Ps(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Os(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Fs(t){return t.map((t=>t.cssText)).join("\n")}const Ls="vaadin-themable-mixin-style";function Bs(t){t.prototype instanceof Es?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(Ls).textContent=Fs(t.getStylesForThis()),Ns.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Bs(i)}))}function js(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof Ci||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):zs.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&Ns.forEach((i=>{if(Os(t,i)&&function(t){return Ps(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Bs(t),function(t){Ts.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof Es?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),Ei(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(Ls).textContent=e.prototype._template.content.getElementById(Ls).textContent}(i):i||Ts.delete(e)}))}(t)}}))}function Ys(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():zs}function $s(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Rs(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Ys().find((e=>e.moduleId===t));i?e.push(...Rs(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function Vs(t){const e=`${t}-default-theme`,i=Ys().filter((i=>i.moduleId!==e&&Os(i.themeFor,t))).map((t=>vi(mi({},t),{styles:[...Rs(t),...t.styles],includePriority:$s(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Ys().filter((t=>t.moduleId===e))}const Hs=t=>class extends(Is(t)){constructor(){super(),Ts.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ns.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Ps(this)||function(t,e){const i=document.createElement("style");i.id=Ls,i.textContent=Fs(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...Vs(this.is)];const s=this.__themes.flatMap((t=>t.styles));return s.filter(((t,e)=>e===s.lastIndexOf(t)))}}
45
45
  /**
46
46
  * @license
47
47
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -928,7 +928,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
928
928
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
929
929
  Code distributed by Google as part of the polymer project is also
930
930
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
931
- */;function Tr(t){return t.indexOf(".")>=0}function Nr(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Pr(t,e){return 0===t.indexOf(e+".")}function Fr(t,e){return 0===e.indexOf(t+".")}function Or(t,e,i){return e+i.slice(t.length)}function Lr(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function Br(t){return Array.isArray(t)?Lr(t).split("."):t.toString().split(".")}function jr(t,e,i){let s=t,r=Br(e);for(let t=0;t<r.length;t++){if(!s)return;s=s[r[t]]}return i&&(i.path=r.join(".")),s}function Yr(t,e,i){let s=t,r=Br(e),o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++)if(s=s[r[t]],!s)return;s[o]=i}else s[e]=i;return r.join(".")}
931
+ */;function Tr(t){return t.indexOf(".")>=0}function Nr(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Pr(t,e){return 0===t.indexOf(e+".")}function Or(t,e){return 0===e.indexOf(t+".")}function Fr(t,e,i){return e+i.slice(t.length)}function Lr(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function Br(t){return Array.isArray(t)?Lr(t).split("."):t.toString().split(".")}function jr(t,e,i){let s=t,r=Br(e);for(let t=0;t<r.length;t++){if(!s)return;s=s[r[t]]}return i&&(i.path=r.join(".")),s}function Yr(t,e,i){let s=t,r=Br(e),o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++)if(s=s[r[t]],!s)return;s[o]=i}else s[e]=i;return r.join(".")}
932
932
  /**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -966,7 +966,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
966
966
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
967
967
  * Google as part of the polymer project is also subject to an additional IP
968
968
  * rights grant found at http://polymer.github.io/PATENTS.txt
969
- */let go=0;const bo=[],yo={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},wo="__computeInfo",_o=/[A-Z]/;function xo(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function ko(t,e,i,s,r,o){if(e){let n=!1;const a=go++;for(let l in i){let h=e[r?Nr(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==a)&&(!r||So(l,e.trigger))&&(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,r,o),n=!0)}return n}return!1}function Co(t,e,i,s,r,o,n,a){let l=!1,h=e[n?Nr(s):s];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==i)&&(!n||So(s,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,s,r,o,e.info,n,a),l=!0);return l}function So(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Pr(i,t))||!(!e.wildcard||!Fr(i,t))}return!0}function Eo(t,e,i,s,r){let o="string"==typeof r.method?t[r.method]:r.method,n=r.property;o?o.call(t,t.__data[n],s[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ao(t,e,i){let s=Nr(e);return s!==e&&(Mo(t,qr(s)+"-changed",i[e],e),!0)}function Mo(t,e,i,s){let r={value:i,queueProperty:!0};s&&(r.path=s),zr(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Do(t,e,i,s,r,o){let n=(o?Nr(e):e)!=e?e:null,a=n?jr(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),Mo(t,r.eventName,a,n)}function Io(t,e,i,s,r){let o=t.__data[e];sr&&(o=sr(o,r.attrName,"attribute",t)),t._propertyToAttribute(e,r.attrName,o)}const zo=(t,e,i)=>{let s=0,r=e.length-1,o=-1;for(;s<=r;){const n=s+r>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){o=n;break}r=n-1}}o<0&&(o=r+1),e.splice(o,0,t)},To=(t,e,i,s,r)=>{const o=e[r?Nr(t):t];if(o)for(let e=0;e<o.length;e++){const n=o[e];n.info.lastRun!==go&&(!r||So(t,n.trigger))&&(n.info.lastRun=go,zo(n.info,i,s))}};function No(t,e,i,s,r){let o=Yo(t,e,i,0,r);if(o===bo)return!1;let n=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,o,!0):(t[n]=o,!1)}function Po(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:1!==o.length};if(i.bindings.push(a),function(t){return!!t.target&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||qr(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,Fo(t,e,a,s,l)}}function Fo(t,e,i,s,r){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let o=s.dependencies,n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];"string"==typeof s&&(s=Go(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Oo,info:n,trigger:s})}}}function Oo(t,e,i,s,r,o,n){let a=n[r.index],l=r.binding,h=r.part;if(o&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Or(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);n!==bo&&function(t,e,i,s,r){if(r=function(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e,e=r.join("")}return"attribute"!==i.kind&&("textContent"===i.target||"value"===i.target&&("input"===t.localName||"textarea"===t.localName))&&(e=null==e?"":e),e}(e,r,i,s),sr&&(r=sr(r,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,r,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[yo.READ_ONLY]||!e[yo.READ_ONLY][s])&&e._setPendingProperty(s,r)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,r)}}(t,a,l,h,n)}}function Lo(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,r=new Array(s.length);for(let t=0;t<s.length;t++)r[t]=s[t].literal;let o=e.target;i[o]=r,e.literal&&"property"==e.kind&&("className"===o&&(t=zr(t)),t[o]=e.literal)}}function Bo(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,r){let o,n=t.detail,a=n&&n.path;a?(s=Or(i,s,a),o=n&&n.value):o=t.currentTarget[i],o=r?!o:o,(!e[yo.READ_ONLY]||!e[yo.READ_ONLY][s])&&e._setPendingPropertyOrPath(s,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function jo(t,e,i,s,r,o){let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o=e.static||o&&("object"!=typeof o||o[e.methodName])};for(let r,o=0;o<e.args.length&&(r=e.args[o]);o++)r.literal||t._addPropertyEffect(r.rootProperty,i,{fn:s,info:n,trigger:r});return o&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function Yo(t,e,i,s,r){let o=t._methodHost||t,n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===bo?bo:n.apply(o,s)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const $o=[],Ro="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Vo="(?:("+Ro+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ho=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ro+"\\s*(?:\\(\\s*(?:(?:"+Vo+"(?:,\\s*"+Vo+")*)?)\\)\\s*)?)(?:]]|}})","g");function qo(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Wo(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:$o};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Go(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Go(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Nr(e),i.structured=Tr(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Uo(t,e,i){let s=jr(t,i);return void 0===s&&(s=e[i]),s}function Zo(t,e,i,s){const r={indexSplices:s};hr&&!t._overrideLegacyUndefined&&(e.splices=r),t.notifyPath(i+".splices",r),t.notifyPath(i+".length",e.length),hr&&!t._overrideLegacyUndefined&&(r.indexSplices=[])}function Ko(t,e,i,s,r,o){Zo(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}const Qo=fr((t=>{const e=fo(oo(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return yo}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Jo.length){let t=Jo[Jo.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[yo.READ_ONLY];for(let i in t)(!e||!e[i])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==yo.READ_ONLY);let s=xo(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=xo(this,e,!0)[t],r=s.indexOf(i);r>=0&&s.splice(r,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,yo.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,yo.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,yo.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,yo.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Nr(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=jr(this,t);if(!(t=Yr(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];Fr(o,e)?(r=Or(o,n,e),t._setPendingPropertyOrPath(r,i,!0,!0)):Fr(n,e)&&(r=Or(n,o,e),t._setPendingPropertyOrPath(r,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){(i!==t[e]||"object"==typeof i)&&("className"===e&&(t=zr(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Tr(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[yo.NOTIFY]&&this[yo.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)(e||!this[yo.READ_ONLY]||!this[yo.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,r=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let r=t[yo.COMPUTE];if(r)if(dr){go++;const o=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[yo.COMPUTE];let s,{counts:r,ready:o,total:n}=function(t){const e=t[wo],i={},s=t[yo.COMPUTE],r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||r.push(t);return{counts:i,ready:r,total:o}}(t);for(;s=o.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--r[e]&&o.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)To(t,r,n,o,s);let a;for(;a=n.shift();)No(t,"",e,0,a)&&To(a.methodInfo,r,n,o,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;ko(t,r,o,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}(this,e,i,r),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,r),this._flushClients(),ko(this,this[yo.REFLECT],e,i,r),ko(this,this[yo.OBSERVE],e,i,r),s&&function(t,e,i,s,r){let o,n,a=t[yo.NOTIFY],l=go++;for(let n in e)e[n]&&(a&&Co(t,a,l,n,i,s,r)||r&&Ao(t,n,i))&&(o=!0);o&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[yo.PROPAGATE]&&ko(this,this[yo.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{ko(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,i,s)};t.runEffects?t.runEffects(r,e,s):r(e,s)}linkPaths(t,e){t=Lr(t),e=Lr(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Lr(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Zo(this,jr(this,t,i),i.path,e)}get(t,e){return jr(e||this,t)}set(t,e,i){i?Yr(i,t,e):(!this[yo.READ_ONLY]||!this[yo.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=jr(this,t,i),r=s.length,o=s.push(...e);return e.length&&Ko(this,s,i.path,r,e.length,[]),o}pop(t){let e={path:""},i=jr(this,t,e),s=!!i.length,r=i.pop();return s&&Ko(this,i,e.path,i.length,0,[r]),r}splice(t,e,i,...s){let r,o={path:""},n=jr(this,t,o);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||r.length)&&Ko(this,n,o.path,e,s.length,r),r}shift(t){let e={path:""},i=jr(this,t,e),s=!!i.length,r=i.shift();return s&&Ko(this,i,e.path,0,0,[r]),r}unshift(t,...e){let i={path:""},s=jr(this,t,i),r=s.unshift(...e);return e.length&&Ko(this,s,i.path,0,e.length,[]),r}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=jr(this,t,s),i=s.path}else i=Array.isArray(t)?Lr(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,yo.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,yo.OBSERVE,{fn:Eo,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,yo.OBSERVE,{fn:Eo,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=Wo(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");jo(this,i,yo.OBSERVE,Yo,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,yo.NOTIFY,{fn:Do,info:{eventName:qr(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,yo.REFLECT,{fn:Io,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=Wo(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const r=jo(this,s,yo.COMPUTE,No,t,i);xo(this,wo)[t]=r}_marshalArgs(t,e,i){const s=this.__data,r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:d}=t[o];if(!d)if(l){const t=Fr(n,e),r=Uo(s,i,t?e:n);h={path:t?e:n,value:r,base:t?jr(s,n):r}}else h=a?Uo(s,i,n):s[n];if(hr&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return bo;r[o]=h}return r}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Jo.push(this);let i=super._stampTemplate(t,e);if(Jo.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let r=i[e],o=s[e].bindings;if(o)for(let e=0;e<o.length;e++){let i=o[e];Lo(r,i),Bo(r,t,i)}r.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:r}=e;i?i.nextSibling=s:r&&(r.firstChild=s),s?s.previousSibling=i:r&&(r.lastChild=i),e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];zr(zr(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=qo(e)||" ",Po(this,i,s,"text","textContent",e),r=!0)}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r,o="property";_o.test(r)?o="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),o="attribute");let a=qo(n);return a&&"attribute"==o&&("class"==r&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(r)),t.setAttribute(r,a)),"attribute"==o&&"disable-upgrade$"==e&&t.setAttribute(r,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===o&&(r=Hr(r)),Po(this,i,s,o,r,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode,n=s.templateInfo,a="dom-if"===o.localName;cr&&(a||"dom-repeat"===o.localName)&&(o.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,r=!1);let l=n.hostProps;if(ur&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),cr||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)Po(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return r}static _parseBindings(t,e){let i,s=[],r=0;for(;null!==(i=Ho.exec(t));){i.index>r&&s.push({literal:t.slice(r,i.index)});let o=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",d=-1;"{"==o&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Wo(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let s=e.dynamicFns;(s&&s[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:o,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),r=Ho.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,r,o){let n;return n=e.signature?Yo(t,i,s,0,e.signature):i!=e.source?jr(t,e.source):o&&Tr(i)?jr(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Jo=[],Xo=fr((t=>{const e=eo(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
969
+ */let go=0;const bo=[],yo={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},wo="__computeInfo",_o=/[A-Z]/;function xo(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function ko(t,e,i,s,r,o){if(e){let n=!1;const a=go++;for(let l in i){let h=e[r?Nr(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==a)&&(!r||So(l,e.trigger))&&(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,r,o),n=!0)}return n}return!1}function Co(t,e,i,s,r,o,n,a){let l=!1,h=e[n?Nr(s):s];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==i)&&(!n||So(s,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,s,r,o,e.info,n,a),l=!0);return l}function So(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Pr(i,t))||!(!e.wildcard||!Or(i,t))}return!0}function Eo(t,e,i,s,r){let o="string"==typeof r.method?t[r.method]:r.method,n=r.property;o?o.call(t,t.__data[n],s[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ao(t,e,i){let s=Nr(e);return s!==e&&(Mo(t,qr(s)+"-changed",i[e],e),!0)}function Mo(t,e,i,s){let r={value:i,queueProperty:!0};s&&(r.path=s),zr(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Do(t,e,i,s,r,o){let n=(o?Nr(e):e)!=e?e:null,a=n?jr(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),Mo(t,r.eventName,a,n)}function Io(t,e,i,s,r){let o=t.__data[e];sr&&(o=sr(o,r.attrName,"attribute",t)),t._propertyToAttribute(e,r.attrName,o)}const zo=(t,e,i)=>{let s=0,r=e.length-1,o=-1;for(;s<=r;){const n=s+r>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){o=n;break}r=n-1}}o<0&&(o=r+1),e.splice(o,0,t)},To=(t,e,i,s,r)=>{const o=e[r?Nr(t):t];if(o)for(let e=0;e<o.length;e++){const n=o[e];n.info.lastRun!==go&&(!r||So(t,n.trigger))&&(n.info.lastRun=go,zo(n.info,i,s))}};function No(t,e,i,s,r){let o=Yo(t,e,i,0,r);if(o===bo)return!1;let n=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,o,!0):(t[n]=o,!1)}function Po(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:1!==o.length};if(i.bindings.push(a),function(t){return!!t.target&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||qr(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,Oo(t,e,a,s,l)}}function Oo(t,e,i,s,r){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let o=s.dependencies,n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];"string"==typeof s&&(s=Go(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Fo,info:n,trigger:s})}}}function Fo(t,e,i,s,r,o,n){let a=n[r.index],l=r.binding,h=r.part;if(o&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Fr(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);n!==bo&&function(t,e,i,s,r){if(r=function(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e,e=r.join("")}return"attribute"!==i.kind&&("textContent"===i.target||"value"===i.target&&("input"===t.localName||"textarea"===t.localName))&&(e=null==e?"":e),e}(e,r,i,s),sr&&(r=sr(r,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,r,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[yo.READ_ONLY]||!e[yo.READ_ONLY][s])&&e._setPendingProperty(s,r)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,r)}}(t,a,l,h,n)}}function Lo(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,r=new Array(s.length);for(let t=0;t<s.length;t++)r[t]=s[t].literal;let o=e.target;i[o]=r,e.literal&&"property"==e.kind&&("className"===o&&(t=zr(t)),t[o]=e.literal)}}function Bo(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,r){let o,n=t.detail,a=n&&n.path;a?(s=Fr(i,s,a),o=n&&n.value):o=t.currentTarget[i],o=r?!o:o,(!e[yo.READ_ONLY]||!e[yo.READ_ONLY][s])&&e._setPendingPropertyOrPath(s,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function jo(t,e,i,s,r,o){let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o=e.static||o&&("object"!=typeof o||o[e.methodName])};for(let r,o=0;o<e.args.length&&(r=e.args[o]);o++)r.literal||t._addPropertyEffect(r.rootProperty,i,{fn:s,info:n,trigger:r});return o&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function Yo(t,e,i,s,r){let o=t._methodHost||t,n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===bo?bo:n.apply(o,s)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const $o=[],Ro="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Vo="(?:("+Ro+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ho=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ro+"\\s*(?:\\(\\s*(?:(?:"+Vo+"(?:,\\s*"+Vo+")*)?)\\)\\s*)?)(?:]]|}})","g");function qo(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Wo(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:$o};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Go(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Go(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Nr(e),i.structured=Tr(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Uo(t,e,i){let s=jr(t,i);return void 0===s&&(s=e[i]),s}function Zo(t,e,i,s){const r={indexSplices:s};hr&&!t._overrideLegacyUndefined&&(e.splices=r),t.notifyPath(i+".splices",r),t.notifyPath(i+".length",e.length),hr&&!t._overrideLegacyUndefined&&(r.indexSplices=[])}function Ko(t,e,i,s,r,o){Zo(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}const Qo=fr((t=>{const e=fo(oo(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return yo}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Jo.length){let t=Jo[Jo.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[yo.READ_ONLY];for(let i in t)(!e||!e[i])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==yo.READ_ONLY);let s=xo(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=xo(this,e,!0)[t],r=s.indexOf(i);r>=0&&s.splice(r,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,yo.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,yo.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,yo.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,yo.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Nr(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=jr(this,t);if(!(t=Yr(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];Or(o,e)?(r=Fr(o,n,e),t._setPendingPropertyOrPath(r,i,!0,!0)):Or(n,e)&&(r=Fr(n,o,e),t._setPendingPropertyOrPath(r,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){(i!==t[e]||"object"==typeof i)&&("className"===e&&(t=zr(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Tr(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[yo.NOTIFY]&&this[yo.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)(e||!this[yo.READ_ONLY]||!this[yo.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,r=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let r=t[yo.COMPUTE];if(r)if(dr){go++;const o=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[yo.COMPUTE];let s,{counts:r,ready:o,total:n}=function(t){const e=t[wo],i={},s=t[yo.COMPUTE],r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||r.push(t);return{counts:i,ready:r,total:o}}(t);for(;s=o.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--r[e]&&o.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)To(t,r,n,o,s);let a;for(;a=n.shift();)No(t,"",e,0,a)&&To(a.methodInfo,r,n,o,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;ko(t,r,o,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}(this,e,i,r),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,r),this._flushClients(),ko(this,this[yo.REFLECT],e,i,r),ko(this,this[yo.OBSERVE],e,i,r),s&&function(t,e,i,s,r){let o,n,a=t[yo.NOTIFY],l=go++;for(let n in e)e[n]&&(a&&Co(t,a,l,n,i,s,r)||r&&Ao(t,n,i))&&(o=!0);o&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[yo.PROPAGATE]&&ko(this,this[yo.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{ko(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,i,s)};t.runEffects?t.runEffects(r,e,s):r(e,s)}linkPaths(t,e){t=Lr(t),e=Lr(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Lr(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Zo(this,jr(this,t,i),i.path,e)}get(t,e){return jr(e||this,t)}set(t,e,i){i?Yr(i,t,e):(!this[yo.READ_ONLY]||!this[yo.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=jr(this,t,i),r=s.length,o=s.push(...e);return e.length&&Ko(this,s,i.path,r,e.length,[]),o}pop(t){let e={path:""},i=jr(this,t,e),s=!!i.length,r=i.pop();return s&&Ko(this,i,e.path,i.length,0,[r]),r}splice(t,e,i,...s){let r,o={path:""},n=jr(this,t,o);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||r.length)&&Ko(this,n,o.path,e,s.length,r),r}shift(t){let e={path:""},i=jr(this,t,e),s=!!i.length,r=i.shift();return s&&Ko(this,i,e.path,0,0,[r]),r}unshift(t,...e){let i={path:""},s=jr(this,t,i),r=s.unshift(...e);return e.length&&Ko(this,s,i.path,0,e.length,[]),r}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=jr(this,t,s),i=s.path}else i=Array.isArray(t)?Lr(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,yo.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,yo.OBSERVE,{fn:Eo,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,yo.OBSERVE,{fn:Eo,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=Wo(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");jo(this,i,yo.OBSERVE,Yo,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,yo.NOTIFY,{fn:Do,info:{eventName:qr(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,yo.REFLECT,{fn:Io,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=Wo(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const r=jo(this,s,yo.COMPUTE,No,t,i);xo(this,wo)[t]=r}_marshalArgs(t,e,i){const s=this.__data,r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:d}=t[o];if(!d)if(l){const t=Or(n,e),r=Uo(s,i,t?e:n);h={path:t?e:n,value:r,base:t?jr(s,n):r}}else h=a?Uo(s,i,n):s[n];if(hr&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return bo;r[o]=h}return r}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Jo.push(this);let i=super._stampTemplate(t,e);if(Jo.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let r=i[e],o=s[e].bindings;if(o)for(let e=0;e<o.length;e++){let i=o[e];Lo(r,i),Bo(r,t,i)}r.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:r}=e;i?i.nextSibling=s:r&&(r.firstChild=s),s?s.previousSibling=i:r&&(r.lastChild=i),e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];zr(zr(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=qo(e)||" ",Po(this,i,s,"text","textContent",e),r=!0)}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r,o="property";_o.test(r)?o="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),o="attribute");let a=qo(n);return a&&"attribute"==o&&("class"==r&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(r)),t.setAttribute(r,a)),"attribute"==o&&"disable-upgrade$"==e&&t.setAttribute(r,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===o&&(r=Hr(r)),Po(this,i,s,o,r,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode,n=s.templateInfo,a="dom-if"===o.localName;cr&&(a||"dom-repeat"===o.localName)&&(o.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,r=!1);let l=n.hostProps;if(ur&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),cr||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)Po(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return r}static _parseBindings(t,e){let i,s=[],r=0;for(;null!==(i=Ho.exec(t));){i.index>r&&s.push({literal:t.slice(r,i.index)});let o=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",d=-1;"{"==o&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Wo(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let s=e.dynamicFns;(s&&s[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:o,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),r=Ho.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,r,o){let n;return n=e.signature?Yo(t,i,s,0,e.signature):i!=e.source?jr(t,e.source):o&&Tr(i)?jr(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Jo=[],Xo=fr((t=>{const e=eo(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
970
970
  /**
971
971
  @license
972
972
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1507,7 +1507,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1507
1507
  * @license
1508
1508
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1509
1509
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1510
- */;function Nn(t){const e=[];let i;return"slot"===t.localName?i=t.assignedElements():(e.push(t),i=[...t.children]),i.forEach((t=>e.push(...Nn(t)))),e}function Pn(t){return t?new Set(t.split(" ")):new Set}function Fn(t){return t?[...t].join(" "):""}function On(t,e,i){const s=Pn(t.getAttribute(e));s.add(i),t.setAttribute(e,Fn(s))}
1510
+ */;function Nn(t){const e=[];let i;return"slot"===t.localName?i=t.assignedElements():(e.push(t),i=[...t.children]),i.forEach((t=>e.push(...Nn(t)))),e}function Pn(t){return t?new Set(t.split(" ")):new Set}function On(t){return t?[...t].join(" "):""}function Fn(t,e,i){const s=Pn(t.getAttribute(e));s.add(i),t.setAttribute(e,On(s))}
1511
1511
  /**
1512
1512
  * @license
1513
1513
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
@@ -1563,18 +1563,18 @@ const Ia=fr((t=>class extends t{get _keyboardActive(){return xa()}ready(){this.a
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */,Ta=fr((t=>class extends(Ia(za(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),Na=fr((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),Pa=fr((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),(""!==t||void 0!==e)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Fa=fr((t=>class extends(Na(ga(Pa(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}})),Oa=new Map;
1566
+ */,Ta=fr((t=>class extends(Ia(za(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),Na=fr((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),Pa=fr((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),(""!==t||void 0!==e)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Oa=fr((t=>class extends(Na(ga(Pa(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}})),Fa=new Map;
1567
1567
  /**
1568
1568
  * @license
1569
1569
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1570
1570
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1571
- */function La(t){return Oa.has(t)||Oa.set(t,new WeakMap),Oa.get(t)}function Ba(t,e){t&&t.removeAttribute(e)}function ja(t,e){if(!t||!e)return;const i=La(e);if(i.has(t))return;const s=Pn(t.getAttribute(e));i.set(t,new Set(s))}function Ya(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:r,fromUser:o}=i,n=La(e),a=n.get(t);if(!o&&a)return r&&a.delete(r),void(s&&a.add(s));o&&(a?s||n.delete(t):ja(t,e),Ba(t,e)),function(t,e,i){const s=Pn(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,Fn(s)):t.removeAttribute(e)}(t,e,r);const l=s||Fn(a);l&&On(t,e,l)}
1571
+ */function La(t){return Fa.has(t)||Fa.set(t,new WeakMap),Fa.get(t)}function Ba(t,e){t&&t.removeAttribute(e)}function ja(t,e){if(!t||!e)return;const i=La(e);if(i.has(t))return;const s=Pn(t.getAttribute(e));i.set(t,new Set(s))}function Ya(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:r,fromUser:o}=i,n=La(e),a=n.get(t);if(!o&&a)return r&&a.delete(r),void(s&&a.add(s));o&&(a?s||n.delete(t):ja(t,e),Ba(t,e)),function(t,e,i){const s=Pn(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,On(s)):t.removeAttribute(e)}(t,e,r);const l=s||On(a);l&&Fn(t,e,l)}
1572
1572
  /**
1573
1573
  * @license
1574
1574
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1575
1575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1576
1576
  */
1577
- class $a{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){ja(t,e),Ba(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=La(e),s=i.get(t);s&&0!==s.size?On(t,e,Fn(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ya(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ya(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ya(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1577
+ class $a{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){ja(t,e),Ba(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=La(e),s=i.get(t);s&&0!==s.size?Fn(t,e,On(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ya(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ya(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ya(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1578
1578
  /**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1629,7 +1629,7 @@ class $a{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1629
1629
  * @license
1630
1630
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1631
1631
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1632
- */const el=t=>class extends(Ja(Fa(Ta(ya(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Xa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new tl(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(t){return!this.readonly&&"a"!==t.target.localName&&t.target!==this._helperNode&&t.target!==this._errorNode&&super._shouldSetActive(t)}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("click",this._boundOnInputClick)}_onInputClick(t){this.readonly&&t.preventDefault()}__readonlyChanged(t,e){e&&(t?e.setAttribute("aria-readonly","true"):e.removeAttribute("aria-readonly"))}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}checkValidity(){return!this.required||!!this.checked}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_checkedChanged(t){(t||this.__oldChecked)&&this.validate(),this.__oldChecked=t}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1632
+ */const el=t=>class extends(Ja(Oa(Ta(ya(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Xa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new tl(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(t){return!this.readonly&&"a"!==t.target.localName&&t.target!==this._helperNode&&t.target!==this._errorNode&&super._shouldSetActive(t)}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("click",this._boundOnInputClick)}_onInputClick(t){this.readonly&&t.preventDefault()}__readonlyChanged(t,e){e&&(t?e.setAttribute("aria-readonly","true"):e.removeAttribute("aria-readonly"))}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}checkValidity(){return!this.required||!!this.checked}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_checkedChanged(t){(t||this.__oldChecked)&&this.validate(),this.__oldChecked=t}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1633
1633
  /**
1634
1634
  * @license
1635
1635
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -3394,17 +3394,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3397
- */class Fl{saveFocus(t){this.focusNode=t||_a()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;_a()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
3397
+ */class Ol{saveFocus(t){this.focusNode=t||_a()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;_a()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
3398
3398
  /**
3399
3399
  * @license
3400
3400
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3401
3401
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3402
- */const Ol=[];class Ll{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Da(t,e)?Sa(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ma).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ol.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ol.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Ol).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
3402
+ */const Fl=[];class Ll{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Da(t,e)?Sa(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ma).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Fl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Fl.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Fl).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
3403
3403
  /**
3404
3404
  * @license
3405
3405
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3406
3406
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3407
- */const Bl=t=>class extends(Ra(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Pl(this),this.__focusTrapController=new Ll(this),this.__focusRestorationController=new Fl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!xa();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=_a();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
3407
+ */const Bl=t=>class extends(Ra(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Pl(this),this.__focusTrapController=new Ll(this),this.__focusRestorationController=new Ol}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!xa();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=_a();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
3408
3408
  /**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -3641,7 +3641,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3641
3641
  Code distributed by Google as part of the polymer project is also
3642
3642
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3643
3643
  */
3644
- const Ih=gh(ln);class zh extends Ih{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!pr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(nr&&!tr){if(!Dh){Dh=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=zr(zr(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Mh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s,r=0;r<i.length&&(s=i[r]);r++)s.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if(function(t,e){return t===e||Pr(t,e)||Fr(t,e)}(this.as,e)){let s=t[this.itemsIndexAs];e==this.as&&(this.items[s]=i);let r=Or(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=oh.debounce(this.__renderDebouncer,e>0?Jr.after(e):Xr,t.bind(this)),nh.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),lh()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!pr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r],o=i[r],n=t[o];s[o]=r,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,r),e._setPendingProperty(this.itemsIndexAs,o),e._flushProperties()):this.__insertInstance(n,r,o)}for(let t=this.__instances.length-1;t>=r;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=zr(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],o=r?r.children[0]:this;return zr(zr(this).parentNode).insertBefore(s.root,o),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__instances[this.__itemsIdxToInstIdx[r]];return o&&(o._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),o._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=zr(e).parentNode;return null}(this.template,t)}}customElements.define(zh.is,zh);
3644
+ const Ih=gh(ln);class zh extends Ih{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!pr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(nr&&!tr){if(!Dh){Dh=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=zr(zr(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Mh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s,r=0;r<i.length&&(s=i[r]);r++)s.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if(function(t,e){return t===e||Pr(t,e)||Or(t,e)}(this.as,e)){let s=t[this.itemsIndexAs];e==this.as&&(this.items[s]=i);let r=Fr(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=oh.debounce(this.__renderDebouncer,e>0?Jr.after(e):Xr,t.bind(this)),nh.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),lh()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!pr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r],o=i[r],n=t[o];s[o]=r,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,r),e._setPendingProperty(this.itemsIndexAs,o),e._flushProperties()):this.__insertInstance(n,r,o)}for(let t=this.__instances.length-1;t>=r;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=zr(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],o=r?r.children[0]:this;return zr(zr(this).parentNode).insertBefore(s.root,o),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__instances[this.__itemsIdxToInstIdx[r]];return o&&(o._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),o._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=zr(e).parentNode;return null}(this.template,t)}}customElements.define(zh.is,zh);
3645
3645
  /**
3646
3646
  * @license
3647
3647
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3772,7 +3772,7 @@ class Ph{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
3772
3772
  * @license
3773
3773
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3774
3774
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3775
- */const Fh=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){da(this.$.scrollers,"pan-y"),la(this.$.scrollers,"track",this._track.bind(this)),la(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),la(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),la(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ph(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new Yn(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),la(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Yn(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),la(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Yn(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Yn(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),la(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,s,r){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,s,r))}__updateCalendars(t,e,i,s,r,o,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=s,t.isDateDisabled=h,t.focusedDate=o,t.selectedDate=r,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+s,e)}const s=this._monthScroller.position>i,r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+r-1<i;s?this._scrollToPosition(i,e):o&&this._scrollToPosition(i-r+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=xn.debounce(this._debouncer,gn.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(th(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let s=0;const r=this._monthScroller.position,o=t=>{s||(s=t);const e=t-s;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,r,this._targetPosition-r);this._monthScroller.position=t,window.requestAnimationFrame(o)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(o)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return sh(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Xl(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Xl(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return gi(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return gi(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{wl(this,(()=>{lh(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(ih(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,s=this.isDateDisabled){return eh(t,e,i,s)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
3775
+ */const Oh=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){da(this.$.scrollers,"pan-y"),la(this.$.scrollers,"track",this._track.bind(this)),la(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),la(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),la(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ph(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new Yn(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),la(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Yn(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),la(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Yn(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Yn(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),la(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,s,r){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,s,r))}__updateCalendars(t,e,i,s,r,o,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=s,t.isDateDisabled=h,t.focusedDate=o,t.selectedDate=r,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+s,e)}const s=this._monthScroller.position>i,r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+r-1<i;s?this._scrollToPosition(i,e):o&&this._scrollToPosition(i-r+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=xn.debounce(this._debouncer,gn.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(th(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let s=0;const r=this._monthScroller.position,o=t=>{s||(s=t);const e=t-s;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,r,this._targetPosition-r);this._monthScroller.position=t,window.requestAnimationFrame(o)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(o)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return sh(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Xl(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Xl(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return gi(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return gi(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{wl(this,(()=>{lh(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(ih(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,s=this.isDateDisabled){return eh(t,e,i,s)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
3776
3776
  /**
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3843,7 +3843,7 @@ js("vaadin-date-picker-overlay-content",Si`
3843
3843
  z-index: 2;
3844
3844
  flex-shrink: 0;
3845
3845
  }
3846
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Oh extends(Fh(Ra(Hs(Dn(ln))))){static get template(){return nn`
3846
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Fh extends(Oh(Ra(Hs(Dn(ln))))){static get template(){return nn`
3847
3847
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3848
3848
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3849
3849
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3863,7 +3863,7 @@ js("vaadin-date-picker-overlay-content",Si`
3863
3863
  <slot name="today-button"></slot>
3864
3864
  <slot name="cancel-button"></slot>
3865
3865
  </div>
3866
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}bi(Oh);
3866
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}bi(Fh);
3867
3867
  /**
3868
3868
  * @license
3869
3869
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4703,7 +4703,7 @@ class Pd extends(Hs(ln)){static get is(){return"vaadin-multi-select-combo-box-ch
4703
4703
  </style>
4704
4704
  <div part="label">[[label]]</div>
4705
4705
  <div part="remove-button" on-click="_onRemoveClick"></div>
4706
- `}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}let Fd;bi(Pd),
4706
+ `}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}let Od;bi(Pd),
4707
4707
  /**
4708
4708
  * @license
4709
4709
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4719,13 +4719,13 @@ js("vaadin-multi-select-combo-box-container",Si`
4719
4719
  :host([auto-expand-vertically]) #wrapper {
4720
4720
  flex-wrap: wrap;
4721
4721
  }
4722
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"}),bi(class extends ml{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Fd){Fd=super.template.cloneNode(!0);const t=Fd.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1])}return Fd}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}});
4722
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"}),bi(class extends ml{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Od){Od=super.template.cloneNode(!0);const t=Od.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1])}return Od}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}});
4723
4723
  /**
4724
4724
  * @license
4725
4725
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4726
4726
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4727
4727
  */
4728
- class Od extends(ld(Hs(Dn(ln)))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return nn`
4728
+ class Fd extends(ld(Hs(Dn(ln)))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return nn`
4729
4729
  <style>
4730
4730
  :host {
4731
4731
  display: block;
@@ -4739,7 +4739,7 @@ class Od extends(ld(Hs(Dn(ln)))){static get is(){return"vaadin-multi-select-comb
4739
4739
  <div part="content">
4740
4740
  <slot></slot>
4741
4741
  </div>
4742
- `}}bi(Od),js("vaadin-multi-select-combo-box-overlay",[vl,Si`
4742
+ `}}bi(Fd),js("vaadin-multi-select-combo-box-overlay",[vl,Si`
4743
4743
  #overlay {
4744
4744
  width: var(
4745
4745
  --vaadin-multi-select-combo-box-overlay-width,
@@ -6654,12 +6654,12 @@ js("vaadin-tabs",Si`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}bi(gc);const bc=class{constructor(t){r(this,t),this.registrationWidgetLoaded=o(this,"registrationWidgetLoaded",7),this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.twofaStartCountDown=!1,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.enableCustomRegexValidation=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,e){t!==e&&this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{w(t),e(!0)}))})))}disconnectedCallback(){var t;null===(t=this.translationSubscription)||void 0===t||t.unsubscribe(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientTranslations(){this.mbSource&&!this.translationUrl&&(this.translationSubscription=function(t,e,i,s=!1){if(window.emMessageBus){const r=s?t=>{t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((e=>i(e,t[e])))}:i;e=window.emMessageBus.subscribe(t,r)}return e}(`${this.mbSource}.Translation`,this.translationSubscription,(t=>{var e;t&&"object"==typeof t&&(w(t),h(this.host),null===(e=this.host.shadowRoot)||void 0===e||e.querySelectorAll("*").forEach((t=>{"function"==typeof t.componentOnReady&&h(t)})))})))}componentDidLoad(){this.handleClientTranslations(),this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){void 0===window.emMessageBus?(this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?n("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):n("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return n("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return n("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return n("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return n("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return n("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource,"translation-url":this.translationUrl});case"datetime":return n("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return n("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return n("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return n("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource,"enable-custom-regex-validation":this.enableCustomRegexValidation});case"dropdown":return n("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return n("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"start-count-down":this.twofaStartCountDown,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&""!==this.displayName.trim())return n("div",{class:"general-non-input",innerHTML:this.displayName,ref:t=>this.stylingContainer=t});n("p",null,"No content in label type");default:return n("p",null,"The ",this.type," input type is not valid")}}render(){return n(l,{key:"b9d7daf54c988a5cd60f6a4d2348aa276a9f8022",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};bc.style=":host{display:block;height:100%}";const yc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(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.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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${i}`,this.language)?y(`${i}`,this.language):s}}renderTooltip(){return this.showTooltip?n("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},n("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&n("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),n("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};yc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const wc=class{constructor(t){r(this,t),this.sendOriginalValidityState=o(this,"sendOriginalValidityState",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let s=!1;return t&&(s=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:s}}))}getValueValidity(){var t;const e=null!==(t=this.value)&&void 0!==t?t:"",{mandatory:i,minLength:s,maxLength:r}=this.validation;return{valueMissing:!!i&&""===e,tooShort:""!==e&&!!s&&e.length<s,tooLong:""!==e&&!!r&&e.length>r,patternMismatch:""!==e&&!!this.validationPattern&&!new RegExp(`^(?:${this.validationPattern})$`).test(e)}}setValidity(){var t;if(this.noValidation)return!0;if(this.isDuplicateInput&&this.duplicateInputValue!==this.value)return!1;if(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed))){const{valueMissing:t,tooShort:e,tooLong:i,patternMismatch:s}=this.getValueValidity();return!(t||e||i||s)}return!1}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,r;const{valueMissing:o,tooShort:n,tooLong:a,patternMismatch:l}=this.getValueValidity();if(n||a)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(o)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(l){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 y(`${i}`,this.language)?y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}return(null===(r=this.passwordComplexity)||void 0===r?void 0:r.every((t=>t.passed)))?void 0:y("invalidPassword",this.language)}isComplexityPopupVisible(){return!!this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput}renderTooltip(){return this.showTooltip?n("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,i=this.passwordComplexity.every((t=>t.passed));return n("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},n("div",{class:"password__complexity--strength"},n("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",n("span",{class:"password__complexity--text-bold"},y(i?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),n("meter",{value:e,min:"0",max:"1"})),n("div",null,this.passwordComplexity.map(((t,e)=>n("div",{key:e},n("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),n("span",null,y(`${t.ruleKey}`,this.language)?y(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return n("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},n("p",{class:"customreg-password__complexity--title"},y("PasswordMustContain",this.language)),n("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>n("div",{class:"customreg-password__complexity--rule",key:e},n("span",{class:`customreg-password__complexity--icon ${t.passed?v.PASSWORD_COMPLEXITY_PASSED:v.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),n("span",null,y(t.ruleKey,this.language)||t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"b4f26f39d749b45a85e4d3a05419ff74026b9c73",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"25ab8386ec960e36ec411a3142452bb1a7ffbe05",class:"password__wrapper--flex"},n("label",{key:"0ee895de1059e39fbde8723b1606f9f2a0f89d97",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"d5d84181edfdfc638c6d35f91c555dd91c97b69a",class:"password__wrapper--relative"},this.tooltip&&n("img",{key:"5a176a28a7efde57506a1db7690d57a86379a527",class:"password__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("vaadin-password-field",{key:"70710167fc3a008c555e447e372e735e3c8af497",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&!this.isComplexityPopupVisible()&&n("small",{key:"d39c8e2c585e574bc31725e6935254d4bf634d0e",class:"password__error-message"},this.errorMessage),this.isComplexityPopupVisible()&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};wc.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const _c=class{constructor(t){r(this,t),this.sendAddressValue=o(this,"sendAddressValue",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),s=`${e.street}`.trim(),r=`${e.city}`.trim();this.sendAddressValue.emit({city:r,address1:i,address2:s}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:r}),s&&this.valueHandler({name:"address2",value:s}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),s=(null==i?void 0:i.ref)||t.address1||t.PostalCode;s.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),s.focus()},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),s=e.includes(this.addressesDropdownRef),r=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||s||r||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:e}=this.validation;return t===e?y(b,this.language,{values:{length:t}}):y(g,this.language,{values:{minLength:t,maxLength:e}})}if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${i}`,this.language)||s}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let i="";this.touched&&(i=1==this.isValid||null==this.isValid?"":"text__input--invalid");let s="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,r=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&s,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&s,a=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return n("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},n("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},n("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&n("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},n("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!s&&n("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},y("enterIEAddressManually",this.language)),r&&n("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},n("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map(((t,e)=>n("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),a&&n("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},n("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),n("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},y("searchingForAddresses",this.language))),o&&n("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},y("postalLookUpNoAddressFound",this.language))),n("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};_c.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const xc=class{constructor(t){r(this,t),this.sendInputValue=o(this,"sendInputValue",7),this.sendValidityState=o(this,"sendValidityState",7),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling()}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},n("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>n("div",{class:"radio__wrapper"},n("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),n("label",{htmlFor:`${t.label}__input`},t.label)))),n("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&n("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};xc.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const kc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t,e;let i="";return this.touched&&(i=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},n("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,n("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),n("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&n("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?n("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${i} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):n("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${i} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),n("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};kc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const Cc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(t.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}resetValidationState(){this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.inputReference.setCustomValidity("")}isMissingValue(t){return this.validation.mandatory&&""===t}isFixedLength(t){const e=this.validation.minLength,i=this.validation.maxLength;return!(!e||!i||e!==i||t.length===e)}isTooShort(t){const e=this.validation.minLength;return!!(e&&t.length<e)}isTooLong(t){const e=this.validation.maxLength;return!!(e&&t.length>e)}failsPattern(t){if(!this.validationPattern)return!1;let e;try{e=new RegExp(this.validationPattern)}catch(t){return console.warn("Invalid validationPattern:",this.validationPattern,t),!1}return!e.test(t)}failsCustomRules(t){const e=(this.validation.custom||[]).filter((t=>"regex"===t.rule&&t.pattern)),[,...i]=e;for(const e of i){let i;try{i=new RegExp(e.pattern)}catch(t){console.warn("Invalid regex pattern:",e.pattern,t);continue}if(!i.test(t))return!0}return!1}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){var t,e;if(!this.inputReference)return!1;this.resetValidationState();const i=null!==(e=null===(t=this.phoneValue)||void 0===t?void 0:t.trim())&&void 0!==e?e:"",s=""===i;return!(this.isMissingValue(i)||!s&&(this.isFixedLength(i)||this.isTooShort(i)||this.isTooLong(i)||this.failsPattern(i)||this.failsCustomRules(i)))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.customError)||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const t=null===(i=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===s?void 0:s.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):e}const{minLength:r,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||r&&this.phoneValue&&this.phoneValue.length<r||o&&this.phoneValue&&this.phoneValue.length>o)return r===o?y(b,this.language,{values:{length:r}}):y(g,this.language,{values:{minLength:r,maxLength:o}});if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){return(this.lastCustomErrorKey?y(`${this.lastCustomErrorKey}`,this.language):"")||this.lastCustomErrorMessage||""}}applyCustomError(){const t=(this.validation.custom||[]).filter((t=>"regex"===t.rule&&t.pattern)),[,...e]=t;for(const t of e){let e;try{e=new RegExp(t.pattern)}catch(e){console.warn("[applyCustomError] invalid regex pattern:",t.pattern,e);continue}if(!e.test(this.phoneValue))return this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,void this.inputReference.setCustomValidity("customError")}}renderTooltip(){return this.showTooltip?n("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"82da44bb2bacec9efb3631e377978d678e766919",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"4ca8d6dde2d3f8e15e2d26d593297519e0c94053",class:"tel__wrapper--flex-label"},n("label",{key:"3b0e2736fd47537b2ecd80cf49a146992d59474e",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"1577aafc7b68128e91cdfe9ddc563bbad9d7b901",class:"tel__wrapper--relative"},this.tooltip&&n("img",{key:"cb6576e1248fc52f937c685d59d994a1d098d7cc",class:"tel__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("div",{key:"a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb",class:`tel__wrapper--flex ${e}`},n("vaadin-combo-box",{key:"9aa33a487f019ee7393e29a0ce0d1836a23f5e09",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),n("input",{key:"21d69c041b9a5f5f6fb1e6d7b392945cafe99e87",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),n("small",{key:"76febe89ad7ee581eb5fc79658d81123da08ccdd",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Cc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const Sc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==v.FIRSTNAME_ON_DOCUMENT&&this.name!==v.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(v.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:s}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let r="";"address1"===this.name?r=i:"address2"===this.name?r=s:"City"===this.name&&(r=e),this.value=r,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===v.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===v.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===v.PASSPORT)return v.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===v.SOUTH_AFRICAN_ID){if(i.length!==v.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!v.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let s="";for(let t=1;t<12;t+=2)s+=e[t];return(10-(i+(2*parseInt(s,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===v.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;const r=this.value.trim();if(this.enableSouthAfricanMode&&this.name===v.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":y(e.errorKey,this.language)}if(""===r&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:e}=this.validation;return t===e?y(b,this.language,{values:{length:t}}):y(g,this.language,{values:{minLength:t,maxLength:e}})}if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}return""}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},n("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},n("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&n("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),n("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};
6657
+ `}static get is(){return"vaadin-tabs"}}bi(gc);const bc=class{constructor(t){r(this,t),this.registrationWidgetLoaded=o(this,"registrationWidgetLoaded",7),this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.twofaStartCountDown=!1,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.enableCustomRegexValidation=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,e){t!==e&&this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{w(t),e(!0)}))})))}disconnectedCallback(){var t;null===(t=this.translationSubscription)||void 0===t||t.unsubscribe(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientTranslations(){this.mbSource&&!this.translationUrl&&(this.translationSubscription=function(t,e,i,s=!1){if(window.emMessageBus){const r=s?t=>{t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((e=>i(e,t[e])))}:i;e=window.emMessageBus.subscribe(t,r)}return e}(`${this.mbSource}.Translation`,this.translationSubscription,(t=>{var e;t&&"object"==typeof t&&(w(t),h(this.host),null===(e=this.host.shadowRoot)||void 0===e||e.querySelectorAll("*").forEach((t=>{"function"==typeof t.componentOnReady&&h(t)})))})))}componentDidLoad(){this.handleClientTranslations(),this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){void 0===window.emMessageBus?(this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?n("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):n("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return n("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return n("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return n("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return n("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return n("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource,"translation-url":this.translationUrl});case"datetime":return n("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return n("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return n("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return n("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource,"enable-custom-regex-validation":this.enableCustomRegexValidation});case"dropdown":return n("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return n("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"start-count-down":this.twofaStartCountDown,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&""!==this.displayName.trim())return n("div",{class:"general-non-input",innerHTML:this.displayName,ref:t=>this.stylingContainer=t});n("p",null,"No content in label type");default:return n("p",null,"The ",this.type," input type is not valid")}}render(){return n(l,{key:"b9d7daf54c988a5cd60f6a4d2348aa276a9f8022",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};bc.style=":host{display:block;height:100%}";const yc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(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.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.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${i}`,this.language)?y(`${i}`,this.language):s}}renderTooltip(){return this.showTooltip?n("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},n("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&n("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),n("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};yc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const wc=class{constructor(t){r(this,t),this.sendOriginalValidityState=o(this,"sendOriginalValidityState",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let s=!1;return t&&(s=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:s}}))}getValueValidity(){var t;const e=null!==(t=this.value)&&void 0!==t?t:"",{mandatory:i,minLength:s,maxLength:r}=this.validation;return{valueMissing:!!i&&""===e,tooShort:""!==e&&!!s&&e.length<s,tooLong:""!==e&&!!r&&e.length>r,patternMismatch:""!==e&&!!this.validationPattern&&!new RegExp(`^(?:${this.validationPattern})$`).test(e)}}setValidity(){var t;if(this.noValidation)return!0;if(this.isDuplicateInput&&this.duplicateInputValue!==this.value)return!1;if(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed))){const{valueMissing:t,tooShort:e,tooLong:i,patternMismatch:s}=this.getValueValidity();return!(t||e||i||s)}return!1}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,r;const{valueMissing:o,tooShort:n,tooLong:a,patternMismatch:l}=this.getValueValidity();if(n||a)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(o)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(l){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 y(`${i}`,this.language)?y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}return(null===(r=this.passwordComplexity)||void 0===r?void 0:r.every((t=>t.passed)))?void 0:y("invalidPassword",this.language)}isComplexityPopupVisible(){return!!this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput}isErrorCoveredByComplexityPopup(){const{valueMissing:t,tooShort:e,tooLong:i}=this.getValueValidity();return this.isComplexityPopupVisible()&&!t&&!e&&!i}renderTooltip(){return this.showTooltip?n("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,i=this.passwordComplexity.every((t=>t.passed));return n("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},n("div",{class:"password__complexity--strength"},n("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",n("span",{class:"password__complexity--text-bold"},y(i?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),n("meter",{value:e,min:"0",max:"1"})),n("div",null,this.passwordComplexity.map(((t,e)=>n("div",{key:e},n("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),n("span",null,y(`${t.ruleKey}`,this.language)?y(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return n("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},n("p",{class:"customreg-password__complexity--title"},y("PasswordMustContain",this.language)),n("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>n("div",{class:"customreg-password__complexity--rule",key:e},n("span",{class:`customreg-password__complexity--icon ${t.passed?v.PASSWORD_COMPLEXITY_PASSED:v.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),n("span",null,y(t.ruleKey,this.language)||t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"c10920f293ff4935cc5e6e9efd78ad84afb55b39",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"6592d199a5dfb9b81995c0b045b62e10af05158d",class:"password__wrapper--flex"},n("label",{key:"893732849fc38cc702d1e21e1868263ca4a1e422",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"0cd5a201d08c956989448770616f09a0e33836a1",class:"password__wrapper--relative"},this.tooltip&&n("img",{key:"b5ff997ee6307cb53f38a6de60c048d32ec980ab",class:"password__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("vaadin-password-field",{key:"6596dc25971341baeede5afc4fe65567a80f1a88",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&!this.isErrorCoveredByComplexityPopup()&&n("small",{key:"9f436a53c0a1ca1959bd825e3547b16e9e6eda7e",class:"password__error-message"},this.errorMessage),this.isComplexityPopupVisible()&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};wc.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const _c=class{constructor(t){r(this,t),this.sendAddressValue=o(this,"sendAddressValue",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),s=`${e.street}`.trim(),r=`${e.city}`.trim();this.sendAddressValue.emit({city:r,address1:i,address2:s}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:r}),s&&this.valueHandler({name:"address2",value:s}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),s=(null==i?void 0:i.ref)||t.address1||t.PostalCode;s.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),s.focus()},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),s=e.includes(this.addressesDropdownRef),r=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||s||r||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:e}=this.validation;return t===e?y(b,this.language,{values:{length:t}}):y(g,this.language,{values:{minLength:t,maxLength:e}})}if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${i}`,this.language)||s}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let i="";this.touched&&(i=1==this.isValid||null==this.isValid?"":"text__input--invalid");let s="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,r=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&s,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&s,a=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return n("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},n("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},n("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&n("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},n("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!s&&n("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},y("enterIEAddressManually",this.language)),r&&n("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},n("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map(((t,e)=>n("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),a&&n("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},n("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),n("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},y("searchingForAddresses",this.language))),o&&n("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},y("postalLookUpNoAddressFound",this.language))),n("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};_c.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const xc=class{constructor(t){r(this,t),this.sendInputValue=o(this,"sendInputValue",7),this.sendValidityState=o(this,"sendValidityState",7),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling()}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},n("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>n("div",{class:"radio__wrapper"},n("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),n("label",{htmlFor:`${t.label}__input`},t.label)))),n("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&n("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};xc.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const kc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?n("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t,e;let i="";return this.touched&&(i=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},n("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,n("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),n("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&n("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?n("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${i} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):n("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${i} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),n("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};kc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const Cc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(t.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}resetValidationState(){this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.inputReference.setCustomValidity("")}isMissingValue(t){return this.validation.mandatory&&""===t}isFixedLength(t){const e=this.validation.minLength,i=this.validation.maxLength;return!(!e||!i||e!==i||t.length===e)}isTooShort(t){const e=this.validation.minLength;return!!(e&&t.length<e)}isTooLong(t){const e=this.validation.maxLength;return!!(e&&t.length>e)}failsPattern(t){if(!this.validationPattern)return!1;let e;try{e=new RegExp(this.validationPattern)}catch(t){return console.warn("Invalid validationPattern:",this.validationPattern,t),!1}return!e.test(t)}failsCustomRules(t){const e=(this.validation.custom||[]).filter((t=>"regex"===t.rule&&t.pattern)),[,...i]=e;for(const e of i){let i;try{i=new RegExp(e.pattern)}catch(t){console.warn("Invalid regex pattern:",e.pattern,t);continue}if(!i.test(t))return!0}return!1}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){var t,e;if(!this.inputReference)return!1;this.resetValidationState();const i=null!==(e=null===(t=this.phoneValue)||void 0===t?void 0:t.trim())&&void 0!==e?e:"",s=""===i;return!(this.isMissingValue(i)||!s&&(this.isFixedLength(i)||this.isTooShort(i)||this.isTooLong(i)||this.failsPattern(i)||this.failsCustomRules(i)))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.customError)||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const t=null===(i=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(s=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===s?void 0:s.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):e}const{minLength:r,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||r&&this.phoneValue&&this.phoneValue.length<r||o&&this.phoneValue&&this.phoneValue.length>o)return r===o?y(b,this.language,{values:{length:r}}):y(g,this.language,{values:{minLength:r,maxLength:o}});if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){return(this.lastCustomErrorKey?y(`${this.lastCustomErrorKey}`,this.language):"")||this.lastCustomErrorMessage||""}}applyCustomError(){const t=(this.validation.custom||[]).filter((t=>"regex"===t.rule&&t.pattern)),[,...e]=t;for(const t of e){let e;try{e=new RegExp(t.pattern)}catch(e){console.warn("[applyCustomError] invalid regex pattern:",t.pattern,e);continue}if(!e.test(this.phoneValue))return this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,void this.inputReference.setCustomValidity("customError")}}renderTooltip(){return this.showTooltip?n("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"82da44bb2bacec9efb3631e377978d678e766919",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"4ca8d6dde2d3f8e15e2d26d593297519e0c94053",class:"tel__wrapper--flex-label"},n("label",{key:"3b0e2736fd47537b2ecd80cf49a146992d59474e",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"1577aafc7b68128e91cdfe9ddc563bbad9d7b901",class:"tel__wrapper--relative"},this.tooltip&&n("img",{key:"cb6576e1248fc52f937c685d59d994a1d098d7cc",class:"tel__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("div",{key:"a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb",class:`tel__wrapper--flex ${e}`},n("vaadin-combo-box",{key:"9aa33a487f019ee7393e29a0ce0d1836a23f5e09",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),n("input",{key:"21d69c041b9a5f5f6fb1e6d7b392945cafe99e87",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),n("small",{key:"76febe89ad7ee581eb5fc79658d81123da08ccdd",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Cc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const Sc=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==v.FIRSTNAME_ON_DOCUMENT&&this.name!==v.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(v.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:s}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let r="";"address1"===this.name?r=i:"address2"===this.name?r=s:"City"===this.name&&(r=e),this.value=r,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===v.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===v.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===v.PASSPORT)return v.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===v.SOUTH_AFRICAN_ID){if(i.length!==v.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!v.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let s="";for(let t=1;t<12;t+=2)s+=e[t];return(10-(i+(2*parseInt(s,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===v.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,s;const r=this.value.trim();if(this.enableSouthAfricanMode&&this.name===v.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":y(e.errorKey,this.language)}if(""===r&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return y(f,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:e}=this.validation;return t===e?y(b,this.language,{values:{length:t}}):y(g,this.language,{values:{minLength:t,maxLength:e}})}if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,s=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return y(`${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 y(`${t}`,this.language)?y(`${t}`,this.language):e}return""}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),n("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},n("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},n("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),n("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&n("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),n("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),n("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};
6658
6658
  //! moment.js
6659
6659
  //! version : 2.29.4
6660
6660
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
6661
6661
  //! license : MIT
6662
6662
  //! momentjs.com
6663
- var Ec,Ac;function Mc(){return Ec.apply(null,arguments)}function Dc(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function Ic(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function zc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Tc(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(zc(t,e))return!1;return!0}function Nc(t){return void 0===t}function Pc(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Fc(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function Oc(t,e){var i,s=[],r=t.length;for(i=0;i<r;++i)s.push(e(t[i],i));return s}function Lc(t,e){for(var i in e)zc(e,i)&&(t[i]=e[i]);return zc(e,"toString")&&(t.toString=e.toString),zc(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Bc(t,e,i,s){return sm(t,e,i,s,!0).utc()}function jc(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function Yc(t){if(null==t._isValid){var e=jc(t),i=Ac.call(e.parsedDateParts,(function(t){return null!=t})),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(s=s&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return s;t._isValid=s}return t._isValid}function $c(t){var e=Bc(NaN);return null!=t?Lc(jc(e),t):jc(e).userInvalidated=!0,e}Sc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Ac=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),s=i.length>>>0;for(e=0;e<s;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var Rc=Mc.momentProperties=[],Vc=!1;function Hc(t,e){var i,s,r,o=Rc.length;if(Nc(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Nc(e._i)||(t._i=e._i),Nc(e._f)||(t._f=e._f),Nc(e._l)||(t._l=e._l),Nc(e._strict)||(t._strict=e._strict),Nc(e._tzm)||(t._tzm=e._tzm),Nc(e._isUTC)||(t._isUTC=e._isUTC),Nc(e._offset)||(t._offset=e._offset),Nc(e._pf)||(t._pf=jc(e)),Nc(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)Nc(r=e[s=Rc[i]])||(t[s]=r);return t}function qc(t){Hc(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Vc&&(Vc=!0,Mc.updateOffset(this),Vc=!1)}function Wc(t){return t instanceof qc||null!=t&&null!=t._isAMomentObject}function Gc(t){!1===Mc.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Uc(t,e){var i=!0;return Lc((function(){if(null!=Mc.deprecationHandler&&Mc.deprecationHandler(null,t),i){var s,r,o,n=[],a=arguments.length;for(r=0;r<a;r++){if(s="","object"==typeof arguments[r]){for(o in s+="\n["+r+"] ",arguments[0])zc(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[r];n.push(s)}Gc(t+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var Zc,Kc={};function Qc(t,e){null!=Mc.deprecationHandler&&Mc.deprecationHandler(t,e),Kc[t]||(Gc(e),Kc[t]=!0)}function Jc(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Xc(t,e){var i,s=Lc({},t);for(i in e)zc(e,i)&&(Ic(t[i])&&Ic(e[i])?(s[i]={},Lc(s[i],t[i]),Lc(s[i],e[i])):null!=e[i]?s[i]=e[i]:delete s[i]);for(i in t)zc(t,i)&&!zc(e,i)&&Ic(t[i])&&(s[i]=Lc({},s[i]));return s}function tu(t){null!=t&&this.set(t)}function eu(t,e,i){var s=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-s.length)).toString().substr(1)+s}Mc.suppressDeprecationWarnings=!1,Mc.deprecationHandler=null,Zc=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)zc(t,e)&&i.push(e);return i};var iu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,su=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ru={},ou={};function nu(t,e,i,s){var r=s;"string"==typeof s&&(r=function(){return this[s]()}),t&&(ou[t]=r),e&&(ou[e[0]]=function(){return eu(r.apply(this,arguments),e[1],e[2])}),i&&(ou[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function au(t,e){return t.isValid()?(e=lu(e,t.localeData()),ru[e]=ru[e]||function(t){var e,i,s,r=t.match(iu);for(e=0,i=r.length;e<i;e++)r[e]=ou[r[e]]?ou[r[e]]:(s=r[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,o="";for(s=0;s<i;s++)o+=Jc(r[s])?r[s].call(e,t):r[s];return o}}(e),ru[e](t)):t.localeData().invalidDate()}function lu(t,e){var i=5;function s(t){return e.longDateFormat(t)||t}for(su.lastIndex=0;i>=0&&su.test(t);)t=t.replace(su,s),su.lastIndex=0,i-=1;return t}var hu={};function du(t,e){var i=t.toLowerCase();hu[i]=hu[i+"s"]=hu[e]=t}function cu(t){return"string"==typeof t?hu[t]||hu[t.toLowerCase()]:void 0}function uu(t){var e,i,s={};for(i in t)zc(t,i)&&(e=cu(i))&&(s[e]=t[i]);return s}var pu={};function mu(t,e){pu[t]=e}function vu(t){return t%4==0&&t%100!=0||t%400==0}function fu(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function gu(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=fu(e)),i}function bu(t,e){return function(i){return null!=i?(wu(this,t,i),Mc.updateOffset(this,e),this):yu(this,t)}}function yu(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function wu(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&vu(t.year())&&1===t.month()&&29===t.date()?(i=gu(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),ep(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var _u,xu=/\d/,ku=/\d\d/,Cu=/\d{3}/,Su=/\d{4}/,Eu=/[+-]?\d{6}/,Au=/\d\d?/,Mu=/\d\d\d\d?/,Du=/\d\d\d\d\d\d?/,Iu=/\d{1,3}/,zu=/\d{1,4}/,Tu=/[+-]?\d{1,6}/,Nu=/\d+/,Pu=/[+-]?\d+/,Fu=/Z|[+-]\d\d:?\d\d/gi,Ou=/Z|[+-]\d\d(?::?\d\d)?/gi,Lu=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Bu(t,e,i){_u[t]=Jc(e)?e:function(t){return t&&i?i:e}}function ju(t,e){return zc(_u,t)?_u[t](e._strict,e._locale):new RegExp(Yu(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,s,r){return e||i||s||r}))))}function Yu(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_u={};var $u={};function Ru(t,e){var i,s,r=e;for("string"==typeof t&&(t=[t]),Pc(e)&&(r=function(t,i){i[e]=gu(t)}),s=t.length,i=0;i<s;i++)$u[t[i]]=r}function Vu(t,e){Ru(t,(function(t,i,s,r){s._w=s._w||{},e(t,s._w,s,r)}))}function Hu(t,e,i){null!=e&&zc($u,t)&&$u[t](e,i._a,i,t)}var qu,Wu=0,Gu=1,Uu=2,Zu=3,Ku=4,Qu=5,Ju=6,Xu=7,tp=8;function ep(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?vu(t)?29:28:31-i%7%2}qu=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},nu("M",["MM",2],"Mo",(function(){return this.month()+1})),nu("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),nu("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),du("month","M"),mu("month",8),Bu("M",Au),Bu("MM",Au,ku),Bu("MMM",(function(t,e){return e.monthsShortRegex(t)})),Bu("MMMM",(function(t,e){return e.monthsRegex(t)})),Ru(["M","MM"],(function(t,e){e[Gu]=gu(t)-1})),Ru(["MMM","MMMM"],(function(t,e,i,s){var r=i._locale.monthsParse(t,s,i._strict);null!=r?e[Gu]=r:jc(i).invalidMonth=t}));var ip="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),sp="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rp=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,op=Lu,np=Lu;function ap(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=Bc([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=qu.call(this._shortMonthsParse,n))?r:null:-1!==(r=qu.call(this._longMonthsParse,n))?r:null:"MMM"===e?-1!==(r=qu.call(this._shortMonthsParse,n))||-1!==(r=qu.call(this._longMonthsParse,n))?r:null:-1!==(r=qu.call(this._longMonthsParse,n))||-1!==(r=qu.call(this._shortMonthsParse,n))?r:null}function lp(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=gu(e);else if(!Pc(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),ep(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function hp(t){return null!=t?(lp(this,t),Mc.updateOffset(this,!0),this):yu(this,"Month")}function dp(){function t(t,e){return e.length-t.length}var e,i,s=[],r=[],o=[];for(e=0;e<12;e++)i=Bc([2e3,e]),s.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(s.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)s[e]=Yu(s[e]),r[e]=Yu(r[e]);for(e=0;e<24;e++)o[e]=Yu(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function cp(t){return vu(t)?366:365}nu("Y",0,0,(function(){var t=this.year();return t<=9999?eu(t,4):"+"+t})),nu(0,["YY",2],0,(function(){return this.year()%100})),nu(0,["YYYY",4],0,"year"),nu(0,["YYYYY",5],0,"year"),nu(0,["YYYYYY",6,!0],0,"year"),du("year","y"),mu("year",1),Bu("Y",Pu),Bu("YY",Au,ku),Bu("YYYY",zu,Su),Bu("YYYYY",Tu,Eu),Bu("YYYYYY",Tu,Eu),Ru(["YYYYY","YYYYYY"],Wu),Ru("YYYY",(function(t,e){e[Wu]=2===t.length?Mc.parseTwoDigitYear(t):gu(t)})),Ru("YY",(function(t,e){e[Wu]=Mc.parseTwoDigitYear(t)})),Ru("Y",(function(t,e){e[Wu]=parseInt(t,10)})),Mc.parseTwoDigitYear=function(t){return gu(t)+(gu(t)>68?1900:2e3)};var up=bu("FullYear",!0);function pp(t,e,i,s,r,o,n){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,s,r,o,n),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,s,r,o,n),a}function mp(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function vp(t,e,i){var s=7+e-i;return-(7+mp(t,0,s).getUTCDay()-e)%7+s-1}function fp(t,e,i,s,r){var o,n,a=1+7*(e-1)+(7+i-s)%7+vp(t,s,r);return a<=0?n=cp(o=t-1)+a:a>cp(t)?(o=t+1,n=a-cp(t)):(o=t,n=a),{year:o,dayOfYear:n}}function gp(t,e,i){var s,r,o=vp(t.year(),e,i),n=Math.floor((t.dayOfYear()-o-1)/7)+1;return n<1?s=n+bp(r=t.year()-1,e,i):n>bp(t.year(),e,i)?(s=n-bp(t.year(),e,i),r=t.year()+1):(r=t.year(),s=n),{week:s,year:r}}function bp(t,e,i){var s=vp(t,e,i),r=vp(t+1,e,i);return(cp(t)-s+r)/7}function yp(t,e){return t.slice(e,7).concat(t.slice(0,e))}nu("w",["ww",2],"wo","week"),nu("W",["WW",2],"Wo","isoWeek"),du("week","w"),du("isoWeek","W"),mu("week",5),mu("isoWeek",5),Bu("w",Au),Bu("ww",Au,ku),Bu("W",Au),Bu("WW",Au,ku),Vu(["w","ww","W","WW"],(function(t,e,i,s){e[s.substr(0,1)]=gu(t)})),nu("d",0,"do","day"),nu("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),nu("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),nu("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),nu("e",0,0,"weekday"),nu("E",0,0,"isoWeekday"),du("day","d"),du("weekday","e"),du("isoWeekday","E"),mu("day",11),mu("weekday",11),mu("isoWeekday",11),Bu("d",Au),Bu("e",Au),Bu("E",Au),Bu("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Bu("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Bu("dddd",(function(t,e){return e.weekdaysRegex(t)})),Vu(["dd","ddd","dddd"],(function(t,e,i,s){var r=i._locale.weekdaysParse(t,s,i._strict);null!=r?e.d=r:jc(i).invalidWeekday=t})),Vu(["d","e","E"],(function(t,e,i,s){e[s]=gu(t)}));var wp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_p="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kp=Lu,Cp=Lu,Sp=Lu;function Ep(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=Bc([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=qu.call(this._weekdaysParse,n))?r:null:"ddd"===e?-1!==(r=qu.call(this._shortWeekdaysParse,n))?r:null:-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:"dddd"===e?-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._shortWeekdaysParse,n))||-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:"ddd"===e?-1!==(r=qu.call(this._shortWeekdaysParse,n))||-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:-1!==(r=qu.call(this._minWeekdaysParse,n))||-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._shortWeekdaysParse,n))?r:null}function Ap(){function t(t,e){return e.length-t.length}var e,i,s,r,o,n=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=Bc([2e3,1]).day(e),s=Yu(this.weekdaysMin(i,"")),r=Yu(this.weekdaysShort(i,"")),o=Yu(this.weekdays(i,"")),n.push(s),a.push(r),l.push(o),h.push(s),h.push(r),h.push(o);n.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Mp(){return this.hours()%12||12}function Dp(t,e){nu(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Ip(t,e){return e._meridiemParse}nu("H",["HH",2],0,"hour"),nu("h",["hh",2],0,Mp),nu("k",["kk",2],0,(function(){return this.hours()||24})),nu("hmm",0,0,(function(){return""+Mp.apply(this)+eu(this.minutes(),2)})),nu("hmmss",0,0,(function(){return""+Mp.apply(this)+eu(this.minutes(),2)+eu(this.seconds(),2)})),nu("Hmm",0,0,(function(){return""+this.hours()+eu(this.minutes(),2)})),nu("Hmmss",0,0,(function(){return""+this.hours()+eu(this.minutes(),2)+eu(this.seconds(),2)})),Dp("a",!0),Dp("A",!1),du("hour","h"),mu("hour",13),Bu("a",Ip),Bu("A",Ip),Bu("H",Au),Bu("h",Au),Bu("k",Au),Bu("HH",Au,ku),Bu("hh",Au,ku),Bu("kk",Au,ku),Bu("hmm",Mu),Bu("hmmss",Du),Bu("Hmm",Mu),Bu("Hmmss",Du),Ru(["H","HH"],Zu),Ru(["k","kk"],(function(t,e){var i=gu(t);e[Zu]=24===i?0:i})),Ru(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Ru(["h","hh"],(function(t,e,i){e[Zu]=gu(t),jc(i).bigHour=!0})),Ru("hmm",(function(t,e,i){var s=t.length-2;e[Zu]=gu(t.substr(0,s)),e[Ku]=gu(t.substr(s)),jc(i).bigHour=!0})),Ru("hmmss",(function(t,e,i){var s=t.length-4,r=t.length-2;e[Zu]=gu(t.substr(0,s)),e[Ku]=gu(t.substr(s,2)),e[Qu]=gu(t.substr(r)),jc(i).bigHour=!0})),Ru("Hmm",(function(t,e){var i=t.length-2;e[Zu]=gu(t.substr(0,i)),e[Ku]=gu(t.substr(i))})),Ru("Hmmss",(function(t,e){var i=t.length-4,s=t.length-2;e[Zu]=gu(t.substr(0,i)),e[Ku]=gu(t.substr(i,2)),e[Qu]=gu(t.substr(s))}));var zp,Tp=bu("Hours",!0),Np={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ip,monthsShort:sp,week:{dow:0,doy:6},weekdays:wp,weekdaysMin:xp,weekdaysShort:_p,meridiemParse:/[ap]\.?m?\.?/i},Pp={},Fp={};function Op(t,e){var i,s=Math.min(t.length,e.length);for(i=0;i<s;i+=1)if(t[i]!==e[i])return i;return s}function Lp(t){return t?t.toLowerCase().replace("_","-"):t}function Bp(t){var e=null;if(void 0===Pp[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=zp._abbr,require("./locale/"+t),jp(e)}catch(e){Pp[t]=null}return Pp[t]}function jp(t,e){var i;return t&&((i=Nc(e)?$p(t):Yp(t,e))?zp=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),zp._abbr}function Yp(t,e){if(null!==e){var i,s=Np;if(e.abbr=t,null!=Pp[t])Qc("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Pp[t]._config;else if(null!=e.parentLocale)if(null!=Pp[e.parentLocale])s=Pp[e.parentLocale]._config;else{if(null==(i=Bp(e.parentLocale)))return Fp[e.parentLocale]||(Fp[e.parentLocale]=[]),Fp[e.parentLocale].push({name:t,config:e}),null;s=i._config}return Pp[t]=new tu(Xc(s,e)),Fp[t]&&Fp[t].forEach((function(t){Yp(t.name,t.config)})),jp(t),Pp[t]}return delete Pp[t],null}function $p(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return zp;if(!Dc(t)){if(e=Bp(t))return e;t=[t]}return function(t){for(var e,i,s,r,o=0;o<t.length;){for(e=(r=Lp(t[o]).split("-")).length,i=(i=Lp(t[o+1]))?i.split("-"):null;e>0;){if(s=Bp(r.slice(0,e).join("-")))return s;if(i&&i.length>=e&&Op(r,i)>=e-1)break;e--}o++}return zp}(t)}function Rp(t){var e,i=t._a;return i&&-2===jc(t).overflow&&(e=i[Gu]<0||i[Gu]>11?Gu:i[Uu]<1||i[Uu]>ep(i[Wu],i[Gu])?Uu:i[Zu]<0||i[Zu]>24||24===i[Zu]&&(0!==i[Ku]||0!==i[Qu]||0!==i[Ju])?Zu:i[Ku]<0||i[Ku]>59?Ku:i[Qu]<0||i[Qu]>59?Qu:i[Ju]<0||i[Ju]>999?Ju:-1,jc(t)._overflowDayOfYear&&(e<Wu||e>Uu)&&(e=Uu),jc(t)._overflowWeeks&&-1===e&&(e=Xu),jc(t)._overflowWeekday&&-1===e&&(e=tp),jc(t).overflow=e),t}var Vp=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hp=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qp=/Z|[+-]\d\d(?::?\d\d)?/,Wp=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Gp=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Up=/^\/?Date\((-?\d+)/i,Zp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Qp(t){var e,i,s,r,o,n,a=t._i,l=Vp.exec(a)||Hp.exec(a),h=Wp.length,d=Gp.length;if(l){for(jc(t).iso=!0,e=0,i=h;e<i;e++)if(Wp[e][1].exec(l[1])){r=Wp[e][0],s=!1!==Wp[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=d;e<i;e++)if(Gp[e][1].exec(l[3])){o=(l[2]||" ")+Gp[e][0];break}if(null==o)return void(t._isValid=!1)}if(!s&&null!=o)return void(t._isValid=!1);if(l[4]){if(!qp.exec(l[4]))return void(t._isValid=!1);n="Z"}t._f=r+(o||"")+(n||""),em(t)}else t._isValid=!1}function Jp(t){var e,i,s,r,o,n,a,l,h,d=Zp.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],s=d[2],r=d[5],o=d[6],n=d[7],a=[(l=d[4],h=parseInt(l,10),h<=49?2e3+h:h<=999?1900+h:h),sp.indexOf(i),parseInt(s,10),parseInt(r,10),parseInt(o,10)],n&&a.push(parseInt(n,10)),!function(t,e,i){return!t||_p.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(jc(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=a,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Kp[t];if(e)return 0;var s=parseInt(i,10),r=s%100;return(s-r)/100*60+r}(d[8],d[9],d[10]),t._d=mp.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),jc(t).rfc2822=!0}else t._isValid=!1}function Xp(t,e,i){return null!=t?t:null!=e?e:i}function tm(t){var e,i,s,r,o,n=[];if(!t._d){for(s=function(t){var e=new Date(Mc.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Uu]&&null==t._a[Gu]&&function(t){var e,i,s,r,o,n,a,l,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,n=4,i=Xp(e.GG,t._a[Wu],gp(rm(),1,4).year),s=Xp(e.W,1),((r=Xp(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,n=t._locale._week.doy,h=gp(rm(),o,n),i=Xp(e.gg,t._a[Wu],h.year),s=Xp(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),s<1||s>bp(i,o,n)?jc(t)._overflowWeeks=!0:null!=l?jc(t)._overflowWeekday=!0:(a=fp(i,s,r,o,n),t._a[Wu]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=Xp(t._a[Wu],s[Wu]),(t._dayOfYear>cp(o)||0===t._dayOfYear)&&(jc(t)._overflowDayOfYear=!0),i=mp(o,0,t._dayOfYear),t._a[Gu]=i.getUTCMonth(),t._a[Uu]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=s[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Zu]&&0===t._a[Ku]&&0===t._a[Qu]&&0===t._a[Ju]&&(t._nextDay=!0,t._a[Zu]=0),t._d=(t._useUTC?mp:pp).apply(null,n),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Zu]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(jc(t).weekdayMismatch=!0)}}function em(t){if(t._f!==Mc.ISO_8601)if(t._f!==Mc.RFC_2822){t._a=[],jc(t).empty=!0;var e,i,s,r,o,n,a,l=""+t._i,h=l.length,d=0;for(a=(s=lu(t._f,t._locale).match(iu)||[]).length,e=0;e<a;e++)(i=(l.match(ju(r=s[e],t))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&jc(t).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),d+=i.length),ou[r]?(i?jc(t).empty=!1:jc(t).unusedTokens.push(r),Hu(r,i,t)):t._strict&&!i&&jc(t).unusedTokens.push(r);jc(t).charsLeftOver=h-d,l.length>0&&jc(t).unusedInput.push(l),t._a[Zu]<=12&&!0===jc(t).bigHour&&t._a[Zu]>0&&(jc(t).bigHour=void 0),jc(t).parsedDateParts=t._a.slice(0),jc(t).meridiem=t._meridiem,t._a[Zu]=function(t,e,i){var s;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((s=t.isPM(i))&&e<12&&(e+=12),s||12!==e||(e=0),e):e}(t._locale,t._a[Zu],t._meridiem),null!==(n=jc(t).era)&&(t._a[Wu]=t._locale.erasConvertYear(n,t._a[Wu])),tm(t),Rp(t)}else Jp(t);else Qp(t)}function im(t){var e=t._i,i=t._f;return t._locale=t._locale||$p(t._l),null===e||void 0===i&&""===e?$c({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),Wc(e)?new qc(Rp(e)):(Fc(e)?t._d=e:Dc(i)?function(t){var e,i,s,r,o,n,a=!1,l=t._f.length;if(0===l)return jc(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,n=!1,e=Hc({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],em(e),Yc(e)&&(n=!0),o+=jc(e).charsLeftOver,o+=10*jc(e).unusedTokens.length,jc(e).score=o,a?o<s&&(s=o,i=e):(null==s||o<s||n)&&(s=o,i=e,n&&(a=!0));Lc(t,i||e)}(t):i?em(t):function(t){var e=t._i;Nc(e)?t._d=new Date(Mc.now()):Fc(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Up.exec(t._i);null===e?(Qp(t),!1===t._isValid&&(delete t._isValid,Jp(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:Mc.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):Dc(e)?(t._a=Oc(e.slice(0),(function(t){return parseInt(t,10)})),tm(t)):Ic(e)?function(t){if(!t._d){var e=uu(t._i);t._a=Oc([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),tm(t)}}(t):Pc(e)?t._d=new Date(e):Mc.createFromInputFallback(t)}(t),Yc(t)||(t._d=null),t))}function sm(t,e,i,s,r){var o,n={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(Ic(t)&&Tc(t)||Dc(t)&&0===t.length)&&(t=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=i,n._i=t,n._f=e,n._strict=s,(o=new qc(Rp(im(n))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function rm(t,e,i,s){return sm(t,e,i,s,!1)}Mc.createFromInputFallback=Uc("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),Mc.ISO_8601=function(){},Mc.RFC_2822=function(){};var om=Uc("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=rm.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:$c()})),nm=Uc("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=rm.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:$c()}));function am(t,e){var i,s;if(1===e.length&&Dc(e[0])&&(e=e[0]),!e.length)return rm();for(i=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](i)||(i=e[s]);return i}var lm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hm(t){var e=uu(t),i=e.year||0,s=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,n=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,s=!1,r=lm.length;for(e in t)if(zc(t,e)&&(-1===qu.call(lm,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[lm[i]]){if(s)return!1;parseFloat(t[lm[i]])!==gu(t[lm[i]])&&(s=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*l+1e3*a*60*60,this._days=+n+7*o,this._months=+r+3*s+12*i,this._data={},this._locale=$p(),this._bubble()}function dm(t){return t instanceof hm}function cm(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function um(t,e){nu(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+eu(~~(t/60),2)+e+eu(~~t%60,2)}))}um("Z",":"),um("ZZ",""),Bu("Z",Ou),Bu("ZZ",Ou),Ru(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=mm(Ou,t)}));var pm=/([\+\-]|\d\d)/gi;function mm(t,e){var i,s,r=(e||"").match(t);return null===r?null:0===(s=60*(i=((r[r.length-1]||[])+"").match(pm)||["-",0,0])[1]+gu(i[2]))?0:"+"===i[0]?s:-s}function vm(t,e){var i,s;return e._isUTC?(i=e.clone(),s=(Wc(t)||Fc(t)?t.valueOf():rm(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),Mc.updateOffset(i,!1),i):rm(t).local()}function fm(t){return-Math.round(t._d.getTimezoneOffset())}function gm(){return!!this.isValid()&&this._isUTC&&0===this._offset}Mc.updateOffset=function(){};var bm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ym=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wm(t,e){var i,s,r,o,n,a,l=t,h=null;return dm(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:Pc(t)||!isNaN(+t)?(l={},e?l[e]=+t:l.milliseconds=+t):(h=bm.exec(t))?(i="-"===h[1]?-1:1,l={y:0,d:gu(h[Uu])*i,h:gu(h[Zu])*i,m:gu(h[Ku])*i,s:gu(h[Qu])*i,ms:gu(cm(1e3*h[Ju]))*i}):(h=ym.exec(t))?l={y:_m(h[2],i="-"===h[1]?-1:1),M:_m(h[3],i),w:_m(h[4],i),d:_m(h[5],i),h:_m(h[6],i),m:_m(h[7],i),s:_m(h[8],i)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=rm(l.from),n=rm(l.to),r=o.isValid()&&n.isValid()?(n=vm(n,o),o.isBefore(n)?a=xm(o,n):((a=xm(n,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=r.milliseconds,l.M=r.months),s=new hm(l),dm(t)&&zc(t,"_locale")&&(s._locale=t._locale),dm(t)&&zc(t,"_isValid")&&(s._isValid=t._isValid),s}function _m(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function xm(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function km(t,e){return function(i,s){var r;return null===s||isNaN(+s)||(Qc(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=s,s=r),Cm(this,wm(i,s),t),this}}function Cm(t,e,i,s){var r=e._milliseconds,o=cm(e._days),n=cm(e._months);t.isValid()&&(s=null==s||s,n&&lp(t,yu(t,"Month")+n*i),o&&wu(t,"Date",yu(t,"Date")+o*i),r&&t._d.setTime(t._d.valueOf()+r*i),s&&Mc.updateOffset(t,o||n))}wm.fn=hm.prototype,wm.invalid=function(){return wm(NaN)};var Sm=km(1,"add"),Em=km(-1,"subtract");function Am(t){return"string"==typeof t||t instanceof String}function Mm(t,e){if(t.date()<e.date())return-Mm(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return-(i+(e-s<0?(e-s)/(s-t.clone().add(i-1,"months")):(e-s)/(t.clone().add(i+1,"months")-s)))||0}function Dm(t){var e;return void 0===t?this._locale._abbr:(null!=(e=$p(t))&&(this._locale=e),this)}Mc.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Mc.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Im=Uc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function zm(){return this._locale}var Tm=1e3,Nm=6e4,Pm=36e5,Fm=126227808e5;function Om(t,e){return(t%e+e)%e}function Lm(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Fm:new Date(t,e,i).valueOf()}function Bm(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Fm:Date.UTC(t,e,i)}function jm(t,e){return e.erasAbbrRegex(t)}function Ym(){var t,e,i=[],s=[],r=[],o=[],n=this.eras();for(t=0,e=n.length;t<e;++t)s.push(Yu(n[t].name)),i.push(Yu(n[t].abbr)),r.push(Yu(n[t].narrow)),o.push(Yu(n[t].name)),o.push(Yu(n[t].abbr)),o.push(Yu(n[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function $m(t,e){nu(0,[t,t.length],0,e)}function Rm(t,e,i,s,r){var o;return null==t?gp(this,s,r).year:(e>(o=bp(t,s,r))&&(e=o),Vm.call(this,t,e,i,s,r))}function Vm(t,e,i,s,r){var o=fp(t,e,i,s,r),n=mp(o.year,0,o.dayOfYear);return this.year(n.getUTCFullYear()),this.month(n.getUTCMonth()),this.date(n.getUTCDate()),this}nu("N",0,0,"eraAbbr"),nu("NN",0,0,"eraAbbr"),nu("NNN",0,0,"eraAbbr"),nu("NNNN",0,0,"eraName"),nu("NNNNN",0,0,"eraNarrow"),nu("y",["y",1],"yo","eraYear"),nu("y",["yy",2],0,"eraYear"),nu("y",["yyy",3],0,"eraYear"),nu("y",["yyyy",4],0,"eraYear"),Bu("N",jm),Bu("NN",jm),Bu("NNN",jm),Bu("NNNN",(function(t,e){return e.erasNameRegex(t)})),Bu("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Ru(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,s){var r=i._locale.erasParse(t,s,i._strict);r?jc(i).era=r:jc(i).invalidEra=t})),Bu("y",Nu),Bu("yy",Nu),Bu("yyy",Nu),Bu("yyyy",Nu),Bu("yo",(function(t,e){return e._eraYearOrdinalRegex||Nu})),Ru(["y","yy","yyy","yyyy"],Wu),Ru(["yo"],(function(t,e,i){var s;i._locale._eraYearOrdinalRegex&&(s=t.match(i._locale._eraYearOrdinalRegex)),e[Wu]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,s):parseInt(t,10)})),nu(0,["gg",2],0,(function(){return this.weekYear()%100})),nu(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$m("gggg","weekYear"),$m("ggggg","weekYear"),$m("GGGG","isoWeekYear"),$m("GGGGG","isoWeekYear"),du("weekYear","gg"),du("isoWeekYear","GG"),mu("weekYear",1),mu("isoWeekYear",1),Bu("G",Pu),Bu("g",Pu),Bu("GG",Au,ku),Bu("gg",Au,ku),Bu("GGGG",zu,Su),Bu("gggg",zu,Su),Bu("GGGGG",Tu,Eu),Bu("ggggg",Tu,Eu),Vu(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,s){e[s.substr(0,2)]=gu(t)})),Vu(["gg","GG"],(function(t,e,i,s){e[s]=Mc.parseTwoDigitYear(t)})),nu("Q",0,"Qo","quarter"),du("quarter","Q"),mu("quarter",7),Bu("Q",xu),Ru("Q",(function(t,e){e[Gu]=3*(gu(t)-1)})),nu("D",["DD",2],"Do","date"),du("date","D"),mu("date",9),Bu("D",Au),Bu("DD",Au,ku),Bu("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ru(["D","DD"],Uu),Ru("Do",(function(t,e){e[Uu]=gu(t.match(Au)[0])}));var Hm=bu("Date",!0);nu("DDD",["DDDD",3],"DDDo","dayOfYear"),du("dayOfYear","DDD"),mu("dayOfYear",4),Bu("DDD",Iu),Bu("DDDD",Cu),Ru(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=gu(t)})),nu("m",["mm",2],0,"minute"),du("minute","m"),mu("minute",14),Bu("m",Au),Bu("mm",Au,ku),Ru(["m","mm"],Ku);var qm=bu("Minutes",!1);nu("s",["ss",2],0,"second"),du("second","s"),mu("second",15),Bu("s",Au),Bu("ss",Au,ku),Ru(["s","ss"],Qu);var Wm,Gm,Um=bu("Seconds",!1);for(nu("S",0,0,(function(){return~~(this.millisecond()/100)})),nu(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),nu(0,["SSS",3],0,"millisecond"),nu(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),nu(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),nu(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),nu(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),nu(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),nu(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),du("millisecond","ms"),mu("millisecond",16),Bu("S",Iu,xu),Bu("SS",Iu,ku),Bu("SSS",Iu,Cu),Wm="SSSS";Wm.length<=9;Wm+="S")Bu(Wm,Nu);function Zm(t,e){e[Ju]=gu(1e3*("0."+t))}for(Wm="S";Wm.length<=9;Wm+="S")Ru(Wm,Zm);Gm=bu("Milliseconds",!1),nu("z",0,0,"zoneAbbr"),nu("zz",0,0,"zoneName");var Km=qc.prototype;function Qm(t){return t}Km.add=Sm,Km.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?Wc(i=arguments[0])||Fc(i)||Am(i)||Pc(i)||function(t){var e=Dc(t),i=!1;return e&&(i=0===t.filter((function(e){return!Pc(e)&&Am(t)})).length),e&&i}(i)||function(t){var e,i=Ic(t)&&!Tc(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(e=0;e<o;e+=1)s=s||zc(t,r[e]);return i&&s}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=Ic(t)&&!Tc(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)s=s||zc(t,r[e]);return i&&s}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var s=t||rm(),r=vm(s,this).startOf("day"),o=Mc.calendarFormat(this,r)||"sameElse",n=e&&(Jc(e[o])?e[o].call(this,s):e[o]);return this.format(n||this.localeData().calendar(o,this,rm(s)))},Km.clone=function(){return new qc(this)},Km.diff=function(t,e,i){var s,r,o;if(!this.isValid())return NaN;if(!(s=vm(t,this)).isValid())return NaN;switch(r=6e4*(s.utcOffset()-this.utcOffset()),e=cu(e)){case"year":o=Mm(this,s)/12;break;case"month":o=Mm(this,s);break;case"quarter":o=Mm(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-r)/864e5;break;case"week":o=(this-s-r)/6048e5;break;default:o=this-s}return i?o:fu(o)},Km.endOf=function(t){var e,i;if(void 0===(t=cu(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Bm:Lm,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Pm-Om(e+(this._isUTC?0:this.utcOffset()*Nm),Pm)-1;break;case"minute":e=this._d.valueOf(),e+=Nm-Om(e,Nm)-1;break;case"second":e=this._d.valueOf(),e+=Tm-Om(e,Tm)-1}return this._d.setTime(e),Mc.updateOffset(this,!0),this},Km.format=function(t){t||(t=this.isUtc()?Mc.defaultFormatUtc:Mc.defaultFormat);var e=au(this,t);return this.localeData().postformat(e)},Km.from=function(t,e){return this.isValid()&&(Wc(t)&&t.isValid()||rm(t).isValid())?wm({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Km.fromNow=function(t){return this.from(rm(),t)},Km.to=function(t,e){return this.isValid()&&(Wc(t)&&t.isValid()||rm(t).isValid())?wm({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Km.toNow=function(t){return this.to(rm(),t)},Km.get=function(t){return Jc(this[t=cu(t)])?this[t]():this},Km.invalidAt=function(){return jc(this).overflow},Km.isAfter=function(t,e){var i=Wc(t)?t:rm(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Km.isBefore=function(t,e){var i=Wc(t)?t:rm(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Km.isBetween=function(t,e,i,s){var r=Wc(t)?t:rm(t),o=Wc(e)?e:rm(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(s=s||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===s[1]?this.isBefore(o,i):!this.isAfter(o,i))},Km.isSame=function(t,e){var i,s=Wc(t)?t:rm(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()===s.valueOf():(i=s.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Km.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Km.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Km.isValid=function(){return Yc(this)},Km.lang=Im,Km.locale=Dm,Km.localeData=zm,Km.max=nm,Km.min=om,Km.parsingFlags=function(){return Lc({},jc(this))},Km.set=function(t,e){if("object"==typeof t){var i,s=function(t){var e,i=[];for(e in t)zc(t,e)&&i.push({unit:e,priority:pu[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=uu(t)),r=s.length;for(i=0;i<r;i++)this[s[i].unit](t[s[i].unit])}else if(Jc(this[t=cu(t)]))return this[t](e);return this},Km.startOf=function(t){var e,i;if(void 0===(t=cu(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Bm:Lm,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Om(e+(this._isUTC?0:this.utcOffset()*Nm),Pm);break;case"minute":e=this._d.valueOf(),e-=Om(e,Nm);break;case"second":e=this._d.valueOf(),e-=Om(e,Tm)}return this._d.setTime(e),Mc.updateOffset(this,!0),this},Km.subtract=Em,Km.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Km.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Km.toDate=function(){return new Date(this.valueOf())},Km.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?au(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jc(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",au(i,"Z")):au(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Km.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+s+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Km[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Km.toJSON=function(){return this.isValid()?this.toISOString():null},Km.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Km.unix=function(){return Math.floor(this.valueOf()/1e3)},Km.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Km.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Km.eraName=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].name;if(s[t].until<=i&&i<=s[t].since)return s[t].name}return""},Km.eraNarrow=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].narrow;if(s[t].until<=i&&i<=s[t].since)return s[t].narrow}return""},Km.eraAbbr=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].abbr;if(s[t].until<=i&&i<=s[t].since)return s[t].abbr}return""},Km.eraYear=function(){var t,e,i,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return(this.year()-Mc(r[t].since).year())*i+r[t].offset;return this.year()},Km.year=up,Km.isLeapYear=function(){return vu(this.year())},Km.weekYear=function(t){return Rm.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Km.isoWeekYear=function(t){return Rm.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Km.quarter=Km.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Km.month=hp,Km.daysInMonth=function(){return ep(this.year(),this.month())},Km.week=Km.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Km.isoWeek=Km.isoWeeks=function(t){var e=gp(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Km.weeksInYear=function(){var t=this.localeData()._week;return bp(this.year(),t.dow,t.doy)},Km.weeksInWeekYear=function(){var t=this.localeData()._week;return bp(this.weekYear(),t.dow,t.doy)},Km.isoWeeksInYear=function(){return bp(this.year(),1,4)},Km.isoWeeksInISOWeekYear=function(){return bp(this.isoWeekYear(),1,4)},Km.date=Hm,Km.day=Km.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Km.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Km.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Km.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Km.hour=Km.hours=Tp,Km.minute=Km.minutes=qm,Km.second=Km.seconds=Um,Km.millisecond=Km.milliseconds=Gm,Km.utcOffset=function(t,e,i){var s,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=mm(Ou,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(s=fm(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?Cm(this,wm(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Mc.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:fm(this)},Km.utc=function(t){return this.utcOffset(0,t)},Km.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fm(this),"m")),this},Km.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=mm(Fu,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Km.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?rm(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Km.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Km.isLocal=function(){return!!this.isValid()&&!this._isUTC},Km.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Km.isUtc=gm,Km.isUTC=gm,Km.zoneAbbr=function(){return this._isUTC?"UTC":""},Km.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Km.dates=Uc("dates accessor is deprecated. Use date instead.",Hm),Km.months=Uc("months accessor is deprecated. Use month instead",hp),Km.years=Uc("years accessor is deprecated. Use year instead",up),Km.zone=Uc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Km.isDSTShifted=Uc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!Nc(this._isDSTShifted))return this._isDSTShifted;var t,e={};return Hc(e,this),(e=im(e))._a?(t=e._isUTC?Bc(e._a):rm(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<s;i++)gu(t[i])!==gu(e[i])&&o++;return o+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Jm=tu.prototype;function Xm(t,e,i,s){var r=$p(),o=Bc().set(s,e);return r[i](o,t)}function tv(t,e,i){if(Pc(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xm(t,e,i,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Xm(t,s,i,"month");return r}function ev(t,e,i,s){"boolean"==typeof t?(Pc(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,Pc(e)&&(i=e,e=void 0),e=e||"");var r,o=$p(),n=t?o._week.dow:0,a=[];if(null!=i)return Xm(e,(i+n)%7,s,"day");for(r=0;r<7;r++)a[r]=Xm(e,(r+n)%7,s,"day");return a}Jm.calendar=function(t,e,i){var s=this._calendar[t]||this._calendar.sameElse;return Jc(s)?s.call(e,i):s},Jm.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(iu).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Jm.invalidDate=function(){return this._invalidDate},Jm.ordinal=function(t){return this._ordinal.replace("%d",t)},Jm.preparse=Qm,Jm.postformat=Qm,Jm.relativeTime=function(t,e,i,s){var r=this._relativeTime[i];return Jc(r)?r(t,e,i,s):r.replace(/%d/i,t)},Jm.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return Jc(i)?i(e):i.replace(/%s/i,e)},Jm.set=function(t){var e,i;for(i in t)zc(t,i)&&(Jc(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Jm.eras=function(){var t,e,i,s=this._eras||$p("en")._eras;for(t=0,e=s.length;t<e;++t)switch("string"==typeof s[t].since&&(i=Mc(s[t].since).startOf("day"),s[t].since=i.valueOf()),typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":i=Mc(s[t].until).startOf("day").valueOf(),s[t].until=i.valueOf()}return s},Jm.erasParse=function(t,e,i){var s,r,o,n,a,l=this.eras();for(t=t.toUpperCase(),s=0,r=l.length;s<r;++s)if(o=l[s].name.toUpperCase(),n=l[s].abbr.toUpperCase(),a=l[s].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(n===t)return l[s];break;case"NNNN":if(o===t)return l[s];break;case"NNNNN":if(a===t)return l[s]}else if([o,n,a].indexOf(t)>=0)return l[s]},Jm.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?Mc(t.since).year():Mc(t.since).year()+(e-t.offset)*i},Jm.erasAbbrRegex=function(t){return zc(this,"_erasAbbrRegex")||Ym.call(this),t?this._erasAbbrRegex:this._erasRegex},Jm.erasNameRegex=function(t){return zc(this,"_erasNameRegex")||Ym.call(this),t?this._erasNameRegex:this._erasRegex},Jm.erasNarrowRegex=function(t){return zc(this,"_erasNarrowRegex")||Ym.call(this),t?this._erasNarrowRegex:this._erasRegex},Jm.months=function(t,e){return t?Dc(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||rp).test(e)?"format":"standalone"][t.month()]:Dc(this._months)?this._months:this._months.standalone},Jm.monthsShort=function(t,e){return t?Dc(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[rp.test(e)?"format":"standalone"][t.month()]:Dc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Jm.monthsParse=function(t,e,i){var s,r,o;if(this._monthsParseExact)return ap.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=Bc([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(i&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!i&&this._monthsParse[s].test(t))return s}},Jm.monthsRegex=function(t){return this._monthsParseExact?(zc(this,"_monthsRegex")||dp.call(this),t?this._monthsStrictRegex:this._monthsRegex):(zc(this,"_monthsRegex")||(this._monthsRegex=np),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Jm.monthsShortRegex=function(t){return this._monthsParseExact?(zc(this,"_monthsRegex")||dp.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(zc(this,"_monthsShortRegex")||(this._monthsShortRegex=op),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Jm.week=function(t){return gp(t,this._week.dow,this._week.doy).week},Jm.firstDayOfYear=function(){return this._week.doy},Jm.firstDayOfWeek=function(){return this._week.dow},Jm.weekdays=function(t,e){var i=Dc(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?yp(i,this._week.dow):t?i[t.day()]:i},Jm.weekdaysMin=function(t){return!0===t?yp(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Jm.weekdaysShort=function(t){return!0===t?yp(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Jm.weekdaysParse=function(t,e,i){var s,r,o;if(this._weekdaysParseExact)return Ep.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=Bc([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(i&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(i&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!i&&this._weekdaysParse[s].test(t))return s}},Jm.weekdaysRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(zc(this,"_weekdaysRegex")||(this._weekdaysRegex=kp),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Jm.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(zc(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cp),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Jm.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(zc(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sp),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Jm.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Jm.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},jp("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===gu(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),Mc.lang=Uc("moment.lang is deprecated. Use moment.locale instead.",jp),Mc.langData=Uc("moment.langData is deprecated. Use moment.localeData instead.",$p);var iv=Math.abs;function sv(t,e,i,s){var r=wm(e,i);return t._milliseconds+=s*r._milliseconds,t._days+=s*r._days,t._months+=s*r._months,t._bubble()}function rv(t){return t<0?Math.floor(t):Math.ceil(t)}function ov(t){return 4800*t/146097}function nv(t){return 146097*t/4800}function av(t){return function(){return this.as(t)}}var lv=av("ms"),hv=av("s"),dv=av("m"),cv=av("h"),uv=av("d"),pv=av("w"),mv=av("M"),vv=av("Q"),fv=av("y");function gv(t){return function(){return this.isValid()?this._data[t]:NaN}}var bv=gv("milliseconds"),yv=gv("seconds"),wv=gv("minutes"),_v=gv("hours"),xv=gv("days"),kv=gv("months"),Cv=gv("years"),Sv=Math.round,Ev={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Av(t,e,i,s,r){return r.relativeTime(e||1,!!i,t,s)}var Mv=Math.abs;function Dv(t){return(t>0)-(t<0)||+t}function Iv(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,s,r,o,n,a,l=Mv(this._milliseconds)/1e3,h=Mv(this._days),d=Mv(this._months),c=this.asSeconds();return c?(t=fu(l/60),e=fu(t/60),l%=60,t%=60,i=fu(d/12),d%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",o=Dv(this._months)!==Dv(c)?"-":"",n=Dv(this._days)!==Dv(c)?"-":"",a=Dv(this._milliseconds)!==Dv(c)?"-":"",r+"P"+(i?o+i+"Y":"")+(d?o+d+"M":"")+(h?n+h+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+s+"S":"")):"P0D"}var zv=hm.prototype;zv.isValid=function(){return this._isValid},zv.abs=function(){var t=this._data;return this._milliseconds=iv(this._milliseconds),this._days=iv(this._days),this._months=iv(this._months),t.milliseconds=iv(t.milliseconds),t.seconds=iv(t.seconds),t.minutes=iv(t.minutes),t.hours=iv(t.hours),t.months=iv(t.months),t.years=iv(t.years),this},zv.add=function(t,e){return sv(this,t,e,1)},zv.subtract=function(t,e){return sv(this,t,e,-1)},zv.as=function(t){if(!this.isValid())return NaN;var e,i,s=this._milliseconds;if("month"===(t=cu(t))||"quarter"===t||"year"===t)switch(i=this._months+ov(e=this._days+s/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(nv(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},zv.asMilliseconds=lv,zv.asSeconds=hv,zv.asMinutes=dv,zv.asHours=cv,zv.asDays=uv,zv.asWeeks=pv,zv.asMonths=mv,zv.asQuarters=vv,zv.asYears=fv,zv.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*gu(this._months/12):NaN},zv._bubble=function(){var t,e,i,s,r,o=this._milliseconds,n=this._days,a=this._months,l=this._data;return o>=0&&n>=0&&a>=0||o<=0&&n<=0&&a<=0||(o+=864e5*rv(nv(a)+n),n=0,a=0),l.milliseconds=o%1e3,t=fu(o/1e3),l.seconds=t%60,e=fu(t/60),l.minutes=e%60,i=fu(e/60),l.hours=i%24,n+=fu(i/24),a+=r=fu(ov(n)),n-=rv(nv(r)),s=fu(a/12),a%=12,l.days=n,l.months=a,l.years=s,this},zv.clone=function(){return wm(this)},zv.get=function(t){return t=cu(t),this.isValid()?this[t+"s"]():NaN},zv.milliseconds=bv,zv.seconds=yv,zv.minutes=wv,zv.hours=_v,zv.days=xv,zv.weeks=function(){return fu(this.days()/7)},zv.months=kv,zv.years=Cv,zv.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,s,r=!1,o=Ev;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},Ev,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),s=function(t,e,i,s){var r=wm(t).abs(),o=Sv(r.as("s")),n=Sv(r.as("m")),a=Sv(r.as("h")),l=Sv(r.as("d")),h=Sv(r.as("M")),d=Sv(r.as("w")),c=Sv(r.as("y")),u=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||n<=1&&["m"]||n<i.m&&["mm",n]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(u=u||d<=1&&["w"]||d<i.w&&["ww",d]),(u=u||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,u[3]=+t>0,u[4]=s,Av.apply(null,u)}(this,!r,o,i=this.localeData()),r&&(s=i.pastFuture(+this,s)),i.postformat(s)},zv.toISOString=Iv,zv.toString=Iv,zv.toJSON=Iv,zv.locale=Dm,zv.localeData=zm,zv.toIsoString=Uc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Iv),zv.lang=Im,nu("X",0,0,"unix"),nu("x",0,0,"valueOf"),Bu("x",Pu),Bu("X",/[+-]?\d+(\.\d{1,3})?/),Ru("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Ru("x",(function(t,e,i){i._d=new Date(gu(t))})),
6663
+ var Ec,Ac;function Mc(){return Ec.apply(null,arguments)}function Dc(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function Ic(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function zc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Tc(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(zc(t,e))return!1;return!0}function Nc(t){return void 0===t}function Pc(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Oc(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function Fc(t,e){var i,s=[],r=t.length;for(i=0;i<r;++i)s.push(e(t[i],i));return s}function Lc(t,e){for(var i in e)zc(e,i)&&(t[i]=e[i]);return zc(e,"toString")&&(t.toString=e.toString),zc(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Bc(t,e,i,s){return sm(t,e,i,s,!0).utc()}function jc(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function Yc(t){if(null==t._isValid){var e=jc(t),i=Ac.call(e.parsedDateParts,(function(t){return null!=t})),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(s=s&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return s;t._isValid=s}return t._isValid}function $c(t){var e=Bc(NaN);return null!=t?Lc(jc(e),t):jc(e).userInvalidated=!0,e}Sc.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Ac=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),s=i.length>>>0;for(e=0;e<s;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var Rc=Mc.momentProperties=[],Vc=!1;function Hc(t,e){var i,s,r,o=Rc.length;if(Nc(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Nc(e._i)||(t._i=e._i),Nc(e._f)||(t._f=e._f),Nc(e._l)||(t._l=e._l),Nc(e._strict)||(t._strict=e._strict),Nc(e._tzm)||(t._tzm=e._tzm),Nc(e._isUTC)||(t._isUTC=e._isUTC),Nc(e._offset)||(t._offset=e._offset),Nc(e._pf)||(t._pf=jc(e)),Nc(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)Nc(r=e[s=Rc[i]])||(t[s]=r);return t}function qc(t){Hc(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Vc&&(Vc=!0,Mc.updateOffset(this),Vc=!1)}function Wc(t){return t instanceof qc||null!=t&&null!=t._isAMomentObject}function Gc(t){!1===Mc.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Uc(t,e){var i=!0;return Lc((function(){if(null!=Mc.deprecationHandler&&Mc.deprecationHandler(null,t),i){var s,r,o,n=[],a=arguments.length;for(r=0;r<a;r++){if(s="","object"==typeof arguments[r]){for(o in s+="\n["+r+"] ",arguments[0])zc(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[r];n.push(s)}Gc(t+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var Zc,Kc={};function Qc(t,e){null!=Mc.deprecationHandler&&Mc.deprecationHandler(t,e),Kc[t]||(Gc(e),Kc[t]=!0)}function Jc(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Xc(t,e){var i,s=Lc({},t);for(i in e)zc(e,i)&&(Ic(t[i])&&Ic(e[i])?(s[i]={},Lc(s[i],t[i]),Lc(s[i],e[i])):null!=e[i]?s[i]=e[i]:delete s[i]);for(i in t)zc(t,i)&&!zc(e,i)&&Ic(t[i])&&(s[i]=Lc({},s[i]));return s}function tu(t){null!=t&&this.set(t)}function eu(t,e,i){var s=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-s.length)).toString().substr(1)+s}Mc.suppressDeprecationWarnings=!1,Mc.deprecationHandler=null,Zc=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)zc(t,e)&&i.push(e);return i};var iu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,su=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ru={},ou={};function nu(t,e,i,s){var r=s;"string"==typeof s&&(r=function(){return this[s]()}),t&&(ou[t]=r),e&&(ou[e[0]]=function(){return eu(r.apply(this,arguments),e[1],e[2])}),i&&(ou[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function au(t,e){return t.isValid()?(e=lu(e,t.localeData()),ru[e]=ru[e]||function(t){var e,i,s,r=t.match(iu);for(e=0,i=r.length;e<i;e++)r[e]=ou[r[e]]?ou[r[e]]:(s=r[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,o="";for(s=0;s<i;s++)o+=Jc(r[s])?r[s].call(e,t):r[s];return o}}(e),ru[e](t)):t.localeData().invalidDate()}function lu(t,e){var i=5;function s(t){return e.longDateFormat(t)||t}for(su.lastIndex=0;i>=0&&su.test(t);)t=t.replace(su,s),su.lastIndex=0,i-=1;return t}var hu={};function du(t,e){var i=t.toLowerCase();hu[i]=hu[i+"s"]=hu[e]=t}function cu(t){return"string"==typeof t?hu[t]||hu[t.toLowerCase()]:void 0}function uu(t){var e,i,s={};for(i in t)zc(t,i)&&(e=cu(i))&&(s[e]=t[i]);return s}var pu={};function mu(t,e){pu[t]=e}function vu(t){return t%4==0&&t%100!=0||t%400==0}function fu(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function gu(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=fu(e)),i}function bu(t,e){return function(i){return null!=i?(wu(this,t,i),Mc.updateOffset(this,e),this):yu(this,t)}}function yu(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function wu(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&vu(t.year())&&1===t.month()&&29===t.date()?(i=gu(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),ep(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var _u,xu=/\d/,ku=/\d\d/,Cu=/\d{3}/,Su=/\d{4}/,Eu=/[+-]?\d{6}/,Au=/\d\d?/,Mu=/\d\d\d\d?/,Du=/\d\d\d\d\d\d?/,Iu=/\d{1,3}/,zu=/\d{1,4}/,Tu=/[+-]?\d{1,6}/,Nu=/\d+/,Pu=/[+-]?\d+/,Ou=/Z|[+-]\d\d:?\d\d/gi,Fu=/Z|[+-]\d\d(?::?\d\d)?/gi,Lu=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Bu(t,e,i){_u[t]=Jc(e)?e:function(t){return t&&i?i:e}}function ju(t,e){return zc(_u,t)?_u[t](e._strict,e._locale):new RegExp(Yu(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,s,r){return e||i||s||r}))))}function Yu(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_u={};var $u={};function Ru(t,e){var i,s,r=e;for("string"==typeof t&&(t=[t]),Pc(e)&&(r=function(t,i){i[e]=gu(t)}),s=t.length,i=0;i<s;i++)$u[t[i]]=r}function Vu(t,e){Ru(t,(function(t,i,s,r){s._w=s._w||{},e(t,s._w,s,r)}))}function Hu(t,e,i){null!=e&&zc($u,t)&&$u[t](e,i._a,i,t)}var qu,Wu=0,Gu=1,Uu=2,Zu=3,Ku=4,Qu=5,Ju=6,Xu=7,tp=8;function ep(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?vu(t)?29:28:31-i%7%2}qu=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},nu("M",["MM",2],"Mo",(function(){return this.month()+1})),nu("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),nu("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),du("month","M"),mu("month",8),Bu("M",Au),Bu("MM",Au,ku),Bu("MMM",(function(t,e){return e.monthsShortRegex(t)})),Bu("MMMM",(function(t,e){return e.monthsRegex(t)})),Ru(["M","MM"],(function(t,e){e[Gu]=gu(t)-1})),Ru(["MMM","MMMM"],(function(t,e,i,s){var r=i._locale.monthsParse(t,s,i._strict);null!=r?e[Gu]=r:jc(i).invalidMonth=t}));var ip="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),sp="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rp=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,op=Lu,np=Lu;function ap(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=Bc([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=qu.call(this._shortMonthsParse,n))?r:null:-1!==(r=qu.call(this._longMonthsParse,n))?r:null:"MMM"===e?-1!==(r=qu.call(this._shortMonthsParse,n))||-1!==(r=qu.call(this._longMonthsParse,n))?r:null:-1!==(r=qu.call(this._longMonthsParse,n))||-1!==(r=qu.call(this._shortMonthsParse,n))?r:null}function lp(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=gu(e);else if(!Pc(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),ep(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function hp(t){return null!=t?(lp(this,t),Mc.updateOffset(this,!0),this):yu(this,"Month")}function dp(){function t(t,e){return e.length-t.length}var e,i,s=[],r=[],o=[];for(e=0;e<12;e++)i=Bc([2e3,e]),s.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(s.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)s[e]=Yu(s[e]),r[e]=Yu(r[e]);for(e=0;e<24;e++)o[e]=Yu(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function cp(t){return vu(t)?366:365}nu("Y",0,0,(function(){var t=this.year();return t<=9999?eu(t,4):"+"+t})),nu(0,["YY",2],0,(function(){return this.year()%100})),nu(0,["YYYY",4],0,"year"),nu(0,["YYYYY",5],0,"year"),nu(0,["YYYYYY",6,!0],0,"year"),du("year","y"),mu("year",1),Bu("Y",Pu),Bu("YY",Au,ku),Bu("YYYY",zu,Su),Bu("YYYYY",Tu,Eu),Bu("YYYYYY",Tu,Eu),Ru(["YYYYY","YYYYYY"],Wu),Ru("YYYY",(function(t,e){e[Wu]=2===t.length?Mc.parseTwoDigitYear(t):gu(t)})),Ru("YY",(function(t,e){e[Wu]=Mc.parseTwoDigitYear(t)})),Ru("Y",(function(t,e){e[Wu]=parseInt(t,10)})),Mc.parseTwoDigitYear=function(t){return gu(t)+(gu(t)>68?1900:2e3)};var up=bu("FullYear",!0);function pp(t,e,i,s,r,o,n){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,s,r,o,n),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,s,r,o,n),a}function mp(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function vp(t,e,i){var s=7+e-i;return-(7+mp(t,0,s).getUTCDay()-e)%7+s-1}function fp(t,e,i,s,r){var o,n,a=1+7*(e-1)+(7+i-s)%7+vp(t,s,r);return a<=0?n=cp(o=t-1)+a:a>cp(t)?(o=t+1,n=a-cp(t)):(o=t,n=a),{year:o,dayOfYear:n}}function gp(t,e,i){var s,r,o=vp(t.year(),e,i),n=Math.floor((t.dayOfYear()-o-1)/7)+1;return n<1?s=n+bp(r=t.year()-1,e,i):n>bp(t.year(),e,i)?(s=n-bp(t.year(),e,i),r=t.year()+1):(r=t.year(),s=n),{week:s,year:r}}function bp(t,e,i){var s=vp(t,e,i),r=vp(t+1,e,i);return(cp(t)-s+r)/7}function yp(t,e){return t.slice(e,7).concat(t.slice(0,e))}nu("w",["ww",2],"wo","week"),nu("W",["WW",2],"Wo","isoWeek"),du("week","w"),du("isoWeek","W"),mu("week",5),mu("isoWeek",5),Bu("w",Au),Bu("ww",Au,ku),Bu("W",Au),Bu("WW",Au,ku),Vu(["w","ww","W","WW"],(function(t,e,i,s){e[s.substr(0,1)]=gu(t)})),nu("d",0,"do","day"),nu("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),nu("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),nu("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),nu("e",0,0,"weekday"),nu("E",0,0,"isoWeekday"),du("day","d"),du("weekday","e"),du("isoWeekday","E"),mu("day",11),mu("weekday",11),mu("isoWeekday",11),Bu("d",Au),Bu("e",Au),Bu("E",Au),Bu("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Bu("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Bu("dddd",(function(t,e){return e.weekdaysRegex(t)})),Vu(["dd","ddd","dddd"],(function(t,e,i,s){var r=i._locale.weekdaysParse(t,s,i._strict);null!=r?e.d=r:jc(i).invalidWeekday=t})),Vu(["d","e","E"],(function(t,e,i,s){e[s]=gu(t)}));var wp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_p="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kp=Lu,Cp=Lu,Sp=Lu;function Ep(t,e,i){var s,r,o,n=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=Bc([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=qu.call(this._weekdaysParse,n))?r:null:"ddd"===e?-1!==(r=qu.call(this._shortWeekdaysParse,n))?r:null:-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:"dddd"===e?-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._shortWeekdaysParse,n))||-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:"ddd"===e?-1!==(r=qu.call(this._shortWeekdaysParse,n))||-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._minWeekdaysParse,n))?r:null:-1!==(r=qu.call(this._minWeekdaysParse,n))||-1!==(r=qu.call(this._weekdaysParse,n))||-1!==(r=qu.call(this._shortWeekdaysParse,n))?r:null}function Ap(){function t(t,e){return e.length-t.length}var e,i,s,r,o,n=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=Bc([2e3,1]).day(e),s=Yu(this.weekdaysMin(i,"")),r=Yu(this.weekdaysShort(i,"")),o=Yu(this.weekdays(i,"")),n.push(s),a.push(r),l.push(o),h.push(s),h.push(r),h.push(o);n.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Mp(){return this.hours()%12||12}function Dp(t,e){nu(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Ip(t,e){return e._meridiemParse}nu("H",["HH",2],0,"hour"),nu("h",["hh",2],0,Mp),nu("k",["kk",2],0,(function(){return this.hours()||24})),nu("hmm",0,0,(function(){return""+Mp.apply(this)+eu(this.minutes(),2)})),nu("hmmss",0,0,(function(){return""+Mp.apply(this)+eu(this.minutes(),2)+eu(this.seconds(),2)})),nu("Hmm",0,0,(function(){return""+this.hours()+eu(this.minutes(),2)})),nu("Hmmss",0,0,(function(){return""+this.hours()+eu(this.minutes(),2)+eu(this.seconds(),2)})),Dp("a",!0),Dp("A",!1),du("hour","h"),mu("hour",13),Bu("a",Ip),Bu("A",Ip),Bu("H",Au),Bu("h",Au),Bu("k",Au),Bu("HH",Au,ku),Bu("hh",Au,ku),Bu("kk",Au,ku),Bu("hmm",Mu),Bu("hmmss",Du),Bu("Hmm",Mu),Bu("Hmmss",Du),Ru(["H","HH"],Zu),Ru(["k","kk"],(function(t,e){var i=gu(t);e[Zu]=24===i?0:i})),Ru(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Ru(["h","hh"],(function(t,e,i){e[Zu]=gu(t),jc(i).bigHour=!0})),Ru("hmm",(function(t,e,i){var s=t.length-2;e[Zu]=gu(t.substr(0,s)),e[Ku]=gu(t.substr(s)),jc(i).bigHour=!0})),Ru("hmmss",(function(t,e,i){var s=t.length-4,r=t.length-2;e[Zu]=gu(t.substr(0,s)),e[Ku]=gu(t.substr(s,2)),e[Qu]=gu(t.substr(r)),jc(i).bigHour=!0})),Ru("Hmm",(function(t,e){var i=t.length-2;e[Zu]=gu(t.substr(0,i)),e[Ku]=gu(t.substr(i))})),Ru("Hmmss",(function(t,e){var i=t.length-4,s=t.length-2;e[Zu]=gu(t.substr(0,i)),e[Ku]=gu(t.substr(i,2)),e[Qu]=gu(t.substr(s))}));var zp,Tp=bu("Hours",!0),Np={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ip,monthsShort:sp,week:{dow:0,doy:6},weekdays:wp,weekdaysMin:xp,weekdaysShort:_p,meridiemParse:/[ap]\.?m?\.?/i},Pp={},Op={};function Fp(t,e){var i,s=Math.min(t.length,e.length);for(i=0;i<s;i+=1)if(t[i]!==e[i])return i;return s}function Lp(t){return t?t.toLowerCase().replace("_","-"):t}function Bp(t){var e=null;if(void 0===Pp[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=zp._abbr,require("./locale/"+t),jp(e)}catch(e){Pp[t]=null}return Pp[t]}function jp(t,e){var i;return t&&((i=Nc(e)?$p(t):Yp(t,e))?zp=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),zp._abbr}function Yp(t,e){if(null!==e){var i,s=Np;if(e.abbr=t,null!=Pp[t])Qc("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Pp[t]._config;else if(null!=e.parentLocale)if(null!=Pp[e.parentLocale])s=Pp[e.parentLocale]._config;else{if(null==(i=Bp(e.parentLocale)))return Op[e.parentLocale]||(Op[e.parentLocale]=[]),Op[e.parentLocale].push({name:t,config:e}),null;s=i._config}return Pp[t]=new tu(Xc(s,e)),Op[t]&&Op[t].forEach((function(t){Yp(t.name,t.config)})),jp(t),Pp[t]}return delete Pp[t],null}function $p(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return zp;if(!Dc(t)){if(e=Bp(t))return e;t=[t]}return function(t){for(var e,i,s,r,o=0;o<t.length;){for(e=(r=Lp(t[o]).split("-")).length,i=(i=Lp(t[o+1]))?i.split("-"):null;e>0;){if(s=Bp(r.slice(0,e).join("-")))return s;if(i&&i.length>=e&&Fp(r,i)>=e-1)break;e--}o++}return zp}(t)}function Rp(t){var e,i=t._a;return i&&-2===jc(t).overflow&&(e=i[Gu]<0||i[Gu]>11?Gu:i[Uu]<1||i[Uu]>ep(i[Wu],i[Gu])?Uu:i[Zu]<0||i[Zu]>24||24===i[Zu]&&(0!==i[Ku]||0!==i[Qu]||0!==i[Ju])?Zu:i[Ku]<0||i[Ku]>59?Ku:i[Qu]<0||i[Qu]>59?Qu:i[Ju]<0||i[Ju]>999?Ju:-1,jc(t)._overflowDayOfYear&&(e<Wu||e>Uu)&&(e=Uu),jc(t)._overflowWeeks&&-1===e&&(e=Xu),jc(t)._overflowWeekday&&-1===e&&(e=tp),jc(t).overflow=e),t}var Vp=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hp=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qp=/Z|[+-]\d\d(?::?\d\d)?/,Wp=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Gp=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Up=/^\/?Date\((-?\d+)/i,Zp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Qp(t){var e,i,s,r,o,n,a=t._i,l=Vp.exec(a)||Hp.exec(a),h=Wp.length,d=Gp.length;if(l){for(jc(t).iso=!0,e=0,i=h;e<i;e++)if(Wp[e][1].exec(l[1])){r=Wp[e][0],s=!1!==Wp[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=d;e<i;e++)if(Gp[e][1].exec(l[3])){o=(l[2]||" ")+Gp[e][0];break}if(null==o)return void(t._isValid=!1)}if(!s&&null!=o)return void(t._isValid=!1);if(l[4]){if(!qp.exec(l[4]))return void(t._isValid=!1);n="Z"}t._f=r+(o||"")+(n||""),em(t)}else t._isValid=!1}function Jp(t){var e,i,s,r,o,n,a,l,h,d=Zp.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],s=d[2],r=d[5],o=d[6],n=d[7],a=[(l=d[4],h=parseInt(l,10),h<=49?2e3+h:h<=999?1900+h:h),sp.indexOf(i),parseInt(s,10),parseInt(r,10),parseInt(o,10)],n&&a.push(parseInt(n,10)),!function(t,e,i){return!t||_p.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(jc(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=a,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Kp[t];if(e)return 0;var s=parseInt(i,10),r=s%100;return(s-r)/100*60+r}(d[8],d[9],d[10]),t._d=mp.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),jc(t).rfc2822=!0}else t._isValid=!1}function Xp(t,e,i){return null!=t?t:null!=e?e:i}function tm(t){var e,i,s,r,o,n=[];if(!t._d){for(s=function(t){var e=new Date(Mc.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Uu]&&null==t._a[Gu]&&function(t){var e,i,s,r,o,n,a,l,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,n=4,i=Xp(e.GG,t._a[Wu],gp(rm(),1,4).year),s=Xp(e.W,1),((r=Xp(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,n=t._locale._week.doy,h=gp(rm(),o,n),i=Xp(e.gg,t._a[Wu],h.year),s=Xp(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),s<1||s>bp(i,o,n)?jc(t)._overflowWeeks=!0:null!=l?jc(t)._overflowWeekday=!0:(a=fp(i,s,r,o,n),t._a[Wu]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=Xp(t._a[Wu],s[Wu]),(t._dayOfYear>cp(o)||0===t._dayOfYear)&&(jc(t)._overflowDayOfYear=!0),i=mp(o,0,t._dayOfYear),t._a[Gu]=i.getUTCMonth(),t._a[Uu]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=s[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Zu]&&0===t._a[Ku]&&0===t._a[Qu]&&0===t._a[Ju]&&(t._nextDay=!0,t._a[Zu]=0),t._d=(t._useUTC?mp:pp).apply(null,n),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Zu]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(jc(t).weekdayMismatch=!0)}}function em(t){if(t._f!==Mc.ISO_8601)if(t._f!==Mc.RFC_2822){t._a=[],jc(t).empty=!0;var e,i,s,r,o,n,a,l=""+t._i,h=l.length,d=0;for(a=(s=lu(t._f,t._locale).match(iu)||[]).length,e=0;e<a;e++)(i=(l.match(ju(r=s[e],t))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&jc(t).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),d+=i.length),ou[r]?(i?jc(t).empty=!1:jc(t).unusedTokens.push(r),Hu(r,i,t)):t._strict&&!i&&jc(t).unusedTokens.push(r);jc(t).charsLeftOver=h-d,l.length>0&&jc(t).unusedInput.push(l),t._a[Zu]<=12&&!0===jc(t).bigHour&&t._a[Zu]>0&&(jc(t).bigHour=void 0),jc(t).parsedDateParts=t._a.slice(0),jc(t).meridiem=t._meridiem,t._a[Zu]=function(t,e,i){var s;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((s=t.isPM(i))&&e<12&&(e+=12),s||12!==e||(e=0),e):e}(t._locale,t._a[Zu],t._meridiem),null!==(n=jc(t).era)&&(t._a[Wu]=t._locale.erasConvertYear(n,t._a[Wu])),tm(t),Rp(t)}else Jp(t);else Qp(t)}function im(t){var e=t._i,i=t._f;return t._locale=t._locale||$p(t._l),null===e||void 0===i&&""===e?$c({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),Wc(e)?new qc(Rp(e)):(Oc(e)?t._d=e:Dc(i)?function(t){var e,i,s,r,o,n,a=!1,l=t._f.length;if(0===l)return jc(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,n=!1,e=Hc({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],em(e),Yc(e)&&(n=!0),o+=jc(e).charsLeftOver,o+=10*jc(e).unusedTokens.length,jc(e).score=o,a?o<s&&(s=o,i=e):(null==s||o<s||n)&&(s=o,i=e,n&&(a=!0));Lc(t,i||e)}(t):i?em(t):function(t){var e=t._i;Nc(e)?t._d=new Date(Mc.now()):Oc(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Up.exec(t._i);null===e?(Qp(t),!1===t._isValid&&(delete t._isValid,Jp(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:Mc.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):Dc(e)?(t._a=Fc(e.slice(0),(function(t){return parseInt(t,10)})),tm(t)):Ic(e)?function(t){if(!t._d){var e=uu(t._i);t._a=Fc([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),tm(t)}}(t):Pc(e)?t._d=new Date(e):Mc.createFromInputFallback(t)}(t),Yc(t)||(t._d=null),t))}function sm(t,e,i,s,r){var o,n={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(Ic(t)&&Tc(t)||Dc(t)&&0===t.length)&&(t=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=i,n._i=t,n._f=e,n._strict=s,(o=new qc(Rp(im(n))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function rm(t,e,i,s){return sm(t,e,i,s,!1)}Mc.createFromInputFallback=Uc("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),Mc.ISO_8601=function(){},Mc.RFC_2822=function(){};var om=Uc("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=rm.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:$c()})),nm=Uc("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=rm.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:$c()}));function am(t,e){var i,s;if(1===e.length&&Dc(e[0])&&(e=e[0]),!e.length)return rm();for(i=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](i)||(i=e[s]);return i}var lm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hm(t){var e=uu(t),i=e.year||0,s=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,n=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,s=!1,r=lm.length;for(e in t)if(zc(t,e)&&(-1===qu.call(lm,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[lm[i]]){if(s)return!1;parseFloat(t[lm[i]])!==gu(t[lm[i]])&&(s=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*l+1e3*a*60*60,this._days=+n+7*o,this._months=+r+3*s+12*i,this._data={},this._locale=$p(),this._bubble()}function dm(t){return t instanceof hm}function cm(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function um(t,e){nu(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+eu(~~(t/60),2)+e+eu(~~t%60,2)}))}um("Z",":"),um("ZZ",""),Bu("Z",Fu),Bu("ZZ",Fu),Ru(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=mm(Fu,t)}));var pm=/([\+\-]|\d\d)/gi;function mm(t,e){var i,s,r=(e||"").match(t);return null===r?null:0===(s=60*(i=((r[r.length-1]||[])+"").match(pm)||["-",0,0])[1]+gu(i[2]))?0:"+"===i[0]?s:-s}function vm(t,e){var i,s;return e._isUTC?(i=e.clone(),s=(Wc(t)||Oc(t)?t.valueOf():rm(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),Mc.updateOffset(i,!1),i):rm(t).local()}function fm(t){return-Math.round(t._d.getTimezoneOffset())}function gm(){return!!this.isValid()&&this._isUTC&&0===this._offset}Mc.updateOffset=function(){};var bm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ym=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wm(t,e){var i,s,r,o,n,a,l=t,h=null;return dm(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:Pc(t)||!isNaN(+t)?(l={},e?l[e]=+t:l.milliseconds=+t):(h=bm.exec(t))?(i="-"===h[1]?-1:1,l={y:0,d:gu(h[Uu])*i,h:gu(h[Zu])*i,m:gu(h[Ku])*i,s:gu(h[Qu])*i,ms:gu(cm(1e3*h[Ju]))*i}):(h=ym.exec(t))?l={y:_m(h[2],i="-"===h[1]?-1:1),M:_m(h[3],i),w:_m(h[4],i),d:_m(h[5],i),h:_m(h[6],i),m:_m(h[7],i),s:_m(h[8],i)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=rm(l.from),n=rm(l.to),r=o.isValid()&&n.isValid()?(n=vm(n,o),o.isBefore(n)?a=xm(o,n):((a=xm(n,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=r.milliseconds,l.M=r.months),s=new hm(l),dm(t)&&zc(t,"_locale")&&(s._locale=t._locale),dm(t)&&zc(t,"_isValid")&&(s._isValid=t._isValid),s}function _m(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function xm(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function km(t,e){return function(i,s){var r;return null===s||isNaN(+s)||(Qc(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=s,s=r),Cm(this,wm(i,s),t),this}}function Cm(t,e,i,s){var r=e._milliseconds,o=cm(e._days),n=cm(e._months);t.isValid()&&(s=null==s||s,n&&lp(t,yu(t,"Month")+n*i),o&&wu(t,"Date",yu(t,"Date")+o*i),r&&t._d.setTime(t._d.valueOf()+r*i),s&&Mc.updateOffset(t,o||n))}wm.fn=hm.prototype,wm.invalid=function(){return wm(NaN)};var Sm=km(1,"add"),Em=km(-1,"subtract");function Am(t){return"string"==typeof t||t instanceof String}function Mm(t,e){if(t.date()<e.date())return-Mm(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return-(i+(e-s<0?(e-s)/(s-t.clone().add(i-1,"months")):(e-s)/(t.clone().add(i+1,"months")-s)))||0}function Dm(t){var e;return void 0===t?this._locale._abbr:(null!=(e=$p(t))&&(this._locale=e),this)}Mc.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Mc.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Im=Uc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function zm(){return this._locale}var Tm=1e3,Nm=6e4,Pm=36e5,Om=126227808e5;function Fm(t,e){return(t%e+e)%e}function Lm(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Om:new Date(t,e,i).valueOf()}function Bm(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Om:Date.UTC(t,e,i)}function jm(t,e){return e.erasAbbrRegex(t)}function Ym(){var t,e,i=[],s=[],r=[],o=[],n=this.eras();for(t=0,e=n.length;t<e;++t)s.push(Yu(n[t].name)),i.push(Yu(n[t].abbr)),r.push(Yu(n[t].narrow)),o.push(Yu(n[t].name)),o.push(Yu(n[t].abbr)),o.push(Yu(n[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function $m(t,e){nu(0,[t,t.length],0,e)}function Rm(t,e,i,s,r){var o;return null==t?gp(this,s,r).year:(e>(o=bp(t,s,r))&&(e=o),Vm.call(this,t,e,i,s,r))}function Vm(t,e,i,s,r){var o=fp(t,e,i,s,r),n=mp(o.year,0,o.dayOfYear);return this.year(n.getUTCFullYear()),this.month(n.getUTCMonth()),this.date(n.getUTCDate()),this}nu("N",0,0,"eraAbbr"),nu("NN",0,0,"eraAbbr"),nu("NNN",0,0,"eraAbbr"),nu("NNNN",0,0,"eraName"),nu("NNNNN",0,0,"eraNarrow"),nu("y",["y",1],"yo","eraYear"),nu("y",["yy",2],0,"eraYear"),nu("y",["yyy",3],0,"eraYear"),nu("y",["yyyy",4],0,"eraYear"),Bu("N",jm),Bu("NN",jm),Bu("NNN",jm),Bu("NNNN",(function(t,e){return e.erasNameRegex(t)})),Bu("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Ru(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,s){var r=i._locale.erasParse(t,s,i._strict);r?jc(i).era=r:jc(i).invalidEra=t})),Bu("y",Nu),Bu("yy",Nu),Bu("yyy",Nu),Bu("yyyy",Nu),Bu("yo",(function(t,e){return e._eraYearOrdinalRegex||Nu})),Ru(["y","yy","yyy","yyyy"],Wu),Ru(["yo"],(function(t,e,i){var s;i._locale._eraYearOrdinalRegex&&(s=t.match(i._locale._eraYearOrdinalRegex)),e[Wu]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,s):parseInt(t,10)})),nu(0,["gg",2],0,(function(){return this.weekYear()%100})),nu(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$m("gggg","weekYear"),$m("ggggg","weekYear"),$m("GGGG","isoWeekYear"),$m("GGGGG","isoWeekYear"),du("weekYear","gg"),du("isoWeekYear","GG"),mu("weekYear",1),mu("isoWeekYear",1),Bu("G",Pu),Bu("g",Pu),Bu("GG",Au,ku),Bu("gg",Au,ku),Bu("GGGG",zu,Su),Bu("gggg",zu,Su),Bu("GGGGG",Tu,Eu),Bu("ggggg",Tu,Eu),Vu(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,s){e[s.substr(0,2)]=gu(t)})),Vu(["gg","GG"],(function(t,e,i,s){e[s]=Mc.parseTwoDigitYear(t)})),nu("Q",0,"Qo","quarter"),du("quarter","Q"),mu("quarter",7),Bu("Q",xu),Ru("Q",(function(t,e){e[Gu]=3*(gu(t)-1)})),nu("D",["DD",2],"Do","date"),du("date","D"),mu("date",9),Bu("D",Au),Bu("DD",Au,ku),Bu("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ru(["D","DD"],Uu),Ru("Do",(function(t,e){e[Uu]=gu(t.match(Au)[0])}));var Hm=bu("Date",!0);nu("DDD",["DDDD",3],"DDDo","dayOfYear"),du("dayOfYear","DDD"),mu("dayOfYear",4),Bu("DDD",Iu),Bu("DDDD",Cu),Ru(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=gu(t)})),nu("m",["mm",2],0,"minute"),du("minute","m"),mu("minute",14),Bu("m",Au),Bu("mm",Au,ku),Ru(["m","mm"],Ku);var qm=bu("Minutes",!1);nu("s",["ss",2],0,"second"),du("second","s"),mu("second",15),Bu("s",Au),Bu("ss",Au,ku),Ru(["s","ss"],Qu);var Wm,Gm,Um=bu("Seconds",!1);for(nu("S",0,0,(function(){return~~(this.millisecond()/100)})),nu(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),nu(0,["SSS",3],0,"millisecond"),nu(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),nu(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),nu(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),nu(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),nu(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),nu(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),du("millisecond","ms"),mu("millisecond",16),Bu("S",Iu,xu),Bu("SS",Iu,ku),Bu("SSS",Iu,Cu),Wm="SSSS";Wm.length<=9;Wm+="S")Bu(Wm,Nu);function Zm(t,e){e[Ju]=gu(1e3*("0."+t))}for(Wm="S";Wm.length<=9;Wm+="S")Ru(Wm,Zm);Gm=bu("Milliseconds",!1),nu("z",0,0,"zoneAbbr"),nu("zz",0,0,"zoneName");var Km=qc.prototype;function Qm(t){return t}Km.add=Sm,Km.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?Wc(i=arguments[0])||Oc(i)||Am(i)||Pc(i)||function(t){var e=Dc(t),i=!1;return e&&(i=0===t.filter((function(e){return!Pc(e)&&Am(t)})).length),e&&i}(i)||function(t){var e,i=Ic(t)&&!Tc(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(e=0;e<o;e+=1)s=s||zc(t,r[e]);return i&&s}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=Ic(t)&&!Tc(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)s=s||zc(t,r[e]);return i&&s}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var s=t||rm(),r=vm(s,this).startOf("day"),o=Mc.calendarFormat(this,r)||"sameElse",n=e&&(Jc(e[o])?e[o].call(this,s):e[o]);return this.format(n||this.localeData().calendar(o,this,rm(s)))},Km.clone=function(){return new qc(this)},Km.diff=function(t,e,i){var s,r,o;if(!this.isValid())return NaN;if(!(s=vm(t,this)).isValid())return NaN;switch(r=6e4*(s.utcOffset()-this.utcOffset()),e=cu(e)){case"year":o=Mm(this,s)/12;break;case"month":o=Mm(this,s);break;case"quarter":o=Mm(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-r)/864e5;break;case"week":o=(this-s-r)/6048e5;break;default:o=this-s}return i?o:fu(o)},Km.endOf=function(t){var e,i;if(void 0===(t=cu(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Bm:Lm,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Pm-Fm(e+(this._isUTC?0:this.utcOffset()*Nm),Pm)-1;break;case"minute":e=this._d.valueOf(),e+=Nm-Fm(e,Nm)-1;break;case"second":e=this._d.valueOf(),e+=Tm-Fm(e,Tm)-1}return this._d.setTime(e),Mc.updateOffset(this,!0),this},Km.format=function(t){t||(t=this.isUtc()?Mc.defaultFormatUtc:Mc.defaultFormat);var e=au(this,t);return this.localeData().postformat(e)},Km.from=function(t,e){return this.isValid()&&(Wc(t)&&t.isValid()||rm(t).isValid())?wm({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Km.fromNow=function(t){return this.from(rm(),t)},Km.to=function(t,e){return this.isValid()&&(Wc(t)&&t.isValid()||rm(t).isValid())?wm({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Km.toNow=function(t){return this.to(rm(),t)},Km.get=function(t){return Jc(this[t=cu(t)])?this[t]():this},Km.invalidAt=function(){return jc(this).overflow},Km.isAfter=function(t,e){var i=Wc(t)?t:rm(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Km.isBefore=function(t,e){var i=Wc(t)?t:rm(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Km.isBetween=function(t,e,i,s){var r=Wc(t)?t:rm(t),o=Wc(e)?e:rm(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(s=s||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===s[1]?this.isBefore(o,i):!this.isAfter(o,i))},Km.isSame=function(t,e){var i,s=Wc(t)?t:rm(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=cu(e)||"millisecond")?this.valueOf()===s.valueOf():(i=s.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Km.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Km.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Km.isValid=function(){return Yc(this)},Km.lang=Im,Km.locale=Dm,Km.localeData=zm,Km.max=nm,Km.min=om,Km.parsingFlags=function(){return Lc({},jc(this))},Km.set=function(t,e){if("object"==typeof t){var i,s=function(t){var e,i=[];for(e in t)zc(t,e)&&i.push({unit:e,priority:pu[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=uu(t)),r=s.length;for(i=0;i<r;i++)this[s[i].unit](t[s[i].unit])}else if(Jc(this[t=cu(t)]))return this[t](e);return this},Km.startOf=function(t){var e,i;if(void 0===(t=cu(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Bm:Lm,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Fm(e+(this._isUTC?0:this.utcOffset()*Nm),Pm);break;case"minute":e=this._d.valueOf(),e-=Fm(e,Nm);break;case"second":e=this._d.valueOf(),e-=Fm(e,Tm)}return this._d.setTime(e),Mc.updateOffset(this,!0),this},Km.subtract=Em,Km.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Km.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Km.toDate=function(){return new Date(this.valueOf())},Km.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?au(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jc(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",au(i,"Z")):au(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Km.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+s+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Km[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Km.toJSON=function(){return this.isValid()?this.toISOString():null},Km.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Km.unix=function(){return Math.floor(this.valueOf()/1e3)},Km.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Km.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Km.eraName=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].name;if(s[t].until<=i&&i<=s[t].since)return s[t].name}return""},Km.eraNarrow=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].narrow;if(s[t].until<=i&&i<=s[t].since)return s[t].narrow}return""},Km.eraAbbr=function(){var t,e,i,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),s[t].since<=i&&i<=s[t].until)return s[t].abbr;if(s[t].until<=i&&i<=s[t].since)return s[t].abbr}return""},Km.eraYear=function(){var t,e,i,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return(this.year()-Mc(r[t].since).year())*i+r[t].offset;return this.year()},Km.year=up,Km.isLeapYear=function(){return vu(this.year())},Km.weekYear=function(t){return Rm.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Km.isoWeekYear=function(t){return Rm.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Km.quarter=Km.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Km.month=hp,Km.daysInMonth=function(){return ep(this.year(),this.month())},Km.week=Km.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Km.isoWeek=Km.isoWeeks=function(t){var e=gp(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Km.weeksInYear=function(){var t=this.localeData()._week;return bp(this.year(),t.dow,t.doy)},Km.weeksInWeekYear=function(){var t=this.localeData()._week;return bp(this.weekYear(),t.dow,t.doy)},Km.isoWeeksInYear=function(){return bp(this.year(),1,4)},Km.isoWeeksInISOWeekYear=function(){return bp(this.isoWeekYear(),1,4)},Km.date=Hm,Km.day=Km.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Km.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Km.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Km.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Km.hour=Km.hours=Tp,Km.minute=Km.minutes=qm,Km.second=Km.seconds=Um,Km.millisecond=Km.milliseconds=Gm,Km.utcOffset=function(t,e,i){var s,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=mm(Fu,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(s=fm(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?Cm(this,wm(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Mc.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:fm(this)},Km.utc=function(t){return this.utcOffset(0,t)},Km.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fm(this),"m")),this},Km.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=mm(Ou,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Km.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?rm(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Km.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Km.isLocal=function(){return!!this.isValid()&&!this._isUTC},Km.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Km.isUtc=gm,Km.isUTC=gm,Km.zoneAbbr=function(){return this._isUTC?"UTC":""},Km.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Km.dates=Uc("dates accessor is deprecated. Use date instead.",Hm),Km.months=Uc("months accessor is deprecated. Use month instead",hp),Km.years=Uc("years accessor is deprecated. Use year instead",up),Km.zone=Uc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Km.isDSTShifted=Uc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!Nc(this._isDSTShifted))return this._isDSTShifted;var t,e={};return Hc(e,this),(e=im(e))._a?(t=e._isUTC?Bc(e._a):rm(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<s;i++)gu(t[i])!==gu(e[i])&&o++;return o+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Jm=tu.prototype;function Xm(t,e,i,s){var r=$p(),o=Bc().set(s,e);return r[i](o,t)}function tv(t,e,i){if(Pc(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xm(t,e,i,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Xm(t,s,i,"month");return r}function ev(t,e,i,s){"boolean"==typeof t?(Pc(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,Pc(e)&&(i=e,e=void 0),e=e||"");var r,o=$p(),n=t?o._week.dow:0,a=[];if(null!=i)return Xm(e,(i+n)%7,s,"day");for(r=0;r<7;r++)a[r]=Xm(e,(r+n)%7,s,"day");return a}Jm.calendar=function(t,e,i){var s=this._calendar[t]||this._calendar.sameElse;return Jc(s)?s.call(e,i):s},Jm.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(iu).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Jm.invalidDate=function(){return this._invalidDate},Jm.ordinal=function(t){return this._ordinal.replace("%d",t)},Jm.preparse=Qm,Jm.postformat=Qm,Jm.relativeTime=function(t,e,i,s){var r=this._relativeTime[i];return Jc(r)?r(t,e,i,s):r.replace(/%d/i,t)},Jm.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return Jc(i)?i(e):i.replace(/%s/i,e)},Jm.set=function(t){var e,i;for(i in t)zc(t,i)&&(Jc(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Jm.eras=function(){var t,e,i,s=this._eras||$p("en")._eras;for(t=0,e=s.length;t<e;++t)switch("string"==typeof s[t].since&&(i=Mc(s[t].since).startOf("day"),s[t].since=i.valueOf()),typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":i=Mc(s[t].until).startOf("day").valueOf(),s[t].until=i.valueOf()}return s},Jm.erasParse=function(t,e,i){var s,r,o,n,a,l=this.eras();for(t=t.toUpperCase(),s=0,r=l.length;s<r;++s)if(o=l[s].name.toUpperCase(),n=l[s].abbr.toUpperCase(),a=l[s].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(n===t)return l[s];break;case"NNNN":if(o===t)return l[s];break;case"NNNNN":if(a===t)return l[s]}else if([o,n,a].indexOf(t)>=0)return l[s]},Jm.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?Mc(t.since).year():Mc(t.since).year()+(e-t.offset)*i},Jm.erasAbbrRegex=function(t){return zc(this,"_erasAbbrRegex")||Ym.call(this),t?this._erasAbbrRegex:this._erasRegex},Jm.erasNameRegex=function(t){return zc(this,"_erasNameRegex")||Ym.call(this),t?this._erasNameRegex:this._erasRegex},Jm.erasNarrowRegex=function(t){return zc(this,"_erasNarrowRegex")||Ym.call(this),t?this._erasNarrowRegex:this._erasRegex},Jm.months=function(t,e){return t?Dc(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||rp).test(e)?"format":"standalone"][t.month()]:Dc(this._months)?this._months:this._months.standalone},Jm.monthsShort=function(t,e){return t?Dc(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[rp.test(e)?"format":"standalone"][t.month()]:Dc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Jm.monthsParse=function(t,e,i){var s,r,o;if(this._monthsParseExact)return ap.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=Bc([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(i&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!i&&this._monthsParse[s].test(t))return s}},Jm.monthsRegex=function(t){return this._monthsParseExact?(zc(this,"_monthsRegex")||dp.call(this),t?this._monthsStrictRegex:this._monthsRegex):(zc(this,"_monthsRegex")||(this._monthsRegex=np),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Jm.monthsShortRegex=function(t){return this._monthsParseExact?(zc(this,"_monthsRegex")||dp.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(zc(this,"_monthsShortRegex")||(this._monthsShortRegex=op),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Jm.week=function(t){return gp(t,this._week.dow,this._week.doy).week},Jm.firstDayOfYear=function(){return this._week.doy},Jm.firstDayOfWeek=function(){return this._week.dow},Jm.weekdays=function(t,e){var i=Dc(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?yp(i,this._week.dow):t?i[t.day()]:i},Jm.weekdaysMin=function(t){return!0===t?yp(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Jm.weekdaysShort=function(t){return!0===t?yp(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Jm.weekdaysParse=function(t,e,i){var s,r,o;if(this._weekdaysParseExact)return Ep.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=Bc([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(i&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(i&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!i&&this._weekdaysParse[s].test(t))return s}},Jm.weekdaysRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(zc(this,"_weekdaysRegex")||(this._weekdaysRegex=kp),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Jm.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(zc(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cp),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Jm.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(zc(this,"_weekdaysRegex")||Ap.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(zc(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sp),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Jm.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Jm.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},jp("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===gu(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),Mc.lang=Uc("moment.lang is deprecated. Use moment.locale instead.",jp),Mc.langData=Uc("moment.langData is deprecated. Use moment.localeData instead.",$p);var iv=Math.abs;function sv(t,e,i,s){var r=wm(e,i);return t._milliseconds+=s*r._milliseconds,t._days+=s*r._days,t._months+=s*r._months,t._bubble()}function rv(t){return t<0?Math.floor(t):Math.ceil(t)}function ov(t){return 4800*t/146097}function nv(t){return 146097*t/4800}function av(t){return function(){return this.as(t)}}var lv=av("ms"),hv=av("s"),dv=av("m"),cv=av("h"),uv=av("d"),pv=av("w"),mv=av("M"),vv=av("Q"),fv=av("y");function gv(t){return function(){return this.isValid()?this._data[t]:NaN}}var bv=gv("milliseconds"),yv=gv("seconds"),wv=gv("minutes"),_v=gv("hours"),xv=gv("days"),kv=gv("months"),Cv=gv("years"),Sv=Math.round,Ev={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Av(t,e,i,s,r){return r.relativeTime(e||1,!!i,t,s)}var Mv=Math.abs;function Dv(t){return(t>0)-(t<0)||+t}function Iv(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,s,r,o,n,a,l=Mv(this._milliseconds)/1e3,h=Mv(this._days),d=Mv(this._months),c=this.asSeconds();return c?(t=fu(l/60),e=fu(t/60),l%=60,t%=60,i=fu(d/12),d%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",o=Dv(this._months)!==Dv(c)?"-":"",n=Dv(this._days)!==Dv(c)?"-":"",a=Dv(this._milliseconds)!==Dv(c)?"-":"",r+"P"+(i?o+i+"Y":"")+(d?o+d+"M":"")+(h?n+h+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+s+"S":"")):"P0D"}var zv=hm.prototype;zv.isValid=function(){return this._isValid},zv.abs=function(){var t=this._data;return this._milliseconds=iv(this._milliseconds),this._days=iv(this._days),this._months=iv(this._months),t.milliseconds=iv(t.milliseconds),t.seconds=iv(t.seconds),t.minutes=iv(t.minutes),t.hours=iv(t.hours),t.months=iv(t.months),t.years=iv(t.years),this},zv.add=function(t,e){return sv(this,t,e,1)},zv.subtract=function(t,e){return sv(this,t,e,-1)},zv.as=function(t){if(!this.isValid())return NaN;var e,i,s=this._milliseconds;if("month"===(t=cu(t))||"quarter"===t||"year"===t)switch(i=this._months+ov(e=this._days+s/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(nv(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},zv.asMilliseconds=lv,zv.asSeconds=hv,zv.asMinutes=dv,zv.asHours=cv,zv.asDays=uv,zv.asWeeks=pv,zv.asMonths=mv,zv.asQuarters=vv,zv.asYears=fv,zv.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*gu(this._months/12):NaN},zv._bubble=function(){var t,e,i,s,r,o=this._milliseconds,n=this._days,a=this._months,l=this._data;return o>=0&&n>=0&&a>=0||o<=0&&n<=0&&a<=0||(o+=864e5*rv(nv(a)+n),n=0,a=0),l.milliseconds=o%1e3,t=fu(o/1e3),l.seconds=t%60,e=fu(t/60),l.minutes=e%60,i=fu(e/60),l.hours=i%24,n+=fu(i/24),a+=r=fu(ov(n)),n-=rv(nv(r)),s=fu(a/12),a%=12,l.days=n,l.months=a,l.years=s,this},zv.clone=function(){return wm(this)},zv.get=function(t){return t=cu(t),this.isValid()?this[t+"s"]():NaN},zv.milliseconds=bv,zv.seconds=yv,zv.minutes=wv,zv.hours=_v,zv.days=xv,zv.weeks=function(){return fu(this.days()/7)},zv.months=kv,zv.years=Cv,zv.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,s,r=!1,o=Ev;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},Ev,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),s=function(t,e,i,s){var r=wm(t).abs(),o=Sv(r.as("s")),n=Sv(r.as("m")),a=Sv(r.as("h")),l=Sv(r.as("d")),h=Sv(r.as("M")),d=Sv(r.as("w")),c=Sv(r.as("y")),u=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||n<=1&&["m"]||n<i.m&&["mm",n]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(u=u||d<=1&&["w"]||d<i.w&&["ww",d]),(u=u||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,u[3]=+t>0,u[4]=s,Av.apply(null,u)}(this,!r,o,i=this.localeData()),r&&(s=i.pastFuture(+this,s)),i.postformat(s)},zv.toISOString=Iv,zv.toString=Iv,zv.toJSON=Iv,zv.locale=Dm,zv.localeData=zm,zv.toIsoString=Uc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Iv),zv.lang=Im,nu("X",0,0,"unix"),nu("x",0,0,"valueOf"),Bu("x",Pu),Bu("X",/[+-]?\d+(\.\d{1,3})?/),Ru("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Ru("x",(function(t,e,i){i._d=new Date(gu(t))})),
6664
6664
  //! moment.js
6665
- Mc.version="2.29.4",Ec=rm,Mc.fn=Km,Mc.min=function(){return am("isBefore",[].slice.call(arguments,0))},Mc.max=function(){return am("isAfter",[].slice.call(arguments,0))},Mc.now=function(){return Date.now?Date.now():+new Date},Mc.utc=Bc,Mc.unix=function(t){return rm(1e3*t)},Mc.months=function(t,e){return tv(t,e,"months")},Mc.isDate=Fc,Mc.locale=jp,Mc.invalid=$c,Mc.duration=wm,Mc.isMoment=Wc,Mc.weekdays=function(t,e,i){return ev(t,e,i,"weekdays")},Mc.parseZone=function(){return rm.apply(null,arguments).parseZone()},Mc.localeData=$p,Mc.isDuration=dm,Mc.monthsShort=function(t,e){return tv(t,e,"monthsShort")},Mc.weekdaysMin=function(t,e,i){return ev(t,e,i,"weekdaysMin")},Mc.defineLocale=Yp,Mc.updateLocale=function(t,e){if(null!=e){var i,s,r=Np;null!=Pp[t]&&null!=Pp[t].parentLocale?Pp[t].set(Xc(Pp[t]._config,e)):(null!=(s=Bp(t))&&(r=s._config),e=Xc(r,e),null==s&&(e.abbr=t),(i=new tu(e)).parentLocale=Pp[t],Pp[t]=i),jp(t)}else null!=Pp[t]&&(null!=Pp[t].parentLocale?(Pp[t]=Pp[t].parentLocale,t===jp()&&jp(t)):null!=Pp[t]&&delete Pp[t]);return Pp[t]},Mc.locales=function(){return Zc(Pp)},Mc.weekdaysShort=function(t,e,i){return ev(t,e,i,"weekdaysShort")},Mc.normalizeUnits=cu,Mc.relativeTimeRounding=function(t){return void 0===t?Sv:"function"==typeof t&&(Sv=t,!0)},Mc.relativeTimeThreshold=function(t,e){return void 0!==Ev[t]&&(void 0===e?Ev[t]:(Ev[t]=e,"s"===t&&(Ev.ss=e-1),!0))},Mc.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},Mc.prototype=Km,Mc.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Tv=class{constructor(t){r(this,t),this.expireTime=void 0,this.language="en",this.displayTime=void 0,this.isExpireInDay1=!1}componentWillLoad(){this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}disconnectedCallback(){clearInterval(this.timer)}startTimeChanged(){clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}updateDisplayTime(){const t=Mc(),e=Mc(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=Mc.duration(e.diff(t));if(this.isExpireInDay1=i.asDays()>1,i.asMilliseconds()<=0)return this.displayTime="00:00:00",void clearInterval(this.timer);const r=Math.floor(i.asHours());if(r>=48)this.displayTime=`${Math.floor(i.asDays())} ${s("days",this.language)}`;else if(r>=24)this.displayTime="1 day";else{const t=r,e=i.minutes(),s=i.seconds();this.displayTime=[t,e,s].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return[this.isExpireInDay1&&n("span",{key:"8432bdb52f3b5ecd2600c68179a0ee55d785c20c",class:"Label"},s("expiresIn",this.language)),n("span",{key:"6392f23c29ea2b9d02cbf3fec2cc19bfdfbb91c9",class:"TimeCountDown "+(this.isExpireInDay1?"":"Highlighted")},this.displayTime)]}static get watchers(){return{expireTime:["startTimeChanged"]}}},Nv=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.translationUrl=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return y("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}renderLabel(){return n("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},n("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?n("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("div",{key:"4bb7b3391398f78dceffef403f6b216c0cbdd312",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"214848f815c996605c1f710c46dde6bfe83f0cf7",class:"togglecheckbox__wrapper--flex"},n("input",{key:"e1b829fafa91d20a80c19d49c2ce536c41892c0d",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),n("small",{key:"e01a4c6bc20fae1aa56ba2888e18c3b43181e7ce",class:"togglecheckbox__error-message"},this.errorMessage),n("div",{key:"5d4b6f06c72de9d9bb62dfcba08bd7366d355733",class:"togglecheckbox__wrapper--relative"},this.tooltip&&n("img",{key:"51983de9c47a15e00b16ea7aae860c71580a6511",class:"togglecheckbox__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),n("div",{key:"ab12b489947e92ac32c9c061f5b30865996fe6e0",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>n("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.translationUrl?void 0:this.mbSource,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Nv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';const Pv=class{constructor(t){r(this,t),this.registrationWidgetLoaded=o(this,"registrationWidgetLoaded",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.resendCode=o(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,s=i.value.slice(-1);if(i.value=s,!s)return;this.code[e]=s,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const r=this.inputRefs[e+1];r&&r.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.startCountDown=!1,this.isValid=!1,this.isResendButtonAvailable=!this.startCountDown,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,e){t!==e&&this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.code=new Array(null===(t=this.validation)||void 0===t?void 0:t.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){void 0===window.emMessageBus?(this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.startCountDown&&this.triggerResendInterval(),this.handleClientStyling()}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const s=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!s)return;const r=s.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=r.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];null==o||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){var t;const e=this.code.join(""),i=e.length===(null===(t=this.validation)||void 0===t?void 0:t.maxLength),s=null!==e.match(this.validationPattern);this.isValid=i&&s}setPattern(){var t,e,i,s,r;return this.validation&&(null===(t=this.validation)||void 0===t?void 0:t.custom)&&this.validation.custom.length>0&&null!==(r=null===(s=null===(i=null===(e=this.validation)||void 0===e?void 0:e.custom)||void 0===i?void 0:i.find((t=>"regex"===t.rule)))||void 0===s?void 0:s.pattern)&&void 0!==r?r:""}setErrorMessage(){var t,e,i;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const s=null===(i=null===(e=null===(t=this.validation)||void 0===t?void 0:t.custom)||void 0===e?void 0:e.find((t=>"regex"===t.rule)))||void 0===i?void 0:i.errorKey;s&&(this.errorMessage=y(s,this.language))}}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return n("div",{key:"c2accac3362fe80b2f78ff5f7f76fe45871d63b3",class:"twofa",ref:t=>this.stylingContainer=t},n("div",{key:"8cae1d115652698e0d579de8762ad767448c7bc5",class:"twofa__error-message"},n("p",{key:"73a3a6138d131dab6ae052401e7b4b44619b2a1b"},this.errorMessage)),n("div",{key:"447cebaf6d1f21f6b25af4a2a49932446eae812f",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),n("div",{key:"72732322e151bdbcecbde20a348c54b79a9a064e",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>n("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),n("div",{key:"57062c200893d084fd0328ec6363b16821413f5e",class:"twofa__button-wrapper"},n("p",{key:"dafc860bf614c3c274c1b144bfc1584a347458de",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),n("button",{key:"6d1bc6083e98c23879070f91a29b709b0223b02c",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}get host(){return a(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Pv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";const Fv=class{constructor(t){r(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const t=new Image;t.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,t.onload=null)},t.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target.__uxComponent;e&&(e.shouldLoad=!0,e.handleSrc()),window.EMUxObserver.unobserve(t.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return n(l,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&n("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),n("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:t=>this.image=t,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return a(this)}static get watchers(){return{src:["handleSrc"]}}};Fv.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const Ov=class{constructor(t){r(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}handleStylingProps(t){switch(typeof t){case"number":return 0===t?0:`${t}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(t)||t.endsWith("px")||t.endsWith("%")?t:"unset"}}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return n("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return n("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((t,e)=>n("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let t="";switch(this.structure){case"logo":t=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":t=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":t=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":t=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":t=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":t=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:t=""}return n(l,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},n("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},t),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Ov.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{p as bonus_pagination_nav,x as checkbox_group_input,k as checkbox_input,oi as date_input,ni as email_input,bc as general_input,yc as number_input,wc as password_input,_c as postalcode_input,xc as radio_input,kc as select_input,Cc as tel_input,Sc as text_input,Tv as time_count,Nv as toggle_checkbox_input,Pv as twofa_input,Fv as ui_image,Ov as ui_skeleton}
6665
+ Mc.version="2.29.4",Ec=rm,Mc.fn=Km,Mc.min=function(){return am("isBefore",[].slice.call(arguments,0))},Mc.max=function(){return am("isAfter",[].slice.call(arguments,0))},Mc.now=function(){return Date.now?Date.now():+new Date},Mc.utc=Bc,Mc.unix=function(t){return rm(1e3*t)},Mc.months=function(t,e){return tv(t,e,"months")},Mc.isDate=Oc,Mc.locale=jp,Mc.invalid=$c,Mc.duration=wm,Mc.isMoment=Wc,Mc.weekdays=function(t,e,i){return ev(t,e,i,"weekdays")},Mc.parseZone=function(){return rm.apply(null,arguments).parseZone()},Mc.localeData=$p,Mc.isDuration=dm,Mc.monthsShort=function(t,e){return tv(t,e,"monthsShort")},Mc.weekdaysMin=function(t,e,i){return ev(t,e,i,"weekdaysMin")},Mc.defineLocale=Yp,Mc.updateLocale=function(t,e){if(null!=e){var i,s,r=Np;null!=Pp[t]&&null!=Pp[t].parentLocale?Pp[t].set(Xc(Pp[t]._config,e)):(null!=(s=Bp(t))&&(r=s._config),e=Xc(r,e),null==s&&(e.abbr=t),(i=new tu(e)).parentLocale=Pp[t],Pp[t]=i),jp(t)}else null!=Pp[t]&&(null!=Pp[t].parentLocale?(Pp[t]=Pp[t].parentLocale,t===jp()&&jp(t)):null!=Pp[t]&&delete Pp[t]);return Pp[t]},Mc.locales=function(){return Zc(Pp)},Mc.weekdaysShort=function(t,e,i){return ev(t,e,i,"weekdaysShort")},Mc.normalizeUnits=cu,Mc.relativeTimeRounding=function(t){return void 0===t?Sv:"function"==typeof t&&(Sv=t,!0)},Mc.relativeTimeThreshold=function(t,e){return void 0!==Ev[t]&&(void 0===e?Ev[t]:(Ev[t]=e,"s"===t&&(Ev.ss=e-1),!0))},Mc.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},Mc.prototype=Km,Mc.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Tv=class{constructor(t){r(this,t),this.expireTime=void 0,this.language="en",this.displayTime=void 0,this.isExpireInDay1=!1}componentWillLoad(){this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}disconnectedCallback(){clearInterval(this.timer)}startTimeChanged(){clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}updateDisplayTime(){const t=Mc(),e=Mc(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=Mc.duration(e.diff(t));if(this.isExpireInDay1=i.asDays()>1,i.asMilliseconds()<=0)return this.displayTime="00:00:00",void clearInterval(this.timer);const r=Math.floor(i.asHours());if(r>=48)this.displayTime=`${Math.floor(i.asDays())} ${s("days",this.language)}`;else if(r>=24)this.displayTime="1 day";else{const t=r,e=i.minutes(),s=i.seconds();this.displayTime=[t,e,s].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return[this.isExpireInDay1&&n("span",{key:"8432bdb52f3b5ecd2600c68179a0ee55d785c20c",class:"Label"},s("expiresIn",this.language)),n("span",{key:"6392f23c29ea2b9d02cbf3fec2cc19bfdfbb91c9",class:"TimeCountDown "+(this.isExpireInDay1?"":"Highlighted")},this.displayTime)]}static get watchers(){return{expireTime:["startTimeChanged"]}}},Nv=class{constructor(t){r(this,t),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.translationUrl=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleClientStyling(){void 0===window.emMessageBus?this.clientStyling&&t(this.stylingContainer,this.clientStyling):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.handleClientStyling(),0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return y("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}renderLabel(){return n("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},n("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?n("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return n("div",{key:"4bb7b3391398f78dceffef403f6b216c0cbdd312",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},n("div",{key:"214848f815c996605c1f710c46dde6bfe83f0cf7",class:"togglecheckbox__wrapper--flex"},n("input",{key:"e1b829fafa91d20a80c19d49c2ce536c41892c0d",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),n("small",{key:"e01a4c6bc20fae1aa56ba2888e18c3b43181e7ce",class:"togglecheckbox__error-message"},this.errorMessage),n("div",{key:"5d4b6f06c72de9d9bb62dfcba08bd7366d355733",class:"togglecheckbox__wrapper--relative"},this.tooltip&&n("img",{key:"51983de9c47a15e00b16ea7aae860c71580a6511",class:"togglecheckbox__tooltip-icon",src:_,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),n("div",{key:"ab12b489947e92ac32c9c061f5b30865996fe6e0",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>n("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.translationUrl?void 0:this.mbSource,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Nv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';const Pv=class{constructor(t){r(this,t),this.registrationWidgetLoaded=o(this,"registrationWidgetLoaded",7),this.sendValidityState=o(this,"sendValidityState",7),this.sendInputValue=o(this,"sendInputValue",7),this.resendCode=o(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,s=i.value.slice(-1);if(i.value=s,!s)return;this.code[e]=s,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const r=this.inputRefs[e+1];r&&r.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.startCountDown=!1,this.isValid=!1,this.isResendButtonAvailable=!this.startCountDown,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(e,i){e!==i&&t(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,e){t!==e&&this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}async getOtpValue(){return this.code.join("")}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.code=new Array(null===(t=this.validation)||void 0===t?void 0:t.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){void 0===window.emMessageBus?(this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl)):this.stylingSubscription=e(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.startCountDown&&this.triggerResendInterval(),this.handleClientStyling()}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const s=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!s)return;const r=s.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=r.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];null==o||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){var t;const e=this.code.join(""),i=e.length===(null===(t=this.validation)||void 0===t?void 0:t.maxLength),s=null!==e.match(this.validationPattern);this.isValid=i&&s}setPattern(){var t,e,i,s,r;return this.validation&&(null===(t=this.validation)||void 0===t?void 0:t.custom)&&this.validation.custom.length>0&&null!==(r=null===(s=null===(i=null===(e=this.validation)||void 0===e?void 0:e.custom)||void 0===i?void 0:i.find((t=>"regex"===t.rule)))||void 0===s?void 0:s.pattern)&&void 0!==r?r:""}setErrorMessage(){var t,e,i;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const s=null===(i=null===(e=null===(t=this.validation)||void 0===t?void 0:t.custom)||void 0===e?void 0:e.find((t=>"regex"===t.rule)))||void 0===i?void 0:i.errorKey;s&&(this.errorMessage=y(s,this.language))}}renderTooltip(){return this.showTooltip?n("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return n("div",{key:"f7123fd5b93d7edb05abc48c7bf0e64dd35a0096",class:"twofa",ref:t=>this.stylingContainer=t},n("div",{key:"500c8c0347308373a1019cd839bd98c8be4f1dfc",class:"twofa__error-message"},n("p",{key:"71655b12862d0be463112c91b8ad96ebabce5308"},this.errorMessage)),n("div",{key:"722b6f26f6c317a5cd844f010486fe3ce8937307",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),n("div",{key:"3f94387b22a825f1c39e55d402d413378b1979d8",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>n("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),n("div",{key:"3465beb171e55b3b61d954dee6f772e64dc63835",class:"twofa__button-wrapper"},n("p",{key:"19da7fbe70c7768171adcc1329240348be60cb70",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),n("button",{key:"b0c097d4afaa9d60716b2da6465401c15c45626e",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}get host(){return a(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Pv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";const Ov=class{constructor(t){r(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const t=new Image;t.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,t.onload=null)},t.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target.__uxComponent;e&&(e.shouldLoad=!0,e.handleSrc()),window.EMUxObserver.unobserve(t.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return n(l,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&n("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),n("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:t=>this.image=t,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return a(this)}static get watchers(){return{src:["handleSrc"]}}};Ov.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const Fv=class{constructor(t){r(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}handleStylingProps(t){switch(typeof t){case"number":return 0===t?0:`${t}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(t)||t.endsWith("px")||t.endsWith("%")?t:"unset"}}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return n("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return n("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((t,e)=>n("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n("div",{class:"SkeletonContainer"},n("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let t="";switch(this.structure){case"logo":t=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":t=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":t=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":t=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":t=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":t=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:t=""}return n(l,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},n("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},t),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Fv.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{p as bonus_pagination_nav,x as checkbox_group_input,k as checkbox_input,oi as date_input,ni as email_input,bc as general_input,yc as number_input,wc as password_input,_c as postalcode_input,xc as radio_input,kc as select_input,Cc as tel_input,Sc as text_input,Tv as time_count,Nv as toggle_checkbox_input,Pv as twofa_input,Ov as ui_image,Fv as ui_skeleton}