@authhero/widget 0.4.1 → 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 (39) hide show
  1. package/README.md +21 -1
  2. package/dist/authhero-widget/authhero-widget.esm.js +1 -1
  3. package/dist/authhero-widget/index.esm.js +1 -1
  4. package/dist/authhero-widget/p-7989dabd.entry.js +1 -0
  5. package/dist/authhero-widget/{p-Doiemx6o.js → p-bMtPc5Dm.js} +1 -1
  6. package/dist/authhero-widget/p-fa60ab6e.entry.js +1 -0
  7. package/dist/cjs/authhero-node.cjs.entry.js +97 -9
  8. package/dist/cjs/authhero-widget.cjs.entry.js +82 -18
  9. package/dist/cjs/authhero-widget.cjs.js +2 -2
  10. package/dist/cjs/{index-D0xitTOL.js → index-Db4bZu99.js} +28 -3
  11. package/dist/cjs/index.cjs.js +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/collection/components/authhero-node/authhero-node.css +237 -94
  14. package/dist/collection/components/authhero-node/authhero-node.js +101 -8
  15. package/dist/collection/components/authhero-widget/authhero-widget.css +128 -70
  16. package/dist/collection/components/authhero-widget/authhero-widget.js +30 -5
  17. package/dist/collection/utils/branding.js +52 -13
  18. package/dist/components/authhero-node.js +1 -1
  19. package/dist/components/authhero-widget.js +1 -1
  20. package/dist/components/index.js +1 -1
  21. package/dist/components/p-pupmqprs.js +1 -0
  22. package/dist/components/p-uIy4ySa4.js +1 -0
  23. package/dist/esm/authhero-node.entry.js +97 -9
  24. package/dist/esm/authhero-widget.entry.js +82 -18
  25. package/dist/esm/authhero-widget.js +3 -3
  26. package/dist/esm/{index-Doiemx6o.js → index-bMtPc5Dm.js} +28 -3
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/loader.js +3 -3
  29. package/dist/types/components/authhero-node/authhero-node.d.ts +14 -1
  30. package/dist/types/components/authhero-widget/authhero-widget.d.ts +8 -0
  31. package/hydrate/index.js +207 -29
  32. package/hydrate/index.mjs +207 -29
  33. package/package.json +10 -4
  34. package/dist/authhero-widget/p-2e93c814.entry.js +0 -1
  35. package/dist/authhero-widget/p-539fc666.entry.js +0 -1
  36. package/dist/collection/server/index.js +0 -453
  37. package/dist/components/p-086EZrPM.js +0 -1
  38. package/dist/components/p-DS6y_iDJ.js +0 -1
  39. package/dist/types/server/index.d.ts +0 -85
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as r}from"./p-bMtPc5Dm.js";const i=class{constructor(r){t(this,r),this.fieldChange=e(this,"fieldChange"),this.buttonClick=e(this,"buttonClick")}component;value;disabled=!1;passwordVisible=!1;fieldChange;buttonClick;handleInput=t=>{this.fieldChange.emit({id:this.component.id,value:t.target.value})};handleCheckbox=t=>{this.fieldChange.emit({id:this.component.id,value:t.target.checked?"true":"false"})};handleButtonClick=(t,e,r)=>{"submit"!==e&&t.preventDefault(),this.buttonClick.emit({id:this.component.id,type:e,value:r})};togglePasswordVisibility=()=>{this.passwordVisible=!this.passwordVisible};getErrors(){const t=this.component;return t.messages?.filter((t=>"error"===t.type))||[]}renderFloatingLabel(t,e,i,o){return t?r("label",{class:{"input-label":!0,floating:!!o},part:"label",htmlFor:e},t,i&&r("span",{class:"required"},"*")):null}renderLabel(t,e,i){return t?r("label",{class:"input-label",part:"label",htmlFor:e},t,i&&r("span",{class:"required"},"*")):null}renderPasswordToggle(){return this.passwordVisible?r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),r("line",{x1:"1",y1:"1",x2:"23",y2:"23"})):r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),r("circle",{cx:"12",cy:"12",r:"3"}))}renderErrors(){return this.getErrors().map((t=>r("span",{class:"error-text",part:"error-text",key:t.id??t.text},t.text)))}renderHint(t){return t?r("span",{class:"helper-text",part:"helper-text"},t):null}renderDivider(){return r("hr",{class:"divider",part:"divider"})}renderHtml(t){return r("div",{class:"html-content",part:"html-content",innerHTML:t.config?.content??""})}renderImage(t){const{src:e,alt:i,width:o,height:a}=t.config??{};return e?r("img",{class:"image",part:"image",src:e,alt:i??"",width:o,height:a,loading:"lazy"}):null}renderRichText(t){return r("div",{class:"rich-text",part:"rich-text",innerHTML:t.config?.content??""})}renderNextButton(t){return r("button",{type:"submit",class:"btn btn-primary",part:"button button-primary",disabled:this.disabled,onClick:t=>this.handleButtonClick(t,"submit","next")},t.config.text??"Continue")}renderPreviousButton(t){return r("button",{type:"button",class:"btn btn-secondary",part:"button button-secondary",disabled:this.disabled,onClick:t=>this.handleButtonClick(t,"previous","back")},t.config.text??"Back")}renderJumpButton(t){return r("button",{type:"button",class:"btn btn-link",part:"button button-link",disabled:this.disabled,onClick:e=>this.handleButtonClick(e,"jump",t.config.target_step)},t.config.text??"Go")}renderResendButton(t){return r("button",{type:"button",class:"btn btn-link",part:"button button-link",disabled:this.disabled,onClick:e=>this.handleButtonClick(e,"resend",t.config.resend_action)},t.config.text??"Resend")}renderTextField(t){const e=`input-${t.id}`,i=this.getErrors(),{multiline:o,max_length:a}=t.config??{},n=!!(this.value&&this.value.length>0);return o?r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("textarea",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input textarea",name:t.id,placeholder:" ",required:t.required,disabled:this.disabled,maxLength:a,onInput:this.handleInput},this.value??""),this.renderErrors(),0===i.length&&this.renderHint(t.hint)):r("div",{class:"input-wrapper",part:"input-wrapper"},r("div",{class:"input-container"},r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:t.sensitive?"password":"text",name:t.id,value:this.value??"",placeholder:" ",required:t.required,disabled:this.disabled,maxLength:a,onInput:this.handleInput}),this.renderFloatingLabel(t.label,e,t.required,n)),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderEmailField(t){const e=`input-${t.id}`,i=this.getErrors(),o=!!(this.value&&this.value.length>0);return r("div",{class:"input-wrapper",part:"input-wrapper"},r("div",{class:"input-container"},r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:"email",name:t.id,value:this.value??"",placeholder:" ",required:t.required,disabled:this.disabled,autocomplete:"email",onInput:this.handleInput}),this.renderFloatingLabel(t.label,e,t.required,o)),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderPasswordField(t){const e=`input-${t.id}`,i=this.getErrors(),o=!!(this.value&&this.value.length>0),a=t.config?.forgot_password_link;return r("div",{class:"input-wrapper",part:"input-wrapper"},r("div",{class:"input-container password-container"},r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:this.passwordVisible?"text":"password",name:t.id,value:this.value??"",placeholder:" ",required:t.required,disabled:this.disabled,minLength:t.config?.min_length,autocomplete:"current-password",onInput:this.handleInput}),this.renderFloatingLabel(t.label,e,t.required,o),r("button",{type:"button",class:"password-toggle",part:"password-toggle",onClick:this.togglePasswordVisibility,"aria-label":"Toggle password visibility","aria-pressed":this.passwordVisible?"true":"false"},this.renderPasswordToggle())),this.renderErrors(),0===i.length&&this.renderHint(t.hint),a&&r("div",{class:"field-link",part:"field-link"},r("a",{href:a,class:"link",part:"link"},"Forgot password?")))}renderNumberField(t){const e=`input-${t.id}`,i=this.getErrors(),{placeholder:o,min:a,max:n,step:s}=t.config??{};return r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:"number",name:t.id,value:this.value??"",placeholder:o,required:t.required,disabled:this.disabled,min:a,max:n,step:s,onInput:this.handleInput}),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderTelField(t){const e=`input-${t.id}`,i=this.getErrors();return r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:"tel",name:t.id,value:this.value??"",placeholder:t.config?.placeholder,required:t.required,disabled:this.disabled,autocomplete:"tel",onInput:this.handleInput}),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderUrlField(t){const e=`input-${t.id}`,i=this.getErrors();return r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:"url",name:t.id,value:this.value??"",placeholder:t.config?.placeholder,required:t.required,disabled:this.disabled,onInput:this.handleInput}),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderDateField(t){const e=`input-${t.id}`,i=this.getErrors(),{min:o,max:a}=t.config??{};return r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("input",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input",type:"date",name:t.id,value:this.value??"",required:t.required,disabled:this.disabled,min:o,max:a,onInput:this.handleInput}),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderBooleanField(t){return r("label",{class:"checkbox-wrapper",part:"checkbox-wrapper"},r("input",{type:"checkbox",part:"checkbox",name:t.id,checked:"true"===this.value||!0===t.config?.default_value,required:t.required,disabled:this.disabled,onChange:this.handleCheckbox}),r("span",{class:"checkbox-label",part:"checkbox-label"},t.label))}renderLegalField(t){const e=t.config?.text??t.label??"",i=!0===t.config?.html;return r("label",{class:"checkbox-wrapper",part:"checkbox-wrapper"},r("input",{type:"checkbox",part:"checkbox",name:t.id,checked:"true"===this.value,required:t.required,disabled:this.disabled,onChange:this.handleCheckbox}),i?r("span",{class:"checkbox-label",part:"checkbox-label",innerHTML:e}):r("span",{class:"checkbox-label",part:"checkbox-label"},e))}renderDropdownField(t){const e=`input-${t.id}`,i=this.getErrors(),{options:o,placeholder:a}=t.config??{};return r("div",{class:"input-wrapper",part:"input-wrapper"},this.renderLabel(t.label,e,t.required),r("select",{id:e,class:{"input-field":!0,"has-error":i.length>0},part:"input select",name:t.id,required:t.required,disabled:this.disabled,onChange:this.handleInput},a&&r("option",{value:"",disabled:!0,selected:!this.value},a),o?.map((t=>r("option",{value:t.value,selected:this.value===t.value,key:t.value},t.label)))),this.renderErrors(),0===i.length&&this.renderHint(t.hint))}renderChoiceField(t){const e=this.getErrors(),{options:i,display:o}=t.config??{},a="checkbox"===o,n=a?"checkbox":"radio";return r("div",{class:"choice-wrapper",part:"choice-wrapper"},t.label&&r("span",{class:"choice-label",part:"choice-label"},t.label,t.required&&r("span",{class:"required"},"*")),r("div",{class:"choice-options",part:"choice-options"},i?.map((e=>r("label",{class:"choice-option",part:"choice-option",key:e.value},r("input",{type:n,part:n,name:t.id,value:e.value,checked:this.value===e.value,required:t.required&&!a,disabled:this.disabled,onChange:this.handleInput}),r("span",null,e.label))))),this.renderErrors(),0===e.length&&this.renderHint(t.hint))}renderSocialField(t){return r("div",{class:"social-buttons",part:"social-buttons"},(t.config?.providers??[]).map((t=>r("button",{type:"button",class:"btn btn-secondary btn-social",part:"button button-secondary button-social","data-provider":t,disabled:this.disabled,onClick:e=>this.handleButtonClick(e,"social",t),key:t},(t=>{const e=t.toLowerCase();return"google-oauth2"===e||"google"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{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",fill:"#4285F4"}),r("path",{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",fill:"#34A853"}),r("path",{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",fill:"#FBBC05"}),r("path",{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",fill:"#EA4335"})):"facebook"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z",fill:"#1877F2"})):"apple"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z",fill:"#000000"})):"github"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z",fill:"#181717"})):"microsoft"===e||"windowslive"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M0 0h11.377v11.372H0V0z",fill:"#f25022"}),r("path",{d:"M12.623 0H24v11.372H12.623V0z",fill:"#7fba00"}),r("path",{d:"M0 12.623h11.377V24H0v-11.377z",fill:"#00a4ef"}),r("path",{d:"M12.623 12.623H24V24H12.623v-11.377z",fill:"#ffb900"})):"linkedin"===e?r("svg",{class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",fill:"#0A66C2"})):null})(t),r("span",null,"Continue with ",(t=>({"google-oauth2":"Google",facebook:"Facebook",twitter:"Twitter",github:"GitHub",linkedin:"LinkedIn",apple:"Apple",microsoft:"Microsoft",windowslive:"Microsoft",amazon:"Amazon",dropbox:"Dropbox",bitbucket:"Bitbucket",spotify:"Spotify",slack:"Slack",discord:"Discord",twitch:"Twitch",line:"LINE",shopify:"Shopify",paypal:"PayPal","paypal-sandbox":"PayPal",box:"Box",salesforce:"Salesforce","salesforce-sandbox":"Salesforce",yahoo:"Yahoo",auth0:"Auth0"}[t.toLowerCase()]||t.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ")))(t))))))}render(){if(!this.component)return null;if(!1===this.component.visible)return null;switch(this.component.type){case"DIVIDER":return this.renderDivider();case"HTML":return this.renderHtml(this.component);case"IMAGE":return this.renderImage(this.component);case"RICH_TEXT":return this.renderRichText(this.component);case"NEXT_BUTTON":return this.renderNextButton(this.component);case"PREVIOUS_BUTTON":return this.renderPreviousButton(this.component);case"JUMP_BUTTON":return this.renderJumpButton(this.component);case"RESEND_BUTTON":return this.renderResendButton(this.component);case"TEXT":return this.renderTextField(this.component);case"EMAIL":return this.renderEmailField(this.component);case"PASSWORD":return this.renderPasswordField(this.component);case"NUMBER":return this.renderNumberField(this.component);case"TEL":return this.renderTelField(this.component);case"URL":return this.renderUrlField(this.component);case"DATE":return this.renderDateField(this.component);case"BOOLEAN":return this.renderBooleanField(this.component);case"LEGAL":return this.renderLegalField(this.component);case"DROPDOWN":return this.renderDropdownField(this.component);case"CHOICE":return this.renderChoiceField(this.component);case"SOCIAL":return this.renderSocialField(this.component);case"AUTH0_VERIFIABLE_CREDENTIALS":case"GMAPS_ADDRESS":case"RECAPTCHA":return console.warn(`Widget component "${this.component.type}" not yet implemented`),null;case"CARDS":case"CUSTOM":case"FILE":case"PAYMENT":return console.warn(`Component "${this.component.type}" not yet implemented`),null;default:return console.warn(`Unknown component type: ${this.component.type}`),null}}};i.style=":host{display:block}.input-wrapper{display:flex;flex-direction:column;position:relative;margin-bottom:16px}.input-container{position:relative;width:100%}.input-label{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:16px;font-weight:var(--ah-font-weight-label, 400);color:var(--ah-color-text-muted, #65676e);pointer-events:none;transition:all 0.15s ease-out;background-color:transparent;padding:0;z-index:1}.input-label.floating,.input-field:focus+.input-label,.input-field:not(:placeholder-shown)+.input-label{top:-8px;transform:translateY(0);font-size:12px;background-color:var(--ah-color-bg, #ffffff);padding:0 4px;left:12px;color:var(--ah-color-text-muted, #65676e)}.input-field:focus+.input-label{color:var(--ah-color-primary, #635dff)}.required{color:var(--ah-color-error, #d03c38);margin-left:2px}.input-field{width:100%;padding:16px;font-size:16px;font-family:inherit;color:var(--ah-color-text, #1e212a);background-color:var(--ah-color-input-bg, #ffffff);border:1px solid var(--ah-color-border, #c9cace);border-radius:var(--ah-input-radius, 3px);outline:none;transition:border-color 0.15s ease-out, box-shadow 0.15s ease-out;box-sizing:border-box}.input-field::placeholder{color:transparent}.input-field:hover{border-color:var(--ah-color-border-hover, #65676e)}.input-field:focus{border-color:var(--ah-color-primary, #635dff);box-shadow:inset 0 0 0 1px var(--ah-color-primary, #635dff)}.input-field.has-error{border-color:var(--ah-color-error, #d03c38)}.input-field.has-error:focus{box-shadow:inset 0 0 0 1px var(--ah-color-error, #d03c38)}.input-field:disabled{background-color:var(--ah-color-bg-disabled, #f5f5f5);border-color:var(--ah-color-border-disabled, #e0e1e3);cursor:not-allowed;opacity:0.7}.password-container{position:relative;display:flex;align-items:center}.password-container .input-field{padding-right:48px}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;color:var(--ah-color-text-muted, #65676e);transition:color 0.15s ease}.password-toggle:hover{color:var(--ah-color-text, #1e212a)}.password-toggle svg{width:20px;height:20px}.error-text{font-size:12px;color:var(--ah-color-error, #d03c38);margin-top:4px;line-height:1.4}.helper-text{font-size:12px;color:var(--ah-color-text-muted, #65676e);margin-top:4px;line-height:1.4}.field-link{display:block;text-align:left;margin-top:8px;margin-bottom:16px}.field-link a{color:var(--ah-color-link, #635dff);text-decoration:var(--ah-link-decoration, none);font-size:14px;font-weight:var(--ah-font-weight-link, 400)}.field-link a:hover{text-decoration:underline}.checkbox-wrapper{display:flex;align-items:flex-start;gap:10px;cursor:pointer;margin-bottom:16px}.checkbox-wrapper input[type='checkbox']{width:18px;height:18px;margin:0;accent-color:var(--ah-color-primary, #635dff);cursor:pointer;flex-shrink:0}.checkbox-label{font-size:14px;color:var(--ah-color-text, #1e212a);line-height:1.5}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 20px;font-size:16px;font-weight:var(--ah-font-weight-btn, 400);font-family:inherit;line-height:1.25;text-align:center;text-decoration:none;border:none;border-radius:var(--ah-btn-radius, 3px);cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;box-sizing:border-box}.btn:disabled{opacity:0.6;cursor:not-allowed}.btn:not(:disabled):active{transform:scale(0.98)}.btn:focus-visible{outline:2px solid var(--ah-color-primary, #635dff);outline-offset:2px}.btn-primary{background-color:var(--ah-color-primary, #635dff);color:var(--ah-color-text-on-primary, #ffffff);margin-top:8px}.btn-primary:not(:disabled):hover{background-color:var(--ah-color-primary-hover);filter:brightness(0.9)}.btn-secondary{background-color:var(--ah-color-bg, #ffffff);color:var(--ah-color-text, #1e212a);border:1px solid var(--ah-color-border, #c9cace)}.btn-secondary:not(:disabled):hover{background-color:var(--ah-color-bg-hover, #f5f5f5);border-color:var(--ah-color-border-hover, #65676e)}.btn-link{background:none;border:none;color:var(--ah-color-link, #635dff);padding:8px 0;font-weight:var(--ah-font-weight-link, 400);text-decoration:none}.btn-link:hover{text-decoration:underline}.btn-social{display:flex;align-items:center;justify-content:center;gap:12px}.social-icon{width:20px;height:20px;flex-shrink:0}.btn-icon{width:20px;height:20px;flex-shrink:0}.btn-icon img{width:100%;height:100%;object-fit:contain}.text-title{font-size:20px;font-weight:400;color:var(--ah-color-text, #1e212a);margin:8px 0;line-height:1.3}.text-title.text-success{color:var(--ah-color-success, #13a769)}.text-description{font-size:14px;color:var(--ah-color-text-muted, #65676e);margin:4px 0;line-height:1.5}.image{display:block;max-width:100%;height:auto;border-radius:4px}.image-centered{margin:0 auto 16px;width:52px;height:52px;object-fit:contain}.link{color:var(--ah-color-link, #635dff);text-decoration:var(--ah-link-decoration, none);font-size:14px;transition:color 0.15s ease}.link:hover{text-decoration:underline}.link:focus-visible{outline:2px solid var(--ah-color-link, #635dff);outline-offset:2px;border-radius:2px}.node-error{padding:12px 16px;background-color:var(--ah-color-error-bg, #ffeaea);color:var(--ah-color-error, #d03c38);border-left:3px solid var(--ah-color-error, #d03c38);border-radius:0;font-size:14px;margin-bottom:16px}.node-success{padding:12px 16px;background-color:var(--ah-color-success-bg, #e6f9f1);color:var(--ah-color-success, #13a769);border-left:3px solid var(--ah-color-success, #13a769);border-radius:0;font-size:14px;margin-bottom:16px}.divider{display:flex;align-items:center;text-align:center;margin:16px 0}.divider::before,.divider::after{content:'';flex:1;border-bottom:1px solid var(--ah-color-border-muted, #c9cace)}.divider-text{padding:0 10px;font-size:12px;font-weight:400;color:var(--ah-color-text-muted, #65676e);text-transform:uppercase;letter-spacing:0.5px}";export{i as authhero_node}
@@ -1,2 +1,2 @@
1
- var t,e,n,s,i,r,o,l,c,u,f,a,h,p,d,v,$,m=Object.create,b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,y=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,j=t=>{throw TypeError(t)},O=(t,e)=>function(){return e||(0,t[w(t)[0]])((e={exports:{}}).exports,e),e.exports},E=(t,e,n)=>e.has(t)||j("Cannot "+n),M=(t,e,n)=>(E(t,e,"read from private field"),n?n.call(t):e.get(t)),k=(t,e,n)=>e.has(t)?j("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),x=(t,e,n)=>(E(t,e,"write to private field"),e.set(t,n),n),N=(t,e,n)=>(E(t,e,"access private method"),n),P=O({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var r=i(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var s,i,r,o,l,c=n.indexOf(t),u=n.indexOf(e,c+1),f=c;if(c>=0&&u>0){if(t===e)return[c,u];for(s=[],r=n.length;f>=0&&!l;)f==c?(s.push(f),c=n.indexOf(t,f+1)):1==s.length?l=[s.pop(),u]:((i=s.pop())<r&&(r=i,o=u),u=n.indexOf(e,f+1)),f=c<u&&c>=0?c:u;s.length&&(l=[r,o])}return l}e.exports=n,n.range=i}}),R=O({"node_modules/brace-expansion/index.js"(t,e){var n=P();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(u)):[]};var s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function u(t){return t.split(s).join("\\").split(i).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function f(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var i=s.body,r=s.post,o=s.pre.split(",");o[o.length-1]+="{"+i+"}";var l=f(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function a(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var s=[],i=n("{","}",t);if(!i)return[t];var o=i.pre,l=i.post.length?v(i.post,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<l.length;u++)s.push(W=o+"{"+i.body+"}"+l[u]);else{var $,m,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),w=b||g,y=i.body.indexOf(",")>=0;if(!w&&!y)return i.post.match(/,(?!,).*\}/)?v(t=i.pre+"{"+i.body+r+i.post):[t];if(w)$=i.body.split(/\.\./);else if(1===($=f(i.body)).length&&1===($=v($[0],!1).map(a)).length)return l.map((function(t){return i.pre+$[0]+t}));if(w){var S=c($[0]),j=c($[1]),O=Math.max($[0].length,$[1].length),E=3==$.length?Math.abs(c($[2])):1,M=p;j<S&&(E*=-1,M=d);var k=$.some(h);m=[];for(var x=S;M(x,j);x+=E){var N;if(g)"\\"===(N=String.fromCharCode(x))&&(N="");else if(N=x+"",k){var P=O-N.length;if(P>0){var R=Array(P+1).join("0");N=x<0?"-"+R+N.slice(1):R+N}}m.push(N)}}else{m=[];for(var C=0;C<$.length;C++)m.push.apply(m,v($[C],!1))}for(C=0;C<m.length;C++)for(u=0;u<l.length;u++){var W=o+m[C]+l[u];(!e||w||W)&&s.push(W)}}return s}}}),C=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(C||{}),W=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(W||{}),L="type",A="value",z="serialized:",I=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],i=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(t,n,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):s}}))},T=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},_=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.i.u&&I(t,e))},D=(t,e)=>e in t,U=(t,e)=>(0,console.error)(t,e),G=new Map,V=new Map,B="s-id",F="sty-id",Z="c-id",H="slot-fb{display:contents}slot-fb[hidden]{display:none}",q="undefined"!=typeof window?window:{},J={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},Y=t=>Promise.resolve(t),K=(()=>{try{return!!q.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Q=!!K&&(()=>!!q.document&&Object.getOwnPropertyDescriptor(q.document.adoptedStyleSheets,"length").writable)(),X=!1,tt=[],et=[],nt=(t,e)=>n=>{t.push(n),X||(X=!0,e&&4&J.u?rt(it):J.raf(it))},st=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){U(t)}t.length=0},it=()=>{st(tt),st(et),(X=tt.length>0)&&J.raf(it)},rt=t=>Y().then(t),ot=nt(et,!0),lt=t=>"object"==(t=typeof t)||"function"===t,ct=((t,e,n)=>(n=null!=t?m(y(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of w(e))S.call(t,n)||undefined===n||b(t,n,{get:()=>e[n],enumerable:!(s=g(e,n))||s.enumerable});return t})(b(n,"default",{value:t,enumerable:!0}),t)))(R()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ft={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},at=t=>t.replace(/[[\]\\-]/g,"\\$&"),ht=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pt=t=>t.join(""),dt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],i=[];let r=n+1,o=!1,l=!1,c=!1,u=!1,f=n,a="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!c){f=r+1;break}if(o=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[o,c,u]]of Object.entries(ft))if(t.startsWith(e,r)){if(a)return["$.",!1,t.length-n,!0];r+=e.length,u?i.push(o):s.push(o),l=l||c;continue t}c=!1,a?(e>a?s.push(at(a)+"-"+at(e)):e===a&&s.push(at(e)),a="",r++):t.startsWith("-]",r+1)?(s.push(at(e+"-")),r+=2):t.startsWith("-",r+1)?(a=e,r+=2):(s.push(at(e)),r++)}else c=!0,r++}else u=!0,r++}if(f<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-n,!0];if(0===i.length&&1===s.length&&/^\\?.$/.test(s[0])&&!u){const t=2===s[0].length?s[0].slice(-1):s[0];return[ht(t),!1,f-n,!1]}const h="["+(u?"^":"")+pt(s)+"]",p="["+(u?"":"^")+pt(i)+"]";return[s.length&&i.length?"("+h+"|"+p+")":s.length?h:p,l,f-n,!0]},vt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),$t=new Set(["!","?","+","*","@"]),mt=t=>$t.has(t),bt="(?!\\.)",gt=new Set(["[","."]),wt=new Set(["..","."]),yt=new Set("().*{}+?[]^$\\!"),St=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jt="[^/]",Ot=jt+"*?",Et=jt+"+?",Mt=class m{constructor(h,p,d={}){k(this,a),((t,e,n)=>{((t,e,n)=>{e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),k(this,t),k(this,e),k(this,n,!1),k(this,s,[]),k(this,i),k(this,r),k(this,o),k(this,l,!1),k(this,c),k(this,u),k(this,f,!1),this.type=h,h&&x(this,e,!0),x(this,i,p),x(this,t,M(this,i)?M(M(this,i),t):this),x(this,c,M(this,t)===this?d:M(M(this,t),c)),x(this,o,M(this,t)===this?[]:M(M(this,t),o)),"!"!==h||M(M(this,t),l)||M(this,o).push(this),x(this,r,M(this,i)?M(M(this,i),s).length:0)}get hasMagic(){if(void 0!==M(this,e))return M(this,e);for(const t of M(this,s))if("string"!=typeof t&&(t.type||t.hasMagic))return x(this,e,!0);return M(this,e)}toString(){return void 0!==M(this,u)?M(this,u):x(this,u,this.type?this.type+"("+M(this,s).map((t=>t+"")).join("|")+")":M(this,s).map((t=>t+"")).join(""))}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof m&&M(e,i)===this))throw Error("invalid part: "+e);M(this,s).push(e)}}toJSON(){var e;const n=null===this.type?M(this,s).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...M(this,s).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===M(this,t)||M(M(this,t),l)&&"!"===(null==(e=M(this,i))?void 0:e.type))&&n.push({}),n}isStart(){var e;if(M(this,t)===this)return!0;if(!(null==(e=M(this,i))?void 0:e.isStart()))return!1;if(0===M(this,r))return!0;const n=M(this,i);for(let t=0;t<M(this,r);t++){const e=M(n,s)[t];if(!(e instanceof m&&"!"===e.type))return!1}return!0}isEnd(){var e,n,o;if(M(this,t)===this)return!0;if("!"===(null==(e=M(this,i))?void 0:e.type))return!0;if(!(null==(n=M(this,i))?void 0:n.isEnd()))return!1;if(!this.type)return null==(o=M(this,i))?void 0:o.isEnd();const l=M(this,i)?M(M(this,i),s).length:0;return M(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(t){const e=new m(this.type,t);for(const t of M(this,s))e.copyIn(t);return e}static fromGlob(t,e={}){var n;const s=new m(null,void 0,e);return N(n=m,p,d).call(n,t,s,0,e),s}toMMPattern(){if(this!==M(this,t))return M(this,t).toMMPattern();const n=""+this,[s,i,r,o]=this.toRegExpSource();if(!(r||M(this,e)||M(this,c).nocase&&!M(this,c).nocaseMagicOnly&&n.toUpperCase()!==n.toLowerCase()))return i;const l=(M(this,c).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:n})}get options(){return M(this,c)}toRegExpSource(r){var o;const u=null!=r?r:!!M(this,c).dot;if(M(this,t)===this&&N(this,a,h).call(this),!this.type){const c=this.isStart()&&this.isEnd(),f=M(this,s).map((t=>{var s;const[i,o,l,u]="string"==typeof t?N(s=m,p,$).call(s,t,M(this,e),c):t.toRegExpSource(r);return x(this,e,M(this,e)||l),x(this,n,M(this,n)||u),i})).join("");let a="";if(this.isStart()&&"string"==typeof M(this,s)[0]&&(1!==M(this,s).length||!wt.has(M(this,s)[0]))){const t=gt,e=u&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),n=!u&&!r&&t.has(f.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?bt:""}let h="";return this.isEnd()&&M(M(this,t),l)&&"!"===(null==(o=M(this,i))?void 0:o.type)&&(h="(?:$|\\/)"),[a+f+h,vt(f),x(this,e,!!M(this,e)),M(this,n)]}const d="*"===this.type||"+"===this.type,b="!"===this.type?"(?:(?!(?:":"(?:";let g=N(this,a,v).call(this,u);if(this.isStart()&&this.isEnd()&&!g&&"!"!==this.type){const t=""+this;return x(this,s,[t]),this.type=null,x(this,e,void 0),[t,vt(""+this),!1,!1]}let w=!d||r||u?"":N(this,a,v).call(this,!0);w===g&&(w=""),w&&(g=`(?:${g})(?:${w})*?`);let y="";return y="!"===this.type&&M(this,f)?(this.isStart()&&!u?bt:"")+Et:b+g+("!"===this.type?"))"+(!this.isStart()||u||r?"":bt)+Ot+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,vt(g),x(this,e,!!M(this,e)),M(this,n)]}};t=new WeakMap,e=new WeakMap,n=new WeakMap,s=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,a=new WeakSet,h=function(){if(this!==M(this,t))throw Error("should only call on root");if(M(this,l))return this;let e;for(x(this,l,!0);e=M(this,o).pop();){if("!"!==e.type)continue;let t=e,n=M(t,i);for(;n;){for(let i=M(t,r)+1;!n.type&&i<M(n,s).length;i++)for(const t of M(e,s)){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(M(n,s)[i])}t=n,n=M(t,i)}}return this},p=new WeakSet,d=function(t,n,i,r){var o,l;let c=!1,u=!1,a=-1,h=!1;if(null===n.type){let e=i,s="";for(;e<t.length;){const i=t.charAt(e++);if(c||"\\"===i)c=!c,s+=i;else if(u)e===a+1?"^"!==i&&"!"!==i||(h=!0):"]"!==i||e===a+2&&h||(u=!1),s+=i;else if("["!==i)if(r.noext||!mt(i)||"("!==t.charAt(e))s+=i;else{n.push(s),s="";const l=new Mt(i,n);e=N(o=Mt,p,d).call(o,t,l,e,r),n.push(l)}else u=!0,a=e,h=!1,s+=i}return n.push(s),e}let v=i+1,$=new Mt(null,n);const m=[];let b="";for(;v<t.length;){const e=t.charAt(v++);if(c||"\\"===e)c=!c,b+=e;else if(u)v===a+1?"^"!==e&&"!"!==e||(h=!0):"]"!==e||v===a+2&&h||(u=!1),b+=e;else if("["!==e)if(mt(e)&&"("===t.charAt(v)){$.push(b),b="";const n=new Mt(e,$);$.push(n),v=N(l=Mt,p,d).call(l,t,n,v,r)}else if("|"!==e){if(")"===e)return""===b&&0===M(n,s).length&&x(n,f,!0),$.push(b),b="",n.push(...m,$),v;b+=e}else $.push(b),b="",m.push($),$=new Mt(null,n);else u=!0,a=v,h=!1,b+=e}return n.type=null,x(n,e,void 0),x(n,s,[t.substring(i-1)]),v},v=function(t){return M(this,s).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[s,i,r,o]=e.toRegExpSource(t);return x(this,n,M(this,n)||o),s})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},$=function(t,e,n=!1){let s=!1,i="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(s)s=!1,i+=(yt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,c]=dt(t,o);if(l){i+=n,r=r||s,o+=l-1,e=e||c;continue}}"*"!==l?"?"!==l?i+=St(l):(i+=jt,e=!0):(i+=n&&"*"===t?Et:Ot,e=!0)}else o===t.length-1?i+="\\\\":s=!0}return[i,vt(t),!!e,r]},k(Mt,p);var kt=Mt,xt=(t,e,n={})=>(ut(e),!(!n.nocomment&&"#"===e.charAt(0))&&new te(e,n).match(t)),Nt=/^\*+([^+@!?\*\[\(]*)$/,Pt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Rt=t=>e=>e.endsWith(t),Ct=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Wt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Lt=/^\*+\.\*+$/,At=t=>!t.startsWith(".")&&t.includes("."),zt=t=>"."!==t&&".."!==t&&t.includes("."),It=/^\.\*+$/,Tt=t=>"."!==t&&".."!==t&&t.startsWith("."),_t=/^\*+$/,Dt=t=>0!==t.length&&!t.startsWith("."),Ut=t=>0!==t.length&&"."!==t&&".."!==t,Gt=/^\?+([^+@!?\*\[\(]*)?$/,Vt=([t,e=""])=>{const n=Ht([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Bt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Ft=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},Zt=([t,e=""])=>{const n=Ht([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},qt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Jt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";xt.sep="win32"===Jt?"\\":"/";var Yt=Symbol("globstar **");xt.GLOBSTAR=Yt,xt.filter=(t,e={})=>n=>xt(n,t,e);var Kt=(t,e={})=>Object.assign({},t,e);xt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return xt;const e=xt;return Object.assign(((n,s,i={})=>e(n,s,Kt(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Kt(t,n))}static defaults(n){return e.defaults(Kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Kt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Kt(t,s))}},unescape:(n,s={})=>e.unescape(n,Kt(t,s)),escape:(n,s={})=>e.escape(n,Kt(t,s)),filter:(n,s={})=>e.filter(n,Kt(t,s)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Kt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Kt(t,s)),match:(n,s,i={})=>e.match(n,s,Kt(t,i)),sep:e.sep,GLOBSTAR:Yt})};var Qt=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ct.default)(t));xt.braceExpand=Qt,xt.makeRe=(t,e={})=>new te(t,e).makeRe(),xt.match=(t,e,n={})=>{const s=new te(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Xt=/[?*]|[+@!]\(.*?\)|\[|\]/,te=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Jt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Xt.test(t[2])||Xt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let i=s;for(;"**"===n[i+1];)i++;i>s&&n.splice(s+1,i-s);const r=n[s+2],o=n[s+3];if(".."!==n[s+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const t=n[i-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(i-1,2,...1===i&&"**"===n[i+1]?["."]:[]),0===n.length&&n.push(""),i-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,i=0,r=[],o="";for(;s<t.length&&i<e.length;)if(t[s]===e[i])r.push("b"===o?e[i]:t[s]),s++,i++;else if(n&&"**"===t[s]&&e[i]===t[s+1])r.push(t[s]),s++;else if(n&&"**"===e[i]&&t[s]===e[i+1])r.push(e[i]),i++;else if("*"!==t[s]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[i]),s++,i++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,i++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:n?0:void 0,o=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,s]=[t[r],e[o]];n.toLowerCase()===s.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,c=e.length;r<l&&o<c;r++,o++){this.debug("matchOne loop");var u=e[o],f=t[r];if(this.debug(e,u,f),!1===u)return!1;if(u===Yt){this.debug("GLOBSTAR",[e,u,f]);var a=r,h=o+1;if(h===c){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;a<l;){var p=t[a];if(this.debug("\nglobstar while",t,a,e,h,p),this.matchOne(t.slice(a),e.slice(h),n))return this.debug("globstar found match!",a,l,p),!0;if("."===p||".."===p||!s.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,a,e,h);break}this.debug("globstar swallow a segment, and continue"),a++}return!(!n||(this.debug("\n>>> no match, partial?",t,a,e,h),a!==l))}let i;if("string"==typeof u?(i=f===u,this.debug("string match",u,f,i)):(i=u.test(f),this.debug("pattern match",u,f,i)),!i)return!1}if(r===l&&o===c)return!0;if(r===l)return n;if(o===c)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Qt(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Yt;if(""===t)return"";let n,s=null;(n=t.match(_t))?s=e.dot?Ut:Dt:(n=t.match(Nt))?s=(e.nocase?e.dot?Wt:Ct:e.dot?Rt:Pt)(n[1]):(n=t.match(Gt))?s=(e.nocase?e.dot?Bt:Vt:e.dot?Ft:Zt)(n):(n=t.match(Lt))?s=e.dot?zt:At:(n=t.match(It))&&(s=Tt);const i=kt.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Yt?Yt:t._src}));return e.forEach(((t,s)=>{const i=e[s+1],r=e[s-1];t===Yt&&r!==Yt&&(void 0===r?void 0!==i&&i!==Yt?e[s+1]="(?:\\/|"+n+"\\/)?"+i:e[s]=n:void 0===i?e[s-1]=r+"(?:\\/|"+n+")?":i!==Yt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+i,e[s+1]=Yt))})),e.filter((t=>t!==Yt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];i="^"+r+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=RegExp(i,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<i.length;t++){const o=i[t];let l=s;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return xt.defaults(t).Minimatch}};function ee(t){var e,n,s;return null!=(s=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}xt.AST=kt,xt.Minimatch=te,xt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),xt.unescape=vt;var ne=class t{static fromLocalValue(e){const n=e[L],s=A in e?e[A]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,i]of s){const s="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(i);e.set(s,r)}return e;case"object":const i={};for(const[e,n]of s)i[e]=t.fromLocalValue(n);return i;case"regexp":const{pattern:r,flags:o}=s;return RegExp(r,o);case"set":const l=new Set;for(const e of s)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(L))return!1;const e=t[L];return!!Object.values({...C,...W}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(A))}};((t,e)=>{for(var n in e)b(t,n,{get:e[n],enumerable:!0})})({},{err:()=>ie,map:()=>re,ok:()=>se,unwrap:()=>le,unwrapErr:()=>ce});var se=t=>({isOk:!0,isErr:!1,value:t}),ie=t=>({isOk:!1,isErr:!0,value:t});function re(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>se(t))):se(n)}if(t.isErr)return ie(t.value);throw"should never get here"}var oe,le=t=>{if(t.isOk)return t.value;throw t.value},ce=t=>{if(t.isErr)return t.value;throw t.value};function ue(){const t=this.attachShadow({mode:"open"});void 0===oe&&(oe=null),oe&&(Q?t.adoptedStyleSheets.push(oe):t.adoptedStyleSheets=[...t.adoptedStyleSheets,oe])}function fe(t,e,n){let s,i=0,r=[];for(;i<t.length;i++){if(s=t[i],s["s-sr"]&&(!e||s["s-hn"]===e)&&(void 0===n||he(s)===n)&&(r.push(s),void 0!==n))return r;r=[...r,...fe(s.childNodes,e,n)]}return r}var ae=(t,e,n,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const r=e["s-cr"].parentNode,o=pe(r,"appendChild");if(void 0!==s){i["s-oo"]=s;const t=pe(r,"childNodes"),e=[i];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>o.call(r,t)))}else o.call(r,i);t["s-ol"]=i,t["s-sh"]=e["s-hn"]},he=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function pe(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var de=new WeakMap,ve=(t,e,n)=>{let s=V.get(t);K&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,V.set(t,s)},$e=(t,e)=>{var n,s,i;const r=me(e),o=V.get(r);if(!q.document)return r;if(t=11===t.nodeType?t:q.document,o)if("string"==typeof o){let i,l=de.get(t=t.head||t);l||de.set(t,l=new Set);const c=t.querySelector(`[${F}="${r}"]`);if(c)c.innerHTML=o;else if(!l.has(r)){i=q.document.createElement("style"),i.innerHTML=o;const c=null!=(n=J.p)?n:ee(q.document);if(null!=c&&i.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(K){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),Q?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(i)}else t.append(i);1&e.u&&t.insertBefore(i,null),4&e.u&&(i.innerHTML+=H),l&&l.add(r)}}else{let e=de.get(t);if(e||de.set(t,e=new Set),!e.has(r)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(o.constructor===n.CSSStyleSheet)s=o;else{s=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)s.insertRule(o.cssRules[t].cssText,t)}Q?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r},me=t=>"sc-"+t.v,be=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ge=(t,e,...n)=>{let s=null,i=null,r=!1,o=!1;const l=[],c=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!lt(s))&&(s+=""),r&&o?l[l.length-1].$+=s:l.push(r?we(null,s):s),o=r)};if(c(n),e){e.key&&(i=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=we(t,null);return u.m=e,l.length>0&&(u.S=l),u.j=i,u},we=(t,e)=>({u:0,O:t,$:e,M:null,S:null,m:null,j:null}),ye={},Se=(t,e,n,s,i,r,o,l=[])=>{let c,u,f,a;if(1===r.nodeType){if(c=r.getAttribute(Z),c&&(u=c.split("."),u[0]===o||"0"===u[0])){f=Oe({u:0,k:u[0],N:u[1],P:u[2],R:u[3],O:r.tagName.toLowerCase(),M:r,m:{class:r.className||""}}),e.push(f),r.removeAttribute(Z),t.S||(t.S=[]);const i=f.M.getAttribute("s-sn");"string"==typeof i&&("slot-fb"===f.O&&Ee(i,u[2],f,r,t,e,n,s,l),f.M["s-sn"]=i,f.M.removeAttribute("s-sn")),void 0!==f.R&&(t.S[f.R]=f),t=f,s&&"0"===f.P&&(s[f.R]=f.M)}if(r.shadowRoot)for(a=r.shadowRoot.childNodes.length-1;a>=0;a--)Se(t,e,n,s,i,r.shadowRoot.childNodes[a],o,l);const h=r.__childNodes||r.childNodes;for(a=h.length-1;a>=0;a--)Se(t,e,n,s,i,h[a],o,l)}else if(8===r.nodeType)u=r.nodeValue.split("."),(u[1]===o||"0"===u[1])&&(c=u[0],f=Oe({k:u[1],N:u[2],P:u[3],R:u[4]||"0",M:r,m:null,S:null,j:null,C:null,O:null,$:null}),"t"===c?(f.M=ke(r,3),f.M&&3===f.M.nodeType&&(f.$=f.M.textContent,e.push(f),r.remove(),o===f.k&&(t.S||(t.S=[]),t.S[f.R]=f),s&&"0"===f.P&&(s[f.R]=f.M))):"c"===c?(f.M=ke(r,8),f.M&&8===f.M.nodeType&&(e.push(f),r.remove())):f.k===o&&("s"===c?Ee(r["s-sn"]=u[5]||"",u[2],f,r,t,e,n,s,l):"r"===c&&s&&r.remove()));else if(t&&"style"===t.O){const e=we(null,r.textContent);e.M=r,e.R="0",t.S=[e]}return t},je=(t,e)=>{if(1===t.nodeType){const n=t[B]||t.getAttribute(B);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)je(t.shadowRoot.childNodes[s],e);const i=t.__childNodes||t.childNodes;for(s=0;s<i.length;s++)je(i[s],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Oe=t=>({u:0,k:null,N:null,P:null,R:"0",M:null,m:null,S:null,j:null,C:null,O:null,$:null,...t});function Ee(t,e,n,s,i,r,o,l,c){s["s-sr"]=!0,n.C=t||null,n.O="slot";const u=(null==i?void 0:i.M)?i.M["s-id"]||i.M.getAttribute("s-id"):"";if(l&&q.document){const r=n.M=q.document.createElement(n.O);n.C&&n.M.setAttribute("name",t),i.M.shadowRoot&&u&&u!==n.k?pe(i.M,"insertBefore")(r,pe(i.M,"children")[0]):pe(pe(s,"parentNode"),"insertBefore")(r,s),Me(c,e,t,s,n.k),s.remove(),"0"===n.P&&(l[n.R]=n.M)}else{const r=n.M,o=u&&u!==n.k&&i.M.shadowRoot;Me(c,e,t,s,o?u:n.k),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(i.childNodes)).forEach((t=>{s===he(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),o&&i.M.insertBefore(r,i.M.children[0])}r.push(n),o.push(n),i.S||(i.S=[]),i.S[n.R]=n}var Me=(t,e,n,s,i)=>{var r,o;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:s,node:l,hostId:i})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(o=l.nodeValue)?void 0:o.startsWith("s.")))},ke=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},xe=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};xe("::slotted"),xe(":host"),xe(":host-context");var Ne,Pe=(t,e)=>"string"==typeof t&&t.startsWith(z)?t=function(t){return"string"==typeof t&&t.startsWith(z)?ne.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||lt(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,Re=t=>{var e;return null==(e=T(t))?void 0:e.$hostElement$},Ce=(t,e)=>{const n=Re(t);return{emit:t=>We(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},We=(t,e,n)=>{const s=J.ce(e,n);return t.dispatchEvent(s),s},Le=(t,e,n,s,i,r,o)=>{if(n===s)return;let l=D(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,i=ze(n);let r=ze(s);if((t["s-si"]||t["s-sc"])&&o){const n=t["s-sc"]||t["s-si"];r.push(n),i.forEach((t=>{t.startsWith(n)&&r.push(t)})),r=[...new Set(r)].filter((t=>t)),e.add(...r)}else e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("key"===e);else if(l||"o"!==e[0]||"n"!==e[1]){const o=lt(s);if(l||o&&null!==s)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const i=null==s?"":s;"list"===e?l=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!l||4&r||i)&&!o&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):D(q,c)?c.slice(2):c[2]+e.slice(3),n||s){const i=e.endsWith(Ie);e=e.replace(Te,""),n&&J.rel(t,e,n,i),s&&J.ael(t,e,s,i)}},Ae=/\s/,ze=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Ae):[]),Ie="Capture",Te=RegExp(Ie+"$"),_e=(t,e,n,s)=>{const i=11===e.M.nodeType&&e.M.host?e.M.host:e.M,r=t&&t.m||{},o=e.m||{};for(const t of De(Object.keys(r)))t in o||Le(i,t,r[t],void 0,n,e.u,s);for(const t of De(Object.keys(o)))Le(i,t,r[t],o[t],n,e.u,s)};function De(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Ue=!1,Ge=(t,e,n)=>{const s=e.S[n];let i,r,o=0;if(null!==s.$)i=s.M=q.document.createTextNode(s.$);else{if(!q.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=s.M=q.document.createElement(s.O),_e(null,s,Ue),s.S){const e="template"===s.O?i.content:i;for(o=0;o<s.S.length;++o)r=Ge(t,s,o),r&&e.appendChild(r)}}return i["s-hn"]=Ne,i},Ve=(t,e,n,s,i,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===Ne&&(l=l.shadowRoot),"template"===n.O&&(l=l.content);i<=r;++i)s[i]&&(o=Ge(null,n,i),o&&(s[i].M=o,He(l,o,e)))},Be=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.M;t&&t.remove()}}},Fe=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),Ze=(t,e,n=!1)=>{const s=e.M=t.M,i=t.S,r=e.S,o=e.$;null===o?(_e(t,e,Ue,n),null!==i&&null!==r?((t,e,n,s,i=!1)=>{let r,o,l=0,c=0,u=0,f=0,a=e.length-1,h=e[0],p=e[a],d=s.length-1,v=s[0],$=s[d];const m="template"===n.O?t.content:t;for(;l<=a&&c<=d;)if(null==h)h=e[++l];else if(null==p)p=e[--a];else if(null==v)v=s[++c];else if(null==$)$=s[--d];else if(Fe(h,v,i))Ze(h,v,i),h=e[++l],v=s[++c];else if(Fe(p,$,i))Ze(p,$,i),p=e[--a],$=s[--d];else if(Fe(h,$,i))Ze(h,$,i),He(m,h.M,p.M.nextSibling),h=e[++l],$=s[--d];else if(Fe(p,v,i))Ze(p,v,i),He(m,p.M,h.M),p=e[--a],v=s[++c];else{for(u=-1,f=l;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===v.j){u=f;break}u>=0?(o=e[u],o.O!==v.O?r=Ge(e&&e[c],n,u):(Ze(o,v,i),e[u]=void 0,r=o.M),v=s[++c]):(r=Ge(e&&e[c],n,c),v=s[++c]),r&&He(h.M.parentNode,r,h.M)}l>a?Ve(t,null==s[d+1]?null:s[d+1].M,n,s,c,d):c>d&&Be(e,l,a)})(s,i,e,r,n):null!==r?(null!==t.$&&(s.textContent=""),Ve(s,null,e,r,0,r.length-1)):n||null===i?n&&null!==i&&null===r&&(e.S=i):Be(i,0,i.length-1)):t.$!==o&&(s.data=o)},He=(t,e,n)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,n);const{slotNode:s}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=t["s-sn"]=he(t)||"";return{slotNode:fe(pe(e,"childNodes"),e.tagName,s)[0],slotName:s}}(e);return s&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(s),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},qe=(t,e)=>{if(e&&!t.W&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.W=()=>{e["s-p"].splice(n-1,1),s()})))}},Je=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);qe(t,t.L);const n=()=>Ye(t,e);if(!e)return ot(n);queueMicrotask((()=>{n()}))},Ye=(t,e)=>{const n=t.$hostElement$,s=t.l;if(!s)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return e?(t.A.length&&t.A.forEach((t=>t(n))),i=sn(s,"componentWillLoad",void 0,n)):i=sn(s,"componentWillUpdate",void 0,n),i=Ke(i,(()=>sn(s,"componentWillRender",void 0,n))),Ke(i,(()=>Xe(t,s,e)))},Ke=(t,e)=>Qe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Qe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Xe=async(t,e,n)=>{var s;const i=t.$hostElement$,r=i["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,s=e.u,i=$e(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);tn(t,e,i,n),r&&(r.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(s=i["s-p"])?s:[],n=()=>en(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},tn=(t,e,n,s)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const s=t.$hostElement$,i=t.I||we(null,null),r=(t=>t&&t.O===ye)(e)?e:ge(null,null,e);if(Ne=s.tagName,n&&r.m)for(const t of Object.keys(r.m))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=s[t]);r.O=null,r.u|=4,t.I=r,r.M=i.M=s.shadowRoot||s,Ze(i,r,n)})(t,e,s)}catch(e){U(e,t.$hostElement$)}return null},en=t=>{const e=t.$hostElement$,n=t.l,s=t.L;sn(n,"componentDidRender",void 0,e),64&t.u?sn(n,"componentDidUpdate",void 0,e):(t.u|=64,rn(e),sn(n,"componentDidLoad",void 0,e),t.T(e),s||nn()),t.W&&(t.W(),t.W=void 0),512&t.u&&rt((()=>Je(t,!1))),t.u&=-517},nn=()=>{var t;rt((()=>We(q,"appload",{detail:{namespace:"authhero-widget"}}))),(null==(t=J._)?void 0:t.size)&&J._.clear()},sn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){U(t,s)}},rn=t=>t.classList.add("hydrated"),on=(t,e,n,s)=>{const i=T(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,o=i.o.get(e),l=i.u,c=i.l;if(n=Pe(n,s.t[e][0]),!(8&l&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n))){if(i.o.set(e,n),s.D){const t=s.D[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(c?c[s](n,o,e):i.A.push((()=>{i.l[s](n,o,e)})))}catch(t){U(t,r)}}))}if(2==(18&l)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,o,e))return;Je(i,!1)}}},ln=(t,e,n)=>{var s,i;const r=t.prototype;{t.watchers&&!e.D&&(e.D=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const o=Object.entries(null!=(s=e.t)?s:{});if(o.map((([t,[s]])=>{if(31&s||2&n&&32&s){const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.t[t][0]|=2048),o&&(e.t[t][0]|=4096),(1&n||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>T(this).o.get(e))(0,t);const n=T(this),s=n?n.l:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=T(this);if(r){if(o)return void 0===(32&s?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(i=r.o.get(t)),o.call(this,Pe(i,s)),void on(this,t,i=32&s?this[t]:r.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return on(this,t,i,e),void(1&n&&!r.l&&r.A.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.o.get(t)&&(r.l[t]=i)})));const o=()=>{const n=r.l[t];!r.o.get(t)&&n&&r.o.set(t,n),r.l[t]=Pe(i,s),on(this,t,r.l[t],e)};r.l?o():r.A.push((()=>{o()}))}}}})}})),1&n){const n=new Map;r.attributeChangedCallback=function(t,s,i){J.jmp((()=>{var l;const c=n.get(t),u=T(this);if(this.hasOwnProperty(c)&&(i=this[c],delete this[c]),r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const n=null==u?void 0:u.u;if(u&&n&&!(8&n)&&i!==s){const r=u.l,o=null==(l=e.D)?void 0:l[t];null==o||o.forEach((e=>{const[[o,l]]=Object.entries(e);null!=r[o]&&(128&n||1&l)&&r[o].call(r,i,s,t)}))}return}const f=o.find((([t])=>t===c));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const a=Object.getOwnPropertyDescriptor(r,c);i==this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.D)?i:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},cn=(t,e)=>{sn(t,"connectedCallback",void 0,e)},un=t=>{if(!(1&J.u)){const e=T(t);if(!e)return;const n=e.i,s=()=>{};if(1&e.u)(null==e?void 0:e.l)?cn(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>cn(e.l,t)));else{let s;if(e.u|=1,s=t.getAttribute(B),s){if(1&n.u){const e=$e(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var i,r,o,l;const c=t.shadowRoot,u=[],f=[],a=c?[]:null,h=we(e,null);h.M=t,!q.document||J._&&J._.size||je(q.document.body,J._=new Map),t[B]=n,t.removeAttribute(B),s.I=Se(h,u,[],a,t,t,n,f);let p=0;const d=u.length;let v;for(;p<d;p++){v=u[p];const n=v.k+"."+v.N,s=J._.get(n),r=v.M;if(c){if((null==(i=v.O)?void 0:(""+i).includes("-"))&&"slot-fb"!==v.O&&!v.M.shadowRoot){const e=T(v.M);if(e){const n=me(e.i),s=q.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else r["s-hn"]=e.toUpperCase(),"slot"===v.O&&(r["s-cr"]=t["s-cr"]);"slot"===v.O&&(v.C=v.M["s-sn"]||v.M.name||null,v.S?(v.u|=2,v.M.childNodes.length||v.S.forEach((t=>{v.M.appendChild(t.M)}))):v.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(r,s.nextSibling),s.parentNode.removeChild(s),c||(r["s-oo"]=parseInt(v.N))),s&&!s["s-id"]&&J._.delete(n)}const $=[],m=f.length;let b,g,w,y,S=0,j=0;for(;S<m;S++)if(b=f[S],b&&b.length)for(w=b.length,g=0;g<w;g++){if(y=b[g],$[y.hostId]||($[y.hostId]=J._.get(y.hostId)),!$[y.hostId])continue;const t=$[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(o=null==(r=b[g-1])?void 0:r.node)?void 0:o.nextSibling),t.shadowRoot&&c||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ae(y.node,y.slot,0,y.node["s-oo"]||j),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),j=(y.node["s-oo"]||j)+1}if(c){let e=0;const n=a.length;if(n){for(;e<n;e++){const t=a[e];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t})(t,n.v,s,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){qe(e,e.L=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.u)){if(e.u|=32,n.B){const i=((t,e)=>{const n=t.v.replace(/-/g,"_"),s=t.B;if(!s)return;const i=G.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(G.set(s,t),t[n])),(t=>{U(t,e.$hostElement$)}))
1
+ var t,e,n,s,i,r,o,l,c,u,f,a,h,p,d,v,$,m=Object.create,b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,y=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,O=t=>{throw TypeError(t)},S=(t,e)=>function(){return e||(0,t[w(t)[0]])((e={exports:{}}).exports,e),e.exports},E=(t,e,n)=>e.has(t)||O("Cannot "+n),M=(t,e,n)=>(E(t,e,"read from private field"),n?n.call(t):e.get(t)),k=(t,e,n)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),x=(t,e,n)=>(E(t,e,"write to private field"),e.set(t,n),n),N=(t,e,n)=>(E(t,e,"access private method"),n),P=S({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var r=i(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var s,i,r,o,l,c=n.indexOf(t),u=n.indexOf(e,c+1),f=c;if(c>=0&&u>0){if(t===e)return[c,u];for(s=[],r=n.length;f>=0&&!l;)f==c?(s.push(f),c=n.indexOf(t,f+1)):1==s.length?l=[s.pop(),u]:((i=s.pop())<r&&(r=i,o=u),u=n.indexOf(e,f+1)),f=c<u&&c>=0?c:u;s.length&&(l=[r,o])}return l}e.exports=n,n.range=i}}),R=S({"node_modules/brace-expansion/index.js"(t,e){var n=P();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(u)):[]};var s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function u(t){return t.split(s).join("\\").split(i).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function f(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var i=s.body,r=s.post,o=s.pre.split(",");o[o.length-1]+="{"+i+"}";var l=f(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function a(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var s=[],i=n("{","}",t);if(!i)return[t];var o=i.pre,l=i.post.length?v(i.post,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<l.length;u++)s.push(W=o+"{"+i.body+"}"+l[u]);else{var $,m,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),w=b||g,y=i.body.indexOf(",")>=0;if(!w&&!y)return i.post.match(/,(?!,).*\}/)?v(t=i.pre+"{"+i.body+r+i.post):[t];if(w)$=i.body.split(/\.\./);else if(1===($=f(i.body)).length&&1===($=v($[0],!1).map(a)).length)return l.map((function(t){return i.pre+$[0]+t}));if(w){var j=c($[0]),O=c($[1]),S=Math.max($[0].length,$[1].length),E=3==$.length?Math.abs(c($[2])):1,M=p;O<j&&(E*=-1,M=d);var k=$.some(h);m=[];for(var x=j;M(x,O);x+=E){var N;if(g)"\\"===(N=String.fromCharCode(x))&&(N="");else if(N=x+"",k){var P=S-N.length;if(P>0){var R=Array(P+1).join("0");N=x<0?"-"+R+N.slice(1):R+N}}m.push(N)}}else{m=[];for(var C=0;C<$.length;C++)m.push.apply(m,v($[C],!1))}for(C=0;C<m.length;C++)for(u=0;u<l.length;u++){var W=o+m[C]+l[u];(!e||w||W)&&s.push(W)}}return s}}}),C=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(C||{}),W=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(W||{}),L="type",A="value",z="serialized:",I=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],i=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(t,n,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):s}}))},T=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},_=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.i.u&&I(t,e))},D=(t,e)=>e in t,U=(t,e)=>(0,console.error)(t,e),G=new Map,V=new Map,B="s-id",F="sty-id",Z="c-id",H="slot-fb{display:contents}slot-fb[hidden]{display:none}",q="undefined"!=typeof window?window:{},J={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},Y=t=>Promise.resolve(t),K=(()=>{try{return!!q.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Q=!!K&&(()=>!!q.document&&Object.getOwnPropertyDescriptor(q.document.adoptedStyleSheets,"length").writable)(),X=!1,tt=[],et=[],nt=(t,e)=>n=>{t.push(n),X||(X=!0,e&&4&J.u?rt(it):J.raf(it))},st=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){U(t)}t.length=0},it=()=>{st(tt),st(et),(X=tt.length>0)&&J.raf(it)},rt=t=>Y().then(t),ot=nt(et,!0),lt=t=>"object"==(t=typeof t)||"function"===t,ct=((t,e,n)=>(n=null!=t?m(y(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of w(e))j.call(t,n)||undefined===n||b(t,n,{get:()=>e[n],enumerable:!(s=g(e,n))||s.enumerable});return t})(b(n,"default",{value:t,enumerable:!0}),t)))(R()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ft={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},at=t=>t.replace(/[[\]\\-]/g,"\\$&"),ht=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pt=t=>t.join(""),dt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],i=[];let r=n+1,o=!1,l=!1,c=!1,u=!1,f=n,a="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!c){f=r+1;break}if(o=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[o,c,u]]of Object.entries(ft))if(t.startsWith(e,r)){if(a)return["$.",!1,t.length-n,!0];r+=e.length,u?i.push(o):s.push(o),l=l||c;continue t}c=!1,a?(e>a?s.push(at(a)+"-"+at(e)):e===a&&s.push(at(e)),a="",r++):t.startsWith("-]",r+1)?(s.push(at(e+"-")),r+=2):t.startsWith("-",r+1)?(a=e,r+=2):(s.push(at(e)),r++)}else c=!0,r++}else u=!0,r++}if(f<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-n,!0];if(0===i.length&&1===s.length&&/^\\?.$/.test(s[0])&&!u){const t=2===s[0].length?s[0].slice(-1):s[0];return[ht(t),!1,f-n,!1]}const h="["+(u?"^":"")+pt(s)+"]",p="["+(u?"":"^")+pt(i)+"]";return[s.length&&i.length?"("+h+"|"+p+")":s.length?h:p,l,f-n,!0]},vt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),$t=new Set(["!","?","+","*","@"]),mt=t=>$t.has(t),bt="(?!\\.)",gt=new Set(["[","."]),wt=new Set(["..","."]),yt=new Set("().*{}+?[]^$\\!"),jt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",St=Ot+"*?",Et=Ot+"+?",Mt=class m{constructor(h,p,d={}){k(this,a),((t,e,n)=>{((t,e,n)=>{e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),k(this,t),k(this,e),k(this,n,!1),k(this,s,[]),k(this,i),k(this,r),k(this,o),k(this,l,!1),k(this,c),k(this,u),k(this,f,!1),this.type=h,h&&x(this,e,!0),x(this,i,p),x(this,t,M(this,i)?M(M(this,i),t):this),x(this,c,M(this,t)===this?d:M(M(this,t),c)),x(this,o,M(this,t)===this?[]:M(M(this,t),o)),"!"!==h||M(M(this,t),l)||M(this,o).push(this),x(this,r,M(this,i)?M(M(this,i),s).length:0)}get hasMagic(){if(void 0!==M(this,e))return M(this,e);for(const t of M(this,s))if("string"!=typeof t&&(t.type||t.hasMagic))return x(this,e,!0);return M(this,e)}toString(){return void 0!==M(this,u)?M(this,u):x(this,u,this.type?this.type+"("+M(this,s).map((t=>t+"")).join("|")+")":M(this,s).map((t=>t+"")).join(""))}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof m&&M(e,i)===this))throw Error("invalid part: "+e);M(this,s).push(e)}}toJSON(){var e;const n=null===this.type?M(this,s).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...M(this,s).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===M(this,t)||M(M(this,t),l)&&"!"===(null==(e=M(this,i))?void 0:e.type))&&n.push({}),n}isStart(){var e;if(M(this,t)===this)return!0;if(!(null==(e=M(this,i))?void 0:e.isStart()))return!1;if(0===M(this,r))return!0;const n=M(this,i);for(let t=0;t<M(this,r);t++){const e=M(n,s)[t];if(!(e instanceof m&&"!"===e.type))return!1}return!0}isEnd(){var e,n,o;if(M(this,t)===this)return!0;if("!"===(null==(e=M(this,i))?void 0:e.type))return!0;if(!(null==(n=M(this,i))?void 0:n.isEnd()))return!1;if(!this.type)return null==(o=M(this,i))?void 0:o.isEnd();const l=M(this,i)?M(M(this,i),s).length:0;return M(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(t){const e=new m(this.type,t);for(const t of M(this,s))e.copyIn(t);return e}static fromGlob(t,e={}){var n;const s=new m(null,void 0,e);return N(n=m,p,d).call(n,t,s,0,e),s}toMMPattern(){if(this!==M(this,t))return M(this,t).toMMPattern();const n=""+this,[s,i,r,o]=this.toRegExpSource();if(!(r||M(this,e)||M(this,c).nocase&&!M(this,c).nocaseMagicOnly&&n.toUpperCase()!==n.toLowerCase()))return i;const l=(M(this,c).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:n})}get options(){return M(this,c)}toRegExpSource(r){var o;const u=null!=r?r:!!M(this,c).dot;if(M(this,t)===this&&N(this,a,h).call(this),!this.type){const c=this.isStart()&&this.isEnd(),f=M(this,s).map((t=>{var s;const[i,o,l,u]="string"==typeof t?N(s=m,p,$).call(s,t,M(this,e),c):t.toRegExpSource(r);return x(this,e,M(this,e)||l),x(this,n,M(this,n)||u),i})).join("");let a="";if(this.isStart()&&"string"==typeof M(this,s)[0]&&(1!==M(this,s).length||!wt.has(M(this,s)[0]))){const t=gt,e=u&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),n=!u&&!r&&t.has(f.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?bt:""}let h="";return this.isEnd()&&M(M(this,t),l)&&"!"===(null==(o=M(this,i))?void 0:o.type)&&(h="(?:$|\\/)"),[a+f+h,vt(f),x(this,e,!!M(this,e)),M(this,n)]}const d="*"===this.type||"+"===this.type,b="!"===this.type?"(?:(?!(?:":"(?:";let g=N(this,a,v).call(this,u);if(this.isStart()&&this.isEnd()&&!g&&"!"!==this.type){const t=""+this;return x(this,s,[t]),this.type=null,x(this,e,void 0),[t,vt(""+this),!1,!1]}let w=!d||r||u?"":N(this,a,v).call(this,!0);w===g&&(w=""),w&&(g=`(?:${g})(?:${w})*?`);let y="";return y="!"===this.type&&M(this,f)?(this.isStart()&&!u?bt:"")+Et:b+g+("!"===this.type?"))"+(!this.isStart()||u||r?"":bt)+St+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,vt(g),x(this,e,!!M(this,e)),M(this,n)]}};t=new WeakMap,e=new WeakMap,n=new WeakMap,s=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,a=new WeakSet,h=function(){if(this!==M(this,t))throw Error("should only call on root");if(M(this,l))return this;let e;for(x(this,l,!0);e=M(this,o).pop();){if("!"!==e.type)continue;let t=e,n=M(t,i);for(;n;){for(let i=M(t,r)+1;!n.type&&i<M(n,s).length;i++)for(const t of M(e,s)){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(M(n,s)[i])}t=n,n=M(t,i)}}return this},p=new WeakSet,d=function(t,n,i,r){var o,l;let c=!1,u=!1,a=-1,h=!1;if(null===n.type){let e=i,s="";for(;e<t.length;){const i=t.charAt(e++);if(c||"\\"===i)c=!c,s+=i;else if(u)e===a+1?"^"!==i&&"!"!==i||(h=!0):"]"!==i||e===a+2&&h||(u=!1),s+=i;else if("["!==i)if(r.noext||!mt(i)||"("!==t.charAt(e))s+=i;else{n.push(s),s="";const l=new Mt(i,n);e=N(o=Mt,p,d).call(o,t,l,e,r),n.push(l)}else u=!0,a=e,h=!1,s+=i}return n.push(s),e}let v=i+1,$=new Mt(null,n);const m=[];let b="";for(;v<t.length;){const e=t.charAt(v++);if(c||"\\"===e)c=!c,b+=e;else if(u)v===a+1?"^"!==e&&"!"!==e||(h=!0):"]"!==e||v===a+2&&h||(u=!1),b+=e;else if("["!==e)if(mt(e)&&"("===t.charAt(v)){$.push(b),b="";const n=new Mt(e,$);$.push(n),v=N(l=Mt,p,d).call(l,t,n,v,r)}else if("|"!==e){if(")"===e)return""===b&&0===M(n,s).length&&x(n,f,!0),$.push(b),b="",n.push(...m,$),v;b+=e}else $.push(b),b="",m.push($),$=new Mt(null,n);else u=!0,a=v,h=!1,b+=e}return n.type=null,x(n,e,void 0),x(n,s,[t.substring(i-1)]),v},v=function(t){return M(this,s).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[s,i,r,o]=e.toRegExpSource(t);return x(this,n,M(this,n)||o),s})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},$=function(t,e,n=!1){let s=!1,i="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(s)s=!1,i+=(yt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,c]=dt(t,o);if(l){i+=n,r=r||s,o+=l-1,e=e||c;continue}}"*"!==l?"?"!==l?i+=jt(l):(i+=Ot,e=!0):(i+=n&&"*"===t?Et:St,e=!0)}else o===t.length-1?i+="\\\\":s=!0}return[i,vt(t),!!e,r]},k(Mt,p);var kt=Mt,xt=(t,e,n={})=>(ut(e),!(!n.nocomment&&"#"===e.charAt(0))&&new te(e,n).match(t)),Nt=/^\*+([^+@!?\*\[\(]*)$/,Pt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Rt=t=>e=>e.endsWith(t),Ct=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Wt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Lt=/^\*+\.\*+$/,At=t=>!t.startsWith(".")&&t.includes("."),zt=t=>"."!==t&&".."!==t&&t.includes("."),It=/^\.\*+$/,Tt=t=>"."!==t&&".."!==t&&t.startsWith("."),_t=/^\*+$/,Dt=t=>0!==t.length&&!t.startsWith("."),Ut=t=>0!==t.length&&"."!==t&&".."!==t,Gt=/^\?+([^+@!?\*\[\(]*)?$/,Vt=([t,e=""])=>{const n=Ht([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Bt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Ft=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},Zt=([t,e=""])=>{const n=Ht([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},qt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Jt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";xt.sep="win32"===Jt?"\\":"/";var Yt=Symbol("globstar **");xt.GLOBSTAR=Yt,xt.filter=(t,e={})=>n=>xt(n,t,e);var Kt=(t,e={})=>Object.assign({},t,e);xt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return xt;const e=xt;return Object.assign(((n,s,i={})=>e(n,s,Kt(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Kt(t,n))}static defaults(n){return e.defaults(Kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Kt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Kt(t,s))}},unescape:(n,s={})=>e.unescape(n,Kt(t,s)),escape:(n,s={})=>e.escape(n,Kt(t,s)),filter:(n,s={})=>e.filter(n,Kt(t,s)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Kt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Kt(t,s)),match:(n,s,i={})=>e.match(n,s,Kt(t,i)),sep:e.sep,GLOBSTAR:Yt})};var Qt=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ct.default)(t));xt.braceExpand=Qt,xt.makeRe=(t,e={})=>new te(t,e).makeRe(),xt.match=(t,e,n={})=>{const s=new te(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Xt=/[?*]|[+@!]\(.*?\)|\[|\]/,te=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Jt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Xt.test(t[2])||Xt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let i=s;for(;"**"===n[i+1];)i++;i>s&&n.splice(s+1,i-s);const r=n[s+2],o=n[s+3];if(".."!==n[s+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const t=n[i-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(i-1,2,...1===i&&"**"===n[i+1]?["."]:[]),0===n.length&&n.push(""),i-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,i=0,r=[],o="";for(;s<t.length&&i<e.length;)if(t[s]===e[i])r.push("b"===o?e[i]:t[s]),s++,i++;else if(n&&"**"===t[s]&&e[i]===t[s+1])r.push(t[s]),s++;else if(n&&"**"===e[i]&&t[s]===e[i+1])r.push(e[i]),i++;else if("*"!==t[s]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[i]),s++,i++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,i++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:n?0:void 0,o=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,s]=[t[r],e[o]];n.toLowerCase()===s.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,c=e.length;r<l&&o<c;r++,o++){this.debug("matchOne loop");var u=e[o],f=t[r];if(this.debug(e,u,f),!1===u)return!1;if(u===Yt){this.debug("GLOBSTAR",[e,u,f]);var a=r,h=o+1;if(h===c){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;a<l;){var p=t[a];if(this.debug("\nglobstar while",t,a,e,h,p),this.matchOne(t.slice(a),e.slice(h),n))return this.debug("globstar found match!",a,l,p),!0;if("."===p||".."===p||!s.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,a,e,h);break}this.debug("globstar swallow a segment, and continue"),a++}return!(!n||(this.debug("\n>>> no match, partial?",t,a,e,h),a!==l))}let i;if("string"==typeof u?(i=f===u,this.debug("string match",u,f,i)):(i=u.test(f),this.debug("pattern match",u,f,i)),!i)return!1}if(r===l&&o===c)return!0;if(r===l)return n;if(o===c)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Qt(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Yt;if(""===t)return"";let n,s=null;(n=t.match(_t))?s=e.dot?Ut:Dt:(n=t.match(Nt))?s=(e.nocase?e.dot?Wt:Ct:e.dot?Rt:Pt)(n[1]):(n=t.match(Gt))?s=(e.nocase?e.dot?Bt:Vt:e.dot?Ft:Zt)(n):(n=t.match(Lt))?s=e.dot?zt:At:(n=t.match(It))&&(s=Tt);const i=kt.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Yt?Yt:t._src}));return e.forEach(((t,s)=>{const i=e[s+1],r=e[s-1];t===Yt&&r!==Yt&&(void 0===r?void 0!==i&&i!==Yt?e[s+1]="(?:\\/|"+n+"\\/)?"+i:e[s]=n:void 0===i?e[s-1]=r+"(?:\\/|"+n+")?":i!==Yt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+i,e[s+1]=Yt))})),e.filter((t=>t!==Yt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];i="^"+r+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=RegExp(i,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<i.length;t++){const o=i[t];let l=s;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return xt.defaults(t).Minimatch}};function ee(t){var e,n,s;return null!=(s=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}xt.AST=kt,xt.Minimatch=te,xt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),xt.unescape=vt;var ne=class t{static fromLocalValue(e){const n=e[L],s=A in e?e[A]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,i]of s){const s="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(i);e.set(s,r)}return e;case"object":const i={};for(const[e,n]of s)i[e]=t.fromLocalValue(n);return i;case"regexp":const{pattern:r,flags:o}=s;return RegExp(r,o);case"set":const l=new Set;for(const e of s)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(L))return!1;const e=t[L];return!!Object.values({...C,...W}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(A))}};((t,e)=>{for(var n in e)b(t,n,{get:e[n],enumerable:!0})})({},{err:()=>ie,map:()=>re,ok:()=>se,unwrap:()=>le,unwrapErr:()=>ce});var se=t=>({isOk:!0,isErr:!1,value:t}),ie=t=>({isOk:!1,isErr:!0,value:t});function re(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>se(t))):se(n)}if(t.isErr)return ie(t.value);throw"should never get here"}var oe,le=t=>{if(t.isOk)return t.value;throw t.value},ce=t=>{if(t.isErr)return t.value;throw t.value};function ue(){const t=this.attachShadow({mode:"open"});void 0===oe&&(oe=null),oe&&(Q?t.adoptedStyleSheets.push(oe):t.adoptedStyleSheets=[...t.adoptedStyleSheets,oe])}function fe(t,e,n){let s,i=0,r=[];for(;i<t.length;i++){if(s=t[i],s["s-sr"]&&(!e||s["s-hn"]===e)&&(void 0===n||he(s)===n)&&(r.push(s),void 0!==n))return r;r=[...r,...fe(s.childNodes,e,n)]}return r}var ae=(t,e,n,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const r=e["s-cr"].parentNode,o=pe(r,"appendChild");if(void 0!==s){i["s-oo"]=s;const t=pe(r,"childNodes"),e=[i];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>o.call(r,t)))}else o.call(r,i);t["s-ol"]=i,t["s-sh"]=e["s-hn"]},he=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function pe(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var de=new WeakMap,ve=(t,e,n)=>{let s=V.get(t);K&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,V.set(t,s)},$e=(t,e)=>{var n,s,i;const r=me(e),o=V.get(r);if(!q.document)return r;if(t=11===t.nodeType?t:q.document,o)if("string"==typeof o){let i,l=de.get(t=t.head||t);l||de.set(t,l=new Set);const c=t.querySelector(`[${F}="${r}"]`);if(c)c.innerHTML=o;else if(!l.has(r)){i=q.document.createElement("style"),i.innerHTML=o;const c=null!=(n=J.p)?n:ee(q.document);if(null!=c&&i.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(K){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),Q?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(i)}else t.append(i);1&e.u&&t.insertBefore(i,null),4&e.u&&(i.innerHTML+=H),l&&l.add(r)}}else{let e=de.get(t);if(e||de.set(t,e=new Set),!e.has(r)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(o.constructor===n.CSSStyleSheet)s=o;else{s=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)s.insertRule(o.cssRules[t].cssText,t)}Q?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r},me=t=>"sc-"+t.v,be=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ge=(t,e,...n)=>{let s=null,i=null,r=!1,o=!1;const l=[],c=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!lt(s))&&(s+=""),r&&o?l[l.length-1].$+=s:l.push(r?we(null,s):s),o=r)};if(c(n),e){e.key&&(i=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=we(t,null);return u.m=e,l.length>0&&(u.j=l),u.O=i,u},we=(t,e)=>({u:0,S:t,$:e,M:null,j:null,m:null,O:null}),ye={},je=(t,e,n,s,i,r,o,l=[])=>{let c,u,f,a;if(1===r.nodeType){if(c=r.getAttribute(Z),c&&(u=c.split("."),u[0]===o||"0"===u[0])){f=Se({u:0,k:u[0],N:u[1],P:u[2],R:u[3],S:r.tagName.toLowerCase(),M:r,m:{class:r.className||""}}),e.push(f),r.removeAttribute(Z),t.j||(t.j=[]);const i=f.M.getAttribute("s-sn");"string"==typeof i&&("slot-fb"===f.S&&Ee(i,u[2],f,r,t,e,n,s,l),f.M["s-sn"]=i,f.M.removeAttribute("s-sn")),void 0!==f.R&&(t.j[f.R]=f),t=f,s&&"0"===f.P&&(s[f.R]=f.M)}if(r.shadowRoot)for(a=r.shadowRoot.childNodes.length-1;a>=0;a--)je(t,e,n,s,i,r.shadowRoot.childNodes[a],o,l);const h=r.__childNodes||r.childNodes;for(a=h.length-1;a>=0;a--)je(t,e,n,s,i,h[a],o,l)}else if(8===r.nodeType)u=r.nodeValue.split("."),(u[1]===o||"0"===u[1])&&(c=u[0],f=Se({k:u[1],N:u[2],P:u[3],R:u[4]||"0",M:r,m:null,j:null,O:null,C:null,S:null,$:null}),"t"===c?(f.M=ke(r,3),f.M&&3===f.M.nodeType&&(f.$=f.M.textContent,e.push(f),r.remove(),o===f.k&&(t.j||(t.j=[]),t.j[f.R]=f),s&&"0"===f.P&&(s[f.R]=f.M))):"c"===c?(f.M=ke(r,8),f.M&&8===f.M.nodeType&&(e.push(f),r.remove())):f.k===o&&("s"===c?Ee(r["s-sn"]=u[5]||"",u[2],f,r,t,e,n,s,l):"r"===c&&s&&r.remove()));else if(t&&"style"===t.S){const e=we(null,r.textContent);e.M=r,e.R="0",t.j=[e]}return t},Oe=(t,e)=>{if(1===t.nodeType){const n=t[B]||t.getAttribute(B);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)Oe(t.shadowRoot.childNodes[s],e);const i=t.__childNodes||t.childNodes;for(s=0;s<i.length;s++)Oe(i[s],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Se=t=>({u:0,k:null,N:null,P:null,R:"0",M:null,m:null,j:null,O:null,C:null,S:null,$:null,...t});function Ee(t,e,n,s,i,r,o,l,c){s["s-sr"]=!0,n.C=t||null,n.S="slot";const u=(null==i?void 0:i.M)?i.M["s-id"]||i.M.getAttribute("s-id"):"";if(l&&q.document){const r=n.M=q.document.createElement(n.S);n.C&&n.M.setAttribute("name",t),i.M.shadowRoot&&u&&u!==n.k?pe(i.M,"insertBefore")(r,pe(i.M,"children")[0]):pe(pe(s,"parentNode"),"insertBefore")(r,s),Me(c,e,t,s,n.k),s.remove(),"0"===n.P&&(l[n.R]=n.M)}else{const r=n.M,o=u&&u!==n.k&&i.M.shadowRoot;Me(c,e,t,s,o?u:n.k),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(i.childNodes)).forEach((t=>{s===he(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),o&&i.M.insertBefore(r,i.M.children[0])}r.push(n),o.push(n),i.j||(i.j=[]),i.j[n.R]=n}var Me=(t,e,n,s,i)=>{var r,o;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:s,node:l,hostId:i})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(o=l.nodeValue)?void 0:o.startsWith("s.")))},ke=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},xe=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};xe("::slotted"),xe(":host"),xe(":host-context");var Ne,Pe=(t,e)=>"string"==typeof t&&t.startsWith(z)?t=function(t){return"string"==typeof t&&t.startsWith(z)?ne.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||lt(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,Re=t=>{var e;return null==(e=T(t))?void 0:e.$hostElement$},Ce=(t,e)=>{const n=Re(t);return{emit:t=>We(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},We=(t,e,n)=>{const s=J.ce(e,n);return t.dispatchEvent(s),s},Le=(t,e,n,s,i,r,o)=>{if(n===s)return;let l=D(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,i=ze(n);let r=ze(s);if((t["s-si"]||t["s-sc"])&&o){const n=t["s-sc"]||t["s-si"];r.push(n),i.forEach((t=>{t.startsWith(n)&&r.push(t)})),r=[...new Set(r)].filter((t=>t)),e.add(...r)}else e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("key"===e);else if(l||"o"!==e[0]||"n"!==e[1]){const o=lt(s);if((l||o&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const i=null==s?"":s;"list"===e?l=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!l||4&r||i)&&!o&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):D(q,c)?c.slice(2):c[2]+e.slice(3),n||s){const i=e.endsWith(Ie);e=e.replace(Te,""),n&&J.rel(t,e,n,i),s&&J.ael(t,e,s,i)}},Ae=/\s/,ze=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Ae):[]),Ie="Capture",Te=RegExp(Ie+"$"),_e=(t,e,n,s)=>{const i=11===e.M.nodeType&&e.M.host?e.M.host:e.M,r=t&&t.m||{},o=e.m||{};for(const t of De(Object.keys(r)))t in o||Le(i,t,r[t],void 0,n,e.u,s);for(const t of De(Object.keys(o)))Le(i,t,r[t],o[t],n,e.u,s)};function De(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Ue=!1,Ge=(t,e,n)=>{const s=e.j[n];let i,r,o=0;if(null!==s.$)i=s.M=q.document.createTextNode(s.$);else{if(Ue||(Ue="svg"===s.S),!q.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=s.M=q.document.createElementNS(Ue?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.S),Ue&&"foreignObject"===s.S&&(Ue=!1),_e(null,s,Ue),s.j){const e="template"===s.S?i.content:i;for(o=0;o<s.j.length;++o)r=Ge(t,s,o),r&&e.appendChild(r)}"svg"===s.S?Ue=!1:"foreignObject"===i.tagName&&(Ue=!0)}return i["s-hn"]=Ne,i},Ve=(t,e,n,s,i,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===Ne&&(l=l.shadowRoot),"template"===n.S&&(l=l.content);i<=r;++i)s[i]&&(o=Ge(null,n,i),o&&(s[i].M=o,He(l,o,e)))},Be=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.M;t&&t.remove()}}},Fe=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.O&&e.O&&(t.O=e.O),!0):t.O===e.O),Ze=(t,e,n=!1)=>{const s=e.M=t.M,i=t.j,r=e.j,o=e.S,l=e.$;null===l?(_e(t,e,Ue="svg"===o||"foreignObject"!==o&&Ue,n),null!==i&&null!==r?((t,e,n,s,i=!1)=>{let r,o,l=0,c=0,u=0,f=0,a=e.length-1,h=e[0],p=e[a],d=s.length-1,v=s[0],$=s[d];const m="template"===n.S?t.content:t;for(;l<=a&&c<=d;)if(null==h)h=e[++l];else if(null==p)p=e[--a];else if(null==v)v=s[++c];else if(null==$)$=s[--d];else if(Fe(h,v,i))Ze(h,v,i),h=e[++l],v=s[++c];else if(Fe(p,$,i))Ze(p,$,i),p=e[--a],$=s[--d];else if(Fe(h,$,i))Ze(h,$,i),He(m,h.M,p.M.nextSibling),h=e[++l],$=s[--d];else if(Fe(p,v,i))Ze(p,v,i),He(m,p.M,h.M),p=e[--a],v=s[++c];else{for(u=-1,f=l;f<=a;++f)if(e[f]&&null!==e[f].O&&e[f].O===v.O){u=f;break}u>=0?(o=e[u],o.S!==v.S?r=Ge(e&&e[c],n,u):(Ze(o,v,i),e[u]=void 0,r=o.M),v=s[++c]):(r=Ge(e&&e[c],n,c),v=s[++c]),r&&He(h.M.parentNode,r,h.M)}l>a?Ve(t,null==s[d+1]?null:s[d+1].M,n,s,c,d):c>d&&Be(e,l,a)})(s,i,e,r,n):null!==r?(null!==t.$&&(s.textContent=""),Ve(s,null,e,r,0,r.length-1)):n||null===i?n&&null!==i&&null===r&&(e.j=i):Be(i,0,i.length-1),Ue&&"svg"===o&&(Ue=!1)):t.$!==l&&(s.data=l)},He=(t,e,n)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,n);const{slotNode:s}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=t["s-sn"]=he(t)||"";return{slotNode:fe(pe(e,"childNodes"),e.tagName,s)[0],slotName:s}}(e);return s&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(s),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},qe=(t,e)=>{if(e&&!t.W&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.W=()=>{e["s-p"].splice(n-1,1),s()})))}},Je=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);qe(t,t.L);const n=()=>Ye(t,e);if(!e)return ot(n);queueMicrotask((()=>{n()}))},Ye=(t,e)=>{const n=t.$hostElement$,s=t.l;if(!s)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return e?(t.A.length&&t.A.forEach((t=>t(n))),i=sn(s,"componentWillLoad",void 0,n)):i=sn(s,"componentWillUpdate",void 0,n),i=Ke(i,(()=>sn(s,"componentWillRender",void 0,n))),Ke(i,(()=>Xe(t,s,e)))},Ke=(t,e)=>Qe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Qe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Xe=async(t,e,n)=>{var s;const i=t.$hostElement$,r=i["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,s=e.u,i=$e(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);tn(t,e,i,n),r&&(r.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(s=i["s-p"])?s:[],n=()=>en(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},tn=(t,e,n,s)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const s=t.$hostElement$,i=t.I||we(null,null),r=(t=>t&&t.S===ye)(e)?e:ge(null,null,e);if(Ne=s.tagName,n&&r.m)for(const t of Object.keys(r.m))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=s[t]);r.S=null,r.u|=4,t.I=r,r.M=i.M=s.shadowRoot||s,Ze(i,r,n)})(t,e,s)}catch(e){U(e,t.$hostElement$)}return null},en=t=>{const e=t.$hostElement$,n=t.l,s=t.L;sn(n,"componentDidRender",void 0,e),64&t.u?sn(n,"componentDidUpdate",void 0,e):(t.u|=64,rn(e),sn(n,"componentDidLoad",void 0,e),t.T(e),s||nn()),t.W&&(t.W(),t.W=void 0),512&t.u&&rt((()=>Je(t,!1))),t.u&=-517},nn=()=>{var t;rt((()=>We(q,"appload",{detail:{namespace:"authhero-widget"}}))),(null==(t=J._)?void 0:t.size)&&J._.clear()},sn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){U(t,s)}},rn=t=>t.classList.add("hydrated"),on=(t,e,n,s)=>{const i=T(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,o=i.o.get(e),l=i.u,c=i.l;if(n=Pe(n,s.t[e][0]),!(8&l&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n))){if(i.o.set(e,n),s.D){const t=s.D[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(c?c[s](n,o,e):i.A.push((()=>{i.l[s](n,o,e)})))}catch(t){U(t,r)}}))}if(2==(18&l)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,o,e))return;Je(i,!1)}}},ln=(t,e,n)=>{var s,i;const r=t.prototype;{t.watchers&&!e.D&&(e.D=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const o=Object.entries(null!=(s=e.t)?s:{});if(o.map((([t,[s]])=>{if(31&s||2&n&&32&s){const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.t[t][0]|=2048),o&&(e.t[t][0]|=4096),(1&n||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>T(this).o.get(e))(0,t);const n=T(this),s=n?n.l:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=T(this);if(r){if(o)return void 0===(32&s?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(i=r.o.get(t)),o.call(this,Pe(i,s)),void on(this,t,i=32&s?this[t]:r.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return on(this,t,i,e),void(1&n&&!r.l&&r.A.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.o.get(t)&&(r.l[t]=i)})));const o=()=>{const n=r.l[t];!r.o.get(t)&&n&&r.o.set(t,n),r.l[t]=Pe(i,s),on(this,t,r.l[t],e)};r.l?o():r.A.push((()=>{o()}))}}}})}})),1&n){const n=new Map;r.attributeChangedCallback=function(t,s,i){J.jmp((()=>{var l;const c=n.get(t),u=T(this);if(this.hasOwnProperty(c)&&(i=this[c],delete this[c]),r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const n=null==u?void 0:u.u;if(u&&n&&!(8&n)&&i!==s){const r=u.l,o=null==(l=e.D)?void 0:l[t];null==o||o.forEach((e=>{const[[o,l]]=Object.entries(e);null!=r[o]&&(128&n||1&l)&&r[o].call(r,i,s,t)}))}return}const f=o.find((([t])=>t===c));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const a=Object.getOwnPropertyDescriptor(r,c);i==this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.D)?i:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},cn=(t,e)=>{sn(t,"connectedCallback",void 0,e)},un=t=>{if(!(1&J.u)){const e=T(t);if(!e)return;const n=e.i,s=()=>{};if(1&e.u)(null==e?void 0:e.l)?cn(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>cn(e.l,t)));else{let s;if(e.u|=1,s=t.getAttribute(B),s){if(1&n.u){const e=$e(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var i,r,o,l;const c=t.shadowRoot,u=[],f=[],a=c?[]:null,h=we(e,null);h.M=t,!q.document||J._&&J._.size||Oe(q.document.body,J._=new Map),t[B]=n,t.removeAttribute(B),s.I=je(h,u,[],a,t,t,n,f);let p=0;const d=u.length;let v;for(;p<d;p++){v=u[p];const n=v.k+"."+v.N,s=J._.get(n),r=v.M;if(c){if((null==(i=v.S)?void 0:(""+i).includes("-"))&&"slot-fb"!==v.S&&!v.M.shadowRoot){const e=T(v.M);if(e){const n=me(e.i),s=q.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else r["s-hn"]=e.toUpperCase(),"slot"===v.S&&(r["s-cr"]=t["s-cr"]);"slot"===v.S&&(v.C=v.M["s-sn"]||v.M.name||null,v.j?(v.u|=2,v.M.childNodes.length||v.j.forEach((t=>{v.M.appendChild(t.M)}))):v.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(r,s.nextSibling),s.parentNode.removeChild(s),c||(r["s-oo"]=parseInt(v.N))),s&&!s["s-id"]&&J._.delete(n)}const $=[],m=f.length;let b,g,w,y,j=0,O=0;for(;j<m;j++)if(b=f[j],b&&b.length)for(w=b.length,g=0;g<w;g++){if(y=b[g],$[y.hostId]||($[y.hostId]=J._.get(y.hostId)),!$[y.hostId])continue;const t=$[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(o=null==(r=b[g-1])?void 0:r.node)?void 0:o.nextSibling),t.shadowRoot&&c||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ae(y.node,y.slot,0,y.node["s-oo"]||O),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),O=(y.node["s-oo"]||O)+1}if(c){let e=0;const n=a.length;if(n){for(;e<n;e++){const t=a[e];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t})(t,n.v,s,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){qe(e,e.L=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.u)){if(e.u|=32,n.B){const i=((t,e)=>{const n=t.v.replace(/-/g,"_"),s=t.B;if(!s)return;const i=G.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(G.set(s,t),t[n])),(t=>{U(t,e.$hostElement$)}))
2
2
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw Error(`Constructor for "${n.v}#${e.F}" was not found`);s.isProxied||(n.D=s.watchers,n.G=s.serializers,n.U=s.deserializers,ln(s,n,2),s.isProxied=!0);const r=()=>{};e.u|=8;try{new s(e)}catch(e){U(e,t)}e.u&=-9,e.u|=128,r(),cn(e.l,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=me(n);if(!V.has(e)){const s=()=>{};ve(e,t,!!(1&n.u)),s()}}}const i=e.L,r=()=>Je(e,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,n)}s()}},fn=(t,e)=>{sn(t,"disconnectedCallback",void 0,e||t)},an=(t,e={})=>{var n;if(!q.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=[],i=e.exclude||[],r=q.customElements,o=q.document.head,l=o.querySelector("meta[charset]"),c=q.document.createElement("style"),u=[];let f,a=!0;Object.assign(J,e),J.h=new URL(e.resourcesUrl||"./",q.document.baseURI).href,J.u|=2,(()=>{if(!q.document)return;const t=q.document.querySelectorAll(`[${F}]`);let e=0;for(;e<t.length;e++)ve(t[e].getAttribute(F),be(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n,o,l;const c={u:e[0],v:e[1],t:e[2],Z:e[3]};4&c.u&&(h=!0),c.t=e[2],c.D=null!=(n=e[4])?n:{},c.G=null!=(o=e[5])?o:{},c.U=null!=(l=e[6])?l:{};const p=c.v,d=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,i:e,o:new Map,H:new Map};n.V=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.A=[];const s=n;t.__stencil__getHostRef=()=>s})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ue.call(t,c)}connectedCallback(){T(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),a?u.push(this):J.jmp((()=>un(this))))}disconnectedCallback(){J.jmp((()=>(async t=>{if(!(1&J.u)){const e=T(t);(null==e?void 0:e.l)?fn(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>fn(e.l,t)))}de.has(t)&&de.delete(t),t.shadowRoot&&de.has(t.shadowRoot)&&de.delete(t.shadowRoot)})(this))),J.raf((()=>{var t;const e=T(this);if(!e)return;const n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e.I)?void 0:t.M)instanceof Node&&!e.I.M.isConnected&&delete e.I.M}))}componentOnReady(){var t;return null==(t=T(this))?void 0:t.V}};c.B=t[0],i.includes(p)||r.get(p)||(s.push(p),r.define(p,ln(d,c,1)))}))})),s.length>0&&(h&&(c.textContent+=H),c.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=J.p)?n:ee(q.document);null!=t&&c.setAttribute("nonce",t),o.insertBefore(c,l?l.nextSibling:o.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):J.jmp((()=>f=setTimeout(nn,30)))},hn=t=>J.p=t;export{an as b,Ce as c,Re as g,ge as h,Y as p,_ as r,hn as s}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,g as i,h as r}from"./p-bMtPc5Dm.js";function s(t,e){if(void 0!==e)return`${e}px`;switch(t){case"pill":return"9999px";case"rounded":return"8px";case"sharp":return"0";default:return}}function a(t){if(!t)return{};const e={};if(t.colors?.primary&&(e["--ah-color-primary"]=t.colors.primary,e["--ah-color-primary-hover"]=t.colors.primary),t.colors?.page_background){const i=t.colors.page_background;"solid"===i.type&&i.start?e["--ah-page-bg"]=i.start:"gradient"===i.type&&i.start&&i.end&&(e["--ah-page-bg"]=`linear-gradient(${i.angle_deg??180}deg, ${i.start}, ${i.end})`)}return t.logo_url&&(e["--ah-logo-url"]=`url(${t.logo_url})`),t.font?.url&&(e["--ah-font-url"]=t.font.url),e}function o(t){if(!t)return{};const e={};if(t.borders){const i=t.borders;void 0!==i.widget_corner_radius&&(e["--ah-widget-radius"]=`${i.widget_corner_radius}px`),void 0!==i.widget_border_weight&&(e["--ah-widget-border-width"]=`${i.widget_border_weight}px`),!1===i.show_widget_shadow&&(e["--ah-widget-shadow"]="none");const r=s(i.buttons_style,i.button_border_radius);r&&(e["--ah-btn-radius"]=r),void 0!==i.button_border_weight&&(e["--ah-btn-border-width"]=`${i.button_border_weight}px`);const a=s(i.inputs_style,i.input_border_radius);a&&(e["--ah-input-radius"]=a),void 0!==i.input_border_weight&&(e["--ah-input-border-width"]=`${i.input_border_weight}px`)}if(t.colors){const i=t.colors;i.primary_button&&(e["--ah-color-primary"]=i.primary_button,e["--ah-color-primary-hover"]=i.primary_button),i.primary_button_label&&(e["--ah-btn-primary-text"]=i.primary_button_label),i.secondary_button_border&&(e["--ah-btn-secondary-border"]=i.secondary_button_border),i.secondary_button_label&&(e["--ah-btn-secondary-text"]=i.secondary_button_label),i.body_text&&(e["--ah-color-text"]=i.body_text),i.header&&(e["--ah-color-text-header"]=i.header),i.input_labels_placeholders&&(e["--ah-color-text-label"]=i.input_labels_placeholders,e["--ah-color-text-muted"]=i.input_labels_placeholders),i.input_filled_text&&(e["--ah-color-input-text"]=i.input_filled_text),i.widget_background&&(e["--ah-color-bg"]=i.widget_background),i.input_background&&(e["--ah-color-input-bg"]=i.input_background),i.widget_border&&(e["--ah-widget-border-color"]=i.widget_border),i.input_border&&(e["--ah-color-border"]=i.input_border),i.links_focused_components&&(e["--ah-color-link"]=i.links_focused_components),i.base_focus_color&&(e["--ah-color-focus-ring"]=i.base_focus_color),i.base_hover_color&&(e["--ah-color-primary-hover"]=i.base_hover_color),i.error&&(e["--ah-color-error"]=i.error),i.success&&(e["--ah-color-success"]=i.success),i.icons&&(e["--ah-color-icon"]=i.icons)}if(t.fonts){const i=t.fonts,r=i.reference_text_size||16;if(i.font_url&&(e["--ah-font-url"]=i.font_url),i.reference_text_size&&(e["--ah-font-size-base"]=`${i.reference_text_size}px`),i.title?.size){const t=Math.round(i.title.size/100*r);e["--ah-font-size-title"]=`${t}px`}if(i.subtitle?.size){const t=Math.round(i.subtitle.size/100*r);e["--ah-font-size-subtitle"]=`${t}px`}if(i.body_text?.size){const t=Math.round(i.body_text.size/100*r);e["--ah-font-size-body"]=`${t}px`}if(i.input_labels?.size){const t=Math.round(i.input_labels.size/100*r);e["--ah-font-size-label"]=`${t}px`}if(i.buttons_text?.size){const t=Math.round(i.buttons_text.size/100*r);e["--ah-font-size-btn"]=`${t}px`}if(i.links?.size){const t=Math.round(i.links.size/100*r);e["--ah-font-size-link"]=`${t}px`}"underlined"===i.links_style&&(e["--ah-link-decoration"]="underline"),void 0!==i.title?.bold&&(e["--ah-font-weight-title"]=i.title.bold?"700":"400"),void 0!==i.subtitle?.bold&&(e["--ah-font-weight-subtitle"]=i.subtitle.bold?"700":"400"),void 0!==i.body_text?.bold&&(e["--ah-font-weight-body"]=i.body_text.bold?"700":"400"),void 0!==i.input_labels?.bold&&(e["--ah-font-weight-label"]=i.input_labels.bold?"700":"400"),void 0!==i.buttons_text?.bold&&(e["--ah-font-weight-btn"]=i.buttons_text.bold?"600":"400"),void 0!==i.links?.bold&&(e["--ah-font-weight-link"]=i.links.bold?"700":"400")}if(t.widget){const i=t.widget;if(i.header_text_alignment&&(e["--ah-title-align"]=i.header_text_alignment),i.logo_height&&(e["--ah-logo-height"]=`${i.logo_height}px`),i.logo_position){const t={center:"center",left:"flex-start",right:"flex-end"};"none"===i.logo_position?e["--ah-logo-display"]="none":e["--ah-logo-align"]=t[i.logo_position]??"center"}i.social_buttons_layout&&("top"===i.social_buttons_layout?(e["--ah-social-order"]="0",e["--ah-divider-order"]="1",e["--ah-fields-order"]="2"):(e["--ah-social-order"]="2",e["--ah-divider-order"]="1",e["--ah-fields-order"]="0"))}if(t.page_background){const i=t.page_background;i.background_color&&(e["--ah-page-bg"]=i.background_color),i.background_image_url&&(e["--ah-page-bg-image"]=`url(${i.background_image_url})`)}return e}const n=class{constructor(i){t(this,i),this.formSubmit=e(this,"formSubmit"),this.buttonClick=e(this,"buttonClick"),this.linkClick=e(this,"linkClick"),this.navigate=e(this,"navigate"),this.flowComplete=e(this,"flowComplete"),this.flowError=e(this,"flowError"),this.screenChange=e(this,"screenChange")}get el(){return i(this)}screen;apiUrl;branding;theme;loading=!1;autoSubmit=!1;_screen;_branding;_theme;formData={};formSubmit;buttonClick;linkClick;navigate;flowComplete;flowError;screenChange;watchScreen(t){if("string"==typeof t)try{this._screen=JSON.parse(t)}catch{console.error("Failed to parse screen JSON")}else this._screen=t;this._screen&&this.screenChange.emit(this._screen)}watchBranding(t){if("string"==typeof t)try{this._branding=JSON.parse(t)}catch{console.error("Failed to parse branding JSON")}else this._branding=t;this.applyThemeStyles()}watchTheme(t){if("string"==typeof t)try{this._theme=JSON.parse(t)}catch{console.error("Failed to parse theme JSON")}else this._theme=t;this.applyThemeStyles()}applyThemeStyles(){const t=(e=this._theme,{...a(this._branding),...o(e)});var e;!function(t,e){Object.entries(e).forEach((([e,i])=>{t.style.setProperty(e,i)}))}(this.el,t)}async componentWillLoad(){this.watchScreen(this.screen),this.watchBranding(this.branding),this.watchTheme(this.theme),this.apiUrl&&!this._screen&&await this.fetchScreen()}async fetchScreen(){if(this.apiUrl){this.loading=!0;try{const t=await fetch(this.apiUrl,{credentials:"include",headers:{Accept:"application/json"}});t.ok&&(this._screen=await t.json(),this._screen&&this.screenChange.emit(this._screen))}catch(t){console.error("Failed to fetch screen:",t)}finally{this.loading=!1}}}handleInputChange=(t,e)=>{this.formData={...this.formData,[t]:e}};handleSubmit=async t=>{if(t.preventDefault(),this._screen&&(this.formSubmit.emit({screen:this._screen,data:this.formData}),this.autoSubmit)){this.loading=!0;try{const t=await fetch(this._screen.action,{method:this._screen.method,credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({data:this.formData})}),e=t.headers.get("content-type");if(e?.includes("application/json")){const e=await t.json();e.redirect?(this.flowComplete.emit({redirectUrl:e.redirect}),this.navigate.emit({url:e.redirect})):e.screen?(this._screen=e.screen,this.formData={},this.screenChange.emit(e.screen),e.branding&&(this._branding=e.branding,this.applyThemeStyles())):e.complete&&this.flowComplete.emit({}),!t.ok&&e.screen&&(this._screen=e.screen,this.screenChange.emit(e.screen))}}catch(t){console.error("Form submission failed:",t),this.flowError.emit({message:t instanceof Error?t.message:"Form submission failed"})}finally{this.loading=!1}}};handleButtonClick=t=>{"submit"!==t.type?this.buttonClick.emit(t):this.handleSubmit({preventDefault:()=>{}})};handleLinkClick=(t,e)=>{this.linkClick.emit({id:e.id,href:e.href,text:e.text}),this.autoSubmit||t.preventDefault()};getScreenErrors(){return this._screen?.messages?.filter((t=>"error"===t.type))||[]}getScreenSuccesses(){return this._screen?.messages?.filter((t=>"success"===t.type))||[]}getOrderedComponents(){return this._screen?[...this._screen.components].filter((t=>!1!==t.visible)).sort(((t,e)=>(t.order??0)-(e.order??0))):[]}isSocialComponent(t){return"SOCIAL"===t.type}isDividerComponent(t){return"DIVIDER"===t.type}render(){if(this.loading&&!this._screen)return r("div",{class:"widget-container"},r("div",{class:"loading-spinner"}));if(!this._screen)return r("div",{class:"widget-container"},r("div",{class:"error-message"},"No screen configuration provided"));const t=this.getScreenErrors(),e=this.getScreenSuccesses(),i=this.getOrderedComponents(),s=i.filter((t=>this.isSocialComponent(t))),a=i.filter((t=>!this.isSocialComponent(t)&&!this.isDividerComponent(t))),o=i.some((t=>this.isDividerComponent(t))),n=this._theme?.widget?.logo_url||this._branding?.logo_url;return r("div",{class:"widget-container",part:"container"},r("header",{class:"widget-header",part:"header"},n&&r("div",{class:"logo-wrapper",part:"logo-wrapper"},r("img",{class:"logo",part:"logo",src:n,alt:"Logo"})),this._screen.title&&r("h1",{class:"title",part:"title"},this._screen.title),this._screen.description&&r("p",{class:"description",part:"description"},this._screen.description)),r("div",{class:"widget-body",part:"body"},t.map((t=>r("div",{class:"message message-error",part:"message message-error",key:t.id??t.text},t.text))),e.map((t=>r("div",{class:"message message-success",part:"message message-success",key:t.id??t.text},t.text))),r("form",{onSubmit:this.handleSubmit,part:"form"},r("div",{class:"form-content"},s.length>0&&r("div",{class:"social-section",part:"social-section"},s.map((t=>r("authhero-node",{key:t.id,component:t,value:this.formData[t.id],onFieldChange:t=>this.handleInputChange(t.detail.id,t.detail.value),onButtonClick:t=>this.handleButtonClick(t.detail),disabled:this.loading})))),s.length>0&&a.length>0&&o&&r("div",{class:"divider",part:"divider"},r("span",{class:"divider-text"},"Or")),r("div",{class:"fields-section",part:"fields-section"},a.map((t=>r("authhero-node",{key:t.id,component:t,value:this.formData[t.id],onFieldChange:t=>this.handleInputChange(t.detail.id,t.detail.value),onButtonClick:t=>this.handleButtonClick(t.detail),disabled:this.loading})))))),this._screen.links&&this._screen.links.length>0&&r("div",{class:"links",part:"links"},this._screen.links.map((t=>r("span",{class:"link-wrapper",part:"link-wrapper",key:t.id??t.href},t.linkText?r("span",null,t.text," ",r("a",{href:t.href,class:"link",part:"link",onClick:e=>this.handleLinkClick(e,{id:t.id,href:t.href,text:t.linkText||t.text})},t.linkText)):r("a",{href:t.href,class:"link",part:"link",onClick:e=>this.handleLinkClick(e,{id:t.id,href:t.href,text:t.text})},t.text)))))))}static get watchers(){return{screen:[{watchScreen:0}],branding:[{watchBranding:0}],theme:[{watchTheme:0}]}}};n.style=":host{display:block;font-family:var(--ah-font-family, 'ulp-font', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif);font-size:var(--ah-font-size-base, 14px);line-height:var(--ah-line-height-base, 1.5);color:var(--ah-color-text, #1e212a);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.widget-container{max-width:var(--ah-widget-max-width, 400px);width:100%;margin:0 auto;background-color:var(--ah-color-bg, #ffffff);border-radius:var(--ah-widget-radius, 5px);box-shadow:var(--ah-widget-shadow, 0 4px 22px 0 rgba(0, 0, 0, 0.11));box-sizing:border-box}.widget-header{padding:var(--ah-header-padding, 40px 40px 24px)}.widget-body{padding:var(--ah-body-padding, 0 40px 40px)}.logo-wrapper{display:var(--ah-logo-display, flex);justify-content:var(--ah-logo-align, center)}.logo{display:block;height:var(--ah-logo-height, 52px);max-width:100%;width:auto;object-fit:contain}.title{font-size:var(--ah-font-size-title, 24px);font-weight:var(--ah-font-weight-title, 700);text-align:var(--ah-title-align, center);margin:var(--ah-title-margin, 24px 0 16px);color:var(--ah-color-header, #1e212a);line-height:1.2}.description{font-size:var(--ah-font-size-description, 14px);text-align:var(--ah-title-align, center);margin:var(--ah-description-margin, 0);color:var(--ah-color-text, #1e212a);line-height:1.5}.message{padding:12px 16px;border-radius:4px;margin-bottom:16px;font-size:14px;line-height:1.5}.message-error{background-color:var(--ah-color-error-bg, #ffeaea);color:var(--ah-color-error, #d03c38);border-left:3px solid var(--ah-color-error, #d03c38)}.message-success{background-color:var(--ah-color-success-bg, #e6f9f1);color:var(--ah-color-success, #13a769);border-left:3px solid var(--ah-color-success, #13a769)}form{display:flex;flex-direction:column}.form-content{display:flex;flex-direction:column}.social-section{display:flex;flex-direction:column;gap:8px;order:var(--ah-social-order, 2)}.fields-section{display:flex;flex-direction:column;order:var(--ah-fields-order, 0)}.divider{display:flex;align-items:center;text-align:center;margin:16px 0;order:var(--ah-divider-order, 1)}.divider::before,.divider::after{content:'';flex:1;border-bottom:1px solid var(--ah-color-border-muted, #c9cace)}.divider-text{padding:0 10px;font-size:12px;font-weight:400;color:var(--ah-color-text-muted, #65676e);text-transform:uppercase;letter-spacing:0}.links{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:16px}.link-wrapper{font-size:14px;color:var(--ah-color-text, #1e212a)}.link{color:var(--ah-color-link, #635dff);text-decoration:var(--ah-link-decoration, none);font-size:14px;font-weight:var(--ah-font-weight-link, 400);transition:color 150ms ease}.link:hover{text-decoration:underline}.link:focus-visible{outline:2px solid var(--ah-color-link, #635dff);outline-offset:2px;border-radius:2px}.loading-spinner{width:32px;height:32px;margin:24px auto;border:3px solid var(--ah-color-border-muted, #e0e1e3);border-top-color:var(--ah-color-primary, #635dff);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.error-message{text-align:center;color:var(--ah-color-error, #d03c38);padding:16px;font-size:14px}";export{n as authhero_widget}
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D0xitTOL.js');
3
+ var index = require('./index-Db4bZu99.js');
4
4
 
