@hotosm/ui 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +27 -8
  2. package/dist/chunks/chunk.3LBUXCAP.js +1 -0
  3. package/dist/chunks/{chunk.EOTM323U.js → chunk.7BVHA4G6.js} +1 -1
  4. package/dist/chunks/chunk.7PROWJNJ.js +122 -0
  5. package/dist/chunks/chunk.AL4CJN73.js +1 -0
  6. package/dist/chunks/chunk.ARF626EG.js +59 -0
  7. package/dist/chunks/{chunk.YH5QYI7V.js → chunk.BD4Q32VT.js} +1 -1
  8. package/dist/chunks/chunk.BORCUX2M.js +1 -0
  9. package/dist/chunks/chunk.CQO3GWTI.js +32 -0
  10. package/dist/chunks/chunk.G6ZZSFVM.js +1 -0
  11. package/dist/chunks/{chunk.EYNFK5TH.js → chunk.GEAU3JJH.js} +1 -1
  12. package/dist/chunks/chunk.KO4EOD3I.js +1 -0
  13. package/dist/chunks/{chunk.6TJUNYFL.js → chunk.LHZ7Q2M3.js} +1 -1
  14. package/dist/chunks/{chunk.BB52VMVE.js → chunk.MZOQNTPX.js} +2 -2
  15. package/dist/chunks/chunk.OICCPCO3.js +1 -0
  16. package/dist/chunks/{chunk.VA2JNCZO.js → chunk.ORZ5STBX.js} +1 -1
  17. package/dist/chunks/{chunk.3DAASGWT.js → chunk.PBBH42B6.js} +1 -1
  18. package/dist/chunks/{chunk.LR75BDGN.js → chunk.PLECT4NZ.js} +1 -1
  19. package/dist/chunks/chunk.QABMDRWR.js +28 -0
  20. package/dist/chunks/chunk.SBUFNOMY.js +1 -0
  21. package/dist/chunks/{chunk.G3Z3BOX2.js → chunk.U4AAC5ID.js} +2 -2
  22. package/dist/chunks/chunk.WTTPHBL3.js +105 -0
  23. package/dist/chunks/chunk.XEZQ5ZRE.js +1 -0
  24. package/dist/chunks/chunk.ZETV7TDG.js +25 -0
  25. package/dist/components/consent/consent.component.js +1 -1
  26. package/dist/components/consent/consent.js +1 -1
  27. package/dist/components/consent/consent.styles.js +1 -1
  28. package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -1
  29. package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -1
  30. package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -1
  31. package/dist/components/header/header.component.js +1 -1
  32. package/dist/components/header/header.js +1 -1
  33. package/dist/components/header/header.styles.js +1 -1
  34. package/dist/components/icons.js +1 -1
  35. package/dist/components/list-card/list-card.component.js +1 -1
  36. package/dist/components/list-card/list-card.js +1 -1
  37. package/dist/components/list-card/list-card.styles.js +1 -1
  38. package/dist/components/logo/logo.component.js +1 -1
  39. package/dist/components/logo/logo.js +1 -1
  40. package/dist/components/logo/logo.styles.js +1 -1
  41. package/dist/components/tool-menu/tool-menu.component.d.ts +13 -0
  42. package/dist/components/tool-menu/tool-menu.component.js +1 -0
  43. package/dist/components/tool-menu/tool-menu.d.ts +7 -0
  44. package/dist/components/tool-menu/tool-menu.js +1 -0
  45. package/dist/components/tool-menu/tool-menu.styles.d.ts +1 -0
  46. package/dist/components/tool-menu/tool-menu.styles.js +1 -0
  47. package/dist/components/tracking/tracking.component.js +1 -1
  48. package/dist/components/tracking/tracking.js +1 -1
  49. package/dist/hotosm-ui.d.ts +9 -8
  50. package/dist/hotosm-ui.js +1 -1
  51. package/dist/style.css +5 -3
  52. package/dist/themes/hot-wa.css +3 -3
  53. package/package.json +10 -6
  54. package/dist/chunks/chunk.5AWU5BEU.js +0 -1
  55. package/dist/chunks/chunk.EAG35WPB.js +0 -122
  56. package/dist/chunks/chunk.FBYBLQYY.js +0 -25
  57. package/dist/chunks/chunk.JFO3Z4VS.js +0 -1
  58. package/dist/chunks/chunk.KNTMZWRV.js +0 -28
  59. package/dist/chunks/chunk.L3MJ3UC7.js +0 -1
  60. package/dist/chunks/chunk.M3ZIZPKF.js +0 -1
  61. package/dist/chunks/chunk.OFDFUT7C.js +0 -1
  62. package/dist/chunks/chunk.VNFZXHID.js +0 -1
  63. package/dist/chunks/chunk.XNPNEHIJ.js +0 -1
  64. package/dist/chunks/chunk.ZU62FSGZ.js +0 -105
