If you’ve noticed more lush medians and plant-covered roofs in cities, it’s not your imagination.Incorporating more natural elements in urban landscapes is a growing management solution for the planet’s increasing climate hazards (SN: 3/10/22). Rain gardens, green roofs and landscaped drainage ditches are all examples of what’s known as green infrastructure, and are used to manage stormwater and mitigate risks like flooding and extreme heat. These strategies sometimes double as a community resource, such as a recreational space. .email-conversion { border: 1px solid #ffcccb; color: white; margin-top: 50px; background-image: url(“/wp-content/themes/sciencenews/client/src/images/cta-module@2x.jpg”); padding: 20px; clear: both; } .zephr-payment-form-progress-bar.svelte-1be9qtg{width:100%;border:0;border-radius:20px;margin-top:10px}.zephr-payment-form-progress-bar.svelte-1be9qtg::-webkit-progress-bar{background-color:var(–zephr-color-background-tinted);border:0;border-radius:20px}.zephr-payment-form-progress-bar.svelte-1be9qtg::-webkit-progress-value{background-color:var(–zephr-color-text-tinted);border:0;border-radius:20px}.zephr-payment-progress-bar-step.svelte-1be9qtg{margin:auto;color:var(–zephr-color-text-tinted);font-size:12px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont);cursor:pointer}.zephr-payment-progress-bar-step.svelte-1be9qtg:first-child{margin-left:0}.zephr-payment-progress-bar-step.svelte-1be9qtg:last-child{margin-right:0}.zephr-payment-progress-bar-step.disabled.svelte-1be9qtg{cursor:default} .zephr-payment-form-button-top-margin.svelte-1hlz8zp{margin-top:20px}.zephr-payment-form-button.svelte-1hlz8zp{padding:0 20px;text-decoration:none;text-transform:capitalize;border-radius:calc(var(–zephr-button-borderRadius) * 1px);font-size:calc(var(–zephr-button-fontSize) * 1px);font-weight:normal;cursor:pointer;border-style:solid;border-width:calc(var(–zephr-button-borderWidth) * 1px);border-color:var(–zephr-color-action-tinted);transition:backdrop-filter 0.2s, background-color 0.2s;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(–zephr-color-action-main);color:#fff;position:relative;overflow:hidden;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-button.svelte-1hlz8zp:hover{background-color:var(–zephr-color-action-tinted);border-color:var(–zephr-color-action-tinted)}.zephr-payment-form-button.svelte-1hlz8zp:disabled{background-color:var(–zephr-color-background-tinted);border-color:var(–zephr-color-background-tinted)}.zephr-payment-form-button.svelte-1hlz8zp:disabled:hover{background-color:var(–zephr-color-background-tinted);border-color:var(–zephr-color-background-tinted)}.zephr-payment-form-button.inputHeight.svelte-1hlz8zp{height:calc(var(–zephr-input-height) * 1px)}.zephr-payment-form-button.svelte-1hlz8zp:not(inputHeight){height:calc(var(–zephr-button-height) * 1px)}.zephr-payment-form-button.aside.svelte-1hlz8zp{width:auto;margin-left:10px} .payment-option-wrapper.svelte-1heu7pz>input[type=”radio”].svelte-1heu7pz{display:none}.payment-option-wrapper.svelte-1heu7pz.svelte-1heu7pz{display:flex;flex:1 0 28%;width:100%}.payment-option-wrapper.svelte-1heu7pz.svelte-1heu7pz:only-child{max-width:325px}.box-container.svelte-1heu7pz.svelte-1heu7pz{display:flex;flex-direction:column;flex:1 1 0;width:0;text-align:center}.inner-box.svelte-1heu7pz.svelte-1heu7pz{border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);background-color:#fff;height:100%;display:flex;flex-direction:column}.box-container.highlighted.svelte-1heu7pz .inner-box.svelte-1heu7pz{border-top-left-radius:0;border-top-right-radius:0}.box-container.svelte-1heu7pz .box-content.svelte-1heu7pz{flex-grow:1;padding:30px 20px;margin:0 10px;overflow:hidden}.box-container.svelte-1heu7pz .styled-box-content.svelte-1heu7pz{color:var(–zephr-color-text-main);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)} .box-container .styled-box-content h1, .box-container .styled-box-content h2, .box-container .styled-box-content h3, .box-container .styled-box-content p, .box-container .styled-box-content span {color:var(–zephr-color-text-main);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.payment-options-container .box-container .styled-box-content button{color:#fff;background-color:var(–zephr-color-action-main);border-width:calc(var(–zephr-button-borderWidth) * 1px);border-color:var(–zephr-color-action-tinted);border-radius:calc(var(–zephr-button-borderRadius) * 1px);font-size:calc(var(–zephr-button-fontSize) * 1px)}.payment-options-container .box-container .styled-box-content button:hover{background-color:var(–zephr-color-action-tinted);border-color:var(–zephr-color-action-tinted)}.payment-options-container .box-container .box-content img{max-width:210px;height:auto}.box-top.svelte-1heu7pz.svelte-1heu7pz{height:40px}.box-container.highlighted.svelte-1heu7pz .box-top.svelte-1heu7pz{background-color:var(–zephr-color-accent-main);position:relative;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-bottom-width:0;border-top-left-radius:calc(var(–zephr-input-borderRadius) * 1px);border-top-right-radius:calc(var(–zephr-input-borderRadius) * 1px);border-bottom-left-radius:0px;border-bottom-right-radius:0px;display:flex;justify-content:center;align-items:center}.box-container.highlighted.svelte-1heu7pz .box-top .box-top-text.svelte-1heu7pz{font-weight:bold}.box-container.svelte-1heu7pz .box-bottom.svelte-1heu7pz{min-height:60px;display:flex;flex-direction:column;align-items:center;padding:20px 0 30px;margin:0 30px}.button-sub-text.svelte-1heu7pz.svelte-1heu7pz{margin-top:10px} .payment-options-container.svelte-88ms5s{flex-wrap:wrap;font-size:12px;width:100%;color:#000;line-height:18px;padding:31px 0 20px;display:grid;justify-content:space-evenly;justify-items:center;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));gap:13px} .zephr-payment-form-error-message-min-height.svelte-6a7bg3{min-height:1.1em}.zephr-payment-form-error-message.svelte-6a7bg3{color:var(–zephr-color-warning-main);font-size:12px;margin-top:0.5em;position:relative;margin-left:1.2em;margin-right:1.2em} .zephr-payment-form-input-inner-container.svelte-7srm4j{position:relative}.zephr-payment-form-input-full-width.svelte-7srm4j{width:100%}.zephr-payment-form-input.svelte-7srm4j{width:100%;display:block;height:calc(var(–zephr-input-height) * 1px);padding-left:8px;font-size:16px;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;outline:0;color:var(–zephr-color-text-main);background-color:#fff;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-input.svelte-7srm4j::placeholder{color:var(–zephr-color-background-tinted);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-input-checkbox.svelte-7srm4j{width:auto;height:auto;margin:8px 5px 0 0;float:left}.zephr-payment-form-input-radio.svelte-7srm4j{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-payment-form-input-color[type=”color”].svelte-7srm4j{width:50px;padding:0;border-radius:50%}.zephr-payment-form-input-color[type=”color”].svelte-7srm4j::-webkit-color-swatch{border:none;border-radius:50%;padding:0}.zephr-payment-form-input-color[type=”color”].svelte-7srm4j::-webkit-color-swatch-wrapper{border:none;border-radius:50%;padding:0}.zephr-payment-form-input.disabled.svelte-7srm4j,.zephr-payment-form-input.disabled.svelte-7srm4j:hover{border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);background-color:var(–zephr-color-background-tinted)}.zephr-payment-form-input.error.svelte-7srm4j{border:1px solid var(–zephr-color-warning-main)} .zephr-payment-form-input-label.svelte-1ozx4pz.svelte-1ozx4pz{margin-top:10px;display:block;line-height:30px;font-size:12px;color:var(–zephr-color-text-tinted);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-input-label.svelte-1ozx4pz span.svelte-1ozx4pz{display:block} .svelte-fa-base{height:1em;overflow:visible;transform-origin:center;vertical-align:-0.125em}.svelte-fa-fw{text-align:center;width:1.25em}.svelte-fa-pull-left.svelte-bvo74f{float:left}.svelte-fa-pull-right.svelte-bvo74f{float:right}.svelte-fa-size-lg.svelte-bvo74f{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-bvo74f{font-size:0.875em}.svelte-fa-size-xs.svelte-bvo74f{font-size:0.75em}.spin.svelte-bvo74f{animation:svelte-bvo74f-spin 2s 0s infinite linear}.pulse.svelte-bvo74f{animation:svelte-bvo74f-spin 1s infinite steps(8)}@keyframes svelte-bvo74f-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} .svelte-fa-layers.svelte-1sinijc{display:inline-block;position:relative}.svelte-fa-layers.svelte-1sinijc .svelte-fa{position:absolute;bottom:0;left:0;right:0;top:0;margin:auto;text-align:center}.svelte-fa-layers.svelte-1sinijc .svelte-fa-layers-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.svelte-fa-layers.svelte-1sinijc .svelte-fa-layers-text span{display:inline-block}.svelte-fa-pull-left.svelte-1sinijc{float:left}.svelte-fa-pull-right.svelte-1sinijc{float:right}.svelte-fa-size-lg.svelte-1sinijc{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-1sinijc{font-size:0.875em}.svelte-fa-size-xs.svelte-1sinijc{font-size:0.75em} .container.svelte-1x0c3df{display:inline-block;height:auto}.svelte-fa-size-lg.svelte-1x0c3df{font-size:1.33333em;line-height:0.75em;vertical-align:-0.225em}.svelte-fa-size-sm.svelte-1x0c3df{font-size:0.875em}.svelte-fa-size-xs.svelte-1x0c3df{font-size:0.75em} .zephr-payment-form-password-match.svelte-5yypyx.svelte-5yypyx{margin:20px 0;justify-content:center}.zephr-payment-form-password-match.svelte-5yypyx ul.svelte-5yypyx{padding-left:0;margin:0}.zephr-payment-form-password-requirement.svelte-5yypyx.svelte-5yypyx{display:flex;align-items:center;color:var(–zephr-color-text-tinted);font-size:12px;height:20px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-password-requirement-icon.svelte-5yypyx.svelte-5yypyx{margin-right:10px;font-size:15px} .zephr-payment-form-password-progress.svelte-1se6g0r.svelte-1se6g0r{display:flex;margin-top:10px}.zephr-payment-form-password-bar.svelte-1se6g0r.svelte-1se6g0r{width:100%;height:4px;border-radius:2px}.zephr-payment-form-password-bar.svelte-1se6g0r.svelte-1se6g0r:not(:first-child){margin-left:8px}.zephr-payment-form-password-requirements.svelte-1se6g0r.svelte-1se6g0r{margin:20px 0;justify-content:center}.zephr-payment-form-password-requirements.svelte-1se6g0r ul.svelte-1se6g0r{padding-left:0;margin:0}.zephr-payment-form-password-requirement.svelte-1se6g0r.svelte-1se6g0r{display:flex;align-items:center;color:var(–zephr-color-text-tinted);font-size:12px;height:20px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-password-requirement-icon.svelte-1se6g0r.svelte-1se6g0r{margin-right:10px;font-size:15px} #google-pay-button.svelte-y3o182{width:440px;max-width:100%;height:45px;margin-top:20px} #braintree-dropin-container.svelte-z7jd27{margin-top:1em;margin-bottom:1em} #stripe-element.svelte-1lhuc6b{margin-top:2em;margin-bottom:1em;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);padding:1em}#stripe-element.svelte-1lhuc6b iframe:focus{outline:none !important} #stripe-mobile-pay-button.svelte-1t95nqv{width:440px;max-width:100%;height:45px;margin-top:20px} #zuora_payment.svelte-6vr22l{margin-top:1em;margin-bottom:1em}.spinner-container.svelte-6vr22l{text-align:center;padding:2em}.zuora-disabled-iframe-container.svelte-6vr22l .z_hppm_iframe{pointer-events:none;opacity:0.3} #payment-element.svelte-1oygrrs{margin-top:1em;margin-bottom:1em;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);padding:1em} .check-image.svelte-1x04vgf{height:1.2em;vertical-align:middle;margin-right:0.5em}.zephr-payment-form-success-message.svelte-1x04vgf{color:var(–zephr-color-text-main);display:inline-block} .zephr-payment-form-verification-resend-link-container.svelte-1m2ys3h{margin-bottom:2em}.zephr-payment-form-verification-resend-link.svelte-1m2ys3h,.zephr-payment-form-verification-resend-text.svelte-1m2ys3h{float:right;position:absolute;padding-right:2px;padding-top:0.5em;padding-left:0.5em;font-size:12px;right:0}.zephr-payment-form-verification-resend-link.svelte-1m2ys3h{cursor:pointer;color:#6ba5e9} .zephr-payment-form-custom-text.svelte-s692p7{margin-top:1em;margin-bottom:1em;color:var(–zephr-color-text-main)} .zephr-payment-form-checkbox.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-payment-form-checkbox-label.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{display:flex;align-items:center;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-checkmark.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{position:relative;box-sizing:border-box;height:23px;width:23px;background-color:#fff;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:6px;margin-right:12px;cursor:pointer}.zephr-payment-form-checkmark.checked.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{border-color:var(–zephr-color-action-main)}.zephr-payment-form-checkmark.checked.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8:after{content:””;position:absolute;width:6px;height:13px;border:solid var(–zephr-color-action-main);border-width:0 2px 2px 0;transform:rotate(45deg);top:3px;left:8px;box-sizing:border-box}.zephr-payment-form-checkmark.disabled.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-color-background-tinted)}.zephr-payment-form-checkmark.disabled.checked.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8:after{border:solid var(–zephr-color-background-tinted);border-width:0 2px 2px 0}.zephr-payment-form-checkmark.error.svelte-1rzrrj8.svelte-1rzrrj8.svelte-1rzrrj8{border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-color-warning-main)}.zephr-payment-form-checkbox.svelte-1rzrrj8:focus-visible+.zephr-payment-form-checkbox-label.svelte-1rzrrj8>.zephr-payment-form-checkmark.svelte-1rzrrj8{outline:2px solid var(–zephr-color-action-main);outline-color:-webkit-focus-ring-color} .zephr-payment-form-input-radio.svelte-zun59o{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.zephr-payment-form-radio-label.svelte-zun59o{display:flex;align-items:center;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-radio-dot.svelte-zun59o{position:relative;box-sizing:border-box;height:23px;width:23px;background-color:#fff;border:1px solid #ebebeb;border-radius:50%;margin-right:12px}.checked.svelte-zun59o{border-color:#009fe3}.checked.svelte-zun59o:after{content:””;position:absolute;width:17px;height:17px;background:#009fe3;background:linear-gradient(#009fe3, #006cb5);border-radius:50%;top:2px;left:2px}.disabled.checked.svelte-zun59o:after{background:var(–zephr-color-background-tinted)}.error.svelte-zun59o{border:1px solid var(–zephr-color-warning-main)} .zephr-payment-form-input-error-text.svelte-aa7q6k{color:var(–zephr-color-warning-main);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-input-select.svelte-aa7q6k{display:block;appearance:auto;width:100%;height:calc(var(–zephr-input-height) * 1px);font-size:16px;font-family:var(–zephr-typography-body-font);border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;outline:0;color:var(–zephr-color-text-main);background-color:#fff;padding:10px}.zephr-payment-form-input-select.disabled.svelte-aa7q6k{border:1px solid var(–zephr-color-background-tinted)}.zephr-payment-form-input-select.unselected.svelte-aa7q6k{color:var(–zephr-color-background-tinted)}.zephr-payment-form-input-select.error.svelte-aa7q6k{border-color:var(–zephr-color-warning-main)}.zephr-payment-form-input-textarea.svelte-aa7q6k{display:block;min-height:calc(var(–zephr-input-height) * 1px);min-width:100%;max-width:100%;background-color:#fff;border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);transition:border-color 0.25s ease, box-shadow 0.25s ease;color:var(–zephr-color-text-main);font-size:16px;font-weight:300;padding:16px 8px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont);outline:0}.zephr-payment-form-input-textarea.svelte-aa7q6k::placeholder{color:var(–zephr-color-background-tinted);font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-input-slider-output.svelte-aa7q6k{margin:13px 0 0 10px} .zephr-form-link.svelte-64wplc{margin:10px 0;color:#6ba5e9;text-decoration:underline;cursor:pointer;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-form-link-disabled.svelte-64wplc{color:var(–zephr-color-text-main);cursor:none;text-decoration:none} .zephr-form-reset-link-container.svelte-169ojh9{min-height:2.5em}.zephr-form-link-message.svelte-169ojh9{margin:10px 0 10px 20px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)} .zephr-form-reset-link-container.svelte-169ojh9{min-height:2.5em}.zephr-form-link-message.svelte-169ojh9{margin:10px 0 10px 20px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)} .zephr-payment-form-google-icon.svelte-1fdq0ht{width:20px} .zephr-payment-form-social-sign-in.svelte-1lnimbl{align-items:center}.zephr-payment-form-social-sign-in-button.svelte-1lnimbl{width:100%;min-height:55px;padding:15px;color:#000;background-color:#fff;box-shadow:0 0 5px rgba(0, 0, 0, 0.3);border-radius:10px;font-size:17px;display:flex;align-items:center;cursor:pointer;margin-top:20px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-payment-form-social-sign-in-button.svelte-1lnimbl:hover{background-color:#fafafa}.zephr-payment-form-social-sign-in-icon.svelte-1lnimbl{display:flex;justify-content:center;margin-right:30px;width:25px} .zephr-payment-form-promo-input-container.svelte-19ehzvb{flex:0.4}.zephr-payment-form-promo-activate-line.svelte-19ehzvb{display:flex;cursor:pointer;min-height:calc(var(–zephr-input-height) * 1px);margin:1em 1.2em;line-height:calc(var(–zephr-input-height) * 1px);color:#6ba5e9}.zephr-payment-form-promo-line.svelte-19ehzvb{display:flex;min-height:calc(var(–zephr-input-height) * 1px);margin:1em 1.2em}.zephr-payment-form-addon-line.svelte-19ehzvb{display:flex;padding-top:1em;padding-bottom:1em;margin-left:1.2em}.zephr-payment-form-summary-prorate-disclaimer.svelte-19ehzvb{padding-top:0.25em;padding-left:1em;color:var(–zephr-color-text-tinted)}.zephr-payment-form-summary-charge-description.svelte-19ehzvb{color:var(–zephr-color-text-tinted)}.zephr-payment-form-charge-line.svelte-19ehzvb{display:flex;padding-top:1em;margin-left:1.2em;padding-left:1em}.zephr-payment-form-summary-line-right.svelte-19ehzvb{margin-left:auto;margin-right:1.5em;text-align:right}.zephr-payment-form-summary-line-left.svelte-19ehzvb{margin-left:10px}.zephr-payment-form-summary-promo-middle.svelte-19ehzvb{position:relative;top:calc(var(–zephr-input-height) * 0.5px)}.zephr-payment-form-summary.svelte-19ehzvb{border:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);border-radius:calc(var(–zephr-input-borderRadius) * 1px);padding-top:1em;padding-bottom:1em;font-size:12px;margin-top:1.5em;margin-bottom:1.5em;color:var(–zephr-color-text-main)}.zephr-payment-form-summary-title.svelte-19ehzvb{margin-bottom:1em;margin-left:1.2em}.zephr-payment-form-summary-price-line.svelte-19ehzvb{font-weight:bold;padding-left:1em;padding-top:1em}.zephr-payment-form-summary-line.svelte-19ehzvb{display:flex}.zephr-payment-form-summary-price-line-upper.svelte-19ehzvb{border-top:calc(var(–zephr-input-borderWidth) * 1px) solid var(–zephr-input-borderColor);margin-top:1em}.zephr-payment-form-summary-line-title.svelte-19ehzvb{flex:0 0 65%;margin-left:1.2em}.zephr-payment-form-summary-line-price.svelte-19ehzvb{flex:1;text-align:right;margin-right:1.5em} .zephr-payment-form-divider-container.svelte-1r7mx4e{display:flex;align-items:center;justify-content:center;margin:1.5em 0}.zephr-payment-form-divider-line.svelte-1r7mx4e{height:1px;width:50%;margin:0 5px;background-color:var(–zephr-color-text-tinted)}.zephr-form-divider-line-complete.svelte-1r7mx4e{height:1px;width:100%;margin:0 5px;background-color:var(–zephr-color-text-tinted)}.zephr-payment-form-divider-text.svelte-1r7mx4e{margin:0 12px;color:var(–zephr-color-text-main);font-size:14px;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont);white-space:nowrap} .zephr-payment-login-link.svelte-1k0atj2.svelte-1k0atj2{margin-top:1em;margin-bottom:1em;text-align:center}.zephr-payment-login-link.svelte-1k0atj2>a.svelte-1k0atj2{color:#6ba5e9;margin-left:0.25em} .zephr-form-account-code-container.svelte-ctt9he{margin-top:1.5em} .zephr-form-invitation-container.svelte-18irzig{border:1px solid;margin:1.5em 0;padding:20px;color:var(–zephr-color-text-main)}.zephr-form-invitation-title.svelte-18irzig{margin-bottom:20px;font-weight:bold;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-form-invitation-email.svelte-18irzig{display:flex;align-items:center}.zephr-form-invitation-input-container.svelte-18irzig{flex-grow:1}.zephr-form-invitation-success-message.svelte-18irzig{margin-top:0.5em} .zephr-payment-form-max-width.svelte-rcq0jj{max-width:440px;margin:auto}.close-button-container.svelte-rcq0jj{text-align:right;width:100%;margin-bottom:15px}.close-button.svelte-rcq0jj{cursor:pointer;display:inline;padding:7px;min-width:32px;min-height:32px;border-radius:16px;margin:1px} .zephr-form{margin:20px auto;padding:20px;background-color:#fff;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)}.zephr-form *{box-sizing:border-box}:where(.zephr-form) button{text-transform:unset;overflow:visible;font-family:unset;font-size:unset;line-height:unset;margin:unset;padding:unset;border:unset;background:unset}.zephr-payment-form-text > *{color:var(–zephr-color-text-main)}.apple-pay-button{display:inline-block;-webkit-appearance:-apple-pay-button;-apple-pay-button-type:pay;width:440px;max-width:100%;height:45px;margin-top:20px}.apple-pay-button-black{-apple-pay-button-style:black}.zephr-payment-form-disabled-div{pointer-events:none;opacity:0.8}.zephr-payment-form-relative-container{position:relative}.zephr-payment-form-flex-container{display:flex}.zephr-form-input-inner-button{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);right:5px;padding:10px 5px}.zephr-payment-form-input-inner-text{color:var(–zephr-color-text-main);font-size:12px;font-weight:bold;font-family:var(–zephr-typography-body-font), var(–zephr-typography-body-fallbackFont)} !function(){“use strict”;function e(){}function t(e,t){for(const r in t)e[r]=t[r];return e}function r(e){return e()}function n(){return Object.create(null)}function a(e){e.forEach(r)}function o(e){return”function”==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&”object”==typeof e||”function”==typeof e}let s;function c(e,t){return e===t||(s||(s=document.createElement(“a”)),s.href=t,e===s.href)}function l(e,t,r,n){if(e){const a=u(e,t,r,n);return e[0](a)}}function u(e,r,n,a){return e[1]&&a?t(n.ctx.slice(),e[1](a(r))):n.ctx}function d(e,t,r,n){if(e[2]&&n){const a=e[2](n(r));if(void 0===t.dirty)return a;if(“object”==typeof a){const e=[],r=Math.max(t.dirty.length,a.length);for(let n=0;n32){const t=[],r=e.ctx.length/32;for(let e=0;e<r;e++)t[e]=-1;return t}return-1}function f(e){return null==e?"":e}function g(e,t){e.appendChild(t)}function h(e,t,r){e.insertBefore(t,r||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function A(e,t){for(let r=0;re.removeEventListener(t,r,n)}function T(e){return function(t){return t.preventDefault(),e.call(this,t)}}function O(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const I=[“width”,”height”];function w(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)null==t[n]?e.removeAttribute(n):”style”===n?e.style.cssText=t[n]:”__value”===n?e.value=e[n]=t[n]:r[n]&&r[n].set&&-1===I.indexOf(n)?e[n]=t[n]:O(e,n,t[n])}function R(e,t){t=””+t,e.data!==t&&(e.data=t)}function _(e,t){e.value=null==t?””:t}function M(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?”important”:””)}function N(e,t,r){for(let r=0;r{const a=e.$$.callbacks[t];if(a){const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}(t,r,{cancelable:n});return a.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const G=[],B=[];let V=[];const U=[],j=Promise.resolve();let q=!1;function K(e){V.push(e)}const H=new Set;let W=0;function Y(){if(0!==W)return;const e=k;do{try{for(;W<G.length;){const e=G[W];W++,x(e),Q(e.$$)}}catch(e){throw G.length=0,W=0,e}for(x(null),G.length=0,W=0;B.length;)B.pop()();for(let e=0;e{J.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}else n&&n()}function ne(e){return void 0!==e?.length?e:Array.from(e)}function ae(e,t){const r={},n={},a={$$scope:1};let o=e.length;for(;o–;){const i=e[o],s=t[o];if(s){for(const e in i)e in s||(n[e]=1);for(const e in s)a[e]||(r[e]=s[e],a[e]=1);e[o]=s}else for(const e in i)a[e]=1}for(const e in n)e in r||(r[e]=void 0);return r}function oe(e){return”object”==typeof e&&null!==e?e:{}}function ie(e){e&&e.c()}function se(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),K((()=>{const t=e.$$.on_mount.map(r).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(…t):a(t),e.$$.on_mount=[]})),s.forEach(K)}function ce(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];V.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),V=t}(r.after_update),a(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function le(e,t){-1===e.$$.dirty[0]&&(G.push(e),q||(q=!0,j.then(Y)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const a=n.length?n[0]:r;return p.ctx&&s(p.ctx[e],p.ctx[e]=a)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](a),m&&le(t,e)),r})):[],p.update(),m=!0,a(p.before_update),p.fragment=!!i&&i(p.ctx),r.target){if(r.hydrate){const e=function(e){return Array.from(e.childNodes)}(r.target);p.fragment&&p.fragment.l(e),e.forEach(y)}else p.fragment&&p.fragment.c();r.intro&&te(t.$$.fragment),se(t,r.target,r.anchor),Y()}x(d)}class de{$$=void 0;$$set=void 0;$destroy(){ce(this,1),this.$destroy=e}$on(t,r){if(!o(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}”undefined”!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add(“4″);const pe=”700px”,me=”10000px”,fe=”0px”,ge=500;function he(e,t){let r=t;e.style.maxHeight=t?me:fe,e.style.overflow=t?”unset”:”hidden”;const n=window.matchMedia(“(prefers-reduced-motion: reduce)”).matches;return n&&(e.style.display=t?”unset”:”none”),{update(t){if(n)return void(e.style.display=t?”unset”:”none”);if(t===r)return;r=t;const a=t?pe:fe,o=t?fe:pe;e.animate([{maxHeight:o,overflow:”hidden”},{maxHeight:a,overflow:”hidden”}],{duration:ge,fill:”both”}).addEventListener(“finish”,(()=>{t&&e.animate([{maxHeight:a,overflow:”hidden”},{maxHeight:me,overflow:”hidden”}],{duration:100,fill:”both”})}))}}}const ye=”progress_bar”,Ae=”payment_option_selection”,Ce=”password”,Ee=”otp_code”,be=”button”,Se=”payment”,Pe=”payment-pre-loader”,ve=”email_address”,Te=”success_message”,Oe=”text”,Ie=”user_attribute”,we=”link”,Re=”resend_login_link”,_e=”social_sign_in”,Me=”payment_summary”,Ne=”divider”,$e=”show_login_link”,Le=”account_code”,ke=”mobile_payment”,xe=”invitation”,Fe=”template_component”;var De;!function(e){e.FORM_START=”FORM_START”,e.LOGIN_REGISTRATION_COMPLETE=”LOGIN_REGISTRATION_COMPLETE”,e.SECTION_EMAIL_COMPLETE=”SECTION_EMAIL_COMPLETE”,e.SECTION_PASSWORD_RESET_COMPLETE=”SECTION_PASSWORD_RESET_COMPLETE”,e.SECTION_FORGOT_PASSWORD_COMPLETE=”SECTION_FORGOT_PASSWORD_COMPLETE”,e.PART_PLAN_SELECT_COMPLETE=”PART_PLAN_SELECT_COMPLETE”,e.PART_ACCOUNT_VERIFICATION_COMPLETE=”PART_ACCOUNT_VERIFICATION_COMPLETE”,e.PART_PAYMENT_COMPLETE=”PART_PAYMENT_COMPLETE”,e.PART_SUCCESS_COMPLETE=”PART_SUCCESS_COMPLETE”,e.PART_CONTACT_VERIFICATION_COMPLETE=”PART_CONTACT_VERIFICATION_COMPLETE”,e.PART_PROFILE_UPDATE_COMPLETE=”PART_PROFILE_UPDATE_COMPLETE”,e.REGISTRATION_CUSTOM_COMPLETE=”REGISTRATION_CUSTOM_COMPLETE”}(De||(De={}));const ze={PLAN_SELECT:{type:”plan-select”,order:0,completionEvent:De.PART_PLAN_SELECT_COMPLETE},ACCOUNT_VERIFICATION:{type:”account-verification”,order:1,completionEvent:De.PART_ACCOUNT_VERIFICATION_COMPLETE},PAYMENT:{type:”payment”,order:2,completionEvent:De.PART_PAYMENT_COMPLETE},SUCCESS:{type:”success”,order:3,completionEvent:De.PART_SUCCESS_COMPLETE},CONTACT_VERIFICATION:{type:”contact-verification”,order:1,completionEvent:De.PART_CONTACT_VERIFICATION_COMPLETE},PROFILE_UPDATE:{type:”profile-update”,order:0,completionEvent:De.PART_PROFILE_UPDATE_COMPLETE}},Ge=e=>Object.values(ze).find((t=>t.type==e))||(()=>{throw`No part ${e} found`})();var Be;!function(e){e[e.USER_DOES_NOT_EXIST=0]=”USER_DOES_NOT_EXIST”,e[e.USER_ALREADY_EXISTS=1]=”USER_ALREADY_EXISTS”,e[e.PASSWORD_NOT_STRONG_ENOUGH=2]=”PASSWORD_NOT_STRONG_ENOUGH”,e[e.EMAIL_VERIFICATION_REQUIRED=3]=”EMAIL_VERIFICATION_REQUIRED”,e[e.VERIFICATION_CODE_OR_PASSWORD_INCORRECT=4]=”VERIFICATION_CODE_OR_PASSWORD_INCORRECT”,e[e.VERIFICATION_CODE_INCORRECT=5]=”VERIFICATION_CODE_INCORRECT”,e[e.LOGIN_FAILED=6]=”LOGIN_FAILED”,e[e.UNKNOWN_LOGIN_REGISTER_ERROR=7]=”UNKNOWN_LOGIN_REGISTER_ERROR”,e[e.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR=8]=”NO_COOKIE_FROM_LOGIN_REGISTER_ERROR”,e[e.NO_ACCOUNT_ACCESS=9]=”NO_ACCOUNT_ACCESS”,e[e.ACCOUNT_NOT_FOUND=10]=”ACCOUNT_NOT_FOUND”,e[e.PAYMENT_PROCESSING_ERROR=11]=”PAYMENT_PROCESSING_ERROR”,e[e.MOBILE_PAYMENT_PROCESSING_ERROR=12]=”MOBILE_PAYMENT_PROCESSING_ERROR”,e[e.PASSWORD_RESET_LINK_SEND_ERROR=13]=”PASSWORD_RESET_LINK_SEND_ERROR”,e[e.PASSWORD_RESET_ERROR=14]=”PASSWORD_RESET_ERROR”,e[e.VERIFICATION_CODE_SEND_ERROR=15]=”VERIFICATION_CODE_SEND_ERROR”,e[e.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR=16]=”SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR”,e[e.PROMO_CODE_EXPIRED_ERROR=17]=”PROMO_CODE_EXPIRED_ERROR”,e[e.PROMO_CODE_INVALID_ERROR=18]=”PROMO_CODE_INVALID_ERROR”,e[e.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR=19]=”PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR”,e[e.INVITATION_FAILED_LIMIT_REACHED=20]=”INVITATION_FAILED_LIMIT_REACHED”,e[e.INVITATION_FAILED_DUPLICATE_EMAIL=21]=”INVITATION_FAILED_DUPLICATE_EMAIL”,e[e.INVITATION_FAILED_INVALID_EMAIL=22]=”INVITATION_FAILED_INVALID_EMAIL”,e[e.INVITATION_FAILED_NO_PRODUCT_ACCESS=23]=”INVITATION_FAILED_NO_PRODUCT_ACCESS”,e[e.INVITATION_FAILED_UNKNOWN=24]=”INVITATION_FAILED_UNKNOWN”,e[e.TOO_MANY_SESSIONS=25]=”TOO_MANY_SESSIONS”,e[e.INVALID_USER_ATTRIBUTES=26]=”INVALID_USER_ATTRIBUTES”,e[e.CONTACT_CREATION_NOT_ENABLED=27]=”CONTACT_CREATION_NOT_ENABLED”,e[e.NO_AUTHENTICATED_SESSION=28]=”NO_AUTHENTICATED_SESSION”,e[e.BLOCKED_EMAIL_DOMAIN=29]=”BLOCKED_EMAIL_DOMAIN”,e[e.UNKNOWN=30]=”UNKNOWN”}(Be||(Be={}));const Ve={[Be.USER_DOES_NOT_EXIST]:{languagePackKey:”forms.errors.user-not-found”,fallbackMessage:”User not found.”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Be.USER_ALREADY_EXISTS]:{languagePackKey:”forms.errors.email-taken”,fallbackMessage:”This email address is already registered. Please log in to continue.”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Be.EMAIL_VERIFICATION_REQUIRED]:{languagePackKey:”forms.errors.email-verification-required”,fallbackMessage:”Email verification is required”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Be.VERIFICATION_CODE_OR_PASSWORD_INCORRECT]:{languagePackKey:”forms.errors.otp-or-password-incorrect”,fallbackMessage:”The password or code you entered is incorrect.”,displayOnElements:[Ee,Ce]},[Be.VERIFICATION_CODE_INCORRECT]:{languagePackKey:”forms.errors.otp-incorrect”,fallbackMessage:”The code you entered is incorrect.”,displayOnElements:[Ee]},[Be.LOGIN_FAILED]:{languagePackKey:”forms.errors.login-failed”,fallbackMessage:”The email address or password you entered is incorrect.”,displayOnElements:[Ce,Ee]},[Be.PASSWORD_NOT_STRONG_ENOUGH]:{languagePackKey:”n/a”,fallbackMessage:””,useDymamicMessage:!0,displayOnElements:[Ce]},[Be.UNKNOWN_LOGIN_REGISTER_ERROR]:{languagePackKey:”forms.errors.unknown-error”,fallbackMessage:”Something went wrong. Please try again later”,displayOnElements:[Ce,Ee]},[Be.NO_COOKIE_FROM_LOGIN_REGISTER_ERROR]:{languagePackKey:”forms.errors.unknown-error”,fallbackMessage:”Something went wrong. Please try again later”,displayOnElements:[Ce,Ee]},[Be.NO_ACCOUNT_ACCESS]:{languagePackKey:”forms.errors.too-many-requests”,fallbackMessage:”To gain login access, please contact your administrator.”,displayOnElements:[Ce]},[Be.ACCOUNT_NOT_FOUND]:{languagePackKey:”forms.errors.company-account-not-found”,fallbackMessage:”Account not found.”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[Le]},[Be.PAYMENT_PROCESSING_ERROR]:{languagePackKey:”forms.errors.unknown-payment-error”,fallbackMessage:”Something went wrong when processing your payment. Please try again later.”,displayOnElements:[Se]},[Be.MOBILE_PAYMENT_PROCESSING_ERROR]:{languagePackKey:”forms.errors.unknown-payment-error”,fallbackMessage:”Something went wrong when processing your payment. Please try again later.”,displayOnElements:[ke]},[Be.PASSWORD_RESET_LINK_SEND_ERROR]:{languagePackKey:”forms.errors.password-reset-link-send-failed”,fallbackMessage:”Unable to send a password reset link. Please try again later”,displayOnElements:[we]},[Be.VERIFICATION_CODE_SEND_ERROR]:{languagePackKey:”forms.errors.otp-send-failed”,fallbackMessage:”Unable to send a verification code. Please try again later”,displayOnElements:[Ee]},[Be.PASSWORD_RESET_ERROR]:{languagePackKey:”forms.errors.password-reset-failed”,fallbackMessage:”Unable to reset your password. Please try again later”,displayOnElements:[Ce]},[Be.SOCIAL_SIGNIN_REGISTRATION_LOGIN_ERROR]:{languagePackKey:”forms.errors.unknown-error”,fallbackMessage:”Something went wrong. Please try again later”,displayOnElements:[_e]},[Be.PROMO_CODE_EXPIRED_ERROR]:{languagePackKey:”forms.errors.promo-code-expired”,fallbackMessage:”Promo code expired”,displayOnElements:[Me]},[Be.PROMO_CODE_INVALID_ERROR]:{languagePackKey:”forms.errors.promo-code-invalid”,fallbackMessage:”Invalid promo code”,displayOnElements:[Me]},[Be.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR]:{languagePackKey:”forms.errors.promo-code-invalid-for-payment-option”,fallbackMessage:”Promo code cannot be applied to selected option”,displayOnElements:[Me]},[Be.INVITATION_FAILED_LIMIT_REACHED]:{languagePackKey:”forms.errors.invitation-failed-limit-reached”,fallbackMessage:”You have reached the sharing limit for this product”,displayOnElements:[xe]},[Be.INVITATION_FAILED_DUPLICATE_EMAIL]:{languagePackKey:”forms.errors.invitation-failed-duplicate-email”,fallbackMessage:”An invite has already been created for this email”,displayOnElements:[xe]},[Be.INVITATION_FAILED_INVALID_EMAIL]:{languagePackKey:”forms.errors.invitation-failed-invalid-email”,fallbackMessage:”Invalid email address”,displayOnElements:[xe]},[Be.INVITATION_FAILED_NO_PRODUCT_ACCESS]:{languagePackKey:”forms.errors.invitation-failed-no-product-access”,fallbackMessage:”You do not currently have access to this product”,displayOnElements:[xe]},[Be.INVITATION_FAILED_UNKNOWN]:{languagePackKey:”forms.errors.unknown-error”,fallbackMessage:”Something went wrong. Please try again later”,displayOnElements:[xe]},[Be.TOO_MANY_SESSIONS]:{languagePackKey:”forms.errors.session-limit-reached”,fallbackMessage:”You have reached the session limit. Please log out from another device to access this content.”,displayOnElements:[ve]},[Be.INVALID_USER_ATTRIBUTES]:{languagePackKey:”forms.errors.user-attribute-invalid”,fallbackMessage:”Invalid User Attribute”,displayOnElements:[Ie]},[Be.CONTACT_CREATION_NOT_ENABLED]:{languagePackKey:”forms.errors.contact-creation-disabled”,fallbackMessage:”This operation is not possible at the moment, please try again later.”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Be.NO_AUTHENTICATED_SESSION]:{languagePackKey:”forms.errors.no-authenticated-session”,fallbackMessage:”Please login to update your profile”},[Be.BLOCKED_EMAIL_DOMAIN]:{languagePackKey:”forms.errors.email-domain-blocked”,fallbackMessage:”Please use a different email address, this domain is not supported.”,jumpToPart:ze.ACCOUNT_VERIFICATION.type,displayOnElements:[ve]},[Be.UNKNOWN]:{languagePackKey:”forms.errors.unknown-error”,fallbackMessage:”Something went wrong. Please try again later”}},Ue=(e,t)=>t.serverErrors.find((t=>Ve[t].displayOnElements?.includes(e)))??void 0,je={PLAN_SELECT:{type:”plan_select”,defaultLabel:”Plan Select”},EMAIL:{type:”email”,defaultLabel:”Account Verification”,completionEvent:De.SECTION_EMAIL_COMPLETE},PASSWORD_SETUP:{type:”password_setup”,defaultLabel:”Password Setup”},PASSWORDLESS_VIA_LOGIN_LINK:{type:”passwordless_login_via_link”,defaultLabel:”Passwordless Login via Login Link”},VERIFICATION_CODE_LOGIN:{type:”verification_code_login”,defaultLabel:””},VERIFICATION_CODE_REGISTRATION:{type:”verification_code_registration”,defaultLabel:””},LOGIN_PASSWORD:{type:”login_password”,defaultLabel:”Login”},REGISTRATION_CUSTOM:{type:”registration_custom”,defaultLabel:””},FORGOT_PASSWORD:{type:”forgot_password”,defaultLabel:””,completionEvent:De.SECTION_FORGOT_PASSWORD_COMPLETE},PASSWORD_RESET:{type:”reset_password”,defaultLabel:””,completionEvent:De.SECTION_PASSWORD_RESET_COMPLETE},SUCCESS:{type:”success”,defaultLabel:””},EMAIL_VERIFIED:{type:”email_verified”,defaultLabel:””}},qe=e=>Object.values(je).find((t=>t.type==e)),Ke=(e,t)=>t.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).find((t=>t.section.type===e)),He=(e,t,r)=>{const n=Ke(e,t);if(!n)throw`Cannot find section ${e}`;return tt({formActions:r,part:n.part,section:n.section}),Promise.resolve()},We=(e,t,r)=>{if(t.environment.previewMode)return;const n=t.parts.find((t=>t.type==e));return tt({formActions:r,part:n,section:n.sections[0]}),Promise.resolve()},Ye=(e,t,r)=>{const n=t.sections.findIndex((t=>t.order==e.order));return t.sections.length>n+1?{section:t.sections[n+1],part:t}:((e,t)=>{const r=Ge(e.type);if(r){const n=t.parts.find((e=>Ge(e.type).order===r.order+1))??t.parts[t.parts.indexOf(e)+1];if(n)return{section:n.sections[0],part:n}}return null})(t,r)},Qe=e=>e?.startsWith(“custom_”)?”registration_custom”:e,Je=(e,t,r)=>t.sectionFlow.sectionVisibilities.find((t=>t.type===Qe(e.type)))?.isVisible(t,r)??!0,Ze=(e,t,r)=>{const n=t.sectionFlow.sectionVisibilities.find((t=>t.type===Qe(e.type)));return(n?.isDisplayedInProgressBar&&Je(e,t,r))??!0},Xe=(e,t,r)=>{if(e.environment.previewMode)return;let n=0,a={part:t.currentPart,section:t.currentSection};do{if(n++,n>50)throw new Error(`Cannot move from ${t.currentPart.type}:${t.currentSection.type}. n Exceeded max loop size after ${a?.part?.type}:${a?.section?.type}n `);const r=Ye(a?.section,a?.part,e);if(r?.part.type===a?.part?.type&&r?.section.type===a?.section?.type&&r?.section.order===a?.section?.order)throw new Error(`Cannot move from ${t.currentPart.type}:${t.currentSection.type}. n Infinte loop found at next section ${r?.part?.type}:${r?.section?.type}n `);a=r}while(a&&!Je(a.section,e,t));if(!a||a.part!==t.currentPart){const n=Ge(t.currentPart.type),a=n?.completionEvent&&e.sectionFlow.eventHandlers[n.completionEvent];if(a)return a(e,t,r)}if(!a)throw”No next section”;return tt({formActions:r,part:a.part,section:a.section}),Promise.resolve()},et=(e,t,r)=>{if(e.environment.previewMode)return;const n=qe(t.currentSection.type);return((n&&e.sectionFlow.eventHandlers[n.completionEvent])??Xe)(e,t,r)},tt=({formActions:e,part:t,section:r})=>{e.updateFormState({currentPart:t,currentSection:r}),(()=>{try{const e=document.getElementById(“zephr-payment-form-root”),{top:t}=e.getBoundingClientRect();t<0&&e.scrollIntoView({block:"start",inline:"nearest"})}catch(e){console.error(e)}})()};function rt(e,t,r){const n=e.slice();n[6]=t[r];const a=!n[0]&&!n[6].isDisabled&&n[6].order<n[1].order;return n[7]=a,n}function nt(e){let t,r,n,a=ne(e[2]),o=[];for(let t=0;t<a.length;t+=1)o[t]=it(rt(e,a,t));return{c(){t=C("div");for(let e=0;e<o.length;e+=1)o[e].c();r=S(),n=C("progress"),O(t,"class","zephr-payment-form-flex-container"),O(n,"class","zephr-payment-form-progress-bar svelte-1be9qtg"),O(n,"id","progress-bar"),O(n,"max","100"),n.value=e[3]},m(e,a){h(e,t,a);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,null);h(e,r,a),h(e,n,a)},p(e,r){if(7&r){let n;for(a=ne(e[2]),n=0;n<a.length;n+=1){const i=rt(e,a,n);o[n]?o[n].p(i,r):(o[n]=it(i),o[n].c(),o[n].m(t,null))}for(;n{“disabled”in e&&r(0,i=e.disabled),”items”in e&&r(4,s=e.items)},e.$$.update=()=>{16&e.$$.dirty&&r(1,n=s.find((e=>e.isCurrent))),16&e.$$.dirty&&r(2,a=s.filter((e=>e.isVisible))),6&e.$$.dirty&&r(3,o=Math.floor(100/(a.length-1)*(n.isVisible?n.visibleOrder:Math.max.apply(Math,a.filter((e=>e.ordere.visibleOrder))))))},[i,n,a,o,s,e=>{e.onSelect()}]}class lt extends de{constructor(e){super(),ue(this,e,ct,st,i,{disabled:0,items:4})}}const ut=(e,t,r)=>{let n=0,a=0;return e.parts.flatMap((e=>e.sections.map((t=>({part:e,section:t}))))).map((({part:o,section:i})=>({type:i.type,isVisible:Ze(i,e,t),label:i.label??o.label??qe(i.type)?.defaultLabel,isCurrent:t.currentSection==i,isDisabled:t.loginRegistrationComplete&&![ze.PLAN_SELECT.type].includes(o.type),order:n++,visibleOrder:Ze(i,e,t)?a++:null,onSelect:()=>tt({formActions:r,part:o,section:i})})))},dt={matches:e=>e.type===ye,create:(e,t,r)=>({component:lt,props:{disabled:t.isBusy,items:ut(e,t,r)}})},pt=e=>e.typeConfiguration;function mt(t){let r,n,a,i;return{c(){r=C(“button”),n=b(t[1]),O(r,”class”,”zephr-payment-form-button svelte-1hlz8zp”),O(r,”type”,”submit”),r.disabled=t[0],$(r,”zephr-payment-form-button-top-margin”,!t[2]),$(r,”inputHeight”,t[3]),$(r,”aside”,t[4])},m(e,s){h(e,r,s),g(r,n),a||(i=v(r,”click”,T((function(){o(t[5])&&t[5].apply(this,arguments)}))),a=!0)},p(e,[a]){t=e,2&a&&R(n,t[1]),1&a&&(r.disabled=t[0]),4&a&&$(r,”zephr-payment-form-button-top-margin”,!t[2]),8&a&&$(r,”inputHeight”,t[3]),16&a&&$(r,”aside”,t[4])},i:e,o:e,d(e){e&&y(r),a=!1,i()}}}function ft(e,t,r){let{disabled:n}=t,{text:a}=t,{noMargin:o=!1}=t,{inputHeight:i=!1}=t,{aside:s=!1}=t,{onClick:c}=t;return e.$$set=e=>{“disabled”in e&&r(0,n=e.disabled),”text”in e&&r(1,a=e.text),”noMargin”in e&&r(2,o=e.noMargin),”inputHeight”in e&&r(3,i=e.inputHeight),”aside”in e&&r(4,s=e.aside),”onClick”in e&&r(5,c=e.onClick)},[n,a,o,i,s,c]}class gt extends de{constructor(e){super(),ue(this,e,ft,mt,i,{disabled:0,text:1,noMargin:2,inputHeight:3,aside:4,onClick:5})}}function ht(e){let t,r,n=e[1].highlightedText+””;return{c(){t=C(“div”),r=b(n),O(t,”class”,”box-top-text svelte-1heu7pz”)},m(e,n){h(e,t,n),g(t,r)},p(e,t){2&t&&n!==(n=e[1].highlightedText+””)&&R(r,n)},d(e){e&&y(t)}}}function yt(e){let t,r,n=e[1].disclaimerMessage+””;return{c(){t=C(“span”),r=b(n),O(t,”class”,”button-sub-text svelte-1heu7pz”)},m(e,n){h(e,t,n),g(t,r)},p(e,t){2&t&&n!==(n=e[1].disclaimerMessage+””)&&R(r,n)},d(e){e&&y(t)}}}function At(e){let t,r,n,a,i,s,c,l,u,d,p,m,f,A,E,b,P,I,w,R=(e[1].description??””)+””,_=e[1].highlightedText&&ht(e);f=new gt({props:{disabled:!1,text:e[1].selectButtonText??”Select Plan”,onClick:e[0]}});let N=e[1].disclaimerMessage&&yt(e);return{c(){t=C(“div”),r=C(“input”),i=S(),s=C(“div”),c=C(“div”),_&&_.c(),l=S(),u=C(“div”),d=C(“div”),p=S(),m=C(“div”),ie(f.$$.fragment),A=S(),N&&N.c(),O(r,”type”,”radio”),O(r,”name”,”boxSelect”),O(r,”id”,n=”boxSelect-“+e[1].slug+”-“+e[1].productId+”}”),r.value=a=e[1].price,O(r,”class”,”svelte-1heu7pz”),O(c,”class”,”box-top svelte-1heu7pz”),O(d,”class”,”box-content svelte-1heu7pz”),$(d,”styled-box-content”,e[2]),O(m,”class”,”box-bottom svelte-1heu7pz”),O(u,”class”,E=”inner-box “+(e[1].highlightedText||””)+” svelte-1heu7pz”),O(s,”class”,b=”box-container “+(e[1].highlightedText?”highlighted”:””)+” svelte-1heu7pz”),O(s,”aria-hidden”,”true”),M(s,”cursor”,”pointer”),O(t,”class”,”payment-option-wrapper svelte-1heu7pz”)},m(n,a){h(n,t,a),g(t,r),g(t,i),g(t,s),g(s,c),_&&_.m(c,null),g(s,l),g(s,u),g(u,d),d.innerHTML=R,g(u,p),g(u,m),se(f,m,null),g(m,A),N&&N.m(m,null),P=!0,I||(w=v(s,”click”,T((function(){o(e[0])&&e[0].apply(this,arguments)}))),I=!0)},p(t,[o]){e=t,(!P||2&o&&n!==(n=”boxSelect-“+e[1].slug+”-“+e[1].productId+”}”))&&O(r,”id”,n),(!P||2&o&&a!==(a=e[1].price))&&(r.value=a),e[1].highlightedText?_?_.p(e,o):(_=ht(e),_.c(),_.m(c,null)):_&&(_.d(1),_=null),(!P||2&o)&&R!==(R=(e[1].description??””)+””)&&(d.innerHTML=R),(!P||4&o)&&$(d,”styled-box-content”,e[2]);const i={};2&o&&(i.text=e[1].selectButtonText??”Select Plan”),1&o&&(i.onClick=e[0]),f.$set(i),e[1].disclaimerMessage?N?N.p(e,o):(N=yt(e),N.c(),N.m(m,null)):N&&(N.d(1),N=null),(!P||2&o&&E!==(E=”inner-box “+(e[1].highlightedText||””)+” svelte-1heu7pz”))&&O(u,”class”,E),(!P||2&o&&b!==(b=”box-container “+(e[1].highlightedText?”highlighted”:””)+” svelte-1heu7pz”))&&O(s,”class”,b)},i(e){P||(te(f.$$.fragment,e),P=!0)},o(e){re(f.$$.fragment,e),P=!1},d(e){e&&y(t),_&&_.d(),ce(f),N&&N.d(),I=!1,w()}}}function Ct(e,t,r){let{onSelect:n}=t,{paymentOption:a}=t,{styleDescription:o}=t;return e.$$set=e=>{“onSelect”in e&&r(0,n=e.onSelect),”paymentOption”in e&&r(1,a=e.paymentOption),”styleDescription”in e&&r(2,o=e.styleDescription)},[n,a,o]}class Et extends de{constructor(e){super(),ue(this,e,Ct,At,i,{onSelect:0,paymentOption:1,styleDescription:2})}}function bt(e,t,r){const n=e.slice();return n[5]=t[r],n}function St(e){let t,r;function n(){return e[4](e[5])}return t=new Et({props:{paymentOption:e[5],styleDescription:e[0].styleDescription,onSelect:n}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(r,a){e=r;const o={};4&a&&(o.paymentOption=e[5]),1&a&&(o.styleDescription=e[0].styleDescription),6&a&&(o.onSelect=n),t.$set(o)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Pt(e){let t,r,n=ne(e[2]),a=[];for(let t=0;tre(a[e],1,1,(()=>{a[e]=null}));return{c(){t=C(“div”);for(let e=0;e<a.length;e+=1)a[e].c();O(t,"class","payment-options-container svelte-88ms5s")},m(e,n){h(e,t,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,null);r=!0},p(e,[r]){if(7&r){let i;for(n=ne(e[2]),i=0;i<n.length;i+=1){const o=bt(e,n,i);a[i]?(a[i].p(o,r),te(a[i],1)):(a[i]=St(o),a[i].c(),te(a[i],1),a[i].m(t,null))}for(X(),i=n.length;i<a.length;i+=1)o(i);ee()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)te(a[e]);r=!0}},o(e){a=a.filter(Boolean);for(let e=0;e{“paymentOptions”in e&&r(3,a=e.paymentOptions),”config”in e&&r(0,o=e.config),”onSelect”in e&&r(1,i=e.onSelect)},e.$$.update=()=>{8&e.$$.dirty&&r(2,n=a.sort(((e,t)=>e.fieldOrder-t.fieldOrder)))},[o,i,n,a,e=>i(e)]}class Tt extends de{constructor(e){super(),ue(this,e,vt,Pt,i,{paymentOptions:3,config:0,onSelect:1})}}const Ot=(e,t)=>pt(e).changeSubscriptionMode?pt(e).paymentOptions.filter((e=>t.validChangeFromPlans.some((t=>t.productId===e.productId&&t.planSlug===e.slug)))):pt(e).paymentOptions,It={matches:e=>e.type===Ae,create:(e,t,r,n)=>({component:Tt,props:{paymentOptions:Ot(e,t),config:n||{},onSelect:e=>{r.updateFormState({paymentOption:e,serverErrors:[],billingAddress:{country:null,postalCode:null}}),r.completeSection()}}})};function wt(t){let r,n,a;return{c(){r=C(“div”),n=C(“div”),a=b(t[0]),O(n,”class”,”zephr-payment-form-error-message svelte-6a7bg3″),O(n,”aria-live”,”assertive”),O(r,”class”,”zephr-payment-form-error-message-min-height svelte-6a7bg3″)},m(e,t){h(e,r,t),g(r,n),g(n,a)},p(e,[t]){1&t&&R(a,e[0])},i:e,o:e,d(e){e&&y(r)}}}function Rt(e,t,r){let{error:n}=t;return e.$$set=e=>{“error”in e&&r(0,n=e.error)},[n]}class _t extends de{constructor(e){super(),ue(this,e,Rt,wt,i,{error:0})}}function Mt(e){let t,r,n,a,i;return{c(){t=C(“button”),r=C(“span”),n=b(e[15]),O(r,”class”,”zephr-payment-form-input-inner-text”),O(t,”type”,”button”),O(t,”class”,”zephr-form-input-inner-button”)},m(s,c){h(s,t,c),g(t,r),g(r,n),e[25](t),a||(i=v(t,”click”,T((function(){o(e[16])&&e[16].apply(this,arguments)}))),a=!0)},p(t,r){e=t,32768&r&&R(n,e[15])},d(r){r&&y(t),e[25](null),a=!1,i()}}}function Nt(e){let t,r;return t=new _t({props:{error:e[6]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};64&r&&(n.error=e[6]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function $t(e){let t,r,n,o,i,s,c,u,A,E,b,T,I,w,R,_,M,N,L=e[15]&&Mt(e);const k=e[23].default,x=l(k,e,e[22],null);let F=e[6]&&Nt(e);return{c(){t=C(“div”),r=C(“input”),T=S(),L&&L.c(),I=S(),x&&x.c(),w=S(),F&&F.c(),R=P(),O(r,”id”,e[0]),O(r,”name”,e[1]),r.required=e[3],r.disabled=e[4],O(r,”type”,e[2]),r.value=n=e[7]||null,O(r,”autocomplete”,o=e[18]||null),r.checked=i=e[9]||null,O(r,”placeholder”,s=e[8]||null),O(r,”pattern”,c=e[10]||null),O(r,”min”,u=e[11]||null),O(r,”max”,A=e[12]||null),O(r,”maxlength”,e[14]),O(r,”step”,E=e[13]||null),O(r,”class”,b=f(`zephr-payment-form-input ${e[2]&&`zephr-payment-form-input-${e[2]}`} ${e[17]?”zephr-payment-form-input-full-width”:””}`)+” svelte-7srm4j”),$(r,”disabled”,e[4]),$(r,”error”,e[5]||e[6]),O(t,”class”,”zephr-payment-form-input-inner-container svelte-7srm4j”)},m(n,a){h(n,t,a),g(t,r),e[24](r),g(t,T),L&&L.m(t,null),h(n,I,a),x&&x.m(n,a),h(n,w,a),F&&F.m(n,a),h(n,R,a),_=!0,M||(N=[v(r,”input”,e[21]),v(r,”paste”,e[21])],M=!0)},p(e,[a]){(!_||1&a)&&O(r,”id”,e[0]),(!_||2&a)&&O(r,”name”,e[1]),(!_||8&a)&&(r.required=e[3]),(!_||16&a)&&(r.disabled=e[4]),(!_||4&a)&&O(r,”type”,e[2]),(!_||128&a&&n!==(n=e[7]||null)&&r.value!==n)&&(r.value=n),(!_||262144&a&&o!==(o=e[18]||null))&&O(r,”autocomplete”,o),(!_||512&a&&i!==(i=e[9]||null))&&(r.checked=i),(!_||256&a&&s!==(s=e[8]||null))&&O(r,”placeholder”,s),(!_||1024&a&&c!==(c=e[10]||null))&&O(r,”pattern”,c),(!_||2048&a&&u!==(u=e[11]||null))&&O(r,”min”,u),(!_||4096&a&&A!==(A=e[12]||null))&&O(r,”max”,A),(!_||16384&a)&&O(r,”maxlength”,e[14]),(!_||8192&a&&E!==(E=e[13]||null))&&O(r,”step”,E),(!_||131076&a&&b!==(b=f(`zephr-payment-form-input ${e[2]&&`zephr-payment-form-input-${e[2]}`} ${e[17]?”zephr-payment-form-input-full-width”:””}`)+” svelte-7srm4j”))&&O(r,”class”,b),(!_||131092&a)&&$(r,”disabled”,e[4]),(!_||131172&a)&&$(r,”error”,e[5]||e[6]),e[15]?L?L.p(e,a):(L=Mt(e),L.c(),L.m(t,null)):L&&(L.d(1),L=null),x&&x.p&&(!_||4194304&a)&&p(x,k,e,e[22],_?d(k,e[22],a,null):m(e[22]),null),e[6]?F?(F.p(e,a),64&a&&te(F,1)):(F=Nt(e),F.c(),te(F,1),F.m(R.parentNode,R)):F&&(X(),re(F,1,1,(()=>{F=null})),ee())},i(e){_||(te(x,e),te(F),_=!0)},o(e){re(x,e),re(F),_=!1},d(r){r&&(y(t),y(I),y(w),y(R)),e[24](null),L&&L.d(),x&&x.d(r),F&&F.d(r),M=!1,a(N)}}}function Lt(e,t,r){let{$$slots:n={},$$scope:a}=t;const o=z();let i,s,{id:c}=t,{name:l=c}=t,{type:u=”text”}=t,{required:d=!0}=t,{disabled:p=!1}=t,{hasError:m=!1}=t,{errorMessage:f=null}=t,{value:g=””}=t,{placeholder:h=””}=t,{checked:y=!1}=t,{pattern:A=””}=t,{min:C=0}=t,{max:E=0}=t,{step:b=0}=t,{maxlength:S=null}=t,{innerText:P=null}=t,{innerTextOnClick:v=null}=t,{fill:T=!1}=t,{autocomplete:O=””}=t;var I;return I=()=>{P&&s&&i&&r(19,i.style.paddingRight=`${s.offsetWidth+8}px`,i)},F().$$.after_update.push(I),e.$$set=e=>{“id”in e&&r(0,c=e.id),”name”in e&&r(1,l=e.name),”type”in e&&r(2,u=e.type),”required”in e&&r(3,d=e.required),”disabled”in e&&r(4,p=e.disabled),”hasError”in e&&r(5,m=e.hasError),”errorMessage”in e&&r(6,f=e.errorMessage),”value”in e&&r(7,g=e.value),”placeholder”in e&&r(8,h=e.placeholder),”checked”in e&&r(9,y=e.checked),”pattern”in e&&r(10,A=e.pattern),”min”in e&&r(11,C=e.min),”max”in e&&r(12,E=e.max),”step”in e&&r(13,b=e.step),”maxlength”in e&&r(14,S=e.maxlength),”innerText”in e&&r(15,P=e.innerText),”innerTextOnClick”in e&&r(16,v=e.innerTextOnClick),”fill”in e&&r(17,T=e.fill),”autocomplete”in e&&r(18,O=e.autocomplete),”$$scope”in e&&r(22,a=e.$$scope)},[c,l,u,d,p,m,f,g,h,y,A,C,E,b,S,P,v,T,O,i,s,e=>{o(“change”,”checkbox”!==u?e.target.value:e.target.checked)},a,n,function(e){B[e?”unshift”:”push”]((()=>{i=e,r(19,i)}))},function(e){B[e?”unshift”:”push”]((()=>{s=e,r(20,s)}))}]}class kt extends de{constructor(e){super(),ue(this,e,Lt,$t,i,{id:0,name:1,type:2,required:3,disabled:4,hasError:5,errorMessage:6,value:7,placeholder:8,checked:9,pattern:10,min:11,max:12,step:13,maxlength:14,innerText:15,innerTextOnClick:16,fill:17,autocomplete:18})}}function xt(e){let t,r;return{c(){t=C(“span”),r=b(e[1]),O(t,”class”,”svelte-1ozx4pz”)},m(e,n){h(e,t,n),g(t,r)},p(e,t){2&t&&R(r,e[1])},d(e){e&&y(t)}}}function Ft(e){let t,r,n,a,o,i,s=e[1]&&xt(e);const c=e[5].default,u=l(c,e,e[4],null);return{c(){t=C(“label”),r=C(“span”),n=b(e[2]),a=S(),s&&s.c(),o=S(),u&&u.c(),O(r,”class”,”svelte-1ozx4pz”),O(t,”class”,”zephr-payment-form-input-label svelte-1ozx4pz”),O(t,”for”,e[0]),O(t,”style”,e[3])},m(e,c){h(e,t,c),g(t,r),g(r,n),g(t,a),s&&s.m(t,null),g(t,o),u&&u.m(t,null),i=!0},p(e,[r]){(!i||4&r)&&R(n,e[2]),e[1]?s?s.p(e,r):(s=xt(e),s.c(),s.m(t,o)):s&&(s.d(1),s=null),u&&u.p&&(!i||16&r)&&p(u,c,e,e[4],i?d(c,e[4],r,null):m(e[4]),null),(!i||1&r)&&O(t,”for”,e[0]),(!i||8&r)&&O(t,”style”,e[3])},i(e){i||(te(u,e),i=!0)},o(e){re(u,e),i=!1},d(e){e&&y(t),s&&s.d(),u&&u.d(e)}}}function Dt(e,t,r){let{$$slots:n={},$$scope:a}=t,{forInput:o}=t,{sublabel:i=””}=t,{label:s=””}=t,{style:c=””}=t;return e.$$set=e=>{“forInput”in e&&r(0,o=e.forInput),”sublabel”in e&&r(1,i=e.sublabel),”label”in e&&r(2,s=e.label),”style”in e&&r(3,c=e.style),”$$scope”in e&&r(4,a=e.$$scope)},[o,i,s,c,a,n]}class zt extends de{constructor(e){super(),ue(this,e,Dt,Ft,i,{forInput:0,sublabel:1,label:2,style:3})}}function Gt(e){let t,r,n,a,o;return t=new zt({props:{forInput:”zephr-payment-form-“+(e[3]?”password”:”confirm-password”),label:e[1]}}),a=new kt({props:{disabled:e[0],required:!0,id:”zephr-payment-form-“+(e[3]?”password”:”confirm-password”),type:e[11],value:e[9],placeholder:e[2],errorMessage:e[6],autocomplete:e[8],innerTextOnClick:e[12],innerText:e[10]?e[5]:e[4]}}),a.$on(“change”,e[13]),{c(){ie(t.$$.fragment),r=S(),n=C(“div”),ie(a.$$.fragment),O(n,”class”,”zephr-payment-form-relative-container”)},m(e,i){se(t,e,i),h(e,r,i),h(e,n,i),se(a,n,null),o=!0},p(e,[r]){const n={};8&r&&(n.forInput=”zephr-payment-form-“+(e[3]?”password”:”confirm-password”)),2&r&&(n.label=e[1]),t.$set(n);const o={};1&r&&(o.disabled=e[0]),8&r&&(o.id=”zephr-payment-form-“+(e[3]?”password”:”confirm-password”)),2048&r&&(o.type=e[11]),512&r&&(o.value=e[9]),4&r&&(o.placeholder=e[2]),64&r&&(o.errorMessage=e[6]),256&r&&(o.autocomplete=e[8]),1024&r&&(o.innerTextOnClick=e[12]),1072&r&&(o.innerText=e[10]?e[5]:e[4]),a.$set(o)},i(e){o||(te(t.$$.fragment,e),te(a.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),o=!1},d(e){e&&(y(r),y(n)),ce(t,e),ce(a)}}}function Bt(e,t,r){let n,{disabled:a}=t,{label:o}=t,{placeholder:i}=t,{isMainPassword:s}=t,{showLabel:c}=t,{hideLabel:l}=t,{error:u=null}=t,{onChange:d}=t,{autocomplete:p}=t,{password:m}=t,f=!1;return e.$$set=e=>{“disabled”in e&&r(0,a=e.disabled),”label”in e&&r(1,o=e.label),”placeholder”in e&&r(2,i=e.placeholder),”isMainPassword”in e&&r(3,s=e.isMainPassword),”showLabel”in e&&r(4,c=e.showLabel),”hideLabel”in e&&r(5,l=e.hideLabel),”error”in e&&r(6,u=e.error),”onChange”in e&&r(7,d=e.onChange),”autocomplete”in e&&r(8,p=e.autocomplete),”password”in e&&r(9,m=e.password)},e.$$.update=()=>{1024&e.$$.dirty&&r(11,n=f?”text”:”password”)},[a,o,i,s,c,l,u,d,p,m,f,n,()=>r(10,f=!f),({detail:e})=>d(e)]}class Vt extends de{constructor(e){super(),ue(this,e,Bt,Gt,i,{disabled:0,label:1,placeholder:2,isMainPassword:3,showLabel:4,hideLabel:5,error:6,onChange:7,autocomplete:8,password:9})}}function Ut(e){let t,r,n,a,o,i,s;function c(e,t){return”string”==typeof e[16][4]?qt:jt}let l=c(e),u=l(e);return{c(){t=E(“svg”),r=E(“g”),n=E(“g”),u.c(),O(n,”transform”,e[15]),O(r,”transform”,a=”translate(“+e[16][0]/2+” “+e[16][1]/2+”)”),O(r,”transform-origin”,o=e[16][0]/4+” 0″),O(t,”id”,e[1]),O(t,”class”,i=”svelte-fa svelte-fa-base “+e[0]+” svelte-bvo74f”),O(t,”style”,e[2]),O(t,”viewBox”,s=”0 0 “+e[16][0]+” “+e[16][1]),O(t,”aria-hidden”,”true”),O(t,”role”,”img”),O(t,”xmlns”,”http://www.w3.org/2000/svg”),$(t,”pulse”,e[8]),$(t,”svelte-fa-size-lg”,”lg”===e[3]),$(t,”svelte-fa-size-sm”,”sm”===e[3]),$(t,”svelte-fa-size-xs”,”xs”===e[3]),$(t,”svelte-fa-fw”,e[5]),$(t,”svelte-fa-pull-left”,”left”===e[6]),$(t,”svelte-fa-pull-right”,”right”===e[6]),$(t,”spin”,e[7])},m(a,o){h(a,t,o),g(t,r),g(r,n),u.m(n,null),e[23](t)},p(e,d){l===(l=c(e))&&u?u.p(e,d):(u.d(1),u=l(e),u&&(u.c(),u.m(n,null))),32768&d&&O(n,”transform”,e[15]),65536&d&&a!==(a=”translate(“+e[16][0]/2+” “+e[16][1]/2+”)”)&&O(r,”transform”,a),65536&d&&o!==(o=e[16][0]/4+” 0″)&&O(r,”transform-origin”,o),2&d&&O(t,”id”,e[1]),1&d&&i!==(i=”svelte-fa svelte-fa-base “+e[0]+” svelte-bvo74f”)&&O(t,”class”,i),4&d&&O(t,”style”,e[2]),65536&d&&s!==(s=”0 0 “+e[16][0]+” “+e[16][1])&&O(t,”viewBox”,s),257&d&&$(t,”pulse”,e[8]),9&d&&$(t,”svelte-fa-size-lg”,”lg”===e[3]),9&d&&$(t,”svelte-fa-size-sm”,”sm”===e[3]),9&d&&$(t,”svelte-fa-size-xs”,”xs”===e[3]),33&d&&$(t,”svelte-fa-fw”,e[5]),65&d&&$(t,”svelte-fa-pull-left”,”left”===e[6]),65&d&&$(t,”svelte-fa-pull-right”,”right”===e[6]),129&d&&$(t,”spin”,e[7])},d(r){r&&y(t),u.d(),e[23](null)}}}function jt(e){let t,r,n,a,o,i,s,c,l,u;return{c(){t=E(“path”),i=E(“path”),O(t,”d”,r=e[16][4][0]),O(t,”fill”,n=e[10]||e[4]||”currentColor”),O(t,”fill-opacity”,a=0!=e[13]?e[11]:e[12]),O(t,”transform”,o=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”),O(i,”d”,s=e[16][4][1]),O(i,”fill”,c=e[9]||e[4]||”currentColor”),O(i,”fill-opacity”,l=0!=e[13]?e[12]:e[11]),O(i,”transform”,u=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”)},m(e,r){h(e,t,r),h(e,i,r)},p(e,d){65536&d&&r!==(r=e[16][4][0])&&O(t,”d”,r),1040&d&&n!==(n=e[10]||e[4]||”currentColor”)&&O(t,”fill”,n),14336&d&&a!==(a=0!=e[13]?e[11]:e[12])&&O(t,”fill-opacity”,a),65536&d&&o!==(o=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”)&&O(t,”transform”,o),65536&d&&s!==(s=e[16][4][1])&&O(i,”d”,s),528&d&&c!==(c=e[9]||e[4]||”currentColor”)&&O(i,”fill”,c),14336&d&&l!==(l=0!=e[13]?e[12]:e[11])&&O(i,”fill-opacity”,l),65536&d&&u!==(u=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”)&&O(i,”transform”,u)},d(e){e&&(y(t),y(i))}}}function qt(e){let t,r,n,a;return{c(){t=E(“path”),O(t,”d”,r=e[16][4]),O(t,”fill”,n=e[4]||e[9]||”currentColor”),O(t,”transform”,a=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”)},m(e,r){h(e,t,r)},p(e,o){65536&o&&r!==(r=e[16][4])&&O(t,”d”,r),528&o&&n!==(n=e[4]||e[9]||”currentColor”)&&O(t,”fill”,n),65536&o&&a!==(a=”translate(“+e[16][0]/-2+” “+e[16][1]/-2+”)”)&&O(t,”transform”,a)},d(e){e&&y(t)}}}function Kt(t){let r,n=t[16][4]&&Ut(t);return{c(){n&&n.c(),r=P()},m(e,t){n&&n.m(e,t),h(e,r,t)},p(e,[t]){e[16][4]?n?n.p(e,t):(n=Ut(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&y(r),n&&n.d(e)}}}function Ht(e,t,r){let n,a,o,{class:i}=t,{id:s}=t,{style:c}=t,{icon:l}=t,{size:u}=t,{color:d}=t,{fw:p=!1}=t,{pull:m}=t,{scale:f=1}=t,{translateX:g=0}=t,{translateY:h=0}=t,{rotate:y}=t,{flip:A}=t,{spin:C=!1}=t,{pulse:E=!1}=t,{primaryColor:b=””}=t,{secondaryColor:S=””}=t,{primaryOpacity:P=1}=t,{secondaryOpacity:v=.4}=t,{swapOpacity:T=!1}=t;return e.$$set=e=>{“class”in e&&r(0,i=e.class),”id”in e&&r(1,s=e.id),”style”in e&&r(2,c=e.style),”icon”in e&&r(17,l=e.icon),”size”in e&&r(3,u=e.size),”color”in e&&r(4,d=e.color),”fw”in e&&r(5,p=e.fw),”pull”in e&&r(6,m=e.pull),”scale”in e&&r(18,f=e.scale),”translateX”in e&&r(19,g=e.translateX),”translateY”in e&&r(20,h=e.translateY),”rotate”in e&&r(21,y=e.rotate),”flip”in e&&r(22,A=e.flip),”spin”in e&&r(7,C=e.spin),”pulse”in e&&r(8,E=e.pulse),”primaryColor”in e&&r(9,b=e.primaryColor),”secondaryColor”in e&&r(10,S=e.secondaryColor),”primaryOpacity”in e&&r(11,P=e.primaryOpacity),”secondaryOpacity”in e&&r(12,v=e.secondaryOpacity),”swapOpacity”in e&&r(13,T=e.swapOpacity)},e.$$.update=()=>{16392&e.$$.dirty&&o&&u&&function(e,t){e.style.fontSize=t&&”lg”!==t&&”sm”!==t&&”xs”!==t?t.replace(“x”,”em”):””}(o,u),131072&e.$$.dirty&&r(16,n=l&&l.icon||[0,0,””,[],””]),8126464&e.$$.dirty&&r(15,a=function(e,t,r,n,a,o=1,i=””,s=””){let c=1,l=1;a&&(“horizontal”==a?c=-1:”vertical”==a?l=-1:c=l=-1),”string”==typeof e&&(e=parseFloat(e)),”string”==typeof t&&(t=parseFloat(t)),”string”==typeof r&&(r=parseFloat(r));let u=`translate(${t*o}${i},${r*o}${i}) scale(${c*e},${l*e})`;return n&&(u+=` rotate(${n}${s})`),u}(f,g,h,y,A,512))},[i,s,c,u,d,p,m,C,E,b,S,P,v,T,o,a,n,l,f,g,h,y,A,function(e){B[e?”unshift”:”push”]((()=>{o=e,r(14,o)}))}]}class Wt extends de{constructor(e){super(),ue(this,e,Ht,Kt,i,{class:0,id:1,style:2,icon:17,size:3,color:4,fw:5,pull:6,scale:18,translateX:19,translateY:20,rotate:21,flip:22,spin:7,pulse:8,primaryColor:9,secondaryColor:10,primaryOpacity:11,secondaryOpacity:12,swapOpacity:13})}}var Yt={prefix:”fas”,iconName:”circle-check”,icon:[512,512,[61533,”check-circle”],”f058″,”M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z”]},Qt={prefix:”fas”,iconName:”spinner”,icon:[512,512,[],”f110″,”M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z”]},Jt={prefix:”fas”,iconName:”check”,icon:[448,512,[10003,10004],”f00c”,”M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z”]},Zt={prefix:”fas”,iconName:”circle-xmark”,icon:[512,512,[61532,”times-circle”,”xmark-circle”],”f057″,”M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z”]};function Xt(e){let t,r,n,a,o,i,s,c;return o=new Wt({props:{icon:Yt,color:e[0]&&e[0]===e[1]?”#7bcb7f”:”#c4c4c4″}}),{c(){t=C(“div”),r=C(“ul”),n=C(“li”),a=C(“div”),ie(o.$$.fragment),i=S(),s=b(e[2]),O(a,”class”,”zephr-payment-form-password-requirement-icon svelte-5yypyx”),O(n,”class”,”zephr-payment-form-password-requirement svelte-5yypyx”),O(r,”class”,”svelte-5yypyx”),O(t,”class”,”zephr-payment-form-flex-container zephr-payment-form-password-match svelte-5yypyx”)},m(e,l){h(e,t,l),g(t,r),g(r,n),g(n,a),se(o,a,null),g(n,i),g(n,s),c=!0},p(e,[t]){const r={};3&t&&(r.color=e[0]&&e[0]===e[1]?”#7bcb7f”:”#c4c4c4″),o.$set(r),(!c||4&t)&&R(s,e[2])},i(e){c||(te(o.$$.fragment,e),c=!0)},o(e){re(o.$$.fragment,e),c=!1},d(e){e&&y(t),ce(o)}}}function er(e,t,r){let{password:n}=t,{confirmPassword:a}=t,{passwordsMatchText:o}=t;return e.$$set=e=>{“password”in e&&r(0,n=e.password),”confirmPassword”in e&&r(1,a=e.confirmPassword),”passwordsMatchText”in e&&r(2,o=e.passwordsMatchText)},[n,a,o]}class tr extends de{constructor(e){super(),ue(this,e,er,Xt,i,{password:0,confirmPassword:1,passwordsMatchText:2})}}function rr(e,t,r){const n=e.slice();return n[11]=t[r],n[13]=r,n}function nr(e){let t;return{c(){t=C(“div”),O(t,”class”,”zephr-payment-form-password-bar svelte-1se6g0r”),M(t,”background-color”,e[2]>e[13]?”#7bcb7f”:”#c4c4c4″)},m(e,r){h(e,t,r)},p(e,r){4&r&&M(t,”background-color”,e[2]>e[13]?”#7bcb7f”:”#c4c4c4″)},d(e){e&&y(t)}}}function ar(e){let t,r,n,a,o,i,s=e[1].minLengthValidationText+””;return n=new Wt({props:{icon:Yt,color:e[3]?”#7bcb7f”:”#c4c4c4″}}),{c(){t=C(“li”),r=C(“div”),ie(n.$$.fragment),a=S(),o=b(s),O(r,”class”,”zephr-payment-form-password-requirement-icon svelte-1se6g0r”),O(t,”class”,”zephr-payment-form-password-requirement svelte-1se6g0r”)},m(e,s){h(e,t,s),g(t,r),se(n,r,null),g(t,a),g(t,o),i=!0},p(e,t){const r={};8&t&&(r.color=e[3]?”#7bcb7f”:”#c4c4c4″),n.$set(r),(!i||2&t)&&s!==(s=e[1].minLengthValidationText+””)&&R(o,s)},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&y(t),ce(n)}}}function or(e){let t,r,n,a,o,i,s=e[1].uppercaseValidationText+””;return n=new Wt({props:{icon:Yt,color:e[6]?”#7bcb7f”:”#c4c4c4″}}),{c(){t=C(“li”),r=C(“div”),ie(n.$$.fragment),a=S(),o=b(s),O(r,”class”,”zephr-payment-form-password-requirement-icon svelte-1se6g0r”),O(t,”class”,”zephr-payment-form-password-requirement svelte-1se6g0r”)},m(e,s){h(e,t,s),g(t,r),se(n,r,null),g(t,a),g(t,o),i=!0},p(e,t){const r={};64&t&&(r.color=e[6]?”#7bcb7f”:”#c4c4c4″),n.$set(r),(!i||2&t)&&s!==(s=e[1].uppercaseValidationText+””)&&R(o,s)},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&y(t),ce(n)}}}function ir(e){let t,r,n,a,o,i,s=e[1].numberValidationText+””;return n=new Wt({props:{icon:Yt,color:e[5]?”#7bcb7f”:”#c4c4c4″}}),{c(){t=C(“li”),r=C(“div”),ie(n.$$.fragment),a=S(),o=b(s),O(r,”class”,”zephr-payment-form-password-requirement-icon svelte-1se6g0r”),O(t,”class”,”zephr-payment-form-password-requirement svelte-1se6g0r”)},m(e,s){h(e,t,s),g(t,r),se(n,r,null),g(t,a),g(t,o),i=!0},p(e,t){const r={};32&t&&(r.color=e[5]?”#7bcb7f”:”#c4c4c4″),n.$set(r),(!i||2&t)&&s!==(s=e[1].numberValidationText+””)&&R(o,s)},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&y(t),ce(n)}}}function sr(e){let t,r,n,a,o,i,s=e[1].symbolValidationText+””;return n=new Wt({props:{icon:Yt,color:e[4]?”#7bcb7f”:”#c4c4c4″}}),{c(){t=C(“li”),r=C(“div”),ie(n.$$.fragment),a=S(),o=b(s),O(r,”class”,”zephr-payment-form-password-requirement-icon svelte-1se6g0r”),O(t,”class”,”zephr-payment-form-password-requirement svelte-1se6g0r”)},m(e,s){h(e,t,s),g(t,r),se(n,r,null),g(t,a),g(t,o),i=!0},p(e,t){const r={};16&t&&(r.color=e[4]?”#7bcb7f”:”#c4c4c4″),n.$set(r),(!i||2&t)&&s!==(s=e[1].symbolValidationText+””)&&R(o,s)},i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){re(n.$$.fragment,e),i=!1},d(e){e&&y(t),ce(n)}}}function cr(e){let t,r,n,a,o,i,s,c,l=ne(Array(e[7])),u=[];for(let t=0;t<l.length;t+=1)u[t]=nr(rr(e,l,t));let d=e[0].minLength&&ar(e),p=e[0].requireUppercase&&or(e),m=e[0].requireNumbers&&ir(e),f=e[0].requireSpecialCharacters&&sr(e);return{c(){t=C("div");for(let e=0;e<u.length;e+=1)u[e].c();r=S(),n=C("div"),a=C("ul"),d&&d.c(),o=S(),p&&p.c(),i=S(),m&&m.c(),s=S(),f&&f.c(),O(t,"class","zephr-payment-form-password-progress svelte-1se6g0r"),O(a,"class","svelte-1se6g0r"),O(n,"class","zephr-payment-form-flex-container zephr-payment-form-password-requirements svelte-1se6g0r")},m(e,l){h(e,t,l);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(t,null);h(e,r,l),h(e,n,l),g(n,a),d&&d.m(a,null),g(a,o),p&&p.m(a,null),g(a,i),m&&m.m(a,null),g(a,s),f&&f.m(a,null),c=!0},p(e,[r]){if(4&r){let n;for(l=ne(Array(e[7])),n=0;n<l.length;n+=1){const a=rr(e,l,n);u[n]?u[n].p(a,r):(u[n]=nr(a),u[n].c(),u[n].m(t,null))}for(;n{d=null})),ee()),e[0].requireUppercase?p?(p.p(e,r),1&r&&te(p,1)):(p=or(e),p.c(),te(p,1),p.m(a,i)):p&&(X(),re(p,1,1,(()=>{p=null})),ee()),e[0].requireNumbers?m?(m.p(e,r),1&r&&te(m,1)):(m=ir(e),m.c(),te(m,1),m.m(a,s)):m&&(X(),re(m,1,1,(()=>{m=null})),ee()),e[0].requireSpecialCharacters?f?(f.p(e,r),1&r&&te(f,1)):(f=sr(e),f.c(),te(f,1),f.m(a,null)):f&&(X(),re(f,1,1,(()=>{f=null})),ee())},i(e){c||(te(d),te(p),te(m),te(f),c=!0)},o(e){re(d),re(p),re(m),re(f),c=!1},d(e){e&&(y(t),y(r),y(n)),A(u,e),d&&d.d(),p&&p.d(),m&&m.d(),f&&f.d()}}}function lr(e,t,r){let n,a,o,i,{passwordRequirements:s}=t,{passwordValidationTexts:c}=t,{onChange:l}=t,{password:u}=t,{passwordIsValid:d}=t,p=0,m=Object.values(s).reduce(((e,t)=>e+(t?1:0)),0);return e.$$set=e=>{“passwordRequirements”in e&&r(0,s=e.passwordRequirements),”passwordValidationTexts”in e&&r(1,c=e.passwordValidationTexts),”onChange”in e&&r(8,l=e.onChange),”password”in e&&r(9,u=e.password),”passwordIsValid”in e&&r(10,d=e.passwordIsValid)},e.$$.update=()=>{512&e.$$.dirty&&r(6,n=/[A-Z]+/.test(u)),512&e.$$.dirty&&r(5,a=/[0-9]+/.test(u)),512&e.$$.dirty&&r(4,o=/[^a-z0-9A-Z]+/.test(u)),513&e.$$.dirty&&r(3,i=u.length>=s.minLength),1797&e.$$.dirty&&(r(2,p=0),/[A-Z]+/.test(u)&&s.requireUppercase&&r(2,p+=1),/[0-9]+/.test(u)&&s.requireNumbers&&r(2,p+=1),/[^a-z0-9A-Z]+/.test(u)&&s.requireSpecialCharacters&&r(2,p+=1),u.length>=s.minLength&&s.minLength&&r(2,p+=1),p>=m!==d&&l(p>=m))},[s,c,p,i,o,a,n,m,l,u,d]}class ur extends de{constructor(e){super(),ue(this,e,lr,cr,i,{passwordRequirements:0,passwordValidationTexts:1,onChange:8,password:9,passwordIsValid:10})}}function dr(e){let t,r;return t=new ur({props:{password:e[7],passwordIsValid:e[9],passwordRequirements:e[1],passwordValidationTexts:e[11],onChange:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};128&r&&(n.password=e[7]),512&r&&(n.passwordIsValid=e[9]),2&r&&(n.passwordRequirements=e[1]),32&r&&(n.onChange=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function pr(e){let t,r;return t=new Vt({props:{disabled:e[6],password:e[8],isMainPassword:!1,label:e[0].confirm,hideLabel:e[0].hide,showLabel:e[0].show,placeholder:e[0].confirmPlaceholder,onChange:e[4],autocomplete:”new-password”}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};64&r&&(n.disabled=e[6]),256&r&&(n.password=e[8]),1&r&&(n.label=e[0].confirm),1&r&&(n.hideLabel=e[0].hide),1&r&&(n.showLabel=e[0].show),1&r&&(n.placeholder=e[0].confirmPlaceholder),16&r&&(n.onChange=e[4]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function mr(e){let t,r;return t=new tr({props:{password:e[7],confirmPassword:e[8],passwordsMatchText:e[11].passwordsMatchText}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};128&r&&(n.password=e[7]),256&r&&(n.confirmPassword=e[8]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function fr(e){let t,r;return t=new _t({props:{error:e[10]??””}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1024&r&&(n.error=e[10]??””),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function gr(e){let t,r,n,a,o,i,s;t=new Vt({props:{disabled:e[6],password:e[7],isMainPassword:!0,label:e[0].password,hideLabel:e[0].hide,showLabel:e[0].show,placeholder:e[0].placeholder,onChange:e[3],autocomplete:e[2]?”current-password”:”new-password”}});let c=e[0].passValidatorEnabled&&dr(e),l=!e[2]&&pr(e),u=e[0].passwordsMatchIndicatorEnabled&&mr(e),d=e[10]&&fr(e);return{c(){ie(t.$$.fragment),r=S(),c&&c.c(),n=S(),l&&l.c(),a=S(),u&&u.c(),o=S(),d&&d.c(),i=P()},m(e,p){se(t,e,p),h(e,r,p),c&&c.m(e,p),h(e,n,p),l&&l.m(e,p),h(e,a,p),u&&u.m(e,p),h(e,o,p),d&&d.m(e,p),h(e,i,p),s=!0},p(e,[r]){const s={};64&r&&(s.disabled=e[6]),128&r&&(s.password=e[7]),1&r&&(s.label=e[0].password),1&r&&(s.hideLabel=e[0].hide),1&r&&(s.showLabel=e[0].show),1&r&&(s.placeholder=e[0].placeholder),8&r&&(s.onChange=e[3]),4&r&&(s.autocomplete=e[2]?”current-password”:”new-password”),t.$set(s),e[0].passValidatorEnabled?c?(c.p(e,r),1&r&&te(c,1)):(c=dr(e),c.c(),te(c,1),c.m(n.parentNode,n)):c&&(X(),re(c,1,1,(()=>{c=null})),ee()),e[2]?l&&(X(),re(l,1,1,(()=>{l=null})),ee()):l?(l.p(e,r),4&r&&te(l,1)):(l=pr(e),l.c(),te(l,1),l.m(a.parentNode,a)),e[0].passwordsMatchIndicatorEnabled?u?(u.p(e,r),1&r&&te(u,1)):(u=mr(e),u.c(),te(u,1),u.m(o.parentNode,o)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),e[10]?d?(d.p(e,r),1024&r&&te(d,1)):(d=fr(e),d.c(),te(d,1),d.m(i.parentNode,i)):d&&(X(),re(d,1,1,(()=>{d=null})),ee())},i(e){s||(te(t.$$.fragment,e),te(c),te(l),te(u),te(d),s=!0)},o(e){re(t.$$.fragment,e),re(c),re(l),re(u),re(d),s=!1},d(e){e&&(y(r),y(n),y(a),y(o),y(i)),ce(t,e),c&&c.d(e),l&&l.d(e),u&&u.d(e),d&&d.d(e)}}}function hr(e,t,r){let{config:n}=t,{passwordRequirements:a}=t,{hideConfirmPassword:o}=t,{onPasswordChange:i}=t,{onConfirmPasswordChange:s}=t,{onPasswordIsValidChange:c}=t,{disabled:l}=t,{password:u}=t,{confirmPassword:d}=t,{passwordIsValid:p}=t,{error:m=null}=t,f={minLengthValidationText:n.minLengthValidation||`Must include at least ${a.minLength} characters`,uppercaseValidationText:n.uppercaseValidation||”Must include an uppercase letter”,numberValidationText:n.numberValidation||”Must include a number character”,symbolValidationText:n.symbolValidation||”Must include a supported symbol”,passwordsMatchText:n.passwordsMatchText||”Passwords match”};return e.$$set=e=>{“config”in e&&r(0,n=e.config),”passwordRequirements”in e&&r(1,a=e.passwordRequirements),”hideConfirmPassword”in e&&r(2,o=e.hideConfirmPassword),”onPasswordChange”in e&&r(3,i=e.onPasswordChange),”onConfirmPasswordChange”in e&&r(4,s=e.onConfirmPasswordChange),”onPasswordIsValidChange”in e&&r(5,c=e.onPasswordIsValidChange),”disabled”in e&&r(6,l=e.disabled),”password”in e&&r(7,u=e.password),”confirmPassword”in e&&r(8,d=e.confirmPassword),”passwordIsValid”in e&&r(9,p=e.passwordIsValid),”error”in e&&r(10,m=e.error)},[n,a,o,i,s,c,l,u,d,p,m,f]}class yr extends de{constructor(e){super(),ue(this,e,hr,gr,i,{config:0,passwordRequirements:1,hideConfirmPassword:2,onPasswordChange:3,onConfirmPasswordChange:4,onPasswordIsValidChange:5,disabled:6,password:7,confirmPassword:8,passwordIsValid:9,error:10})}}const Ar={matches:e=>e.type===Ce&&null!=e.config?.confirm,create:(e,t,r,n)=>({component:yr,props:{disabled:t.isBusy,config:n,passwordRequirements:e.organisationConfiguration.passwordStrengthRequirements,hideConfirmPassword:e.organisationConfiguration.hideConfirmPasswordOnRegForm,onPasswordChange:e=>r.updateFormState({createPassword:e}),onConfirmPasswordChange:e=>r.updateFormState({confirmCreatePassword:e}),onPasswordIsValidChange:e=>r.updateFormState({passwordIsValid:e}),password:t.createPassword,confirmPassword:t.confirmCreatePassword,passwordIsValid:t.passwordIsValid},isValid:null!=t.password&&(!n.passValidatorEnabled||t.passwordIsValid)&&(e.organisationConfiguration.hideConfirmPasswordOnRegForm||t.createPassword===t.confirmCreatePassword)})},Cr={matches:e=>e.type===Ce&&null==e.config?.confirm,create:(e,t,r,n)=>{return{component:Vt,props:{disabled:t.isBusy,label:n.password,placeholder:n.placeholder,isMainPassword:!0,showLabel:n.showLabel,hideLabel:n.hideLabel,password:t.password,autocomplete:”password”,onChange:e=>r.updateFormState({password:e})},isValid:(a=t.password,null!=a&&a.length>2)};var a}},Er={matches:e=>e.type===be&&!e.config.isLogin,create:(e,t,r,n)=>({component:gt,props:{disabled:t.isBusy||!t.canAttemptSectionCompletion,text:n.text,onClick:r.attemptCompleteSection}})};function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,”default”)?e.default:e}var Sr={exports:{}};!function(e){var t=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e},r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(); /** * @author Leandro Silva * @copyright 2012, 2017 Leandro Silva (http://grafluxe.com) * @license MIT * * @classdesc * Validate email address patterns that others don't. This project aims to support all common addresses along * with many rare ones that are considered valid under RFC standards. It can be used in both client and server * side environments. * *

* Valid email addresses that are supported: *