5
- const authheroNodeCss = () => `:host{display:block}.input-wrapper{display:flex;flex-direction:column;gap:var(--ah-space-1, 0.25rem)}.input-label{font-size:var(--ah-font-size-sm, 0.875rem);font-weight:var(--ah-font-weight-medium, 500);color:var(--ah-color-text-label, #374151);line-height:var(--ah-line-height-normal, 1.5)}.required{color:var(--ah-color-error, #dc2626);margin-left:var(--ah-space-1, 0.25rem)}.input-field{padding:var(--ah-input-padding-y, 0.75rem) var(--ah-input-padding-x, 1rem);font-size:var(--ah-font-size-base, 1rem);font-family:inherit;color:var(--ah-color-text, #1f2937);background-color:var(--ah-color-bg, #ffffff);border:var(--ah-input-border-width, 1px) solid var(--ah-color-border, #d1d5db);border-radius:var(--ah-input-radius, 6px);outline:none;transition:border-color var(--ah-transition-base, 200ms ease), box-shadow var(--ah-transition-base, 200ms ease)}.input-field::placeholder{color:var(--ah-color-text-muted, #9ca3af)}.input-field:focus{border-color:var(--ah-color-primary, #0066cc);box-shadow:0 0 0 3px var(--ah-color-primary-focus-ring, rgba(0, 102, 204, 0.1))}.input-field.has-error{border-color:var(--ah-color-error, #dc2626)}.input-field.has-error:focus{box-shadow:0 0 0 3px rgba(220, 38, 38, 0.1)}.input-field:disabled{background-color:var(--ah-color-bg-disabled, #f3f4f6);cursor:not-allowed;opacity:0.7}.error-text{font-size:var(--ah-font-size-xs, 0.75rem);color:var(--ah-color-error, #dc2626);margin-top:var(--ah-space-1, 0.25rem)}.helper-text{font-size:var(--ah-font-size-xs, 0.75rem);color:var(--ah-color-text-muted, #6b7280);margin-top:var(--ah-space-1, 0.25rem)}.checkbox-wrapper{display:flex;align-items:flex-start;gap:var(--ah-space-2, 0.5rem);cursor:pointer}.checkbox-wrapper input[type='checkbox']{width:1rem;height:1rem;margin-top:0.125rem;accent-color:var(--ah-color-primary, #0066cc);cursor:pointer}.checkbox-label{font-size:var(--ah-font-size-sm, 0.875rem);color:var(--ah-color-text-label, #374151);line-height:var(--ah-line-height-normal, 1.5)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--ah-space-2, 0.5rem);width:100%;padding:var(--ah-btn-padding-y, 0.875rem) var(--ah-btn-padding-x, 1.5rem);font-size:var(--ah-font-size-base, 1rem);font-weight:var(--ah-btn-font-weight, 500);font-family:inherit;line-height:var(--ah-line-height-tight, 1.25);text-align:center;text-decoration:none;border:none;border-radius:var(--ah-btn-radius, 8px);cursor:pointer;transition:background-color var(--ah-transition-base, 200ms ease), transform var(--ah-transition-fast, 150ms ease), box-shadow var(--ah-transition-base, 200ms ease)}.btn:disabled{opacity:0.6;cursor:not-allowed}.btn:not(:disabled):active{transform:scale(0.98)}.btn:focus-visible{outline:2px solid var(--ah-color-primary, #0066cc);outline-offset:2px}.btn-primary{background-color:var(--ah-color-primary, #0066cc);color:var(--ah-color-text-on-primary, #ffffff)}.btn-primary:not(:disabled):hover{background-color:var(--ah-color-primary-hover, #0052a3)}.btn-secondary{background-color:var(--ah-color-bg, #ffffff);color:var(--ah-color-text, #374151);border:1px solid var(--ah-color-border-muted, #e5e7eb)}.btn-secondary:not(:disabled):hover{background-color:var(--ah-color-bg-muted, #f9fafb);border-color:var(--ah-color-border, #d1d5db)}.text-title{font-size:var(--ah-font-size-xl, 1.25rem);font-weight:var(--ah-font-weight-semibold, 600);color:var(--ah-color-text, #1f2937);margin:var(--ah-space-2, 0.5rem) 0;line-height:var(--ah-line-height-tight, 1.25)}.text-title.text-success{color:var(--ah-color-success, #16a34a)}.text-description{font-size:var(--ah-font-size-sm, 0.875rem);color:var(--ah-color-text-muted, #6b7280);margin:var(--ah-space-1, 0.25rem) 0;line-height:var(--ah-line-height-normal, 1.5)}.image{display:block;max-width:100%;height:auto;border-radius:var(--ah-radius-lg, 8px)}.image-centered{margin:0 auto var(--ah-space-4, 1rem);width:var(--ah-logo-size, 48px);height:var(--ah-logo-size, 48px);object-fit:contain}.link{color:var(--ah-color-primary, #0066cc);text-decoration:none;font-size:var(--ah-font-size-sm, 0.875rem);transition:color var(--ah-transition-fast, 150ms ease)}.link:hover{text-decoration:underline}.link:focus-visible{outline:2px solid var(--ah-color-primary, #0066cc);outline-offset:2px}.node-error{padding:var(--ah-space-3, 0.75rem) var(--ah-space-4, 1rem);background-color:var(--ah-color-error-bg, #fee2e2);color:var(--ah-color-error, #dc2626);border:1px solid var(--ah-color-error-border, #fecaca);border-radius:var(--ah-radius-md, 6px);font-size:var(--ah-font-size-sm, 0.875rem)}.node-success{padding:var(--ah-space-3, 0.75rem) var(--ah-space-4, 1rem);background-color:var(--ah-color-success-bg, #dcfce7);color:var(--ah-color-success, #16a34a);border:1px solid var(--ah-color-success-border, #bbf7d0);border-radius:var(--ah-radius-md, 6px);font-size:var(--ah-font-size-sm, 0.875rem)}.divider{display:flex;align-items:center;text-align:center;margin:var(--ah-space-4, 1rem) 0}.divider::before,.divider::after{content:'';flex:1;border-bottom:1px solid var(--ah-color-border-muted, #e5e7eb)}.divider-text{padding:0 var(--ah-space-4, 1rem);font-size:var(--ah-font-size-sm, 0.875rem);color:var(--ah-color-text-muted, #9ca3af);text-transform:uppercase;letter-spacing:0.05em}`;
5
+ const authheroNodeCss = () => `:host{display:block}.input-wrapper{display:flex;flex-direction:column;position:relative;margin-bottom:16px}.input-container{position:relative;width:100%}.input-label{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:16px;font-weight:var(--ah-font-weight-label, 400);color:var(--ah-color-text-muted, #65676e);pointer-events:none;transition:all 0.15s ease-out;background-color:transparent;padding:0;z-index:1}.input-label.floating,.input-field:focus+.input-label,.input-field:not(:placeholder-shown)+.input-label{top:-8px;transform:translateY(0);font-size:12px;background-color:var(--ah-color-bg, #ffffff);padding:0 4px;left:12px;color:var(--ah-color-text-muted, #65676e)}.input-field:focus+.input-label{color:var(--ah-color-primary, #635dff)}.required{color:var(--ah-color-error, #d03c38);margin-left:2px}.input-field{width:100%;padding:16px;font-size:16px;font-family:inherit;color:var(--ah-color-text, #1e212a);background-color:var(--ah-color-input-bg, #ffffff);border:1px solid var(--ah-color-border, #c9cace);border-radius:var(--ah-input-radius, 3px);outline:none;transition:border-color 0.15s ease-out, box-shadow 0.15s ease-out;box-sizing:border-box}.input-field::placeholder{color:transparent}.input-field:hover{border-color:var(--ah-color-border-hover, #65676e)}.input-field:focus{border-color:var(--ah-color-primary, #635dff);box-shadow:inset 0 0 0 1px var(--ah-color-primary, #635dff)}.input-field.has-error{border-color:var(--ah-color-error, #d03c38)}.input-field.has-error:focus{box-shadow:inset 0 0 0 1px var(--ah-color-error, #d03c38)}.input-field:disabled{background-color:var(--ah-color-bg-disabled, #f5f5f5);border-color:var(--ah-color-border-disabled, #e0e1e3);cursor:not-allowed;opacity:0.7}.password-container{position:relative;display:flex;align-items:center}.password-container .input-field{padding-right:48px}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;color:var(--ah-color-text-muted, #65676e);transition:color 0.15s ease}.password-toggle:hover{color:var(--ah-color-text, #1e212a)}.password-toggle svg{width:20px;height:20px}.error-text{font-size:12px;color:var(--ah-color-error, #d03c38);margin-top:4px;line-height:1.4}.helper-text{font-size:12px;color:var(--ah-color-text-muted, #65676e);margin-top:4px;line-height:1.4}.field-link{display:block;text-align:left;margin-top:8px;margin-bottom:16px}.field-link a{color:var(--ah-color-link, #635dff);text-decoration:var(--ah-link-decoration, none);font-size:14px;font-weight:var(--ah-font-weight-link, 400)}.field-link a:hover{text-decoration:underline}.checkbox-wrapper{display:flex;align-items:flex-start;gap:10px;cursor:pointer;margin-bottom:16px}.checkbox-wrapper input[type='checkbox']{width:18px;height:18px;margin:0;accent-color:var(--ah-color-primary, #635dff);cursor:pointer;flex-shrink:0}.checkbox-label{font-size:14px;color:var(--ah-color-text, #1e212a);line-height:1.5}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 20px;font-size:16px;font-weight:var(--ah-font-weight-btn, 400);font-family:inherit;line-height:1.25;text-align:center;text-decoration:none;border:none;border-radius:var(--ah-btn-radius, 3px);cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;box-sizing:border-box}.btn:disabled{opacity:0.6;cursor:not-allowed}.btn:not(:disabled):active{transform:scale(0.98)}.btn:focus-visible{outline:2px solid var(--ah-color-primary, #635dff);outline-offset:2px}.btn-primary{background-color:var(--ah-color-primary, #635dff);color:var(--ah-color-text-on-primary, #ffffff);margin-top:8px}.btn-primary:not(:disabled):hover{background-color:var(--ah-color-primary-hover);filter:brightness(0.9)}.btn-secondary{background-color:var(--ah-color-bg, #ffffff);color:var(--ah-color-text, #1e212a);border:1px solid var(--ah-color-border, #c9cace)}.btn-secondary:not(:disabled):hover{background-color:var(--ah-color-bg-hover, #f5f5f5);border-color:var(--ah-color-border-hover, #65676e)}.btn-link{background:none;border:none;color:var(--ah-color-link, #635dff);padding:8px 0;font-weight:var(--ah-font-weight-link, 400);text-decoration:none}.btn-link:hover{text-decoration:underline}.btn-social{display:flex;align-items:center;justify-content:center;gap:12px}.social-icon{width:20px;height:20px;flex-shrink:0}.btn-icon{width:20px;height:20px;flex-shrink:0}.btn-icon img{width:100%;height:100%;object-fit:contain}.text-title{font-size:20px;font-weight:400;color:var(--ah-color-text, #1e212a);margin:8px 0;line-height:1.3}.text-title.text-success{color:var(--ah-color-success, #13a769)}.text-description{font-size:14px;color:var(--ah-color-text-muted, #65676e);margin:4px 0;line-height:1.5}.image{display:block;max-width:100%;height:auto;border-radius:4px}.image-centered{margin:0 auto 16px;width:52px;height:52px;object-fit:contain}.link{color:var(--ah-color-link, #635dff);text-decoration:var(--ah-link-decoration, none);font-size:14px;transition:color 0.15s ease}.link:hover{text-decoration:underline}.link:focus-visible{outline:2px solid var(--ah-color-link, #635dff);outline-offset:2px;border-radius:2px}.node-error{padding:12px 16px;background-color:var(--ah-color-error-bg, #ffeaea);color:var(--ah-color-error, #d03c38);border-left:3px solid var(--ah-color-error, #d03c38);border-radius:0;font-size:14px;margin-bottom:16px}.node-success{padding:12px 16px;background-color:var(--ah-color-success-bg, #e6f9f1);color:var(--ah-color-success, #13a769);border-left:3px solid var(--ah-color-success, #13a769);border-radius:0;font-size:14px;margin-bottom:16px}.divider{display:flex;align-items:center;text-align:center;margin:16px 0}.divider::before,.divider::after{content:'';flex:1;border-bottom:1px solid var(--ah-color-border-muted, #c9cace)}.divider-text{padding:0 10px;font-size:12px;font-weight:400;color:var(--ah-color-text-muted, #65676e);text-transform:uppercase;letter-spacing:0.5px}`;
6
6
 