@@ -1,122 +0,0 @@
1
- import{a as Ue}from"./chunk.FBYBLQYY.js";import{a as Gn}from"./chunk.M3ZIZPKF.js";import{a as Kn,b as Bn}from"./chunk.6TJUNYFL.js";import{d as Re,f as qn}from"./chunk.KNTMZWRV.js";import{d as Te,e as De,f as Me,g as Le}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/tab-group/tab-group.js";import"@awesome.me/webawesome/dist/components/dialog/dialog.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/drawer/drawer.js";var oa={7:function(n,t,e){(function(a,r,i){var c=function(){return c=Object.assign||function(w){for(var b,S=1,C=arguments.length;S<C;S++)for(var M in b=arguments[S])Object.prototype.hasOwnProperty.call(b,M)&&(w[M]=b[M]);return w},c.apply(this,arguments)};function d(w,b){var S=typeof Symbol=="function"&&w[Symbol.iterator];if(!S)return w;var C,M,I=S.call(w),T=[];try{for(;(b===void 0||b-- >0)&&!(C=I.next()).done;)T.push(C.value)}catch(L){M={error:L}}finally{try{C&&!C.done&&(S=I.return)&&S.call(I)}finally{if(M)throw M.error}}return T}function u(w,b){return[w,!w||w.endsWith("/")?"":"/",b,".json"].join("")}function s(w,b){var S=w;return b&&Object.keys(b).forEach((function(C){var M=b[C],I=new RegExp("{".concat(C,"}"),"gm");S=S.replace(I,M.toString())})),S}function l(w,b,S){var C=w[b];if(!C)return S;var M=S.split("."),I="";do{var T=C[I+=M.shift()];T===void 0||typeof T!="object"&&M.length?M.length?I+=".":C=S:(C=T,I="")}while(M.length);return C}var v={},_={root:"",lang:"en",fallbackLang:"en"},m=r.createContext(null);a.TranslateContext=m,a.TranslateProvider=function(w){var b=(function(T,L){T=Object.assign({},_,T),v=L||v;var U=d(i.useState(T.lang),2),H=U[0],G=U[1],$=d(i.useState(v),2),ee=$[0],N=$[1],pe=d(i.useState(!1),2),Ee=pe[0],ke=pe[1],Ce=function(te){if(!ee.hasOwnProperty(te)){ke(!1);var ie=u(T.root,te);fetch(ie).then((function(ue){return ue.json()})).then((function(ue){v[te]=ue,N(c({},v)),ke(!0)})).catch((function(ue){console.log("Aww, snap.",ue),N(c({},v)),ke(!0)}))}};return i.useEffect((function(){Ce(T.fallbackLang),Ce(H)}),[H]),{lang:H,setLang:G,t:function(te,ie){if(!ee.hasOwnProperty(H))return te;var ue=l(ee,H,te);return ue===te&&H!==T.fallbackLang&&(ue=l(ee,T.fallbackLang,te)),s(ue,ie)},isReady:Ee}})({root:w.root||"assets",lang:w.lang||"en",fallbackLang:w.fallbackLang||"en"},w.translations),S=b.t,C=b.setLang,M=b.lang,I=b.isReady;return r.h(m.Provider,{value:{t:S,setLang:C,lang:M,isReady:I}},w.children)},a.format=s,a.getResourceUrl=u,a.getValue=l,Object.defineProperty(a,"__esModule",{value:!0})})(t,e(616),e(78))},633:(n,t)=>{var e;(function(){var a={}.hasOwnProperty;function r(){for(var i=[],c=0;c<arguments.length;c++){var d=arguments[c];if(d){var u=typeof d;if(u==="string"||u==="number")i.push(d);else if(Array.isArray(d)){if(d.length){var s=r.apply(null,d);s&&i.push(s)}}else if(u==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){i.push(d.toString());continue}for(var l in d)a.call(d,l)&&d[l]&&i.push(l)}}}return i.join(" ")}n.exports?(r.default=r,n.exports=r):(e=function(){return r}.apply(t,[]))===void 0||(n.exports=e)})()},21:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,'.hanko_accordion{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);width:100%;overflow:hidden}.hanko_accordion .hanko_accordionItem{color:var(--color, #333333);margin:.25rem 0;overflow:hidden}.hanko_accordion .hanko_accordionItem.hanko_dropdown{margin:0}.hanko_accordion .hanko_accordionItem .hanko_label{border-radius:var(--border-radius, 8px);border-style:none;height:var(--item-height, 42px);background:var(--background-color, white);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;margin:0;cursor:pointer;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText .hanko_description{color:var(--color-shade-1, #8f9095)}.hanko_accordion .hanko_accordionItem .hanko_label.hanko_dropdown{margin:0;color:var(--link-color, #506cf0);justify-content:flex-start}.hanko_accordion .hanko_accordionItem .hanko_label:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb)}.hanko_accordion .hanko_accordionItem .hanko_label:hover .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_label:hover.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_label:not(.hanko_dropdown)::after{content:"\u276F";width:1rem;text-align:center;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionInput{position:absolute;opacity:0;z-index:-1}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label:not(.hanko_dropdown)::after{transform:rotate(90deg)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label~.hanko_accordionContent{margin:.25rem 1rem;opacity:1;max-height:100vh}.hanko_accordion .hanko_accordionItem .hanko_accordionContent{max-height:0;margin:0 1rem;opacity:0;overflow:hidden;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionContent.hanko_dropdownContent{border-style:none}',""]),c.locals={accordion:"hanko_accordion",accordionItem:"hanko_accordionItem",dropdown:"hanko_dropdown",label:"hanko_label",labelText:"hanko_labelText",description:"hanko_description",accordionInput:"hanko_accordionInput",accordionContent:"hanko_accordionContent",dropdownContent:"hanko_dropdownContent"};let d=c},905:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_errorBox{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);color:var(--error-color, #e82020);background:var(--background-color, white);margin:var(--item-margin, 0.5rem 0);display:flex;align-items:start;box-sizing:border-box;line-height:1.5rem;padding:.25em;gap:.2em}.hanko_errorBox>span{display:inline-flex}.hanko_errorBox>span:first-child{padding:.25em 0 .25em .19em}.hanko_errorBox[hidden]{display:none}.hanko_errorMessage{color:var(--error-color, #e82020)}",""]),c.locals={errorBox:"hanko_errorBox",errorMessage:"hanko_errorMessage"};let d=c},577:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,'.hanko_form{display:flex;flex-grow:1}.hanko_form .hanko_ul{flex-grow:1;margin:var(--item-margin, 0.5rem 0);padding-inline-start:0;list-style-type:none;display:flex;flex-wrap:wrap;gap:1em}.hanko_form .hanko_li{display:flex;max-width:100%;flex-grow:1;flex-basis:min-content}.hanko_form .hanko_li.hanko_maxWidth{min-width:100%}.hanko_button{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);white-space:nowrap;width:100%;min-width:var(--button-min-width, 7em);min-height:var(--item-height, 42px);outline:none;cursor:pointer;transition:.1s ease-out;flex-grow:1;flex-shrink:1;display:inline-flex;position:relative}.hanko_button[data-bubble]:before{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);padding:2px 8px;font-size:9px;line-height:normal;content:attr(data-bubble);display:block;position:absolute;bottom:80%;left:80%;white-space:nowrap;width:max-content;text-align:center;background-color:inherit;color:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color-shade-1, #6b84fb)}.hanko_button:disabled{cursor:default}.hanko_button.hanko_primary{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--brand-color, #506cf0);justify-content:center}.hanko_button.hanko_primary:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_primary:focus{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--color, #333333)}.hanko_button.hanko_primary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-2, #e5e6ef)}.hanko_button.hanko_secondary{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--color-shade-1, #8f9095);justify-content:center}.hanko_button.hanko_secondary:hover{color:var(--color, #333333);background:var(--color-shade-2, #e5e6ef);border-color:var(--color, #333333)}.hanko_button.hanko_secondary:focus{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_secondary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_button.hanko_dangerous{color:var(--error-color, #e82020);background:var(--background-color, white);border-color:var(--error-color, #e82020);flex-grow:0;width:auto}.hanko_caption{flex-wrap:wrap;display:flex;justify-content:space-between;align-items:baseline}.hanko_inputWrapper{flex-grow:1;position:relative;display:flex;min-width:var(--input-min-width, 14em);max-width:100%}.hanko_input{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);height:var(--item-height, 42px);color:var(--color, #333333);border-color:var(--color-shade-1, #8f9095);background:var(--background-color, white);padding:0 .5rem;outline:none;width:100%;box-sizing:border-box;transition:.1s ease-out}.hanko_input.hanko_error{border-color:var(--error-color, #e82020)}.hanko_input:-webkit-autofill,.hanko_input:-webkit-autofill:hover,.hanko_input:-webkit-autofill:focus{-webkit-text-fill-color:var(--color, #333333);-webkit-box-shadow:0 0 0 50px var(--background-color, white) inset}.hanko_input::-ms-reveal,.hanko_input::-ms-clear{display:none}.hanko_input::placeholder{color:var(--color-shade-1, #8f9095)}.hanko_input:focus{color:var(--color, #333333);border-color:var(--color, #333333)}.hanko_input:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_passcodeInputWrapper{flex-grow:1;min-width:var(--input-min-width, 14em);max-width:fit-content;position:relative;display:flex;justify-content:space-between}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper{flex-grow:1;margin:0 .5rem 0 0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper:last-child{margin:0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper .hanko_input{text-align:center}.hanko_checkboxWrapper{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);align-items:center;display:flex}.hanko_checkboxWrapper .hanko_label{color:inherit;padding-left:.5rem;cursor:pointer}.hanko_checkboxWrapper .hanko_label.hanko_disabled{cursor:default;color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox{border:currentColor solid 1px;border-radius:.15em;appearance:none;-webkit-appearance:none;width:1.1rem;height:1.1rem;margin:0;color:currentColor;background-color:var(--background-color, white);font:inherit;box-shadow:none;display:inline-flex;place-content:center;cursor:pointer}.hanko_checkboxWrapper .hanko_checkbox:checked{background-color:var(--color, #333333)}.hanko_checkboxWrapper .hanko_checkbox:disabled{cursor:default;background-color:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox:checked:after{content:"\u2713";color:var(--background-color, white);position:absolute;line-height:1.1rem}.hanko_checkboxWrapper .hanko_checkbox:disabled:after{color:var(--color-shade-1, #8f9095)}',""]),c.locals={form:"hanko_form",ul:"hanko_ul",li:"hanko_li",maxWidth:"hanko_maxWidth",button:"hanko_button",primary:"hanko_primary",secondary:"hanko_secondary",dangerous:"hanko_dangerous",caption:"hanko_caption",inputWrapper:"hanko_inputWrapper",input:"hanko_input",error:"hanko_error",passcodeInputWrapper:"hanko_passcodeInputWrapper",passcodeDigitWrapper:"hanko_passcodeDigitWrapper",checkboxWrapper:"hanko_checkboxWrapper",label:"hanko_label",disabled:"hanko_disabled",checkbox:"hanko_checkbox"};let d=c},619:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_headline{color:var(--color, #333333);font-family:var(--font-family, sans-serif);text-align:left;letter-spacing:0;font-style:normal;line-height:1.1}.hanko_headline.hanko_grade1{font-size:var(--headline1-font-size, 24px);font-weight:var(--headline1-font-weight, 600);margin:var(--headline1-margin, 0 0 0.5rem)}.hanko_headline.hanko_grade2{font-size:var(--headline2-font-size, 16px);font-weight:var(--headline2-font-weight, 600);margin:var(--headline2-margin, 1rem 0 0.5rem)}",""]),c.locals={headline:"hanko_headline",grade1:"hanko_grade1",grade2:"hanko_grade2"};let d=c},697:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_icon,.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,.hanko_exclamationMark,.hanko_checkmark{display:inline-block;fill:var(--brand-contrast-color, white);width:18px}.hanko_icon.hanko_secondary,.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,.hanko_secondary.hanko_exclamationMark,.hanko_secondary.hanko_checkmark{fill:var(--color, #333333)}.hanko_icon.hanko_disabled,.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,.hanko_disabled.hanko_exclamationMark,.hanko_disabled.hanko_checkmark{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark{fill:var(--brand-color, #506cf0)}.hanko_checkmark.hanko_secondary{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark.hanko_fadeOut{animation:hanko_fadeOut ease-out 1.5s forwards !important}@keyframes hanko_fadeOut{0%{opacity:1}100%{opacity:0}}.hanko_exclamationMark{fill:var(--error-color, #e82020)}.hanko_loadingSpinnerWrapperIcon{width:100%;column-gap:10px;margin-left:10px}.hanko_loadingSpinnerWrapper,.hanko_loadingSpinnerWrapperIcon{display:inline-flex;align-items:center;height:100%;margin:0 5px;justify-content:inherit;flex-wrap:inherit}.hanko_loadingSpinnerWrapper.hanko_centerContent,.hanko_centerContent.hanko_loadingSpinnerWrapperIcon{justify-content:center}.hanko_loadingSpinnerWrapper.hanko_maxWidth,.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon{width:100%}.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner{fill:var(--brand-color, #506cf0);animation:hanko_spin 500ms ease-in-out infinite}.hanko_loadingSpinnerWrapper.hanko_secondary,.hanko_secondary.hanko_loadingSpinnerWrapperIcon{fill:var(--color-shade-1, #8f9095)}@keyframes hanko_spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hanko_googleIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_googleIcon.hanko_blue{fill:#4285f4}.hanko_googleIcon.hanko_green{fill:#34a853}.hanko_googleIcon.hanko_yellow{fill:#fbbc05}.hanko_googleIcon.hanko_red{fill:#ea4335}.hanko_microsoftIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_microsoftIcon.hanko_blue{fill:#00a4ef}.hanko_microsoftIcon.hanko_green{fill:#7fba00}.hanko_microsoftIcon.hanko_yellow{fill:#ffb900}.hanko_microsoftIcon.hanko_red{fill:#f25022}.hanko_facebookIcon.hanko_outline{fill:#0866ff}.hanko_facebookIcon.hanko_disabledOutline{fill:var(--color-shade-1, #8f9095)}.hanko_facebookIcon.hanko_letter{fill:#fff}.hanko_facebookIcon.hanko_disabledLetter{fill:var(--color-shade-2, #e5e6ef)}",""]),c.locals={icon:"hanko_icon",loadingSpinnerWrapper:"hanko_loadingSpinnerWrapper",loadingSpinner:"hanko_loadingSpinner",loadingSpinnerWrapperIcon:"hanko_loadingSpinnerWrapperIcon",exclamationMark:"hanko_exclamationMark",checkmark:"hanko_checkmark",secondary:"hanko_secondary",disabled:"hanko_disabled",fadeOut:"hanko_fadeOut",centerContent:"hanko_centerContent",maxWidth:"hanko_maxWidth",spin:"hanko_spin",googleIcon:"hanko_googleIcon",blue:"hanko_blue",green:"hanko_green",yellow:"hanko_yellow",red:"hanko_red",microsoftIcon:"hanko_microsoftIcon",facebookIcon:"hanko_facebookIcon",outline:"hanko_outline",disabledOutline:"hanko_disabledOutline",letter:"hanko_letter",disabledLetter:"hanko_disabledLetter"};let d=c},995:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_link{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--link-color, #506cf0);text-decoration:var(--link-text-decoration, none);cursor:pointer;background:none !important;border:none;padding:0 !important;transition:all .1s}.hanko_link:hover{text-decoration:var(--link-text-decoration-hover, underline)}.hanko_link:disabled{color:var(--color, #333333) !important;pointer-events:none;cursor:default}.hanko_link.hanko_danger{color:var(--error-color, #e82020)}.hanko_linkWrapper{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;overflow:hidden}.hanko_linkWrapper.hanko_reverse{flex-direction:row-reverse}",""]),c.locals={link:"hanko_link",danger:"hanko_danger",linkWrapper:"hanko_linkWrapper",reverse:"hanko_reverse"};let d=c},560:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_otpCreationDetails{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:smaller}",""]),c.locals={otpCreationDetails:"hanko_otpCreationDetails"};let d=c},489:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_paragraph{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);text-align:left;word-break:break-word}.hanko_paragraph.hanko_center{align-items:center}.hanko_paragraph.hanko_column{display:flex;flex-direction:column;width:100%}",""]),c.locals={paragraph:"hanko_paragraph",center:"hanko_center",column:"hanko_column"};let d=c},111:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_spacer{height:1em}.hanko_divider{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);display:flex;visibility:var(--divider-visibility, visible);color:var(--color-shade-1, #8f9095);margin:var(--item-margin, 0.5rem 0);padding:.5em 0}.hanko_divider .hanko_line{border-bottom-style:var(--border-style, solid);border-bottom-width:var(--border-width, 1px);color:inherit;font:inherit;width:100%}.hanko_divider .hanko_text{font:inherit;color:inherit;background:var(--background-color, white);padding:var(--divider-padding, 0 42px);line-height:.1em}",""]),c.locals={spacer:"hanko_spacer",divider:"hanko_divider",line:"hanko_line",text:"hanko_text"};let d=c},914:(n,t,e)=>{e.d(t,{A:()=>d});var a=e(645),r=e.n(a),i=e(278),c=e.n(i)()(r());c.push([n.id,".hanko_container{background-color:var(--background-color, white);padding:var(--container-padding, 30px);max-width:var(--container-max-width, 410px);display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:flex-start;box-sizing:border-box}.hanko_content{box-sizing:border-box;flex:0 1 auto;width:100%;height:100%}.hanko_footer{padding:.5rem 0 0;box-sizing:border-box;width:100%}.hanko_footer :nth-child(1){float:left}.hanko_footer :nth-child(2){float:right}.hanko_clipboardContainer{display:flex}.hanko_clipboardIcon{display:flex;margin:auto;cursor:pointer}",""]),c.locals={container:"hanko_container",content:"hanko_content",footer:"hanko_footer",clipboardContainer:"hanko_clipboardContainer",clipboardIcon:"hanko_clipboardIcon"};let d=c},278:n=>{n.exports=function(t){var e=[];return e.toString=function(){return this.map((function(a){var r="",i=a[5]!==void 0;return a[4]&&(r+="@supports (".concat(a[4],") {")),a[2]&&(r+="@media ".concat(a[2]," {")),i&&(r+="@layer".concat(a[5].length>0?" ".concat(a[5]):""," {")),r+=t(a),i&&(r+="}"),a[2]&&(r+="}"),a[4]&&(r+="}"),r})).join("")},e.i=function(a,r,i,c,d){typeof a=="string"&&(a=[[null,a,void 0]]);var u={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];l!=null&&(u[l]=!0)}for(var v=0;v<a.length;v++){var _=[].concat(a[v]);i&&u[_[0]]||(d!==void 0&&(_[5]===void 0||(_[1]="@layer".concat(_[5].length>0?" ".concat(_[5]):""," {").concat(_[1],"}")),_[5]=d),r&&(_[2]&&(_[1]="@media ".concat(_[2]," {").concat(_[1],"}")),_[2]=r),c&&(_[4]?(_[1]="@supports (".concat(_[4],") {").concat(_[1],"}"),_[4]=c):_[4]="".concat(c)),e.push(_))}},e}},645:n=>{n.exports=function(t){return t[1]}},616:(n,t,e)=>{e.r(t),e.d(t,{Component:()=>L,Fragment:()=>T,cloneElement:()=>qe,createContext:()=>Ke,createElement:()=>C,createRef:()=>I,h:()=>C,hydrate:()=>ze,isValidElement:()=>c,options:()=>r,render:()=>se,toChildArray:()=>pe});var a,r,i,c,d,u,s,l,v,_={},m=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(h,p){for(var y in p)h[y]=p[y];return h}function S(h){var p=h.parentNode;p&&p.removeChild(h)}function C(h,p,y){var O,D,A,R={};for(A in p)A=="key"?O=p[A]:A=="ref"?D=p[A]:R[A]=p[A];if(arguments.length>2&&(R.children=arguments.length>3?a.call(arguments,2):y),typeof h=="function"&&h.defaultProps!=null)for(A in h.defaultProps)R[A]===void 0&&(R[A]=h.defaultProps[A]);return M(h,R,O,D,null)}function M(h,p,y,O,D){var A={type:h,props:p,key:y,ref:O,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:D==null?++i:D};return D==null&&r.vnode!=null&&r.vnode(A),A}function I(){return{current:null}}function T(h){return h.children}function L(h,p){this.props=h,this.context=p}function U(h,p){if(p==null)return h.__?U(h.__,h.__.__k.indexOf(h)+1):null;for(var y;p<h.__k.length;p++)if((y=h.__k[p])!=null&&y.__e!=null)return y.__e;return typeof h.type=="function"?U(h):null}function H(h){var p,y;if((h=h.__)!=null&&h.__c!=null){for(h.__e=h.__c.base=null,p=0;p<h.__k.length;p++)if((y=h.__k[p])!=null&&y.__e!=null){h.__e=h.__c.base=y.__e;break}return H(h)}}function G(h){(!h.__d&&(h.__d=!0)&&d.push(h)&&!$.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)($)}function $(){var h,p,y,O,D,A,R,ne;for(d.sort(l);h=d.shift();)h.__d&&(p=d.length,O=void 0,D=void 0,R=(A=(y=h).__v).__e,(ne=y.__P)&&(O=[],(D=b({},A)).__v=A.__v+1,Ye(ne,A,D,y.__n,ne.ownerSVGElement!==void 0,A.__h!=null?[R]:null,O,R==null?U(A):R,A.__h),P(O,A),A.__e!=R&&H(A)),d.length>p&&d.sort(l));$.__r=0}function ee(h,p,y,O,D,A,R,ne,ce,fe){var k,_e,V,W,J,Qe,re,me=O&&O.__k||m,je=me.length;for(y.__k=[],k=0;k<p.length;k++)if((W=y.__k[k]=(W=p[k])==null||typeof W=="boolean"||typeof W=="function"?null:typeof W=="string"||typeof W=="number"||typeof W=="bigint"?M(null,W,null,null,W):Array.isArray(W)?M(T,{children:W},null,null,null):W.__b>0?M(W.type,W.props,W.key,W.ref?W.ref:null,W.__v):W)!=null){if(W.__=y,W.__b=y.__b+1,(V=me[k])===null||V&&W.key==V.key&&W.type===V.type)me[k]=void 0;else for(_e=0;_e<je;_e++){if((V=me[_e])&&W.key==V.key&&W.type===V.type){me[_e]=void 0;break}V=null}Ye(h,W,V=V||_,D,A,R,ne,ce,fe),J=W.__e,(_e=W.ref)&&V.ref!=_e&&(re||(re=[]),V.ref&&re.push(V.ref,null,W),re.push(_e,W.__c||J,W)),J!=null?(Qe==null&&(Qe=J),typeof W.type=="function"&&W.__k===V.__k?W.__d=ce=N(W,ce,h):ce=Ee(h,W,V,me,J,ce),typeof y.type=="function"&&(y.__d=ce)):ce&&V.__e==ce&&ce.parentNode!=h&&(ce=U(V))}for(y.__e=Qe,k=je;k--;)me[k]!=null&&(typeof y.type=="function"&&me[k].__e!=null&&me[k].__e==y.__d&&(y.__d=ke(O).nextSibling),z(me[k],me[k]));if(re)for(k=0;k<re.length;k++)g(re[k],re[++k],re[++k])}function N(h,p,y){for(var O,D=h.__k,A=0;D&&A<D.length;A++)(O=D[A])&&(O.__=h,p=typeof O.type=="function"?N(O,p,y):Ee(y,O,O,D,O.__e,p));return p}function pe(h,p){return p=p||[],h==null||typeof h=="boolean"||(Array.isArray(h)?h.some((function(y){pe(y,p)})):p.push(h)),p}function Ee(h,p,y,O,D,A){var R,ne,ce;if(p.__d!==void 0)R=p.__d,p.__d=void 0;else if(y==null||D!=A||D.parentNode==null)e:if(A==null||A.parentNode!==h)h.appendChild(D),R=null;else{for(ne=A,ce=0;(ne=ne.nextSibling)&&ce<O.length;ce+=1)if(ne==D)break e;h.insertBefore(D,A),R=A}return R!==void 0?R:D.nextSibling}function ke(h){var p,y,O;if(h.type==null||typeof h.type=="string")return h.__e;if(h.__k){for(p=h.__k.length-1;p>=0;p--)if((y=h.__k[p])&&(O=ke(y)))return O}return null}function Ce(h,p,y){p[0]==="-"?h.setProperty(p,y==null?"":y):h[p]=y==null?"":typeof y!="number"||w.test(p)?y:y+"px"}function te(h,p,y,O,D){var A;e:if(p==="style")if(typeof y=="string")h.style.cssText=y;else{if(typeof O=="string"&&(h.style.cssText=O=""),O)for(p in O)y&&p in y||Ce(h.style,p,"");if(y)for(p in y)O&&y[p]===O[p]||Ce(h.style,p,y[p])}else if(p[0]==="o"&&p[1]==="n")A=p!==(p=p.replace(/Capture$/,"")),p=p.toLowerCase()in h?p.toLowerCase().slice(2):p.slice(2),h.l||(h.l={}),h.l[p+A]=y,y?O||h.addEventListener(p,A?ue:ie,A):h.removeEventListener(p,A?ue:ie,A);else if(p!=="dangerouslySetInnerHTML"){if(D)p=p.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(p!=="width"&&p!=="height"&&p!=="href"&&p!=="list"&&p!=="form"&&p!=="tabIndex"&&p!=="download"&&p in h)try{h[p]=y==null?"":y;break e}catch(R){}typeof y=="function"||(y==null||y===!1&&p.indexOf("-")==-1?h.removeAttribute(p):h.setAttribute(p,y))}}function ie(h){return this.l[h.type+!1](r.event?r.event(h):h)}function ue(h){return this.l[h.type+!0](r.event?r.event(h):h)}function Ye(h,p,y,O,D,A,R,ne,ce){var fe,k,_e,V,W,J,Qe,re,me,je,tt,he,Hn,Ot,At,We=p.type;if(p.constructor!==void 0)return null;y.__h!=null&&(ce=y.__h,ne=p.__e=y.__e,p.__h=null,A=[ne]),(fe=r.__b)&&fe(p);try{e:if(typeof We=="function"){if(re=p.props,me=(fe=We.contextType)&&O[fe.__c],je=fe?me?me.props.value:fe.__:O,y.__c?Qe=(k=p.__c=y.__c).__=k.__E:("prototype"in We&&We.prototype.render?p.__c=k=new We(re,je):(p.__c=k=new L(re,je),k.constructor=We,k.render=de),me&&me.sub(k),k.props=re,k.state||(k.state={}),k.context=je,k.__n=O,_e=k.__d=!0,k.__h=[],k._sb=[]),k.__s==null&&(k.__s=k.state),We.getDerivedStateFromProps!=null&&(k.__s==k.state&&(k.__s=b({},k.__s)),b(k.__s,We.getDerivedStateFromProps(re,k.__s))),V=k.props,W=k.state,k.__v=p,_e)We.getDerivedStateFromProps==null&&k.componentWillMount!=null&&k.componentWillMount(),k.componentDidMount!=null&&k.__h.push(k.componentDidMount);else{if(We.getDerivedStateFromProps==null&&re!==V&&k.componentWillReceiveProps!=null&&k.componentWillReceiveProps(re,je),!k.__e&&k.shouldComponentUpdate!=null&&k.shouldComponentUpdate(re,k.__s,je)===!1||p.__v===y.__v){for(p.__v!==y.__v&&(k.props=re,k.state=k.__s,k.__d=!1),k.__e=!1,p.__e=y.__e,p.__k=y.__k,p.__k.forEach((function(It){It&&(It.__=p)})),tt=0;tt<k._sb.length;tt++)k.__h.push(k._sb[tt]);k._sb=[],k.__h.length&&R.push(k);break e}k.componentWillUpdate!=null&&k.componentWillUpdate(re,k.__s,je),k.componentDidUpdate!=null&&k.__h.push((function(){k.componentDidUpdate(V,W,J)}))}if(k.context=je,k.props=re,k.__P=h,he=r.__r,Hn=0,"prototype"in We&&We.prototype.render){for(k.state=k.__s,k.__d=!1,he&&he(p),fe=k.render(k.props,k.state,k.context),Ot=0;Ot<k._sb.length;Ot++)k.__h.push(k._sb[Ot]);k._sb=[]}else do k.__d=!1,he&&he(p),fe=k.render(k.props,k.state,k.context),k.state=k.__s;while(k.__d&&++Hn<25);k.state=k.__s,k.getChildContext!=null&&(O=b(b({},O),k.getChildContext())),_e||k.getSnapshotBeforeUpdate==null||(J=k.getSnapshotBeforeUpdate(V,W)),At=fe!=null&&fe.type===T&&fe.key==null?fe.props.children:fe,ee(h,Array.isArray(At)?At:[At],p,y,O,D,A,R,ne,ce),k.base=p.__e,p.__h=null,k.__h.length&&R.push(k),Qe&&(k.__E=k.__=null),k.__e=!1}else A==null&&p.__v===y.__v?(p.__k=y.__k,p.__e=y.__e):p.__e=E(y.__e,p,y,O,D,A,R,ce);(fe=r.diffed)&&fe(p)}catch(It){p.__v=null,(ce||A!=null)&&(p.__e=ne,p.__h=!!ce,A[A.indexOf(ne)]=null),r.__e(It,p,y)}}function P(h,p){r.__c&&r.__c(p,h),h.some((function(y){try{h=y.__h,y.__h=[],h.some((function(O){O.call(y)}))}catch(O){r.__e(O,y.__v)}}))}function E(h,p,y,O,D,A,R,ne){var ce,fe,k,_e=y.props,V=p.props,W=p.type,J=0;if(W==="svg"&&(D=!0),A!=null){for(;J<A.length;J++)if((ce=A[J])&&"setAttribute"in ce==!!W&&(W?ce.localName===W:ce.nodeType===3)){h=ce,A[J]=null;break}}if(h==null){if(W===null)return document.createTextNode(V);h=D?document.createElementNS("http://www.w3.org/2000/svg",W):document.createElement(W,V.is&&V),A=null,ne=!1}if(W===null)_e===V||ne&&h.data===V||(h.data=V);else{if(A=A&&a.call(h.childNodes),fe=(_e=y.props||_).dangerouslySetInnerHTML,k=V.dangerouslySetInnerHTML,!ne){if(A!=null)for(_e={},J=0;J<h.attributes.length;J++)_e[h.attributes[J].name]=h.attributes[J].value;(k||fe)&&(k&&(fe&&k.__html==fe.__html||k.__html===h.innerHTML)||(h.innerHTML=k&&k.__html||""))}if((function(Qe,re,me,je,tt){var he;for(he in me)he==="children"||he==="key"||he in re||te(Qe,he,null,me[he],je);for(he in re)tt&&typeof re[he]!="function"||he==="children"||he==="key"||he==="value"||he==="checked"||me[he]===re[he]||te(Qe,he,re[he],me[he],je)})(h,V,_e,D,ne),k)p.__k=[];else if(J=p.props.children,ee(h,Array.isArray(J)?J:[J],p,y,O,D&&W!=="foreignObject",A,R,A?A[0]:y.__k&&U(y,0),ne),A!=null)for(J=A.length;J--;)A[J]!=null&&S(A[J]);ne||("value"in V&&(J=V.value)!==void 0&&(J!==h.value||W==="progress"&&!J||W==="option"&&J!==_e.value)&&te(h,"value",J,_e.value,!1),"checked"in V&&(J=V.checked)!==void 0&&J!==h.checked&&te(h,"checked",J,_e.checked,!1))}return h}function g(h,p,y){try{typeof h=="function"?h(p):h.current=p}catch(O){r.__e(O,y)}}function z(h,p,y){var O,D;if(r.unmount&&r.unmount(h),(O=h.ref)&&(O.current&&O.current!==h.__e||g(O,null,p)),(O=h.__c)!=null){if(O.componentWillUnmount)try{O.componentWillUnmount()}catch(A){r.__e(A,p)}O.base=O.__P=null,h.__c=void 0}if(O=h.__k)for(D=0;D<O.length;D++)O[D]&&z(O[D],p,y||typeof h.type!="function");y||h.__e==null||S(h.__e),h.__=h.__e=h.__d=void 0}function de(h,p,y){return this.constructor(h,y)}function se(h,p,y){var O,D,A;r.__&&r.__(h,p),D=(O=typeof y=="function")?null:y&&y.__k||p.__k,A=[],Ye(p,h=(!O&&y||p).__k=C(T,null,[h]),D||_,_,p.ownerSVGElement!==void 0,!O&&y?[y]:D?null:p.firstChild?a.call(p.childNodes):null,A,!O&&y?y:D?D.__e:p.firstChild,O),P(A,h)}function ze(h,p){se(h,p,ze)}function qe(h,p,y){var O,D,A,R=b({},h.props);for(A in p)A=="key"?O=p[A]:A=="ref"?D=p[A]:R[A]=p[A];return arguments.length>2&&(R.children=arguments.length>3?a.call(arguments,2):y),M(h.type,R,O||h.key,D||h.ref,null)}function Ke(h,p){var y={__c:p="__cC"+v++,__:h,Consumer:function(O,D){return O.children(D)},Provider:function(O){var D,A;return this.getChildContext||(D=[],(A={})[p]=this,this.getChildContext=function(){return A},this.shouldComponentUpdate=function(R){this.props.value!==R.value&&D.some((function(ne){ne.__e=!0,G(ne)}))},this.sub=function(R){D.push(R);var ne=R.componentWillUnmount;R.componentWillUnmount=function(){D.splice(D.indexOf(R),1),ne&&ne.call(R)}}),O.children}};return y.Provider.__=y.Consumer.contextType=y}a=m.slice,r={__e:function(h,p,y,O){for(var D,A,R;p=p.__;)if((D=p.__c)&&!D.__)try{if((A=D.constructor)&&A.getDerivedStateFromError!=null&&(D.setState(A.getDerivedStateFromError(h)),R=D.__d),D.componentDidCatch!=null&&(D.componentDidCatch(h,O||{}),R=D.__d),R)return D.__E=D}catch(ne){h=ne}throw h}},i=0,c=function(h){return h!=null&&h.constructor===void 0},L.prototype.setState=function(h,p){var y;y=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof h=="function"&&(h=h(b({},y),this.props)),h&&b(y,h),h!=null&&this.__v&&(p&&this._sb.push(p),G(this))},L.prototype.forceUpdate=function(h){this.__v&&(this.__e=!0,h&&this.__h.push(h),G(this))},L.prototype.render=T,d=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(h,p){return h.__v.__b-p.__v.__b},$.__r=0,v=0},78:(n,t,e)=>{e.r(t),e.d(t,{useCallback:()=>G,useContext:()=>$,useDebugValue:()=>ee,useEffect:()=>I,useErrorBoundary:()=>N,useId:()=>pe,useImperativeHandle:()=>U,useLayoutEffect:()=>T,useMemo:()=>H,useReducer:()=>M,useRef:()=>L,useState:()=>C});var a,r,i,c,d=e(616),u=0,s=[],l=[],v=d.options.__b,_=d.options.__r,m=d.options.diffed,w=d.options.__c,b=d.options.unmount;function S(P,E){d.options.__h&&d.options.__h(r,P,u||E),u=0;var g=r.__H||(r.__H={__:[],__h:[]});return P>=g.__.length&&g.__.push({__V:l}),g.__[P]}function C(P){return u=1,M(Ye,P)}function M(P,E,g){var z=S(a++,2);if(z.t=P,!z.__c&&(z.__=[g?g(E):Ye(void 0,E),function(qe){var Ke=z.__N?z.__N[0]:z.__[0],h=z.t(Ke,qe);Ke!==h&&(z.__N=[h,z.__[1]],z.__c.setState({}))}],z.__c=r,!r.u)){var de=function(qe,Ke,h){if(!z.__c.__H)return!0;var p=z.__c.__H.__.filter((function(O){return O.__c}));if(p.every((function(O){return!O.__N})))return!se||se.call(this,qe,Ke,h);var y=!1;return p.forEach((function(O){if(O.__N){var D=O.__[0];O.__=O.__N,O.__N=void 0,D!==O.__[0]&&(y=!0)}})),!(!y&&z.__c.props===qe)&&(!se||se.call(this,qe,Ke,h))};r.u=!0;var se=r.shouldComponentUpdate,ze=r.componentWillUpdate;r.componentWillUpdate=function(qe,Ke,h){if(this.__e){var p=se;se=void 0,de(qe,Ke,h),se=p}ze&&ze.call(this,qe,Ke,h)},r.shouldComponentUpdate=de}return z.__N||z.__}function I(P,E){var g=S(a++,3);!d.options.__s&&ue(g.__H,E)&&(g.__=P,g.i=E,r.__H.__h.push(g))}function T(P,E){var g=S(a++,4);!d.options.__s&&ue(g.__H,E)&&(g.__=P,g.i=E,r.__h.push(g))}function L(P){return u=5,H((function(){return{current:P}}),[])}function U(P,E,g){u=6,T((function(){return typeof P=="function"?(P(E()),function(){return P(null)}):P?(P.current=E(),function(){return P.current=null}):void 0}),g==null?g:g.concat(P))}function H(P,E){var g=S(a++,7);return ue(g.__H,E)?(g.__V=P(),g.i=E,g.__h=P,g.__V):g.__}function G(P,E){return u=8,H((function(){return P}),E)}function $(P){var E=r.context[P.__c],g=S(a++,9);return g.c=P,E?(g.__==null&&(g.__=!0,E.sub(r)),E.props.value):P.__}function ee(P,E){d.options.useDebugValue&&d.options.useDebugValue(E?E(P):P)}function N(P){var E=S(a++,10),g=C();return E.__=P,r.componentDidCatch||(r.componentDidCatch=function(z,de){E.__&&E.__(z,de),g[1](z)}),[g[0],function(){g[1](void 0)}]}function pe(){var P=S(a++,11);if(!P.__){for(var E=r.__v;E!==null&&!E.__m&&E.__!==null;)E=E.__;var g=E.__m||(E.__m=[0,0]);P.__="P"+g[0]+"-"+g[1]++}return P.__}function Ee(){for(var P;P=s.shift();)if(P.__P&&P.__H)try{P.__H.__h.forEach(te),P.__H.__h.forEach(ie),P.__H.__h=[]}catch(E){P.__H.__h=[],d.options.__e(E,P.__v)}}d.options.__b=function(P){r=null,v&&v(P)},d.options.__r=function(P){_&&_(P),a=0;var E=(r=P.__c).__H;E&&(i===r?(E.__h=[],r.__h=[],E.__.forEach((function(g){g.__N&&(g.__=g.__N),g.__V=l,g.__N=g.i=void 0}))):(E.__h.forEach(te),E.__h.forEach(ie),E.__h=[])),i=r},d.options.diffed=function(P){m&&m(P);var E=P.__c;E&&E.__H&&(E.__H.__h.length&&(s.push(E)!==1&&c===d.options.requestAnimationFrame||((c=d.options.requestAnimationFrame)||Ce)(Ee)),E.__H.__.forEach((function(g){g.i&&(g.__H=g.i),g.__V!==l&&(g.__=g.__V),g.i=void 0,g.__V=l}))),i=r=null},d.options.__c=function(P,E){E.some((function(g){try{g.__h.forEach(te),g.__h=g.__h.filter((function(z){return!z.__||ie(z)}))}catch(z){E.some((function(de){de.__h&&(de.__h=[])})),E=[],d.options.__e(z,g.__v)}})),w&&w(P,E)},d.options.unmount=function(P){b&&b(P);var E,g=P.__c;g&&g.__H&&(g.__H.__.forEach((function(z){try{te(z)}catch(de){E=de}})),g.__H=void 0,E&&d.options.__e(E,g.__v))};var ke=typeof requestAnimationFrame=="function";function Ce(P){var E,g=function(){clearTimeout(z),ke&&cancelAnimationFrame(E),setTimeout(P)},z=setTimeout(g,100);ke&&(E=requestAnimationFrame(g))}function te(P){var E=r,g=P.__c;typeof g=="function"&&(P.__c=void 0,g()),r=E}function ie(P){var E=r;P.__c=P.__(),r=E}function ue(P,E){return!P||P.length!==E.length||E.some((function(g,z){return g!==P[z]}))}function Ye(P,E){return typeof E=="function"?E(P):E}},292:n=>{var t=[];function e(i){for(var c=-1,d=0;d<t.length;d++)if(t[d].identifier===i){c=d;break}return c}function a(i,c){for(var d={},u=[],s=0;s<i.length;s++){var l=i[s],v=c.base?l[0]+c.base:l[0],_=d[v]||0,m="".concat(v," ").concat(_);d[v]=_+1;var w=e(m),b={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(w!==-1)t[w].references++,t[w].updater(b);else{var S=r(b,c);c.byIndex=s,t.splice(s,0,{identifier:m,updater:S,references:1})}u.push(m)}return u}function r(i,c){var d=c.domAPI(c);return d.update(i),function(u){if(u){if(u.css===i.css&&u.media===i.media&&u.sourceMap===i.sourceMap&&u.supports===i.supports&&u.layer===i.layer)return;d.update(i=u)}else d.remove()}}n.exports=function(i,c){var d=a(i=i||[],c=c||{});return function(u){u=u||[];for(var s=0;s<d.length;s++){var l=e(d[s]);t[l].references--}for(var v=a(u,c),_=0;_<d.length;_++){var m=e(d[_]);t[m].references===0&&(t[m].updater(),t.splice(m,1))}d=v}}},88:n=>{n.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},884:(n,t,e)=>{n.exports=function(a){var r=e.nc;r&&a.setAttribute("nonce",r)}},360:n=>{var t,e=(t=[],function(i,c){return t[i]=c,t.filter(Boolean).join(`
2
- `)});function a(i,c,d,u){var s;if(d)s="";else{s="",u.supports&&(s+="@supports (".concat(u.supports,") {")),u.media&&(s+="@media ".concat(u.media," {"));var l=u.layer!==void 0;l&&(s+="@layer".concat(u.layer.length>0?" ".concat(u.layer):""," {")),s+=u.css,l&&(s+="}"),u.media&&(s+="}"),u.supports&&(s+="}")}if(i.styleSheet)i.styleSheet.cssText=e(c,s);else{var v=document.createTextNode(s),_=i.childNodes;_[c]&&i.removeChild(_[c]),_.length?i.insertBefore(v,_[c]):i.appendChild(v)}}var r={singleton:null,singletonCounter:0};n.exports=function(i){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var c=r.singletonCounter++,d=r.singleton||(r.singleton=i.insertStyleElement(i));return{update:function(u){a(d,c,!1,u)},remove:function(u){a(d,c,!0,u)}}}},6:(n,t,e)=>{e.d(t,{en:()=>a});let a={headlines:{error:"An error has occurred",loginEmail:"Sign in or create account",loginEmailNoSignup:"Sign in",loginFinished:"Login successful",loginPasscode:"Enter passcode",loginPassword:"Enter password",registerAuthenticator:"Create a passkey",registerConfirm:"Create account?",registerPassword:"Set new password",otpSetUp:"Set up authenticator app",profileEmails:"Emails",profilePassword:"Password",profilePasskeys:"Passkeys",isPrimaryEmail:"Primary email address",setPrimaryEmail:"Set primary email address",createEmail:"Enter a new email",createUsername:"Enter a new username",emailVerified:"Verified",emailUnverified:"Unverified",emailDelete:"Delete",renamePasskey:"Rename passkey",deletePasskey:"Delete passkey",lastUsedAt:"Last used at",createdAt:"Created at",connectedAccounts:"Connected accounts",deleteAccount:"Delete account",accountNotFound:"Account not found",signIn:"Sign in",signUp:"Create account",selectLoginMethod:"Select login method",setupLoginMethod:"Set up login method",lastUsed:"Last seen",ipAddress:"IP address",revokeSession:"Revoke session",profileSessions:"Sessions",mfaSetUp:"Set up MFA",securityKeySetUp:"Add security key",securityKeyLogin:"Security key",otpLogin:"Authentication code",renameSecurityKey:"Rename security key",deleteSecurityKey:"Delete security key",securityKeys:"Security keys",authenticatorApp:"Authenticator app",authenticatorAppAlreadySetUp:"Authenticator app is set up",authenticatorAppNotSetUp:"Set up authenticator app",trustDevice:"Trust this browser?",deleteIdentity:"Delete connection"},texts:{enterPasscode:"Enter the passcode sent to your email address.",enterPasscodeNoEmail:"Enter the passcode that was sent to your primary email address.",setupPasskey:"Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.",createAccount:'No account exists for "{emailAddress}". Do you want to create a new account?',otpEnterVerificationCode:"Enter the one-time password (OTP) obtained from your authenticator app below:",otpScanQRCode:"Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.",otpSecretKey:"OTP secret key",passwordFormatHint:"Must be between {minLength} and {maxLength} characters long.",securityKeySetUp:"Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.",setPrimaryEmail:"Set this email address to be used for contacting you.",isPrimaryEmail:"This email address will be used to contact you if necessary.",emailVerified:"This email address has been verified.",emailUnverified:"This email address has not been verified.",emailDelete:"If you delete this email address, it can no longer be used to sign in.",renamePasskey:"Set a name for the passkey.",deletePasskey:"Delete this passkey from your account.",deleteAccount:"Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.",noAccountExists:'No account exists for "{emailAddress}".',selectLoginMethodForFutureLogins:"Select one of the following login methods to use for future logins.",howDoYouWantToLogin:"How do you want to login?",mfaSetUp:"Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.",securityKeyLogin:"Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.",otpLogin:"Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.",renameSecurityKey:"Set a name for the security key.",deleteSecurityKey:"Delete this security key from your account.",authenticatorAppAlreadySetUp:"Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",authenticatorAppNotSetUp:"Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",trustDevice:"If you trust this browser, you won\u2019t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in."},labels:{or:"or",no:"no",yes:"yes",email:"Email",continue:"Continue",copied:"copied",skip:"Skip",save:"Save",password:"Password",passkey:"Passkey",passcode:"Passcode",signInPassword:"Sign in with a password",signInPasscode:"Sign in with a passcode",forgotYourPassword:"Forgot your password?",back:"Back",signInPasskey:"Sign in with a passkey",registerAuthenticator:"Create a passkey",signIn:"Sign in",signUp:"Create account",sendNewPasscode:"Send new code",passwordRetryAfter:"Retry in {passwordRetryAfter}",passcodeResendAfter:"Request a new code in {passcodeResendAfter}",unverifiedEmail:"unverified",primaryEmail:"primary",setAsPrimaryEmail:"Set as primary",verify:"Verify",delete:"Delete",newEmailAddress:"New email address",newPassword:"New password",rename:"Rename",newPasskeyName:"New passkey name",addEmail:"Add email",createPasskey:"Create a passkey",webauthnUnsupported:"Passkeys are not supported by your browser",signInWith:"Continue with {provider}",deleteAccount:"Yes, delete this account.",emailOrUsername:"Email or username",username:"Username",optional:"optional",dontHaveAnAccount:"Don't have an account?",alreadyHaveAnAccount:"Already have an account?",changeUsername:"Change username",setUsername:"Set username",changePassword:"Change password",setPassword:"Set password",revoke:"Revoke",currentSession:"Current session",authenticatorApp:"Authenticator app",securityKey:"Security key",securityKeyUse:"Use security key",newSecurityKeyName:"New security key name",createSecurityKey:"Add a security key",authenticatorAppManage:"Manage authenticator app",authenticatorAppAdd:"Set up",configured:"configured",useAnotherMethod:"Use another method",lastUsed:"Last used",trustDevice:"Trust this browser",staySignedIn:"Stay signed in",connectAccount:"Connect account"},errors:{somethingWentWrong:"A technical error has occurred. Please try again later.",requestTimeout:"The request timed out.",invalidPassword:"Wrong email or password.",invalidPasscode:"The passcode provided was not correct.",passcodeAttemptsReached:"The passcode was entered incorrectly too many times. Please request a new code.",tooManyRequests:"Too many requests have been made. Please wait to repeat the requested operation.",unauthorized:"Your session has expired. Please log in again.",invalidWebauthnCredential:"This passkey cannot be used anymore.",passcodeExpired:"The passcode has expired. Please request a new one.",userVerification:"User verification required. Please ensure your authenticator device is protected with a PIN or biometric.",emailAddressAlreadyExistsError:"The email address already exists.",maxNumOfEmailAddressesReached:"No further email addresses can be added.",thirdPartyAccessDenied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons.",thirdPartyMultipleAccounts:"Cannot identify account. The email address is used by multiple accounts.",thirdPartyUnverifiedEmail:"Email verification required. Please verify the used email address with your provider.",signupDisabled:"Account registration is disabled.",handlerNotFoundError:"The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists."},flowErrors:{technical_error:"A technical error has occurred. Please try again later.",flow_expired_error:"The session has expired, please click the button to restart.",value_invalid_error:"The entered value is invalid.",passcode_invalid:"The passcode provided was not correct.",passkey_invalid:"This passkey cannot be used anymore.",passcode_max_attempts_reached:"The passcode was entered incorrectly too many times. Please request a new code.",rate_limit_exceeded:"Too many requests have been made. Please wait to repeat the requested operation.",unknown_username_error:"The username is unknown.",unknown_email_error:"The email address is unknown.",username_already_exists:"The username is already taken.",invalid_username_error:"The username must contain only letters, numbers, and underscores.",email_already_exists:"The email is already taken.",not_found:"The requested resource was not found.",operation_not_permitted_error:"The operation is not permitted.",flow_discontinuity_error:"The process cannot be continued due to user settings or the provider's configuration.",form_data_invalid_error:"The submitted form data contains errors.",unauthorized:"Your session has expired. Please log in again.",value_missing_error:"The value is missing.",value_too_long_error:"Value is too long.",value_too_short_error:"The value is too short.",webauthn_credential_invalid_mfa_only:"This credential can be used as a second factor security key only.",webauthn_credential_already_exists:"The request either timed out, was canceled or the device is already registered. Please try again or try using another device.",platform_authenticator_required:"Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser.",third_party_access_denied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons."}}}},$n={};function Z(n){var t=$n[n];if(t!==void 0)return t.exports;var e=$n[n]={id:n,exports:{}};return oa[n].call(e.exports,e,e.exports,Z),e.exports}Z.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return Z.d(t,{a:t}),t},Z.d=(n,t)=>{for(var e in t)Z.o(t,e)&&!Z.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},Z.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),Z.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},Z.nc=void 0;var X={};Z.d(X,{rc:()=>kt,Kj:()=>yt,fK:()=>un,tJ:()=>$t,Z7:()=>Sn,qQ:()=>bn,I4:()=>en,O8:()=>ge,Qq:()=>gt,ku:()=>fn,ls:()=>pn,bO:()=>mn,yv:()=>wn,AT:()=>_n,m_:()=>gn,KG:()=>vn,Wj:()=>Yt,DH:()=>Jt,kf:()=>bt,Uw:()=>ot,oY:()=>Ge,Wg:()=>xn,AC:()=>yn,D_:()=>_t,jx:()=>Xt,nX:()=>kn,Nx:()=>hn,Sd:()=>Xe,kz:()=>Lr,fX:()=>Mn,qA:()=>Ln,tz:()=>Nn,gN:()=>Un});var ln={};Z.r(ln),Z.d(ln,{apple:()=>Pa,checkmark:()=>Ta,copy:()=>Da,customProvider:()=>Ma,discord:()=>La,exclamation:()=>Ua,facebook:()=>Na,github:()=>za,google:()=>Wa,linkedin:()=>Fa,mail:()=>Ra,microsoft:()=>Ha,passkey:()=>qa,password:()=>Ka,qrCodeScanner:()=>Ba,securityKey:()=>Ga,spinner:()=>$a});var x=Z(616),aa=0;function o(n,t,e,a,r,i){var c,d,u={};for(d in t)d=="ref"?c=t[d]:u[d]=t[d];var s={type:n,props:u,key:e,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--aa,__source:r,__self:i};if(typeof n=="function"&&(c=n.defaultProps))for(d in c)u[d]===void 0&&(u[d]=c[d]);return x.options.vnode&&x.options.vnode(s),s}function Gt(){return Gt=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}return n},Gt.apply(this,arguments)}var ra=["context","children"];function ia(n){this.getChildContext=function(){return n.context};var t=n.children,e=(function(a,r){if(a==null)return{};var i,c,d={},u=Object.keys(a);for(c=0;c<u.length;c++)r.indexOf(i=u[c])>=0||(d[i]=a[i]);return d})(n,ra);return(0,x.cloneElement)(t,e)}function sa(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=(0,x.h)(ia,Gt({},this._props,{context:n.detail.context}),Oo(this,this._vdomComponent)),(this.hasAttribute("hydrate")?x.hydrate:x.render)(this._vdom,this._root)}function Co(n){return n.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function ca(n,t,e){if(this._vdom){var a={};a[n]=e=e==null?void 0:e,a[Co(n)]=e,this._vdom=(0,x.cloneElement)(this._vdom,a),(0,x.render)(this._vdom,this._root)}}function la(){(0,x.render)(this._vdom=null,this._root)}function Zn(n,t){var e=this;return(0,x.h)("slot",Gt({},n,{ref:function(a){a?(e.ref=a,e._listener||(e._listener=function(r){r.stopPropagation(),r.detail.context=t},a.addEventListener("_preact",e._listener))):e.ref.removeEventListener("_preact",e._listener)}}))}function Oo(n,t){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var e=[],a={},r=0,i=n.attributes,c=n.childNodes;for(r=i.length;r--;)i[r].name!=="slot"&&(a[i[r].name]=i[r].value,a[Co(i[r].name)]=i[r].value);for(r=c.length;r--;){var d=Oo(c[r],null),u=c[r].slot;u?a[u]=(0,x.h)(Zn,{name:u},d):e[r]=d}var s=t?(0,x.h)(Zn,null,e):e;return(0,x.h)(t||n.nodeName.toLowerCase(),a,s)}var q=Z(7),f=Z(78);function Ao(n,t){for(var e in t)n[e]=t[e];return n}function Vn(n,t){for(var e in n)if(e!=="__source"&&!(e in t))return!0;for(var a in t)if(a!=="__source"&&n[a]!==t[a])return!0;return!1}function Jn(n){this.props=n}(Jn.prototype=new x.Component).isPureReactComponent=!0,Jn.prototype.shouldComponentUpdate=function(n,t){return Vn(this.props,n)||Vn(this.state,t)};var Qn=x.options.__b;x.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),Qn&&Qn(n)};var da=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,ua=(x.toChildArray,x.options.__e);x.options.__e=function(n,t,e,a){if(n.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t)}ua(n,t,e,a)};var Yn=x.options.unmount;function Io(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(a){typeof a.__c=="function"&&a.__c()})),n.__c.__H=null),(n=Ao({},n)).__c!=null&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(a){return Io(a,t,e)}))),n}function Eo(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(a){return Eo(a,t,e)})),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function an(){this.__u=0,this.t=null,this.__b=null}function jo(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function Et(){this.u=null,this.o=null}x.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&n.__h===!0&&(n.type=null),Yn&&Yn(n)},(an.prototype=new x.Component).__c=function(n,t){var e=t.__c,a=this;a.t==null&&(a.t=[]),a.t.push(e);var r=jo(a.__v),i=!1,c=function(){i||(i=!0,e.__R=null,r?r(d):d())};e.__R=c;var d=function(){if(!--a.__u){if(a.state.__a){var s=a.state.__a;a.__v.__k[0]=Eo(s,s.__c.__P,s.__c.__O)}var l;for(a.setState({__a:a.__b=null});l=a.t.pop();)l.forceUpdate()}},u=t.__h===!0;a.__u++||u||a.setState({__a:a.__b=a.__v.__k[0]}),n.then(c,c)},an.prototype.componentWillUnmount=function(){this.t=[]},an.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=Io(this.__b,e,a.__O=a.__P)}this.__b=null}var r=t.__a&&(0,x.createElement)(x.Fragment,null,n.fallback);return r&&(r.__h=null),[(0,x.createElement)(x.Fragment,null,t.__a?null:n.children),r]};var Xn=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};(Et.prototype=new x.Component).__a=function(n){var t=this,e=jo(t.__v),a=t.o.get(n);return a[0]++,function(r){var i=function(){t.props.revealOrder?(a.push(r),Xn(t,n,a)):r()};e?e(i):i()}},Et.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,x.toChildArray)(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},Et.prototype.componentDidUpdate=Et.prototype.componentDidMount=function(){var n=this;this.o.forEach((function(t,e){Xn(n,e,t)}))};var ha=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,pa=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fa=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ma=/[A-Z0-9]/g,va=typeof document!="undefined",_a=function(n){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(n)};x.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(n){Object.defineProperty(x.Component.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t})}})}));var eo=x.options.event;function ga(){}function ya(){return this.cancelBubble}function ba(){return this.defaultPrevented}x.options.event=function(n){return eo&&(n=eo(n)),n.persist=ga,n.isPropagationStopped=ya,n.isDefaultPrevented=ba,n.nativeEvent=n};var to={configurable:!0,get:function(){return this.class}},no=x.options.vnode;x.options.vnode=function(n){var t=n.type,e=n.props,a=e;if(typeof t=="string"){for(var r in a={},e){var i=e[r];if(!(r==="value"&&"defaultValue"in e&&i==null||va&&r==="children"&&t==="noscript")){var c=r.toLowerCase();r==="defaultValue"&&"value"in e&&e.value==null?r="value":r==="download"&&i===!0?i="":c==="ondoubleclick"?r="ondblclick":c!=="onchange"||t!=="input"&&t!=="textarea"||_a(e.type)?c==="onfocus"?r="onfocusin":c==="onblur"?r="onfocusout":fa.test(r)?r=c:t.indexOf("-")===-1&&pa.test(r)?r=r.replace(ma,"-$&").toLowerCase():i===null&&(i=void 0):c=r="oninput",c==="oninput"&&a[r=c]&&(r="oninputCapture"),a[r]=i}}t=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=(0,x.toChildArray)(e.children).forEach((function(d){d.props.selected=a.value.indexOf(d.props.value)!=-1}))),t=="select"&&a.defaultValue!=null&&(a.value=(0,x.toChildArray)(e.children).forEach((function(d){d.props.selected=a.multiple?a.defaultValue.indexOf(d.props.value)!=-1:a.defaultValue==d.props.value}))),n.props=a,e.class!=e.className&&(to.enumerable="className"in e,e.className!=null&&(a.class=e.className),Object.defineProperty(a,"className",to))}n.$$typeof=ha,no&&no(n)};var oo=x.options.__r;x.options.__r=function(n){oo&&oo(n),n.__c};var ao=x.options.diffed;function Fe(){return Fe=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}return n},Fe.apply(this,arguments)}x.options.diffed=function(n){ao&&ao(n);var t=n.props,e=n.__e;e!=null&&n.type==="textarea"&&"value"in t&&t.value!==e.value&&(e.value=t.value==null?"":t.value)},x.Fragment,f.useLayoutEffect,f.useState,f.useId,f.useReducer,f.useEffect,f.useLayoutEffect,f.useRef,f.useImperativeHandle,f.useMemo,f.useCallback,f.useContext,f.useDebugValue,x.createElement,x.createContext,x.createRef,x.Fragment,x.Component;var dn=class{static throttle(t,e,a={}){let{leading:r=!0,trailing:i=!0}=a,c,d,u,s=0,l=()=>{s=r===!1?0:Date.now(),u=null,t.apply(c,d)};return function(...v){let _=Date.now();s||r!==!1||(s=_);let m=e-(_-s);c=this,d=v,m<=0||m>e?(u&&(window.clearTimeout(u),u=null),s=_,t.apply(c,d)):u||i===!1||(u=window.setTimeout(l,m))}}},Mn="hanko-session-created",Ln="hanko-session-expired",Un="hanko-user-logged-out",Nn="hanko-user-deleted",Po="hanko-after-state-change",To="hanko-before-state-change",$t=class extends CustomEvent{constructor(t,e){super(t,{detail:e})}},Zt=class n{constructor(){this.throttleLimit=1e3,this._addEventListener=document.addEventListener.bind(document),this._removeEventListener=document.removeEventListener.bind(document),this._throttle=dn.throttle}wrapCallback(t,e){let a=r=>{t(r.detail)};return e?this._throttle(a,this.throttleLimit,{leading:!0,trailing:!1}):a}addEventListenerWithType({type:t,callback:e,once:a=!1,throttle:r=!1}){let i=this.wrapCallback(e,r);return this._addEventListener(t,i,{once:a}),()=>this._removeEventListener(t,i)}static mapAddEventListenerParams(t,{once:e,callback:a},r){return{type:t,callback:a,once:e,throttle:r}}addEventListener(t,e,a){return this.addEventListenerWithType(n.mapAddEventListenerParams(t,e,a))}onSessionCreated(t,e){return this.addEventListener(Mn,{callback:t,once:e},!0)}onSessionExpired(t,e){return this.addEventListener(Ln,{callback:t,once:e},!0)}onUserLoggedOut(t,e){return this.addEventListener(Un,{callback:t,once:e})}onUserDeleted(t,e){return this.addEventListener(Nn,{callback:t,once:e})}onAfterStateChange(t,e){return this.addEventListener(Po,{callback:t,once:e},!1)}onBeforeStateChange(t,e){return this.addEventListener(To,{callback:t,once:e},!1)}},Vt=class{constructor(){this._dispatchEvent=document.dispatchEvent.bind(document)}dispatch(t,e){this._dispatchEvent(new $t(t,e))}dispatchSessionCreatedEvent(t){this.dispatch(Mn,t)}dispatchSessionExpiredEvent(){this.dispatch(Ln,null)}dispatchUserLoggedOutEvent(){this.dispatch(Un,null)}dispatchUserDeletedEvent(){this.dispatch(Nn,null)}dispatchAfterStateChangeEvent(t){this.dispatch(Po,t)}dispatchBeforeStateChangeEvent(t){this.dispatch(To,t)}},ge=class n extends Error{constructor(t,e,a){super(t),this.code=void 0,this.cause=void 0,this.code=e,this.cause=a,Object.setPrototypeOf(this,n.prototype)}},Ge=class n extends ge{constructor(t){super("Technical error","somethingWentWrong",t),Object.setPrototypeOf(this,n.prototype)}},un=class n extends ge{constructor(t,e){super("Conflict error","conflict",e),Object.setPrototypeOf(this,n.prototype)}},Jt=class n extends ge{constructor(t){super("Request timed out error","requestTimeout",t),Object.setPrototypeOf(this,n.prototype)}},hn=class n extends ge{constructor(t){super("Request cancelled error","requestCancelled",t),Object.setPrototypeOf(this,n.prototype)}},pn=class n extends ge{constructor(t){super("Invalid password error","invalidPassword",t),Object.setPrototypeOf(this,n.prototype)}},fn=class n extends ge{constructor(t){super("Invalid Passcode error","invalidPasscode",t),Object.setPrototypeOf(this,n.prototype)}},mn=class n extends ge{constructor(t){super("Invalid WebAuthn credential error","invalidWebauthnCredential",t),Object.setPrototypeOf(this,n.prototype)}},vn=class n extends ge{constructor(t){super("Passcode expired error","passcodeExpired",t),Object.setPrototypeOf(this,n.prototype)}},_n=class n extends ge{constructor(t){super("Maximum number of Passcode attempts reached error","passcodeAttemptsReached",t),Object.setPrototypeOf(this,n.prototype)}},gn=class n extends ge{constructor(t){super("Not found error","notFound",t),Object.setPrototypeOf(this,n.prototype)}},yn=class n extends ge{constructor(t,e){super("Too many requests error","tooManyRequests",e),this.retryAfter=void 0,this.retryAfter=t,Object.setPrototypeOf(this,n.prototype)}},_t=class n extends ge{constructor(t){super("Unauthorized error","unauthorized",t),Object.setPrototypeOf(this,n.prototype)}},bn=class n extends ge{constructor(t){super("Forbidden error","forbidden",t),Object.setPrototypeOf(this,n.prototype)}},kn=class n extends ge{constructor(t){super("User verification error","userVerification",t),Object.setPrototypeOf(this,n.prototype)}},wn=class n extends ge{constructor(t){super("Maximum number of email addresses reached error","maxNumOfEmailAddressesReached",t),Object.setPrototypeOf(this,n.prototype)}},Sn=class n extends ge{constructor(t){super("The email address already exists","emailAddressAlreadyExistsError",t),Object.setPrototypeOf(this,n.prototype)}},xn=class n extends ge{constructor(t,e){super("An error occurred during third party sign up/sign in",t,e),Object.setPrototypeOf(this,n.prototype)}};function jt(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var a in e)n[a]=e[a]}return n}var rn=(function n(t,e){function a(r,i,c){if(typeof document!="undefined"){typeof(c=jt({},e,c)).expires=="number"&&(c.expires=new Date(Date.now()+864e5*c.expires)),c.expires&&(c.expires=c.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var u in c)c[u]&&(d+="; "+u,c[u]!==!0&&(d+="="+c[u].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+d}}return Object.create({set:a,get:function(r){if(typeof document!="undefined"&&(!arguments.length||r)){for(var i=document.cookie?document.cookie.split("; "):[],c={},d=0;d<i.length;d++){var u=i[d].split("="),s=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(c[l]=t.read(s,l),r===l)break}catch(v){}}return r?c[r]:c}},remove:function(r,i){a(r,"",jt({},i,{expires:-1}))},withAttributes:function(r){return n(this.converter,jt({},this.attributes,r))},withConverter:function(r){return n(jt({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})})({read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Qt=class{constructor(t){var e,a;this.authCookieName=void 0,this.authCookieDomain=void 0,this.authCookieSameSite=void 0,this.authCookieName=(e=t.cookieName)!=null?e:"hanko",this.authCookieDomain=t.cookieDomain,this.authCookieSameSite=(a=t.cookieSameSite)!=null?a:"lax"}getAuthCookie(){return rn.get(this.authCookieName)}setAuthCookie(t,e){let a={secure:!0,sameSite:this.authCookieSameSite};this.authCookieDomain!==void 0&&(a.domain=this.authCookieDomain);let r=Fe({},a,e);if((r.sameSite==="none"||r.sameSite==="None")&&r.secure===!1)throw new Ge(new Error("Secure attribute must be set when SameSite=None"));rn.set(this.authCookieName,t,r)}removeAuthCookie(){rn.remove(this.authCookieName)}},Cn=class{constructor(t){this.keyName=void 0,this.keyName=t.keyName}getSessionToken(){return sessionStorage.getItem(this.keyName)}setSessionToken(t){sessionStorage.setItem(this.keyName,t)}removeSessionToken(){sessionStorage.removeItem(this.keyName)}},On=class{constructor(t){this._xhr=void 0,this._xhr=t}getResponseHeader(t){return this._xhr.getResponseHeader(t)}},An=class{constructor(t){this.headers=void 0,this.ok=void 0,this.status=void 0,this.statusText=void 0,this.url=void 0,this._decodedJSON=void 0,this.xhr=void 0,this.headers=new On(t),this.ok=t.status>=200&&t.status<=299,this.status=t.status,this.statusText=t.statusText,this.url=t.responseURL,this.xhr=t}json(){return this._decodedJSON||(this._decodedJSON=JSON.parse(this.xhr.response)),this._decodedJSON}parseNumericHeader(t){let e=parseInt(this.headers.getResponseHeader(t),10);return isNaN(e)?0:e}},gt=class{constructor(t,e){var a;this.timeout=void 0,this.api=void 0,this.dispatcher=void 0,this.cookie=void 0,this.sessionTokenStorage=void 0,this.lang=void 0,this.sessionTokenLocation=void 0,this.api=t,this.timeout=(a=e.timeout)!=null?a:13e3,this.dispatcher=new Vt,this.cookie=new Qt(Fe({},e)),this.sessionTokenStorage=new Cn({keyName:e.cookieName}),this.lang=e.lang,this.sessionTokenLocation=e.sessionTokenLocation}_fetch(t,e,a=new XMLHttpRequest){let r=this,i=this.api+t,c=this.timeout,d=this.getAuthToken(),u=this.lang;return new Promise((function(s,l){a.open(e.method,i,!0),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("X-Language",u),d&&a.setRequestHeader("Authorization",`Bearer ${d}`),a.timeout=c,a.withCredentials=!0,a.onload=()=>{r.processHeaders(a),s(new An(a))},a.onerror=()=>{l(new Ge)},a.ontimeout=()=>{l(new Jt)},a.send(e.body?e.body.toString():null)}))}processHeaders(t){let e="",a=0,r="";if(t.getAllResponseHeaders().split(`\r
3
- `).forEach((i=>{let c=i.toLowerCase();c.startsWith("x-auth-token")?e=t.getResponseHeader("X-Auth-Token"):c.startsWith("x-session-lifetime")?a=parseInt(t.getResponseHeader("X-Session-Lifetime"),10):c.startsWith("x-session-retention")&&(r=t.getResponseHeader("X-Session-Retention"))})),e){let i=new RegExp("^https://"),c=!!this.api.match(i)&&!!window.location.href.match(i),d=r==="session"?void 0:new Date(new Date().getTime()+1e3*a);this.setAuthToken(e,{secure:c,expires:d})}}get(t){return this._fetch(t,{method:"GET"})}post(t,e){return this._fetch(t,{method:"POST",body:JSON.stringify(e)})}put(t,e){return this._fetch(t,{method:"PUT",body:JSON.stringify(e)})}patch(t,e){return this._fetch(t,{method:"PATCH",body:JSON.stringify(e)})}delete(t){return this._fetch(t,{method:"DELETE"})}getAuthToken(){let t="";switch(this.sessionTokenLocation){case"cookie":default:t=this.cookie.getAuthCookie();break;case"sessionStorage":t=this.sessionTokenStorage.getSessionToken()}return t}setAuthToken(t,e){switch(this.sessionTokenLocation){case"cookie":default:return this.cookie.setAuthCookie(t,e);case"sessionStorage":return this.sessionTokenStorage.setSessionToken(t)}}},yt=class{constructor(t,e){this.client=void 0,this.client=new gt(t,e)}},bt=class extends yt{async validate(){let t=await this.client.get("/sessions/validate");if(!t.ok)throw new Ge;return await t.json()}},In=class{constructor(t){this.storageKey=void 0,this.defaultState={expiration:0,lastCheck:0},this.storageKey=t}load(){let t=window.localStorage.getItem(this.storageKey);return t==null?this.defaultState:JSON.parse(t)}save(t){window.localStorage.setItem(this.storageKey,JSON.stringify(t||this.defaultState))}},En=class{constructor(t,e){this.onActivityCallback=void 0,this.onInactivityCallback=void 0,this.handleFocus=()=>{this.onActivityCallback()},this.handleBlur=()=>{this.onInactivityCallback()},this.handleVisibilityChange=()=>{document.visibilityState==="visible"?this.onActivityCallback():this.onInactivityCallback()},this.hasFocus=()=>document.hasFocus(),this.onActivityCallback=t,this.onInactivityCallback=e,window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),document.addEventListener("visibilitychange",this.handleVisibilityChange)}},jn=class{constructor(t,e,a){this.intervalID=null,this.timeoutID=null,this.checkInterval=void 0,this.checkSession=void 0,this.onSessionExpired=void 0,this.checkInterval=t,this.checkSession=e,this.onSessionExpired=a}scheduleSessionExpiry(t){var e=this;this.stop(),this.timeoutID=setTimeout((async function(){e.stop(),e.onSessionExpired()}),t)}start(t=0,e=0){var a=this;let r=this.calcTimeToNextCheck(t);this.sessionExpiresSoon(e)?this.scheduleSessionExpiry(r):this.timeoutID=setTimeout((async function(){try{let i=await a.checkSession();if(i.is_valid){if(a.sessionExpiresSoon(i.expiration))return void a.scheduleSessionExpiry(i.expiration-Date.now());a.intervalID=setInterval((async function(){i=await a.checkSession(),i.is_valid?a.sessionExpiresSoon(i.expiration)&&a.scheduleSessionExpiry(i.expiration-Date.now()):a.stop()}),a.checkInterval)}else a.stop()}catch(i){console.log(i)}}),r)}stop(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null),this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)}isRunning(){return this.timeoutID!==null||this.intervalID!==null}sessionExpiresSoon(t){return t>0&&t-Date.now()<=this.checkInterval}calcTimeToNextCheck(t){let e=Date.now()-t;return this.checkInterval>=e?this.checkInterval-e%this.checkInterval:0}},Pn=class{constructor(t="hanko_session",e,a,r){this.channel=void 0,this.onSessionExpired=void 0,this.onSessionCreated=void 0,this.onLeadershipRequested=void 0,this.handleMessage=i=>{let c=i.data;switch(c.action){case"sessionExpired":this.onSessionExpired(c);break;case"sessionCreated":this.onSessionCreated(c);break;case"requestLeadership":this.onLeadershipRequested(c)}},this.onSessionExpired=e,this.onSessionCreated=a,this.onLeadershipRequested=r,this.channel=new BroadcastChannel(t),this.channel.onmessage=this.handleMessage}post(t){this.channel.postMessage(t)}},Yt=class extends Vt{constructor(t,e){super(),this.listener=new Zt,this.checkInterval=3e4,this.client=void 0,this.sessionState=void 0,this.windowActivityManager=void 0,this.scheduler=void 0,this.sessionChannel=void 0,this.isLoggedIn=void 0,this.client=new bt(t,e),e.sessionCheckInterval&&(this.checkInterval=e.sessionCheckInterval<3e3?3e3:e.sessionCheckInterval),this.sessionState=new In(`${e.cookieName}_session_state`),this.sessionChannel=new Pn(this.getSessionCheckChannelName(e.sessionTokenLocation,e.sessionCheckChannelName),(()=>this.onChannelSessionExpired()),(i=>this.onChannelSessionCreated(i)),(()=>this.onChannelLeadershipRequested())),this.scheduler=new jn(this.checkInterval,(()=>this.checkSession()),(()=>this.onSessionExpired())),this.windowActivityManager=new En((()=>this.startSessionCheck()),(()=>this.scheduler.stop()));let a=Date.now(),{expiration:r}=this.sessionState.load();this.isLoggedIn=a<r,this.initializeEventListeners(),this.startSessionCheck()}initializeEventListeners(){this.listener.onSessionCreated((t=>{let{claims:e}=t,a=Date.parse(e.expiration),r=Date.now();this.isLoggedIn=!0,this.sessionState.save({expiration:a,lastCheck:r}),this.sessionChannel.post({action:"sessionCreated",claims:e}),this.startSessionCheck()})),this.listener.onUserLoggedOut((()=>{this.isLoggedIn=!1,this.sessionChannel.post({action:"sessionExpired"}),this.sessionState.save(null),this.scheduler.stop()})),window.addEventListener("beforeunload",(()=>this.scheduler.stop()))}startSessionCheck(){if(!this.windowActivityManager.hasFocus()||(this.sessionChannel.post({action:"requestLeadership"}),this.scheduler.isRunning()))return;let{lastCheck:t,expiration:e}=this.sessionState.load();this.isLoggedIn&&this.scheduler.start(t,e)}async checkSession(){let t=Date.now(),{is_valid:e,claims:a,expiration_time:r}=await this.client.validate(),i=r?Date.parse(r):0;return!e&&this.isLoggedIn&&this.dispatchSessionExpiredEvent(),e?(this.isLoggedIn=!0,this.sessionState.save({lastCheck:t,expiration:i})):(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"})),{is_valid:e,claims:a,expiration:i}}onSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"}),this.dispatchSessionExpiredEvent())}onChannelSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.dispatchSessionExpiredEvent())}onChannelSessionCreated(t){let{claims:e}=t,a=Date.now(),r=Date.parse(e.expiration)-a;this.isLoggedIn=!0,this.dispatchSessionCreatedEvent({claims:e,expirationSeconds:r})}onChannelLeadershipRequested(){this.windowActivityManager.hasFocus()||this.scheduler.stop()}getSessionCheckChannelName(t,e){if(t!=="sessionStorage")return e;let a=sessionStorage.getItem("sessionCheckChannelName");return a!=null&&a!==""||(a=`${e}-${Math.floor(100*Math.random())+1}`,sessionStorage.setItem("sessionCheckChannelName",a)),a}},Xe=class{static supported(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}static async isPlatformAuthenticatorAvailable(){return!(!this.supported()||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}static async isSecurityKeySupported(){return window.PublicKeyCredential!==void 0&&window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported():this.supported()}static async isConditionalMediationAvailable(){return!(!window.PublicKeyCredential||!window.PublicKeyCredential.isConditionalMediationAvailable)&&window.PublicKeyCredential.isConditionalMediationAvailable()}};function Do(n){let t="==".slice(0,(4-n.length%4)%4),e=n.replace(/-/g,"+").replace(/_/g,"/")+t,a=atob(e),r=new ArrayBuffer(a.length),i=new Uint8Array(r);for(let c=0;c<a.length;c++)i[c]=a.charCodeAt(c);return r}function Mo(n){let t=new Uint8Array(n),e="";for(let a of t)e+=String.fromCharCode(a);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var oe="copy",Ne="convert";function nt(n,t,e){if(t===oe)return e;if(t===Ne)return n(e);if(t instanceof Array)return e.map((a=>nt(n,t[0],a)));if(t instanceof Object){let a={};for(let[r,i]of Object.entries(t)){if(i.derive){let c=i.derive(e);c!==void 0&&(e[r]=c)}if(r in e)a[r]=e[r]!=null?nt(n,i.schema,e[r]):null;else if(i.required)throw new Error(`Missing key: ${r}`)}return a}}function Tn(n,t){return{required:!0,schema:n,derive:t}}function le(n){return{required:!0,schema:n}}function ve(n){return{required:!1,schema:n}}var Lo={type:le(oe),id:le(Ne),transports:ve(oe)},Uo={appid:ve(oe),appidExclude:ve(oe),credProps:ve(oe)},No={appid:ve(oe),appidExclude:ve(oe),credProps:ve(oe)},ka={publicKey:le({rp:le(oe),user:le({id:le(Ne),name:le(oe),displayName:le(oe)}),challenge:le(Ne),pubKeyCredParams:le(oe),timeout:ve(oe),excludeCredentials:ve([Lo]),authenticatorSelection:ve(oe),attestation:ve(oe),extensions:ve(Uo)}),signal:ve(oe)},wa={type:le(oe),id:le(oe),rawId:le(Ne),authenticatorAttachment:ve(oe),response:le({clientDataJSON:le(Ne),attestationObject:le(Ne),transports:Tn(oe,(n=>{var t;return((t=n.getTransports)==null?void 0:t.call(n))||[]}))}),clientExtensionResults:Tn(No,(n=>n.getClientExtensionResults()))},Sa={mediation:ve(oe),publicKey:le({challenge:le(Ne),timeout:ve(oe),rpId:ve(oe),allowCredentials:ve([Lo]),userVerification:ve(oe),extensions:ve(Uo)}),signal:ve(oe)},xa={type:le(oe),id:le(oe),rawId:le(Ne),authenticatorAttachment:ve(oe),response:le({clientDataJSON:le(Ne),authenticatorData:le(Ne),signature:le(Ne),userHandle:le(Ne)}),clientExtensionResults:Tn(No,(n=>n.getClientExtensionResults()))};async function ro(n){let t=await navigator.credentials.get((function(e){return nt(Do,Sa,e)})(n));return(function(e){return nt(Mo,xa,e)})(t)}var et=class n{constructor(){this.abortController=new AbortController}static getInstance(){return n.instance||(n.instance=new n),n.instance}createAbortSignal(){return this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal}async getWebauthnCredential(t){return await ro(Fe({},t,{signal:this.createAbortSignal()}))}async getConditionalWebauthnCredential(t){return await ro({publicKey:t,mediation:"conditional",signal:this.createAbortSignal()})}async createWebauthnCredential(t){return await(async function(e){return a=await navigator.credentials.create((function(r){return nt(Do,ka,r)})(e)),nt(Mo,wa,a);var a})(Fe({},t,{signal:this.createAbortSignal()}))}};async function io(n,t,e,a="webauthn_credential_already_exists",r="Webauthn credential already exists"){try{let i=await t.createWebauthnCredential(e);return await n.actions.webauthn_verify_attestation_response.run({public_key:i})}catch(i){let c=await n.actions.back.run();return c.error={code:a,message:r},c}}et.instance=null;var so={preflight:async n=>await n.actions.register_client_capabilities.run({webauthn_available:Xe.supported(),webauthn_conditional_mediation_available:await Xe.isConditionalMediationAvailable(),webauthn_platform_authenticator_available:await Xe.isPlatformAuthenticatorAvailable()}),login_passkey:async n=>{let t=et.getInstance();try{let e=await t.getWebauthnCredential(n.payload.request_options);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:e})}catch(e){let a=await n.actions.back.run();return n.error&&(a.error=n.error),a}},onboarding_verify_passkey_attestation:async n=>io(n,et.getInstance(),n.payload.creation_options),webauthn_credential_verification:async n=>io(n,et.getInstance(),n.payload.creation_options),async thirdparty(n){let t=new URLSearchParams(window.location.search),e=t.get("hanko_token"),a=t.get("error"),r=i=>{i.forEach((d=>t.delete(d)));let c=t.toString()?`?${t.toString()}`:"";history.replaceState(null,null,`${window.location.pathname}${c}`)};if((e==null?void 0:e.length)>0)return r(["hanko_token"]),await n.actions.exchange_token.run({token:e});if((a==null?void 0:a.length)>0){let i=a==="access_denied"?"third_party_access_denied":"technical_error",c=t.get("error_description");r(["error","error_description"]);let d=await n.actions.back.run(null,{dispatchAfterStateChangeEvent:!1});return d.error={code:i,message:c},d.dispatchAfterStateChangeEvent(),d}return n.isCached?await n.actions.back.run():(n.saveToLocalStorage(),window.location.assign(n.payload.redirect_url),n)},success:async n=>{let{claims:t}=n.payload,e=Date.parse(t.expiration)-Date.now();return n.removeFromLocalStorage(),n.hanko.relay.dispatchSessionCreatedEvent({claims:t,expirationSeconds:e}),n},account_deleted:async n=>(n.removeFromLocalStorage(),n.hanko.relay.dispatchUserDeletedEvent(),n)},co={login_init:async n=>{(async function(){let t=et.getInstance();if(n.payload.request_options)try{let{publicKey:e}=n.payload.request_options,a=await t.getConditionalWebauthnCredential(e);await n.actions.webauthn_verify_assertion_response.run({assertion_response:a})}catch(e){return}})()}},ot=class n{constructor(t,e,a,r={}){if(this.name=void 0,this.flowName=void 0,this.error=void 0,this.payload=void 0,this.actions=void 0,this.csrfToken=void 0,this.status=void 0,this.previousAction=void 0,this.isCached=void 0,this.cacheKey=void 0,this.hanko=void 0,this.invokedAction=void 0,this.excludeAutoSteps=void 0,this.autoStep=void 0,this.passkeyAutofillActivation=void 0,this.flowName=e,this.name=a.name,this.error=a.error,this.payload=a.payload,this.csrfToken=a.csrf_token,this.status=a.status,this.hanko=t,this.actions=this.buildActionMap(a.actions),this.name in so){let l=so[this.name];this.autoStep=()=>l(this)}if(this.name in co){let l=co[this.name];this.passkeyAutofillActivation=()=>l(this)}let{dispatchAfterStateChangeEvent:i=!0,excludeAutoSteps:c=null,previousAction:d=null,isCached:u=!1,cacheKey:s="hanko-flow-state"}=r;this.excludeAutoSteps=c,this.previousAction=d,this.isCached=u,this.cacheKey=s,i&&this.dispatchAfterStateChangeEvent()}buildActionMap(t){let e={};return Object.keys(t).forEach((a=>{e[a]=new kt(t[a],this)})),new Proxy(e,{get:(a,r)=>{if(r in a)return a[r];let i=typeof r=="string"?r:r.toString();return kt.createDisabled(i,this)}})}dispatchAfterStateChangeEvent(){this.hanko.relay.dispatchAfterStateChangeEvent({state:this})}serialize(){return{flow_name:this.flowName,name:this.name,error:this.error,payload:this.payload,csrf_token:this.csrfToken,status:this.status,previous_action:this.previousAction,actions:Object.fromEntries(Object.entries(this.actions).map((([t,e])=>[t,{action:e.name,href:e.href,inputs:e.inputs,description:null}])))}}saveToLocalStorage(){localStorage.setItem(this.cacheKey,JSON.stringify(Fe({},this.serialize(),{is_cached:!0})))}removeFromLocalStorage(){localStorage.removeItem(this.cacheKey)}static async initializeFlowState(t,e,a,r={}){let i=new n(t,e,a,r);if(i.excludeAutoSteps!="all")for(;i&&i.autoStep&&((c=i.excludeAutoSteps)==null||!c.includes(i.name));){var c;let d=await i.autoStep();if(d.name==i.name)return d;i=d}return i}static readFromLocalStorage(t){let e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(a){return}}static async create(t,e,a={}){let{cacheKey:r="hanko-flow-state",loadFromCache:i=!0}=a;if(i){let d=n.readFromLocalStorage(r);if(d)return n.deserialize(t,d,Fe({},a,{cacheKey:r}))}let c=await n.fetchState(t,`/${e}`);return n.initializeFlowState(t,e,c,Fe({},a,{cacheKey:r}))}static async deserialize(t,e,a={}){return n.initializeFlowState(t,e.flow_name,e,Fe({},a,{previousAction:e.previous_action,isCached:e.is_cached}))}static async fetchState(t,e,a){try{return(await t.client.post(e,a)).json()}catch(r){return n.createErrorResponse(r)}}static createErrorResponse(t){return{actions:null,csrf_token:"",name:"error",payload:null,status:0,error:t}}},kt=class n{constructor(t,e,a=!0){this.enabled=void 0,this.href=void 0,this.name=void 0,this.inputs=void 0,this.parentState=void 0,this.enabled=a,this.href=t.href,this.name=t.action,this.inputs=t.inputs,this.parentState=e}static createDisabled(t,e){return new n({action:t,href:"",inputs:{},description:"Disabled action"},e,!1)}async run(t=null,e={}){let{name:a,hanko:r,flowName:i,csrfToken:c,invokedAction:d,excludeAutoSteps:u,cacheKey:s}=this.parentState,{dispatchAfterStateChangeEvent:l=!0}=e;if(!this.enabled)throw new Error(`Action '${this.name}' is not enabled in state '${a}'`);if(d)throw new Error(`An action '${d.name}' has already been invoked on state '${d.relatedStateName}'. No further actions can be run.`);this.parentState.invokedAction={name:this.name,relatedStateName:a},r.relay.dispatchBeforeStateChangeEvent({state:this.parentState});let v={input_data:Fe({},Object.keys(this.inputs).reduce(((m,w)=>{let b=this.inputs[w];return b.value!==void 0&&(m[w]=b.value),m}),{}),t),csrf_token:c},_=await ot.fetchState(r,this.href,v);return this.parentState.removeFromLocalStorage(),ot.initializeFlowState(r,i,_,{dispatchAfterStateChangeEvent:l,excludeAutoSteps:u,previousAction:d,cacheKey:s})}},Xt=class extends yt{async getCurrent(){let t=await this.client.get("/me");if(t.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new _t;if(!t.ok)throw new Ge;let e=t.json(),a=await this.client.get(`/users/${e.id}`);if(a.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new _t;if(!a.ok)throw new Ge;return a.json()}async logout(){let t=await this.client.post("/logout");if(this.client.sessionTokenStorage.removeSessionToken(),this.client.cookie.removeAuthCookie(),this.client.dispatcher.dispatchUserLoggedOutEvent(),t.status!==401&&!t.ok)throw new Ge}},en=class extends Zt{constructor(t,e){super(),this.session=void 0,this.user=void 0,this.cookie=void 0,this.client=void 0,this.relay=void 0;let a=Fe({timeout:13e3,cookieName:"hanko",localStorageKey:"hanko",sessionCheckInterval:3e4,sessionCheckChannelName:"hanko-session-check"},e);this.client=new gt(t,a),this.session=new bt(t,a),this.user=new Xt(t,a),this.relay=new Yt(t,a),this.cookie=new Qt(a)}setLang(t){this.client.lang=t}createState(t,e={}){return ot.create(this,t,e)}async getUser(){return this.user.getCurrent()}async validateSession(){return this.session.validate()}getSessionToken(){return this.cookie.getAuthCookie()}async logout(){return this.user.logout()}},Ca=Z(292),$e=Z.n(Ca),Oa=Z(360),Ze=Z.n(Oa),Aa=Z(884),Ve=Z.n(Aa),Ia=Z(88),Je=Z.n(Ia),Ut=Z(914),rt={};rt.setAttributes=Ve(),rt.insert=n=>{window._hankoStyle=n},rt.domAPI=Ze(),rt.insertStyleElement=Je(),$e()(Ut.A,rt);var wt=Ut.A&&Ut.A.locals?Ut.A.locals:void 0,Ea=(function(n){function t(e){var a=Ao({},e);return delete a.ref,n(a,e.ref||null)}return t.$$typeof=da,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t})(((n,t)=>{let{lang:e,hanko:a,setHanko:r}=(0,f.useContext)(Ae),{setLang:i}=(0,f.useContext)(q.TranslateContext);return(0,f.useEffect)((()=>{i(e.replace(/[-]/,"")),r((c=>(c.setLang(e),c)))}),[a,e,r,i]),o("section",Object.assign({part:"container",className:wt.container,ref:t},{children:n.children}))})),Nt=Z(697),it={};it.setAttributes=Ve(),it.insert=n=>{window._hankoStyle=n},it.domAPI=Ze(),it.insertStyleElement=Je(),$e()(Nt.A,it);var j=Nt.A&&Nt.A.locals?Nt.A.locals:void 0,ja=Z(633),K=Z.n(ja),Pa=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-apple",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"20.5 16 15 19",className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"})})),Ta=({secondary:n,size:t,fadeOut:e,disabled:a})=>o("svg",Object.assign({id:"icon-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 4 40 40",width:t,height:t,className:K()(j.checkmark,n&&j.secondary,e&&j.fadeOut,a&&j.disabled)},{children:o("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z"})})),Da=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})})),Ma=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-custom-provider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:[o("path",{d:"M0 0h24v24H0z",fill:"none"}),o("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"})]})),La=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-discord",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 127.14 96.36",className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})),Ua=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-exclamation",xmlns:"http://www.w3.org/2000/svg",viewBox:"5 2 13 20",width:n,height:n,className:K()(j.exclamationMark,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})),Na=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({width:n,height:n,viewBox:"0 0 666.66668 666.66717",xmlns:"http://www.w3.org/2000/svg"},{children:[o("defs",Object.assign({id:"defs13"},{children:o("clipPath",Object.assign({clipPathUnits:"userSpaceOnUse",id:"clipPath25"},{children:o("path",{d:"M 0,700 H 700 V 0 H 0 Z",id:"path23"})}))})),o("g",Object.assign({id:"g17",transform:"matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)"},{children:o("g",Object.assign({id:"g19"},{children:o("g",Object.assign({id:"g21",clipPath:"url(#clipPath25)"},{children:[o("g",Object.assign({id:"g27",transform:"translate(600,350)"},{children:o("path",{className:K()(j.facebookIcon,e?j.disabledOutline:j.outline),d:"m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0",id:"path29"})})),o("g",Object.assign({id:"g31",transform:"translate(447.9175,273.6036)"},{children:o("path",{className:K()(j.facebookIcon,e?j.disabledLetter:j.letter),d:"M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z",id:"path33"})}))]}))}))}))]})),za=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-github",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 97.63 96",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:[o("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})," "]})),Wa=({size:n,disabled:t})=>o("svg",Object.assign({id:"icon-google",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:j.googleIcon},{children:[o("path",{className:K()(j.googleIcon,t?j.disabled:j.blue),d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),o("path",{className:K()(j.googleIcon,t?j.disabled:j.green),d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),o("path",{className:K()(j.googleIcon,t?j.disabled:j.yellow),d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),o("path",{className:K()(j.googleIcon,t?j.disabled:j.red),d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),o("path",{d:"M1 1h22v22H1z",fill:"none"})]})),Fa=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-linkedin",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,viewBox:"0 0 24 24",height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})),Ra=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-mail",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})})),Ha=({size:n,disabled:t})=>o("svg",Object.assign({id:"icon-microsoft",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:j.microsoftIcon},{children:[o("rect",{className:K()(j.microsoftIcon,t?j.disabled:j.blue),x:"1",y:"1",width:"9",height:"9"}),o("rect",{className:K()(j.microsoftIcon,t?j.disabled:j.green),x:"1",y:"11",width:"9",height:"9"}),o("rect",{className:K()(j.microsoftIcon,t?j.disabled:j.yellow),x:"11",y:"1",width:"9",height:"9"}),o("rect",{className:K()(j.microsoftIcon,t?j.disabled:j.red),x:"11",y:"11",width:"9",height:"9"})]})),qa=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-passkey",xmlns:"http://www.w3.org/2000/svg",viewBox:"3 1.5 19.5 19",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("g",Object.assign({id:"icon-passkey-all"},{children:[o("circle",{id:"icon-passkey-head",cx:"10.5",cy:"6",r:"4.5"}),o("path",{id:"icon-passkey-key",d:"M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z"}),o("path",{id:"icon-passkey-body",d:"M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z"})]}))})),Ka=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({id:"icon-password",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})})),Ba=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z"})})),Ga=({size:n,secondary:t,disabled:e})=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:K()(j.icon,t&&j.secondary,e&&j.disabled)},{children:o("path",{d:"M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z"})})),$a=({size:n,disabled:t})=>o("svg",Object.assign({id:"icon-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:K()(j.loadingSpinner,t&&j.disabled)},{children:[o("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),o("path",{d:"M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z"})]})),St=({name:n,secondary:t,size:e=18,fadeOut:a,disabled:r})=>o(ln[n],{size:e,secondary:t,fadeOut:a,disabled:r}),zn=({children:n,isLoading:t,isSuccess:e,fadeOut:a,secondary:r,hasIcon:i,maxWidth:c})=>o(x.Fragment,{children:o("div",t?Object.assign({className:K()(j.loadingSpinnerWrapper,j.centerContent,c&&j.maxWidth)},{children:o(St,{name:"spinner",secondary:r})}):e?Object.assign({className:K()(j.loadingSpinnerWrapper,j.centerContent,c&&j.maxWidth)},{children:o(St,{name:"checkmark",secondary:r,fadeOut:a})}):Object.assign({className:i?j.loadingSpinnerWrapperIcon:j.loadingSpinnerWrapper},{children:n}))}),Za=()=>o(zn,{isLoading:!0}),Se=n=>{let[t,e]=(0,f.useState)(n);return(0,f.useEffect)((()=>{n&&e(n)}),[n]),{flowState:t}},zt=Z(577),st={};st.setAttributes=Ve(),st.insert=n=>{window._hankoStyle=n},st.domAPI=Ze(),st.insertStyleElement=Je(),$e()(zt.A,st);var we=zt.A&&zt.A.locals?zt.A.locals:void 0,zo=(n,t,e)=>{let{hanko:a,setUIState:r,isOwnFlow:i}=(0,f.useContext)(Ae);(0,f.useEffect)((()=>a.onBeforeStateChange((({state:c})=>{n&&i(c)&&(r((d=>Object.assign(Object.assign({},d),{isDisabled:!0,error:void 0}))),t(c.invokedAction.name==n.name))}))),[n,a,i,t,r]),(0,f.useEffect)((()=>a.onAfterStateChange((({state:c})=>{var d;n&&i(c)&&(e(((d=c.previousAction)===null||d===void 0?void 0:d.name)==n.name),t(!1))}))),[a,e,t,n,i])},Wo=(0,x.createContext)({}),Q=({onSubmit:n,children:t,hidden:e=!1,maxWidth:a,flowAction:r})=>o(Wo.Provider,Object.assign({value:{flowAction:r}},{children:r&&r.enabled&&!e?o("form",Object.assign({onSubmit:n||(i=>{return c=void 0,d=void 0,s=function*(){return i.preventDefault(),yield r.run()},new((u=void 0)||(u=Promise))((function(l,v){function _(b){try{w(s.next(b))}catch(S){v(S)}}function m(b){try{w(s.throw(b))}catch(S){v(S)}}function w(b){var S;b.done?l(b.value):(S=b.value,S instanceof u?S:new u((function(C){C(S)}))).then(_,m)}w((s=s.apply(c,d||[])).next())}));var c,d,u,s}),className:we.form},{children:o("ul",Object.assign({className:we.ul},{children:(0,x.toChildArray)(t).map(((i,c)=>o("li",Object.assign({part:"form-item",className:K()(we.li,a?we.maxWidth:null)},{children:i}),c)))}))})):null})),Y=n=>{var{title:t,children:e,secondary:a,dangerous:r,autofocus:i,showLastUsed:c,onClick:d,icon:u,showSuccessIcon:s}=n,l=(function(L,U){var H={};for(var G in L)Object.prototype.hasOwnProperty.call(L,G)&&U.indexOf(G)<0&&(H[G]=L[G]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function"){var $=0;for(G=Object.getOwnPropertySymbols(L);$<G.length;$++)U.indexOf(G[$])<0&&Object.prototype.propertyIsEnumerable.call(L,G[$])&&(H[G[$]]=L[G[$]])}return H})(n,["title","children","secondary","dangerous","autofocus","showLastUsed","onClick","icon","showSuccessIcon"]);let v=(0,f.useRef)(null),{uiState:_}=(0,f.useContext)(Ae),{t:m}=(0,f.useContext)(q.TranslateContext),[w,b]=(0,f.useState)(!1),[S,C]=(0,f.useState)(!1),{flowAction:M}=(0,f.useContext)(Wo);zo(M,b,C),(0,f.useEffect)((()=>{let{current:L}=v;L&&i&&L.focus()}),[i]);let I=(0,f.useMemo)((()=>s&&(S||l.isSuccess)),[S,l,s]),T=(0,f.useMemo)((()=>_.isDisabled||l.disabled),[l,_]);return o("button",Object.assign({part:r?"button dangerous-button":a?"button secondary-button":"button primary-button",title:t,ref:v,type:"submit",disabled:T,onClick:d,className:K()(we.button,r?we.dangerous:a?we.secondary:we.primary),"data-bubble":c?m("labels.lastUsed"):void 0},{children:o(zn,Object.assign({isLoading:w,isSuccess:I,secondary:!0,hasIcon:!!u,maxWidth:!0},{children:[u?o(St,{name:u,secondary:a,disabled:T}):null,o("div",Object.assign({className:we.caption},{children:o("span",{children:e})}))]}))}))},Pe=n=>{var t,e,a,r,i,{label:c}=n,d=(function(m,w){var b={};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&w.indexOf(S)<0&&(b[S]=m[S]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var C=0;for(S=Object.getOwnPropertySymbols(m);C<S.length;C++)w.indexOf(S[C])<0&&Object.prototype.propertyIsEnumerable.call(m,S[C])&&(b[S[C]]=m[S[C]])}return b})(n,["label"]);let u=(0,f.useRef)(null),{uiState:s}=(0,f.useContext)(Ae),{t:l}=(0,f.useContext)(q.TranslateContext),v=(0,f.useMemo)((()=>s.isDisabled||d.disabled),[d,s]);(0,f.useEffect)((()=>{let{current:m}=u;m&&d.autofocus&&(m.focus(),m.select())}),[d.autofocus]);let _=(0,f.useMemo)((()=>{var m;return d.markOptional&&!(!((m=d.flowInput)===null||m===void 0)&&m.required)?`${d.placeholder} (${l("labels.optional")})`:d.placeholder}),[d.markOptional,d.placeholder,d.flowInput,l]);return o("div",Object.assign({className:we.inputWrapper},{children:o("input",Object.assign({part:"input text-input",required:(t=d.flowInput)===null||t===void 0?void 0:t.required,maxLength:(e=d.flowInput)===null||e===void 0?void 0:e.max_length,minLength:(a=d.flowInput)===null||a===void 0?void 0:a.min_length,hidden:(r=d.flowInput)===null||r===void 0?void 0:r.hidden},d,{ref:u,"aria-label":_,placeholder:_,className:K()(we.input,!!(!((i=d.flowInput)===null||i===void 0)&&i.error)&&d.markError&&we.error),disabled:v}))}))},ye=({children:n})=>o("section",Object.assign({className:wt.content},{children:n})),Wt=Z(111),ct={};ct.setAttributes=Ve(),ct.insert=n=>{window._hankoStyle=n},ct.domAPI=Ze(),ct.insertStyleElement=Je(),$e()(Wt.A,ct);var vt=Wt.A&&Wt.A.locals?Wt.A.locals:void 0,Wn=({children:n,hidden:t})=>t?null:o("section",Object.assign({part:"divider",className:vt.divider},{children:[o("div",{part:"divider-line",className:vt.line}),n?o("div",Object.assign({part:"divider-text",class:vt.text},{children:n})):null,o("div",{part:"divider-line",className:vt.line})]})),Ft=Z(905),lt={};lt.setAttributes=Ve(),lt.insert=n=>{window._hankoStyle=n},lt.domAPI=Ze(),lt.insertStyleElement=Je(),$e()(Ft.A,lt);var Fo=Ft.A&&Ft.A.locals?Ft.A.locals:void 0,be=({state:n,error:t,flowError:e})=>{var a,r;let{t:i}=(0,f.useContext)(q.TranslateContext),{uiState:c,setUIState:d}=(0,f.useContext)(Ae);return(0,f.useEffect)((()=>{var u,s;if(((u=n==null?void 0:n.error)===null||u===void 0?void 0:u.code)=="form_data_invalid_error")for(let l of Object.values(n==null?void 0:n.actions)){let v=!1;for(let _ of Object.values(l==null?void 0:l.inputs))if(!((s=_.error)===null||s===void 0)&&s.code)return d(Object.assign(Object.assign({},c),{error:_.error})),void(v=!0);v||d(Object.assign(Object.assign({},c),{error:n.error}))}else n!=null&&n.error&&d(Object.assign(Object.assign({},c),{error:n==null?void 0:n.error}))}),[n]),o("section",Object.assign({part:"error",className:Fo.errorBox,hidden:!(!((a=c.error)===null||a===void 0)&&a.code)&&!(e!=null&&e.code)&&!t},{children:[o("span",{children:o(St,{name:"exclamation",size:15})}),o("span",Object.assign({id:"errorMessage",part:"error-text"},{children:i(t?`errors.${t.code}`:`flowErrors.${((r=c.error)===null||r===void 0?void 0:r.code)||(e==null?void 0:e.code)}`)}))]}))},Rt=Z(619),dt={};dt.setAttributes=Ve(),dt.insert=n=>{window._hankoStyle=n},dt.domAPI=Ze(),dt.insertStyleElement=Je(),$e()(Rt.A,dt);var tn=Rt.A&&Rt.A.locals?Rt.A.locals:void 0,ae=({children:n})=>o("h1",Object.assign({part:"headline1",className:K()(tn.headline,tn.grade1)},{children:n})),Ht=Z(995),ut={};ut.setAttributes=Ve(),ut.insert=n=>{window._hankoStyle=n},ut.domAPI=Ze(),ut.insertStyleElement=Je(),$e()(Ht.A,ut);var Pt=Ht.A&&Ht.A.locals?Ht.A.locals:void 0,Dn=n=>{var{loadingSpinnerPosition:t,dangerous:e=!1,onClick:a,flowAction:r}=n,i=(function(U,H){var G={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&H.indexOf($)<0&&(G[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function"){var ee=0;for($=Object.getOwnPropertySymbols(U);ee<$.length;ee++)H.indexOf($[ee])<0&&Object.prototype.propertyIsEnumerable.call(U,$[ee])&&(G[$[ee]]=U[$[ee]])}return G})(n,["loadingSpinnerPosition","dangerous","onClick","flowAction"]);let{t:c}=(0,f.useContext)(q.TranslateContext),{uiState:d}=(0,f.useContext)(Ae),[u,s]=(0,f.useState)(),[l,v]=(0,f.useState)(!1),[_,m]=(0,f.useState)(!1),w;a||(a=U=>{return H=void 0,G=void 0,ee=function*(){return U.preventDefault(),yield r==null?void 0:r.run()},new(($=void 0)||($=Promise))((function(N,pe){function Ee(te){try{Ce(ee.next(te))}catch(ie){pe(ie)}}function ke(te){try{Ce(ee.throw(te))}catch(ie){pe(ie)}}function Ce(te){var ie;te.done?N(te.value):(ie=te.value,ie instanceof $?ie:new $((function(ue){ue(ie)}))).then(Ee,ke)}Ce((ee=ee.apply(H,G||[])).next())}));var H,G,$,ee}),zo(r,v,m);let b=U=>{U.preventDefault(),s(!0)},S=U=>{U.preventDefault(),s(!1)},C=(0,f.useMemo)((()=>l||i.isLoading),[l,i]),M=(0,f.useMemo)((()=>_||i.isSuccess),[_,i]),I=(0,f.useMemo)((()=>r&&!r.enabled||i.hidden),[r,i]),T=(0,f.useCallback)((U=>{U.preventDefault(),s(!1),a(U)}),[a]),L=(0,f.useCallback)((()=>I?null:o(x.Fragment,{children:[u?o(x.Fragment,{children:[o(Dn,Object.assign({onClick:T},{children:c("labels.yes")})),"\xA0/\xA0",o(Dn,Object.assign({onClick:S},{children:c("labels.no")})),"\xA0"]}):null,o("button",Object.assign({},i,{onClick:e?b:a,disabled:u||i.disabled||d.isDisabled,part:"link",className:K()(Pt.link,e?Pt.danger:null)},{children:i.children}))]})),[I,d,u,e,a,T,i,c]);return o(x.Fragment,{children:o("span",Object.assign({className:K()(Pt.linkWrapper,t==="right"?Pt.reverse:null),onMouseEnter:()=>{w&&window.clearTimeout(w)},onMouseLeave:()=>{w=window.setTimeout((()=>{s(!1)}),1e3)}},{children:o(x.Fragment,u||!C&&!M?{children:L()}:{children:[o(zn,{isLoading:C,isSuccess:M,secondary:i.secondary,fadeOut:!0}),L()]})}))})},B=Dn,xe=({children:n,hidden:t=!1})=>t?null:o("section",Object.assign({className:wt.footer},{children:n})),Fn=n=>{var{label:t}=n,e=(function(i,c){var d={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&c.indexOf(u)<0&&(d[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(u=Object.getOwnPropertySymbols(i);s<u.length;s++)c.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(d[u[s]]=i[u[s]])}return d})(n,["label"]);let{uiState:a}=(0,f.useContext)(Ae),r=(0,f.useMemo)((()=>a.isDisabled||e.disabled),[e,a]);return o("div",Object.assign({className:we.inputWrapper},{children:o("label",Object.assign({className:we.checkboxWrapper},{children:[o("input",Object.assign({part:"input checkbox-input",type:"checkbox","aria-label":t,className:we.checkbox},e)),o("span",Object.assign({className:K()(we.label,r?we.disabled:null)},{children:t}))]}))}))},nn=()=>o("section",{className:vt.spacer}),qt=Z(489),ht={};ht.setAttributes=Ve(),ht.insert=n=>{window._hankoStyle=n},ht.domAPI=Ze(),ht.insertStyleElement=Je(),$e()(qt.A,ht);var sn=qt.A&&qt.A.locals?qt.A.locals:void 0,F=({children:n,hidden:t,center:e})=>t?null:o("p",Object.assign({part:"paragraph",className:K()(sn.paragraph,e&&sn.center,e&&sn.column)},{children:n})),Tt=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Va=n=>{var t;let{t:e}=(0,f.useContext)(q.TranslateContext),{init:a,initialComponentName:r,uiState:i,setUIState:c,hidePasskeyButtonOnLogin:d,lastLogin:u}=(0,f.useContext)(Ae),[s,l]=(0,f.useState)(!1),[v,_]=(0,f.useState)(null),[m,w]=(0,f.useState)(null),{flowState:b}=Se(n.state),S=Xe.supported(),[C,M]=(0,f.useState)(void 0),[I,T]=(0,f.useState)(null),[L,U]=(0,f.useState)(!1),H=N=>{if(N.preventDefault(),N.target instanceof HTMLInputElement){let{value:pe}=N.target;w(pe),G(pe)}},G=N=>{let pe=()=>c((ke=>Object.assign(Object.assign({},ke),{email:N,username:null}))),Ee=()=>c((ke=>Object.assign(Object.assign({},ke),{email:null,username:N})));switch(v){case"email":pe();break;case"username":Ee();break;case"identifier":N.match(/^[^@]+@[^@]+\.[^@]+$/)?pe():Ee()}},$=(0,f.useMemo)((()=>(!!b.actions.webauthn_generate_request_options.enabled||!!b.actions.thirdparty_oauth.enabled)&&b.actions.continue_with_login_identifier.enabled),[b.actions]),ee=b.actions.continue_with_login_identifier.inputs;return(0,f.useEffect)((()=>{let N=b.actions.continue_with_login_identifier.inputs;N!=null&&N.email?(_("email"),w(i.email)):N!=null&&N.username?(_("username"),w(i.username)):(_("identifier"),w(i.email||i.username))}),[b,i.email,i.username]),o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:e("headlines.signIn")}),o(be,{state:b,error:C}),ee?o(x.Fragment,{children:[o(Q,Object.assign({flowAction:b.actions.continue_with_login_identifier,onSubmit:N=>Tt(void 0,void 0,void 0,(function*(){return N.preventDefault(),G(m),b.actions.continue_with_login_identifier.run({[v]:m})})),maxWidth:!0},{children:[ee.email?o(Pe,{type:"email",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.email,onInput:H,value:m,placeholder:e("labels.email"),pattern:"^[^@]+@[^@]+\\.[^@]+$"}):ee.username?o(Pe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.username,onInput:H,value:m,placeholder:e("labels.username")}):o(Pe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.identifier,onInput:H,value:m,placeholder:e("labels.emailOrUsername")}),o(Y,{children:e("labels.continue")})]})),o(Wn,Object.assign({hidden:!$},{children:e("labels.or")}))]}):null,b.actions.thirdparty_oauth.enabled?(t=b.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map((N=>o(Q,Object.assign({flowAction:b.actions.thirdparty_oauth,onSubmit:pe=>((Ee,ke)=>Tt(void 0,void 0,void 0,(function*(){Ee.preventDefault(),T(ke);let Ce=yield b.actions.thirdparty_oauth.run({provider:ke,redirect_to:window.location.toString()});return Ce.error&&T(null),Ce})))(pe,N.value)},{children:o(Y,Object.assign({isLoading:N.value==I,secondary:!0,icon:N.value.startsWith("custom_")?"customProvider":N.value,showLastUsed:(u==null?void 0:u.login_method)=="third_party"&&(u==null?void 0:u.third_party_provider)==N.value},{children:e("labels.signInWith",{provider:N.name})}))}),N.value))):null,b.actions.webauthn_generate_request_options.enabled&&!d?o(Q,Object.assign({flowAction:b.actions.webauthn_generate_request_options},{children:o(Y,Object.assign({secondary:!0,title:S?null:e("labels.webauthnUnsupported"),disabled:!S},{children:e("labels.signInPasskey")}))})):null,b.actions.remember_me.enabled&&o(x.Fragment,{children:[o(nn,{}),o(Fn,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:L,onChange:N=>Tt(void 0,void 0,void 0,(function*(){return U((pe=>!pe)),b.actions.remember_me.run({remember_me:!L})}))})]})]}),o(xe,Object.assign({hidden:r!=="auth"},{children:o(F,Object.assign({center:!0},{children:[o("span",{children:e("labels.dontHaveAnAccount")}),o(B,Object.assign({onClick:N=>Tt(void 0,void 0,void 0,(function*(){N.preventDefault(),l(!0),a("registration")})),loadingSpinnerPosition:"left",isLoading:s},{children:e("labels.signUp")}))]}))}))]})},Ja=n=>{var{index:t,focus:e,digit:a=""}=n,r=(function(s,l){var v={};for(var _ in s)Object.prototype.hasOwnProperty.call(s,_)&&l.indexOf(_)<0&&(v[_]=s[_]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var m=0;for(_=Object.getOwnPropertySymbols(s);m<_.length;m++)l.indexOf(_[m])<0&&Object.prototype.propertyIsEnumerable.call(s,_[m])&&(v[_[m]]=s[_[m]])}return v})(n,["index","focus","digit"]);let i=(0,f.useRef)(null),{uiState:c}=(0,f.useContext)(Ae),d=()=>{let{current:s}=i;s&&(s.focus(),s.select())},u=(0,f.useMemo)((()=>c.isDisabled||r.disabled),[r,c]);return(0,f.useEffect)((()=>{t===0&&d()}),[t,r.disabled]),(0,f.useMemo)((()=>{e&&d()}),[e]),o("div",Object.assign({className:we.passcodeDigitWrapper},{children:o("input",Object.assign({},r,{part:"input passcode-input","aria-label":`${r.name}-digit-${t+1}`,name:r.name+t.toString(10),type:"text",inputMode:"numeric",maxLength:1,ref:i,value:a.charAt(0),required:!0,className:we.input,disabled:u}))}))},Rn=({passcodeDigits:n=[],numberOfInputs:t=6,onInput:e,disabled:a=!1})=>{let[r,i]=(0,f.useState)(0),c=()=>n.slice(),d=()=>{r<t-1&&i(r+1)},u=()=>{r>0&&i(r-1)},s=m=>{let w=c();w[r]=m.charAt(0),e(w)},l=m=>{if(m.preventDefault(),a)return;let w=m.clipboardData.getData("text/plain").slice(0,t-r).split(""),b=c(),S=r;for(let C=0;C<t;++C)C>=r&&w.length>0&&(b[C]=w.shift(),S++);i(S),e(b)},v=m=>{m.key==="Backspace"?(m.preventDefault(),s(""),u()):m.key==="Delete"?(m.preventDefault(),s("")):m.key==="ArrowLeft"?(m.preventDefault(),u()):m.key==="ArrowRight"?(m.preventDefault(),d()):m.key!==" "&&m.key!=="Spacebar"&&m.key!=="Space"||m.preventDefault()},_=m=>{m.target instanceof HTMLInputElement&&s(m.target.value),d()};return(0,f.useEffect)((()=>{n.length===0&&i(0)}),[n]),o("div",Object.assign({className:we.passcodeInputWrapper},{children:Array.from(Array(t)).map(((m,w)=>o(Ja,{name:"passcode",index:w,focus:r===w,digit:n[w],onKeyDown:v,onInput:_,onPaste:l,onFocus:()=>(b=>{i(b)})(w),disabled:a},w)))}))},lo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Qa=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),{uiState:a,setUIState:r}=(0,f.useContext)(Ae),[i,c]=(0,f.useState)(),[d,u]=(0,f.useState)(e.payload.resend_after),[s,l]=(0,f.useState)([]),v=(0,f.useMemo)((()=>{var m;return((m=e.error)===null||m===void 0?void 0:m.code)==="passcode_max_attempts_reached"}),[e]),_=(0,f.useCallback)((m=>lo(void 0,void 0,void 0,(function*(){return yield e.actions.verify_passcode.run({code:m})}))),[e]);return(0,f.useEffect)((()=>{let m=i>0&&setInterval((()=>c(i-1)),1e3);return()=>clearInterval(m)}),[i]),(0,f.useEffect)((()=>{let m=d>0&&setInterval((()=>{u(d-1)}),1e3);return()=>clearInterval(m)}),[d]),(0,f.useEffect)((()=>{var m;d==0&&((m=e.error)===null||m===void 0?void 0:m.code)=="rate_limit_exceeded"&&r((w=>Object.assign(Object.assign({},w),{error:null})))}),[d]),(0,f.useEffect)((()=>{l([]),e.payload.resend_after>=0&&u(e.payload.resend_after)}),[e]),o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.loginPasscode")}),o(be,{state:e}),o(F,{children:a.email?t("texts.enterPasscode"):t("texts.enterPasscodeNoEmail")}),o(F,Object.assign({hidden:!a.email},{children:o("b",{children:a.email})})),o(Q,Object.assign({flowAction:e.actions.verify_passcode,onSubmit:m=>lo(void 0,void 0,void 0,(function*(){return m.preventDefault(),_(s.join(""))}))},{children:[o(Rn,{onInput:m=>{if(l(m),m.filter((w=>w!=="")).length===6)return _(m.join(""))},passcodeDigits:s,numberOfInputs:6,disabled:i<=0||v}),o(Y,Object.assign({disabled:i<=0||v},{children:t("labels.continue")}))]}))]}),o(xe,{children:[o(B,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),o(B,Object.assign({disabled:d>0,flowAction:e.actions.resend_passcode,loadingSpinnerPosition:"left"},{children:d>0?t("labels.passcodeResendAfter",{passcodeResendAfter:d}):t("labels.sendNewPasscode")}))]})]})},Ya=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.registerAuthenticator")}),o(be,{state:e}),o(F,{children:t("texts.setupPasskey")}),o(Q,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:o(Y,Object.assign({autofocus:!0,icon:"passkey"},{children:t("labels.registerAuthenticator")}))}))]}),o(xe,Object.assign({hidden:!e.actions.skip.enabled&&!e.actions.back.enabled},{children:[o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),o(B,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},uo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Xa=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)(),[i,c]=(0,f.useState)(),d=(0,f.useMemo)((()=>o(B,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation_recovery,loadingSpinnerPosition:"left"},{children:t("labels.forgotYourPassword")}))),[e,t]),u=(0,f.useMemo)((()=>o(B,Object.assign({flowAction:e.actions.continue_to_login_method_chooser,loadingSpinnerPosition:"left"},{children:"Choose another method"}))),[e]);return(0,f.useEffect)((()=>{let s=i>0&&setInterval((()=>c(i-1)),1e3);return()=>clearInterval(s)}),[i]),o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.loginPassword")}),o(be,{state:e}),o(Q,Object.assign({flowAction:e.actions.password_login,onSubmit:s=>uo(void 0,void 0,void 0,(function*(){return s.preventDefault(),e.actions.password_login.run({password:a})}))},{children:[o(Pe,{type:"password",flowInput:e.actions.password_login.inputs.password,autocomplete:"current-password",placeholder:t("labels.password"),onInput:s=>uo(void 0,void 0,void 0,(function*(){s.target instanceof HTMLInputElement&&r(s.target.value)})),autofocus:!0}),o(Y,Object.assign({disabled:i>0},{children:i>0?t("labels.passwordRetryAfter",{passwordRetryAfter:i}):t("labels.signIn")}))]})),e.actions.continue_to_login_method_chooser.enabled?d:null]}),o(xe,{children:[o(B,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),e.actions.continue_to_login_method_chooser.enabled?u:d]})]})},ho=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},er=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)();return o(ye,{children:[o(ae,{children:t("headlines.registerPassword")}),o(be,{state:e}),o(F,{children:t("texts.passwordFormatHint",{minLength:e.actions.password_recovery.inputs.new_password.min_length,maxLength:72})}),o(Q,Object.assign({flowAction:e.actions.password_recovery,onSubmit:i=>ho(void 0,void 0,void 0,(function*(){return i.preventDefault(),e.actions.password_recovery.run({new_password:a})}))},{children:[o(Pe,{type:"password",autocomplete:"new-password",flowInput:e.actions.password_recovery.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>ho(void 0,void 0,void 0,(function*(){i.target instanceof HTMLInputElement&&r(i.target.value)})),autofocus:!0}),o(Y,{children:t("labels.continue")})]}))]})},tr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.selectLoginMethod")}),o(be,{flowError:e==null?void 0:e.error}),o(F,{children:t("texts.howDoYouWantToLogin")}),o(Q,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation},{children:o(Y,Object.assign({secondary:!0,icon:"mail"},{children:t("labels.passcode")}))})),o(Q,Object.assign({flowAction:e.actions.continue_to_password_login},{children:o(Y,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))})),o(Q,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:o(Y,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))}))]}),o(xe,{children:o(B,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},Dt=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},nr=n=>{var t;let{t:e}=(0,f.useContext)(q.TranslateContext),{init:a,uiState:r,setUIState:i,initialComponentName:c}=(0,f.useContext)(Ae),{flowState:d}=Se(n.state),u=d.actions.register_login_identifier.inputs,s=!(!(u!=null&&u.email)||!(u!=null&&u.username)),[l,v]=(0,f.useState)(void 0),[_,m]=(0,f.useState)(null),[w,b]=(0,f.useState)(!1),[S,C]=(0,f.useState)(!1),M=(0,f.useMemo)((()=>!!d.actions.thirdparty_oauth.enabled&&d.actions.register_login_identifier.enabled),[d.actions]);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:e("headlines.signUp")}),o(be,{state:d,error:l}),u?o(x.Fragment,{children:[o(Q,Object.assign({flowAction:d.actions.register_login_identifier,onSubmit:I=>Dt(void 0,void 0,void 0,(function*(){return I.preventDefault(),yield d.actions.register_login_identifier.run({email:r.email,username:r.username})})),maxWidth:!0},{children:[u.username?o(Pe,{markOptional:s,markError:s,type:"text",autoComplete:"username",autoCorrect:"off",flowInput:u.username,onInput:I=>{if(I.preventDefault(),I.target instanceof HTMLInputElement){let{value:T}=I.target;i((L=>Object.assign(Object.assign({},L),{username:T})))}},value:r.username,placeholder:e("labels.username")}):null,u.email?o(Pe,{markOptional:s,markError:s,type:"email",autoComplete:"email",autoCorrect:"off",flowInput:u.email,onInput:I=>{if(I.preventDefault(),I.target instanceof HTMLInputElement){let{value:T}=I.target;i((L=>Object.assign(Object.assign({},L),{email:T})))}},value:r.email,placeholder:e("labels.email"),pattern:"^.*[^0-9]+$"}):null,o(Y,Object.assign({autofocus:!0},{children:e("labels.continue")}))]})),o(Wn,Object.assign({hidden:!M},{children:e("labels.or")}))]}):null,d.actions.thirdparty_oauth.enabled?(t=d.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map((I=>o(Q,Object.assign({flowAction:d.actions.thirdparty_oauth,onSubmit:T=>((L,U)=>Dt(void 0,void 0,void 0,(function*(){L.preventDefault(),m(U);let H=yield d.actions.thirdparty_oauth.run({provider:U,redirect_to:window.location.toString()},{dispatchAfterStateChangeEvent:!1});m(null),H.dispatchAfterStateChangeEvent()})))(T,I.value)},{children:o(Y,Object.assign({isLoading:I.value==_,secondary:!0,icon:I.value.startsWith("custom_")?"customProvider":I.value},{children:e("labels.signInWith",{provider:I.name})}))}),I.value))):null,d.actions.remember_me.enabled&&o(x.Fragment,{children:[o(nn,{}),o(Fn,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:w,onChange:I=>Dt(void 0,void 0,void 0,(function*(){I.preventDefault();let T=yield d.actions.remember_me.run({remember_me:!w},{dispatchAfterStateChangeEvent:!1});b((L=>!L)),T.dispatchAfterStateChangeEvent()}))})]})]}),o(xe,Object.assign({hidden:c!=="auth"},{children:o(F,Object.assign({center:!0},{children:[o("span",{children:e("labels.alreadyHaveAnAccount")}),o(B,Object.assign({onClick:I=>Dt(void 0,void 0,void 0,(function*(){I.preventDefault(),C(!0),a("login")})),loadingSpinnerPosition:"left",isLoading:S},{children:e("labels.signIn")}))]}))}))]})},po=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},or=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)();return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.registerPassword")}),o(be,{state:e}),o(F,{children:t("texts.passwordFormatHint",{minLength:e.actions.register_password.inputs.new_password.min_length,maxLength:72})}),o(Q,Object.assign({flowAction:e.actions.register_password,onSubmit:i=>po(void 0,void 0,void 0,(function*(){return i.preventDefault(),e.actions.register_password.run({new_password:a})}))},{children:[o(Pe,{type:"password",autocomplete:"new-password",flowInput:e.actions.register_password.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>po(void 0,void 0,void 0,(function*(){i.target instanceof HTMLInputElement&&r(i.target.value)})),autofocus:!0}),o(Y,{children:t("labels.continue")})]}))]}),o(xe,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),o(B,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},Kt=Z(21),pt={};pt.setAttributes=Ve(),pt.insert=n=>{window._hankoStyle=n},pt.domAPI=Ze(),pt.insertStyleElement=Je(),$e()(Kt.A,pt);var He=Kt.A&&Kt.A.locals?Kt.A.locals:void 0,xt=function({name:n,columnSelector:t,contentSelector:e,data:a=[],checkedItemID:r,setCheckedItemID:i,dropdown:c=!1}){let d=(0,f.useCallback)((l=>`${n}-${l}`),[n]),u=(0,f.useCallback)((l=>d(l)===r),[r,d]),s=l=>{if(!(l.target instanceof HTMLInputElement))return;let v=parseInt(l.target.value,10),_=d(v);i(_===r?null:_)};return o("div",Object.assign({className:He.accordion},{children:a.map(((l,v)=>o("div",Object.assign({className:He.accordionItem},{children:[o("input",{type:"radio",className:He.accordionInput,id:`${n}-${v}`,name:n,onClick:s,value:v,checked:u(v)}),o("label",Object.assign({className:K()(He.label,c&&He.dropdown),for:`${n}-${v}`},{children:o("span",Object.assign({className:He.labelText},{children:t(l,v)}))})),o("div",Object.assign({className:K()(He.accordionContent,c&&He.dropdownContent)},{children:e(l,v)}))]}),v)))}))},Oe=({children:n})=>o("h2",Object.assign({part:"headline2",className:K()(tn.headline,tn.grade2)},{children:n})),cn=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},ar=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{let{t:r}=(0,f.useContext)(q.TranslateContext),i=(0,f.useMemo)((()=>!1),[]);return o(xt,{name:"email-edit-dropdown",columnSelector:c=>{let d=o("span",Object.assign({className:He.description},{children:c.is_verified?c.is_primary?o(x.Fragment,{children:[" -"," ",r("labels.primaryEmail")]}):null:o(x.Fragment,{children:[" -"," ",r("labels.unverifiedEmail")]})}));return c.is_primary?o(x.Fragment,{children:[o("b",{children:c.address}),d]}):o(x.Fragment,{children:[c.address,d]})},data:e.payload.user.emails,contentSelector:c=>{var d,u;return o(x.Fragment,{children:[c.is_primary?o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.isPrimaryEmail")}),r("texts.isPrimaryEmail")]})}):o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.setPrimaryEmail")}),r("texts.setPrimaryEmail"),o("br",{}),o(B,Object.assign({flowAction:e.actions.email_set_primary,onClick:s=>((l,v)=>cn(void 0,void 0,void 0,(function*(){l.preventDefault();let _=yield e.actions.email_set_primary.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return a(_)})))(s,c.id),loadingSpinnerPosition:"right"},{children:r("labels.setAsPrimaryEmail")}))]})}),c.is_verified?o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.emailVerified")}),r("texts.emailVerified")]})}):o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.emailUnverified")}),r("texts.emailUnverified"),o("br",{}),o(B,Object.assign({flowAction:e.actions.email_verify,onClick:s=>((l,v)=>cn(void 0,void 0,void 0,(function*(){l.preventDefault();let _=yield e.actions.email_verify.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return a(_)})))(s,c.id),loadingSpinnerPosition:"right"},{children:r("labels.verify")}))]})}),!((d=e.actions.email_delete.inputs.email_id.allowed_values)===null||d===void 0)&&d.map((s=>s.value)).includes(c.id)?o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.emailDelete")}),r("texts.emailDelete"),o("br",{}),o(B,Object.assign({dangerous:!0,flowAction:e.actions.email_delete,onClick:s=>((l,v)=>cn(void 0,void 0,void 0,(function*(){l.preventDefault();let _=yield e.actions.email_delete.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return a(_)})))(s,c.id),disabled:i,loadingSpinnerPosition:"right"},{children:r("labels.delete")}))]})}):null,((u=c.identities)===null||u===void 0?void 0:u.length)>0?o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.connectedAccounts")}),c.identities.map((s=>s.provider)).join(", ")]})}):null]})},checkedItemID:n,setCheckedItemID:t})},rr=({onCredentialNameSubmit:n,oldName:t,onBack:e,credential:a,credentialType:r,flowState:i})=>{let{t:c}=(0,f.useContext)(q.TranslateContext),[d,u]=(0,f.useState)(t);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:c(r==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),o(be,{flowError:null}),o(F,{children:c(r==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey")}),o(Q,Object.assign({flowAction:i.actions.webauthn_credential_rename,onSubmit:s=>n(s,a.id,d)},{children:[o(Pe,{type:"text",name:r,value:d,minLength:3,maxLength:32,required:!0,placeholder:c(r==="security-key"?"labels.newSecurityKeyName":"labels.newPasskeyName"),onInput:s=>{return l=void 0,v=void 0,m=function*(){s.target instanceof HTMLInputElement&&u(s.target.value)},new((_=void 0)||(_=Promise))((function(w,b){function S(I){try{M(m.next(I))}catch(T){b(T)}}function C(I){try{M(m.throw(I))}catch(T){b(T)}}function M(I){var T;I.done?w(I.value):(T=I.value,T instanceof _?T:new _((function(L){L(T)}))).then(S,C)}M((m=m.apply(l,v||[])).next())}));var l,v,_,m},autofocus:!0}),o(Y,{children:c("labels.save")})]}))]}),o(xe,{children:o(B,Object.assign({onClick:e,loadingSpinnerPosition:"right"},{children:c("labels.back")}))})]})},fo=({credentials:n=[],checkedItemID:t,setCheckedItemID:e,onBack:a,onCredentialNameSubmit:r,allowCredentialDeletion:i,credentialType:c,onCredentialDelete:d,flowState:u})=>{let{t:s}=(0,f.useContext)(q.TranslateContext),{setPage:l}=(0,f.useContext)(Ae),v=m=>{if(m.name)return m.name;let w=m.public_key.replace(/[\W_]/g,"");return`${c==="security-key"?"SecurityKey":"Passkey"}-${w.substring(w.length-7,w.length)}`},_=m=>new Date(m).toLocaleString();return o(xt,{name:c==="security-key"?"security-key-edit-dropdown":"passkey-edit-dropdown",columnSelector:m=>v(m),data:n,contentSelector:m=>o(x.Fragment,{children:[o(F,{children:[o(Oe,{children:s(c==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),s(c==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey"),o("br",{}),o(B,Object.assign({onClick:w=>((b,S,C)=>{b.preventDefault(),l(o(rr,{oldName:v(S),credential:S,credentialType:C,onBack:a,onCredentialNameSubmit:r,flowState:u}))})(w,m,c),loadingSpinnerPosition:"right"},{children:s("labels.rename")}))]}),o(F,Object.assign({hidden:!i},{children:[o(Oe,{children:s(c==="security-key"?"headlines.deleteSecurityKey":"headlines.deletePasskey")}),s(c==="security-key"?"texts.deleteSecurityKey":"texts.deletePasskey"),o("br",{}),o(B,Object.assign({dangerous:!0,flowAction:u.actions.webauthn_credential_delete,onClick:w=>d(w,m.id),loadingSpinnerPosition:"right"},{children:s("labels.delete")}))]})),o(F,{children:[o(Oe,{children:s("headlines.lastUsedAt")}),m.last_used_at?_(m.last_used_at):"-"]}),o(F,{children:[o(Oe,{children:s("headlines.createdAt")}),_(m.created_at)]})]}),checkedItemID:t,setCheckedItemID:e})},at=({name:n,title:t,children:e,checkedItemID:a,setCheckedItemID:r})=>o(xt,{dropdown:!0,name:n,columnSelector:()=>t,contentSelector:()=>o(x.Fragment,{children:e}),setCheckedItemID:r,checkedItemID:a,data:[{}]}),on=({flowError:n})=>{let{t}=(0,f.useContext)(q.TranslateContext);return o(x.Fragment,{children:n?o("div",Object.assign({className:Fo.errorMessage},{children:t(`flowErrors.${n==null?void 0:n.code}`)})):null})},ir=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{var r;let{t:i}=(0,f.useContext)(q.TranslateContext),{setUIState:c}=(0,f.useContext)(Ae),[d,u]=(0,f.useState)();return o(at,Object.assign({name:"email-create-dropdown",title:i("labels.addEmail"),checkedItemID:n,setCheckedItemID:t},{children:[o(on,{flowError:(r=e.actions.email_create.inputs.email)===null||r===void 0?void 0:r.error}),o(Q,Object.assign({flowAction:e.actions.email_create,onSubmit:s=>((l,v)=>{return _=void 0,m=void 0,b=function*(){l.preventDefault(),c((C=>Object.assign(Object.assign({},C),{email:v})));let S=yield e.actions.email_create.run({email:v},{dispatchAfterStateChangeEvent:!1});return a(S)},new((w=void 0)||(w=Promise))((function(S,C){function M(L){try{T(b.next(L))}catch(U){C(U)}}function I(L){try{T(b.throw(L))}catch(U){C(U)}}function T(L){var U;L.done?S(L.value):(U=L.value,U instanceof w?U:new w((function(H){H(U)}))).then(M,I)}T((b=b.apply(_,m||[])).next())}));var _,m,w,b})(s,d).then((()=>u("")))},{children:[o(Pe,{markError:!0,type:"email",placeholder:i("labels.newEmailAddress"),onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.actions.email_create.inputs.email}),o(Y,{children:i("labels.save")})]}))]}))},mo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},sr=({checkedItemID:n,setCheckedItemID:t,onState:e,flowState:a})=>{var r,i,c;let{t:d}=(0,f.useContext)(q.TranslateContext),[u,s]=(0,f.useState)(""),l=a.actions.password_create.enabled?a.actions.password_create:a.actions.password_update;return o(at,Object.assign({name:"password-edit-dropdown",title:d(a.actions.password_create.enabled?"labels.setPassword":"labels.changePassword"),checkedItemID:n,setCheckedItemID:t},{children:[o(F,{children:d("texts.passwordFormatHint",{minLength:(r=l.inputs.password.min_length)===null||r===void 0?void 0:r.toString(10),maxLength:(i=l.inputs.password.max_length)===null||i===void 0?void 0:i.toString(10)})}),o(on,{flowError:(c=a.actions.password_create.inputs.password)===null||c===void 0?void 0:c.error}),o(Q,Object.assign({flowAction:l,onSubmit:v=>((_,m)=>mo(void 0,void 0,void 0,(function*(){_.preventDefault();let w=yield l.run({password:m},{dispatchAfterStateChangeEvent:!1});return e(w)})))(v,u).then((()=>s("")))},{children:[o(Pe,{markError:!0,autoComplete:"new-password",placeholder:d("labels.newPassword"),type:"password",onInput:v=>{v.preventDefault(),v.target instanceof HTMLInputElement&&s(v.target.value)},value:u,flowInput:l.inputs.password}),o(Y,{children:d("labels.save")})]})),o(B,Object.assign({dangerous:!0,flowAction:a.actions.password_delete,onClick:v=>(_=>mo(void 0,void 0,void 0,(function*(){_.preventDefault();let m=yield a.actions.password_delete.run(null,{dispatchAfterStateChangeEvent:!1});return e(m)})))(v).then((()=>s(""))),loadingSpinnerPosition:"right"},{children:d("labels.delete")}))]}))},vo=({checkedItemID:n,setCheckedItemID:t,credentialType:e,flowState:a,onState:r})=>{let{t:i}=(0,f.useContext)(q.TranslateContext),c=Xe.supported(),d=e=="passkey"?a.actions.webauthn_credential_create:a.actions.security_key_create;return o(at,Object.assign({name:e==="security-key"?"security-key-create-dropdown":"passkey-create-dropdown",title:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey"),checkedItemID:n,setCheckedItemID:t},{children:[o(F,{children:i(e==="security-key"?"texts.securityKeySetUp":"texts.setupPasskey")}),o(Q,Object.assign({onSubmit:u=>{return s=void 0,l=void 0,_=function*(){u.preventDefault();let m=yield d.run(null,{dispatchAfterStateChangeEvent:!1});return r(m)},new((v=void 0)||(v=Promise))((function(m,w){function b(M){try{C(_.next(M))}catch(I){w(I)}}function S(M){try{C(_.throw(M))}catch(I){w(I)}}function C(M){var I;M.done?m(M.value):(I=M.value,I instanceof v?I:new v((function(T){T(I)}))).then(b,S)}C((_=_.apply(s,l||[])).next())}));var s,l,v,_},flowAction:d},{children:o(Y,Object.assign({title:c?null:i("labels.webauthnUnsupported")},{children:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey")}))}))]}))},_o=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},cr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{var r,i;let{t:c}=(0,f.useContext)(q.TranslateContext),[d,u]=(0,f.useState)();return o(at,Object.assign({name:"username-edit-dropdown",title:c(e.payload.user.username?"labels.changeUsername":"labels.setUsername"),checkedItemID:n,setCheckedItemID:t},{children:[o(on,{flowError:e.payload.user.username?(r=e.actions.username_update.inputs.username)===null||r===void 0?void 0:r.error:(i=e.actions.username_create.inputs.username)===null||i===void 0?void 0:i.error}),o(Q,Object.assign({flowAction:e.payload.user.username?e.actions.username_update:e.actions.username_create,onSubmit:s=>_o(void 0,void 0,void 0,(function*(){s.preventDefault();let l=e.payload.user.username?e.actions.username_update:e.actions.username_create,v=yield l.run({username:d},{dispatchAfterStateChangeEvent:!1});return a(v).then((()=>u("")))}))},{children:[o(Pe,{markError:!0,placeholder:c("labels.username"),type:"text",onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.payload.user.username?e.actions.username_update.inputs.username:e.actions.username_create.inputs.username}),o(Y,{children:c("labels.save")})]})),o(B,Object.assign({flowAction:e.actions.username_delete,onClick:s=>_o(void 0,void 0,void 0,(function*(){s.preventDefault();let l=yield e.actions.username_delete.run(null,{dispatchAfterStateChangeEvent:!1});return a(l).then((()=>u("")))})),dangerous:!0,loadingSpinnerPosition:"right"},{children:c("labels.delete")}))]}))},lr=({state:n,onBack:t})=>{let{t:e}=(0,f.useContext)(q.TranslateContext);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:e("headlines.deleteAccount")}),o(be,{flowError:null}),o(F,{children:e("texts.deleteAccount")}),o(Q,Object.assign({flowAction:n.actions.account_delete},{children:[o(Fn,{required:!0,type:"checkbox",label:e("labels.deleteAccount")}),o(Y,{children:e("labels.delete")})]}))]}),o(xe,{children:o(B,Object.assign({onClick:t},{children:e("labels.back")}))})]})},dr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{let{t:r}=(0,f.useContext)(q.TranslateContext),i=c=>new Date(c).toLocaleString();return o(xt,{name:"session-edit-dropdown",columnSelector:c=>{let d=o("b",{children:c.user_agent?c.user_agent:c.id}),u=c.current?o("span",Object.assign({className:He.description},{children:o(x.Fragment,{children:[" -"," ",r("labels.currentSession")]})})):null;return o(x.Fragment,{children:[d,u]})},data:e.payload.sessions,contentSelector:c=>{var d,u,s;return o(x.Fragment,{children:[o(F,Object.assign({hidden:!c.ip_address},{children:[o(Oe,{children:r("headlines.ipAddress")}),c.ip_address]})),o(F,{children:[o(Oe,{children:r("headlines.lastUsed")}),i(c.last_used)]}),o(F,{children:[o(Oe,{children:r("headlines.createdAt")}),i(c.created_at)]}),!((s=(u=(d=e.actions.session_delete.inputs.session_id)===null||d===void 0?void 0:d.allowed_values)===null||u===void 0?void 0:u.map((l=>l.value)))===null||s===void 0)&&s.includes(c.id)?o(F,{children:[o(Oe,{children:r("headlines.revokeSession")}),o(B,Object.assign({dangerous:!0,onClick:l=>((v,_)=>{return m=void 0,w=void 0,S=function*(){v.preventDefault();let C=yield e.actions.session_delete.run({session_id:_},{dispatchAfterStateChangeEvent:!1});return a(C)},new((b=void 0)||(b=Promise))((function(C,M){function I(U){try{L(S.next(U))}catch(H){M(H)}}function T(U){try{L(S.throw(U))}catch(H){M(H)}}function L(U){var H;U.done?C(U.value):(H=U.value,H instanceof b?H:new b((function(G){G(H)}))).then(I,T)}L((S=S.apply(m,w||[])).next())}));var m,w,b,S})(l,c.id),loadingSpinnerPosition:"right"},{children:r("labels.revoke")}))]}):null]})},checkedItemID:n,setCheckedItemID:t})},go=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},ur=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{var r,i,c,d;let{t:u}=(0,f.useContext)(q.TranslateContext),s=o("span",Object.assign({className:He.description},{children:!((r=e.payload.user.mfa_config)===null||r===void 0)&&r.auth_app_set_up?o(x.Fragment,{children:[" -"," ",u("labels.configured")]}):null})),l=o(x.Fragment,{children:[u("labels.authenticatorAppManage")," ",s]});return o(at,Object.assign({name:"authenticator-app-manage-dropdown",title:l,checkedItemID:n,setCheckedItemID:t},{children:[o(Oe,{children:u(!((i=e.payload.user.mfa_config)===null||i===void 0)&&i.auth_app_set_up?"headlines.authenticatorAppAlreadySetUp":"headlines.authenticatorAppNotSetUp")}),o(F,{children:[u(!((c=e.payload.user.mfa_config)===null||c===void 0)&&c.auth_app_set_up?"texts.authenticatorAppAlreadySetUp":"texts.authenticatorAppNotSetUp"),o("br",{}),!((d=e.payload.user.mfa_config)===null||d===void 0)&&d.auth_app_set_up?o(B,Object.assign({flowAction:e.actions.otp_secret_delete,onClick:v=>go(void 0,void 0,void 0,(function*(){v.preventDefault();let _=yield e.actions.otp_secret_delete.run(null,{dispatchAfterStateChangeEvent:!1});return a(_)})),loadingSpinnerPosition:"right",dangerous:!0},{children:u("labels.delete")})):o(B,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation,onClick:v=>go(void 0,void 0,void 0,(function*(){v.preventDefault();let _=yield e.actions.continue_to_otp_secret_creation.run(null,{dispatchAfterStateChangeEvent:!1});return a(_)})),loadingSpinnerPosition:"right"},{children:u("labels.authenticatorAppAdd")}))]})]}))},hr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{let{t:r}=(0,f.useContext)(q.TranslateContext),i=(0,f.useMemo)((()=>!1),[]);return o(xt,{name:"connected-accounts",columnSelector:c=>{let d=o("b",{children:c.provider});return o(x.Fragment,{children:d})},contentSelector:c=>o(x.Fragment,{children:o(x.Fragment,{children:o(F,{children:[o(Oe,{children:r("headlines.deleteIdentity")}),o(B,Object.assign({dangerous:!0,flowAction:e.actions.disconnect_thirdparty_oauth_provider,onClick:d=>((u,s)=>{return l=void 0,v=void 0,m=function*(){u.preventDefault();let w=yield e.actions.disconnect_thirdparty_oauth_provider.run({identity_id:s},{dispatchAfterStateChangeEvent:!1});return a(w)},new((_=void 0)||(_=Promise))((function(w,b){function S(I){try{M(m.next(I))}catch(T){b(T)}}function C(I){try{M(m.throw(I))}catch(T){b(T)}}function M(I){var T;I.done?w(I.value):(T=I.value,T instanceof _?T:new _((function(L){L(T)}))).then(S,C)}M((m=m.apply(l,v||[])).next())}));var l,v,_,m})(d,c.identity_id),disabled:i,loadingSpinnerPosition:"right"},{children:r("labels.delete")}))]})})}),checkedItemID:n,setCheckedItemID:t,data:e.payload.user.identities})},pr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:a})=>{var r,i;let{t:c}=(0,f.useContext)(q.TranslateContext);return o(at,Object.assign({name:"connect-account-dropdown",title:c("labels.connectAccount"),checkedItemID:n,setCheckedItemID:t},{children:[o(on,{flowError:(r=e.actions.connect_thirdparty_oauth_provider.inputs.provider)===null||r===void 0?void 0:r.error}),(i=e.actions.connect_thirdparty_oauth_provider.inputs.provider.allowed_values)===null||i===void 0?void 0:i.map((d=>o(Q,Object.assign({flowAction:e.actions.connect_thirdparty_oauth_provider,onSubmit:u=>((s,l)=>{return v=void 0,_=void 0,w=function*(){s.preventDefault();let b=yield e.actions.connect_thirdparty_oauth_provider.run({provider:l,redirect_to:window.location.href});return a(b)},new((m=void 0)||(m=Promise))((function(b,S){function C(T){try{I(w.next(T))}catch(L){S(L)}}function M(T){try{I(w.throw(T))}catch(L){S(L)}}function I(T){var L;T.done?b(T.value):(L=T.value,L instanceof m?L:new m((function(U){U(L)}))).then(C,M)}I((w=w.apply(v,_||[])).next())}));var v,_,m,w})(u,d.value)},{children:o(Y,Object.assign({icon:d.value.startsWith("custom_")?"customProvider":d.value},{children:d.name}),d)}),d.value)))]}))},Mt=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Ro=n=>{var t,e,a,r,i,c,d;let{t:u}=(0,f.useContext)(q.TranslateContext),{setPage:s}=(0,f.useContext)(Ae),{flowState:l}=Se(n.state),[v,_]=(0,f.useState)(""),m=S=>Mt(void 0,void 0,void 0,(function*(){S!=null&&S.error||(_(null),yield new Promise((C=>setTimeout(C,360)))),S.dispatchAfterStateChangeEvent()})),w=(S,C,M)=>Mt(void 0,void 0,void 0,(function*(){S.preventDefault();let I=yield l.actions.webauthn_credential_rename.run({passkey_id:C,passkey_name:M},{dispatchAfterStateChangeEvent:!1});return m(I)})),b=S=>(S.preventDefault(),s(o(Ro,{state:l,enablePasskeys:n.enablePasskeys})),Promise.resolve());return o(ye,{children:[o(be,{state:((t=l==null?void 0:l.error)===null||t===void 0?void 0:t.code)!=="form_data_invalid_error"?l:null}),l.actions.username_create.enabled||l.actions.username_update.enabled||l.actions.username_delete.enabled?o(x.Fragment,{children:[o(ae,{children:u("labels.username")}),l.payload.user.username?o(F,{children:o("b",{children:l.payload.user.username.username})}):null,o(F,{children:l.actions.username_create.enabled||l.actions.username_update.enabled?o(cr,{onState:m,flowState:l,checkedItemID:v,setCheckedItemID:_}):null})]}):null,!((a=(e=l.payload)===null||e===void 0?void 0:e.user)===null||a===void 0)&&a.emails||l.actions.email_create.enabled?o(x.Fragment,{children:[o(ae,{children:u("headlines.profileEmails")}),o(F,{children:[o(ar,{flowState:l,onState:m,checkedItemID:v,setCheckedItemID:_}),l.actions.email_create.enabled?o(ir,{flowState:l,onState:m,checkedItemID:v,setCheckedItemID:_}):null]})]}):null,l.actions.password_create.enabled||l.actions.password_update.enabled?o(x.Fragment,{children:[o(ae,{children:u("headlines.profilePassword")}),o(F,{children:o(sr,{flowState:l,onState:m,checkedItemID:v,setCheckedItemID:_})})]}):null,n.enablePasskeys&&(!((i=(r=l.payload)===null||r===void 0?void 0:r.user)===null||i===void 0)&&i.passkeys||l.actions.webauthn_credential_create.enabled)?o(x.Fragment,{children:[o(ae,{children:u("headlines.profilePasskeys")}),o(F,{children:[o(fo,{flowState:l,onBack:b,onCredentialNameSubmit:w,onCredentialDelete:(S,C)=>Mt(void 0,void 0,void 0,(function*(){S.preventDefault();let M=yield l.actions.webauthn_credential_delete.run({passkey_id:C},{dispatchAfterStateChangeEvent:!1});return m(M)})),credentials:l.payload.user.passkeys,checkedItemID:v,setCheckedItemID:_,allowCredentialDeletion:!!l.actions.webauthn_credential_delete.enabled,credentialType:"passkey"}),l.actions.webauthn_credential_create.enabled?o(vo,{flowState:l,onState:m,credentialType:"passkey",checkedItemID:v,setCheckedItemID:_}):null]})]}):null,!((c=l.payload.user.mfa_config)===null||c===void 0)&&c.security_keys_enabled?o(x.Fragment,{children:[o(ae,{children:u("headlines.securityKeys")}),o(F,{children:[o(fo,{onBack:b,flowState:l,onCredentialNameSubmit:w,onCredentialDelete:(S,C)=>Mt(void 0,void 0,void 0,(function*(){S.preventDefault();let M=yield l.actions.security_key_delete.run({security_key_id:C},{dispatchAfterStateChangeEvent:!1});return m(M)})),credentials:l.payload.user.security_keys,checkedItemID:v,setCheckedItemID:_,allowCredentialDeletion:!!l.actions.security_key_delete.enabled,credentialType:"security-key"}),l.actions.security_key_create.enabled?o(vo,{flowState:l,onState:m,credentialType:"security-key",checkedItemID:v,setCheckedItemID:_}):null]})]}):null,!((d=l.payload.user.mfa_config)===null||d===void 0)&&d.totp_enabled?o(x.Fragment,{children:[o(ae,{children:u("headlines.authenticatorApp")}),o(F,{children:o(ur,{onState:m,flowState:l,checkedItemID:v,setCheckedItemID:_})})]}):null,l.actions.connect_thirdparty_oauth_provider.enabled||l.actions.disconnect_thirdparty_oauth_provider.enabled?o(x.Fragment,{children:[o(ae,{children:u("headlines.connectedAccounts")}),o(hr,{flowState:l,onState:m,checkedItemID:v,setCheckedItemID:_}),l.actions.connect_thirdparty_oauth_provider.enabled?o(pr,{setCheckedItemID:_,flowState:l,onState:m,checkedItemID:v}):null]}):null,l.payload.sessions?o(x.Fragment,{children:[o(ae,{children:u("headlines.profileSessions")}),o(F,{children:o(dr,{flowState:l,onState:m,checkedItemID:v,setCheckedItemID:_})})]}):null,l.actions.account_delete.enabled?o(x.Fragment,{children:[o(nn,{}),o(F,{children:o(Wn,{})}),o(F,{children:o(Q,Object.assign({onSubmit:S=>(S.preventDefault(),s(o(lr,{onBack:b,state:l})),Promise.resolve()),flowAction:l.actions.account_delete},{children:o(Y,Object.assign({dangerous:!0},{children:u("headlines.deleteAccount")}))}))})]}):null]})},fr=Ro,yo=({state:n,error:t})=>{let{t:e}=(0,f.useContext)(q.TranslateContext),{init:a,componentName:r}=(0,f.useContext)(Ae),[i,c]=(0,f.useState)(!1),d=(0,f.useCallback)((()=>a(r)),[r,a]),{flowState:u}=Se(n);return(0,f.useEffect)((()=>(addEventListener("hankoAuthSuccess",d),()=>{removeEventListener("hankoAuthSuccess",d)})),[d]),o(ye,{children:[o(ae,{children:e("headlines.error")}),o(be,{state:u,error:t}),o(Q,Object.assign({onSubmit:s=>{s.preventDefault(),c(!0),d()}},{children:o(Y,Object.assign({isLoading:i},{children:e("labels.continue")}))}))]})},bo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},mr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)();return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.createEmail")}),o(be,{state:e}),o(Q,Object.assign({onSubmit:i=>bo(void 0,void 0,void 0,(function*(){return i.preventDefault(),e.actions.email_address_set.run({email:a})})),flowAction:e.actions.email_address_set},{children:[o(Pe,{type:"email",autoComplete:"email",autoCorrect:"off",flowInput:e.actions.email_address_set.inputs.email,onInput:i=>bo(void 0,void 0,void 0,(function*(){i.target instanceof HTMLInputElement&&r(i.target.value)})),placeholder:t("labels.email"),pattern:"^.*[^0-9]+$",value:a}),o(Y,{children:t("labels.continue")})]}))]}),o(xe,Object.assign({hidden:!e.actions.skip.enabled},{children:[o("span",{hidden:!0}),o(B,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},ko=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},vr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)();return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.createUsername")}),o(be,{state:e}),o(Q,Object.assign({flowAction:e.actions.username_create,onSubmit:i=>ko(void 0,void 0,void 0,(function*(){return i.preventDefault(),e.actions.username_create.run({username:a})}))},{children:[o(Pe,{type:"text",autoComplete:"username",autoCorrect:"off",flowInput:e.actions.username_create.inputs.username,onInput:i=>ko(void 0,void 0,void 0,(function*(){i.target instanceof HTMLInputElement&&r(i.target.value)})),value:a,placeholder:t("labels.username")}),o(Y,{children:t("labels.continue")})]}))]}),o(xe,Object.assign({hidden:!e.actions.skip.enabled},{children:[o("span",{hidden:!0}),o(B,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},_r=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.setupLoginMethod")}),o(be,{flowError:e==null?void 0:e.error}),o(F,{children:t("texts.selectLoginMethodForFutureLogins")}),o(Q,Object.assign({flowAction:e.actions.continue_to_passkey_registration},{children:o(Y,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))})),o(Q,Object.assign({flowAction:e.actions.continue_to_password_registration},{children:o(Y,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))}))]}),o(xe,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),o(B,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},wo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},gr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)([]),i=(0,f.useCallback)((c=>wo(void 0,void 0,void 0,(function*(){return e.actions.otp_code_validate.run({otp_code:c})}))),[e]);return(0,f.useEffect)((()=>{r([])}),[e]),o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.otpLogin")}),o(be,{state:e}),o(F,{children:t("texts.otpLogin")}),o(Q,Object.assign({flowAction:e.actions.otp_code_validate,onSubmit:c=>wo(void 0,void 0,void 0,(function*(){return c.preventDefault(),i(a.join(""))}))},{children:[o(Rn,{onInput:c=>{if(r(c),c.filter((d=>d!=="")).length===6)return i(c.join(""))},passcodeDigits:a,numberOfInputs:6}),o(Y,{children:t("labels.continue")})]}))]}),o(xe,Object.assign({hidden:!e.actions.continue_to_login_security_key.enabled},{children:o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_security_key},{children:t("labels.useAnotherMethod")}))}))]})},yr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.securityKeyLogin")}),o(be,{state:e}),o(F,{children:t("texts.securityKeyLogin")}),o(Q,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:o(Y,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.securityKeyUse")}))}))]}),o(xe,Object.assign({hidden:!e.actions.continue_to_login_otp.enabled},{children:o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_otp},{children:t("labels.useAnotherMethod")}))}))]})},br=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),a=(0,f.useMemo)((()=>{let{actions:r}=e;return r.continue_to_security_key_creation.enabled&&!r.continue_to_otp_secret_creation.enabled?r.continue_to_security_key_creation:!r.continue_to_security_key_creation.enabled&&r.continue_to_otp_secret_creation.enabled?r.continue_to_otp_secret_creation:void 0}),[e]);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.mfaSetUp")}),o(be,{flowError:e==null?void 0:e.error}),o(F,{children:t("texts.mfaSetUp")}),a?o(Q,Object.assign({flowAction:a},{children:o(Y,{children:t("labels.continue")})})):o(x.Fragment,{children:[o(Q,Object.assign({flowAction:e.actions.continue_to_security_key_creation},{children:o(Y,Object.assign({secondary:!0,icon:"securityKey"},{children:t("labels.securityKey")}))})),o(Q,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation},{children:o(Y,Object.assign({secondary:!0,icon:"qrCodeScanner"},{children:t("labels.authenticatorApp")}))}))]})]}),o(xe,{children:[o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),o(B,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]})]})},Bt=Z(560),ft={};ft.setAttributes=Ve(),ft.insert=n=>{window._hankoStyle=n},ft.domAPI=Ze(),ft.insertStyleElement=Je(),$e()(Bt.A,ft);var kr=Bt.A&&Bt.A.locals?Bt.A.locals:void 0,wr=({children:n,text:t})=>{let{t:e}=(0,f.useContext)(q.TranslateContext),[a,r]=(0,f.useState)(!1);return o("section",Object.assign({className:wt.clipboardContainer},{children:[o("div",{children:[n,"\xA0"]}),o("div",Object.assign({className:wt.clipboardIcon,onClick:i=>{return c=void 0,d=void 0,s=function*(){i.preventDefault();try{yield navigator.clipboard.writeText(t),r(!0),setTimeout((()=>r(!1)),1500)}catch(l){console.error("Failed to copy: ",l)}},new((u=void 0)||(u=Promise))((function(l,v){function _(b){try{w(s.next(b))}catch(S){v(S)}}function m(b){try{w(s.throw(b))}catch(S){v(S)}}function w(b){var S;b.done?l(b.value):(S=b.value,S instanceof u?S:new u((function(C){C(S)}))).then(_,m)}w((s=s.apply(c,d||[])).next())}));var c,d,u,s}},{children:a?o("span",{children:["- ",e("labels.copied")]}):o(St,{name:"copy",secondary:!0,size:13})}))]}))},Sr=({src:n,secret:t})=>{let{t:e}=(0,f.useContext)(q.TranslateContext);return o("div",Object.assign({className:kr.otpCreationDetails},{children:[o("img",{alt:"QR-Code",src:n}),o(nn,{}),o(wr,Object.assign({text:t},{children:e("texts.otpSecretKey")})),o("div",{children:t})]}))},So=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},xr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state),[a,r]=(0,f.useState)([]),i=(0,f.useCallback)((c=>So(void 0,void 0,void 0,(function*(){return e.actions.otp_code_verify.run({otp_code:c})}))),[e]);return(0,f.useEffect)((()=>{var c;((c=e.error)===null||c===void 0?void 0:c.code)==="passcode_invalid"&&r([])}),[e]),o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.otpSetUp")}),o(be,{state:e}),o(F,{children:t("texts.otpScanQRCode")}),o(Sr,{src:e.payload.otp_image_source,secret:e.payload.otp_secret}),o(F,{children:t("texts.otpEnterVerificationCode")}),o(Q,Object.assign({flowAction:e.actions.otp_code_verify,onSubmit:c=>So(void 0,void 0,void 0,(function*(){return c.preventDefault(),i(a.join(""))}))},{children:[o(Rn,{onInput:c=>{if(r(c),c.filter((d=>d!=="")).length===6)return i(c.join(""))},passcodeDigits:a,numberOfInputs:6}),o(Y,{children:t("labels.continue")})]}))]}),o(xe,{children:o(B,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},Cr=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.securityKeySetUp")}),o(be,{state:e}),o(F,{children:t("texts.securityKeySetUp")}),o(Q,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:o(Y,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.createSecurityKey")}))}))]}),o(xe,Object.assign({hidden:!e.actions.back.enabled},{children:o(B,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")}))}))]})},Or=n=>{let{t}=(0,f.useContext)(q.TranslateContext),{flowState:e}=Se(n.state);return o(x.Fragment,{children:[o(ye,{children:[o(ae,{children:t("headlines.trustDevice")}),o(be,{flowError:e==null?void 0:e.error}),o(F,{children:t("texts.trustDevice")}),o(Q,Object.assign({flowAction:e.actions.trust_device},{children:o(Y,{children:t("labels.trustDevice")})}))]}),o(xe,{children:[o(B,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),o(B,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]})]})},xo=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Ae=(0,x.createContext)(null),Ar=n=>{var t,{lang:e,prefilledEmail:a,prefilledUsername:r,globalOptions:i,createWebauthnAbortSignal:c,nonce:d}=n,u=(function(g,z){var de={};for(var se in g)Object.prototype.hasOwnProperty.call(g,se)&&z.indexOf(se)<0&&(de[se]=g[se]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var ze=0;for(se=Object.getOwnPropertySymbols(g);ze<se.length;ze++)z.indexOf(se[ze])<0&&Object.prototype.propertyIsEnumerable.call(g,se[ze])&&(de[se[ze]]=g[se[ze]])}return de})(n,["lang","prefilledEmail","prefilledUsername","globalOptions","createWebauthnAbortSignal","nonce"]);let{hanko:s,injectStyles:l,hidePasskeyButtonOnLogin:v,translations:_,translationsLocation:m,fallbackLanguage:w}=i;s.setLang((e==null?void 0:e.toString())||w);let b=(0,f.useRef)(null),S=(0,f.useMemo)((()=>`${i.storageKey}_last_login`),[i.storageKey]),[C,M]=(0,f.useState)(u.componentName),[I,T]=(0,f.useState)((t=u.mode)!==null&&t!==void 0?t:"login"),L=(0,f.useRef)(!1),[U,H]=(0,f.useState)(!1),G=(0,f.useMemo)((()=>({auth:I,login:"login",registration:"registration",profile:"profile",events:null})),[I]),$=(0,f.useMemo)((()=>o(Za,{})),[]),[ee,N]=(0,f.useState)($),[,pe]=(0,f.useState)(s),[Ee,ke]=(0,f.useState)(),[Ce,te]=(0,f.useState)({email:a,username:r}),ie=function(g,z){var de;(de=b.current)===null||de===void 0||de.dispatchEvent(new CustomEvent(g,{detail:z,bubbles:!1,composed:!0}))},ue=(0,f.useCallback)((g=>G[C]==g.flowName),[G,C,I]),Ye=g=>{N(o(yo,{error:g instanceof ge?g:new Ge(g)}))};(0,f.useMemo)((()=>s.onBeforeStateChange((({state:g})=>{ue(g)&&te((z=>Object.assign(Object.assign({},z),{isDisabled:!0,error:void 0})))}))),[s,ue]),(0,f.useEffect)((()=>{te((g=>Object.assign(Object.assign(Object.assign({},g),a&&{email:a}),r&&{username:r})))}),[a,r]),(0,f.useEffect)((()=>s.onAfterStateChange((({state:g})=>xo(void 0,void 0,void 0,(function*(){var z;if(ue(g))switch(["onboarding_verify_passkey_attestation","webauthn_credential_verification","login_passkey","thirdparty"].includes(g.name)||te((de=>Object.assign(Object.assign({},de),{isDisabled:!1}))),g.name){case"login_init":N(o(Va,{state:g})),g.passkeyAutofillActivation();break;case"passcode_confirmation":N(o(Qa,{state:g}));break;case"login_otp":N(o(gr,{state:g}));break;case"onboarding_create_passkey":N(o(Ya,{state:g}));break;case"login_password":N(o(Xa,{state:g}));break;case"login_password_recovery":N(o(er,{state:g}));break;case"login_security_key":N(o(yr,{state:g}));break;case"mfa_method_chooser":N(o(br,{state:g}));break;case"mfa_otp_secret_creation":N(o(xr,{state:g}));break;case"mfa_security_key_creation":N(o(Cr,{state:g}));break;case"login_method_chooser":N(o(tr,{state:g}));break;case"registration_init":N(o(nr,{state:g}));break;case"password_creation":N(o(or,{state:g}));break;case"success":!((z=g.payload)===null||z===void 0)&&z.last_login&&localStorage.setItem(S,JSON.stringify(g.payload.last_login)),g.autoStep();break;case"profile_init":N(o(fr,{state:g,enablePasskeys:i.enablePasskeys}));break;case"error":N(o(yo,{state:g}));break;case"onboarding_email":N(o(mr,{state:g}));break;case"onboarding_username":N(o(vr,{state:g}));break;case"credential_onboarding_chooser":N(o(_r,{state:g}));break;case"device_trust":N(o(Or,{state:g}))}}))))),[C,G]);let P=(0,f.useCallback)((g=>xo(void 0,void 0,void 0,(function*(){te((se=>Object.assign(Object.assign({},se),{isDisabled:!0})));let z=localStorage.getItem(S);z&&ke(JSON.parse(z));let de={excludeAutoSteps:["success"],cacheKey:"hanko-auth-flow-state",dispatchAfterStateChangeEvent:!1};if(new URLSearchParams(window.location.search).get("saml_hint")==="idp_initiated")T("token_exchange"),yield s.createState("token_exchange",Object.assign(Object.assign({},de),{dispatchAfterStateChangeEvent:!0}));else{let se=yield s.createState(g,de);T(se.flowName),setTimeout((()=>se.dispatchAfterStateChangeEvent()),500)}}))),[]),E=(0,f.useCallback)((g=>{M(g);let z=G[g];z&&P(z).catch(Ye)}),[G]);return(0,f.useEffect)((()=>{if(!L.current){let g=setTimeout((()=>{var z;T((z=u.mode)!==null&&z!==void 0?z:"login"),H(!0)}),0);return()=>clearTimeout(g)}}),[u.mode]),(0,f.useEffect)((()=>{U&&!L.current&&(L.current=!0,E(C))}),[U,I,C,E]),(0,f.useEffect)((()=>{s.onUserDeleted((()=>{ie("onUserDeleted")})),s.onSessionCreated((g=>{ie("onSessionCreated",g)})),s.onSessionExpired((()=>{ie("onSessionExpired")})),s.onUserLoggedOut((()=>{ie("onUserLoggedOut")})),s.onBeforeStateChange((g=>{ie("onBeforeStateChange",g)})),s.onAfterStateChange((g=>{ie("onAfterStateChange",g)}))}),[s]),(0,f.useMemo)((()=>{let g=()=>{E(C)};["auth","login","registration"].includes(C)?(s.onUserLoggedOut(g),s.onSessionExpired(g),s.onUserDeleted(g)):C==="profile"&&s.onSessionCreated(g)}),[C,s,E]),o(Ae.Provider,Object.assign({value:{init:E,initialComponentName:u.componentName,setUIState:te,uiState:Ce,hanko:s,setHanko:pe,lang:(e==null?void 0:e.toString())||w,prefilledEmail:a,prefilledUsername:r,componentName:C,setComponentName:M,hidePasskeyButtonOnLogin:v,page:ee,setPage:N,lastLogin:Ee,isOwnFlow:ue}},{children:o(q.TranslateProvider,Object.assign({translations:_,fallbackLang:w,root:m},{children:o(Ea,Object.assign({ref:b},{children:C!=="events"?o(x.Fragment,{children:[l?o("style",{nonce:d||void 0,dangerouslySetInnerHTML:{__html:window._hankoStyle.innerHTML}}):null,ee]}):null}))}))}))},Ir={en:Z(6).en},Ho=function(n,t,e,a){return new(e||(e=Promise))((function(r,i){function c(s){try{u(a.next(s))}catch(l){i(l)}}function d(s){try{u(a.throw(s))}catch(l){i(l)}}function u(s){var l;s.done?r(s.value):(l=s.value,l instanceof e?l:new e((function(v){v(l)}))).then(c,d)}u((a=a.apply(n,t||[])).next())}))},Be={},Ct=(n,t)=>{var e;let a=(e=document.getElementsByTagName(`hanko-${n}`).item(0))===null||e===void 0?void 0:e.nonce;return o(Ar,Object.assign({componentName:n,globalOptions:Be,createWebauthnAbortSignal:Mr},t,{nonce:a}))},Er=n=>Ct("auth",n),jr=n=>Ct("login",n),Pr=n=>Ct("registration",n),Tr=n=>Ct("profile",n),Dr=n=>Ct("events",n),Lt=new AbortController,Mr=()=>(Lt&&Lt.abort(),Lt=new AbortController,Lt.signal),mt=({tagName:n,entryComponent:t,shadow:e=!0,observedAttributes:a})=>Ho(void 0,void 0,void 0,(function*(){customElements.get(n)||(function(r,i,c,d){function u(){var s=Reflect.construct(HTMLElement,[],u);return s._vdomComponent=r,s._root=d&&d.shadow?s.attachShadow({mode:"open"}):s,s}(u.prototype=Object.create(HTMLElement.prototype)).constructor=u,u.prototype.connectedCallback=sa,u.prototype.attributeChangedCallback=ca,u.prototype.disconnectedCallback=la,c=c||r.observedAttributes||Object.keys(r.propTypes||{}),u.observedAttributes=c,c.forEach((function(s){Object.defineProperty(u.prototype,s,{get:function(){var l,v,_,m;return(l=(v=this._vdom)==null||(_=v.props)==null?void 0:_[s])!=null?l:(m=this._props)==null?void 0:m[s]},set:function(l){this._vdom?this.attributeChangedCallback(s,null,l):(this._props||(this._props={}),this._props[s]=l,this.connectedCallback());var v=typeof l;l!=null&&v!=="string"&&v!=="boolean"&&v!=="number"||this.setAttribute(s,l)}})})),customElements.define(i||r.tagName||r.displayName||r.name,u)})(t,n,a,{shadow:e})})),Lr=(n,t={})=>Ho(void 0,void 0,void 0,(function*(){let e=["api","lang","prefilled-email","entry","mode"];return t=Object.assign({shadow:!0,injectStyles:!0,enablePasskeys:!0,hidePasskeyButtonOnLogin:!1,translations:null,translationsLocation:"/i18n",fallbackLanguage:"en",storageKey:"hanko",sessionCheckInterval:3e4},t),Be.hanko=new en(n,{cookieName:t.storageKey,cookieDomain:t.cookieDomain,cookieSameSite:t.cookieSameSite,localStorageKey:t.storageKey,sessionCheckInterval:t.sessionCheckInterval,sessionTokenLocation:t.sessionTokenLocation}),Be.injectStyles=t.injectStyles,Be.enablePasskeys=t.enablePasskeys,Be.hidePasskeyButtonOnLogin=t.hidePasskeyButtonOnLogin,Be.translations=t.translations||Ir,Be.translationsLocation=t.translationsLocation,Be.fallbackLanguage=t.fallbackLanguage,Be.storageKey=t.storageKey,yield Promise.all([mt(Object.assign(Object.assign({},t),{tagName:"hanko-auth",entryComponent:Er,observedAttributes:e})),mt(Object.assign(Object.assign({},t),{tagName:"hanko-login",entryComponent:jr,observedAttributes:e})),mt(Object.assign(Object.assign({},t),{tagName:"hanko-registration",entryComponent:Pr,observedAttributes:e})),mt(Object.assign(Object.assign({},t),{tagName:"hanko-profile",entryComponent:Tr,observedAttributes:e.filter((a=>["api","lang"].includes(a)))})),mt(Object.assign(Object.assign({},t),{tagName:"hanko-events",entryComponent:Dr,observedAttributes:[]}))]),{hanko:Be.hanko}})),zr=X.rc,Wr=X.Kj,Fr=X.fK,Rr=X.tJ,Hr=X.Z7,qr=X.qQ,Kr=X.I4,Br=X.O8,Gr=X.Qq,$r=X.ku,Zr=X.ls,Vr=X.bO,Jr=X.yv,Qr=X.AT,Yr=X.m_,Xr=X.KG,ei=X.Wj,ti=X.DH,ni=X.kf,oi=X.Uw,ai=X.oY,ri=X.Wg,ii=X.AC,si=X.D_,ci=X.jx,li=X.nX,di=X.Nx,ui=X.Sd,qo=X.kz,hi=X.fX,pi=X.qA,fi=X.tz,mi=X.gN;var Ko='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="256" width="256" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <defs>%0A <linearGradient id="c">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="a">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="u" y2="-179.97" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" y1="-94.672" x1="94.25"/>%0A <linearGradient id="v" y2="-30.438" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="35.75" y1="-114.44" x1="50.75"/>%0A <linearGradient id="w" y2="-74.625" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="115.25" y1="-163.12" x1="77.625"/>%0A <linearGradient id="x" y2="7.063" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="125.72" y1="-50.438" x1="56.5"/>%0A <linearGradient id="y" y2="-146.8" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="180.75" y1="-163.3" x1="35"/>%0A <linearGradient id="z" y2="-41.609" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="179" y1="-141.11" x1="57"/>%0A <linearGradient id="A" y2="39.75" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="208.25" y1="-26.5" x1="156"/>%0A <linearGradient id="B" y2="-77.297" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="235" y1="-169.3" x1="142.75"/>%0A <linearGradient id="m" y2="-113.72" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="166.5" y1="-161.36" x1="214.25"/>%0A <linearGradient id="b">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="n" y2="-62.469" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="57.656" y1="-126.5" x1="53.25"/>%0A <linearGradient id="o" y2="-17.125" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="75.719" y1="6.625" x1="39.5"/>%0A <linearGradient id="p" y2="-121.44" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="85.312" y1="-162.34" x1="102"/>%0A <linearGradient id="q" y2="-14.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="63.5" y1="-78.094" x1="117.75"/>%0A <linearGradient id="r" y2="-60.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="133.94" y1="-125.12" x1="180.69"/>%0A <linearGradient id="s" y2="33.375" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="130.22" y1="-23.5" x1="170.75"/>%0A <linearGradient id="t" y2="-5.656" xlink:href="%23b" gradientUnits="userSpaceOnUse" y1="-76" x2="181.75" x1="213.5"/>%0A <linearGradient id="l" y2="-213.25" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 -10)" y1="72.064" x1="210.17"/>%0A <linearGradient id="M" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="matrix(-1 0 0 1 46 0)" y1="150.38" x1="123"/>%0A <linearGradient id="L" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="translate(-210)" y1="134.36" x1="128"/>%0A <linearGradient id="O" y2="150.38" gradientUnits="userSpaceOnUse" y1="150.38" gradientTransform="matrix(-2 0 0 1.7699 174 -86.65)" x2="133" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="N" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="translate(-210)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="P" y2="186.5" gradientUnits="userSpaceOnUse" y1="186.5" gradientTransform="translate(-210 67)" x2="136" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="J" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 104.976 51.258) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="U" y2="150.38" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" y1="150.38" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="T" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="S" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="scale(-1.39197 1.39197) rotate(-45 -28.292 379.342)" y1="150.38" x1="123"/>%0A <linearGradient id="R" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="134.36" x1="128"/>%0A <linearGradient id="V" y2="150.38" xlink:href="%23a" gradientUnits="userSpaceOnUse" y1="167.73" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" x2="133" x1="108"/>%0A <linearGradient id="W" y2="137.2" gradientUnits="userSpaceOnUse" x2="179.96" gradientTransform="translate(0 -10)" y1="29.815" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="Z" y2="137.2" gradientUnits="userSpaceOnUse" y1="29.815" gradientTransform="matrix(-.50295 .1984 .1972 -.43254 276.16 123.42)" x2="179.96" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="G" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 192)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="h" y2="4.302" gradientUnits="userSpaceOnUse" x2="122" y1="245.45" x1="122">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="e" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="matrix(1 -.08088 0 1 0 203.06)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <clipPath id="j" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="k" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="i" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="D" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="E" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="F" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="C" clipPathUnits="userSpaceOnUse">%0A <path d="M123.62 141.06c20.832 20.243 54.607 19.289 75.439-2.132s20.832-55.196 0-75.439-54.607-19.289-75.439 2.132-20.832 55.196 0 75.439z" fill="url(%23d)"/>%0A </clipPath>%0A <clipPath id="H" clipPathUnits="userSpaceOnUse">%0A <path opacity=".039" d="M9 22.578s7.5 12.393 11.75 26.8C25 63.784 27 74.373 27 74.373s-5.5 13.195-8.25 25.417C16 112.01 13 123.25 13 123.25s5.75 15.535 9.25 29.252S26 176.449 26 176.449s-4 10.574-7.5 24.857-5 31.154-5 31.154 9.25-2.748 28.5-1.055 32.25 3.392 32.25 3.392 12.75-3.782 24-8.191 16.25-7.815 16.25-7.815 5.5.055 22.5 4.43c17 4.376 29.25 6.135 29.25 6.135s13-3.802 26-7.853 26.5-10.143 26.5-10.143-.75-4.94 4.25-24.844 8.75-28.708 8.75-28.708-.514-4.455-3.75-19.447c-1.75-8.108-2.25-4.068-2.25-4.068s16.264-26.155 16.5-40.334c.25-15.02-7.25-36.413-7.25-36.413s-4.75-14.866-7.5-29.143c-2.75-14.278-8.25-25.083-8.25-25.083S195 14.281 187.5 16.388c-7.5 2.107-21 6.948-21 6.948s-9.75-3.461-22-6.72c-12.25-3.26-29.75-3.094-29.75-3.094s-3.25 3.763-22 9.78c-18.75 6.016-27.5 7.973-27.5 7.973s-18.5-7.504-31.5-8.952-24-.06-24.75.252z" fill="url(%23e)"/>%0A </clipPath>%0A <radialGradient id="K" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(1.0213 0 0 -1.0213 -212.72 173.83)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Q" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="scale(1.4216 -1.4216) rotate(-45 -51.091 19.464)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Y" gradientUnits="userSpaceOnUse" cy="72.588" cx="159.61" gradientTransform="matrix(1.2125 0 0 .83915 -46.348 24.528)" r="38.417">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity=".93" offset=".5"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="X" gradientUnits="userSpaceOnUse" cx="159.61" cy="72.588" r="38.417" gradientTransform="matrix(1.2125 0 0 .83915 -45.92 25.814)">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="d" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(.80254 .77986 .80254 -.82522 -10.402 73.423)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <filter id="I">%0A <feGaussianBlur stdDeviation="4.287"/>%0A </filter>%0A <filter id="f">%0A <feGaussianBlur stdDeviation="6.311"/>%0A </filter>%0A <filter id="g">%0A <feGaussianBlur stdDeviation="4.457"/>%0A </filter>%0A </defs>%0A <path opacity=".7" d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" transform="matrix(1 .06864 0 .8487 0 26.913)" filter="url(%23f)" fill="%232d3335"/>%0A <path opacity=".5" d="M9 17.25s7.5 11 11.75 25.75S27 68.5 27 68.5s-5.5 12.75-8.25 24.75-5.75 25-5.75 25 5.75 16 9.25 30S26 170.5 26 170.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-2.5-3.75-17.75S218 121 218 121s1.75-12.5 6.75-25.75S235 68.5 235 68.5s-4.75-15.25-7.5-29.75S219.25 15 219.25 15 195 24 187.5 25.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" transform="matrix(1 0 0 .84657 0 27.66)" filter="url(%23g)" fill="url(%23h)"/>%0A <path fill="%23ceeeab" d="M9 2.25s7.5 13 11.75 27.75S27 55.5 27 55.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 157.5 26 157.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 106 218 106s1.75-10.5 6.75-23.75S235 55.5 235 55.5s-4.75-15.25-7.5-29.75S219.25 0 219.25 0 195 9 187.5 10.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5S9.75 2 9 2.25z"/>%0A <g transform="translate(0 -10)" clip-path="url(%23i)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 75.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 138.5 89 134.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 144.25 115 138.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.594 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 62.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 46.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g clip-path="url(%23j)" transform="translate(0 -10)" stroke="%236d7f42" fill="none">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23k)" transform="translate(0 -10)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <g opacity=".504">%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75c0 0 7.5 13 11.75 27.75S27 385.5 27 385.5l51.469 5.125 48.971-4 52.25 12.031c10.38-4.418 52.11-4.9 55.31-13.156 0 0-4.75-15.25-7.5-29.75S219.25 330 219.25 330z" fill="%23b1e479"/>%0A <path d="M27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.969 16.37 53.721-15.74 52.25 17.53c16.36-4.26 32.39-9.12 48.06-15.41 0 0 1.75-10.5 6.75-23.75S235 385.5 235 385.5c-3.2 8.256-44.93 8.738-55.31 13.156l-52.25-12.031-47.971 4L27 385.5z" fill="%2387d531"/>%0A <path d="M231.75 485.5c-17.9 7.67-35.94 14.9-54.31 21.41l-52.25-18.53-50.221 9L26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28z" fill="%23ceeeab"/>%0A <path d="M13 433.25s5.75 16 9.25 30S26 487.5 26 487.5l48.969 9.88 50.221-9 52.25 18.53c18.37-6.51 36.41-13.74 54.31-21.41 0 0-.5-4.5-3.75-19.75S218 436 218 436c-15.67 6.29-31.7 11.15-48.06 15.41l-52.25-17.53-53.721 15.74L13 433.25z" fill="%23b9e787"/>%0A </g>%0A <g opacity=".522">%0A <path d="M13.719 332.031c-2.729-.007-4.438.125-4.719.219 0 0 7.5 13 11.75 27.75S27 385.5 27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 487.5 26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6l1.5-53.25L63.5 450l16-59.75c-2.22-15.48-9.068-30.046-14.25-44.75 0 0-18.5-9-31.5-11.5-8.125-1.563-15.483-1.956-20.031-1.969z" fill="%2383d32b"/>%0A <path d="M114.75 331.75s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.704 12.03 29.27 14.25 44.75L63.5 450l12.25 46.5-1.5 53.25s12.75-2.75 24-6.25 16.25-6.5 16.25-6.5l11.25-48.5-8.25-54.25 11.75-45c-3.44-9.727-8.06-56.93-14.5-57.5z" fill="%23b1e479"/>%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.358 11.44 45.392 14.25 52.25l-11.25 53.25 9.5 55-12.75 45.5s13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 436 218 436s1.75-10.5 6.75-23.75S235 385.5 235 385.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75z" fill="%23a4df62"/>%0A <path d="M114.75 331.75c6.44.57 11.06 47.773 14.5 57.5l-11.75 45 8.25 53.25L114.5 537s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5l12.75-45.5-9.5-55L180.75 398c-2.81-6.858-9.33-53.608-14.25-52.25 0 0-9.75-4.25-22-8.5s-29.75-5.5-29.75-5.5z" fill="%23ceeeab"/>%0A </g>%0A <path opacity=".039" d="M9-189.75s7.5 13 11.75 27.75S27-136.5 27-136.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26-34.5 26-34.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6S87 25 98.25 21.5 114.5 15 114.5 15s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8S218 11 223-8.5s8.75-28 8.75-28-.5-4.5-3.75-19.75S218-86 218-86s1.75-10.5 6.75-23.75S235-136.5 235-136.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23l)" transform="translate(0 192)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 182)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 182)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 182)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 182)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 182)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 182)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 182)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 182)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 182)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 182)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 182)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 182)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 182)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 182)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 182)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 182)"/>%0A </g>%0A <g clip-path="url(%23C)" transform="matrix(1.2525 .0354 0 1.2525 -27.809 -48.344)">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A <g clip-path="url(%23D)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 85.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 148.5 89 144.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 154.25 115 148.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.595 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 72.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 56.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g stroke="%236d7f42" fill="none" clip-path="url(%23E)">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23F)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <path opacity=".039" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23G)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 192)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 192)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 192)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 192)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 192)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 192)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 192)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 192)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 192)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 192)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 192)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 192)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 192)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 192)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 192)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 192)"/>%0A </g>%0A </g>%0A <path d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" clip-path="url(%23H)" transform="matrix(1 .08088 0 1 0 -21.056)" filter="url(%23I)" fill="%232d3335"/>%0A <path d="m48.01 227.46-4.807 4.55c-5.007-5.31-10.24-10.7-15.08-16.13l4.491-4.07c6.829 6.53 8.872 8.53 15.396 15.65z" fill="url(%23J)"/>%0A <path d="M-95.5 225c28.719 0 52 23.28 52 52s-23.281 52-52 52c-28.72 0-52-23.28-52-52s23.28-52 52-52z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 136c-27.61 0-50-22.39-50-50 0-27.614 22.39-50 50-50 27.614 0 50 22.386 50 50 0 27.61-22.386 50-50 50zm0-3c26.51 0 48-20.49 48-47s-21.49-47-48-47-48 20.49-48 47 21.49 47 48 47z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M-82 136c-27.61 0-50-22.39-50-50v-.5c.27 27.38 22.55 49.5 50 49.5 27.446 0 49.729-22.12 50-49.5.002.168 0 .332 0 .5 0 27.61-22.386 50-50 50zm-48-50.5V85c0-26.51 21.49-47 48-47s48 20.49 48 47c0 .168.002.333 0 .5C-34.27 59.234-55.658 39-82 39c-26.34 0-47.73 20.234-48 46.5z"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill="url(%23K)"/>%0A <path fill="url(%23L)" d="m-96.438 130.72-.843 5C-92.451 137.2-87.316 138-82 138s10.451-.8 15.281-2.28l-.843-5C-72.115 132.19-76.959 133-82 133s-9.885-.81-14.438-2.28z"/>%0A <path fill="url(%23M)" d="M-82 136.25c1.757 0 3.431.3 5 .81v26.63c-1.569.51-3.243.81-5 .81s-3.431-.3-5-.81v-26.63c1.569-.51 3.243-.81 5-.81z"/>%0A <path d="M-82 150.5c3.514 0 5.613.65 8 2.44v67.12c-3.137.91-4.486 1.44-8 1.44s-4.863-.53-8-1.44v-67.12c2.637-1.79 4.486-2.44 8-2.44z" fill="url(%23N)"/>%0A <path d="M-82 154.5c3.514 0 7.238.78 10 2.44v65.12c-2.012 1.79-6.486 2.44-10 2.44s-7.863-.15-10-2.44v-65.12c1.887-1.66 6.486-2.44 10-2.44z" fill="url(%23O)"/>%0A <path d="M-82 217.5c3.514 0 5.863.78 8 2.44v5.12c-2.387 1.54-4.486 2.44-8 2.44s-5.738-.9-8-2.44v-5.12c2.387-1.91 4.486-2.44 8-2.44z" fill="url(%23P)"/>%0A <path fill="%23e0bb41" d="M-82 221.5c-3.514 0-5.613.28-8 2.44v1.12c2.262 1.54 4.486 2.44 8 2.44s5.613-.9 8-2.44v-1.12c-2.512-2.04-4.486-2.44-8-2.44z"/>%0A <path d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431 27.18-27.18 71.25-27.18 98.43 0s27.18 71.251 0 98.431-71.25 27.18-98.43 0zm2.96-2.96c26.09 26.1 67.41 27.08 93.5.99 26.1-26.1 25.11-67.416-.98-93.509-26.09-26.092-67.41-27.077-93.51-.984-26.09 26.093-25.11 67.413.99 93.503z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431.17-.166.33-.329.5-.493-26.689 27.218-26.526 70.924.49 97.934 27.01 27.02 70.72 27.18 97.93.49-.16.17-.32.33-.49.5-27.18 27.18-71.25 27.18-98.43 0zm2.46-96.955c.17-.167.33-.327.5-.492 26.09-26.093 67.41-25.109 93.5.984 26.1 26.093 27.08 67.413.99 93.503l-.5.5c25.59-26.12 24.46-67.091-1.47-93.019-25.93-25.927-66.9-27.063-93.02-1.476z"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill="url(%23Q)"/>%0A <path fill="url(%23R)" d="m116.05 115.28-5.75 4.09c3.3 6.21 7.56 12.05 12.8 17.28 5.23 5.24 11.07 9.5 17.28 12.8l4.09-5.75c-5.92-3.04-11.49-7.01-16.45-11.97s-8.93-10.53-11.97-16.45z"/>%0A <path fill="url(%23S)" d="M124.82 134.93c1.73 1.73 3.08 3.67 4.12 5.72l-26.21 26.21a22.302 22.302 0 0 1-5.718-4.12 22.268 22.268 0 0 1-4.121-5.72l26.209-26.21c2.05 1.04 3.99 2.39 5.72 4.12z"/>%0A <path d="M116.27 159.23 50.199 225.3c-3.984-2.19-5.832-3-9.29-6.46s-4.267-5.3-6.459-9.29l66.07-66.07c5.06 3.75 12.12 10.4 15.75 15.75z" fill="url(%23T)"/>%0A <path d="M105.78 154.12c3.46 3.46 7.43 6.66 8.52 11.02l-64.101 64.1c-6.517-5.16-14.555-12.79-19.686-19.69l64.1-64.1c3.491.23 7.657 5.16 11.117 8.62l.05.05z" fill="url(%23U)"/>%0A <path opacity=".596" d="M105.53 154.36c3.46 3.46 7.68 6.42 8.77 10.78l-64.101 64.1c-7.877-6.91-11.798-10.63-19.686-19.69l64.1-64.1c3.491.23 7.417 5.45 10.877 8.91h.04z" fill="url(%23V)"/>%0A <path opacity=".604" d="M131.17 37.05c40.66-32.173 78.13-12.728 77.78 5.303s-56.57 70.357-76.37 66.117-25.45-53.389-1.41-71.42z" fill="url(%23W)"/>%0A <text opacity=".461" font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="69.184" x="99.839" font-family="Monospace" fill="url(%23X)"><tspan y="69.184" x="99.839">01011001</tspan><tspan y="93.934" x="99.839">00110101</tspan><tspan y="118.684" x="99.839">10010011</tspan></text>%0A <text font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="67.898" x="99.41" font-family="Monospace" fill="url(%23Y)"><tspan y="67.898" x="99.41">01011001</tspan><tspan y="92.648" x="99.41">00110101</tspan><tspan y="117.398" x="99.41">10010011</tspan></text>%0A <path opacity=".765" d="M219.46 129.09c-26.79 21.98-41.81 21.01-38.07 13.14 3.73-7.87 42.32-41.66 51.45-43.75 9.12-2.093 2.27 18.04-13.38 30.61z" fill="url(%23Z)"/>%0A</svg>%0A';var Nr=`data:image/svg+xml;utf8,${encodeURIComponent(Ko)}`;Gn();var Bo,Go,$o,Zo,Vo,Jo,Qo,Yo,Xo,ea,ta,na,Ie=class extends qn{constructor(){super(...arguments);this.name="hot-header";Me(this,Bo,"");Me(this,Go,"");Me(this,$o,!0);Me(this,Zo,[]);Me(this,Vo,[]);Me(this,Jo,"small");Me(this,Qo,!0);Me(this,Yo,0);Me(this,Xo,0);Me(this,ea,!1);Me(this,ta,!1);Me(this,na,"user")}get title(){return De(this,Bo)}set title(e){Le(this,Bo,e)}get logo(){return De(this,Go)}set logo(e){Le(this,Go,e)}get drawer(){return De(this,$o)}set drawer(e){Le(this,$o,e)}get tabs(){return De(this,Zo)}set tabs(e){Le(this,Zo,e)}get drawerLinks(){return De(this,Vo)}set drawerLinks(e){Le(this,Vo,e)}get size(){return De(this,Jo)}set size(e){Le(this,Jo,e)}get borderBottom(){return De(this,Qo)}set borderBottom(e){Le(this,Qo,e)}get selectedTab(){return De(this,Yo)}set selectedTab(e){Le(this,Yo,e)}get activeTabIndex(){return De(this,Xo)}set activeTabIndex(e){Le(this,Xo,e)}get showLogin(){return De(this,ea)}set showLogin(e){Le(this,ea,e)}get loginModalOpen(){return De(this,ta)}set loginModalOpen(e){Le(this,ta,e)}get defaultLoginIcon(){return De(this,na)}set defaultLoginIcon(e){Le(this,na,e)}async connectedCallback(){super.connectedCallback(),await qo("https://dev.login.hotosm.org",{shadow:!1,sessionCheckInterval:3e4}).catch(e=>{})}selectTab(e){if(console.log("Selecting tab:",e),e!==this.selectedTab&&e>=0&&e<this.tabs.length){let a=this.selectedTab;this.selectedTab=e,this.activeTabIndex=e,this.dispatchEvent(new CustomEvent("tab-change",{detail:{selectedIndex:e,previousIndex:a,tab:this.tabs[e]},bubbles:!0})),this.requestUpdate()}}render(){let e=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return Re`
4
- <header class=${Kn({size:this.size,borderBottom:this.borderBottom})}>
5
- <a href="/" class="header--link">
6
- ${e.length>0?Re`
7
- <img
8
- id="logo"
9
- src="${this.logo}"
10
- alt="Logo"
11
- class="header--logo-img"
12
- />
13
- `:Re`
14
- <hot-logo
15
- ?iconOnly="${this.title.length>0}"
16
- >
17
- </hot-logo>
18
- `}
19
- ${this.title.length>0?Re`
20
- <h1 class="header--title">
21
- ${this.title}
22
- </h1>
23
- `:null}
24
- </a>
25
-
26
- ${""}
27
- <nav
28
- class="header--nav"
29
- >
30
- ${this.tabs.length>0?Re`
31
- <wa-tab-group
32
- class="header--tab-group"
33
- @wa-tab-show=${a=>this._handleTabShow(a)}
34
- >
35
- ${this.tabs.map((a,r)=>{let i=this.activeTabIndex===r;return Re`
36
- <wa-tab
37
- panel="${a.label}-${r}"
38
- class="header--tab"
39
- slot="nav"
40
- ?active=${i}
41
- data-index="${r}"
42
- @click=${c=>this._tabClick(c,a.clickEvent,r)}
43
- >
44
- ${a.label}
45
- </wa-tab>
46
- `})}
47
- </wa-tab-group>
48
- `:null}
49
- </nav>
50
-
51
-
52
-
53
- <div id="right-section" class="header--right-section">
54
- ${this.showLogin?Re`
55
- <wa-button
56
- variant="brand"
57
- class="login-button"
58
- @click=${()=>this._handleLogin()}
59
- >
60
- Login
61
- </wa-button>
62
- `:null}
63
- ${this.drawer?Re`
64
- <wa-drawer label=" " id="drawer-overview">
65
- <ul style="list-style: none; padding: 0; margin: 0;">
66
- ${this.drawerLinks.map(a=>Re`
67
- <li style="margin: 1.5rem 0;">
68
- <a href="${a.href}" style="color: inherit; text-decoration: none; font-size: 1.2rem;">${a.label}</a>
69
- </li>
70
- `)}
71
- </ul>
72
- </wa-drawer>
73
- <wa-button appearance="outlined" @click=${()=>this._handleDrawerOpen()}>
74
- <wa-icon name="bars"></wa-icon>
75
- </wa-button>
76
- `:null}
77
- </div>
78
-
79
- <!-- Login Modal -->
80
- ${this.showLogin?Re`
81
- <wa-dialog
82
- class="login-modal"
83
- ?open=${this.loginModalOpen}
84
- @wa-hide=${()=>this._handleModalClose()}
85
- >
86
- <wa-button appearance="outlined" @click=${()=>this._handleModalClose()}>
87
- <wa-icon name="xmark"></wa-icon>
88
- </wa-button>
89
-
90
- <hanko-auth redirect-to="${location.origin}"></hanko-auth>
91
- </wa-dialog>
92
- `:null}
93
- </header>
94
-
95
- <!-- Here we must directly include the hanko style overrides, as it includes a SVG -->
96
- <!-- Note we can't remove the existing svg, so need to hide and override it -->
97
- <!-- THIS ISN'T WORKING WELL. We can either try and fix the styling or perhaps manipulate the DOM via Javascript instead?? -->
98
- <style>
99
- .hanko_form #icon-custom-provider {
100
- display: none;
101
- }
102
-
103
- .hanko_form .hanko_loadingSpinnerWrapperIcon:has(#icon-custom-provider) {
104
- background: url("${Nr}") no-repeat center center;
105
- background-size: contain;
106
- display: inline-flex;
107
- align-items: center;
108
- height: 100%;
109
- margin: 0 5px;
110
- justify-content: inherit;
111
- flex-wrap: inherit;
112
- width: 100%;
113
- column-gap: 10px;
114
- margin-left: 10px;
115
- }
116
- </style>
117
- `}async _tabClick(e,a,r){e.preventDefault(),e.stopPropagation();try{this.selectTab(r),setTimeout(async()=>{try{typeof a=="function"&&await a()}catch(i){console.error("Error during navigation:",i),typeof a=="function"&&a()}},0)}catch(i){console.error("Error handling tab click:",i);try{typeof a=="function"&&a()}catch(c){console.error("Fallback navigation also failed:",c)}}}_handleTabShow(e){try{let a=e.target,r=parseInt(a.getAttribute("data-index")||"0",10);if(!isNaN(r)&&r<this.tabs.length){let i=this.tabs[r].clickEvent;typeof i=="function"&&i()}}catch(a){console.error("Error handling tab show event:",a)}}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}_handleDrawerOpen(){var a;let e=(a=this.renderRoot)==null?void 0:a.querySelector("#drawer-overview");e&&(e.open=!0)}};Bo=new WeakMap,Go=new WeakMap,$o=new WeakMap,Zo=new WeakMap,Vo=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=new WeakMap,Ie.styles=[Bn],Te([Ue({type:String})],Ie.prototype,"title",1),Te([Ue({type:String})],Ie.prototype,"logo",1),Te([Ue({type:Boolean})],Ie.prototype,"drawer",1),Te([Ue({type:Array})],Ie.prototype,"tabs",1),Te([Ue({type:Array})],Ie.prototype,"drawerLinks",1),Te([Ue({type:String})],Ie.prototype,"size",1),Te([Ue({type:Boolean})],Ie.prototype,"borderBottom",1),Te([Ue({type:Number})],Ie.prototype,"selectedTab",1),Te([Ue({type:Number})],Ie.prototype,"activeTabIndex",1),Te([Ue({type:Boolean})],Ie.prototype,"showLogin",1),Te([Ue({type:Boolean})],Ie.prototype,"loginModalOpen",1),Te([Ue({type:String,attribute:"default-login-icon"})],Ie.prototype,"defaultLoginIcon",1);var Ii=Ie;export{Ie as a,Ii as b};
118
- /*! Bundled license information:
119
-
120
- @teamhanko/hanko-elements/dist/elements.js:
121
- (*! For license information please see elements.js.LICENSE.txt *)
122
- */