7
7
  const AuthheroNode = class {
8
8
  constructor(hostRef) {
@@ -23,6 +23,10 @@ const AuthheroNode = class {
23
23
  * Whether the component is disabled.
24
24
  */
25
25
  disabled = false;
26
+ /**
27
+ * Whether the password field is visible.
28
+ */
29
+ passwordVisible = false;
26
30
  /**
27
31
  * Emitted when a field value changes.
28
32
  */
@@ -48,6 +52,9 @@ const AuthheroNode = class {
48
52
  }
49
53
  this.buttonClick.emit({ id: this.component.id, type, value });
50
54
  };
55
+ togglePasswordVisibility = () => {
56
+ this.passwordVisible = !this.passwordVisible;
57
+ };
51
58
  /**
52
59
  * Get error messages from the component.
53
60
  */
@@ -56,13 +63,32 @@ const AuthheroNode = class {
56
63
  return (runtimeComp.messages?.filter((m) => m.type === "error") || []);
57
64
  }
58
65
  /**
59
- * Render a label for a field.
66
+ * Render a floating label for a field.
67
+ */
68
+ renderFloatingLabel(text, inputId, required, hasValue) {
69
+ if (!text)
70
+ return null;
71
+ return (index.h("label", { class: { "input-label": true, floating: !!hasValue }, part: "label", htmlFor: inputId }, text, required && index.h("span", { class: "required" }, "*")));
72
+ }
73
+ /**
74
+ * Render a label for a field (non-floating version for checkboxes etc).
60
75
  */
61
76
  renderLabel(text, inputId, required) {
62
77
  if (!text)
63
78
  return null;
64
79
  return (index.h("label", { class: "input-label", part: "label", htmlFor: inputId }, text, required && index.h("span", { class: "required" }, "*")));
65
80
  }
81
+ /**
82
+ * Render the eye icon for password visibility toggle.
83
+ */
84
+ renderPasswordToggle() {
85
+ if (this.passwordVisible) {
86
+ // Eye-off icon (password is visible, click to hide)
87
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), index.h("line", { x1: "1", y1: "1", x2: "23", y2: "23" })));
88
+ }
89
+ // Eye icon (password is hidden, click to show)
90
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), index.h("circle", { cx: "12", cy: "12", r: "3" })));
91
+ }
66
92
  /**
67
93
  * Render error messages.
68
94
  */
@@ -114,21 +140,25 @@ const AuthheroNode = class {
114
140
  renderTextField(component) {
115
141
  const inputId = `input-${component.id}`;
116
142
  const errors = this.getErrors();
117
- const { placeholder, multiline, max_length } = component.config ?? {};
143
+ const { multiline, max_length } = component.config ?? {};
144
+ const hasValue = !!(this.value && this.value.length > 0);
118
145
  if (multiline) {
119
- return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, this.renderLabel(component.label, inputId, component.required), index.h("textarea", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input textarea", name: component.id, placeholder: placeholder, required: component.required, disabled: this.disabled, maxLength: max_length, onInput: this.handleInput }, this.value ?? ""), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
146
+ return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, this.renderLabel(component.label, inputId, component.required), index.h("textarea", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input textarea", name: component.id, placeholder: " ", required: component.required, disabled: this.disabled, maxLength: max_length, onInput: this.handleInput }, this.value ?? ""), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
120
147
  }
121
- return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, this.renderLabel(component.label, inputId, component.required), index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: component.sensitive ? "password" : "text", name: component.id, value: this.value ?? "", placeholder: placeholder, required: component.required, disabled: this.disabled, maxLength: max_length, onInput: this.handleInput }), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
148
+ return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, index.h("div", { class: "input-container" }, index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: component.sensitive ? "password" : "text", name: component.id, value: this.value ?? "", placeholder: " ", required: component.required, disabled: this.disabled, maxLength: max_length, onInput: this.handleInput }), this.renderFloatingLabel(component.label, inputId, component.required, hasValue)), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
122
149
  }
123
150
  renderEmailField(component) {
124
151
  const inputId = `input-${component.id}`;
125
152
  const errors = this.getErrors();
126
- return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, this.renderLabel(component.label, inputId, component.required), index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: "email", name: component.id, value: this.value ?? "", placeholder: component.config?.placeholder, required: component.required, disabled: this.disabled, autocomplete: "email", onInput: this.handleInput }), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
153
+ const hasValue = !!(this.value && this.value.length > 0);
154
+ return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, index.h("div", { class: "input-container" }, index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: "email", name: component.id, value: this.value ?? "", placeholder: " ", required: component.required, disabled: this.disabled, autocomplete: "email", onInput: this.handleInput }), this.renderFloatingLabel(component.label, inputId, component.required, hasValue)), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
127
155
  }
128
156
  renderPasswordField(component) {
129
157
  const inputId = `input-${component.id}`;
130
158
  const errors = this.getErrors();
131
- return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, this.renderLabel(component.label, inputId, component.required), index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: "password", name: component.id, value: this.value ?? "", placeholder: component.config?.placeholder, required: component.required, disabled: this.disabled, minLength: component.config?.min_length, autocomplete: "current-password", onInput: this.handleInput }), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint)));
159
+ const hasValue = !!(this.value && this.value.length > 0);
160
+ const forgotPasswordLink = component.config?.forgot_password_link;
161
+ return (index.h("div", { class: "input-wrapper", part: "input-wrapper" }, index.h("div", { class: "input-container password-container" }, index.h("input", { id: inputId, class: { "input-field": true, "has-error": errors.length > 0 }, part: "input", type: this.passwordVisible ? "text" : "password", name: component.id, value: this.value ?? "", placeholder: " ", required: component.required, disabled: this.disabled, minLength: component.config?.min_length, autocomplete: "current-password", onInput: this.handleInput }), this.renderFloatingLabel(component.label, inputId, component.required, hasValue), index.h("button", { type: "button", class: "password-toggle", part: "password-toggle", onClick: this.togglePasswordVisibility, "aria-label": "Toggle password visibility", "aria-pressed": this.passwordVisible ? "true" : "false" }, this.renderPasswordToggle())), this.renderErrors(), errors.length === 0 && this.renderHint(component.hint), forgotPasswordLink && (index.h("div", { class: "field-link", part: "field-link" }, index.h("a", { href: forgotPasswordLink, class: "link", part: "link" }, "Forgot password?")))));
132
162
  }
133
163
  renderNumberField(component) {
134
164
  const inputId = `input-${component.id}`;
@@ -175,7 +205,65 @@ const AuthheroNode = class {
175
205
  }
176
206
  renderSocialField(component) {
177
207
  const providers = component.config?.providers ?? [];
178
- return (index.h("div", { class: "social-buttons", part: "social-buttons" }, providers.map((provider) => (index.h("button", { type: "button", class: "btn btn-secondary btn-social", part: "button button-secondary button-social", "data-provider": provider, disabled: this.disabled, onClick: (e) => this.handleButtonClick(e, "social", provider), key: provider }, "Continue with ", provider.charAt(0).toUpperCase() + provider.slice(1))))));
208
+ // Map provider IDs to display names
209
+ const getProviderDisplayName = (provider) => {
210
+ const displayNames = {
211
+ "google-oauth2": "Google",
212
+ facebook: "Facebook",
213
+ twitter: "Twitter",
214
+ github: "GitHub",
215
+ linkedin: "LinkedIn",
216
+ apple: "Apple",
217
+ microsoft: "Microsoft",
218
+ windowslive: "Microsoft",
219
+ amazon: "Amazon",
220
+ dropbox: "Dropbox",
221
+ bitbucket: "Bitbucket",
222
+ spotify: "Spotify",
223
+ slack: "Slack",
224
+ discord: "Discord",
225
+ twitch: "Twitch",
226
+ line: "LINE",
227
+ shopify: "Shopify",
228
+ paypal: "PayPal",
229
+ "paypal-sandbox": "PayPal",
230
+ box: "Box",
231
+ salesforce: "Salesforce",
232
+ "salesforce-sandbox": "Salesforce",
233
+ yahoo: "Yahoo",
234
+ auth0: "Auth0",
235
+ };
236
+ return (displayNames[provider.toLowerCase()] ||
237
+ provider
238
+ .split("-")
239
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
240
+ .join(" "));
241
+ };
242
+ // Get provider icon SVG
243
+ const getProviderIcon = (provider) => {
244
+ const p = provider.toLowerCase();
245
+ if (p === "google-oauth2" || p === "google") {
246
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { 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", fill: "#4285F4" }), index.h("path", { 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", fill: "#34A853" }), index.h("path", { 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", fill: "#FBBC05" }), index.h("path", { 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", fill: "#EA4335" })));
247
+ }
248
+ if (p === "facebook") {
249
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z", fill: "#1877F2" })));
250
+ }
251
+ if (p === "apple") {
252
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z", fill: "#000000" })));
253
+ }
254
+ if (p === "github") {
255
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z", fill: "#181717" })));
256
+ }
257
+ if (p === "microsoft" || p === "windowslive") {
258
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0 0h11.377v11.372H0V0z", fill: "#f25022" }), index.h("path", { d: "M12.623 0H24v11.372H12.623V0z", fill: "#7fba00" }), index.h("path", { d: "M0 12.623h11.377V24H0v-11.377z", fill: "#00a4ef" }), index.h("path", { d: "M12.623 12.623H24V24H12.623v-11.377z", fill: "#ffb900" })));
259
+ }
260
+ if (p === "linkedin") {
261
+ return (index.h("svg", { class: "social-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z", fill: "#0A66C2" })));
262
+ }
263
+ // Default: no icon
264
+ return null;
265
+ };
266
+ return (index.h("div", { class: "social-buttons", part: "social-buttons" }, providers.map((provider) => (index.h("button", { type: "button", class: "btn btn-secondary btn-social", part: "button button-secondary button-social", "data-provider": provider, disabled: this.disabled, onClick: (e) => this.handleButtonClick(e, "social", provider), key: provider }, getProviderIcon(provider), index.h("span", null, "Continue with ", getProviderDisplayName(provider)))))));
179
267
  }
180
268
  // ===========================================================================
181
269
  // Main Render