PageSourceSearch

https://www.spark.co.nz/etc.clientlibs/spark-spa/clientlibs/client…/resources/static/js/900.c133e6d5.chunk.js

js spark.co.nz collected 2026-09-24 08:51:24 UTC 762,309 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkspark_spa=globalThis.webpackChunkspark_spa||[]).push([[900],{78900:(e,t,n)=>{n.r(t),n.d(t,{Widget:()=>nv,WidgetWithTracking:()=>ov});var r=n(9950),i=n(44414),a=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>o(e,s(t)),f=(e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n};function g(){}function m(e,t){for(let n in t)e[n]=t[n];return e}function v(e){return e()}function w(){return Object.create(null)}function b(e){e.forEach(v)}function y(e){return"function"==typeof e}function _(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function k(e,...t){if(null==e)return g;let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function $(e){let t;return k(e,(e=>t=e))(),t}function S(e,t,n){e.$$.on_destroy.push(k(t,n))}function E(e,t,n,r){if(e){let i=x(e,t,n,r);return e[0](i)}}function x(e,t,n,r){return e[1]&&r?m(n.ctx.slice(),e[1](r(t))):n.ctx}function C(e,t,n,r){if(e[2]&&r){let i=e[2](r(n));if(void 0===t.dirty)return i;if("object"==typeof i){let e=[],n=Math.max(t.dirty.length,i.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|i[r];return e}return t.dirty|i}return t.dirty}function A(e,t,n,r,i,a){if(i){let o=x(t,n,r,a);e.p(o,i)}}function I(e){if(e.ctx.length>32){let t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function T(e,t){e.appendChild(t)}function O(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function M(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function L(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function R(e){return document.createTextNode(e)}function U(){return R(" ")}function N(){return R("")}function F(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function B(e){return function(t){return t.preventDefault(),e.call(this,t)}}function V(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function z(e){return""===e?null:+e}function j(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function H(e,t){e.value=null==t?"":t}!function(){if("undefined"==typeof document)return;let e=document.createElement("style");e.textContent="@layer fr-widget.base{:where(.fr_widget-root) *,\n:where(.fr_widget-root) ::before,\n:where(.fr_widget-root) ::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:where(.fr_widget-root) ::before,\n:where(.fr_widget-root) ::after{--tw-content:''}:where(.fr_widget-root){line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:'Open Sans',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji',Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}:where(.fr_widget-root) hr{height:0;color:inherit;border-top-width:1px}:where(.fr_widget-root) abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.fr_widget-root) h1,\n:where(.fr_widget-root) h2,\n:where(.fr_widget-root) h3,\n:where(.fr_widget-root) h4,\n:where(.fr_widget-root) h5,\n:where(.fr_widget-root) h6{font-size:inherit;font-weight:inherit}:where(.fr_widget-root) a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}:where(.tw_dark) :where(.fr_widget-root) a,\n:where(.tw_dark) :where(.fr_widget-root) a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}:where(.fr_widget-root) b,\n:where(.fr_widget-root) strong{font-weight:bolder}:where(.fr_widget-root) code,\n:where(.fr_widget-root) kbd,\n:where(.fr_widget-root) samp,\n:where(.fr_widget-root) pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;font-size:1em}:where(.fr_widget-root) small{font-size:80%}:where(.fr_widget-root) sub,\n:where(.fr_widget-root) sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:where(.fr_widget-root) sub{bottom:-0.25em}:where(.fr_widget-root) sup{top:-0.5em}:where(.fr_widget-root) table{text-indent:0;border-color:inherit;border-collapse:collapse}:where(.fr_widget-root) button,\n:where(.fr_widget-root) input,\n:where(.fr_widget-root) optgroup,\n:where(.fr_widget-root) select,\n:where(.fr_widget-root) textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}:where(.fr_widget-root) button,\n:where(.fr_widget-root) select{text-transform:none}:where(.fr_widget-root) button,\n:where(.fr_widget-root) [type='button'],\n:where(.fr_widget-root) [type='reset'],\n:where(.fr_widget-root) [type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none}:where(.fr_widget-root) :-moz-focusring{outline:auto}:where(.fr_widget-root) :-moz-ui-invalid{box-shadow:none}:where(.fr_widget-root) progress{vertical-align:baseline}:where(.fr_widget-root) ::-webkit-inner-spin-button,\n:where(.fr_widget-root) ::-webkit-outer-spin-button{height:auto}:where(.fr_widget-root) [type='search']{-webkit-appearance:textfield;outline-offset:-2px}:where(.fr_widget-root) ::-webkit-search-decoration{-webkit-appearance:none}:where(.fr_widget-root) ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(.fr_widget-root) summary{display:list-item}:where(.fr_widget-root) blockquote,\n:where(.fr_widget-root) dl,\n:where(.fr_widget-root) dd,\n:where(.fr_widget-root) h1,\n:where(.fr_widget-root) h2,\n:where(.fr_widget-root) h3,\n:where(.fr_widget-root) h4,\n:where(.fr_widget-root) h5,\n:where(.fr_widget-root) h6,\n:where(.fr_widget-root) hr,\n:where(.fr_widget-root) figure,\n:where(.fr_widget-root) p,\n:where(.fr_widget-root) pre{margin:0}:where(.fr_widget-root) fieldset{margin:0;padding:0}:where(.fr_widget-root) legend{padding:0}:where(.fr_widget-root) ol,\n:where(.fr_widget-root) ul,\n:where(.fr_widget-root) menu{list-style:none;margin:0;padding:0}:where(.fr_widget-root) textarea{resize:vertical}:where(.fr_widget-root) input::placeholder,\n:where(.fr_widget-root) textarea::placeholder{opacity:1;color:#9ca3af}:where(.fr_widget-root) button,\n:where(.fr_widget-root) [role='button']{curs
1or:pointer}:where(.fr_widget-root) :disabled{cursor:default}:where(.fr_widget-root) img,\n:where(.fr_widget-root) svg,\n:where(.fr_widget-root) video,\n:where(.fr_widget-root) canvas,\n:where(.fr_widget-root) audio,\n:where(.fr_widget-root) iframe,\n:where(.fr_widget-root) embed,\n:where(.fr_widget-root) object{display:block;vertical-align:middle}:where(.fr_widget-root) img,\n:where(.fr_widget-root) video{max-width:100%;height:auto}:where(.fr_widget-root) [hidden]{display:none}:where(.fr_widget-root) *,\n:where(.fr_widget-root) ::before,\n:where(.fr_widget-root) ::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }}@layer fr-widget.utilities{.tw_sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.tw_fixed{position:fixed}.tw_absolute{position:absolute}.tw_relative{position:relative}.tw_left-0{left:0px}.tw_right-1{right:0.25rem}.tw_top-0{top:0px}.tw_top-1{top:0.25rem}.tw_col-start-2{grid-column-start:2}.tw_row-start-2{grid-row-start:2}.tw_m-auto{margin:auto}.tw_my-4{margin-top:1rem;margin-bottom:1rem}.tw_my-6{margin-top:1.5rem;margin-bottom:1.5rem}.tw_-mt-5{margin-top:-1.25rem}.tw_mb-2{margin-bottom:0.5rem}.tw_mb-4{margin-bottom:1rem}.tw_mb-6{margin-bottom:1.5rem}.tw_mb-8{margin-bottom:2rem}.tw_ml-1{margin-left:0.25rem}.tw_ml-10{margin-left:2.5rem}.tw_mr-2{margin-right:0.5rem}.tw_mt-6{margin-top:1.5rem}.tw_block{display:block}.tw_inline-block{display:inline-block}.tw_flex{display:flex}.tw_grid{display:grid}.tw_hidden{display:none}.tw_h-24{height:6rem}.tw_h-28{height:7rem}.tw_h-32{height:8rem}.tw_h-4{height:1rem}.tw_h-8{height:2rem}.tw_h-full{height:100%}.tw_min-h-full{min-height:100%}.tw_w-24{width:6rem}.tw_w-28{width:7rem}.tw_w-4{width:1rem}.tw_w-8{width:2rem}.tw_w-auto{width:auto}.tw_w-full{width:100%}.tw_flex-1{flex:1 1 0%}.tw_border-collapse{border-collapse:collapse}@keyframes tw_spin{to{transform:rotate(360deg)}}.tw_animate-spin{animation:tw_spin 1s linear infinite}.tw_list-inside{list-style-position:inside}.tw_list-decimal{list-style-type:decimal}.tw_list-disc{list-style-type:disc}.tw_columns-2{-moz-columns:2;columns:2}.tw_grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.tw_grid-cols-\\[1\\.5em_1fr\\]{grid-template-columns:1.5em 1fr}.tw_grid-cols-\\[2\\.5em_1fr\\]{grid-template-columns:2.5em 1fr}.tw_grid-cols-\\[2em_1fr\\]{grid-template-columns:2em 1fr}.tw_flex-wrap{flex-wrap:wrap}.tw_justify-center{justify-content:center}.tw_justify-items-stretch{justify-items:stretch}.tw_gap-4{gap:1rem}.tw_overflow-hidden{overflow:hidden}.tw_rounded-full{border-radius:9999px}.tw_rounded-md{border-radius:0.375rem}.\\!tw_rounded-r-none{border-top-right-radius:0px!important;border-bottom-right-radius:0px!important}.tw_border{border-width:1px}.tw_border-0{border-width:0px}.tw_border-4{border-width:4px}.\\!tw_border-r-0{border-right-width:0px!important}.tw_border-b{border-bottom-width:1px}.tw_border-none{border-style:none}.tw_border-secondary-light{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.tw_border-transparent{border-color:transparent}.tw_bg-background-dark{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.tw_bg-background-light{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.tw_bg-body-light{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.tw_bg-transparent{background-color:transparent}.tw_bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.tw_fill-current{fill:currentColor}.tw_p-6{padding:1.5rem}.tw_py-4{padding-top:1rem;padding-bottom:1rem}.tw_pb-6{padding-bottom:1.5rem}.tw_pt-10{padding-top:2.5rem}.tw_text-center{text-align:center}.tw_text-right{text-align:right}.tw_align-top{vertical-align:top}.tw_font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace}.tw_text-4xl{font-size:2.25rem;line-height:2.5rem}.tw_text-base{font-size:0.9375rem;line-height:1.25}.tw_text-lg{font-size:1.25rem;line-height:1}.tw_text-sm{font-size:0.875rem;line-height:1.25}.tw_font-bold{font-weight:700}.tw_font-light{font-weight:300}.tw_font-semibold{font-weight:600}.tw_text-error-dark{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.tw_text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.tw_text-link-dark{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.tw_text-primary-light{--tw-text-opacity:1;color:rgb(2 122 184/var(--tw-text-opacity))}.tw_text-secondary-dark{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.tw_text-secondary-light{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.tw_shadow-\\[0_0_1rem_2rem_black\\]{--tw-shadow:0 0 1rem 2rem black;
1--tw-shadow-colored:0 0 1rem 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw_shadow-background-light{--tw-shadow-color:#f1f5f9;--tw-shadow:var(--tw-shadow-colored)}.tw_outline-none{outline:2px solid transparent;outline-offset:2px}.tw_focusable-element{--outline-color:hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.7);outline-color:var(--outline-color,rgba(126,34,206,0.30000000000000004));outline-offset:0;outline-style:solid;outline-width:0;transition:background-color ease-in-out 0.15s,outline-color ease-in-out 0.2s,outline-offset ease-in-out 0.1s}.tw_focusable-element:focus{--outline-color:hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.1);outline-offset:0;outline-width:3px;outline-color:var(--outline-color,rgba(126,34,206,0.9))}.tw_focusable-element:active{outline-offset:2px;outline-width:4px}.tw_input-spacing{margin-bottom:1rem}.tw_primary-header{--color:hsl(var(--tw-colors-header-dark-hs),var(--tw-colors-header-dark-l));--font-size:var(--tw-font-size-2xl-type);color:var(--color,#334155);font-size:var(--font-size,2rem);font-weight:300;margin-bottom:1rem;text-align:center}.tw_secondary-header{--font-size:var(--tw-font-size-lg-type);font-weight:500;font-size:var(--font-size,1.25rem);margin-bottom:1rem}}@layer fr-widget.components{.tw_alert{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));--border-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 10%));--font-size:var(--tw-font-size-base-type);background-color:var(--bg-color,#f1f5f9);border-color:var(--border-color,hsl(210,40%,86.5%));border-radius:0.25rem;border-width:1px;color:#000;font-size:var(--font-size,0.9375rem);margin-bottom:1.5rem;padding:1rem}.tw_alert:focus{--outline-color:hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.1);border-radius:0.25rem;outline-color:var(--outline-color,rgba(126,34,206,0.9));outline-offset:2px;outline-style:solid;outline-width:3px}.tw_alert-error{--bg-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));--border-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));background-color:var(--bg-color,#fecaca);border-color:var(--border-color,#991b1b)}.tw_alert-error svg{--color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));color:var(--color,#991b1b);fill:currentColor}.tw_alert-info{--bg-color:hsl(var(--tw-colors-primary-light-hs),calc(var(--tw-colors-primary-light-l) + 90%));--border-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));background-color:var(--bg-color,hsl(200.39999999999998,97.8%,69.3%));border-color:var(--border-color,#027AB8)}.tw_alert-info svg{--color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));color:var(--color,#334155);fill:currentColor}.tw_alert-success{--bg-color:hsl(var(--tw-colors-success-light-hs),var(--tw-colors-success-light-l));--border-color:hsl(var(--tw-colors-success-dark-hs),var(--tw-colors-success-dark-l));background-color:var(--alert-success-background-color,#bbf7d0);border-color:var(--border-color,#166534)}.tw_alert-success svg{--color:hsl(var(--tw-colors-success-dark-hs),var(--tw-colors-success-dark-l));color:var(--color,#166534);fill:currentColor}.tw_alert-warning{--bg-color:hsl(var(--tw-colors-warning-light-hs),var(--tw-colors-warning-light-l));--border-color:hsl(var(--tw-colors-warning-dark-hs),var(--tw-colors-warning-dark-l));background-color:var(--bg-color,#fef08a);border-color:var(--border-color,#854d0e)}.tw_alert-warning svg{--color:hsl(var(--tw-colors-warning-dark-hs),var(tw-tw-colors-warning-dark-l));color:var(--color,#854d0e);fill:currentColor}.tw_button-base{border:1px solid;border-radius:0.25rem;font-size:0.9375rem;outline-offset:0;position:relative;line-height:1.5;padding:0.75rem 1.5rem;z-index:0}.tw_button-base:focus{outline-offset:2px}.tw_button-base:active{outline-offset:3px}.tw_button-base::before{background:black;outline:1px solid black;border-radius:0.25rem;content:\"\";display:block;height:100%;left:0;position:absolute;opacity:0;top:0;transition:opacity 0.25s;width:100%;z-index:-1}.tw_button-base:hover::before, .tw_button-base:focus::before{opacity:0.05}.tw_button-primary{--bg-color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));--border-color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));background-color:var(--bg-color,#334155);border-color:var(--border-color,#334155);color:#fff}.tw_button-primary:hover::before, .tw_button-primary:focus::before{opacity:0.2}.tw_button-outline{--border-color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));border-color:var(--border-color,#374151)}.tw_button-secondary{--bg-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));background-color:var(--bg-color,#d1d5db);border-color:var(--border-color,#d1d5db);color:#000}.tw_button-secondary:hover::before, .tw_button-secondary:focus::before{opacity:0.1}.tw_checkbox-input{--accent-color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));accent-color:var(--accent-color,#334155);border-radius:0.25rem;flex:1;height:1rem;margin-right:0.25rem;position:relative;width:1rem;top:0.25rem}.tw_checkbox-input ~ span > .tw_input-error-message{display:none}.tw_checkbox-input ~ span > .tw_input-info-message{display:none}.tw_checkbox-input ~ * >
1 p{display:none}.tw_checkbox-input[aria-invalid=\"true\"]{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) + 1%));background:no-repeat url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgb(153, 27, 27)' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E\");background-color:var(--bg-color,hsl(210,40%,97%));background-position:right 0.75rem center;background-size:1rem 1rem}.tw_checkbox-input[aria-invalid=\"true\"] ~ * > p{display:block}.tw_checkbox-input[aria-invalid=\"true\"] ~ button{--border-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));border-color:var(--border-color,#991b1b)}.tw_checkbox-input.tw_checkbox-input[aria-invalid=\"true\"]{--outline-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l),0.8);outline-color:var(--outline-color,rgba(254,202,202,0.19999999999999996))}.tw_checkbox-input.tw_checkbox-input[aria-invalid=\"true\"]:focus{--outline-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l),0.5);outline-color:var(--outline-color,rgba(254,202,202,0.5))}.tw_checkbox-input[aria-invalid=\"true\"]:focus{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) + 5%));background-color:var(--bg-color,hsl(210,40%,100%))}.tw_form-base{}.tw_input-base{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 2%));--border:1px solid hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));--font-size:var(--tw-font-size-base-type);background-color:var(--bg-color,hsl(210,40%,94.2%));border:1px solid #9ca3af;border-radius:0.25rem;color:#000;font-size:var(--font-size,0.9375rem);line-height:1.5rem;padding:0.75rem}.tw_input-base:hover{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));background-color:var(--bg-color,#f1f5f9)}.tw_input-base:focus{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));background-color:var(--bg-color,#f1f5f9)}.tw_input-base[aria-invalid=\"true\"]{--border-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 2%));background:no-repeat url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgb(153, 27, 27)' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E\");border-color:var(--border-color,#991b1b);background-color:var(--bg-color,hsl(210,40%,94.2%));background-position:right 0.75rem center;background-size:1rem 1rem}.tw_input-base[aria-invalid=\"true\"] ~ button{--border-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));border-color:var(--border-color,#991b1b)}.tw_input-base.tw_input-base[aria-invalid=\"true\"]{--outline-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l),0.8);outline-color:var(--outline-color,rgba(254,202,202,0.19999999999999996))}.tw_input-base.tw_input-base[aria-invalid=\"true\"]:focus{--outline-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l),0.3);--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));outline-color:var(--outline-color,rgba(153,27,27,0.7));background-color:var(--bg-color,#f1f5f9)}.tw_input-base[aria-invalid=\"true\"]:hover{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));background-color:var(--bg-color,#f1f5f9)}.tw_input-label{--font-size:var(--tw-font-size-base-type);--color:hsl(var(--tw-colors-label-dark-hs),var(--tw-colors-label-dark-l));font-size:var(--font-size,0.9375rem);color:var(--color,#374151)}.tw_input-error-message{--color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));--font-size:var(--tw-font-size-sm-type);color:var(--color,#991b1b);font-size:var(--font-size,0.875rem);margin:0.25rem;width:100%}.tw_input-info-message{--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));--font-size:var(--tw-font-size-sm-type);color:var(--color,#374151);font-size:var(--font-size,0.875rem);margin:0.25rem;width:100%}.tw_input-info-message.tw_isInvalid{--color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));color:var(--color,#991b1b)}.tw_input-info-message_dark.tw_isInvalid{--color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));color:var(--color,#fecaca)}.tw_link{--color:hsl(var(--tw-colors-link-dark-hs),var(--tw-colors-link-dark-l));--font-size:var(--tw-font-size-base-type);color:var(--color,#2563eb);font-size:var(--font-size,0.9375rem);text-decoration:underline}.tw_link:hover{text-decoration:none}.tw_select-base{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 2%));--color:hsl(var(--tw-colors-label-dark-hs),var(--tw-colors-label-dark-l));-webkit-appearance:none;-moz-appearance:none;appearance:none;
1background:no-repeat right 0.75rem center url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgb(55, 65, 81)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\");background-color:var(--bg-color,hsl(210,40%,94.2%));background-size:16px 12px;color:var(--color,#374151);height:calc(3rem + 2px)}.tw_select-base:hover{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 5%));background-color:var(--bg-color,hsl(210,40%,91.3%))}.tw_select-base:focus{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 5%));background-color:var(--bg-color,hsl(210,40%,91.3%))}.tw_select-base[aria-invalid=\"true\"]{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 2%));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgb(55, 65, 81)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\"),url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgb(153, 27, 27)' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E\");background-color:var(--bg-color,hsl(210,40%,94.2%));background-position:right 0.75rem center,center right 2.25rem;background-size:16px 12px,1rem 1rem}.tw_spinner{vertical-align:-0.125em;border:0.25em solid;border-right-color:transparent}.tw_containing-box{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));background-color:var(--bg-color,#f1f5f9);border-color:#000;border-radius:0.25rem;box-shadow:0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);padding:1.5rem 1rem;width:500px}.tw_animated-check{cursor:pointer;font-size:1.5em;height:1em;position:relative;width:1em}.tw_animated-check:after{border:3px solid transparent;border-left:none;border-top:none;bottom:0.45em;content:\"\";left:0.15em;overflow:hidden;position:absolute;transform:rotate(45deg);transform-origin:left bottom;width:0.35em;will-change:height}.tw_animated-check:before{--border-color:hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));--outline-color:hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.7);border-color:var(--border-color,#9ca3af);border-radius:0.25rem;border-width:1px;content:\"\";display:block;height:100%;outline-color:var(--outline-color,rgba(126,34,206,0.30000000000000004));outline-offset:0;outline-style:solid;outline-width:0;position:absolute;transition:border-color ease-in-out 0.15s,border-width 250ms cubic-bezier(.4,.0,.23,1),box-shadow ease-in-out 0.15s,outline-color ease-in-out 0.2s,outline-offset ease-in-out 0.1s;width:100%}.tw_checkbox-input_animated ~ div > p{display:none}.tw_checkbox-input_animated[aria-invalid=\"true\"] ~ div > p{display:block}.tw_checkbox-input_animated:checked + label > span:after{animation:tw_check 100ms 250ms cubic-bezier(.4,.0,.23,1) forwards;content:\"\"}.tw_checkbox-input_animated:checked + label > span:before{--border-color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));animation:tw_squish 200ms cubic-bezier(.4,.0,.23,1);border-color:var(--border-color,#334155);border-width:0.5em}.tw_checkbox-input_animated:focus + label > span:before{--outline-color:hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.1);outline-color:var(--outline-color,rgba(126,34,206,0.9));outline-offset:1px;outline-width:3px}.tw_dialog-box{--bg-color:hsl(var(--tw-colors-background-light-hs),var(--tw-colors-background-light-l));--border:1px solid hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));background-color:var(--bg-color,#f1f5f9);border:var(--border,1px solid #374151);bottom:0;border-radius:0.25rem;box-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);height:100%;margin:0.5rem 0 0 0;max-height:100%;max-width:100%;padding:0px;top:0;width:100%;position:fixed}.tw_dialog-box_animate{opacity:0;top:75%;will-change:top,opacity}.tw_dialog-box_animate[open]{animation:tw_slideUp 100ms ease-out forwards}.tw_dialog-box_animate::backdrop{--bg-color:hsl(var(--tw-colors-body-light-hs),var(--tw-colors-body-light-l),0.2);animation:tw_fadeIn 500ms ease forwards;background-color:var(--bg-color,rgba(51,65,85,0.8))}.tw_dialog-body{margin:2.5rem 1.5rem}.tw_dialog-header{--border-bottom:1px solid hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));--bg-color:hsl(var(--tw-colors-tertiary-light-hs),var(--tw-colors-tertiary-light-l));align-items:stretch;background-color:var(--bg-color,#f1f5f9);border-bottom:var(--border-bottom,1px solid #9ca3af);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;display:flex;justify-content:center;min-height:10rem;padding:2rem 6rem;position:relative;margin-bottom:2rem}.tw_dialog-header .tw_dialog-logo{display:inline-flex;height:inherit}.tw_dialog-logo{background-image:var(--logo-light);background-position:center;background-repeat:no-repeat;background-size:contain;height:100%;width:100%}
1.tw_dialog-box_medium .tw_dialog-body{margin:1.5rem 3rem 4rem}.tw_dialog-box_medium .tw_dialog-header{padding:2rem 7rem;margin-bottom:4rem}.tw_dialog-closing[open]{animation:tw_slideDown 100ms ease-out forwards;display:block}.tw_dialog-closing::backdrop{--bg-color:hsl(var(--tw-colors-body-light-hs),var(--tw-colors-body-light-l),0.2);animation:tw_fadeOut 500ms ease-out forwards;background-color:var(--bg-color,rgba(51,65,85,0.8))}.tw_dialog-x{border-radius:0.25rem;margin-right:0.5rem;position:absolute;right:1rem;top:1.75rem}.tw_input-floating:focus, .tw_input-floating:not(:placeholder-shown){padding-bottom:0.25rem;padding-top:1.25rem}.tw_input-floating::-ms-reveal{display:none}.tw_input-floating::placeholder{color:transparent}.tw_input-floating:focus ~ label, .tw_input-floating:not(:placeholder-shown) ~ label{font-weight:500;transform:scale(0.85) translateY(-0.5rem) translateX(0.15rem)}.tw_input-floating-label{height:calc(3rem + 2px);line-height:1.5rem;padding:0.75rem;pointer-events:none;transform-origin:0 0;transition:opacity 0.1s ease-in-out,transform 0.1s ease-in-out;white-space:nowrap}.tw_input-stacked-label{display:block;font-weight:bold;line-height:1.5rem;margin-bottom:0.25rem}.tw_select-floating{line-height:1rem;padding:1.5rem 2.25rem 0.25rem 0.75rem}.tw_select-floating-label{font-weight:500;left:0px;top:0px;transform:scale(0.85) translateY(-0.5rem) translateX(0.15rem);transform-origin:top left;white-space:nowrap}.tw_animated-radio{position:relative;cursor:pointer;height:24px;width:24px}.tw_animated-radio:after{--bg-color:hsl(var(--tw-colors-primary-dark-hs),var(--tw-colors-primary-dark-l));background-color:var(--bg-color,#334155);border-radius:9999px;height:100%;left:0;overflow:hidden;position:absolute;top:0;transform:scale(0);transform-origin:center;width:100%;will-change:transform}.tw_animated-radio:before{--box-shadow:0 0 0 1px hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));border-color:#fff;border-radius:9999px;border-width:2px;
1box-shadow:var(--box-shadow,0 0 0 1px #9ca3af);content:\"\";cursor:pointer;display:block;height:100%;position:absolute;transition:border-width 250ms cubic-bezier(.4,.0,.23,1),box-shadow ease-in-out 0.15s;width:100%}.tw_radio-input_animated:focus + label > span:before{--box-shadow:0 0 0 4px hsl(var(--tw-colors-focus-default-hs),var(--tw-colors-focus-default-l),0.1)!important;box-shadow:var(--box-shadow,0 0 0 4px rgba(126,34,206,0.9))!important}.tw_radio-input_animated:checked + label > span:after{animation:tw_radio 125ms 150ms cubic-bezier(.4,.0,.23,1) forwards;content:\"\"}.tw_radio-input_animated:checked + label > span:before{animation:tw_squish 200ms cubic-bezier(.4,.0,.23,1);border-width:0.5em}.tw_button-apple{--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#000;color:#fff}.tw_button-apple:hover::before, .tw_button-apple:focus::before{opacity:0.1}.tw_button-facebook{--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#1877F2;color:#fff}.tw_button-facebook:hover::before, .tw_button-facebook:focus::before{opacity:0.1}.tw_button-google{--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#fff;color:#000}.tw_button-google:hover::before, .tw_button-google:focus::before{opacity:0.1}.tw_input-policies{--font-size:var(--tw-font-size-sm-type);font-size:var(--font-size,0.875rem)}.tw_input-policies p{font-weight:700;margin:0.25rem}.tw_input-policies ul{margin:0.25rem}.tw_kba-fieldset{--border-color:hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));border-color:var(--border-color,#9ca3af);position:relative;border-bottom-width:0;border-top-width:1px;border-top-style:dashed;padding-top:1.5rem}.tw_kba-fieldset > h2{display:none}.tw_kba-fieldset:first-of-type{border-top-width:0;margin-top:2.5rem}.tw_kba-fieldset:first-of-type > h2{display:block}.tw_kba-fieldset:first-of-type:after{--border-color:hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));border-color:var(--border-color,#9ca3af);border-top-width:1px;content:\"\";display:block;position:absolute;right:0;top:-0.1em;width:45%}.tw_kba-fieldset:first-of-type:before{--border-color:hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));border-color:var(--border-color,#9ca3af);border-top-width:1px;content:\"\";display:block;position:absolute;top:-0.1em;width:45%}.tw_kba-fieldset:first-of-type .tw_kba-lock-icon{display:flex}.tw_kba-fieldset:last-of-type{border-bottom-width:1px;margin-bottom:2rem;padding-bottom:1rem}.tw_kba-lock-icon{display:none;justify-content:center;position:absolute;top:-0.75rem;width:100%}.tw_kba-lock-icon > svg{--color:hsl(var(--tw-colors-secondary-default-hs),var(--tw-colors-secondary-default-l));color:var(--color,#9ca3af);fill:currentcolor;top:-0.75rem;width:3em}.tw_password-button{--bg-color:hsl(var(--tw-colors-background-light-hs),calc(var(--tw-colors-background-light-l) - 2%));background-color:var(--bg-color,hsl(210,40%,94.2%));border-left:0!important;border-top-left-radius:0px!important;border-bottom-left-radius:0px!important;display:flex;line-height:1.5rem;padding:0.25rem 0.75rem;text-align:center;vertical-align:middle;align-items:center}.tw_password-icon{--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));color:var(--color,#374151);fill:currentcolor}}@layer fr-widget.variants{:is(.tw_dark .dark\\:tw_alert_dark){--bg-color:hsl(var(--tw-colors-background-dark-hs),var(--tw-colors-background-dark-l));background-color:var(--bg-color,#1e293b);border-color:#000;color:#fff}:is(.tw_dark .dark\\:tw_alert_dark):focus{--outline-color:hsl(var(--tw-colors-focus-default-hs),calc(var(--tw-colors-focus-default-l) + 20%),0.1);outline-color:var(--outline-color,hsla(272.1,71.7%,56.5%,0.9))}:is(.tw_dark .dark\\:tw_alert_dark) svg{color:#fff;fill:currentColor}:is(.tw_dark .dark\\:tw_alert-error_dark){--bg-color:hsl(var(--tw-colors-error-dark-hs),var(--tw-colors-error-dark-l));--border-color:hsl(var(--tw-colors-error-dark-hs),calc(var(--tw-colors-error-dark-l) - 20%));background-color:var(--bg-color,#991b1b);border-color:var(--border-color,hsl(0,70%,28.2%))}:is(.tw_dark .dark\\:tw_alert-error_dark) svg{--color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));color:var(--color,#fecaca);fill:currentColor}:is(.tw_dark .dark\\:tw_alert-info_dark){--bg-color:hsl(var(--tw-colors-primary-light-hs),calc(var(--tw-colors-primary-light-l) - 40%));--border-color:hsl(var(--tw-colors-primary-dark-hs),calc(var(--tw-colors-primary-dark-l) - 20%));background-color:var(--bg-color,hsl(200.39999999999998,97.8%,21.9%));border-color:var(--border-color,hsl(215.29999999999995,25%,21.3%))}:is(.tw_dark .dark\\:tw_alert-info_dark) svg{--color:hsl(var(--tw-colors-primary-light-hs),calc(var(--tw-colors-primary-light-l) + 90%));color:var(--color,hsl(200.39999999999998,97.8%,69.3%));fill:currentColor}:is(.tw_dark .dark\\:tw_alert-success_dark){--bg-color:hsl(var(--tw-colors-success-dark-hs),var(--tw-colors-success-dark-l));--border-color:hsl(var(--tw-colors-success-dark-hs),calc(var(--tw-colors-success-dark-l) - 20%));background-color:var(--bg-color,#166534);border-color:var(--border-color,hsl(142.8,64.2%,19.3%))}:is(.tw_dark .dark\\:tw_alert-success_dark) svg{--color:hsl(var(--tw-colors-success-light-hs),var(--tw-colors-success-light-l));color:var(--color,#bbf7d0);fill:currentColor}:is(.tw_dark .dark\\:tw_alert-warning_dark){--bg-color:hsl(var(--tw-colors-warning-dark-hs),var(--tw-colors-warning-dark-l));--border-color:hsl(var(--tw-colors-warning-dark-hs),calc(var(--tw-colors-warning-dark-l) - 20%));background-color:var(--bg-color,#854d0e);border-color:var(--border-color,hsl(31.80000000000001,81%,23.1%))}:is(.tw_dark .dark\\:tw_alert-warning_dark) svg{--color:hsl(var(--tw-colors-warning-light-hs),var(--tw-colors-warning-light-l));color:var(--color,#fef08a);fill:currentColor}:is(.tw_dark .dark\\:tw_button-primary_dark){--bg-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));--border-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));background-color:var(--bg-color,#027AB8);border-color:var(--border-color,#027AB8)}:is(.tw_dark .dark\\:tw_button-primary_dark):hover::before,:is(.tw_dark .dark\\:tw_button-primary_dark):focus::before{opacity:0.2}:is(.tw_dark .dark\\:tw_button-outline_dark){--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);color:#fff}:is(.tw_dark .dark\\:tw_button-outline_dark):hover::before,:is(.tw_dark .dark\\:tw_button-outline_dark):focus::before{opacity:0.3}:is(.tw_dark .dark\\:tw_button-secondary_dark){}:is(.tw_dark .dark\\:tw_checkbox-input_dark){--accent-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));accent-color:var(--accent-color,#027AB8)}:is(.tw_dark .dark\\:tw_input-base_dark){--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.5);--border-color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));background-color:var(--bg-color,rgba(15,23,42,0.5));border-color:var(--border-color,#374151);color:#fff}:is(.tw_dark .dark\\:tw_input-base_dark):focus{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_input-base_dark):hover{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_input-base_dark)[aria-invalid=\"true\"]{--border-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));--bg-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l),0.5);border-color:var(--border-color,#fecaca);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgb(254, 202, 202)' viewB
1ox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E\");background-color:var(--bg-color,rgba(15,23,42,0.5))}:is(.tw_dark .dark\\:tw_input-base_dark)[aria-invalid=\"true\"]:focus{--outline-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l),0.3)!important;--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);outline-color:var(--outline-color,rgba(254,202,202,0.7))!important;background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_input-base_dark)[aria-invalid=\"true\"]:hover{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_input-base_dark)[aria-invalid=\"true\"] ~ button{--border-color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));border-color:var(--border-color,#fecaca)}:is(.tw_dark .dark\\:tw_input-label_dark){--color:hsl(var(--tw-colors-label-light-hs),var(--tw-colors-label-light-l));color:var(--color,#d1d5db)}:where(input:-webkit-autofill) + :is(.tw_dark .dark\\:tw_input-label_dark){--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));color:var(--color,#374151)}:where(input:autofill) + :is(.tw_dark .dark\\:tw_input-label_dark){--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));color:var(--color,#374151)}:is(.tw_dark .dark\\:tw_input-error-message_dark){--color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));color:var(--color,#fecaca)}:is(.tw_dark .dark\\:tw_input-info-message_dark){--color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));color:var(--color,#d1d5db)}:is(.tw_dark .dark\\:tw_input-info-message_dark).tw_isInvalid{--color:hsl(var(--tw-colors-error-light-hs),var(--tw-colors-error-light-l));color:var(--color,#fecaca)}:is(.tw_dark .dark\\:tw_link_dark){--color:hsl(var(--tw-colors-link-light-hs),var(--tw-colors-link-light-l));color:var(--color,#60a5fa)}:is(.tw_dark .dark\\:tw_select-base_dark){--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.5);--color:hsl(var(--tw-colors-label-light-hs),var(--tw-colors-label-light-l));background:no-repeat right 0.75rem center/16px 12px url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgb(209, 213, 219)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\");background-color:var(--bg-color,rgba(15,23,42,0.5));color:var(--color,#d1d5db)}:is(.tw_dark .dark\\:tw_select-base_dark):hover{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_select-base_dark):focus{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.25);background-color:var(--bg-color,rgba(15,23,42,0.75))}:is(.tw_dark .dark\\:tw_select-base_dark)[aria-invalid=\"true\"]{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.5);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgb(209, 213, 219)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\"),url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgb(254, 202, 202)' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E\");background-color:var(--bg-color,rgba(15,23,42,0.5));background-position:right 0.75rem center,center right 2.25rem;background-size:16px 12px,1rem 1rem}:is(.tw_dark .dark\\:tw_containing-box_dark){--bg-color:hsl(var(--tw-colors-background-dark-hs),var(--tw-colors-background-dark-l));background-color:var(--bg-color,#1e293b)}:is(.tw_dark .dark\\:tw_checkbox-input_animated_dark):checked + label > span:before{--border-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));border-color:var(--border-color,#027AB8)}:is(.tw_dark .dark\\:tw_dialog-box_dark){--bg-color:hsl(var(--tw-colors-background-dark-hs),var(--tw-colors-background-dark-l));background-color:var(--bg-color,#1e293b);border-color:#000}:is(.tw_dark .dark\\:tw_dialog-box_dark)::backdrop{--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.2);background-color:var(--bg-color,rgba(15,23,42,0.8))}:is(.tw_dark .dark\\:tw_dialog-header_dark){--bg-color:hsl(var(--tw-colors-tertiary-dark-hs),var(--tw-colors-tertiary-dark-l));--border-bottom-color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l));background-color:var(--bg-color,#1e293b);border-bottom-color:var(--border-bottom-color,#374151)}:is(.tw_dark .dark\\:tw_dialog-logo_dark){background-image:var(--logo-dark)}:is(.tw_dark .dark\\:tw_input-floating_dark):-webkit-autofill + label{--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l))!important;color:var(--color,#374151)!important}:is(.tw_dark .dark\\:tw_input-floating_dark):autofill + label{--color:hsl(var(--tw-colors-secondary-dark-hs),var(--tw-colors-secondary-dark-l))!important;color:var(--color,#374151)!important}:is(.tw_dark .dark\\:tw_animated-radio_dark):before{--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);box-shadow:none}:is(.tw_dark .dark\\:tw_animated-radio_dark):after{--bg-color:hsl(var(--tw-colors-primary-light-hs),var(--tw-colors-primary-light-l));background-color:var(--bg-color,#027AB8)}:is(.tw_dark .dark\\:tw_radio-input_animated_dark):checked + label > span:before{--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db)}:is(.tw_dark .dark\\:tw_button-apple_dark){--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#fff;color:#000}:is(.tw_dark .dark\\:tw_button-apple_dark):hover::before,:is(.tw_dark .dark\\:tw_button-apple_dark):focus::before{opacity:0.1}:is(.tw_dark .dark\\:tw_button-facebook_dark){--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#fff;color:#1877F2}:is(.tw_dark .dark\\:tw_button-facebook_dark):hover::before,:is(.tw_dark .dark\\:tw_button-facebook_dark):focus::before{opacity:0.1}:is(.tw_dark .dark\\:tw_button-google_dark){--border-color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));border-color:var(--border-color,#d1d5db);background-color:#fff;color:#000}:is(.tw_dark .dark\\:tw_button-google_dark):hover::before,:is(.tw_dark .dark\\:tw_button-google_dark):focus::before{opacity:0.1}:is(.tw_dark .dark\\:tw_kba-fieldset_dark){--border-color:hsl(var(--tw-colors-secondary-default-hs),calc(var(--tw-colors-secondary-default-l) - 25%));border-color:var(--border-color,hsl(217.89999999999998,10.6%,48.7%))}:is(.tw_dark .dark\\:tw_kba-fieldset_dark):after{--border-color:hsl(var(--tw-colors-secondary-default-hs),calc(var(--tw-colors-secondary-default-l) - 25%));border-color:var(--border-color,hsl(217.89999999999998,10.6%,48.7%))}:is(.tw_dark .dark\\:tw_kba-fieldset_dark):before{--border-color:hsl(var(--tw-colors-secondary-default-hs),calc(var(--tw-colors-secondary-default-l) - 25%));border-color:var(--border-color,hsl(217.89999999999998,10.6%,48.7%))}:is(.tw_dark .dark\\:tw_kba-lock-icon_dark) > svg{--color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));color:var(--color,#d1d5db);fill:currentcolor}:is(.tw_dark .dark\\:tw_password-button_dark){--bg-color:hsl(var(--tw-colors-body-dark-hs),var(--tw-colors-body-dark-l),0.5);background-color:var(--bg-color,rgba(15,23,42,0.5))}:is(.tw_dark .dark\\:tw_password-icon_dark){--color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));color:var(--color,#d1d5db)}@media (min-width: 768px){.md\\:tw_containing-box_medium{height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto 0;padding:2.5rem 2.5rem}.md\\:tw_dialog-box_medium{height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;max-width:32rem;padding:0px}
1.md\\:tw_dialog-box_medium .tw_dialog-body{margin:1.5rem 3rem 4rem}.md\\:tw_dialog-box_medium .tw_dialog-header{padding:2rem 7rem;margin-bottom:4rem}.md\\:tw_dialog-box_medium .tw_dialog-no-header{padding:2.5rem 0}.md\\:tw_dialog-x_medium{}}.focus-visible\\:tw_outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}:is(.tw_dark .dark\\:tw_border-secondary-dark){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.tw_dark .dark\\:tw_bg-background-dark){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}:is(.tw_dark .dark\\:tw_bg-body-dark){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}:is(.tw_dark .dark\\:tw_text-error-light){--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}:is(.tw_dark .dark\\:tw_text-link-light){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}:is(.tw_dark .dark\\:tw_text-secondary-light){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.tw_dark .dark\\:tw_text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.tw_dark .dark\\:tw_shadow-background-dark){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}:is(.tw_dark .dark\\:tw_focusable-element_dark){--outline-color:hsl(var(--tw-colors-focus-default-hs),calc(var(--tw-colors-focus-default-l) + 20%),0.7);outline-color:var(--outline-color,hsla(272.1,71.7%,56.5%,0.30000000000000004))}:is(.tw_dark .dark\\:tw_focusable-element_dark):focus{--outline-color:hsl(var(--tw-colors-focus-default-hs),calc(var(--tw-colors-focus-default-l) + 20%),0.1);outline-color:var(--outline-color,hsla(272.1,71.7%,56.5%,0.9))}:is(.tw_dark .dark\\:tw_primary-header_dark){--color:hsl(var(--tw-colors-header-light-hs),var(--tw-colors-header-light-l));color:var(--color,#d1d5db)}:is(.tw_dark .dark\\:tw_secondary-header_dark){--color:hsl(var(--tw-colors-secondary-light-hs),var(--tw-colors-secondary-light-l));color:var(--color,#d1d5db)}@media (min-width: 768px){.md\\:tw_h-36{height:9rem}.md\\:tw_grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:tw_grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:tw_grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:tw_grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:tw_pt-10{padding-top:2.5rem}}}@keyframes tw_check{0%{border-color:#fff;height:0}100%{border-color:#fff;height:0.7em}}.do-not-modify{animation:tw_check 100ms 250ms cubic-bezier(.4,.0,.23,1) forwards}@keyframes tw_fadeIn{0%{opacity:0}100%{opacity:1}}.do-not-modify{animation:tw_fadeIn 500ms ease forwards}@keyframes tw_fadeOut{0%{opacity:1}100%{opacity:0}}.do-not-modify{animation:tw_fadeOut 500ms ease-out forwards}@keyframes tw_slideDown{0%{opacity:1;top:0%}50%{opacity:1;top:35%}100%{opacity:0;top:50%}}.do-not-modify{animation:tw_slideDown 100ms ease-out forwards}@keyframes tw_slideUp{0%{opacity:0;top:50%}50%{opacity:1;top:15%}100%{opacity:1;top:0}}.do-not-modify{animation:tw_slideUp 100ms ease-out forwards}@keyframes tw_radio{0%{transform:scale(0)}33%{transform:scale(0.5)}80%{transform:scale(0.9)}100%{transform:scale(0.8)}}.do-not-modify{animation:tw_radio 125ms 150ms cubic-bezier(.4,.0,.23,1) forwards}@keyframes tw_squish{0%{transform:scale(1)}33%{transform:scale(.85)}100%{transform:scale(1)}}.do-not-modify{animation:tw_squish 200ms cubic-bezier(.4,.0,.23,1)}.widget .link{color:var(--color-link-primary-default);text-decoration:none}.widget div.tw_input-spacing:has(> hr.tw_border-0.tw_border-b){display:none}.widget .tw_focusable-element{outline:none}.widget .tw_form-base a{color:var(--color-text-brand-primary-default);text-decoration:none}.widget .tw_form-base > p.tw_font-bold{color:var(--color-text-default);font-weight:600}.widget .tw_form-base > p.tw_font-bold.tw_text-secondary-dark{font-weight:500}.widget .tw_form-base > p > button{color:var(--color-text-brand-primary-default);font-weight:700}.widget .tw_primary-header{color:var(--color-text-default);font-weight:700;text-align:left;margin-bottom:8px}.widget .tw_primary-header ~ p{color:var(--color-text-default);text-align:left}@media screen and (max-width: 599px){.widget .tw_primary-header{font-size:1.6rem}}.widget .tw_button-base{border-width:2px;border-radius:6px;font-weight:700}.widget .tw_button-primary{background-color:var(--color-background-brand-primary-default);border-color:var(--color-background-brand-primary-default)}
1.widget .tw_button-primary .tw_spinner{color:#fff;border-width:2px}.widget .tw_button-secondary{width:100%;background-color:transparent;border-color:var(--color-border-brand-primary-default);color:var(--color-text-brand-primary-default)}.widget .tw_button-facebook,\n  .widget .tw_button-google{background-color:transparent;color:inherit;font-weight:normal;border-width:2px;border-color:var(--color-border-input-default)}.widget .tw_button-facebook svg, .widget .tw_button-google svg{fill:#1877f2}.widget .tw_input-base{border-color:var(--color-border-input-default);background-color:#fff;border-width:2px;padding:10px}.widget .tw_input-base:hover ~ .tw_password-button{border-color:var(--color-border-input-hover)}.widget .tw_input-base:hover{border-color:var(--color-border-input-hover)}.widget .tw_input-base:focus ~ .tw_password-button{border-color:var(--color-border-input-selected)}.widget .tw_input-base:focus{border-color:var(--color-border-input-selected)}.widget .tw_input-label{font-size:16px;color:var(--color-text-default);margin-left:0}.widget .tw_select-base{width:100%;padding-right:26px;background-position-x:97%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.widget #formId p.tw_mt-6{margin-top:0}.widget #formId p.tw_mt-6 h1{color:var(--color-text-default);font-size:2rem;font-weight:bold}.widget .tw_password-button svg{fill:var(--color-icon-brand-primary)}.widget .tw_password-button:focus,\n    .widget .tw_password-button:hover{border-color:var(--color-border-input-default)}.widget .tw_alert{color:#212121;outline:none}.widget .tw_alert-error{background-color:var(--color-background-danger-subtle-default);border:none;border-left:4px solid var(--color-border-danger-default)}.widget .tw_alert-error svg{fill:var(--color-icon-danger-default)}.widget .tw_spinner{color:var(--color-icon-brand-primary)}.widget #fr-recaptcha > iframe{margin-left:auto;margin-right:auto}.widget .tw_radio-input_animated + .tw_input-label{cursor:pointer}.widget .tw_radio-input_animated + .tw_input-label .tw_animated-radio:before{animation:none;transition:none;box-shadow:0 0 0 2px var(--color-border-input-hover)!important}.widget .tw_radio-input_animated + .tw_input-label .tw_animated-radio:after{animation:none;transition:none;background-color:var(--color-icon-brand-primary);transform:scale(0.65)!important}.widget .tw_radio-input_animated:focus + .tw_input-label > .tw_animated-radio:before{outline:3px solid #fff;outline-offset:2px}.widget .tw_radio-input_animated:checked + .tw_input-label > .tw_animated-radio:before{box-shadow:0 0 0 2px var(--color-icon-brand-primary)!important}.widget .tw_form-invalid .tw_input-spacing.md\\:tw_grid-cols-2{display:flex;flex-direction:column}.widget .tw_input-floating:focus ~ label,\n  .widget .tw_input-floating:not(:placeholder-shown) ~ label{display:none}::-ms-reveal{display:none}.spark .widget .tw_form-base > p > button{font-weight:600}.spark .widget .tw_primary-header{color:var(--color-text-brand-primary-default);font-weight:600}.spark .widget .tw_primary-header ~ p{font-size:16px}.spark .widget .tw_button-base{border-radius:40px;font-weight:600}.spark .widget .tw_input-base{border-width:1px;border-radius:8px}.spark .widget .tw_button-base::before{background:transparent;outline:none}.spark .widget .tw_input-stacked-label{font-weight:600}.spark{--color-text-default:#1d1d1d;--color-text-bold-default:#767676;--color-text-brand-primary-default:#400E7D;--color-link-primary-default:#400E7D;--color-icon-brand-primary:#400E7D;--color-border-input-default:#bababa;--color-border-input-hover:#767676;--color-border-input-selected:#400E7D;--color-border-default:#dadada;--color-border-brand-primary-default:#400E7D;--color-background-brand-primary-default:#400E7D;--color-background-brand-primary-active:#430e7d;--color-icon-danger-default:#c33700;--color-border-danger-default:#da3d00;--color-background-danger-subtle-default:#fcf3f2;--color-background-surface-hover:#f0f0f0;--color-background-default:#F2EDFD;--color-mfa-background-default:#fafafb;font-family:'Avenir Next',Helvetica,Arial,sans-serif}.spark .fr_widget-root{font-family:'Avenir Next',Helvetica,Arial,sans-serif!important}",document.head.appendChild(e)}();var q,K=class{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=D(t.nodeName):this.e=L(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)O(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}
1d(){this.n.forEach(P)}};function G(e,t){return new e(t)}function W(e){q=e}function Z(){if(!q)throw new Error("Function called outside component initialization");return q}function Y(e){Z().$$.on_mount.push(e)}function X(e){Z().$$.after_update.push(e)}var J=[],Q=[],ee=[],te=[],ne=Promise.resolve(),re=!1;function ie(e){ee.push(e)}function ae(e){te.push(e)}var oe=new Set,se=0;function le(){if(0!==se)return;let e=q;do{try{for(;se<J.length;){let e=J[se];se++,W(e),ce(e.$$)}}catch(t){throw J.length=0,se=0,t}for(W(null),J.length=0,se=0;Q.length;)Q.pop()();for(let e=0;e<ee.length;e+=1){let t=ee[e];oe.has(t)||(oe.add(t),t())}ee.length=0}while(J.length);for(;te.length;)te.pop()();re=!1,oe.clear(),W(e)}function ce(e){if(null!==e.fragment){e.update(),b(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ie)}}var ue,de=new Set;function he(){ue={r:0,c:[],p:ue}}function pe(){ue.r||b(ue.c),ue=ue.p}function fe(e,t){e&&e.i&&(de.delete(e),e.i(t))}function ge(e,t,n,r){if(e&&e.o){if(de.has(e))return;de.add(e),ue.c.push((()=>{de.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function me(e,t){let n={},r={},i={$$scope:1},a=e.length;for(;a--;){let o=e[a],s=t[a];if(s){for(let e in o)e in s||(r[e]=1);for(let e in s)i[e]||(n[e]=s[e],i[e]=1);e[a]=s}else for(let e in o)i[e]=1}for(let o in r)o in n||(n[o]=void 0);return n}function ve(e){return"object"==typeof e&&null!==e?e:{}}function we(e,t,n){let r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function be(e){e&&e.c()}function ye(e,t,n,r){let{fragment:i,after_update:a}=e.$$;i&&i.m(t,n),r||ie((()=>{let t=e.$$.on_mount.map(v).filter(y);e.$$.on_destroy?e.$$.on_destroy.push(...t):b(t),e.$$.on_mount=[]})),a.forEach(ie)}function _e(e,t){let n=e.$$;null!==n.fragment&&(b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ke(e,t){-1===e.$$.dirty[0]&&(J.push(e),re||(re=!0,ne.then(le)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function $e(e,t,n,r,i,a,o,s=[-1]){let l=q;W(e);let c=e.$$={fragment:null,ctx:[],props:a,update:g,not_equal:i,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:w(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};o&&o(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...r)=>{let a=r.length?r[0]:n;return c.ctx&&i(c.ctx[t],c.ctx[t]=a)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](a),u&&ke(e,t)),n})):[],c.update(),u=!0,b(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){let e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(P)}else c.fragment&&c.fragment.c();t.intro&&fe(e.$$.fragment),ye(e,t.target,t.anchor,t.customElement),le()}W(l)}var Se=class{$destroy(){_e(this,1),this.$destroy=g}$on(e,t){if(!y(t))return g;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let e=n.indexOf(t);-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)}},Ee=[];function xe(e,t=g){let n,r=new Set;function i(t){if(_(e,t)&&(e=t,n)){let t=!Ee.length;for(let n of r)n[1](),Ee.push(n,e);if(t){for(let e=0;e<Ee.length;e+=2)Ee[e][0](Ee[e+1]);Ee.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(a,o=g){let s=[a,o];return r.add(s),1===r.size&&(n=t(i)||g),a(e),()=>{r.delete(s),0===r.size&&(n(),n=null)}}}}function Ce(e,t,n){let r=!Array.isArray(e),i=r?[e]:e,a=t.length<2;return function(e,t){return{subscribe:xe(e,t).subscribe}}(n,(e=>{let n=!1,o=[],s=0,l=g,c=()=>
1{if(s)return;l();let n=t(r?o[0]:o,e);a?e(n):l=y(n)?n:g},u=i.map(((e,t)=>k(e,(e=>{o[t]=e,s&=~(1<<t),n&&c()}),(()=>{s|=1<<t}))));return n=!0,c(),function(){b(u),l()}}))}var Ae=xe({lastAction:null,error:null,form:null,modal:null,mounted:!1,open:null,reason:null,type:null});function Ie(e,t){Ae.update((n=>{var r;return"inline"===n.type?(console.warn('Component type of "inline" has no `close` method'),n):null!=(r=n.modal)&&r.component?(t&&n.modal.component.closeDialog(),p(h({},n),{lastAction:"close",open:!1,reason:(null==e?void 0:e.reason)||null})):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)}))}var Te=5e3;function Oe(e,{type:t,payload:n}){let r=Object.freeze({type:t,payload:n});return t=>{if(!Array.isArray(t))return e;let n=t.map((e=>e));return function t(){let i=n.shift();return i&&i(e,r,t),e}()}}function Pe(e,t=Te){let n=t||Te,r=new Promise(((e,t)=>setTimeout((()=>t(new Error("Timeout"))),n)));return Promise.race([e,r])}var Me,Le=((Me=Le||{}).Authenticate="AUTHENTICATE",Me.Authorize="AUTHORIZE",Me.EndSession="END_SESSION",Me.Logout="LOGOUT",Me.ExchangeToken="EXCHANGE_TOKEN",Me.RefreshToken="REFRESH_TOKEN",Me.ResumeAuthenticate="RESUME_AUTHENTICATE",Me.RevokeToken="REVOKE_TOKEN",Me.StartAuthenticate="START_AUTHENTICATE",Me.UserInfo="USER_INFO",Me.WellKnown="WELL_KNOWN",Me);var De=class{static set(e){if(!this.isValid(e))throw new Error("Configuration is invalid");e.serverConfig&&this.validateServerConfig(e.serverConfig),this.options=h({},function(e){return p(h({},e),{oauthThreshold:e.oauthThreshold||3e4,logLevel:e.logLevel||"none",platformHeader:e.platformHeader||!1,prefix:e.prefix||"FR-SDK"})}(e))}static async setAsync(e){if(!e.serverConfig.wellknown)throw new Error("Missing well-known property. Use `
1Config.set` method if not using well-known endpoint.");e.serverConfig.baseUrl&&console.warn("The baseUrl property passed in will be ignored, and replaced with well-known origin.");let t=await async function(e){var t;if(!e.serverConfig.wellknown)throw new Error("wellknown URL is missing in options");let n=Oe({url:new URL(null==(t=e.serverConfig)?void 0:t.wellknown),init:{method:"GET"}},{type:Le.WellKnown,payload:{}})(e.middleware);return await(await Pe(fetch(n.url.toString(),n.init),e.serverConfig.timeout)).json()}(e),n=function(e,t){var n,r;if(!e.authorization_endpoint)throw new Error("Wellknown endpoint did not return `authorization_endpoint`");let i,a,o=new URL(e.authorization_endpoint).origin;return null!=t&&t.paths?(i=null==(n=null==t?void 0:t.paths)?void 0:n.authenticate,a=null==(r=null==t?void 0:t.paths)?void 0:r.sessions):e.issuer.includes("/am/")?(i=`${e.issuer.replace("oauth2","json")}/authenticate`,a=`${e.issuer.replace("oauth2","json")}/sessions`):e.issuer.includes("/as/"),{baseUrl:o,paths:h(p(h({},i?{authenticate:new URL(i).pathname}:{}),{authorize:new URL(e.authorization_endpoint).pathname,accessToken:new URL(e.token_endpoint).pathname,endSession:new URL(e.end_session_endpoint).pathname,userInfo:new URL(e.userinfo_endpoint).pathname,revoke:new URL(e.revocation_endpoint).pathname}),a?{sessions:new URL(a).pathname}:{})}}(t);delete e.serverConfig.wellknown;let r=e;r.serverConfig=n,this.set(r)}static get(e){if(!this.options&&!e)throw new Error("Configuration has not been set");let t=h(h({},this.options),e);if(!t.serverConfig||!t.serverConfig.baseUrl)throw new Error("Server configuration has not been set");return t}static isValid(e){return!(!e||!e.serverConfig)}static validateServerConfig(e){e.timeout||(e.timeout=Te);let t=e.baseUrl;t&&"/"!==t.charAt(t.length-1)&&(e.baseUrl=t+"/")}},Re="forgerock-sdk",Ue="javascript";function Ne(e){let t="http:"===e.protocol&&-1===["","80"].indexOf(e.port)||"https:"===e.protocol&&-1===["","443"].indexOf(e.port)?`:${e.port}`:"";return`${e.protocol}//${e.hostname}${t}`}function Fe(e,t,n){let r=function(e){let t=(e||"").split("/").map((e=>e.trim())).filter((e=>""!==e));return"root"!==t[0]&&t.unshift("root"),t.map((e=>`realms/${e}`)).join("/")}(t),i={authenticate:`json/${r}/authenticate`,authorize:`oauth2/${r}/authorize`,accessToken:`oauth2/${r}/access_token`,endSession:`oauth2/${r}/connect/endSession`,userInfo:`oauth2/${r}/userinfo`,revoke:`oauth2/${r}/token/revoke`,sessions:`json/${r}/sessions/`};return n&&n[e]?n[e]:i[e]}function Be(e,t){let n=new URL(e);if(t.startsWith("/"))return`${Ne(n)}${t}`;let r=n.pathname.split("/"),i=t.split("/").filter((e=>!!e)),a=[...r.slice(0,-1),...i].join("/");return`${Ne(n)}${a}`}function Ve(e){let t=[];for(let n in e)e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}var ze=class{static async next(e,t){let{middleware:n,platformHeader:r,realmPath:i,serverConfig:a,tree:o,type:s}=De.get(t),l=t?t.query:{},c=this.constructUrl(a,i,o,l),u=Oe({url:new URL(c),init:this.configureRequest(e)},{type:e?Le.Authenticate:Le.StartAuthenticate,payload:{tree:o,type:s||"service"}})(n);r&&(u.init.headers instanceof Headers?u.init.headers.set("X-Requested-Platform",Ue):Array.isArray(u.init.headers)?u.init.headers.push(["X-Requested-Platform",Ue]):u.init.headers?u.init.headers["X-Requested-Platform"]=Ue:u.init.headers={"X-Requested-Platform":Ue});let d=await Pe(fetch(u.url.toString(),u.init),a.timeout);return await this.getResponseJson(d)}static constructUrl(e,t,n,r){let i=h(h({},r),n?{authIndexType:"service",authIndexValue:n}:void 0),a=Object.keys(i).length>0?`?${Ve(i)}`:"",o=Fe("authenticate",t,e.paths);return Be(e.baseUrl,`${o}${a}`)}static configureRequest(e){return{body:e?JSON.stringify(e):void 0,credentials:"include",headers:new Headers({Accept:"application/json","Accept-API-Version":"protocol=1.0,resource=2.1","Content-Type":"application/json","X-Requested-With":Re}),method:"POST"}}static async getResponseJson(e){let t=e.headers.get("content-type"),n=t&&t.indexOf("application/json")>-1?await e.json():{};return n.status=e.status,n.ok=e.ok,n}},je=(e=>(e.BooleanAttributeInputCallback="BooleanAttributeInputCallback",e.ChoiceCallback="ChoiceCallback",e.ConfirmationCallback="ConfirmationCallback",e.DeviceProfileCallback="DeviceProfileCallback",e.HiddenValueCallback="HiddenValueCallback",e.KbaCreateCallback="KbaCreateCallback",e.MetadataCallback="MetadataCallback",e.NameCallback="NameCallback",e.NumberAttributeInputCallback="NumberAttributeInputCallback",e.PasswordCallback="PasswordCallback",e.PingOneProtectEvaluationCallback="PingOneProtectEvaluationCallback",e.PingOneProtectInitializeCallback="PingOneProtectInitializeCallback",e.PollingWaitCallback="PollingWaitCallback",e.ReCaptchaCallback="ReCaptchaCallback",e.RedirectCallback="RedirectCallback",e.SelectIdPCallback="SelectIdPCallback",e.StringAttributeInputCallback="StringAttributeInputCallback",e.SuspendedTextOutputCallback="SuspendedTextOutputCallback",e.TermsAndConditionsCallback="TermsAndConditionsCallback",e.TextInputCallback="TextInputCallback",e.TextOutputCallback="TextOutputCallback",e.ValidatedCreatePasswordCallback="ValidatedCreatePasswordCallback",e.ValidatedCreateUsernameCallback="ValidatedCreateUsernameCallback",e))(je||{}),He=(e=>
1(e.CannotContainCharacters="CANNOT_CONTAIN_CHARACTERS",e.CannotContainDuplicates="CANNOT_CONTAIN_DUPLICATES",e.CannotContainOthers="CANNOT_CONTAIN_OTHERS",e.LeastCapitalLetters="AT_LEAST_X_CAPITAL_LETTERS",e.LeastNumbers="AT_LEAST_X_NUMBERS",e.MatchRegexp="MATCH_REGEXP",e.MaximumLength="MAX_LENGTH",e.MaximumNumber="MAXIMUM_NUMBER_VALUE",e.MinimumLength="MIN_LENGTH",e.MinimumNumber="MINIMUM_NUMBER_VALUE",e.Required="REQUIRED",e.Unique="UNIQUE",e.UnknownPolicy="UNKNOWN_POLICY",e.ValidArrayItems="VALID_ARRAY_ITEMS",e.ValidDate="VALID_DATE",e.ValidEmailAddress="VALID_EMAIL_ADDRESS_FORMAT",e.ValidNameFormat="VALID_NAME_FORMAT",e.ValidNumber="VALID_NUMBER",e.ValidPhoneFormat="VALID_PHONE_FORMAT",e.ValidQueryFilter="VALID_QUERY_FILTER",e.ValidType="VALID_TYPE",e))(He||{});function qe(e,t,n){return 1===e?t:void 0!==n?n:t+"s"}function Ke(e,t,n){return e&&void 0!==e[t]?e[t]:n}var Ge={[He.CannotContainCharacters]:(e,t)=>`${e} must not contain following characters: "${Ke(t,"forbiddenChars","")}"`,[He.CannotContainDuplicates]:(e,t)=>`${e}  must not contain duplicates: "${Ke(t,"duplicateValue","")}"`,[He.CannotContainOthers]:(e,t)=>`${e} must not contain: "${Ke(t,"disallowedFields","")}"`,[He.LeastCapitalLetters]:(e,t)=>{let n=Ke(t,"numCaps",0);return`${e} must contain at least ${n} capital ${qe(n,"letter")}`},[He.LeastNumbers]:(e,t)=>{let n=Ke(t,"numNums",0);return`${e} must contain at least ${n} numeric ${qe(n,"value")}`},[He.MatchRegexp]:e=>`${e} has failed the "MATCH_REGEXP" policy`,[He.MaximumLength]:(e,t)=>{let n=Ke(t,"maxLength",0);return`${e} must be at most ${n} ${qe(n,"character")}`},[He.MaximumNumber]:e=>`${e} has failed the "MAXIMUM_NUMBER_VALUE" policy`,[He.MinimumLength]:(e,t)=>{let n=Ke(t,"minLength",0);return`${e} must be at least ${n} ${qe(n,"character")}`},[He.MinimumNumber]:e=>`${e} has failed the "MINIMUM_NUMBER_VALUE" policy`,[He.Required]:e=>`${e} is required`,[He.Unique]:e=>`${e} must be unique`,[He.UnknownPolicy]:(e,t)=>`${e}: Unknown policy requirement "${Ke(t,"policyRequirement","Unknown")}"`,[He.ValidArrayItems]:e=>`${e} has failed the "VALID_ARRAY_ITEMS" policy`,[He.ValidDate]:e=>`${e} has an invalid date`,[He.ValidEmailAddress]:e=>`${e} has an invalid email address`,[He.ValidNameFormat]:e=>`${e} has an invalid name format`,[He.ValidNumber]:e=>`${e} has an invalid number`,[He.ValidPhoneFormat]:e=>`${e} has an invalid phone number`,[He.ValidQueryFilter]:e=>`${e} has failed the "VALID_QUERY_FILTER" policy`,[He.ValidType]:e=>`${e} has failed the "VALID_TYPE" policy`},We=class{static parseErrors(e,t){let n=[];return e.detail&&e.detail.failedPolicyRequirements&&e.detail.failedPolicyRequirements.map((e=>{n.push.apply(n,[{detail:e,messages:this.parseFailedPolicyRequirement(e,t)}])})),n}static parseFailedPolicyRequirement(e,t){let n=[];return e.policyRequirements.map((r=>{n.push(this.parsePolicyRequirement(e.property,r,t))})),n}static parsePolicyRequirement(e,t,n={}){let r="string"==typeof t?JSON.parse(t):h({},t),i=r.policyRequirement;return(n[i]||Ge[i]||Ge[He.UnknownPolicy])(e,r.params?p(h({},r.params),{policyRequirement:i}):{policyRequirement:i})}},Ze=(e=>(e.LoginFailure="LoginFailure",e.LoginSuccess="LoginSuccess",e.Step="Step",e))(Ze||{}),Ye=class{constructor(e){this.payload=e,this.type=Ze.LoginFailure}getCode(){return Number(this.payload.code)}getDetail(){return this.payload.detail}getMessage(){return this.payload.message}getProcessedMessage(e){return We.parseErrors(this.payload,e)}getReason(){return this.payload.reason}},Xe=class{constructor(e){this.payload=e,this.type=Ze.LoginSuccess}getRealm(){return this.payload.realm}getSessionToken(){return this.payload.tokenId}getSuccessUrl(){return this.payload.successUrl}},Je=class{constructor(e){this.payload=e}getType(){return this.payload.type}getInputValue(e=0){return this.getArrayElement(this.payload.input,e).value}setInputValue(e,t=0){this.getArrayElement(this.payload.input,t).value=e}getOutputValue(e=0){return this.getArrayElement(this.payload.output,e).value}
1getOutputByName(e,t){let n=this.payload.output.find((t=>t.name===e));return n?n.value:t}getArrayElement(e,t=0){if(void 0===e)throw new Error(`No NameValue array was provided to search (selector ${t})`);if("number"==typeof t){if(t<0||t>e.length-1)throw new Error(`Selector index ${t} is out of range`);return e[t]}if("string"==typeof t){let n=e.find((e=>e.name===t));if(!n)throw new Error(`Missing callback input entry "${t}"`);return n}if("object"==typeof t&&t.test&&t.exec){let n=e.find((e=>t.test(e.name)));if(!n)throw new Error(`Missing callback input entry "${t}"`);return n}throw new Error("Invalid selector value type")}},Qe=class extends Je{constructor(e){super(e),this.payload=e}getName(){return this.getOutputByName("name","")}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}getFailedPolicies(){let e=this.getOutputByName("failedPolicies",[]);try{return e.map((e=>JSON.parse(e)))}catch(t){throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `AttributeInputCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}setValue(e){this.setInputValue(e)}},et=class extends Je{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getDefaultChoice(){return this.getOutputByName("defaultChoice",0)}getChoices(){return this.getOutputByName("choices",[])}setChoiceIndex(e){let t=this.getChoices().length;if(e<0||e>t-1)throw new Error(`${e} is out of bounds`);this.setInputValue(e)}setChoiceValue(e){let t=this.getChoices().indexOf(e);if(-1===t)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t)}},tt=class extends Je{constructor(e){super(e),this.payload=e}getDefaultOption(){return Number(this.getOutputByName("defaultOption",0))}getMessageType(){return Number(this.getOutputByName("messageType",0))}getOptions(){return this.getOutputByName("options",[])}getOptionType(){return Number(this.getOutputByName("optionType",0))}getPrompt(){return this.getOutputByName("prompt","")}setOptionIndex(e){if(0!==e&&1!==e)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(e)}setOptionValue(e){let t=this.getOptions().indexOf(e);if(-1===t)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t)}},nt=class extends Je{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}isMetadataRequired(){return this.getOutputByName("metadata",!1)}isLocationRequired(){return this.getOutputByName("location",!1)}setProfile(e){this.setInputValue(JSON.stringify(e))}},rt=class extends Je{constructor(e){super(e),this.payload=e}},it=class extends Je{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getPredefinedQuestions(){return this.getOutputByName("predefinedQuestions",[])}setQuestion(e){this.setValue("question",e)}setAnswer(e){this.setValue("answer",e)}setValue(e,t){if(!this.payload.input)throw new Error("KBA payload is missing input");let n=this.payload.input.find((t=>t.name.endsWith(e)));if(!n)throw new Error(`No input has name ending in "${e}"`);n.value=t}},at=class extends Je{constructor(e){super(e),this.payload=e}getData(){return this.getOutputByName("data",{})}},ot=class extends Je{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}setName(e){this.setInputValue(e)}},st=class extends Je{constructor(e){super(e),this.payload=e}getFailedPolicies(){return this.getOutputByName("failedPolicies",[])}getPolicies(){return this.getOutputByName("policies",[])}getPrompt(){return this.getOutputByName("prompt","")}setPassword(e){this.setInputValue(e)}},lt=class extends Je{constructor(e){super(e),this.payload=e}getPauseBehavioralData(){return this.getOutputByName("pauseBehavioralData",!1)}setData(e){this.setInputValue(e,/signals/)}setClientError(e){this.setInputValue(e,/clientError/)}},ct=class extends Je{constructor(e){super(e),this.payload=e}getConfig(){return{envId:this.getOutputByName("envId",""),consoleLogEnabled:this.getOutputByName("consoleLogEnabled",!1),deviceAttributesToIgnore:this.getOutputByName("deviceAttributesToIgnore",[]),customHost:this.getOutputByName("customHost",""),lazyMetadata:this.getOutputByName("lazyMetadata",!1),behavioralDataCollection:this.getOutputByName("behavioralDataCollection",!0),deviceKeyRsyncIntervals:this.getOutputByName("deviceKeyRsyncIntervals",14),enableTrust:this.getOutputByName("enableTrust",!1),disableTags:this.getOutputByName("disableTags",!1),disableHub:this.getOutputByName("disableHub",!1)}}setClientError(e){this.setInputValue(e,/clientError/)}},ut=class extends Je{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}getWaitTime(){return Number(this.getOutputByName("waitTime",0))}},dt=class extends Je{constructor(e){super(e),this.payload=e}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}setResult(e){this.setInputValue(e)}},ht=class extends Je{constructor(e){super(e),this.payload=e}getRedirectUrl(){return this.getOutputByName("redirectUrl","")}},pt=class extends Je{constructor(e){super(e),this.payload=e}getProviders(){return this.getOutputByName("providers",[])}setProvider(e){let t=this.getProviders().find((t=>t.provider===e));if(!t)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t.provider)}},ft=class extends Je{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}getMessageType(){return this.getOutputByName("messageType","")}},gt=class extends ft{constructor(e){super(e),this.payload=e}},mt=class extends Je{constructor(e){super(e),this.payload=e}getTerms(){return this.getOutputByName("terms","")}getVersion(){return this.getOutputByName("version","")}getCreateDate(){let e=this.getOutputByName("createDate","");return new Date(e)}setAccepted(e=!0){this.setInputValue(e)}},vt=class extends Je{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}setInput(e){this.setInputValue(e)}},wt=class extends Je{constructor(e){super(e),this.payload=e}
1getFailedPolicies(){let e=this.getOutputByName("failedPolicies",[]);try{return e.map((e=>JSON.parse(e)))}catch(t){throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreatePasswordCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}setPassword(e){this.setInputValue(e)}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}},bt=class extends Je{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getFailedPolicies(){let e=this.getOutputByName("failedPolicies",[]);try{return e.map((e=>JSON.parse(e)))}catch(t){throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreateUsernameCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}isRequired(){return this.getOutputByName("required",!1)}setName(e){this.setInputValue(e)}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}};function yt(e){switch(e.type){case je.BooleanAttributeInputCallback:return new Qe(e);case je.ChoiceCallback:return new et(e);case je.ConfirmationCallback:return new tt(e);case je.DeviceProfileCallback:return new nt(e);case je.HiddenValueCallback:return new rt(e);case je.KbaCreateCallback:return new it(e);case je.MetadataCallback:return new at(e);case je.NameCallback:return new ot(e);case je.NumberAttributeInputCallback:return new Qe(e);case je.PasswordCallback:return new st(e);case je.PingOneProtectEvaluationCallback:return new lt(e);case je.PingOneProtectInitializeCallback:return new ct(e);case je.PollingWaitCallback:return new ut(e);case je.ReCaptchaCallback:return new dt(e);case je.RedirectCallback:return new ht(e);case je.SelectIdPCallback:return new pt(e);case je.StringAttributeInputCallback:return new Qe(e);case je.SuspendedTextOutputCallback:return new gt(e);case je.TermsAndConditionsCallback:return new mt(e);case je.TextInputCallback:return new vt(e);case je.TextOutputCallback:return new ft(e);case je.ValidatedCreatePasswordCallback:return new wt(e);case je.ValidatedCreateUsernameCallback:return new bt(e);default:return new Je(e)}}var _t=class{constructor(e,t){this.payload=e,this.type=Ze.Step,this.callbacks=[],e.callbacks&&(this.callbacks=this.convertCallbacks(e.callbacks,t))}getCallbackOfType(e){let t=this.getCallbacksOfType(e);if(1!==t.length)throw new Error(`Expected 1 callback of type "${e}", but found ${t.length}`);return t[0]}getCallbacksOfType(e){return this.callbacks.filter((t=>t.getType()===e))}setCallbackValue(e,t){let n=this.getCallbacksOfType(e);if(1!==n.length)throw new Error(`Expected 1 callback of type "${e}", but found ${n.length}`);n[0].setInputValue(t)}getDescription(){return this.payload.description}getHeader(){return this.payload.header}getStage(){return this.payload.stage}convertCallbacks(e,t){return e.map((e=>(t||yt)(e)||yt(e)))}},kt=class e{static get previousStepKey(){return`${De.get().prefix}-PreviousStep`}static async next(e,t){let n=await ze.next(e?e.payload:void 0,t);if(n.authId){let e=t?t.callbackFactory:void 0;return new _t(n,e)}return!n.authId&&n.ok?new Xe(n):new Ye(n)}static redirect(e){let t=e.getCallbackOfType(je.RedirectCallback).getRedirectUrl();localStorage.setItem(this.previousStepKey,JSON.stringify(e)),location.assign(t)}static async resume(e,t){var n,r,i;let a,o=new URL(e),s=o.searchParams.get("code"),l=o.searchParams.get("error"),c=o.searchParams.get("errorCode"),u=o.searchParams.get("errorMessage"),d=o.searchParams.get("form_post_entry"),f=o.searchParams.get("nonce"),g=o.searchParams.get("RelayState"),m=o.searchParams.get("responsekey"),v=o.searchParams.get("scope"),w=o.searchParams.get("state"),b=o.searchParams.get("suspendedId"),y=null!=(n=o.searchParams.get("authIndexValue"))?n:void 0;if(s&&w||d||m){let e=localStorage.getItem(this.previousStepKey);if(!e)throw new Error("Error: could not retrieve original redirect information.");try{a=JSON.parse(e)}catch(k){throw new Error("Error: could not parse redirect params or step information")}
1localStorage.removeItem(this.previousStepKey)}let _=h(p(h({},t),{query:h(h(h(h(h(h(h(h(h(h(h(h({},s&&{code:s}),l&&{error:l}),c&&{errorCode:c}),u&&{errorMessage:u}),d&&{form_post_entry:d}),f&&{nonce:f}),g&&{RelayState:g}),m&&{responsekey:m}),v&&{scope:v}),w&&{state:w}),b&&{suspendedId:b}),t&&t.query)}),(null!=(r=null==t?void 0:t.tree)?r:y)&&{tree:null!=(i=null==t?void 0:t.tree)?i:y});return await this.next(a,_)}static async start(t){return await e.next(void 0,t)}},$t=["userAgent","appName","appCodeName","appVersion","appMinorVersion","buildID","product","productSub","vendor","vendorSub","browserLanguage"],St=["fontNames","displayProps","browserProps","hardwareProps","platformProps"],Et={mac:["Macintosh","MacIntel","MacPPC","Mac68K"],windows:["Win32","Win64","Windows","WinCE"],ios:["iPhone","iPad","iPod"]},xt=["width","height","pixelDepth","orientation.angle"],Ct=["cursive","monospace","serif","sans-serif","fantasy","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic","Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit","Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana","Verona"],At=["cpuClass","deviceMemory","hardwareConcurrency","maxTouchPoints","oscpu"],It=["language","platform","userLanguage","systemLanguage"],Tt=class{reduceToObject(e,t){return e.reduce(((e,n)=>{if(n.includes(".")){let r=n.split("."),i=r[0],a=r[1],o=t[i]&&t[i][a];e[a]=null!=o?o:""}else e[n]=null!=t[n]?t[n]:null;return e}),{})}reduceToString(e,t){return e.reduce(((e,n)=>e=`${e}${t[n].filename};`),"")}},Ot=class{static enabled(){let{logLevel:e}=De.get();return{none:0,error:25,warn:50,info:75,debug:100}[e]}static info(...e){let{logger:t}=De.get();this.enabled()>=50&&(t&&t.info?t.info(...e):console.info(...e))}static warn(...e){let{logger:t}=De.get();this.enabled()>=50&&(t&&t.warn?t.warn(...e):console.warn(...e))}static error(...e){let{logger:t}=De.get();this.enabled()>=25&&(t&&t.error?t.error(...e):console.error(...e))}static log(...e){let{logger:t}=De.get();this.enabled()>=75&&(t&&t.log?t.log(...e):console.log(...e))}},Pt=class extends Tt{constructor(e){super(),this.config={fontNames:Ct,devicePlatforms:Et,displayProps:xt,browserProps:$t,hardwareProps:At,platformProps:It},e&&Object.keys(e).forEach((t=>{if(!St.includes(t))throw new Error("Device profile configuration category does not exist.");this.config[t]=e[t]}))}getBrowserMeta(){return typeof navigator>"u"?(Ot.warn("Cannot collect browser metadata. navigator is not defined."),{}):this.reduceToObject(this.config.browserProps,navigator)}getBrowserPluginsNames(){return typeof navigator<"u"&&navigator.plugins?this.reduceToString(Object.keys(navigator.plugins),navigator.plugins):(Ot.warn("Cannot collect browser plugin information. navigator.plugins is not defined."),"")}getDeviceName(){if(typeof navigator>"u")return Ot.warn("Cannot collect device name. navigator is not defined."),"";let e=navigator.userAgent,t=navigator.platform;switch(!0){case this.config.devicePlatforms.mac.includes(t):return"Mac (Browser)";case this.config.devicePlatforms.ios.includes(t):return`${t} (Browser)`;case this.config.devicePlatforms.windows.includes(t):return"Windows (Browser)";case/Android/.test(t)||/Android/.test(e):return"Android (Browser)";case/CrOS/.test(e)||/Chromebook/.test(e):return"Chrome OS (Browser)";case/Linux/.test(t):return"Linux (Browser)";default:return`${t||"Unknown"} (Browser)`}}getDisplayMeta(){return typeof screen>"u"?(Ot.warn("Cannot collect screen information. screen is not defined."),{}):this.reduceToObject(this.config.displayProps,screen)}getHardwareMeta(){return typeof navigator>"u"?(Ot.warn("Cannot collect OS metadata. Navigator is not defined."),{}):this.reduceToObject(this.config.hardwareProps,navigator)}getIdentifier(){let e=`${De.get().prefix}-DeviceID`;if(!(typeof globalThis.crypto<"u"&&globalThis.crypto.getRandomValues))return Ot.warn("Cannot generate profile ID. Crypto and/or getRandomValues is not supported."),"";if(!localStorage)return Ot.warn("Cannot store profile ID. localStorage is not supported."),"";let t=localStorage.getItem(e);return t||(t=globalThis.crypto.getRandomValues(new Uint32Array(3)).join("-"),localStorage.setItem(e,t)),t}getInstalledFonts(){if(typeof document>"u")return Ot.warn("Cannot collect font data. Global document object is undefined."),"";let e=document.createElement("canvas");if(!e)return Ot.warn("Cannot collect font data. Browser does not support canvas element"),"";let t=e.getContext&&e.getContext("2d");if(!t)return Ot.warn("Cannot collect font data. Browser does not support 2d canvas context"),"";let n="abcdefghi0123456789";t.font="72px Comic Sans";let r=t.measureText(n).width;return this.config.fontNames.reduce(((e,i)=>(t.font=`72px ${i}, Comic Sans`,t.measureText(n).width!==r&&(e=`${e}${i};`),e)),"")}async getLocationCoordinates(){return typeof navigator<"u"&&navigator.geolocation?new Promise((async e=>{navigator.geolocation.getCurrentPosition((t=>e({latitude:t.coords.latitude,longitude:t.coords.longitude})),(t=>{Ot.warn("Cannot collect geolocation information. "+t.code+": "+t.message),e({})}),{enableHighAccuracy:!0,timeout:3e4,maximumAge:0})})):(Ot.warn("Cannot collect geolocation information. navigator.geolocation is not defined."),Promise.resolve({}))}getOSMeta(){return typeof navigator>"u"?(Ot.warn("Cannot collect OS metadata. navigator is not defined."),{}):this.reduceToObject(this.config.platformProps,navigator)}async getProfile({location:e,metadata:t}){let n={identifier:this.getIdentifier()};return t&&(n.metadata={hardware:p(h({},this.getHardwareMeta()),{display:this.getDisplayMeta()}),browser:p(h({},this.getBrowserMeta()),{plugins:this.getBrowserPluginsNames()}),platform:p(h({},this.getOSMeta()),{deviceName:this.getDeviceName(),fonts:this.getInstalledFonts(),timezone:this.getTimezoneOffset()})}),e&&(n.location=await this.getLocationCoordinates()),n}getTimezoneOffset(){try{return(new Date).getTimezoneOffset()}catch(e){return Ot.warn("Cannot collect timezone information. getTimezoneOffset is not defined."),null}}},Mt=class{static isQRCodeStep(e){let t=e.getCallbacksOfType(je.HiddenValueCallback);return 0!==t.length&&!!this.getQRCodeURICb(t)}static getQRCodeData(e){let t=e.getCallbacksOfType(je.HiddenValueCallback);if(0===t.length)throw new Error("QR Code step must contain a HiddenValueCallback. Use `FRQRCode.isQRCodeStep` to guard.");let n=this.getQRCodeURICb(t),r=n?n.getOutputValue("value"):"",i="string"==typeof r&&r.includes("otpauth://")?"otp":"push",a=e.getCallbacksOfType(je.TextOutputCallback).find((e=>"4"!==e.getMessageType()));return{message:a?a.getMessage():"",use:i,uri:"string"==typeof r?r:""}}static getQRCodeURICb(e){return e.find((e=>{let t=e.getOutputValue("value");return"string"==typeof t&&((null==t?void 0:t.includes("otpauth://"))||(null==t?void 0:t.includes("pushauth://")))}))}};var Lt=class{static getDeviceName(e){var t,n;return function(e){var t,n,r,i;return null!=(t=null==(i=null==(r=null==(n=null==e?void 0:e.match(/<em\s*.*>\s*.*<\/em>/g))?void 0:n[0])?void 0:r.replace("<em>",""))?void 0:i.replace("</em>",""))?t:"New Security Key"}(null!=(t=null==(n=this.getDisplayCallback(e))?void 0:n.getOutputByName("message",""))?t:"")}static getCodes(e){var t;return function(e){let t=e.match(/\s[\w\W]"([\w]*)\\/g);return Array.isArray(t)&&t.map((e=>{let t=e.match(/"([\w]*)\\/);return Array.isArray(t)?t[1]:""}))||[]}((null==(t=this.getDisplayCallback(e))?void 0:t.getOutputByName("message",""))||"")}static isDisplayStep(e){return!!this.getDisplayCallback(e)}static getDisplayCallback(e){return e.getCallbacksOfType(je.TextOutputCallback).find((e=>{let t=e.getOutputByName("message",void 0);return t&&(t.includes("Recovery Codes")||t.includes("recovery codes"))}))}},Dt=class{static async get(e){let t=localStorage.getItem(`${De.get().prefix}-${e}`);if(t)try{return JSON.parse(t||"")}catch(n){throw new Error("Could not parse token object from localStorage")}}static async set(e,t){let n=JSON.stringify(t);localStorage.setItem(`${De.get().prefix}-${e}`,n)}static async remove(e){localStorage.removeItem(`${De.get().prefix}-${e}`)}},Rt=class{static async get(e){let t=sessionStorage.getItem(`${De.get().prefix}-${e}`);if(t)try{return JSON.parse(t||"")}catch(n){throw new Error("Could not parse token from sessionStorage")}}static async set(e,t){let n=JSON.stringify(t);sessionStorage.setItem(`${De.get().prefix}-${e}`,n)}static async remove(e){sessionStorage.removeItem(`${De.get().prefix}-${e}`)}},Ut=class{static async get(){let{clientId:e,tokenStore:t}=this.getClientConfig();if("sessionStorage"===t)return await Rt.get(e);if("localStorage"===t)return await Dt.get(e);if("indexedDB"===t)Ot.warn("IndexedDB is not supported in this version.");else if(t&&t.get)return await t.get(e);return await Dt.get(e)}static async set(e){let{clientId:t,tokenStore:n}=this.getClientConfig();if("sessionStorage"===n)return await Rt.set(t,e);if("localStorage"===n)return await Dt.set(t,e);if("indexedDB"===n)Ot.warn("IndexedDB is not supported in this version.");else if(n&&n.set)return await n.set(t,e);return await Dt.set(t,e)}static async remove(){let{clientId:e,tokenStore:t}=this.getClientConfig();if("sessionStorage"===t)return await Rt.remove(e);
1if("localStorage"===t)return await Dt.remove(e);if("indexedDB"===t)Ot.warn("IndexedDB is not supported in this version.");else if(t&&t.remove)return await t.remove(e);return await Dt.remove(e)}static getClientConfig(){let{clientId:e="unconfiguredClient",tokenStore:t="localStorage"}=De.get();return{clientId:e,tokenStore:t}}};function Nt(e){return e.ok||4===Math.floor(e.status/100)}var Ft=class{static createState(){return this.createRandomString(16)}static createVerifier(){return this.createRandomString(32)}static async createChallenge(e){let t=await this.sha256(e);return this.base64UrlEncode(t)}static base64UrlEncode(e){let t=Array.prototype.slice.call(e);return btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static async sha256(e){let t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t);return new Uint8Array(n)}static createRandomString(e=32){let t=new Uint8Array(e);return crypto.getRandomValues(t),btoa(t.join("")).replace(/[^a-zA-Z0-9]+/,"")}},Bt="Authentication or consent required",Vt="Authorization timed out",zt="Failed to fetch",jt="NetworkError when attempting to fetch resource.",Ht="Cross-origin redirection",qt="The request requires some interaction that is not allowed.",Kt="User authentication is required",Gt=class{static async createAuthorizeUrl(e){let{clientId:t,middleware:n,redirectUri:r,scope:i}=De.get(e),a=h(p(h({},e.query),{client_id:t,redirect_uri:r,response_type:e.responseType,scope:i,state:e.state}),e.prompt?{prompt:e.prompt}:{});if(e.verifier){let t=await Ft.createChallenge(e.verifier);a.code_challenge=t,a.code_challenge_method="S256"}let o=Oe({url:new URL(this.getUrl("authorize",a,e)),init:{}},{type:Le.Authorize}),{url:s}=o(n);return s.toString()}static async getAuthCodeByIframe(e){let t=await this.createAuthorizeUrl(p(h({},e),{prompt:"none"})),{serverConfig:n}=De.get(e);return new Promise(((e,r)=>{let i=document.createElement("iframe"),a=()=>{},o=a,s=a,l=0;s=()=>{clearTimeout(l),i.removeEventListener("load",o),i.remove()},o=()=>{if(i.contentWindow){let t=i.contentWindow.location.href;(this.containsAuthCode(t)||this.containsAuthError(t))&&(s(),e(t))}},l=setTimeout((()=>{s(),r(new Error(Vt))}),n.timeout),i.style.display="none",i.addEventListener("load",o),document.body.appendChild(i),i.src=t}))}static async getOAuth2Tokens(e){let{clientId:t,redirectUri:n}=De.get(e),r={client_id:t,code:e.authorizationCode,grant_type:"authorization_code",redirect_uri:n};e.verifier&&(r.code_verifier=e.verifier);let i=Ve(r),a={body:i,headers:new Headers({"Content-Length":i.length.toString(),"Content-Type":"application/x-www-form-urlencoded"}),method:"POST"},o=await this.request("accessToken",void 0,!1,a,e),s=await this.getBody(o);if(200!==o.status){let e="string"==typeof s?`Expected 200, received ${o.status}`:this.parseError(s);throw new Error(e)}let l,c=s;if(!c.access_token)throw new Error("Access token not found in response");return c.expires_in&&(l=Date.now()+1e3*c.expires_in),{accessToken:c.access_token,idToken:c.id_token,refreshToken:c.refresh_token,tokenExpiry:l}}static async getUserInfo(e){let t=await this.request("userInfo",void 0,!0,void 0,e);if(200!==t.status)throw new Error(`Failed to get user info; received ${t.status}`);return await t.json()}static async endSession(e){let t=h({},e);delete t.redirect,delete t.logoutRedirectUri;let n={},r=await Ut.get();n.id_token_hint=r&&r.idToken||(e&&"idToken"in e?e.idToken:"");let i=await this.request("endSession",n,!0,void 0,t,{redirect:null==e?void 0:e.redirect,logoutRedirectUri:null==e?void 0:e.logoutRedirectUri});if(!Nt(i))throw new Error(`Failed to end session; received ${i.status}`);return i}static async revokeToken(e){let{clientId:t}=De.get(e),n=await Ut.get(),r=n&&n.accessToken,i={client_id:t};r&&(i.token=r);let a={body:Ve(i),credentials:"include",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST"},o=await this.request("revoke",void 0,!1,a,e);if(!Nt(o))throw new Error(`Failed to revoke token; received ${o.status}`);return o}static async request(e,t,n,r,i,a){let{redirectUri:o,middleware:s,serverConfig:l}=De.get(i),c=null!=a&&a.logoutRedirectUri?a.logoutRedirectUri:o,u=this.getUrl(e,t,i),d=e=>{switch(e){case"accessToken":return Le.ExchangeToken;case"endSession":return Le.EndSession;case"revoke":return Le.RevokeToken;default:return Le.UserInfo}};if(r=r||{},n){let e=await Ut.get(),t=e&&e.accessToken;r.credentials="include",r.headers=r.headers||new Headers,r.headers.set("Authorization",`Bearer ${t}`)}
1let h=Oe({url:new URL(u),init:r},{type:d(e)})(s);return d(e)===Le.EndSession&&!0===(null==a?void 0:a.redirect)||d(e)===Le.EndSession&&!1!==(null==a?void 0:a.redirect)&&(null!=a&&a.logoutRedirectUri||this.getUrl("endSession").includes("/as/signoff"))?(h.url.searchParams.append("post_logout_redirect_uri",c||""),window.location.assign(h.url.toString()),new Response):await Pe(fetch(h.url.toString(),h.init),l.timeout)}static containsAuthCode(e){return!!e&&/code=([^&]+)/.test(e)}static containsAuthError(e){return!!e&&/error=([^&]+)/.test(e)}static async getBody(e){let t=e.headers.get("Content-Type");return t&&t.indexOf("application/json")>-1?await e.json():await e.text()}static parseError(e){if(e){if(e.error&&e.error_description)return`${e.error}: ${e.error_description}`;if(e.code&&e.message)return`${e.code}: ${e.message}`}}static getUrl(e,t,n){let{realmPath:r,serverConfig:i}=De.get(n),a=Fe(e,r,i.paths),o=Be(i.baseUrl,a);return t&&(o+=`?${Ve(t)}`),o}},Wt=class{static async logout(e){let{middleware:t,platformHeader:n,realmPath:r,serverConfig:i}=De.get(e),a={credentials:"include",headers:new Headers({"Accept-API-Version":"protocol=1.0,resource=2.0","X-Requested-With":Re}),method:"POST"},o=`${Fe("sessions",r,i.paths)}?_action=logout`,s=Be(i.baseUrl,o),l=Oe({url:new URL(s),init:a},{type:Le.Logout})(t);n&&(l.init.headers instanceof Headers?l.init.headers.set("X-Requested-Platform",Ue):Array.isArray(l.init.headers)?l.init.headers.push(["X-Requested-Platform",Ue]):l.init.headers?l.init.headers["X-Requested-Platform"]=Ue:l.init.headers={"X-Requested-Platform":Ue});let c=await Pe(fetch(l.url.toString(),l.init),i.timeout);if(!Nt(c))throw new Error(`Failed to log out; received ${c.status}`);return c}};var Zt=(e=>(e.Code="code",e.Token="token",e))(Zt||{}),Yt=class e{static async getTokens(t){var n,r,i;let{clientId:a,oauthThreshold:o}=De.get(t),s=`${De.get().prefix}-authflow-${a}`,l=await Ut.get();if(l&&(null==t||!t.forceRenew)&&(null==(n=null==t?void 0:t.query)||!n.code)&&!function(e,t){return!(!e||!t)&&t-e<Date.now()}(o,l.tokenExpiry))return l;if(l)try{await Gt.revokeToken(t),await e.deleteTokens()}catch(g){Ot.warn("Existing tokens could not be revoked or deleted",g)}if(null!=(r=null==t?void 0:t.query)&&r.code&&null!=(i=null==t?void 0:t.query)&&i.state){let e=sessionStorage.getItem(s);sessionStorage.removeItem(s);let n=JSON.parse(e);return await this.tokenExchange(t,n)}let c=Ft.createVerifier(),u=Ft.createState(),d=Object.assign({},t);delete d.forceRenew,delete d.login;let f=p(h({},d),{responseType:Zt.Code,state:u,verifier:c});try{let e=new URL(await Gt.getAuthCodeByIframe(f));if(e.searchParams.get("error"))throw Error(`${e.searchParams.get("error_description")}`);if(!e.searchParams.get("code"))throw Error(Bt);let n=function(e){let t=new URL(e),n={};return t.searchParams.forEach(((e,t)=>n[t]=e)),n}(e.toString());t||(t={}),t.query=n}catch(g){if(!(g instanceof Error)||"redirect"!==(null==t?void 0:t.login)||Bt!==g.message&&Vt!==g.message&&zt!==g.message&&jt!==g.message&&qt!==g.message&&!g.message.includes(Kt)&&!g.message.includes(Ht))throw g;sessionStorage.setItem(s,JSON.stringify(f));let e=await Gt.createAuthorizeUrl(f);return location.assign(e)}return await this.tokenExchange(t,{state:u,verifier:c})}static async deleteTokens(){await Ut.remove()}static async tokenExchange(e,t){var n,r,i,a;if((null==(n=e.query)?void 0:n.state)!==t.state)throw new Error("State mismatch");if(null==(r=e.query)||!r.code||Array.isArray(null==(i=e.query)?void 0:i.code))throw new Error("Failed to acquire authorization code");let o=null==(a=e.query)?void 0:a.code,s=t.verifier,l=p(h({},e),{authorizationCode:o,verifier:s}),c=await Gt.getOAuth2Tokens(l);if(!c||!c.accessToken)throw new Error("Unable to exchange authorization for tokens");try{await Ut.set(c)}catch(u){Ot.error("Failed to store tokens",u)}return c}},Xt=class{static async login(e,t){throw Ot.info(e,t),new Error("FRUser.login() not implemented")}static async logout(e){let t=h({},e);delete t.redirect;try{await Wt.logout(t)}catch(i){Ot.warn("Session logout was not successful")}try{await Gt.revokeToken(t)}catch(i){Ot.warn("OAuth revokeToken was not successful")}let n=await Ut.get(),{idToken:r=""}=n||{};await Yt.deleteTokens();try{await Gt.endSession(p(h({},e),{idToken:r}))}
1catch(i){Ot.warn("OAuth endSession was not successful")}}},Jt=(e=>(e.Error="ERROR",e.Unsupported="unsupported",e))(Jt||{}),Qt=(e=>(e.AbortError="AbortError",e.DataError="DataError",e.ConstraintError="ConstraintError",e.EncodingError="EncodingError",e.InvalidError="InvalidError",e.NetworkError="NetworkError",e.NotAllowedError="NotAllowedError",e.NotSupportedError="NotSupportedError",e.SecurityError="SecurityError",e.TimeoutError="TimeoutError",e.UnknownError="UnknownError",e))(Qt||{}),en=(e=>(e[e.None=0]="None",e[e.Authentication=1]="Authentication",e[e.Registration=2]="Registration",e))(en||{});function tn(e){return e||[]}function nn(e){let t=new Uint8Array(e);return(new TextDecoder).decode(t)}function rn(e){return e?e[1]:""}function an(e){try{return e.split("}").filter((e=>!!e&&"]"!==e)).map((e=>{let t=function(e){let t=/new Int8Array\((.+)\)/.exec(e);return null===t||t.length<2?[]:JSON.parse(t[1])}(e);return{id:new Int8Array(t).buffer,type:"public-key"}}))}catch(t){let e=new Error("Transforming credential object to string failed");throw e.name=Qt.EncodingError,e}}function on(e){return Array.isArray(e)?e:"string"==typeof e?e&&"["===e[0]?JSON.parse(e):(e=e.replace(/(\w+):/g,'"$1":'),JSON.parse(`[${e}]`)):void 0}function sn(e){return e.includes("rpId")?e.replace(/rpId: "(.+)",/,"$1"):e.replace(/id: "(.+)",/,"$1")}var ln=class{static getWebAuthnStepType(e){let t=this.getOutcomeCallback(e),n=this.getMetadataCallback(e),r=this.getTextOutputCallback(e);if(t&&n){let e=n.getOutputValue("data");return null!=e&&e.pubKeyCredParams?en.Registration:en.Authentication}return t&&r?r.getMessage().includes("pubKeyCredParams")?en.Registration:en.Authentication:en.None}static async authenticate(e){let{hiddenCallback:t,metadataCallback:n,textOutputCallback:r}=this.getCallbacks(e);if(t&&(n||r)){let a;try{let e;if(n){let t=n.getOutputValue("data");e=this.createAuthenticationPublicKey(t)}else r&&(e=function(e){let t,n;n=e.includes("acceptableCredentials")?rn(e.match(/acceptableCredentials"*\s*=\s*\[([^]+)\s*]/)).trim():rn(e.match(/allowCredentials"{0,}:\s{0,}\[([^]+)\s{0,}]/)).trim();let r=rn(e.match(/userVerification"{0,}:\s{0,}"(\w+)"/));n&&(t=(n.split("},")||[n]).map((e=>{let t=rn(e.match(/type"{0,}:\s{0,}"([\w-]+)"/)),n=tn(e.match(/id"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),r=JSON.parse(n[2]);return{type:t,id:new Int8Array(r).buffer}})));let i=Number(rn(e.match(/timeout"{0,}:\s{0,}(\d+)/))),a=tn(e.match(/challenge"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),o=JSON.parse(a[2]),s=new Int8Array(o).buffer,l=rn(e.match(/rpId"{0,}:\s{0,}\\{0,}"([^"\\]*)/));return h(h(h({challenge:s,timeout:i},t&&{allowCredentials:t}),r&&{userVerification:r}),l&&{rpId:l})}(r.getMessage()));let t=await this.getAuthenticationCredential(e);a=this.getAuthenticationOutcome(t)}catch(i){throw i instanceof Error?i.name===Qt.NotSupportedError?(t.setInputValue(Jt.Unsupported),i):(t.setInputValue(`${Jt.Error}::${i.name}:${i.message}`),i):i}return t.setInputValue(a),e}{let e=new Error("Incorrect callbacks for WebAuthn authentication");throw e.name=Qt.DataError,null==t||t.setInputValue(`${Jt.Error}::${e.name}:${e.message}`),e}}static async register(e,t){let{hiddenCallback:n,metadataCallback:r,textOutputCallback:i}=this.getCallbacks(e);if(n&&(r||i)){let o;try{let e;if(r){let t=r.getOutputValue("data");e=this.createRegistrationPublicKey(t);let n=await this.getRegistrationCredential(e);o=this.getRegistrationOutcome(n)}else{if(!i)throw new Error("No Credential found from Public Key");{e=function(e){let t=new TextEncoder,n=rn(e.match(/attestation"{0,}:\s{0,}"(\w+)"/)),r=Number(rn(e.match(/timeout"{0,}:\s{0,}(\d+)/))),i=rn(e.match(/userVerification"{0,}:\s{0,}"(\w+)"/)),a=rn(e.match(/requireResidentKey"{0,}:\s{0,}(\w+)/)),o=rn(e.match(/authenticatorAttachment"{0,}:\s{0,}"([\w-]+)/)),s=rn(e.match(/rp"{0,}:\s{0,}{([^}]+)}/)).trim(),l=rn(s.match(/id"{0,}:\s{0,}"([^"]*)"/)),c=rn(s.match(/name"{0,}:\s{0,}"([^"]*)"/)),u=rn(e.match(/user"{0,}:\s{0,}{([^]{0,})},/)).trim(),d=rn(u.match(/id"{0,}:\s{0,}Uint8Array.from\("([^"]+)"/)),f=rn(u.match(/name"{0,}:\s{0,}"([\d\w._-]+)"/)),g=rn(u.match(/displayName"{0,}:\s{0,}"([\d\w\s.@_-]+)"/)),m=on(rn(e.match(/pubKeyCredParams"*:\s*\[([^]+\d\s*})\s*]/)).trim());if(!m){let e=new Error("Missing pubKeyCredParams property from registration options");throw e.name=Qt.DataError,e}let v=an(rn(e.match(/excludeCredentials"{0,}:\s{0,}\[([^]+)\s{0,}]/)).trim()),w=tn(e.match(/challenge"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),b=JSON.parse(w[2]),y=new Int8Array(b).buffer;return p(h({attestation:n,authenticatorSelection:h(h({userVerification:i},o&&{authenticatorAttachment:o}),"true"===a&&{requireResidentKey:!!a}),challenge:y},v.length&&{excludeCredentials:v}),{pubKeyCredParams:m,rp:h({name:c},l&&{id:l}),timeout:r,user:{displayName:g,id:t.encode(d),name:f}})}(i.getMessage());let t=await this.getRegistrationCredential(e);o=this.getRegistrationOutcome(t)}}}catch(a){throw a instanceof Error?a.name===Qt.NotSupportedError?(n.setInputValue(Jt.Unsupported),a):(n.setInputValue(`${Jt.Error}::${a.name}:${a.message}`),a):a}return n.setInputValue(t&&t.length>0?`${o}::${t}`:o),e}{let e=new Error("Incorrect callbacks for WebAuthn registration");throw e.name=Qt.DataError,null==n||n.setInputValue(`${Jt.Error}::${e.name}:${e.message}`),e}}static getCallbacks(e){let t=this.getOutcomeCallback(e),n=this.getMetadataCallback(e),r=this.getTextOutputCallback(e),i={hiddenCallback:t};return n?i.metadataCallback=n:r&&(i.textOutputCallback=r),i}static getMetadataCallback(e){return e.getCallbacksOfType(je.MetadataCallback).find((e=>{let t=e.getOutputByName("data",void 0);return t&&t.hasOwnProperty("relyingPartyId")}))}static getOutcomeCallback(e){return e.getCallbacksOfType(je.HiddenValueCallback).find((e=>"webAuthnOutcome"===e.getOutputByName("id","")))}static getTextOutputCallback(e){return e.getCallbacksOfType(je.TextOutputCallback).find((e=>{let t=e.getOutputByName("message",void 0);return t&&t.includes("webAuthnOutcome")}
1))}static async getAuthenticationCredential(e){if(!window.PublicKeyCredential){let e=new Error("PublicKeyCredential not supported by this browser");throw e.name=Qt.NotSupportedError,e}return await navigator.credentials.get({publicKey:e})}static getAuthenticationOutcome(e){if(null===e){let e=new Error("No credential generated from authentication");throw e.name=Qt.UnknownError,e}try{let t=nn(e.response.clientDataJSON),n=e.response,r=new Int8Array(n.authenticatorData).toString(),i=new Int8Array(n.signature).toString(),a=nn(e.response.userHandle),o=`${t}::${r}::${i}::${e.id}`;return a&&(o=`${o}::${a}`),o}catch(t){let e=new Error("Transforming credential object to string failed");throw e.name=Qt.EncodingError,e}}static async getRegistrationCredential(e){if(!window.PublicKeyCredential){let e=new Error("PublicKeyCredential not supported by this browser");throw e.name=Qt.NotSupportedError,e}return await navigator.credentials.create({publicKey:e})}static getRegistrationOutcome(e){if(null===e){let e=new Error("No credential generated from registration");throw e.name=Qt.UnknownError,e}try{let t=nn(e.response.clientDataJSON),n=e.response;return`${t}::${new Int8Array(n.attestationObject).toString()}::${e.id}`}catch(t){let e=new Error("Transforming credential object to string failed");throw e.name=Qt.EncodingError,e}}static createAuthenticationPublicKey(e){let{acceptableCredentials:t,allowCredentials:n,challenge:r,relyingPartyId:i,timeout:a,userVerification:o}=e,s=sn(i),l=an(n||t||"");return h(h(h({challenge:Uint8Array.from(atob(r),(e=>e.charCodeAt(0))).buffer,timeout:a},l&&{allowCredentials:l}),o&&{userVerification:o}),s&&{rpId:s})}static createRegistrationPublicKey(e){let{pubKeyCredParams:t}=e,n=on(t);if(!n){let e=new Error("Missing pubKeyCredParams property from registration options");throw e.name=Qt.DataError,e}let r=an(e.excludeCredentials),{attestationPreference:i,authenticatorSelection:a,challenge:o,relyingPartyId:s,relyingPartyName:l,timeout:c,userId:u,userName:d,displayName:f}=e,g=sn(s),m=h({name:l},g&&{id:g});return p(h({attestation:i,authenticatorSelection:JSON.parse(a),challenge:Uint8Array.from(atob(o),(e=>e.charCodeAt(0))).buffer},r.length&&{excludeCredentials:r}),{pubKeyCredParams:n,rp:m,timeout:c,user:{displayName:f||d,id:Int8Array.from(u.split("").map((e=>e.charCodeAt(0)))),name:d}})}};function cn(e){let t=new URL(e).searchParams.get("authIndexValue")||"",n=new DOMParser,r=decodeURIComponent(t),i=n.parseFromString(r,"application/xml").querySelector("Value");return i?i.innerHTML:""}function un(e){let t=function(e){let t,n=(e.split(",")||[]).find((e=>e.includes("advices")))||"";try{let e=n.match(/"(\S+)"/),r=e?e[1]:"",i=atob(r);return t=JSON.parse(i),t}catch(r){Ot.error("Could not parse advices value from WWW-Authenticate header")}return{}}(e.headers.get("WWW-Authenticate")||"");return{resource:"",actions:{},attributes:{},advices:t,ttl:0}}var dn,hn,pn=class{static async request(e){let t,n=await this._request(e,!1),r=!1;if(function(e,t){return"function"==typeof t?t(e):401===e.status}(n,e.requiresNewToken)&&(n=await this._request(e,!0)),e.authorization&&e.authorization.handleStep){if(401===n.status&&function(e){return(e.get("WWW-Authenticate")||"").includes("advices")}(n.headers)?(r=!0,t=un(n)):n.redirected&&function(e){return(e.headers.get("Content-Type")||"").includes("html")&&e.url.includes("composite_advice")}(n)?(r=!0,t=function(e){let t={};return e.url.includes("AuthenticateToServiceConditionAdvice")?t.AuthenticateToServiceConditionAdvice=[cn(e.url)]:t.TransactionConditionAdvice=[cn(e.url)],{resource:"",actions:{},attributes:{},advices:t,ttl:0}}(n)):await async function(e){return!!(await e.clone().json()).advice
1s}(n)&&(t=await async function(e){return await e.json()}(n)),!t||!t.advices)throw new Error("Error: Unable to process advice");{let{middleware:i,realmPath:a,serverConfig:o}=De.get(e.authorization.config),s=function(e,t,n,r,i){let a=e.advices&&e.advices.AuthenticateToServiceConditionAdvice,o=e.advices&&e.advices.TransactionConditionAdvice,s="",l="";a?(s=a.reduce(((e,t)=>`${t}${e&&` ${e}`}`),""),l="AuthenticateToServiceConditionAdvice"):o&&(s=o.reduce(((e,t)=>`${t}${e&&` ${e}`}`),""),l="TransactionConditionAdvice");let c=`<Advices><AttributeValuePair><Attribute name="${l}"/><Value>${s}</Value></AttributeValuePair></Advices>`,u=Fe("authenticate",r,i),d={authIndexType:"composite_advice",authIndexValue:c};return{init:{method:"POST",credentials:"include",headers:new Headers({"Accept-API-Version":"resource=2.0, protocol=1.0"})},timeout:n,url:Be(t,`${u}?${Ve(d)}`)}}(t,o.baseUrl,e.timeout,a,o.paths),l=new URL(s.url),c=l.searchParams.get("authIndexType"),u=l.searchParams.get("authIndexValue"),d=Oe({url:new URL(s.url),init:s.init},{type:Le.StartAuthenticate,payload:{type:c,tree:u}}),{url:h,init:p}=d(i);s.url=h.toString(),s.init=p;let f=await this._request(s,!1);if(!await async function(e){return!!(await e.clone().json()).callbacks}(f))throw new Error('Error: Initial response from auth server not a "step".');if(!function(e){return e.advices&&e.advices.AuthenticateToServiceConditionAdvice?Array.isArray(e.advices.AuthenticateToServiceConditionAdvice)&&e.advices.AuthenticateToServiceConditionAdvice.length>0:!(!e.advices||!e.advices.TransactionConditionAdvice)&&Array.isArray(e.advices.TransactionConditionAdvice)&&e.advices.TransactionConditionAdvice.length>0}(t))throw new Error("Error: Transactional or Service Advice is empty.");await this.stepIterator(f,e.authorization.handleStep);let g=await Ut.get();r?e.url=function(e,t,n){let r=new URL(e);if(t.TransactionConditionAdvice){let e=t.TransactionConditionAdvice[0];r.searchParams.append("_txid",e)}return n&&n.idToken&&r.searchParams.append("_idtoken",n.idToken),r.toString()}(e.url,t.advices,g):e.init.headers=function(e,t,n){let r=new Headers(e.headers);return t.AuthenticateToServiceConditionAdvice?r.set("X-Tree",t.AuthenticateToServiceConditionAdvice[0]):t.TransactionConditionAdvice&&r.set("X-TxID",t.TransactionConditionAdvice[0]),n&&n.idToken&&r.set("X-IdToken",n.idToken),r}(e.init,t.advices,g),n=await this._request(e,!1)}}return n}static async setAuthHeaders(e,t){let n=await Ut.get();return n&&n.accessToken&&(n=await Yt.getTokens({forceRenew:t}),n&&n.accessToken&&e.set("Authorization",`Bearer ${n.accessToken}`)),e}static async stepIterator(e,t){let n=await e.json(),r=new _t(n);return new Promise((async(e,n)=>{!async function r(i){let a=await t(i),o=await kt.next(a,{tree:"",type:""});o.type===Ze.LoginSuccess?e():o.type===Ze.LoginFailure?n("Authentication tree failure."):r(o)}(r)}))}static async _request(e,t){let{url:n,init:r,timeout:i}=e,a=new Headers(r.headers||{});return e.authorization&&a.set("x-authenticate-response","header"),e.bypassAuthentication||(a=await this.setAuthHeaders(a,t)),r.headers=a,Pe(fetch(n,r),i)}},fn=class{static getCurrentUser(e){return Gt.getUserInfo(e)}},gn=class{static async getData(){return await window._pingOneSignals.getData()}static async start(e){try{await Promise.resolve().then((function(){return wg}))}catch(t){console.error("error loading ping signals",t)}await window._pingOneSignals.init(e),!0===e.behavioralDataCollection&&window._pingOneSignals.resumeBehavioralData()}static pauseBehavioralData(){window._pingOneSignals.pauseBehavioralData()}static resumeBehavioralData(){window._pingOneSignals.resumeBehavioralData()}};function mn(e){if("missingStores"===e){let e="Error: missing configuration.";throw console.error(e),console.error("Please configure Widget by importing `configuration` and calling `set` with your settings."),new Error(e)}if("missingBaseUrl"===e){let e="Error: missing `serverConfig.baseUrl`.";throw console.error(e),console.error("Please configure Widget by importing `configuration` and calling `set` with your ForgeRock server URL."),new Error(e)}}!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter((e=>
1"number"!=typeof t[t[e]])),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(dn||(dn={})),function(e){e.mergeShapes=(e,t)=>h(h({},e),t)}(hn||(hn={}));var vn=dn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=e=>{switch(typeof e){case"undefined":return vn.undefined;case"string":return vn.string;case"number":return isNaN(e)?vn.nan:vn.number;case"boolean":return vn.boolean;case"function":return vn.function;case"bigint":return vn.bigint;case"symbol":return vn.symbol;case"object":return Array.isArray(e)?vn.array:null===e?vn.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?vn.promise:"undefined"!=typeof Map&&e instanceof Map?vn.map:"undefined"!=typeof Set&&e instanceof Set?vn.set:"undefined"!=typeof Date&&e instanceof Date?vn.date:vn.object;default:return vn.unknown}}
1,bn=dn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yn=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,dn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};yn.create=e=>new yn(e);var _n=(e,t)=>{let n;switch(e.code){case bn.invalid_type:n=e.received===vn.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case bn.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,dn.jsonStringifyReplacer)}`;break;case bn.unrecognized_keys:n=`Unrecognized key(s) in object: ${dn.joinValues(e.keys,", ")}`;break;case bn.invalid_union:n="Invalid input";break;case bn.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${dn.joinValues(e.options)}`;break;case bn.invalid_enum_value:n=`Invalid enum value. Expected ${dn.joinValues(e.options)}, received '${e.received}'`;break;case bn.invalid_arguments:n="Invalid function arguments";break;case bn.invalid_return_type:n="Invalid function return type";break;case bn.invalid_date:n="Invalid date";break;case bn.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:dn.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case bn.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case bn.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case bn.custom:n="Invalid input";break;case bn.invalid_intersection_types:n="Intersection results could not be merged";break;case bn.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case bn.not_finite:n="Number must be finite";break;default:n=t.defaultError,dn.assertNever(e)}return{message:n}},kn=_n;function $n(){return kn}var Sn=e=>
1{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o=p(h({},i),{path:a}),s="",l=r.filter((e=>!!e)).slice().reverse();for(let c of l)s=c(o,{data:t,defaultError:s}).message;return p(h({},i),{path:a,message:i.message||s})};function En(e,t){let n=Sn({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,$n(),_n].filter((e=>!!e))});e.common.issues.push(n)}var xn,Cn=class e{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return An;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n)r.push({key:await e.key,value:await e.value});return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return An;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&("undefined"!=typeof i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},An=Object.freeze({status:"aborted"}),In=e=>({status:"dirty",value:e}),Tn=e=>({status:"valid",value:e}),On=e=>"aborted"===e.status,Pn=e=>"dirty"===e.status,Mn=e=>"valid"===e.status,Ln=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(xn||(xn={}));var Dn=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Rn=(e,t)=>{if(Mn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new yn(e.common.issues);return this._error=t,this._error}}};function Un(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:"undefined"==typeof t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}var Nn,Fn=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return wn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:wn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Cn,ctx:{common:e.parent.common,data:e.data,parsedType:wn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(Ln(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:wn(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Rn(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:wn(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(Ln(r)?r:Promise.resolve(r));return Rn(n,i)}refine(e,t){return this._refinement(((n,r)=>{let i=e(n),a=()=>r.addIssue(h({code:bn.custom},(e=>"string"==typeof t||"undefined"==typeof t?{message:t}:"function"==typeof t?t(e):t)(n)));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((e=>!!e||(a(),!1))):!!i||(a(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new Cr({schema:this,typeName:Ur.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ar.create(this,this._def)}nullable(){return Ir.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return lr.create(this,this._def)}promise(){return xr.create(this,this._def)}or(e){return dr.create([this,e],this._def)}and(e){return gr.create(this,e,this._def)}transform(e){return new Cr(p(h({},Un(this._def)),{schema:this,typeName:Ur.ZodEffects,effect:{type:"transform",transform:e}}))}default(e){let t="function"==typeof e?e:()=>e;return new Tr(p(h({},Un(this._def)),{innerType:this,defaultValue:t,typeName:Ur.ZodDefault}))}brand(){return new Lr(h({typeName:Ur.ZodBranded,type:this},Un(this._def)))}catch(e){let t="function"==typeof e?e:()=>e;return new Or(p(h({},Un(this._def)),{innerType:this,catchValue:t,typeName:Ur.ZodCatch}))}describe(e){return new(0,this.constructor)(p(h({},this._def),{description:e}))}pipe(e){return Dr.create(this,e)}readonly(){return Rr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Bn=/^c[^\s-]{8,}
1$/i,Vn=/^[a-z][a-z0-9]*$/,zn=/^[0-9A-HJKMNP-TV-Z]{26}$/,jn=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Hn=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,qn=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Kn=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Gn=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Wn(e,t){return!(("v4"!==t&&t||!qn.test(e))&&("v6"!==t&&t||!Kn.test(e)))}var Zn=class e extends Fn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==vn.string){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.string,received:t.parsedType}),An}let t,n=new Cn;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if("max"===i.kind)e.data.length>i.value&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if("length"===i.kind){let r=e.data.length>i.value,a=e.data.length<i.value;(r||a)&&(t=this._getOrReturnCtx(e,t),r?En(t,{code:bn.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&En(t,{code:bn.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if("email"===i.kind)Hn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"email",code:bn.invalid_string,message:i.message}),n.dirty());else if("emoji"===i.kind)Nn||(Nn=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Nn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"emoji",code:bn.invalid_string,message:i.message}),n.dirty());else if("uuid"===i.kind)jn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"uuid",code:bn.invalid_string,message:i.message}),n.dirty());else if("cuid"===i.kind)Bn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"cuid",code:bn.invalid_string,message:i.message}),n.dirty());else if("cuid2"===i.kind)Vn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"cuid2",code:bn.invalid_string,message:i.message}),n.dirty());else if("ulid"===i.kind)zn.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"ulid",code:bn.invalid_string,message:i.message}),n.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(r){t=this._getOrReturnCtx(e,t),En(t,{validation:"url",code:bn.invalid_string,message:i.message}),n.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"regex",code:bn.invalid_string,message:i.message}),n.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):"datetime"===i.kind?Gn(i).test(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.invalid_string,validation:"datetime",message:i.message}),n.dirty()):"ip"===i.kind?Wn(e.data,i.version)||(t=this._getOrReturnCtx(e,t),En(t,{validation:"ip",code:bn.invalid_string,message:i.message}),n.dirty()):dn.assertNever(i);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),h({validation:t,code:bn.invalid_string},xn.errToObj(n)))}_addCheck(t){return new e(p(h({},this._def),{checks:[...this._def.checks,t]}))}email(e){return this._addCheck(h({kind:"email"},xn.errToObj(e)))}url(e){return this._addCheck(h({kind:"url"},xn.errToObj(e)))}emoji(e){return this._addCheck(h({kind:"emoji"},xn.errToObj(e)))}uuid(e){return this._addCheck(h({kind:"uuid"},xn.errToObj(e)))}cuid(e){return this._addCheck(h({kind:"cuid"},xn.errToObj(e)))}cuid2(e){return this._addCheck(h({kind:"cuid2"},xn.errToObj(e)))}ulid(e){return this._addCheck(h({kind:"ulid"},xn.errToObj(e)))}ip(e){return this._addCheck(h({kind:"ip"},xn.errToObj(e)))}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck(h({kind:"datetime",precision:"undefined"==typeof(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t},xn.errToObj(null==e?void 0:e.message)))}regex(e,t){return this._addCheck(h({kind:"regex",regex:e},xn.errToObj(t)))}includes(e,t){return this._addCheck(h({kind:"includes",value:e,position:null==t?void 0:t.position},xn.errToObj(null==t?void 0:t.message)))}startsWith(e,t){return this._addCheck(h({kind:"startsWith",value:e},xn.errToObj(t)))}endsWith(e,t){return this._addCheck(h({kind:"endsWith",value:e},xn.errToObj(t)))}min(e,t){return this._addCheck(h({kind:"min",value:e},xn.errToObj(t)))}max(e,t){return this._addCheck(h({kind:"max",value:e},xn.errToObj(t)))}length(e,t){return this._addCheck(h({kind:"length",value:e},xn.errToObj(t)))}nonempty(e){return this.min(1,xn.errToObj(e))}trim(){return new e(p(h({},this._def),{checks:[...this._def.checks,{kind:"trim"}]}))}toLowerCase(){return new e(p(h({},this._def),{checks:[...this._def.checks,{kind:"toLowerCase"}]}))}toUpperCase(){return new e(p(h({},this._def),{checks:[...this._def.checks,{kind:"toUpperCase"}]}))}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}
1get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}};function Yn(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Zn.create=e=>{var t;return new Zn(h({checks:[],typeName:Ur.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t},Un(e)))};var Xn=class e extends Fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==vn.number){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.number,received:t.parsedType}),An}let t,n=new Cn;for(let r of this._def.checks)"int"===r.kind?dn.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==Yn(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),En(t,{code:bn.not_finite,message:r.message}),n.dirty()):dn.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,xn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xn.toString(t))}setLimit(t,n,r,i){return new e(p(h({},this._def),{checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:xn.toString(i)}]}))}_addCheck(t){return new e(p(h({},this._def),{checks:[...this._def.checks,t]}))}int(e){return this._addCheck({kind:"int",message:xn.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xn.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:xn.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xn.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xn.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&dn.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}};Xn.create=e=>new Xn(h({checks:[],typeName:Ur.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1},Un(e)));var Jn=class e extends Fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==vn.bigint){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.bigint,received:t.parsedType}),An}let t,n=new Cn;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):dn.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,xn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xn.toString(t))}setLimit(t,n,r,i){return new e(p(h({},this._def),{checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:xn.toString(i)}]}))}_addCheck(t){return new e(p(h({},this._def),{checks:[...this._def.checks,t]}))}
1positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xn.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}};Jn.create=e=>{var t;return new Jn(h({checks:[],typeName:Ur.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t},Un(e)))};var Qn=class extends Fn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==vn.boolean){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.boolean,received:t.parsedType}),An}return Tn(e.data)}};Qn.create=e=>new Qn(h({typeName:Ur.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1},Un(e)));var er=class e extends Fn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==vn.date){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.date,received:t.parsedType}),An}if(isNaN(e.data.getTime())){return En(this._getOrReturnCtx(e),{code:bn.invalid_date}),An}let t,n=new Cn;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(t=this._getOrReturnCtx(e,t),En(t,{code:bn.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):dn.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e(p(h({},this._def),{checks:[...this._def.checks,t]}))}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:xn.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:xn.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}};er.create=e=>new er(h({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ur.ZodDate},Un(e)));var tr=class extends Fn{_parse(e){if(this._getType(e)!==vn.symbol){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.symbol,received:t.parsedType}),An}return Tn(e.data)}};tr.create=e=>new tr(h({typeName:Ur.ZodSymbol},Un(e)));var nr=class extends Fn{_parse(e){if(this._getType(e)!==vn.undefined){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.undefined,received:t.parsedType}),An}return Tn(e.data)}};nr.create=e=>new nr(h({typeName:Ur.ZodUndefined},Un(e)));var rr=class extends Fn{_parse(e){if(this._getType(e)!==vn.null){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.null,received:t.parsedType}),An}return Tn(e.data)}};rr.create=e=>new rr(h({typeName:Ur.ZodNull},Un(e)));var ir=class extends Fn{constructor(){super(...arguments),this._any=!0}_parse(e){return Tn(e.data)}};ir.create=e=>new ir(h({typeName:Ur.ZodAny},Un(e)));var ar=class extends Fn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Tn(e.data)}};ar.create=e=>new ar(h({typeName:Ur.ZodUnknown},Un(e)));var or=class extends Fn{_parse(e){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.never,received:t.parsedType}),An}};or.create=e=>new or(h({typeName:Ur.ZodNever},Un(e)));var sr=class extends Fn{_parse(e){if(this._getType(e)!==vn.undefined){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.void,received:t.parsedType}),An}return Tn(e.data)}};sr.create=e=>new sr(h({typeName:Ur.ZodVoid},Un(e)));var lr=class e extends Fn{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==vn.array)return En(t,{code:bn.invalid_type,expected:vn.array,received:t.parsedType}),An;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(En(t,{code:e?bn.too_big:bn.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(En(t,{code:bn.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(En(t,{code:bn.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Dn(t,e,t.path,n))))).then((e=>Cn.mergeArray(n,e)));let i=[...t.data].map(((e,n)=>r.type._parseSync(new Dn(t,e,t.path,n))));return Cn.mergeArray(n,i)}
1get element(){return this._def.type}min(t,n){return new e(p(h({},this._def),{minLength:{value:t,message:xn.toString(n)}}))}max(t,n){return new e(p(h({},this._def),{maxLength:{value:t,message:xn.toString(n)}}))}length(t,n){return new e(p(h({},this._def),{exactLength:{value:t,message:xn.toString(n)}}))}nonempty(e){return this.min(1,e)}};function cr(e){if(e instanceof ur){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Ar.create(cr(r))}return new ur(p(h({},e._def),{shape:()=>t}))}return e instanceof lr?new lr(p(h({},e._def),{type:cr(e.element)})):e instanceof Ar?Ar.create(cr(e.unwrap())):e instanceof Ir?Ir.create(cr(e.unwrap())):e instanceof mr?mr.create(e.items.map((e=>cr(e)))):e}lr.create=(e,t)=>new lr(h({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ur.ZodArray},Un(t)));var ur=class e extends Fn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=dn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==vn.object){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.object,received:t.parsedType}),An}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof or&&"strip"===this._def.unknownKeys))for(let s in n.data)i.includes(s)||a.push(s);let o=[];for(let s of i){let e=r[s],t=n.data[s];o.push({key:{status:"valid",value:s},value:e._parse(new Dn(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof or){let e=this._def.unknownKeys;if("passthrough"===e)for(let t of a)o.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(En(n,{code:bn.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new Dn(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{let e=[];for(let t of o){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>Cn.mergeObjectSync(t,e))):Cn.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return xn.errToObj,new e(h(p(h({},this._def),{unknownKeys:"strict"}),void 0!==t?{errorMap:(e,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,e,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===e.code?{message:null!==(o=xn.errToObj(t).message)&&void 0!==o?o:s}:{message:s}}}:{}))}strip(){return new e(p(h({},this._def),{unknownKeys:"strip"}))}passthrough(){return new e(p(h({},this._def),{unknownKeys:"passthrough"}))}extend(t){return new e(p(h({},this._def),{shape:()=>h(h({},this._def.shape()),t)}))}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>h(h({},this._def.shape()),t._def.shape()),typeName:Ur.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e(p(h({},this._def),{catchall:t}))}pick(t){let n={};return dn.objectKeys(t).forEach((e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])})),new e(p(h({},this._def),{shape:()=>n}))}omit(t){let n={};return dn.objectKeys(this.shape).forEach((e=>{t[e]||(n[e]=this.shape[e])})),new e(p(h({},this._def),{shape:()=>n}))}deepPartial(){return cr(this)}partial(t){let n={};return dn.objectKeys(this.shape).forEach((e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()})),new e(p(h({},this._def),{shape:()=>n}))}required(t){let n={};return dn.objectKeys(this.shape).forEach((e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Ar;)t=t._def.innerType;n[e]=t}})),new e(p(h({},this._def),{shape:()=>n}))}keyof(){return $r(dn.objectKeys(this.shape))}};ur.create=(e,t)=>new ur(h({shape:()=>e,unknownKeys:"strip",catchall:or.create(),typeName:Ur.ZodObject},Un(t))),ur.strictCreate=(e,t)=>new ur(h({shape:()=>e,unknownKeys:"strict",catchall:or.create(),typeName:Ur.ZodObject},Un(t))),ur.lazycreate=(e,t)=>
1new ur(h({shape:e,unknownKeys:"strip",catchall:or.create(),typeName:Ur.ZodObject},Un(t)));var dr=class extends Fn{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{let n=p(h({},t),{common:p(h({},t.common),{issues:[]}),parent:null});return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let n=e.map((e=>new yn(e.ctx.common.issues)));return En(t,{code:bn.invalid_union,unionErrors:n}),An}));{let e,r=[];for(let a of n){let n=p(h({},t),{common:p(h({},t.common),{issues:[]}),parent:null}),i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"===i.status&&!e&&(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map((e=>new yn(e)));return En(t,{code:bn.invalid_union,unionErrors:i}),An}}get options(){return this._def.options}};dr.create=(e,t)=>new dr(h({options:e,typeName:Ur.ZodUnion},Un(t)));var hr=e=>e instanceof _r?hr(e.schema):e instanceof Cr?hr(e.innerType()):e instanceof kr?[e.value]:e instanceof Sr?e.options:e instanceof Er?Object.keys(e.enum):e instanceof Tr?hr(e._def.innerType):e instanceof nr?[void 0]:e instanceof rr?[null]:null,pr=class e extends Fn{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==vn.object)return En(t,{code:bn.invalid_type,expected:vn.object,received:t.parsedType}),An;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(En(t,{code:bn.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),An)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=hr(e.shape[t]);if(!n)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e(h({typeName:Ur.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i},Un(r)))}};function fr(e,t){let n=wn(e),r=wn(t);if(e===t)return{valid:!0,data:e};if(n===vn.object&&r===vn.object){let n=dn.objectKeys(t),r=dn.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i=h(h({},e),t);for(let a of r){let n=fr(e[a],t[a]);if(!n.valid)return{valid:!1};i[a]=n.data}return{valid:!0,data:i}}if(n===vn.array&&r===vn.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=fr(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===vn.date&&r===vn.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var gr=class extends Fn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(On(e)||On(r))return An;let i=fr(e.value,r.value);return i.valid?((Pn(e)||Pn(r))&&t.dirty(),{status:t.value,value:i.data}):(En(n,{code:bn.invalid_intersection_types}),An)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};gr.create=(e,t,n)=>new gr(h({left:e,right:t,typeName:Ur.ZodIntersection},Un(n)));var mr=class e extends Fn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==vn.array)return En(n,{code:bn.invalid_type,expected:vn.array,received:n.parsedType}),An;if(n.data.length<this._def.items.length)return En(n,{code:bn.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),An;!this._def.rest&&n.data.length>this._def.items.length&&(En(n,{code:bn.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map(((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Dn(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>Cn.mergeArray(t,e))):Cn.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e(p(h({},this._def),{rest:t}))}};mr.create=(e,t)=>
1{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mr(h({items:e,typeName:Ur.ZodTuple,rest:null},Un(t)))};var vr=class e extends Fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==vn.object)return En(n,{code:bn.invalid_type,expected:vn.object,received:n.parsedType}),An;let r=[],i=this._def.keyType,a=this._def.valueType;for(let o in n.data)r.push({key:i._parse(new Dn(n,o,n.path,o)),value:a._parse(new Dn(n,n.data[o],n.path,o))});return n.common.async?Cn.mergeObjectAsync(t,r):Cn.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return new e(n instanceof Fn?h({keyType:t,valueType:n,typeName:Ur.ZodRecord},Un(r)):h({keyType:Zn.create(),valueType:t,typeName:Ur.ZodRecord},Un(n)))}},wr=class extends Fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==vn.map)return En(n,{code:bn.invalid_type,expected:vn.map,received:n.parsedType}),An;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:r._parse(new Dn(n,e,n.path,[a,"key"])),value:i._parse(new Dn(n,t,n.path,[a,"value"]))})));if(n.common.async){let e=new Map;return Promise.resolve().then((async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return An;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return An;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};wr.create=(e,t,n)=>new wr(h({valueType:t,keyType:e,typeName:Ur.ZodMap},Un(n)));var br=class e extends Fn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==vn.set)return En(n,{code:bn.invalid_type,expected:vn.set,received:n.parsedType}),An;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(En(n,{code:bn.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(En(n,{code:bn.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return An;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map(((e,t)=>i._parse(new Dn(n,e,n.path,t))));return n.common.async?Promise.all(o).then((e=>a(e))):a(o)}min(t,n){return new e(p(h({},this._def),{minSize:{value:t,message:xn.toString(n)}}))}max(t,n){return new e(p(h({},this._def),{maxSize:{value:t,message:xn.toString(n)}}))}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};br.create=(e,t)=>new br(h({valueType:e,minSize:null,maxSize:null,typeName:Ur.ZodSet},Un(t)));var yr=class e extends Fn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==vn.function)return En(t,{code:bn.invalid_type,expected:vn.function,received:t.parsedType}),An;function n(e,n){return Sn({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,$n(),_n].filter((e=>!!e)),issueData:{code:bn.invalid_arguments,argumentsError:n}})}function r(e,n){return Sn({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,$n(),_n].filter((e=>!!e)),issueData:{code:bn.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof xr){let e=this;return Tn((async function(...t){let o=new yn([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw o.addIssue(n(t,e)),o})),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch((e=>{throw o.addIssue(r(l,e)),o}))}))}{let e=this;return Tn((function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new yn([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new yn([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e(p(h({},this._def),{args:mr.create(t).rest(ar.create())}))}returns(t){return new e(p(h({},this._def),{returns:t}))}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e(h({args:t||mr.create([]).rest(ar.create()),returns:n||ar.create(),typeName:Ur.ZodFunction},Un(r)))}},_r=class extends Fn{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};_r.create=(e,t)=>
1new _r(h({getter:e,typeName:Ur.ZodLazy},Un(t)));var kr=class extends Fn{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return En(t,{received:t.data,code:bn.invalid_literal,expected:this._def.value}),An}return{status:"valid",value:e.data}}get value(){return this._def.value}};function $r(e,t){return new Sr(h({values:e,typeName:Ur.ZodEnum},Un(t)))}kr.create=(e,t)=>new kr(h({value:e,typeName:Ur.ZodLiteral},Un(t)));var Sr=class e extends Fn{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return En(t,{expected:dn.joinValues(n),received:t.parsedType,code:bn.invalid_type}),An}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return En(t,{received:t.data,code:bn.invalid_enum_value,options:n}),An}return Tn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t){return e.create(t)}exclude(t){return e.create(this.options.filter((e=>!t.includes(e))))}};Sr.create=$r;var Er=class extends Fn{_parse(e){let t=dn.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==vn.string&&n.parsedType!==vn.number){let e=dn.objectValues(t);return En(n,{expected:dn.joinValues(e),received:n.parsedType,code:bn.invalid_type}),An}if(-1===t.indexOf(e.data)){let e=dn.objectValues(t);return En(n,{received:n.data,code:bn.invalid_enum_value,options:e}),An}return Tn(e.data)}get enum(){return this._def.values}};Er.create=(e,t)=>new Er(h({values:e,typeName:Ur.ZodNativeEnum},Un(t)));var xr=class extends Fn{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==vn.promise&&!1===t.common.async)return En(t,{code:bn.invalid_type,expected:vn.promise,received:t.parsedType}),An;let n=t.parsedType===vn.promise?t.data:Promise.resolve(t.data);return Tn(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}};xr.create=(e,t)=>new xr(h({type:e,typeName:Ur.ZodPromise},Un(t)));var Cr=class extends Fn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ur.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{En(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?An:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?An:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Mn(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Mn(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}dn.assertNever(r)}};Cr.create=(e,t,n)=>new Cr(h({schema:e,typeName:Ur.ZodEffects,effect:t},Un(n))),Cr.createWithPreprocess=(e,t,n)=>new Cr(h({schema:t,effect:{type:"preprocess",transform:e},typeName:Ur.ZodEffects},Un(n)));var Ar=class extends Fn{_parse(e){return this._getType(e)===vn.undefined?Tn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ar.create=(e,t)=>
1new Ar(h({innerType:e,typeName:Ur.ZodOptional},Un(t)));var Ir=class extends Fn{_parse(e){return this._getType(e)===vn.null?Tn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ir.create=(e,t)=>new Ir(h({innerType:e,typeName:Ur.ZodNullable},Un(t)));var Tr=class extends Fn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===vn.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Tr.create=(e,t)=>new Tr(h({innerType:e,typeName:Ur.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default},Un(t)));var Or=class extends Fn{_parse(e){let{ctx:t}=this._processInputParams(e),n=p(h({},t),{common:p(h({},t.common),{issues:[]})}),r=this._def.innerType._parse({data:n.data,path:n.path,parent:h({},n)});return Ln(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new yn(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new yn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Or.create=(e,t)=>new Or(h({innerType:e,typeName:Ur.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch},Un(t)));var Pr=class extends Fn{_parse(e){if(this._getType(e)!==vn.nan){let t=this._getOrReturnCtx(e);return En(t,{code:bn.invalid_type,expected:vn.nan,received:t.parsedType}),An}return{status:"valid",value:e.data}}};Pr.create=e=>new Pr(h({typeName:Ur.ZodNaN},Un(e)));var Mr=Symbol("zod_brand"),Lr=class extends Fn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Dr=class e extends Fn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?An:"dirty"===e.status?(t.dirty(),In(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?An:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:Ur.ZodPipeline})}},Rr=class extends Fn{_parse(e){let t=this._def.innerType._parse(e);return Mn(t)&&(t.value=Object.freeze(t.value)),t}};Rr.create=(e,t)=>new Rr(h({innerType:e,typeName:Ur.ZodReadonly},Un(t)));var Ur,Nr=(e,t={},n)=>e?ir.create().superRefine(((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o,l="string"==typeof e?{message:e}:e;i.addIssue(p(h({code:"custom"},l),{fatal:s}))}})):ir.create(),Fr={object:ur.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ur||(Ur={}));var Br=Zn.create,Vr=Xn.create,zr=Pr.create,jr=Jn.create,Hr=Qn.create,qr=er.create,Kr=tr.create,Gr=nr.create,Wr=rr.create,Zr=ir.create,Yr=ar.create,Xr=or.create,Jr=sr.create,Qr=lr.create,ei=ur.create,ti=ur.strictCreate,ni=dr.create,ri=pr.create,ii=gr.create,ai=mr.create,oi=vr.create,si=wr.create,li=br.create,ci=yr.create,ui=_r.create,di=kr.create,hi=Sr.create,pi=Er.create,fi=xr.create,gi=Cr.create,mi=Ar.create,vi=Ir.create,wi=Cr.createWithPreprocess,bi=Dr.create,yi={string:e=>Zn.create(p(h({},e),{coerce:!0})),number:e=>Xn.create(p(h({},e),{coerce:!0})),boolean:e=>Qn.create(p(h({},e),{coerce:!0})),bigint:e=>Jn.create(p(h({},e),{coerce:!0})),date:e=>er.create(p(h({},e),{coerce:!0}))},_i=An,ki=Object.freeze({__proto__:null,defaultErrorMap:_n,setErrorMap:function(e){kn=e},getErrorMap:$n,makeIssue:Sn,EMPTY_PATH:[],addIssueToContext:En,ParseStatus:Cn,INVALID:An,DIRTY:In,OK:Tn,isAborted:On,isDirty:Pn,isValid:Mn,isAsync:Ln,get util(){return dn},get objectUtil(){return hn},ZodParsedType:vn,getParsedType:wn,ZodType:Fn,ZodString:Zn,ZodNumber:Xn,ZodBigInt:Jn,ZodBoolean:Qn,ZodDate:er,ZodSymbol:tr,ZodUndefined:nr,ZodNull:rr,ZodAny:ir,ZodUnknown:ar,ZodNever:or,ZodVoid:sr,ZodArray:lr,ZodObject:ur,ZodUnion:dr,ZodDiscriminatedUnion:pr,ZodIntersection:gr,ZodTuple:mr,ZodRecord:vr,ZodMap:wr,ZodSet:br,ZodFunction:yr,ZodLazy:_r,ZodLiteral:kr,ZodEnum:Sr,ZodNativeEnum:Er,ZodPromise:xr,ZodEffects:Cr,ZodTransformer:Cr,ZodOptional:Ar,ZodNullable:Ir,ZodDefault:Tr,ZodCatch:Or,ZodNaN:Pr,BRAND:Mr,ZodBranded:Lr,ZodPipeline:Dr,ZodReadonly:Rr,custom:Nr,Schema:Fn,ZodSchema:Fn,late:Fr,get ZodFirstPartyTypeKind(){return Ur},coerce:yi,any:Zr,array:Qr,bigint:jr,boolean:Hr,date:qr,discriminatedUnion:ri,effect:gi,enum:hi,function:ci,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Nr((t=>t instanceof e),t),intersection:ii,lazy:ui,literal:di,map:si,nan:zr,nativeEnum:pi,never:Xr,null:Wr,nullable:vi,number:Vr,object:ei,oboolean:()=>Hr().optional(),onumber:()=>Vr().optional(),optional:mi,ostring:()=>Br().optional(),pipeline:bi,preprocess:wi,promise:fi,record:oi,set:li,strictObject:ti,str
1ing:Br,symbol:Kr,transformer:gi,tuple:ai,undefined:Gr,union:ni,unknown:Yr,void:Jr,NEVER:_i,ZodIssueCode:bn,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:yn}),$i=ki.object({callbackFactory:ki.function().args(ki.object({_id:ki.number().optional(),input:ki.array(ki.object({name:ki.string(),value:ki.unknown()})).optional(),output:ki.array(ki.object({name:ki.string(),value:ki.unknown()})),type:ki.nativeEnum(je)})).returns(ki.instanceof(Je)).optional(),clientId:ki.string().optional(),logLevel:ki.union([ki.literal("none"),ki.literal("error"),ki.literal("warn"),ki.literal("info"),ki.literal("debug")]).optional(),middleware:ki.array(ki.function()).optional(),realmPath:ki.string(),redirectUri:ki.string().optional(),scope:ki.string().optional(),serverConfig:ki.object({baseUrl:ki.string({invalid_type_error:"`serverConfig.baseUrl` is a required URL string (this is generated by the Zod library).",required_error:"Setting the `serverConfig.baseUrl` is required (this is generated by the Zod library)."}).url({message:"`serverConfig.baseUrl` must be a full URL (this is generated by the Zod library)."}),paths:ki.object({authenticate:ki.string().optional(),authorize:ki.string().optional(),accessToken:ki.string().optional(),endSession:ki.string().optional(),userInfo:ki.string().optional(),revoke:ki.string().optional(),sessions:ki.string().optional()}).strict().optional(),timeout:ki.number({invalid_type_error:"`serverConfig.timeout` is a required number and in milliseconds (this is generated by the Zod library)."}).optional()}).strict(),support:ki.union([ki.literal("legacy"),ki.literal("modern")]).optional(),tokenStore:ki.union([ki.object({get:ki.function().args(ki.string()).returns(ki.promise(ki.object({accessToken:ki.string(),idToken:ki.string().optional(),refreshToken:ki.string().optional(),tokenExpiry:ki.number().optional()}))),set:ki.function().args(ki.string()).returns(ki.promise(ki.void())),remove:ki.function().args(ki.string()).returns(ki.promise(ki.void()))}).strict(),ki.literal("sessionStorage"),ki.literal("localStorage")]).optional(),tree:ki.string().optional(),type:ki.string().optional(),oauthThreshold:ki.number().optional()}).strict();function Si(e){$i.parse(e),De.set(e)}$i.partial();var Ei=ki.object({journey:ki.string().optional(),match:ki.string().regex(/^(#\/service|\?journey)/,{message:"HREF string must start with `?journey` or `#/service`"}).array()}).optional(),xi=ki.object({forgotPassword:Ei,forgotUsername:Ei,login:Ei,register:Ei}),Ci={forgotPassword:{journey:"ResetPassword",match:["#/service/ResetPassword","?journey=ResetPassword"]},forgotUsername:{journey:"ForgottenUsername",match:["#/service/ForgottenUsername","?journey=ForgottenUsername"]},login:{journey:"Login",match:["#/service/Login","?journey","?journey=Login"]},register:{journey:"Registration",match:["#/service/Registration","?journey=Registration"]}};xi.parse(Ci);var Ai=Object.keys(Ci).map((e=>p(h({},Ci[e]),{key:e}))),Ii=xe(Ai);function Ti(e){if(e){xi.parse(e);let t=h(h({},Ci),e),n=Object.keys(t);Ii.set(n.map((e=>p(h({},t[e]),{key:e}))))}else Ii.set(Ai);return Ii}var Oi={exports:{}},Pi={},Mi={exports:{}},Li={};function Di(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice"
1:!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var Ri=/javascript\s*\:/gim;Li.whiteList=Di(),Li.getDefaultWhiteList=Di,Li.onAttr=function(e,t,n){},Li.onIgnoreAttr=function(e,t,n){},Li.safeAttrValue=function(e,t){return Ri.test(t)?"":t};var Ui={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Ni=Ui;var Fi=function(e,t){";"!==(e=Ni.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,i=0,a=0,o="";function s(){if(!r){var n=Ni.trim(e.slice(i,a)),s=n.indexOf(":");if(-1!==s){var l=Ni.trim(n.slice(0,s)),c=Ni.trim(n.slice(s+1));if(l){var u=t(i,o.length,l,c,n);u&&(o+=u+"; ")}}}i=a+1}for(;a<n;a++){var l=e[a];if("/"===l&&"*"===e[a+1]){var c=e.indexOf("*/",a+2);if(-1===c)break;i=(a=c+1)+1,r=!1}else"("===l?r=!0:")"===l?r=!1:";"===l?r||s():"\n"===l&&s()}return Ni.trim(o)},Bi=Li,Vi=Fi;function zi(e){return null==e}function ji(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||Bi.whiteList,e.onAttr=e.onAttr||Bi.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Bi.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Bi.safeAttrValue,this.options=e}ji.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,i=t.onIgnoreAttr,a=t.safeAttrValue;return Vi(e,(function(e,t,o,s,l){var c=n[o],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=a(o,s)){var d,h={position:t,sourcePosition:e,source:l,isWhite:u};if(u)return zi(d=r(o,s,h))?o+":"+s:d;if(!zi(d=i(o,s,h)))return d}}))};var Hi=ji;!function(e,t){var n=Li,r=Hi;
1for(var i in(t=e.exports=function(e,t){return new r(t).process(e)}).FilterCSS=r,n)t[i]=n[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(Mi,Mi.exports);var qi=Mi.exports,Ki={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},Gi=qi.FilterCSS,Wi=qi.getDefaultWhiteList,Zi=Ki;function Yi(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Xi=new Gi;function Ji(e){return e.replace(Qi,"&lt;").replace(ea,"&gt;")}var Qi=/</g,ea=/>/g,ta=/"/g,na=/&quot;/g,ra=/&#([a-zA-Z0-9]*);?/gim,ia=/&colon;?/gim,aa=/&newline;?/gim,oa=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,sa=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,la=/u\s*r\s*l\s*\(.*/gi;function ca(e){return e.replace(ta,"&quot;")}function ua(e){return e.replace(na,'"')}function da(e){return e.replace(ra,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function ha(e){return e.replace(ia,":").replace(aa," ")}function pa(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Zi.trim(t)}function fa(e){return e=pa(e=ha(e=da(e=ua(e))))}function ga(e){return e=Ji(e=ca(e))}Pi.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},Pi.getDefaultWhiteList=Yi,Pi.onTag=function(e,t,n){},Pi.onIgnoreTag=function(e,t,n){},Pi.onTagAttr=function(e,t,n){},Pi.onIgnoreTagAttr=function(e,t,n){},Pi.safeAttrValue=function(e,t,n,r){if(n=fa(n),"href"===t||"src"===t){if("#"===(n=Zi.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(oa.lastIndex=0,oa.test(n))return""}else if("style"===t){if(sa.lastIndex=0,sa.test(n)||(la.lastIndex=0,la.test(n)&&(oa.lastIndex=0,oa.test(n))))return"";!1!==r&&(n=(r=r||Xi).process(n))}return n=ga(n)},Pi.escapeHtml=Ji,Pi.escapeQuote=ca,Pi.unescapeQuote=ua,Pi.escapeHtmlEntities=da,Pi.escapeDangerHtml5Entities=ha,Pi.clearNonPrintableCharacter=pa,Pi.friendlyAttrValue=fa,Pi.escapeAttrValue=ga,Pi.onIgnoreTagStripAll=function(){return""},Pi.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;
vendor: 4,746 bytes, line 1
1return{onIgnoreTag:function(a,o,s){if(function(t){return!!n||-1!==Zi.indexOf(e,t)}(a)){if(s.isClosing){var l="[/removed]",c=s.position+10;return r.push([!1!==i?i:s.position,c]),i=!1,l}return i||(i=s.position),"[removed]"}return t(a,o,s)},remove:function(e){var t="",n=0;return Zi.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},Pi.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t},Pi.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},Pi.cssFilter=Xi,Pi.getDefaultCSSWhiteList=Wi;var ma={},va=Ki;function wa(e){var t,n=va.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=va.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function ba(e){return"</"===e.slice(0,2)}var ya=/[^a-zA-Z0-9\\_:.-]/gim;function _a(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function ka(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function $a(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function Sa(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}ma.parseTag=function(e,t,n){var r="",i=0,a=!1,o=!1,s=0,l=e.length,c="",u="";e:for(s=0;s<l;s++){var d=e.charAt(s);if(!1===a){if("<"===d){a=s;continue}}else if(!1===o){if("<"===d){r+=n(e.slice(i,s)),a=s,i=s;continue}if(">"===d||s===l-1){r+=n(e.slice(i,a)),c=wa(u=e.slice(a,s+1)),r+=t(a,r.length,c,u,ba(u)),i=s+1,a=!1;continue}if('"'===d||"'"===d)for(var h=1,p=e.charAt(s-h);""===p.trim()||"="===p;){if("="===p){o=d;continue e}p=e.charAt(s-++h)}}else if(d===o){o=!1;continue}}return i<l&&(r+=n(e.substr(i))),r},ma.parseAttr=function(e,t){var n=0,r=0,i=[],a=!1,o=e.length;function s(e,n){if(!((e=(e=va.trim(e)).replace(ya,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&i.push(r)}}for(var l=0;l<o;l++){var c,u=e.charAt(l);if(!1!==a||"="!==u)if(!1===a||l!==r)if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===a){if(-1===(c=_a(e,l))){s(va.trim(e.slice(n,l))),a=!1,n=l+1;continue}l=c-1;continue}if(-1===(c=$a(e,l-1))){s(a,Sa(va.trim(e.slice(n,l)))),a=!1,n=l+1;continue}}else;else{if(-1===(c=e.indexOf(u,l+1)))break;s(a,va.trim(e.slice(r+1,c))),a=!1,n=(l=c)+1}else a=e.slice(n,l),n=l+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:ka(e,l+1)}return n<e.length&&(!1===a?s(e.slice(n)):s(a,Sa(va.trim(e.slice(n))))),va.trim(i.join(" "))};var Ea=qi.FilterCSS,xa=Pi,Ca=ma,Aa=Ca.parseTag,Ia=Ca.parseAttr,Ta=Ki;function Oa(e){return null==e}function Pa(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xa.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=xa.whiteList,e.onTag=e.onTag||xa.onTag,e.onTagAttr=e.onTagAttr||xa.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xa.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xa.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xa.safeAttrValue,e.escapeHtml=e.escapeHtml||xa.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Ea(e.css))}Pa.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,a=t.onTagAttr,o=t.onIgnoreTagAttr,s=t.safeAttrValue,l=t.escapeHtml,c=this.cssFilter;t.stripBlankChar&&(e=xa.stripBlankChar(e)),t.allowCommentTag||(e=xa.stripCommentTag(e));var u=!1;t.stripIgnoreTagBody&&(u=xa.StripTagBody(t.stripIgnoreTagBody,i),i=u.onIgnoreTag);var d=Aa(e,(function(e,t,u,d,h){var p={sourcePosition:e,position:t,isClosing:h,isWhite:Object.prototype.hasOwnProperty.call(n,u)},f=r(u,d,p);if(!Oa(f))return f;if(p.isWhite){if(p.isClosing)return"</"+u+">";var g=function(e){var t=Ta.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=Ta.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=Ta.trim(e.slice(0,-1))),{html:e,closing:n}}(d),m=n[u],v=Ia(g.html,(function(e,t){var n=-1!==Ta.indexOf(m,e),r=a(u,e,t,n);return Oa(r)?n?(t=s(u,e,t,c))?e+'="'+t+'"':e:Oa(r=o(u,e,t,n))?void 0:r:r}));return d="<"+u,v&&(d+=" "+v),g.closing&&(d+=" /"),d+=">"}return Oa(f=i(u,d,p))?l(d):f}),l);return u&&(d=u.remove(d)),d};var Ma=Pa;!function(e,t){var n=Pi,r=ma,i=Ma;function a(e,t){return new i(t).process(e)}
1(t=e.exports=a).filterXSS=a,t.FilterXSS=i,function(){for(var e in n)t[e]=n[e];for(var i in r)t[i]=r[i]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(Oi,Oi.exports);var La=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Oi.exports),Da={alreadyHaveAnAccount:"Already have an account? <a href='?journey'>Sign in here!</a>",backToDefault:"Back to Sign In",backToLogin:"Back to Sign In",closeModal:"Close",charactersCannotRepeatMoreThan:"Character cannot repeat more than {max} times",charactersCannotRepeatMoreThanCaseInsensitive:"Character cannot repeat more than {max} times (case insensitive)",checkYourEmail:"Check your email",chooseDifferentUsername:"Please choose a different username.",chooseYourDeviceForIdentityVerification:"Choose your device for identity verification.",confirmPassword:"Confirm password",constraintViolationForPassword:"Password does not meet the requirements.",constraintViolationForValue:"Value does not meet the requirements.",continueWith:"Continue with ",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authentictor app.",copyUrl:"Copy URL",customSecurityQuestion:"Custom security question",deviceName:"Device name",doesNotMeetMinimumCharacterLength:"At least {min} character(s)",dontGetLockedOut:"Don't get locked out of your account!",dontHaveAnAccount:"No account? <a href='?journey=Registration'>Register here!</a>",ensurePasswordIsMoreThan:"Password must contain at least {minPasswordLength} character(s).",ensurePasswordHasOne:"Password must contain at least 1 capital letter, 1 number, and 1 special character.",enterVerificationCode:"Enter verification code",exceedsMaximumCharacterLength:"Exceeds maximum of {max} characters",fieldCanNotContainFollowingCharacters:"Cannot contain these character(s): {chars}",fieldCanNotContainFollowingValues:"Cannot contain these value(s): {fields}",forgotPassword:"Forgot password?",forgotUsername:"Forgot username?",givenName:"First name",inputRequiredError:"Value is required",loading:"Loading ...",loginButton:"Sign in",loginFailure:"Sign in failed",loginHeader:"Sign in",loginSuccess:"Sign in successful!",mail:"Email address",minimumNumberOfNumbers:"At least {num} number(s)",minimumNumberOfLowercase:"At least {num} lowercase letter(s)",minimumNumberOfUppercase:"At least {num} uppercase letter(s)",minimumNumberOfSymbols:"At least {num} symbol(s)",nameCallback:"Username",nameYourDevice:"Name your device",next:"Next",nextButton:"Next",notToExceedMaximumCharacterLength:"No more than {max} characters",noLessThanMinimumCharacterLength:"At least {min} character(s)",onMobileOpenInAuthenticator:"On mobile? Open link in Authenticator.",optionallyNameDevice:"Optionally name your device",passwordCallback:"Password",passwordCannotContainCommonPasswords:"Password cannot contain common passwords",passwordCannotContainCommonPasswordsOrBeReversible:"Password cannot contain common passwords or reversible text",passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:"Password cannot contain common passwords or reversible text less than {min} characters",passwordRequirements:"Password requirements:",pleaseCheckValue:"Please check this value",pleaseConfirm:"Please confirm",preferencesMarketing:"Send me special offers and services",preferencesUpdates:"Send me news and updates",provideCustomQuestion:"Provide custom security question",qrCodeNotWorking:"Not working or need an alternative method?",qrCodeFailedToRender:"QR Code failed to render. Please notify your support administrator. You are welcome to use the alternative methods below.",qrCodeImportFailure:"We are unable to render your QR Code. Please use one of the alternative methods below.",redirectingTo:"Redirecting you to",registerButton:"Register",registerHeader:"Register",registerSuccess:"Registration successful!",requiredField:"Value is required",registerYourDevice:"Register {name}",scanQrCodeWithAuthenticator:"Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.",securityAnswer:"Security answer",securityQuestions:"Security question(s)",securityQuestionsPrompt:"Provide security question(s) and answer(s):",shouldContainANumber:"Should contain a number",shouldContainAnUppercase:"Should contain an uppercase letter",shouldContainALowercase:"Should contain a lowercase letter",shouldContainASymbol
1:"Should contain a symbol",showPassword:"Show password",signalsEvaluation:"Evaluating device information.",skipButton:"Skip",sn:"Last name",submit:"Submit",submitButton:"Submit",successMessage:"Success!",termsAndConditions:"Please accept our Terms & Conditions",termsAndConditionsLinkText:"View full Terms & Conditions",tryAgain:"Please try again",twoFactorAuthentication:"Two factor authentication",useThisNewMfaToHelpVerifyYourIdentity:"Use this new device or Multi-Factor Authentication method to help verify your identity.",useValidEmail:"Please use a valid email address.",unrecoverableError:"There was an error in the form submission.",unknownLoginError:"Unknown login failure has occurred.",unknownNetworkError:"Unknown network request failure has occurred.",url:"URL:",useDeviceForIdentityVerification:"Use your device for identity verification.",useOneOfTheseCodes:"Use one of these codes to authenticate if you lose your device, which has been named: <em>{name}</em>",userName:"Username",usernameRequirements:"Username requirements:",useTheAuthenticatorAppOnYourPhone:"Find the verification code using the authenticator app on your phone.",validatedCreatePasswordCallback:"Password",validatedCreateUsernameCallback:"Username",valueRequirements:"Value requirements:",verifyYourIdentity:"Verify your identity",yourDevice:"Your device",yourMultiFactorAuthIsEnabled:"Your new device or MFA is enabled",yourRecoveryCodesToAccessAccountForLostDevice:"If you lose your device, or don\u2019t have it with you, a recovery code is the only way to sign in to your account with 2-step verification enabled. It\u2019s strongly recommended that you print and store these codes in a safe place. <b>Each code can only be used once</b>."},Ra=ki.object({alreadyHaveAnAccount:ki.string(),backToDefault:ki.string(),backToLogin:ki.string(),dontHaveAnAccount:ki.string(),closeModal:ki.string(),charactersCannotRepeatMoreThan:ki.string(),charactersCannotRepeatMoreThanCaseInsensitive:ki.string(),checkYourEmail:ki.string(),chooseDifferentUsername:ki.string(),chooseYourDeviceForIdentityVerification:ki.string(),confirmPassword:ki.string(),constraintViolationForPassword:ki.string(),constraintViolationForValue:ki.string(),continueWith:ki.string(),copyUrl:ki.string(),copyAndPasteUrlBelow:ki.string(),customSecurityQuestion:ki.string(),dontGetLockedOut:ki.string(),doesNotMeetMinimumCharacterLength:ki.string(),deviceName:ki.string(),ensurePasswordIsMoreThan:ki.string(),ensurePasswordHasOne:ki.string(),enterVerificationCode:ki.string(),exceedsMaximumCharacterLength:ki.string(),fieldCanNotContainFollowingCharacters:ki.string(),fieldCanNotContainFollowingValues:ki.string(),forgotPassword:ki.string(),forgotUsername:ki.string(),givenName:ki.string(),inputRequiredError:ki.string(),loading:ki.string(),loginButton:ki.string(),loginFailure:ki.string(),loginHeader:ki.string(),loginSuccess:ki.string(),mail:ki.string(),minimumNumberOfNumbers:ki.string(),minimumNumberOfLowercase:ki.string(),minimumNumberOfUppercase:ki.string(),minimumNumberOfSymbols:ki.string(),nameCallback:ki.string(),nameYourDevice:ki.string(),next:ki.string(),nextButton:ki.string(),notToExceedMaximumCharacterLength:ki.string(),noLessThanMinimumCharacterLength:ki.string(),useOneOfTheseCodes:ki.string(),onMobileOpenInAuthenticator:ki.string(),optionallyNameDevice:ki.string(),passwordCallback:ki.string(),passwordCannotContainCommonPasswords:ki.string(),passwordCannotContainCommonPasswordsOrBeReversible:ki.string(),passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:ki.string(),passwordRequirements:ki.string(),pleaseCheckValue:ki.string(),pleaseConfirm:ki.string(),preferencesMarketing:ki.string(),preferencesUpdates:ki.string(),provideCustomQuestion:ki.string(),qrCodeNotWorking:ki.string(),qrCodeFailedToRender:ki.string(),qrCodeImportFailure:ki.string(),redirectingTo:ki.string(),registerButton:ki.string(),registerHeader:ki.string(),registerSuccess:ki.string(),registerYourDevice:ki.string(),requiredField:ki.string(),securityAnswer:ki.string(),scanQrCodeWithAuthenticator:ki.string(),securityQuestions:ki.string(),securityQuestionsPrompt:ki.string(),shouldContainANumber:ki.string(),shouldContainAnUppercase:ki.string(),shouldContainALowercase:ki.string(),shouldContainASymbol
1:ki.string(),showPassword:ki.string(),signalsEvaluation:ki.string(),skipButton:ki.string(),sn:ki.string(),submit:ki.string(),submitButton:ki.string(),successMessage:ki.string(),termsAndConditions:ki.string(),termsAndConditionsLinkText:ki.string(),tryAgain:ki.string(),twoFactorAuthentication:ki.string(),useThisNewMfaToHelpVerifyYourIdentity:ki.string(),useValidEmail:ki.string(),unrecoverableError:ki.string(),unknownLoginError:ki.string(),unknownNetworkError:ki.string(),url:ki.string(),useDeviceForIdentityVerification:ki.string(),userName:ki.string(),usernameRequirements:ki.string(),useTheAuthenticatorAppOnYourPhone:ki.string(),validatedCreatePasswordCallback:ki.string(),validatedCreateUsernameCallback:ki.string(),valueRequirements:ki.string(),verifyYourIdentity:ki.string(),yourDevice:ki.string(),yourMultiFactorAuthIsEnabled:ki.string(),yourRecoveryCodesToAccessAccountForLostDevice:ki.string()}).strict();Ra.partial(),Ra.parse(Da);var Ua=xe(null);function Na(e){return e?Ua.set(h(h({},Da),e)):Ua.set(Da),Ra}var Fa=ki.record(ki.string().regex(/^[^<>]*$/)).optional();function Ba(e,t,n){if(!e)throw new Error("No key provided to t()");let r=$(Ua),i=r&&r[e]||"",a="";if(t?(Fa.parse(t),Object.keys(t).map((e=>{let n=new RegExp(`{${e}}`,"g");a=i.replace(n,t[e])}))):a=i,a||n)!a&&n&&(a=n);else{let t=e.replace(/([A-Z])/g," $1");a=t.charAt(0).toUpperCase()+t.slice(1)}return La(a,{onTagAttr:function(e,t,n){if("a"==e&&"href"==t&&"?"===n.substr(0,1))return`${t}="${n}"`}})}function Va(e){if("string"!=typeof e&&"number"!=typeof e)throw new Error("Parameter for textToKey function needs to be of type string or number");if("number"==typeof e&&(e=String(e)),e.match(/^([A-Z]+)$/))return e.toLowerCase();if(e.match(/^([A-Z]+[\W]*)$/))return e.replace(/\W/g,"").toLowerCase();let t=e.replace(/(\W)([\w\d])/g,((e,t,n)=>t.match(/['\u2019"\u201d]/)&&n.match(/[a-z]/)?n:t.match(/\W/)&&n.match(/[a-z]/)?n.toUpperCase():(t.match(/\W/)&&n.match(/\d/),n))).replace(/(\W)/g,"");return t.charAt(0).toLowerCase()+t.slice(1)}function za(e){if(!e)return"";if(e.toLocaleLowerCase().includes("constraint violation"))return console.error("Delta Sierra error has occurred. Please communicate this to your system administrator."),e.toLocaleLowerCase().includes("password")?"constraintViolationForPassword":"constraintViolationForValue";return e.replace(/^([A-Z])/g,((e,t)=>`${t.toLowerCase()}`)).replace(/\s([a-z])/g,((e,t)=>`${t.toUpperCase()}`)).replace(/\W/g,"")}function ja(){let e=!1;return function(t){return!(!t.getOutputByName("failedPolicies",[]).length||e)&&(e=!0,!0)}}function Ha(e){return e.getCallbacksOfType(je.RedirectCallback).length>0}var qa=[je.ConfirmationCallback,je.DeviceProfileCallback,je.PollingWaitCallback,je.SelectIdPCallback,je.PingOneProtectInitializeCallback,je.PingOneProtectEvaluationCallback],Ka=[je.BooleanAttributeInputCallback,je.ChoiceCallback,je.ConfirmationCallback,je.KbaCreateCallback,je.NameCallback,je.NumberAttributeInputCallback,je.PasswordCallback,je.ReCaptchaCallback,je.SelectIdPCallback,je.StringAttributeInputCallback,je.TermsAndConditionsCallback,je.ValidatedCreatePasswordCallback,je.ValidatedCreateUsernameCallback],Ga={SelectIdPCallback:e=>!!e.getProviders().find((e=>"localAuthentication"===e.provider))};function Wa(e){return e.getType()===je.ConfirmationCallback&&1===e.getOptions().length}function Za(e){let t=Ga[e.getType()];return!!t&&t(e)}function Ya(e){return qa.includes(e.getType())}function Xa(e){return e.getType()!==je.SelectIdPCallback&&(e.getType()!==je.ConfirmationCallback||1!==e.getOptions().length)&&Ka.includes(e.getType())}function Ja(e,t,n){let r={};return null==e?void 0:e.callbacks.map(((e,i)=>{let a,o=e.getType();return r[o]?r[o]=r[o]+1:r[o]=1,n&&n[o]&&(a=n[o][r[o]-1]),h({derived:{canForceUserInputOptionality:Za(e),isFirstInvalidInput:t(e),isReadyForSubmission:Wa(e),isSelfSubmitting:Ya(e),isUserInputRequired:Xa(e)},idx:i},a&&{platform:h({},a)})}))}function Qa(e,t,n){let r,i=e.filter((e=>!!e.derived.isUserInputRequired)).length,a=function(e,t,n){return e.reduce(n||((e,n)=>(n.derived.canForceUserInputOptionality&&t>0&&(e=!0),e)),!1)}(e,i);return t&&(r=Object.keys(t).reduce(((e,n)=>("object"!=typeof t[n]&&(e[n]=t[n]),e)),{})),h(h({derived:{isStepSelfSubmittable:()=>function(e,t){return!!t||!e.filter((e=>e.derived.isUserInputRequired&&!e.derived.isSelfSubmitting)).length}(e,a),isUserInputOptional:a,numOfCallbacks:e.length,numOfSelfSubmittableCbs:e.filter((e=>!!e.derived.isSelfSubmitting)).length,numOfUserInputCbs:i}},r&&{platform:h({},r)}),n&&{platform:{stageName:n}})}var eo=xe({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null,recaptchaAction:null});function to(e){let t=function(e){let t=e?[e]:[],{update:n,set:r,subscribe:i}=xe(t);return no={latest:async()=>new Promise((e=>{i((t=>{let n=t[t.length-1];e(n)}))()})),pop:async()=>new Promise((e=>{n((t=>{let n;return n=t.length?t.slice(0,-1):t,e([...n]),n}))})),push:async e=>new Promise((t=>{n((n=>{var r;let i;return i=n.length?e&&(null==e?void 0:e.tree)!==(null==(r=n[n.length-1])?void 0:r.tree)?[...n,e]:n:[h({},e)],t([...i]),i}))})),reset:()=>{r([])},subscribe:i}}(),n=0;async function r(r,i,a){var o,s,l;null!=(o=De.get().serverConfig)&&o.baseUrl||mn("missingBaseUrl");let c,u=h(h({},e),i);r&&r.type===Ze.Step&&(c=null==r?void 0:r.callbacks);let d,f=null==r?void 0:r.payload;eo.set({completed:!1,error:null,loading:!0,metadata:$(eo).metadata,step:r,successful:!1,response:null,recaptchaAction:null==i?void 0:i.recaptchaAction});try{a?(u.tree=void 0,d=await kt.resume(a,u)):r?(u.tree=void 0,d=await kt.next(r,u)):d=await kt.start(u)}catch(g){console.error(`Next step request | ${g}`),d=new Ye({message:Ba("unknownNetworkError")})}if(d.type===Ze.Step){let e=d.getStage(),t=null,r=null;if(e&&e.includes("{"))try{t=JSON.parse(e)}catch(m){console.warn("Stage attribute value was not parsable")}else e&&(r=e);let a=Ja(d,ja(),t),o=Qa(a,t,r);n+=1,eo.set({completed:!1,error:null,loading:!1,metadata:{callbacks:a,step:o},step:d,successful:!1,response:null,recaptchaAction:null==i?void 0:i.recaptchaAction})}else if(d.type===Ze.LoginSuccess)t.reset(),eo.set({completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:d.payload,recaptchaAction:null==i?void 0:i.recaptchaAction});else if(d.type===Ze.LoginFailure){let e=function(e){if("object"!=typeof document)return null;let t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(d.payload.message||"Unknown login error"),i=null;try{let e=await t.latest();i=await kt.next(void 0,e)}catch(v){console.error(`Restart failed step request | ${v}`),i=new Ye({message:Ba("unknownNetworkError")})}if(function(e,t,n,r){var i;if(!Array.isArray(t)||n.type!==Ze.Step||1!==r)return!1;let a=e.payload.detail,o=null==(i=e.payload.message)?void 0:i.toLowerCase();return!!("110"===(null==a?void 0:a.errorCode)||null!=o&&o.includes("constraint violation"))}(d,c,i,n)){i.callbacks=c,i.payload=p(h({},f),{authId:i.payload.authId});let e=d.payload.detail;"110"===(null==e?void 0:e.errorCode)&&(i=await kt.next(i,u))}if(i.type===Ze.Step){let t=i.getStage(),n=null,a=null;if(t&&t.includes("{"))try{n=JSON.parse(t)}catch(w){console.warn("Stage attribute value was not parsable")}else t&&(a=t);let o=Ja(i,ja(),n),l=Qa(o,n,a);eo.set({completed:!1,error:{code:d.getCode(),message:e,stage:null==(s=null==r?void 0:r.payload)?void 0:s.stage,troubleshoot:null},loading:!1,metadata:{callbacks:o,step:l},step:i,successful:!1,response:null,recaptchaAction:null})}else i.type===Ze.LoginSuccess?eo.set({completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:i.payload,recaptchaAction:null}):eo.set({completed:!0,error:{code:d.getCode(),message:e,stage:null==(l=null==r?void 0:r.payload)?void 0:l.stage,troubleshoot:null},loading:!1,metadata:null,step:null,successful:!1,response:i.payload,recaptchaAction:null})}}async function i(e){let n=De.get().tree;!(null!=e&&e.tree)&&n&&(e?e.tree=n:e={tree:n}),!(null!=e&&e.recaptchaAction)&&null!=e&&e.tree&&(e.recaptchaAction=e.tree),await t.push(e),await r(void 0,e)}function a(){eo.set({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null,recaptchaAction:null})}return{next:r,pop:async function(){a();let e=await t.pop(),n=e[e.length-1];await i(n)},push:async function(e){a(),await t.push(e),await i(e)},reset:a,resume:async function(e,t){await r(void 0,t,e)},start:i,subscribe:eo.subscribe}}var no,ro=ki.object({termsAndConditions:ki.string()}).strict();ro.partial();var io=xe();function ao(e){return e?(ro.parse(e),io.set(e)):io.set(void 0),io}var oo=xe({completed:!1,error:null,loading:!1,successful:!1,response:null});function so(e){switch(e){case"The request requires some interaction that is not allowed.":return'The user either doesn\'t have a valid session, the cookie is not being sent due to third-party cookies being disabled, or the user is needing to provide consent as the OAuth client setting does not have "implied consent" enabled.';case"Authorization timed out":return"Timeouts are likely an issue with OAuth client misconfiguration. If you are getting a 4xx error in the network tab, copy the full `/authorize` URL and paste it directly into your browsers URL field to directly visit the page. The error should be displayed on the page.";default:return""}}function lo(e){return{get:async function(t){let n,r=h(h({query:{prompt:"none"}},e),t);oo.set({completed:!1,error:null,loading:!0,successful:!1,response:null});try{n=await Yt.getTokens(r)}
1catch(i){return void(i instanceof Error&&oo.set({completed:!0,error:{message:i.message,troubleshoot:so(i.message)},loading:!1,successful:!1,response:null}))}oo.set({completed:!0,error:null,loading:!1,successful:!0,response:n})},reset:function(){oo.set({completed:!1,error:null,loading:!1,successful:!1,response:null})},subscribe:oo.subscribe}}var co=xe({completed:!1,error:null,loading:!1,successful:!1,response:null});function uo(e){return{get:async function(t){let n=h(h({},e),t);co.set({completed:!1,error:null,loading:!0,successful:!1,response:null});try{let e=await fn.getCurrentUser(n);co.set({completed:!0,error:null,loading:!1,successful:!0,response:e})}catch(r){r instanceof Error&&co.set({completed:!0,error:{message:r.message,troubleshoot:null},loading:!1,successful:!1,response:null})}},reset:function(){co.set({completed:!1,error:null,loading:!1,successful:!1,response:null})},subscribe:co.subscribe}}var ho=ki.object({dark:ki.string().optional(),height:ki.number().optional(),light:ki.string().optional(),width:ki.number().optional()}).strict();ki.object({checksAndRadios:ki.union([ki.literal("animated"),ki.literal("standard")]).optional(),labels:ki.union([ki.literal("floating").optional(),ki.literal("stacked")]).optional(),showPassword:ki.union([ki.literal("none"),ki.literal("button"),ki.literal("checkbox")]).optional(),logo:ho.optional(),sections:ki.object({header:ki.boolean().optional()}).strict().optional(),stage:ki.object({icon:ki.boolean().optional()}).strict().optional()}).strict().partial();var po={checksAndRadios:"animated",labels:"floating",showPassword:"button",logo:void 0,sections:void 0,stage:void 0},fo=xe(po);function go(e){if(e){let t=t=>e[t],n=Object.keys(e).reduce(((e,n)=>void 0===t(n)||null===t(n)?e:p(h({},e),{[n]:t(n)})),po);fo.set(n)}else fo.set(po);return fo}function mo(e){let t,n=e[5].default,r=E(n,e,e[4],null),i=r||function(e){let t;return{c(){t=R(e[1])},m(e,n){O(e,t,n)},p(e,n){2&n&&j(t,e[1])},d(e){e&&P(t)}}}(e);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,a){r?r.p&&(!t||16&a)&&A(r,n,e,e[4],t?C(n,e[4],a,null):I(e[4]),null):i&&i.p&&(!t||2&a)&&i.p(e,t?a:-1)},i(e){t||(fe(i,e),t=!0)},o(e){ge(i,e),t=!1},d(e){i&&i.d(e)}}}function vo(e){let t,n=e[5].default,r=E(n,e,e[4],null),i=r||function(e){let t,n;return{c(){t=new K(!1),n=N(),t.a=n},m(r,i){t.m(e[1],r,i),O(r,n,i)},p(e,n){2&n&&t.p(e[1])},d(e){e&&P(n),e&&t.d()}}}(e);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,a){r?r.p&&(!t||16&a)&&A(r,n,e,e[4],t?C(n,e[4],a,null):I(e[4]),null):i&&i.p&&(!t||2&a)&&i.p(e,t?a:-1)},i(e){t||(fe(i,e),t=!0)},o(e){ge(i,e),t=!1},d(e){i&&i.d(e)}}}function wo(e){let t,n,r,i,a=[vo,mo],o=[];function s(e,t){return e[0]?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function bo(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{html:o=!1}=t,{key:s}=t,{values:l}=t;return e.$$set=e=>{"html"in e&&n(0,o=e.html),"key"in e&&n(2,s=e.key),"values"in e&&n(3,l=e.values),"$$scope"in e&&n(4,a=e.$$scope)},e.$$.update=()=>{12&e.$$.dirty&&n(1,r=Ba(s,l))},[o,r,s,l,a,i]}var yo=class extends Se{constructor(e){super(),$e(this,e,bo,wo,_,{html:0,key:2,values:3})}};function _o(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"d","M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"viewBox","0 0 30 30"),V(t,"width",e[1]),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"height",e[1]),(!i||2&n)&&V(t,"width",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function ko(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var $o=class extends Se{constructor(e){super(),$e(this,e,ko,_o,_,{classes:0,size:1})}};function So(e){var t;let n,r,i,a,o,s,l,c;i=new $o({props:{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",$$slots:{default:[xo]},$$scope:{ctx:e}}});let u=(null==(t=e[5])?void 0:t.logo)&&Co(e);return{c(){var t;n=L("div"),r=L("button"),be(i.$$.fragment),a=U(),u&&u.c(),V(r,"class","tw_dialog-x md:tw_dialog-x_medium tw_focu
1sable-element dark:tw_focusable-element_dark"),V(r,"aria-controls",e[1]),V(n,"class",o="tw_pt-10 md:tw_pt-10 tw_text-right "+(null!=(t=e[5])&&t.logo?"tw_h-32 md:tw_h-36 tw_pb-6":""))},m(t,o){O(t,n,o),T(n,r),ye(i,r,null),T(n,a),u&&u.m(n,null),s=!0,l||(c=F(r,"click",e[8]),l=!0)},p(e,t){var a,l;let c={};1024&t&&(c.$$scope={dirty:t,ctx:e}),i.$set(c),(!s||2&t)&&V(r,"aria-controls",e[1]),null!=(a=e[5])&&a.logo?u?u.p(e,t):(u=Co(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||32&t&&o!==(o="tw_pt-10 md:tw_pt-10 tw_text-right "+(null!=(l=e[5])&&l.logo?"tw_h-32 md:tw_h-36 tw_pb-6":"")))&&V(n,"class",o)},i(e){s||(fe(i.$$.fragment,e),s=!0)},o(e){ge(i.$$.fragment,e),s=!1},d(e){e&&P(n),_e(i),u&&u.d(),l=!1,c()}}}function Eo(e){let t,n,r,i,a,o,s,l,c;return o=new $o({props:{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",$$slots:{default:[Ao]},$$scope:{ctx:e}}}),{c(){var s,l,c,u,d,h,p,f,g,m;t=L("div"),n=L("div"),i=U(),a=L("button"),be(o.$$.fragment),V(n,"class","tw_dialog-logo dark:tw_dialog-logo_dark"),V(n,"style",r=`--logo-dark: url("${null==(l=null==(s=e[5])?void 0:s.logo)?void 0:l.dark}"); --logo-light: url("${null==(u=null==(c=e[5])?void 0:c.logo)?void 0:u.light}"); ${null!=(h=null==(d=e[5])?void 0:d.logo)&&h.height?`height: ${null==(p=e[5])?void 0:p.logo.height}px;`:""} ${null!=(g=null==(f=e[5])?void 0:f.logo)&&g.width?`width: ${null==(m=e[5])?void 0:m.logo.width}px;`:""}`),V(a,"class","tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark"),V(a,"aria-controls",e[1]),V(a,"aria-label","Close"),V(t,"class","tw_dialog-header dark:tw_dialog-header_dark")},m(r,u){O(r,t,u),T(t,n),T(t,i),T(t,a),ye(o,a,null),s=!0,l||(c=F(a,"click",e[7]),l=!0)},p(e,t){var i,l,c,u,d,h,p,f,g,m;(!s||32&t&&r!==(r=`--logo-dark: url("${null==(l=null==(i=e[5])?void 0:i.logo)?void 0:l.dark}"); --logo-light: url("${null==(u=null==(c=e[5])?void 0:c.logo)?void 0:u.light}"); ${null!=(h=null==(d=e[5])?void 0:d.logo)&&h.height?`height: ${null==(p=e[5])?void 0:p.logo.height}px;`:""} ${null!=(g=null==(f=e[5])?void 0:f.logo)&&g.width?`width: ${null==(m=e[5])?void 0:m.logo.width}px;`:""}`))&&V(n,"style",r);let v={};1024&t&&(v.$$scope={dirty:t,ctx:e}),o.$set(v),(!s||2&t)&&V(a,"aria-controls",e[1])},i(e){s||(fe(o.$$.fragment,e),s=!0)},o(e){ge(o.$$.fragment,e),s=!1},d(e){e&&P(t),_e(o),l=!1,c()}}}function xo(e){let t,n;return t=new yo({props:{key:"closeModal"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Co(e){let t,n;return{c(){var r,i,a,o;t=L("div"),V(t,"class","tw_dialog-logo dark:tw_dialog-logo_dark"),V(t,"style",n=`--logo-dark: url("${null==(i=null==(r=e[5])?void 0:r.logo)?void 0:i.dark}"); --logo-light: url("${null==(o=null==(a=e[5])?void 0:a.logo)?void 0:o.light}")`)},m(e,n){O(e,t,n)},p(e,r){var i,a,o,s;32&r&&n!==(n=`--logo-dark: url("${null==(a=null==(i=e[5])?void 0:i.logo)?void 0:a.dark}"); --logo-light: url("${null==(s=null==(o=e[5])?void 0:o.logo)?void 0:s.light}")`)&&V(t,"style",n)},d(e){e&&P(t)}}}function Ao(e){let t,n;return t=new yo({props:{key:"closeModal"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Io(e){let t,n,r,i,a,o,s,l=[Eo,So],c=[];function u(e,t){return e[3]?0:1}n=u(e),r=c[n]=l[n](e);let d=e[6].default,h=E(d,e,e[10],null);return{c(){t=L("dialog"),r.c(),i=U(),a=L("div"),h&&h.c(),V(a,"class","tw_dialog-body"),V(t,"id",e[1]),V(t,"class",o="tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium "+(e[2]?"":"tw_dialog-box_animate")),t.open=e[2]},m(r,o){O(r,t,o),c[n].m(t,null),T(t,i),T(t,a),h&&h.m(a,null),e[9](t),s=!0},p(e,[a]){let p=n;n=u(e),n===p?c[n].p(e,a):(he(),ge(c[p],1,1,(()=>{c[p]=null})),pe(),r=c[n],r?r.p(e,a):(r=c[n]=l[n](e),r.c()),fe(r,1),r.m(t,i)),h&&h.p&&(!s||1024&a)&&A(h,d,e,e[10],s?C(d,e[10],a,null):I(e[10]),null),(!s||2&a)&&V(t,"id",e[1]),(!s||4&a&&o!==(o="tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium "+(e[2]?"":"tw_dialog-box_animate")))&&V(t,"class",o),(!s||4&a)&&(t.open=e[2])},i(e){s||(fe(r),fe(h,e),s=!0)},o(e){ge(r),ge(h,e),s=!1},d(r){r&&P(t),c[n].d(),h&&h.d(r),e[9](null)}}}function To(e,t,n){let r;S(e,fo,(e=>n(5,r=e)));let{$$slots:i={},$$scope:a}=t,{dialogEl:o=null}=t,{dialogId:s}=t,{forceOpen:l=!1}=t,{withHeader:c=!1}
1=t;function u(e){function t(){null==o||o.close(),null==o||o.classList.remove("tw_dialog-closing"),Ie({reason:e})}let n=setTimeout(t,500);null==o||o.addEventListener("animationstart",(()=>{clearTimeout(n)}),{once:!0}),null==o||o.addEventListener("animationend",t,{once:!0}),null==o||o.classList.add("tw_dialog-closing")}return e.$$set=e=>{"dialogEl"in e&&n(0,o=e.dialogEl),"dialogId"in e&&n(1,s=e.dialogId),"forceOpen"in e&&n(2,l=e.forceOpen),"withHeader"in e&&n(3,c=e.withHeader),"$$scope"in e&&n(10,a=e.$$scope)},[o,s,l,c,u,r,i,()=>u("user"),()=>u("user"),function(e){Q[e?"unshift":"push"]((()=>{o=e,n(0,o)}))},a]}var Oo=class extends Se{constructor(e){super(),$e(this,e,To,Io,_,{dialogEl:0,dialogId:1,forceOpen:2,withHeader:3,closeDialog:4})}get closeDialog(){return this.$$.ctx[4]}};function Po(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"height",e[1]),(!i||2&n)&&V(t,"width",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function Mo(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Lo=class extends Se{constructor(e){super(),$e(this,e,Mo,Po,_,{classes:0,size:1})}};function Do(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.
1081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"height",e[1]),(!i||2&n)&&V(t,"width",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function Ro(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Uo=class extends Se{constructor(e){super(),$e(this,e,Ro,Do,_,{classes:0,size:1})}};function No(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"height",e[1]),(!i||2&n)&&V(t,"width",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}
1function Fo(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Bo=class extends Se{constructor(e){super(),$e(this,e,Fo,No,_,{classes:0,size:1})}};function Vo(e){let t,n;return t=new Uo({}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function zo(e){let t,n;return t=new Bo({}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function jo(e){let t,n;return t=new Lo({}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Ho(e){let t,n,r,i,a,o,s,l,c,u=[jo,zo,Vo],d=[];function h(e,t){return"error"===e[1]?0:"warning"===e[1]?1:2}r=h(e),i=d[r]=u[r](e);let p=e[5].default,f=E(p,e,e[4],null);return{c(){t=L("div"),n=L("p"),i.c(),a=U(),o=L("span"),f&&f.c(),V(n,"class","tw_grid tw_grid-cols-[2em_1fr]"),V(t,"class",s=`${qo(e[1])} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`),V(t,"id",e[0]),V(t,"tabindex","-1"),V(t,"role",l="error"===e[1]?"alert":"")},m(i,s){O(i,t,s),T(t,n),d[r].m(n,null),T(n,a),T(n,o),f&&f.m(o,null),e[6](t),c=!0},p(e,[o]){let g=r;r=h(e),r!==g&&(he(),ge(d[g],1,1,(()=>{d[g]=null})),pe(),i=d[r],i||(i=d[r]=u[r](e),i.c()),fe(i,1),i.m(n,a)),f&&f.p&&(!c||
116&o)&&A(f,p,e,e[4],c?C(p,e[4],o,null):I(e[4]),null),(!c||2&o&&s!==(s=`${qo(e[1])} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`))&&V(t,"class",s),(!c||1&o)&&V(t,"id",e[0]),(!c||2&o&&l!==(l="error"===e[1]?"alert":""))&&V(t,"role",l)},i(e){c||(fe(i),fe(f,e),c=!0)},o(e){ge(i),ge(f,e),c=!1},d(n){n&&P(t),d[r].d(),f&&f.d(n),e[6](null)}}}function qo(...e){return e.reduce(((e,t)=>{switch(t){case"error":return`${e} tw_alert-error dark:tw_alert-error_dark`;case"info":return`${e} tw_alert-info dark:tw_alert-info_dark`;case"success":return`${e} tw_alert-success dark:tw_alert-success_dark`;case"warning":return`${e} tw_alert-warning dark:tw_alert-warning_dark`;default:return e}}),"")}function Ko(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{id:o}=t,{needsFocus:s=!1}=t,{type:l=""}=t;return e.$$set=e=>{"id"in e&&n(0,o=e.id),"needsFocus"in e&&n(3,s=e.needsFocus),"type"in e&&n(1,l=e.type),"$$scope"in e&&n(4,a=e.$$scope)},e.$$.update=()=>{12&e.$$.dirty&&s&&r&&r.focus()},[o,l,r,s,a,i,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(2,r)}))}]}var Go=class extends Se{constructor(e){super(),$e(this,e,Ko,Ho,_,{id:0,needsFocus:3,type:1})}};function Wo(e){let t,n,r,i,a,o;r=new yo({props:{key:"loading"}});let s=e[3].default,l=E(s,e,e[2],null);return{c(){t=L("div"),n=L("span"),be(r.$$.fragment),a=U(),l&&l.c(),V(n,"class","tw_sr-only"),V(t,"class",i=`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${e[0]} ${e[1]}`),V(t,"role","status")},m(e,i){O(e,t,i),T(t,n),ye(r,n,null),O(e,a,i),l&&l.m(e,i),o=!0},p(e,[n]){(!o||3&n&&i!==(i=`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${e[0]} ${e[1]}`))&&V(t,"class",i),l&&l.p&&(!o||4&n)&&A(l,s,e,e[2],o?C(s,e[2],n,null):I(e[2]),null)},i(e){o||(fe(r.$$.fragment,e),fe(l,e),o=!0)},o(e){ge(r.$$.fragment,e),ge(l,e),o=!1},d(e){e&&P(t),_e(r),e&&P(a),l&&l.d(e)}}}function Zo(e,t,n){let{$$slots:r={},$$scope:i}=t,{colorClass:a}=t,{layoutClasses:o}=t;return e.$$set=e=>{"colorClass"in e&&n(0,a=e.colorClass),"layoutClasses"in e&&n(1,o=e.layoutClasses),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Yo=class extends Se{constructor(e){super(),$e(this,e,Zo,Wo,_,{colorClass:0,layoutClasses:1})}};function Xo(e){let t,n;return t=new Yo({props:{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Jo(e){let t,n,r,i,a,o,s=e[0]&&Xo(),l=e[7].default,c=E(l,e,e[6],null),u=c||function(){let e;return{c(){e=R("Submit")},m(t,n){O(t,e,n)},d(t){t&&P(e)}}}();return{c(){t=L("button"),s&&s.c(),n=U(),u&&u.c(),V(t,"class",r=`${Qo(e[3],e[5])} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${e[5]} ${e[1]}`),V(t,"type",e[4])},m(r,l){O(r,t,l),s&&s.m(t,null),T(t,n),u&&u.m(t,null),i=!0,a||(o=F(t,"click",(function(){y(e[2])&&e[2].apply(this,arguments)})),a=!0)},p(a,[o]){(e=a)[0]?s?1&o&&fe(s,1):(s=Xo(),s.c(),fe(s,1),s.m(t,n)):s&&(he(),ge(s,1,1,(()=>{s=null})),pe()),c&&c.p&&(!i||64&o)&&A(c,l,e,e[6],i?C(l,e[6],o,null):I(e[6]),null),(!i||42&o&&r!==(r=`${Qo(e[3],e[5])} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${e[5]} ${e[1]}`))&&V(t,"class",r),(!i||16&o)&&V(t,"type",e[4])},i(e){i||(fe(s),fe(u,e),i=!0)},o(e){ge(s),ge(u,e),i=!1},d(e){e&&P(t),s&&s.d(),u&&u.d(e),a=!1,o()}}}function Qo(...e){return e.reduce(((e,t)=>{switch(t){case"primary":return`${e} tw_button-primary dark:tw_button-primary_dark`;case"secondary":return`${e} tw_button-secondary dark:tw_button-secondary_dark`;case"outline":return`${e} tw_button-outline dark:tw_button-outline_dark`;case"auto":return`${e} tw_w-auto`;case"full":return`${e} tw_w-full`;default:return e}}),"")}
1function es(e,t,n){let{$$slots:r={},$$scope:i}=t,{busy:a=!1}=t,{classes:o=""}=t,{onClick:s=()=>{}}=t,{style:l="outline"}=t,{type:c=null}=t,{width:u="auto"}=t;return e.$$set=e=>{"busy"in e&&n(0,a=e.busy),"classes"in e&&n(1,o=e.classes),"onClick"in e&&n(2,s=e.onClick),"style"in e&&n(3,l=e.style),"type"in e&&n(4,c=e.type),"width"in e&&n(5,u=e.width),"$$scope"in e&&n(6,i=e.$$scope)},[a,o,s,l,c,u,i,r]}var ts=class extends Se{constructor(e){super(),$e(this,e,es,Jo,_,{busy:0,classes:1,onClick:2,style:3,type:4,width:5})}};function ns(e){let t,n,r,i,a,o=e[8].default,s=E(o,e,e[7],null);return{c(){t=L("form"),s&&s.c(),V(t,"aria-describedby",e[1]),V(t,"id",e[2]),V(t,"class",n=`tw_form-base ${e[3]?"tw_form-valid":"tw_form-invalid"} tw_outline-none`),t.noValidate=!0,V(t,"tabindex","-1")},m(n,o){O(n,t,o),s&&s.m(t,null),e[9](t),r=!0,i||(a=F(t,"submit",B(e[4])),i=!0)},p(e,[i]){s&&s.p&&(!r||128&i)&&A(s,o,e,e[7],r?C(o,e[7],i,null):I(e[7]),null),(!r||2&i)&&V(t,"aria-describedby",e[1]),(!r||4&i)&&V(t,"id",e[2]),(!r||8&i&&n!==(n=`tw_form-base ${e[3]?"tw_form-valid":"tw_form-invalid"} tw_outline-none`))&&V(t,"class",n)},i(e){r||(fe(s,e),r=!0)},o(e){ge(s,e),r=!1},d(n){n&&P(t),s&&s.d(n),e[9](null),i=!1,a()}}}function rs(e,t,n){let{$$slots:r={},$$scope:i}=t,{ariaDescribedBy:a}=t,{formEl:o=null}=t,{id:s="formId"}=t,{needsFocus:l=!1}=t,{onSubmitWhenValid:c}=t,u=!1;return e.$$set=e=>{"ariaDescribedBy"in e&&n(1,a=e.ariaDescribedBy),"formEl"in e&&n(0,o=e.formEl),"id"in e&&n(2,s=e.id),"needsFocus"in e&&n(5,l=e.needsFocus),"onSubmitWhenValid"in e&&n(6,c=e.onSubmitWhenValid),"$$scope"in e&&n(7,i=e.$$scope)},e.$$.update=()=>{33&e.$$.dirty&&l&&o&&o.focus()},[o,a,s,u,function(e){let t=e.target,r=null;n(3,u=!1),Array.from(t.children).forEach(((e,t)=>{let n=e.querySelectorAll("input, select, textarea");null!=n&&n.length&&Array.from(n).forEach((e=>{let n=e.checkValidity()&&"true"!==e.dataset.forceValidityFailure,i=e.getAttribute("aria-describedby")||"",a=document.getElementById(i),o=null==a?void 0:a.querySelector(".__input-message");n?(e.setAttribute("aria-invalid","false"),null==o||o.classList.remove("tw_isInvalid"),null==o||o.classList.add("tw_hidden")):(e.setAttribute("aria-invalid","true"),i&&(null==o||o.classList.add("tw_isInvalid"),null==o||o.classList.remove("tw_hidden")),null===r&&(e.focus(),r=t))}))})),null===r&&(n(3,u=!0),c&&c(e,u))},l,c,i,r,function(e){Q[e?"unshift":"push"]((()=>{o=e,n(0,o)}))}]}var is=class extends Se{constructor(e){super(),$e(this,e,rs,ns,_,{ariaDescribedBy:1,formEl:0,id:2,needsFocus:5,onSubmitWhenValid:6})}};function as(e){let t,n=e[4].default,r=E(n,e,e[3],null),i=r||function(e){let t;return{c(){t=R(e[1])},m(e,n){O(e,t,n)},p(e,n){2&n&&j(t,e[1])},d(e){e&&P(t)}}}(e);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,a){r?r.p&&(!t||8&a)&&A(r,n,e,e[3],t?C(n,e[3],a,null):I(e[3]),null):i&&i.p&&(!t||2&a)&&i.p(e,t?a:-1)},i(e){t||(fe(i,e),t=!0)},o(e){ge(i,e),t=!1},d(e){i&&i.d(e)}}}function os(e){let t,n=e[4].default,r=E(n,e,e[3],null),i=r||function(e){let t,n;return{c(){t=new K(!1),n=N(),t.a=n},m(r,i){t.m(e[1],r,i),O(r,n,i)},p(e,n){2&n&&t.p(e[1])},d(e){e&&P(n),e&&t.d()}}}(e);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,a){r?r.p&&(!t||8&a)&&A(r,n,e,e[3],t?C(n,e[3],a,null):I(e[3]),null):i&&i.p&&(!t||2&a)&&i.p(e,t?a:-1)},i(e){t||(fe(i,e),t=!0)},o(e){ge(i,e),t=!1},d(e){i&&i.d(e)}}}function ss(e){let t,n,r,i,a=[os,as],o=[];function s(e,t){return e[0]?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function ls(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{html:o=!1}=t,{string:s}=t;return e.$$set=e=>{"html"in e&&n(0,o=e.html),"string"in e&&n(2,s=e.string),"$$scope"in e&&n(3,a=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&n(1,r=La(s))},[o,r,s,a,i]}var cs=class extends Se{constructor(e){super(),$e(this,e,ls,ss,_,{html:0,string:2})}};function us(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"d","M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","-2 0 20 20"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"height",e[1]),(!i||2&n)&&V(t,"width",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function ds(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var hs=class extends Se{constructor(e){super(),$e(this,e,ds,us,_,{classes:0,size:1})}};function ps(e){let t,n,r,i,a,o=Ba(e[1])+"";return{c(){t=L("p"),n=L("button"),r=R(o),V(t,"class","tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light")},m(o,s){O(o,t,s),T(t,n),T(n,r),i||(a=F(n,"click",B(e[4])),i=!0)},p(e,t){2&t&&o!==(o=Ba(e[1])+"")&&j(r,o)},d(e){e&&P(t),i=!1,a()}}}function fs(e){let t,n=e[2].length>1&&ps(e);return{c(){n&&n.c(),t=N()},m(e,r){n&&n.m(e,r),O(e,t,r)},p(e,[r]){e[2].length>1?n?n.p(e,r):(n=ps(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:g,o:g,d(e){n&&n.d(e),e&&P(t)}}}function gs(e,t,n){let r,i;S(e,Ii,(e=>n(5,i=e)));let{journey:a}=t,o=a.stack;S(e,o,(e=>n(2,r=e)));let s="";return e.$$set=e=>{"journey"in e&&n(0,a=e.journey)},n(1,s=function(){let e=i.find((e=>{var t;return e.journey===(null==(t=r[r.length-2])?void 0:t.tree)})),t=null==e?void 0:e.key;return`backTo${("string"==typeof t?t.replace(/([a-z])/,((e,t)=>`${t.toUpperCase()}`)):t)||"Default"}`}()),[a,s,r,o,()=>{null==a||a.pop()}]}var ms=class extends Se{constructor(e){super(),$e(this,e,gs,fs,_,{journey:0})}};function vs(e,t){let n=$(Ii),r=$(t.stack);e.addEventListener("click",(e=>{let i=e.target,a=i.hasAttribute("href")&&i.getAttribute("href"),{action:o,journey:s}=function(e,t,n){if(e){let r=t.find((t=>t.match.find((t=>e===t))));if(r){let e=n[n.length-2];
1return e&&e.tree===r.journey?{action:"pop"}:{action:"push",journey:r.journey}}return{action:null}}return{action:null}}(a,n,r);o&&(e.preventDefault(),"push"===o?t.push({tree:s}):"pop"===o&&t.pop())}))}function ws(e){if("DICTIONARY"===(null==e?void 0:e.policyRequirement)){let t=e.params,n=(null==t?void 0:t["min-substring-length"])||0,r=[];return null!=t&&t["check-substrings"]&&null!=t&&t["test-reversed-password"]?r.push({length:n,message:Ba("passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan",{min:String(n)}),rule:"reversibleSubstrings"}):null!=t&&t["test-reversed-password"]?r.push({length:null,message:Ba("passwordCannotContainCommonPasswordsOrBeReversible"),rule:"reversibleSubstrings"}):r.push({length:null,message:Ba("passwordCannotContainCommonPasswords"),rule:"reversibleSubstrings"}),r}if("CHARACTER_SET"===(null==e?void 0:e.policyRequirement)){let t=e.params;return null==t?void 0:t["character-sets"].map($s)}if("LENGTH_BASED"===(null==e?void 0:e.policyRequirement)){let t=e.params,n=(null==t?void 0:t["min-password-length"])||0,r=(null==t?void 0:t["max-password-length"])||null,i=[];return r&&i.push({length:r,message:Ba("exceedsMaximumCharacterLength",{max:String(r)}),rule:"maximumLength"}),n&&i.push({length:n,message:Ba("doesNotMeetMinimumCharacterLength",{min:String(n)}),rule:"minimumLength"}),i}if("REPEATED_CHARACTERS"===(null==e?void 0:e.policyRequirement)){let t=e.params,n=t["max-consecutive-length"]||
10,r=[];return t["case-sensitive-validation"]?r.push({length:n,message:Ba("charactersCannotRepeatMoreThan",{max:String(n)}),rule:"repeatedCharacters"}):r.push({length:n,message:Ba("charactersCannotRepeatMoreThanCaseInsensitive",{max:String(n)}),rule:"repeatedCharactersCaseInsensitive"}),r}return"VALID_USERNAME"===(null==e?void 0:e.policyRequirement)?[{length:null,message:Ba("chooseDifferentUsername"),rule:"validUsername"}]:"VALID_EMAIL_ADDRESS_FORMAT"===(null==e?void 0:e.policyRequirement)?[{length:null,message:Ba("invalidEmailAddress"),rule:"validEmailAddress"}]:[{length:null,message:Ba("pleaseCheckValue"),rule:"unknown"}]}function bs(e){var t;switch(null==e?void 0:e.policyId){case"at-least-X-capitals":{let t=null==e?void 0:e.params,n=null==t?void 0:t.numCaps;return Ba("minimumNumberOfUppercase",{num:String(n)})}case"at-least-X-numbers":{let t=null==e?void 0:e.params,n=null==t?void 0:t.numNums;return Ba("minimumNumberOfNumbers",{num:String(n)})}case"cannot-contain-characters":{let t=null==e?void 0:e.params,n="";return"object"!=typeof t?"":(Array.isArray(t.forbiddenChars)?n=t.forbiddenChars.reduce(((e,t)=>e=`${e?`${e}, `:`${e}`} ${t}`),""):"string"==typeof t.forbiddenChars&&(n=t.forbiddenChars),Ba("fieldCanNotContainFollowingCharacters",{chars:n}))}case"cannot-contain-others":{let n=null==e?void 0:e.params,r="";return"object"!=typeof n?"":(Array.isArray(n.disallowedFields)?r=null==(t=n.disallowedFields)?void 0:t.reduce(((e,t)=>e=`${e?`${e}, `:`${e}`} ${Ba(t)}`),""):"string"==typeof n.disallowedFields&&(r=n.disallowedFields),Ba("fieldCanNotContainFollowingValues",{fields:r}))}case"maximum-length":{let t=null==e?void 0:e.params,n=null==t?void 0:t.maxLength;return n>100?"":Ba("notToExceedMaximumCharacterLength",{max:String(n)})}case"minimum-length":{let t=null==e?void 0:e.params,n=null==t?void 0:t.minLength;return 1===n?"":Ba("noLessThanMinimumCharacterLength",{min:String(n)})}default:return""}}function ys(e,t){return function(e,t){return e.map((e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(n){console.error(`Parsing failure for ${t}`)}}))}(e.getFailedPolicies&&e.getFailedPolicies(),t).map((e=>({params:null==e?void 0:e.params,policyRequirement:(null==e?void 0:e.policyRequirement)||"",restructured:ws(e)})))}function _s(e){if("object"!=typeof e&&!e)return[];let t=null==e?void 0:e.policies;return Array.isArray(t)?t.map((e=>h(h({message:bs(e)},(null==e?void 0:e.params)&&{params:null==e?void 0:e.params}),(null==e?void 0:e.policyId)&&{policyId:null==e?void 0:e.policyId}))).filter((e=>!!e.message)):[]}function ks(e){let t=e.getPolicies&&e.getPolicies(),n=!1;return null!=t&&t.policyRequirements?n=t.policyRequirements.includes("REQUIRED"):e.isRequired&&(n=e.isRequired()),n}function $s(e){let t=e.split(":"),n=t[0],r=t[1];return"0123456789"===r?"0"===n?{length:null,message:Ba("shouldContainANumber"),rule:"numbers"}:{length:Number(n),message:Ba("minimumNumberOfNumbers",{num:String(n)}),rule:"numbers"}:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"===r?"0"===n?{length:null,message:Ba("shouldContainAnUppercase"),rule:"uppercase"}:{length:Number(n),message:Ba("minimumNumberOfUppercase",{num:String(n)}),rule:"uppercase"}:"abcdefghijklmnopqrstuvwxyz"===r?"0"===n?{length:null,message:Ba("shouldContainALowercase"),rule:"lowercase"}:{length:Number(n),message:Ba("minimumNumberOfLowercase",{num:String(n)}),rule:"lowercase"}:r.includes("@")||r.includes("!")||r.includes("*")||r.includes("#")?"0"===n?{length:null,message:Ba("shouldContainASymbol"),rule:"symbols"}:{length:Number(n),message:Ba("minimumNumberOfSymbols",{num:String(n)}),rule:"symbols"}:{length:null,message:Ba("pleaseCheckValue"),rule:"unknown"}}function Ss(e){let t,n,r;return{c(){t=L("p"),V(t,"class",n=`${e[0]} __input-message ${e[3]?"":"tw_hidden"} ${xs(e[4])}`),V(t,"id",r=""+(e[2]?`${e[2]}-message`:""))},m(n,r){O(n,t,r),t.innerHTML=e[5]},p(e,i){32&i&&(t.innerHTML=e[5]),25&i&&n!==(n=`${e[0]} __input-message ${e[3]?"":"tw_hidden"} ${xs(e[4])}`)&&V(t,"class",n),4&i&&r!==(r=""+(e[2]?`${e[2]}-message`:""))&&V(t,"id",r)},d(e){e&&P(t)}}}function Es(e){let t,n=e[1]&&Ss(e);return{c(){n&&n.c(),t=N()},m(e,r){n&&n.m(e,r),O(e,t,r)},p(e,[r]){e[1]?n?n.p(e,r):(n=Ss(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:g,o:g,d(e){n&&n.d(e),e&&P(t)}}}function xs(...e){return e.reduce(((e,t)=>"error"===t?`${e} tw_input-error-message dark:tw_input-error-message_dark`:`${e} tw_input-info-message dark:tw_input-info-message_dark`),"")}function Cs(e,t,n){let{classes:r=""}=t,{dirtyMessage:i}=t,{key:a}=t,{showMessage:o=!0}=t,{type:s="info"}=t,l=La(i);return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"dirtyMessage"in e&&n(1,i=e.dirtyMessage),"key"in e&&n(2,a=e.ke
1y),"showMessage"in e&&n(3,o=e.showMessage),"type"in e&&n(4,s=e.type)},e.$$.update=()=>{2&e.$$.dirty&&n(5,l=La(i))},[r,i,a,o,s,l]}var As=class extends Se{constructor(e){super(),$e(this,e,Cs,Es,_,{classes:0,dirtyMessage:1,key:2,showMessage:3,type:4})}};function Is(e){let t,n,r,i=e[3].default,a=E(i,e,e[2],null);return{c(){t=L("label"),a&&a.c(),V(t,"for",e[0]),V(t,"class",n=`${e[1]} tw_input-label dark:tw_input-label_dark`)},m(e,n){O(e,t,n),a&&a.m(t,null),r=!0},p(e,[o]){a&&a.p&&(!r||4&o)&&A(a,i,e,e[2],r?C(i,e[2],o,null):I(e[2]),null),(!r||1&o)&&V(t,"for",e[0]),(!r||2&o&&n!==(n=`${e[1]} tw_input-label dark:tw_input-label_dark`))&&V(t,"class",n)},i(e){r||(fe(a,e),r=!0)},o(e){ge(a,e),r=!1},d(e){e&&P(t),a&&a.d(e)}}}function Ts(e,t,n){let{$$slots:r={},$$scope:i}=t,{key:a}=t,{classes:o=""}=t;return e.$$set=e=>{"key"in e&&n(0,a=e.key),"classes"in e&&n(1,o=e.classes),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Os=class extends Se{constructor(e){super(),$e(this,e,Ts,Is,_,{key:0,classes:1})}};function Ps(e){let t,n,r,i=e[11].default,a=E(i,e,e[13],null);return{c(){t=L("span"),n=U(),a&&a.c(),V(t,"class","tw_animated-check dark:tw_animated-check_dark")},m(e,i){O(e,t,i),O(e,n,i),a&&a.m(e,i),r=!0},p(e,t){a&&a.p&&(!r||8192&t)&&A(a,i,e,e[13],r?C(i,e[13],t,null):I(e[13]),null)},i(e){r||(fe(a,e),r=!0)},o(e){ge(a,e),r=!1},d(e){e&&P(t),e&&P(n),a&&a.d(e)}}}function Ms(e){let t,n,r,i,a,o,s,l,c,u,d;return a=new Os({props:{key:e[3],classes:"tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",$$slots:{default:[Ps]},$$scope:{ctx:e}}}),l=new As({props:{key:e[3],dirtyMessage:e[1],showMessage:e[4],type:e[0]?"error":"info"}}),{c(){t=L("div"),n=L("input"),i=U(),be(a.$$.fragment),o=U(),s=L("div"),be(l.$$.fragment),V(n,"aria-invalid",e[0]),V(n,"class","tw_checkbox-input_animated dark:tw_checkbox-input_animated_dark tw_sr-only"),n.checked=e[5],V(n,"data-message",r=`${e[3]}-message`),V(n,"id",e[3]),n.required=e[2],V(n,"type","checkbox"),V(s,"class","tw_ml-10"),V(t,"class","tw_input-spacing")},m(r,h){O(r,t,h),T(t,n),e[12](n),T(t,i),ye(a,t,null),T(t,o),T(t,s),ye(l,s,null),c=!0,u||(d=F(n,"change",e[7]),u=!0)},p(e,[t]){(!c||1&t)&&V(n,"aria-invalid",e[0]),(!c||32&t)&&(n.checked=e[5]),(!c||8&t&&r!==(r=`${e[3]}-message`))&&V(n,"data-message",r),(!c||8&t)&&V(n,"id",e[3]),(!c||4&t)&&(n.required=e[2]);let i={};8&t&&(i.key=e[3]),8192&t&&(i.$$scope={dirty:t,ctx:e}),a.$set(i);let o={};8&t&&(o.key=e[3]),2&t&&(o.dirtyMessage=e[1]),16&t&&(o.showMessage=e[4]),1&t&&(o.type=e[0]?"error":"info"),l.$set(o)},i(e){c||(fe(a.$$.fragment,e),fe(l.$$.fragment,e),c=!0)},o(e){ge(a.$$.fragment,e),ge(l.$$.fragment,e),c=!1},d(n){n&&P(t),e[12](null),_e(a),_e(l),u=!1,d()}}}function Ls(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{checkValidity:o=null}=t,{message:s=""}=t,{isFirstInvalidInput:l}=t,{isRequired:c=!1}=t,{isInvalid:u=!1}=t,{key:d}=t,{onChange:h}=t,{showMessage:p}=t,{value:f}=t;return X((()=>{l&&r.focus()})),e.$$set=e=>{"checkValidity"in e&&n(8,o=e.checkValidity),"message"in e&&n(1,s=e.message),"isFirstInvalidInput"in e&&n(9,l=e.isFirstInvalidInput),"isRequired"in e&&n(2,c=e.isRequired),"isInvalid"in e&&n(0,u=e.isInvalid),"key"in e&&n(3,d=e.key),"onChange"in e&&n(10,h=e.onChange),"showMessage"in e&&n(4,p=e.showMessage),"value"in e&&n(5,f=e.value),"$$scope"in e&&n(13,a=e.$$scope)},[u,s,c,d,p,f,r,function(e){o&&n(0,u=!o(e)),h(e)},o,l,h,i,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(6,r)}))},a]}var Ds=class extends Se{constructor(e){super(),$e(this,e,Ls,Ms,_,{checkValidity:8,message:1,isFirstInvalidInput:9,isRequired:2,isInvalid:0,key:3,onChange:10,showMessage:4,value:5})}};function Rs(e){let t,n=e[7].default,r=E(n,e,e[9],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||512&i)&&A(r,n,e,e[9],t?C(n,e[9],i,null):I(e[9]),null)},i(e){t||(fe(r,e),t=!0)},o(e){ge(r,e),t=!1},d(e){r&&r.d(e)}}}function Us(e){let t,n,r,i,a,o,s;return i=new Os({props:{key:e[2],$$slots:{default:[Rs]},$$scope:{ctx:e}}}),{c(){t=L("input"),r=U(),be(i.$$.fragment),V(t,"aria-describedby",n=`${e[2]}-message`),V(t,"aria-invalid",e[1]),V(t,"class","tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark"),t.checked=e[4],V(t,"id",e[2]),t.required=e[0],V(t,"type","checkbox")}
1,m(n,l){O(n,t,l),e[8](t),O(n,r,l),ye(i,n,l),a=!0,o||(s=F(t,"change",(function(){y(e[3])&&e[3].apply(this,arguments)})),o=!0)},p(r,[o]){e=r,(!a||4&o&&n!==(n=`${e[2]}-message`))&&V(t,"aria-describedby",n),(!a||2&o)&&V(t,"aria-invalid",e[1]),(!a||16&o)&&(t.checked=e[4]),(!a||4&o)&&V(t,"id",e[2]),(!a||1&o)&&(t.required=e[0]);let s={};4&o&&(s.key=e[2]),512&o&&(s.$$scope={dirty:o,ctx:e}),i.$set(s)},i(e){a||(fe(i.$$.fragment,e),a=!0)},o(e){ge(i.$$.fragment,e),a=!1},d(n){n&&P(t),e[8](null),n&&P(r),_e(i,n),o=!1,s()}}}function Ns(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{isFirstInvalidInput:o}=t,{isRequired:s=!1}=t,{isInvalid:l=!1}=t,{key:c}=t,{onChange:u}=t,{value:d}=t;return X((()=>{o&&r.focus()})),e.$$set=e=>{"isFirstInvalidInput"in e&&n(6,o=e.isFirstInvalidInput),"isRequired"in e&&n(0,s=e.isRequired),"isInvalid"in e&&n(1,l=e.isInvalid),"key"in e&&n(2,c=e.key),"onChange"in e&&n(3,u=e.onChange),"value"in e&&n(4,d=e.value),"$$scope"in e&&n(9,a=e.$$scope)},[s,l,c,u,d,r,o,i,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(5,r)}))},a]}var Fs=class extends Se{constructor(e){super(),$e(this,e,Ns,Us,_,{isFirstInvalidInput:6,isRequired:0,isInvalid:1,key:2,onChange:3,value:4})}};
1function Bs(e){let t,n=e[10].default,r=E(n,e,e[11],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||2048&i)&&A(r,n,e,e[11],t?C(n,e[11],i,null):I(e[11]),null)},i(e){t||(fe(r,e),t=!0)},o(e){ge(r,e),t=!1},d(e){r&&r.d(e)}}}function Vs(e){let t,n,r,i,a,o;return n=new Fs({props:{isFirstInvalidInput:e[2],isRequired:e[3],isInvalid:e[0],key:e[4],onChange:e[7],value:e[6],$$slots:{default:[Bs]},$$scope:{ctx:e}}}),a=new As({props:{dirtyMessage:e[1],key:e[4],showMessage:e[5],type:e[0]?"error":"info"}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),i=L("span"),be(a.$$.fragment),V(i,"class","tw_col-start-2 tw_row-start-2"),V(t,"class","tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]")},m(e,s){O(e,t,s),ye(n,t,null),T(t,r),T(t,i),ye(a,i,null),o=!0},p(e,[t]){let r={};4&t&&(r.isFirstInvalidInput=e[2]),8&t&&(r.isRequired=e[3]),1&t&&(r.isInvalid=e[0]),16&t&&(r.key=e[4]),64&t&&(r.value=e[6]),2048&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);let i={};2&t&&(i.dirtyMessage=e[1]),16&t&&(i.key=e[4]),32&t&&(i.showMessage=e[5]),1&t&&(i.type=e[0]?"error":"info"),a.$set(i)},i(e){o||(fe(n.$$.fragment,e),fe(a.$$.fragment,e),o=!0)},o(e){ge(n.$$.fragment,e),ge(a.$$.fragment,e),o=!1},d(e){e&&P(t),_e(n),_e(a)}}}function zs(e,t,n){let{$$slots:r={},$$scope:i}=t,{checkValidity:a=null}=t,{message:o=""}=t,{isFirstInvalidInput:s}=t,{isRequired:l=!1}=t,{isInvalid:c=!1}=t,{key:u}=t,{onChange:d}=t,{showMessage:h}=t,{value:p}=t;return e.$$set=e=>{"checkValidity"in e&&n(8,a=e.checkValidity),"message"in e&&n(1,o=e.message),"isFirstInvalidInput"in e&&n(2,s=e.isFirstInvalidInput),"isRequired"in e&&n(3,l=e.isRequired),"isInvalid"in e&&n(0,c=e.isInvalid),"key"in e&&n(4,u=e.key),"onChange"in e&&n(9,d=e.onChange),"showMessage"in e&&n(5,h=e.showMessage),"value"in e&&n(6,p=e.value),"$$scope"in e&&n(11,i=e.$$scope)},[c,o,s,l,u,h,p,function(e){a&&n(0,c=!a(e)),d(e)},a,d,r,i]}var js=class extends Se{constructor(e){super(),$e(this,e,zs,Vs,_,{checkValidity:8,message:1,isFirstInvalidInput:2,isRequired:3,isInvalid:0,key:4,onChange:9,showMessage:5,value:6})}};function Hs(e){let t,n=Ba(Va(e[3]),null,e[5])+"";return{c(){t=R(n)},m(e,n){O(e,t,n)},p(e,r){40&r&&n!==(n=Ba(Va(e[3]),null,e[5])+"")&&j(t,n)},d(e){e&&P(t)}}}function qs(e){var t;let n,r;return n=new e[7]({props:{isFirstInvalidInput:(null==(t=e[1])?void 0:t.derived.isFirstInvalidInput)||!1,isInvalid:!!e[6],key:e[2],message:e[6],onChange:e[8],value:e[4],$$slots:{default:[Hs]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};2&t&&(i.isFirstInvalidInput=(null==(r=e[1])?void 0:r.derived.isFirstInvalidInput)||!1),64&t&&(i.isInvalid=!!e[6]),4&t&&(i.key=e[2]),64&t&&(i.message=e[6]),16&t&&(i.value=e[4]),4136&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Ks(e){let t,n,r=e[0],i=qs(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){1&n&&_(r,r=e[0])?(he(),ge(i,1,1,g),pe(),i=qs(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function Gs(e,t,n){let r,i,a,o,s,{callback:l}=t,{callbackMetadata:c}=t,{style:u={}}=t,d="standard"===u.checksAndRadios?js:Ds;return e.$$set=e=>{"callback"in e&&n(0,l=e.callback),"callbackMetadata"in e&&n(1,c=e.callbackMetadata),"style"in e&&n(11,u=e.style)},e.$$.update=()=>{var t,u;3&e.$$.dirty&&(n(2,r=(null==(u=null==(t=null==l?void 0:l.payload)?void 0:t.input)?void 0:u[0].name)||`boolean-attr-${null==c?void 0:c.idx}`),n(3,i=l.getOutputByName("name","")),n(4,a=l.getInputValue()),n(5,o=l.getPrompt()),n(6,s=function(e){return(e.getFailedPolicies&&e.getFailedPolicies()).reduce(((e,t)=>(t.policyRequirement,`${e}${Ba("pleaseCheckValue")}`)),"")}(l)))},[l,c,r,i,a,o,s,d,function(e){l.setInputValue(e.target.checked)},null,null,u]}var Ws=class extends Se{constructor(e){super(),$e(this,e,Gs,Ks,_,{stepMetadata:9,selfSubmitFunction:10,callback:0,callbackMetadata:1,style:11})}get stepMetadata(){return this.$$.ctx[9]}get selfSubmitFunction(){return this.$$.ctx[10]}};function Zs(e,t,n){let r=e.slice();return r[13]=t[n],r}function Ys(e){let t,n,r,i=e[13].text+"";return{c(){t=L("span"),n=U(),r=R(i),V(t,"class","tw_animated-radio dark:tw_animated-radio_dark")},m(e,i){O(e,t,i),O(e,n,i),O(e,r,i)},p(e,t){256&t&&i!==(i=e[13].text+"")&&j(r,i)},d(e){e&&P(t),e&&P(n),e&&P(r)}}}function Xs(e){let t,n,r,i,a,o,s,l,c,u,d;return s=new Os({props:{key:`${e[5]}-${e[13].value}`,classes:"tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",$$slots:{default:[Ys]},$$scope:{ctx:e}}}),{c(){t=L("div"),n=L("input"),o=U(),be(s.$$.fragment),l=U(),V(n,"class","tw_radio-input_animated dark:tw_radio-input_animated_dark tw_sr-only"),n.checked=r=e[0]===e[13].value,V(n,"id",
1i=`${e[5]}-${e[13].value}`),V(n,"name",e[6]),n.required=e[3],V(n,"type","radio"),n.value=a=e[13].value,V(t,"class","tw_input-spacing")},m(r,i){O(r,t,i),T(t,n),e[12](n),T(t,o),ye(s,t,null),T(t,l),c=!0,u||(d=F(n,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),u=!0)},p(t,o){e=t,(!c||257&o&&r!==(r=e[0]===e[13].value))&&(n.checked=r),(!c||288&o&&i!==(i=`${e[5]}-${e[13].value}`))&&V(n,"id",i),(!c||64&o)&&V(n,"name",e[6]),(!c||8&o)&&(n.required=e[3]),(!c||256&o&&a!==(a=e[13].value))&&(n.value=a);let l={};288&o&&(l.key=`${e[5]}-${e[13].value}`),65792&o&&(l.$$scope={dirty:o,ctx:e}),s.$set(l)},i(e){c||(fe(s.$$.fragment,e),c=!0)},o(e){ge(s.$$.fragment,e),c=!1},d(n){n&&P(t),e[12](null),_e(s),u=!1,d()}}}function Js(e){let t,n,r,i,a,o,s,l,c,u=e[8],d=[];for(let p=0;p<u.length;p+=1)d[p]=Xs(Zs(e,u,p));let h=e=>ge(d[e],1,1,(()=>{d[e]=null}));return l=new As({props:{dirtyMessage:e[1],key:e[5],showMessage:e[9],type:e[4]?"error":"info"}}),{c(){t=L("fieldset"),n=L("legend"),r=R(e[2]),i=U(),a=L("div");for(let e=0;e<d.length;e+=1)d[e].c();o=U(),s=L("span"),be(l.$$.fragment),V(n,"class","tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"),V(s,"class","tw_col-start-2 tw_row-start-2")},m(e,u){O(e,t,u),T(t,n),T(n,r),T(t,i),T(t,a);for(let t=0;t<d.length;t+=1)d[t].m(a,null);T(a,o),T(a,s),ye(l,s,null),c=!0},p(e,[t]){if((!c||4&t)&&j(r,e[2]),1513&t){let n;for(u=e[8],n=0;n<u.length;n+=1){let r=Zs(e,u,n);d[n]?(d[n].p(r,t),fe(d[n],1)):(d[n]=Xs(r),d[n].c(),fe(d[n],1),d[n].m(a,o))}for(he(),n=u.length;n<d.length;n+=1)h(n);pe()}let n={};2&t&&(n.dirtyMessage=e[1]),32&t&&(n.key=e[5]),512&t&&(n.showMessage=e[9]),16&t&&(n.type=e[4]?"error":"info"),l.$set(n)},i(e){if(!c){for(let e=0;e<u.length;e+=1)fe(d[e]);fe(l.$$.fragment,e),c=!0}},o(e){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)ge(d[t]);ge(l.$$.fragment,e),c=!1},d(e){e&&P(t),M(d,e),_e(l)}}}function Qs(e,t,n){let r,{defaultOption:i=null}=t,{message:a=""}=t,{groupLabel:o=""}=t,{isFirstInvalidInput:s}=t,{isRequired:l=!1}=t,{isInvalid:c=!1}=t,{key:u}=t,{name:d}=t,{onChange:h}=t,{options:p}=t,{showMessage:f}=t;return X((()=>{s&&r.focus()})),e.$$set=e=>{"defaultOption"in e&&n(0,i=e.defaultOption),"message"in e&&n(1,a=e.message),"groupLabel"in e&&n(2,o=e.groupLabel),"isFirstInvalidInput"in e&&n(11,s=e.isFirstInvalidInput),"isRequired"in e&&n(3,l=e.isRequired),"isInvalid"in e&&n(4,c=e.isInvalid),"key"in e&&n(5,u=e.key),"name"in e&&n(6,d=e.name),"onChange"in e&&n(7,h=e.onChange),"options"in e&&n(8,p=e.options),"showMessage"in e&&n(9,f=e.showMessage)},[i,a,o,l,c,u,d,h,p,f,r,s,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(10,r)}))}]}var el=class extends Se{constructor(e){super(),$e(this,e,Qs,Js,_,{defaultOption:0,message:1,groupLabel:2,isFirstInvalidInput:11,isRequired:3,isInvalid:4,key:5,name:6,onChange:7,options:8,showMessage:9})}};function tl(e){let t,n=e[8].default,r=E(n,e,e[10],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||1024&i)&&A(r,n,e,e[10],t?C(n,e[10],i,null):I(e[10]),null)},i(e){t||(fe(r,e),t=!0)},o(e){ge(r,e),t=!1},d(e){r&&r.d(e)}}}function nl(e){let t,n,r,i,a,o,s;return i=new Os({props:{key:e[2],$$slots:{default:[tl]},$$scope:{ctx:e}}}),{c(){t=L("input"),r=U(),be(i.$$.fragment),V(t,"aria-describedby",n=`${e[2]}-message`),V(t,"class","tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark"),t.checked=e[0],V(t,"id",e[2]),V(t,"name",e[3]),t.required=e[1],V(t,"type","radio"),t.value=e[5]},m(n,l){O(n,t,l),e[9](t),O(n,r,l),ye(i,n,l),a=!0,o||(s=F(t,"change",(function(){y(e[4])&&e[4].apply(this,arguments)})),o=!0)},p(r,[o]){e=r,(!a||4&o&&n!==(n=`${e[2]}-message`))&&V(t,"aria-describedby",n),(!a||1&o)&&(t.checked=e[0]),(!a||4&o)&&V(t,"id",e[2]),(!a||8&o)&&V(t,"name",e[3]),(!a||2&o)&&(t.required=e[1]),(!a||32&o)&&(t.value=e[5]);let s={};4&o&&(s.key=e[2]),1024&o&&(s.$$scope={dirty:o,ctx:e}),i.$set(s)},i(e){a||(fe(i.$$.fragment,e),a=!0)},o(e){ge(i.$$.fragment,e),a=!1},d(n){n&&P(t),e[9](null),n&&P(r),_e(i,n),o=!1,s()}}}function rl(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{checked:o=!1}=t,{isFirstInvalidInput:s}=t,{isRequired:l=!1}=t,{key:c}=t,{name:u}=t,{onChange:d}=t,{value:h}=t;return X((()=>{s&&r.focus()})),e.$$set=e=>{"checked"in e&&n(0,o=e.checked),"isFirstInvalidInput"in e&&n(7,s=e.isFirstInvalidInput),"isRequired"in e&&n(1,l=e.isRequired),"key"in e&&n(2,c=e.key),"name"in e&&n(3,u=e.name),"onChange"in e&&n(4,d=e.onChange),"value"in e&&n(5,h=e.value),"$$scope"in e&&n(10,a=e.$$scope)},[o,l,c,u,d,h,r,s,i,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(6,r)}))},a]}var il=class extends Se{constructor(e){super(),$e(this,e,rl,nl,_,{checked:0,isFirstInvalidInput:7,isRequired:1,key:2,name:3,onCh
1ange:4,value:5})}};function al(e,t,n){let r=e.slice();return r[11]=t[n],r}function ol(e){let t,n=e[11].text+"";return{c(){t=R(n)},m(e,n){O(e,t,n)},p(e,r){512&r&&n!==(n=e[11].text+"")&&j(t,n)},d(e){e&&P(t)}}}function sl(e){let t,n,r,i;return n=new il({props:{checked:e[0]===e[11].value,isFirstInvalidInput:e[3],isRequired:e[4],key:`${e[6]}-${e[11].value}`,name:e[7],onChange:e[8],value:e[11].value,$$slots:{default:[ol]},$$scope:{ctx:e}}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),V(t,"class","tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]")},m(e,a){O(e,t,a),ye(n,t,null),T(t,r),i=!0},p(e,t){let r={};513&t&&(r.checked=e[0]===e[11].value),8&t&&(r.isFirstInvalidInput=e[3]),16&t&&(r.isRequired=e[4]),576&t&&(r.key=`${e[6]}-${e[11].value}`),128&t&&(r.name=e[7]),256&t&&(r.onChange=e[8]),512&t&&(r.value=e[11].value),16896&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){i||(fe(n.$$.fragment,e),i=!0)},o(e){ge(n.$$.fragment,e),i=!1},d(e){e&&P(t),_e(n)}}}function ll(e){let t,n,r,i,a,o,s,l,c=e[9],u=[];for(let h=0;h<c.length;h+=1)u[h]=sl(al(e,c,h));let d=e=>ge(u[e],1,1,(()=>{u[e]=null}));return s=new As({props:{dirtyMessage:e[1],key:e[6],showMessage:e[10],type:e[5]?"error":"info"}}),{c(){t=L("fieldset"),n=L("legend"),r=R(e[2]),i=U();for(let e=0;e<u.length;e+=1)u[e].c();a=U(),o=L("span"),be(s.$$.fragment),V(n,"class","tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"),V(o,"class","tw_col-start-2 tw_row-start-2")},m(e,c){O(e,t,c),T(t,n),T(n,r),T(t,i);for(let n=0;n<u.length;n+=1)u[n].m(t,null);T(t,a),T(t,o),ye(s,o,null),l=!0},p(e,[n]){if((!l||4&n)&&j(r,e[2]),985&n){let r;for(c=e[9],r=0;r<c.length;r+=1){let i=al(e,c,r);u[r]?(u[r].p(i,n),fe(u[r],1)):(u[r]=sl(i),u[r].c(),fe(u[r],1),u[r].m(t,a))}for(he(),r=c.length;r<u.length;r+=1)d(r);pe()}let i={};2&n&&(i.dirtyMessage=e[1]),64&n&&(i.key=e[6]),1024&n&&(i.showMessage=e[10]),32&n&&(i.type=e[5]?"error":"info"),s.$set(i)},i(e){if(!l){for(let e=0;e<c.length;e+=1)fe(u[e]);fe(s.$$.fragment,e),l=!0}},o(e){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)ge(u[t]);ge(s.$$.fragment,e),l=!1},d(e){e&&P(t),M(u,e),_e(s)}}}function cl(e,t,n){let{defaultOption:r=null}=t,{message:i=""}=t,{groupLabel:a=""}=t,{isFirstInvalidInput:o}=t,{isRequired:s=!1}=t,{isInvalid:l=!1}=t,{key:c}=t,{name:u}=t,{onChange:d}=t,{options:h}=t,{showMessage:p}=t;return e.$$set=e=>{"defaultOption"in e&&n(0,r=e.defaultOption),"message"in e&&n(1,i=e.message),"groupLabel"in e&&n(2,a=e.groupLabel),"isFirstInvalidInput"in e&&n(3,o=e.isFirstInvalidInput),"isRequired"in e&&n(4,s=e.isRequired),"isInvalid"in e&&n(5,l=e.isInvalid),"key"in e&&n(6,c=e.key),"name"in e&&n(7,u=e.name),"onChange"in e&&n(8,d=e.onChange),"options"in e&&n(9,h=e.options),"showMessage"in e&&n(10,p=e.showMessage)},[r,i,a,o,s,l,c,u,d,h,p]}var ul=class extends Se{constructor(e){super(),$e(this,e,cl,ll,_,{defaultOption:0,message:1,groupLabel:2,isFirstInvalidInput:3,isRequired:4,isInvalid:5,key:6,name:7,onChange:8,options:9,showMessage:10})}};function dl(e,t,n){let r=e.slice();return r[15]=t[n],r}function hl(e){let t,n;return t=new Os({props:{key:e[4],classes:`${e[6]}`,$$slots:{default:[pl]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};16&n&&(r.key=e[4]),64&n&&(r.classes=`${e[6]}`),262176&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function pl(e){let t;return{c(){t=R(e[5])},m(e,n){O(e,t,n)},p(e,n){32&n&&j(t,e[5])},d(e){e&&P(t)}}}function fl(e){let t,n,r,i,a,o=e[15].text+"";return{c(){t=L("option"),n=R(o),r=U(),t.__value=i=e[15].value,t.value=t.__value,t.selected=a=e[15].value===e[1]},m(e,i){O(e,t,i),T(t,n),T(t,r)},p(e,r){256&r&&o!==(o=e[15].text+"")&&j(n,o),256&r&&i!==(i=e[15].value)&&(t.__value=i,t.value=t.__value),258&r&&a!==(a=e[15].value===e[1])&&(t.selected=a)},d(e){e&&P(t)}}}function gl(e){let t,n;return t=new Os({props:{key:e[4],classes:`${e[10]?e[6]:"tw_sr-only"}`,$$slots:{default:[ml]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};16&n&&(r.key=e[4]),1088&n&&(r.classes=`${e[10]?e[6]:"tw_sr-only"}`),262176&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ml(e){let t;return{c(){t=R(e[5])},m(e,n){O(e,t,n)},p(e,n){32&n&&j(t,e[5])},d(e){e&&P(t)}}}function vl(e){let t,n,r,i,a,o,s,l,c,u="first"===e[7]&&hl(e),d=e[8],h=[];for(let f=0;f<d.length;f+=1)h[f]=fl(dl(e,d,f));let p="last"===e[7]&&gl(e);return{c(){u&&u.c(),t=U(),n=L("select");for(let e=0;e<h.length;e+=1)h[e].c();a=U(),p&&p.c(),o=N(),V(n,"aria-describedby",r=`${e[4]}-message`),V(n,"aria-invalid",e[3]),V(n,"class",i=`${e[10]?e[0]:""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`),V(n,"id",e[4]),n.required=e[2]}
1,m(r,i){u&&u.m(r,i),O(r,t,i),O(r,n,i);for(let e=0;e<h.length;e+=1)h[e].m(n,null);e[14](n),O(r,a,i),p&&p.m(r,i),O(r,o,i),s=!0,l||(c=F(n,"change",e[11]),l=!0)},p(e,[a]){if("first"===e[7]?u?(u.p(e,a),128&a&&fe(u,1)):(u=hl(e),u.c(),fe(u,1),u.m(t.parentNode,t)):u&&(he(),ge(u,1,1,(()=>{u=null})),pe()),258&a){let t;for(d=e[8],t=0;t<d.length;t+=1){let r=dl(e,d,t);h[t]?h[t].p(r,a):(h[t]=fl(r),h[t].c(),h[t].m(n,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}(!s||16&a&&r!==(r=`${e[4]}-message`))&&V(n,"aria-describedby",r),(!s||8&a)&&V(n,"aria-invalid",e[3]),(!s||1025&a&&i!==(i=`${e[10]?e[0]:""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`))&&V(n,"class",i),(!s||16&a)&&V(n,"id",e[4]),(!s||4&a)&&(n.required=e[2]),"last"===e[7]?p?(p.p(e,a),128&a&&fe(p,1)):(p=gl(e),p.c(),fe(p,1),p.m(o.parentNode,o)):p&&(he(),ge(p,1,1,(()=>{p=null})),pe())},i(e){s||(fe(u),fe(p),s=!0)},o(e){ge(u),ge(p),s=!1},d(r){u&&u.d(r),r&&P(t),r&&P(n),M(h,r),e[14](null),r&&P(a),p&&p.d(r),r&&P(o),l=!1,c()}}}function wl(e,t,n){let r,{selectClasses:i=""}=t,{defaultOption:a=null}=t,{isFirstInvalidInput:o}=t,{isRequired:s=!1}=t,{isInvalid:l=!1}=t,{key:c}=t,{label:u}=t,{labelClasses:d=""}=t,{labelOrder:h="first"}=t,{onChange:p}=t,{options:f}=t,g=!0;return null===a&&f[0].text===u&&(g=!1),X((()=>{o&&r.focus()})),e.$$set=e=>{"selectClasses"in e&&n(0,i=e.selectClasses),"defaultOption"in e&&n(1,a=e.defaultOption),"isFirstInvalidInput"in e&&n(12,o=e.isFirstInvalidInput),"isRequired"in e&&n(2,s=e.isRequired),"isInvalid"in e&&n(3,l=e.isInvalid),"key"in e&&n(4,c=e.key),"label"in e&&n(5,u=e.label),"labelClasses"in e&&n(6,d=e.labelClasses),"labelOrder"in e&&n(7,h=e.labelOrder),"onChange"in e&&n(13,p=e.onChange),"options"in e&&n(8,f=e.options)},[i,a,s,l,c,u,d,h,f,r,g,function(e){let t=e.target.value,r=f.find((e=>String(e.value)===t));n(10,g=u!==(null==r?void 0:r.text)),p(e)},o,p,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(9,r),n(8,f)}))}]}var bl=class extends Se{constructor(e){super(),$e(this,e,wl,vl,_,{selectClasses:0,defaultOption:1,isFirstInvalidInput:12,isRequired:2,isInvalid:3,key:4,label:5,labelClasses:6,labelOrder:7,onChange:13,options:8})}};function yl(e){let t,n,r,i,a;return n=new bl({props:{defaultOption:e[1],isFirstInvalidInput:e[3],isRequired:e[4],isInvalid:e[0],key:e[5],label:e[6],labelClasses:"tw_absolute tw_input-floating-label tw_select-floating-label",labelOrder:"last",onCh
1ange:e[9],options:e[7],selectClasses:"tw_select-floating"}}),i=new As({props:{dirtyMessage:e[2],key:e[5],showMessage:e[8],type:e[0]?"error":"info"}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),be(i.$$.fragment),V(t,"class","tw_input-spacing tw_relative")},m(e,o){O(e,t,o),ye(n,t,null),T(t,r),ye(i,t,null),a=!0},p(e,[t]){let r={};2&t&&(r.defaultOption=e[1]),8&t&&(r.isFirstInvalidInput=e[3]),16&t&&(r.isRequired=e[4]),1&t&&(r.isInvalid=e[0]),32&t&&(r.key=e[5]),64&t&&(r.label=e[6]),128&t&&(r.options=e[7]),n.$set(r);let a={};4&t&&(a.dirtyMessage=e[2]),32&t&&(a.key=e[5]),256&t&&(a.showMessage=e[8]),1&t&&(a.type=e[0]?"error":"info"),i.$set(a)},i(e){a||(fe(n.$$.fragment,e),fe(i.$$.fragment,e),a=!0)},o(e){ge(n.$$.fragment,e),ge(i.$$.fragment,e),a=!1},d(e){e&&P(t),_e(n),_e(i)}}}function _l(e,t,n){let{checkValidity:r=null}=t,{defaultOption:i=null}=t,{message:a=""}=t,{isFirstInvalidInput:o}=t,{isRequired:s=!1}=t,{isInvalid:l=!1}=t,{key:c}=t,{label:u}=t,{onChange:d}=t,{options:h}=t,{showMessage:p}=t;return e.$$set=e=>{"checkValidity"in e&&n(10,r=e.checkValidity),"defaultOption"in e&&n(1,i=e.defaultOption),"message"in e&&n(2,a=e.message),"isFirstInvalidInput"in e&&n(3,o=e.isFirstInvalidInput),"isRequired"in e&&n(4,s=e.isRequired),"isInvalid"in e&&n(0,l=e.isInvalid),"key"in e&&n(5,c=e.key),"label"in e&&n(6,u=e.label),"onChange"in e&&n(11,d=e.onChange),"options"in e&&n(7,h=e.options),"showMessage"in e&&n(8,p=e.showMessage)},[l,i,a,o,s,c,u,h,p,function(e){r&&n(0,l=!r(e)),d(e)},r,d]}var kl=class extends Se{constructor(e){super(),$e(this,e,_l,yl,_,{checkValidity:10,defaultOption:1,message:2,isFirstInvalidInput:3,isRequired:4,isInvalid:0,key:5,label:6,onChange:11,options:7,showMessage:8})}};function $l(e){let t,n,r,i,a;return n=new bl({props:{defaultOption:e[1],isFirstInvalidInput:e[3],isRequired:e[4],isInvalid:e[0],key:e[5],label:e[6],labelClasses:"tw_input-stacked-label",labelOrder:"first",onChange:e[9],options:e[7]}}),i=new As({props:{dirtyMessage:e[2],key:e[5],showMessage:e[8],type:e[0]?"error":"info"}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),be(i.$$.fragment),V(t,"class","tw_input-spacing")},m(e,o){O(e,t,o),ye(n,t,null),T(t,r),ye(i,t,null),a=!0},p(e,[t]){let r={};2&t&&(r.defaultOption=e[1]),8&t&&(r.isFirstInvalidInput=e[3]),16&t&&(r.isRequired=e[4]),1&t&&(r.isInvalid=e[0]),32&t&&(r.key=e[5]),64&t&&(r.label=e[6]),128&t&&(r.options=e[7]),n.$set(r);let a={};4&t&&(a.dirtyMessage=e[2]),32&t&&(a.key=e[5]),256&t&&(a.showMessage=e[8]),1&t&&(a.type=e[0]?"error":"info"),i.$set(a)},i(e){a||(fe(n.$$.fragment,e),fe(i.$$.fragment,e),a=!0)},o(e){ge(n.$$.fragment,e),ge(i.$$.fragment,e),a=!1},d(e){e&&P(t),_e(n),_e(i)}}}function Sl(e,t,n){let{checkValidity:r=null}=t,{defaultOption:i=null}=t,{message:a=""}=t,{isFirstInvalidInput:o}=t,{isRequired:s=!1}=t,{isInvalid:l=!1}=t,{key:c}=t,{label:u}=t,{onChange:d}=t,{options:h}=t,{showMessage:p}=t;return e.$$set=e=>{"checkValidity"in e&&n(10,r=e.checkValidity),"defaultOption"in e&&n(1,i=e.defaultOption),"message"in e&&n(2,a=e.message),"isFirstInvalidInput"in e&&n(3,o=e.isFirstInvalidInput),"isRequired"in e&&n(4,s=e.isRequired),"isInvalid"in e&&n(0,l=e.isInvalid),"key"in e&&n(5,c=e.key),"label"in e&&n(6,u=e.label),"onChange"in e&&n(11,d=e.onChange),"options"in e&&n(7,h=e.options),"showMessage"in e&&n(8,p=e.showMessage)},[l,i,a,o,s,c,u,h,p,function(e){r&&n(0,l=!r(e)),d(e)},r,d]}var El=class extends Se{constructor(e){super(),$e(this,e,Sl,$l,_,{checkValidity:10,defaultOption:1,message:2,isFirstInvalidInput:3,isRequired:4,isInvalid:0,key:5,label:6,onChange:11,options:7,showMessage:8})}};function xl(e){var t;let n,r;return n=new e[7]({props:{isFirstInvalidInput:(null==(t=e[0])?void 0:t.derived.isFirstInvalidInput)||!1,defaultOption:e[5],isRequired:!1,key:e[3],label:e[4],onChange:e[8],options:e[2]}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};1&t&&(i.isFirstInvalidInput=(null==(r=e[0])?void 0:r.derived.isFirstInvalidInput)||!1),32&t&&(i.defaultOption=e[5]),8&t&&(i.key=e[3]),16&t&&(i.label=e[4]),4&t&&(i.options=e[2]),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Cl(e){var t;let n,r;return n=new e[6]({props:{isFirstInvalidInput:(null==(t=e[0])?void 0:t.derived.isFirstInvalidInput)||!1,defaultOption:e[5],isRequired:!1,key:e[3],groupLabel:e[1],onChange:e[8],name:e[3],options:e[2]}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};
11&t&&(i.isFirstInvalidInput=(null==(r=e[0])?void 0:r.derived.isFirstInvalidInput)||!1),32&t&&(i.defaultOption=e[5]),8&t&&(i.key=e[3]),2&t&&(i.groupLabel=e[1]),8&t&&(i.name=e[3]),4&t&&(i.options=e[2]),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Al(e){let t,n,r,i,a=[Cl,xl],o=[];function s(e,t){var n,r;return"radio"===(null==(r=null==(n=e[0])?void 0:n.platform)?void 0:r.displayType)?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function Il(e,t,n){let r,i,a,o,s,{callback:l}=t,{callbackMetadata:c}=t,{style:u={}}=t,d="standard"===u.checksAndRadios?ul:el,h="stacked"===u.labels?El:kl;return e.$$set=e=>{"callback"in e&&n(11,l=e.callback),"callbackMetadata"in e&&n(0,c=e.callbackMetadata),"style"in e&&n(12,u=e.style)},e.$$.update=()=>{var t,u,d;2051&e.$$.dirty&&(n(2,r=null==(t=l.getChoices())?void 0:t.map(((e,t)=>({text:Ba(Va(e),null,e),value:`${t}`})))),n(5,s=`${l.getDefaultChoice()}`||null),n(3,i=(null==(d=null==(u=null==l?void 0:l.payload)?void 0:u.input)?void 0:d[0].name)||`choice-${null==c?void 0:c.idx}`),n(1,o=l.getPrompt()),n(4,a=Ba(Va(o),null,o)))},[c,o,r,i,a,s,d,h,function(e){l.setChoiceIndex(Number(e.target.value))},null,null,l,u]}var Tl=class extends Se{constructor(e){super(),$e(this,e,Il,Al,_,{selfSubmitFunction:9,stepMetadata:10,callback:11,callbackMetadata:0,style:12})}get selfSubmitFunction(){return this.$$.ctx[9]}get stepMetadata(){return this.$$.ctx[10]}};function Ol(e){let t,n,r,i=e[2].default,a=E(i,e,e[1],null);return{c(){t=L("div"),a&&a.c(),V(t,"class",n=`${Pl(e[0])} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`)},m(e,n){O(e,t,n),a&&a.m(t,null),r=!0},p(e,[o]){a&&a.p&&(!r||2&o)&&A(a,i,e,e[1],r?C(i,e[1],o,null):I(e[1]),null),(!r||1&o&&n!==(n=`${Pl(e[0])} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`))&&V(t,"class",n)},i(e){r||(fe(a,e),r=!0)},o(e){ge(a,e),r=!1},d(e){e&&P(t),a&&a.d(e)}}}function Pl(...e){return e.reduce(((e,t)=>{switch(t){case 4:return`${e} md:tw_grid-cols-4`;case 3:return`${e} md:tw_grid-cols-3`;case 2:return`${e} md:tw_grid-cols-2`;default:return`${e} md:tw_grid-cols-1`}}),"")}function Ml(e,t,n){let{$$slots:r={},$$scope:i}=t,{num:a=2}=t;return e.$$set=e=>{"num"in e&&n(0,a=e.num),"$$scope"in e&&n(1,i=e.$$scope)},[a,i,r]}var Ll=class extends Se{constructor(e){super(),$e(this,e,Ml,Ol,_,{num:0})}};function Dl(e,t,n){let r=e.slice();return r[15]=t[n],r}function Rl(e){let t,n;return t=new Ll({props:{num:e[3].length>=2?2:1,$$slots:{default:[Bl]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};8&n&&(r.num=e[3].length>=2?2:1),262200&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Ul(e){let t,n,r,i,a=[zl,Vl],o=[];function s(e,t){return e[3].length>1?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function Nl(e){let t,n,r=e[15].text+"";return{c(){t=R(r),n=U()},m(e,r){O(e,t,r),O(e,n,r)},p(e,n){8&n&&r!==(r=e[15].text+"")&&j(t,r)},d(e){e&&P(t),e&&P(n)}}}function Fl(e){let t,n;function r(){return e[14](e[15])}return t=new ts({props:{style:e[3].length>1&&e[5]===Number(e[15].value)?"primary":e[4],type:"button",width:"auto",onClick:r,$$slots:{default:[Nl]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(n,i){e=n;let a={};56&i&&(a.style=e[3].length>1&&e[5]===Number(e[15].value)?"primary":e[4]),8&i&&(a.onClick=r),262152&i&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Bl(e){let t,n,r=e[3],i=[];for(let o=0;o<r.length;o+=1)i[o]=Fl(Dl(e,r,o));let a=e=>ge(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();
1t=N()},m(e,r){for(let t=0;t<i.length;t+=1)i[t].m(e,r);O(e,t,r),n=!0},p(e,n){if(312&n){let o;for(r=e[3],o=0;o<r.length;o+=1){let a=Dl(e,r,o);i[o]?(i[o].p(a,n),fe(i[o],1)):(i[o]=Fl(a),i[o].c(),fe(i[o],1),i[o].m(t.parentNode,t))}for(he(),o=r.length;o<i.length;o+=1)a(o);pe()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)fe(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)ge(i[t]);n=!1},d(e){M(i,e),e&&P(t)}}}function Vl(e){var t;let n,r;return n=new e[7]({props:{isFirstInvalidInput:(null==(t=e[0])?void 0:t.derived.isFirstInvalidInput)||!1,isInvalid:!1,key:e[6],onChange:e[10],value:!1,$$slots:{default:[jl]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};1&t&&(i.isFirstInvalidInput=(null==(r=e[0])?void 0:r.derived.isFirstInvalidInput)||!1),64&t&&(i.key=e[6]),262152&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function zl(e){var t;let n,r;return n=new kl({props:{isFirstInvalidInput:(null==(t=e[0])?void 0:t.derived.isFirstInvalidInput)||!1,isRequired:!1,key:e[6],label:e[2],onChange:e[9],options:e[3]}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};1&t&&(i.isFirstInvalidInput=(null==(r=e[0])?void 0:r.derived.isFirstInvalidInput)||!1),64&t&&(i.key=e[6]),4&t&&(i.label=e[2]),8&t&&(i.options=e[3]),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function jl(e){let t,n=e[3][0].text+"";return{c(){t=R(n)},m(e,n){O(e,t,n)},p(e,r){8&r&&n!==(n=e[3][0].text+"")&&j(t,n)},d(e){e&&P(t)}}}function Hl(e){let t,n,r,i,a,o=[Ul,Rl],s=[];function l(e,n){var r;return 2&n&&(t=null),null==t&&(t=!(null!=(r=e[1])&&r.derived.isStepSelfSubmittable())),t?0:1}return n=l(e,-1),r=s[n]=o[n](e),{c(){r.c(),i=N()},m(e,t){s[n].m(e,t),O(e,i,t),a=!0},p(e,[t]){let a=n;n=l(e,t),n===a?s[n].p(e,t):(he(),ge(s[a],1,1,(()=>{s[a]=null})),pe(),r=s[n],r?r.p(e,t):(r=s[n]=o[n](e),r.c()),fe(r,1),r.m(i.parentNode,i))},i(e){a||(fe(r),a=!0)},o(e){ge(r),a=!1},d(e){s[n].d(e),e&&P(i)}}}function ql(e,t,n){let r,i,a,o,s={},{callback:l}=t,{callbackMetadata:c}=t,{selfSubmitFunction:u=null}=t,{stepMetadata:d}=t,h="standard"===s.checksAndRadios?js:Ds,p=l.getDefaultOption();function f(e){l.setOptionIndex(e),c&&n(0,c.derived.isReadyForSubmission=!0,c),u&&u()}0===l.getInputValue()&&l.setOptionIndex(p);return e.$$set=e=>{"callback"in e&&n(12,l=e.callback),"callbackMetadata"in e&&n(0,c=e.callbackMetadata),"selfSubmitFunction"in e&&n(13,u=e.selfSubmitFunction),"stepMetadata"in e&&n(1,d=e.stepMetadata)},e.$$.update=()=>{var t,s,u;4111&e.$$.dirty&&(n(6,i=(null==(s=null==(t=null==l?void 0:l.payload)?void 0:t.input)?void 0:s[0].name)||`confirmation-${null==c?void 0:c.idx}`),n(3,o=l.getOptions().map(((e,t)=>({value:`${t}`,text:e})))),n(5,p=l.getDefaultOption()),n(2,a=Ba(Va("pleaseConfirm"),null,"Please Confirm")),null!=(u=null==c?void 0:c.platform)&&u.showOnlyPositiveAnswer&&n(3,o=o.slice(0,1)),(null==d||!d.derived.isStepSelfSubmittable())&&o.length>1?o.unshift({value:"",text:a}):1===o.length?n(4,r="outline"):n(4,r="secondary"))},[c,d,a,o,r,p,i,h,f,function(e){l.setOptionIndex(Number(e.target.value))},function(e){e.target.checked?l.setOptionIndex(0):l.setOptionIndex(p)},s,l,u,e=>f(Number(e.value))]}var Kl=class extends Se{constructor(e){super(),$e(this,e,ql,Hl,_,{style:11,
1callback:12,callbackMetadata:0,selfSubmitFunction:13,stepMetadata:1})}get style(){return this.$$.ctx[11]}};function Gl(e,t,n){return[null,null,null,null,{}]}var Wl=class extends Se{constructor(e){super(),$e(this,e,Gl,null,_,{callback:0,callbackMetadata:1,selfSubmitFunction:2,stepMetadata:3,style:4})}get callback(){return this.$$.ctx[0]}get callbackMetadata(){return this.$$.ctx[1]}get selfSubmitFunction(){return this.$$.ctx[2]}get stepMetadata(){return this.$$.ctx[3]}get style(){return this.$$.ctx[4]}};function Zl(e){let t,n;return t=new Os({props:{key:e[3],classes:`${e[5]} tw_w-full tw_ml-1`,$$slots:{default:[Yl]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};8&n&&(r.key=e[3]),32&n&&(r.classes=`${e[5]} tw_w-full tw_ml-1`),67108880&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Yl(e){let t;return{c(){t=R(e[4])},m(e,n){O(e,t,n)},p(e,n){16&n&&j(t,e[4])},d(e){e&&P(t)}}}function Xl(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","date")},m(n,r){O(n,t,r),e[14](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[15])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&H(t,e[0])},d(n){n&&P(t),e[14](null),i=!1,b(a)}}}function Jl(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","email")},m(n,r){O(n,t,r),e[16](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[17])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&t.value!==e[0]&&H(t,e[0])},d(n){n&&P(t),e[16](null),i=!1,b(a)}}}function Ql(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","number")},m(n,r){O(n,t,r),e[18](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[19])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&z(t.value)!==e[0]&&H(t,e[0])},d(n){n&&P(t),e[18](null),i=!1,b(a)}}}function ec(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","password")},m(n,r){O(n,t,r),e[20](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[21])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&t.value!==e[0]&&H(t,e[0])},d(n){n&&P(t),e[20](null),i=!1,b(a)}}}function tc(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","phone")},m(n,r){O(n,t,r),e[22](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[23])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&H(t,e[0])},d(n){n&&P(t),e[22](null),i=!1,b(a)}}}function nc(e){let t,n,r,i,a;return{c(){t=L("input"),V(t,"aria-describedby",n=`${e[3]}-message`),V(t,"aria-invalid",e[10]),V(t,"class",r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),V(t,"data-force-validity-failure",e[1]),V(t,"id",e[3]),V(t,"placeholder",e[8]),t.required=e[9],V(t,"type","text")},m(n,r){O(n,t,r),e[24](t),H(t,e[0]),i||(a=[F(t,"change",(function(){y(e[7])&&e[7].apply(this,arguments)})),F(t,"input",e[25])],i=!0)},p(i,a){e=i,8&a&&n!==(n=`${e[3]}-message`)&&V(t,"aria-describedby",n),1024&a&&V(t,"aria-invalid",e[10]),4&a&&r!==(r=`${e[2]} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`)&&V(t,"class",r),2&a&&V(t,"data-force-validity-failure",e[1]),8&a&&V(t,"id",e[3]),256&a&&V(t,"placeholder",e[8]),512&a&&(t.required=e[9]),1&a&&t.value!==e[0]&&H(t,e[0])},d(n){n&&P(t),e[24](null),i=!1,b(a)}}}function rc(e){let t,n;return t=new Os({props:{key:e[3],classes:`${e[5]}`,$$slots:{default:[ic]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};8&n&&(r.key=e[3]),32&n&&(r.classes=`${e[5]}`),67108880&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ic(e){let t;return{c(){t=R(e[4])},m(e,n){O(e,t,n)},p(e,n){16&n&&j(t,e[4])},d(e){e&&P(t)}}}function ac(e){let t,n,r,i,a,o,s,l,c,u="first"===e[6]&&Zl(e),d="date"===e[11]&&Xl(e),h="email"===e[11]&&Jl(e),p="number"===e[11]&&Ql(e),f="password"===e[11]&&ec(e),g="phone"===e[11]&&tc(e),m="text"===e[11]&&nc(e),v="last"===e[6]&&rc(e);return{c(){u&&u.c(),t=U(),d&&d.c(),n=U(),h&&h.c(),r=U(),p&&p.c(),i=U(),f&&f.c(),a=U(),g&&g.c(),o=U(),m&&m.c(),s=U(),v&&v.c(),l=N()},m(e,w){u&&u.m(e,w),O(e,t,w),d&&d.m(e,w),O(e,n,w),h&&h.m(e,w),O(e,r,w),p&&p.m(e,w),O(e,i,w),f&&f.m(e,w),O(e,a,w),g&&g.m(e,w),O(e,o,w),m&&m.m(e,w),O(e,s,w),v&&v.m(e,w),O(e,l,w),c=!0},p(e,[c]){"first"===e[6]?u?(u.p(e,c),64&c&&fe(u,1)):(u=Zl(e),u.c(),fe(u,1),u.m(t.parentNode,t)):u&&(he(),ge(u,1,1,(()=>{u=null})),pe()),"date"===e[11]?d?d.p(e,c):(d=Xl(e),d.c(),d.m(n.parentNode,n)):d&&(d.d(1),d=null),"email"===e[11]?h?h.p(e,c):(h=Jl(e),h.
1c(),h.m(r.parentNode,r)):h&&(h.d(1),h=null),"number"===e[11]?p?p.p(e,c):(p=Ql(e),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),"password"===e[11]?f?f.p(e,c):(f=ec(e),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null),"phone"===e[11]?g?g.p(e,c):(g=tc(e),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),"text"===e[11]?m?m.p(e,c):(m=nc(e),m.c(),m.m(s.parentNode,s)):m&&(m.d(1),m=null),"last"===e[6]?v?(v.p(e,c),64&c&&fe(v,1)):(v=rc(e),v.c(),fe(v,1),v.m(l.parentNode,l)):v&&(he(),ge(v,1,1,(()=>{v=null})),pe())},i(e){c||(fe(u),fe(v),c=!0)},o(e){ge(u),ge(v),c=!1},d(e){u&&u.d(e),e&&P(t),d&&d.d(e),e&&P(n),h&&h.d(e),e&&P(r),p&&p.d(e),e&&P(i),f&&f.d(e),e&&P(a),g&&g.d(e),e&&P(o),m&&m.d(e),e&&P(s),v&&v.d(e),e&&P(l)}}}function oc(e,t,n){let r,{forceValidityFailure:i=!1}=t,{isFirstInvalidInput:a}=t,{inputClasses:o=""}=t,{key:s}=t,{label:l}=t,{labelClasses:c=""}=t,{labelOrder:u="first"}=t,{onChange:d}=t,{placeholder:h=" "}=t,{isRequired:p=!1}=t,{isInvalid:f=null}=t,{type:g="text"}=t,{value:m=""}=t;return X((()=>{a&&r.focus()})),e.$$set=e=>{"forceValidityFailure"in e&&n(1,i=e.forceValidityFailure),"isFirstInvalidInput"in e&&n(13,a=e.isFirstInvalidInput),"inputClasses"in e&&n(2,o=e.inputClasses),"key"in e&&n(3,s=e.key),"label"in e&&n(4,l=e.label),"labelClasses"in e&&n(5,c=e.labelClasses),"labelOrder"in e&&n(6,u=e.labelOrder),"onChange"in e&&n(7,d=e.onChange),"placeholder"in e&&n(8,h=e.placeholder),"isRequired"in e&&n(9,p=e.isRequired),"isInvalid"in e&&n(10,f=e.isInvalid),"type"in e&&n(11,g=e.type),"value"in e&&n(0,m=e.value)},[m,i,o,s,l,c,u,d,h,p,f,g,r,a,function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=this.value,n(0,m)},function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=this.value,n(0,m)},function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=z(this.value),n(0,m)},function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=this.value,n(0,m)},function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=this.value,n(0,m)},function(e){Q[e?"unshift":"push"]((()=>{r=e,n(12,r)}))},function(){m=this.value,n(0,m)}]}var sc=class extends Se{constructor(e){super(),$e(this,e,oc,ac,_,{forceValidityFailure:1,isFirstInvalidInput:13,inputClasses:2,key:3,label:4,labelClasses:5,labelOrder:6,onChange:7,placeholder:8,isRequired:9,isInvalid:10,type:11,value:0})}},lc=e=>({}),cc=e=>({});function uc(e){let t,n,r,i,a,o,s,l,c,u;function d(t){e[16](t)}let h={forceValidityFailure:e[2],isFirstInvalidInput:e[4],inputClasses:"tw_input-floating dark:tw_input-floating_dark "+(e[5]?"!tw_border-r-0 !tw_rounded-r-none":""),key:e[7],onChange:e[11],label:e[8],labelClasses:"tw_absolute tw_border tw_border-transparent tw_input-floating-label",labelOrder:"last",isRequired:e[6],isInvalid:e[0],type:e[10]};void 0!==e[1]&&(h.value=e[1]),n=new sc({props:h}),Q.push((()=>we(n,"value",d)));let p=e[15]["input-button"],f=E(p,e,e[14],cc);s=new As({props:{dirtyMessage:e[3],showMessage:e[9],type:e[0]?"error":"info"}});let g=e[15].default,m=E(g,e,e[14],null);return{c(){t=L("div"),be(n.$$.fragment),i=U(),f&&f.c(),a=U(),o=L("div"),be(s.$$.fragment),l=U(),m&&m.c(),V(o,"class","tw_w-full"),V(o,"id",c=`${e[7]}-message`),V(t,"class","tw_justify-items-stretch tw_flex tw_input-spacing tw_relative tw_flex-wrap")},m(e,r){O(e,t,r),ye(n,t,null),T(t,i),f&&f.m(t,null),T(t,a),T(t,o),ye(s,o,null),T(o,l),m&&m.m(o,null),u=!0},p(e,[t]){let i={};4&t&&(i.forceValidityFailure=e[2]),16&t&&(i.isFirstInvalidInput=e[4]),32&t&&(i.inputClasses="tw_input-floating dark:tw_input-floating_dark "+(e[5]?"!tw_border-r-0 !tw_rounded-r-none":"")),128&t&&(i.key=e[7]),256&t&&(i.label=e[8]),64&t&&(i.isRequired=e[6]),1&t&&(i.isInvalid=e[0]),1024&t&&(i.type=e[10]),!r&&2&t&&(r=!0,i.value=e[1],ae((()=>r=!1))),n.$set(i),f&&f.p&&(!u||16384&t)&&A(f,p,e,e[14],u?C(p,e[14],t,lc):I(e[14]),cc);let a={};8&t&&(a.dirtyMessage=e[3]),512&t&&(a.showMessage=e[9]),1&t&&(a.type=e[0]?"error":"info"),s.$set(a),m&&m.p&&(!u||16384&t)&&A(m,g,e,e[14],u?C(g,e[14],t,null):I(e[14]),null),(!u||128&t&&c!==(c=`${e[7]}-message`))&&V(o,"id",c)},i(e){u||(fe(n.$$.fragment,e),fe(f,e),fe(s.$$.fragment,e),fe(m,e),u=!0)},o(e){ge(n.$$.fragment,e),ge(f,e),ge(s.$$.fragment,e),ge(m,e),u=!1},d(e){e&&P(t),_e(n),f&&f.d(e),_e(s),m&&m.d(e)}}}function dc(e,t,n){let{$$slots:r={},$$scope:i}=t,{checkValidity:a=null}=t,{forceValidityFailure:o=!1}=t,{message:s=""}=t,{isFirstInvalidInput:l}=t,{hasRightIcon:c=!1}=t,{isRequired:u=!1}=t,{isInvalid:d=!1}=t,{key:h}=t,{label:p}=t,{onChange:f}=t,{showMessage:g}=t,{type:m="text"}=t,{value:v=""}=t;return e.$$set=e=>{"checkValidity"in e&&n(12,a=e.checkValidity),"forceValidityFailure"in e&&n(2,o=e.forceValidityFailure),"message"in e&&n(3,s=e.message),"isFirstInvalidInput"in e&&n(4,l=e.isFirstInvalidInput),"hasRightIcon"in e&&n(5,c=e.hasRightIcon),"isRequired"in e&&n(6,u=e.isRequired),"isInvalid"in e&&n(0,d=e.isInvalid),"key"in e&&n(7,h=e.ke
1y),"label"in e&&n(8,p=e.label),"onChange"in e&&n(13,f=e.onChange),"showMessage"in e&&n(9,g=e.showMessage),"type"in e&&n(10,m=e.type),"value"in e&&n(1,v=e.value),"$$scope"in e&&n(14,i=e.$$scope)},[d,v,o,s,l,c,u,h,p,g,m,function(e){a&&n(0,d=!a(e)),f(e)},a,f,i,r,function(e){v=e,n(1,v)}]}var hc=class extends Se{constructor(e){super(),$e(this,e,dc,uc,_,{checkValidity:12,forceValidityFailure:2,message:3,isFirstInvalidInput:4,hasRightIcon:5,isRequired:6,isInvalid:0,key:7,label:8,onChange:13,showMessage:9,type:10,value:1})}},pc=e=>({}),fc=e=>({});function gc(e){let t,n,r,i,a,o,s,l,c,u;function d(t){e[17](t)}let h={forceValidityFailure:e[2],isFirstInvalidInput:e[3],inputClasses:""+(e[4]?"!tw_border-r-0 !tw_rounded-r-none":""),key:e[7],onChange:e[12],label:e[8],labelClasses:"tw_input-stacked-label",labelOrder:"first",placeholder:e[9],isRequired:e[6],isInvalid:e[0],type:e[11]};void 0!==e[1]&&(h.value=e[1]),n=new sc({props:h}),Q.push((()=>we(n,"value",d)));let p=e[16]["input-button"],f=E(p,e,e[15],fc);s=new As({props:{key:e[7],dirtyMessage:e[5],showMessage:e[10],type:e[0]?"error":"info"}});let g=e[16].default,m=E(g,e,e[15],null);return{c(){t=L("div"),be(n.$$.fragment),i=U(),f&&f.c(),a=U(),o=L("div"),be(s.$$.fragment),l=U(),m&&m.c(),V(o,"class","tw_w-full"),V(o,"id",c=`${e[7]}-message`),V(t,"class","tw_input-spacing tw_flex tw_flex-wrap")},m(e,r){O(e,t,r),ye(n,t,null),T(t,i),f&&f.m(t,null),T(t,a),T(t,o),ye(s,o,null),T(o,l),m&&m.m(o,null),u=!0},p(e,[t]){let i={};4&t&&(i.forceValidityFailure=e[2]),8&t&&(i.isFirstInvalidInput=e[3]),16&t&&(i.inputClasses=""+(e[4]?"!tw_border-r-0 !tw_rounded-r-none":"")),128&t&&(i.key=e[7]),256&t&&(i.label=e[8]),512&t&&(i.placeholder=e[9]),64&t&&(i.isRequired=e[6]),1&t&&(i.isInvalid=e[0]),2048&t&&(i.type=e[11]),!r&&2&t&&(r=!0,i.value=e[1],ae((()=>r=!1))),n.$set(i),f&&f.p&&(!u||32768&t)&&A(f,p,e,e[15],u?C(p,e[15],t,pc):I(e[15]),fc);let a={};128&t&&(a.key=e[7]),32&t&&(a.dirtyMessage=e[5]),1024&t&&(a.showMessage=e[10]),1&t&&(a.type=e[0]?"error":"info"),s.$set(a),m&&m.p&&(!u||32768&t)&&A(m,g,e,e[15],u?C(g,e[15],t,null):I(e[15]),null),(!u||128&t&&c!==(c=`${e[7]}-message`))&&V(o,"id",c)},i(e){u||(fe(n.$$.fragment,e),fe(f,e),fe(s.$$.fragment,e),fe(m,e),u=!0)},o(e){ge(n.$$.fragment,e),ge(f,e),ge(s.$$.fragment,e),ge(m,e),u=!1},d(e){e&&P(t),_e(n),f&&f.d(e),_e(s),m&&m.d(e)}}}function mc(e,t,n){let{$$slots:r={},$$scope:i}=t,{checkValidity:a=null}=t,{forceValidityFailure:o=!1}=t,{isFirstInvalidInput:s}=t,{hasRightIcon:l=!1}=t,{message:c=""}=t,{isRequired:u=!1}=t,{isInvalid:d=!1}=t,{key:h}=t,{label:p}=t,{onChange:f}=t,{placeholder:g}=t,{showMessage:m}=t,{type:v="text"}=t,{value:w=""}=t;return e.$$set=e=>{"checkValidity"in e&&n(13,a=e.checkValidity),"forceValidityFailure"in e&&n(2,o=e.forceValidityFailure),"isFirstInvalidInput"in e&&n(3,s=e.isFirstInvalidInput),"hasRightIcon"in e&&n(4,l=e.hasRightIcon),"message"in e&&n(5,c=e.message),"isRequired"in e&&n(6,u=e.isRequired),"isInvalid"in e&&n(0,d=e.isInvalid),"key"in e&&n(7,h=e.key),"label"in e&&n(8,p=e.label),"onChange"in e&&n(14,f=e.onChange),"placeholder"in e&&n(9,g=e.placeholder),"showMessage"in e&&n(10,m=e.showMessage),"type"in e&&n(11,v=e.type),"value"in e&&n(1,w=e.value),"$$scope"in e&&n(15,i=e.$$scope)},[d,w,o,s,l,c,u,h,p,g,m,v,function(e){a&&n(0,d=!a(e)),f(e)},a,f,i,r,function(e){w=e,n(1,w)}]}var vc=class extends Se{constructor(e){super(),$e(this,e,mc,gc,_,{checkValidity:13,forceValidityFailure:2,isFirstInvalidInput:3,hasRightIcon:4,message:5,isRequired:6,isInvalid:0,key:7,label:8,onChange:14,placeholder:9,showMessage:10,type:11,value:1})}};function wc(e){let t,n,r,i,a,o=e[3].default,s=E(o,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("title"),s&&s.c(),V(n,"d","M0 0h24v24H0z"),V(n,"fill","none"),V(r,"d","M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"viewBox","0 0 24 24"),V(t,"width",e[1]),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){O(e,t,o),T(t,n),T(t,r),T(t,i),s&&s.m(i,null),a=!0},p(e,[n]){s&&s.p&&(!a||4&n)&&A(s,o,e,e[2],a?C(o,e[2],n,null):I(e[2]),null),(!a||1&n)&&V(t,"class",e[0]),(!a||2&n)&&V(t,"height",e[1]),(!a||2&n)&&V(t,"width",e[1])},i(e){a||(fe(s,e),a=!0)},o(e){ge(s,e),a=!1},d(e){e&&P(t),s&&s.d(e)}}}
1function bc(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var yc=class extends Se{constructor(e){super(),$e(this,e,bc,wc,_,{classes:0,size:1})}};function _c(e){var t;let n,r;return n=new e[7]({props:{isFirstInvalidInput:!1,isRequired:!0,key:`kba-custom-question-${null==(t=e[0])?void 0:t.idx}`,label:Ba("customSecurityQuestion"),showMessage:!1,message:Ba("inputRequiredError"),onChange:e[12],type:"text"}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};1&t&&(i.key=`kba-custom-question-${null==(r=e[0])?void 0:r.idx}`),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function kc(e){var t,n;let r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w;a=new yo({props:{key:"securityQuestions"}}),l=new yo({props:{key:"securityQuestionsPrompt"}}),d=new yc({props:{size:"18"}}),p=new e[8]({props:{isFirstInvalidInput:!1,isRequired:!0,key:e[4],label:e[1],onChange:e[11],options:e[2]}});let b=e[3]&&_c(e);function y(t){e[21](t)}let _={isFirstInvalidInput:(null==(t=e[0])?void 0:t.derived.isFirstInvalidInput)||!1,isRequired:!0,key:e[5]||`kba-answer-${null==(n=e[0])?void 0:n.idx}`,label:Ba("securityAnswer"),showMessage:!1,message:Ba("inputRequiredError"),onChange:e[10],type:"text"};return void 0!==e[6]&&(_.value=e[6]),m=new e[7]({props:_}),Q.push((()=>we(m,"value",y))),{c(){r=L("fieldset"),i=L("legend"),be(a.$$.fragment),o=U(),s=L("h2"),be(l.$$.fragment),c=U(),u=L("span"),be(d.$$.fragment),h=U(),be(p.$$.fragment),f=U(),b&&b.c(),g=U(),be(m.$$.fragment),V(i,"class","tw_sr-only"),V(s,"class","dark:tw_secondary-header_dark tw_font-semibold tw_mb-4"),V(u,"class","tw_kba-lock-icon dark:tw_kba-lock-icon_dark"),V(r,"class","tw_kba-fieldset tw_input-spacing dark:tw_kba-fieldset_dark")},m(e,t){O(e,r,t),T(r,i),ye(a,i,null),T(r,o),T(r,s),ye(l,s,null),T(r,c),T(r,u),ye(d,u,null),T(r,h),ye(p,r,null),T(r,f),b&&b.m(r,null),T(r,g),ye(m,r,null),w=!0},p(e,[t]){var n,i;let a={};16&t&&(a.key=e[4]),2&t&&(a.label=e[1]),4&t&&(a.options=e[2]),p.$set(a),e[3]?b?(b.p(e,t),8&t&&fe(b,1)):(b=_c(e),b.c(),fe(b,1),b.m(r,g)):b&&(he(),ge(b,1,1,(()=>{b=null})),pe());let o={};1&t&&(o.isFirstInvalidInput=(null==(n=e[0])?void 0:n.derived.isFirstInvalidInput)||!1),33&t&&(o.key=e[5]||`kba-answer-${null==(i=e[0])?void 0:i.idx}`),!v&&64&t&&(v=!0,o.value=e[6],ae((()=>v=!1))),m.$set(o)},i(e){w||(fe(a.$$.fragment,e),fe(l.$$.fragment,e),fe(d.$$.fragment,e),fe(p.$$.fragment,e),fe(b),fe(m.$$.fragment,e),w=!0)},o(e){ge(a.$$.fragment,e),ge(l.$$.fragment,e),ge(d.$$.fragment,e),ge(p.$$.fragment,e),ge(b),ge(m.$$.fragment,e),w=!1},d(e){e&&P(r),_e(a),_e(l),_e(d),_e(p),b&&b.d(),_e(m)}}}function $c(e,t,n){let r,i,a,o,s,l,c,u,{callback:d}=t,{callbackMetadata:h}=t,{style:p={}}=t,f="stacked"===p.labels?vc:hc,g="stacked"===p.labels?El:kl,m=null,v=!1,w=xe("");S(e,w,(e=>n(6,r=e)));try{u=d.getOutputValue("allowUserDefinedQuestions")}catch(b){console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}return e.$$set=e=>{"callback"in e&&n(15,d=e.callback),"callbackMetadata"in e&&n(0,h=e.callbackMetadata),"style"in e&&n(16,p=e.style)},e.$$.update=()=>{var t,r,p,f;if(1998855&e.$$.dirty){n(18,i=null==(t=null==d?void 0:d.payload)?void 0:t.input),n(19,a=(null==(p=null==(r=null==d?void 0:d.payload)?void 0:r.input)?void 0:p[0].name)||`kba-${null==h?void 0:h.idx}`),n(4,o=a),n(5,s=Array.isArray(i)&&i[1].name),n(1,l=d.getPrompt()),n(2,c=null==(f=d.getPredefinedQuestions())?void 0:f.map(((e,t)=>({text:e,value:`${t}`}))));try{n(20,u=d.getOutputValue("allowUserDefinedQuestions"))}catch(g){console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}c.unshift({text:l,value:""}),u&&(n(17,m=""+(c.length-1)),c.push({text:Ba("provideCustomQuestion"),value:m}))}},[h,l,c,v,o,s,r,f,g,w,function(e){d.setAnswer(e.target.value)},function(e){let t=e.target.value;t===m?(n(3,v=!0),w.set(""),d.setAnswer("")):(n(3,v=!1),d.setQuestion(t))},function(e){let t=e.target.value;d.setQuestion(t)},null,null,d,p,m,i,a,u,function(e){r=e,w.set(r)}]}var Sc=class extends Se{constructor(e){super(),$e(this,e,$c,kc,_,{selfSubmitFunction:13,stepMetadata:14,callback:15,callbackMetadata:0,style:16})}get selfSubmitFunction(){return this.$$.ctx[13]}get stepMetadata(){return this.$$.ctx[14]}};function Ec(e){var t;let n,r;return n=new e[6]({props:{isFirstInvalidInput:(null==(t=e[1])?void 0:t.derived.isFirstInvalidInput)||!1,key:e[3],label:Ba(Va(e[4]||e[2]),null,e[4]),onChange:e[7],type:"text",showMessage:!1,value:"string"==typeof e[5]?e[5]:""}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};
12&t&&(i.isFirstInvalidInput=(null==(r=e[1])?void 0:r.derived.isFirstInvalidInput)||!1),8&t&&(i.key=e[3]),20&t&&(i.label=Ba(Va(e[4]||e[2]),null,e[4])),32&t&&(i.value="string"==typeof e[5]?e[5]:""),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function xc(e){let t,n,r=e[0],i=Ec(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){1&n&&_(r,r=e[0])?(he(),ge(i,1,1,g),pe(),i=Ec(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function Cc(e,t,n){let r,i,a,o,{callback:s}=t,{callbackMetadata:l}=t,{style:c={}}=t,u="stacked"===c.labels?vc:hc;return e.$$set=e=>{"callback"in e&&n(0,s=e.callback),"callbackMetadata"in e&&n(1,l=e.callbackMetadata),"style"in e&&n(10,c=e.style)},e.$$.update=()=>{var t,c;3&e.$$.dirty&&(n(2,r=s.getType()),n(3,i=(null==(c=null==(t=null==s?void 0:s.payload)?void 0:t.input)?void 0:c[0].name)||`name-${null==l?void 0:l.idx}`),n(4,a=s.getPrompt()),n(5,o=null==s?void 0:s.getInputValue()))},[s,l,r,i,a,o,u,function(e){s.setInputValue(e.target.value)},null,null,c]}var Ac=class extends Se{constructor(e){super(),$e(this,e,Cc,xc,_,{selfSubmitFunction:8,stepMetadata:9,callback:0,callbackMetadata:1,style:10})}get selfSubmitFunction(){return this.$$.ctx[8]}get stepMetadata(){return this.$$.ctx[9]}};function Ic(e){let t,n,r,i,a,o=e[4].default,s=E(o,e,e[3],null);return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("title"),s&&s.c(),V(n,"d","M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"),V(n,"fill","none"),V(r,"d","M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 24 24"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){O(e,t,o),T(t,n),T(t,r),T(t,i),s&&s.m(i,null),a=!0},p(e,n){s&&s.p&&(!a||8&n)&&A(s,o,e,e[3],a?C(o,e[3],n,null):I(e[3]),null),(!a||1&n)&&V(t,"class",e[0]),(!a||2&n)&&V(t,"height",e[1]),(!a||2&n)&&V(t,"width",e[1])},i(e){a||(fe(s,e),a=!0)},o(e){ge(s,e),a=!1},d(e){e&&P(t),s&&s.d(e)}}}function Tc(e){let t,n,r,i,a,o=e[4].default,s=E(o,e,e[3],null);return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("title"),s&&s.c(),V(n,"d","M0 0h24v24H0z"),V(n,"fill","none"),V(r,"d","M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 24 24"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){O(e,t,o),T(t,n),T(t,r),T(t,i),s&&s.m(i,null),a=!0},p(e,n){s&&s.p&&(!a||8&n)&&A(s,o,e,e[3],a?C(o,e[3],n,null):I(e[3]),null),(!a||1&n)&&V(t,"class",e[0]),(!a||2&n)&&V(t,"height",e[1]),(!a||2&n)&&V(t,"width",e[1])},i(e){a||(fe(s,e),a=!0)},o(e){ge(s,e),a=!1},d(e){e&&P(t),s&&s.d(e)}}}function Oc(e){let t,n,r,i,a=[Tc,Ic],o=[];function s(e,t){return e[2]?1:0}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function Pc(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t,{visible:s=!1}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"visible"in e&&n(2,s=e.visible),"$$scope"in e&&n(3,i=e.$$scope)},[a,o,s,i,r]}var Mc=class extends Se{constructor(e){super(),$e(this,e,Pc,Oc,_,{classes:0,size:1,visible:2})}};function Lc(e){let t,n=e[17].default,r=E(n,e,e[18],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||262144&i)&&A(r,n,e,e[18],t?C(n,e[18],i,null):I(e[18]),null)},i(e){t||(fe(r,e),t=!0)},o(e){ge(r,e),t=!1},d(e){r&&r.d(e)}}}function Dc(e){let t,n;return t=new yo({props:{key:"showPassword"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Rc(e){let t,n,r="button"===e[12]&&function(e){let t,n,r,i,a;return n=new Mc({props:{classes:"tw_password-icon dark:tw_password-icon_dark",visible:e[8],$$slots:{default:[Dc]},$$scope:{ctx:e}}}),{c(){t=L("button"),be(n.$$.fragment),V(t,"class","tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark"),V(t,"type","button")},m(o,s){O(o,t,s),ye(n,t,null),r=!0,i||(a=F(t,"click",e[14]),i=!0)},p(e,t){let r={};256&t&&(r.visible=e[8]),262144&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n),i=!1,a()}}}(e);return{c(){r&&r.c(),t=N()},m(e,i){r&&r.m(e,i),O(e,t,i),n=!0},p(e,t){"button"===e[12]&&r.p(e,t)},i(e){n||(fe(r),n=!0)},o(e){ge(r),n=!1},d(e){r&&r.d(e),e&&P(t)}}}function Uc(e){let t;return{c(){t=R("Show Password")},m(e,n){O(e,t,n)},d(e){e&&P(t)}}}function Nc(e){let t,n,r,i;t=new e[11]({props:{forceValidityFailure:e[0],isFirstInvalidInput:!1,hasRightIcon:"button"===e[4].showPassword,key:`${e[3]}-confirm`,label:Ba("confirmPassword",null,"Confirm Password"),message:e[10],onChange:e[13],isInvalid:e[1],isRequired:e[2],showMessage:e[6],type:e[9],value:"string"==typeof e[7]?e[7]:"",$$slots:{"input-button":[Rc],default:[Lc]},$$scope:{ctx:e}}});let a="checkbox"===e[12]&&function(e){let t,n,r;return n=new Fs({props:{isFirstInvalidInput:e[5],isInvalid:!1,key:e[3]+e[4].showPassword,onChange:e[14],value:!1,$$slots:{default:[Uc]},$$scope:{ctx:e}}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_w-full tw_input-spacing")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},p(e,t){let r={};
132&t&&(r.isFirstInvalidInput=e[5]),24&t&&(r.key=e[3]+e[4].showPassword),262144&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}(e);return{c(){be(t.$$.fragment),n=U(),a&&a.c(),r=N()},m(e,o){ye(t,e,o),O(e,n,o),a&&a.m(e,o),O(e,r,o),i=!0},p(e,[n]){let r={};1&n&&(r.forceValidityFailure=e[0]),16&n&&(r.hasRightIcon="button"===e[4].showPassword),8&n&&(r.key=`${e[3]}-confirm`),1024&n&&(r.message=e[10]),2&n&&(r.isInvalid=e[1]),4&n&&(r.isRequired=e[2]),64&n&&(r.showMessage=e[6]),512&n&&(r.type=e[9]),128&n&&(r.value="string"==typeof e[7]?e[7]:""),262400&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r),"checkbox"===e[12]&&a.p(e,n)},i(e){i||(fe(t.$$.fragment,e),fe(a),i=!0)},o(e){ge(t.$$.fragment,e),ge(a),i=!1},d(e){_e(t,e),e&&P(n),a&&a.d(e),e&&P(r)}}}function Fc(e,t,n){let r,{$$slots:i={},$$scope:a}=t,{forceValidityFailure:o=!1}=t,{passwordsDoNotMatch:s=!1}=t,{isRequired:l=!1}=t,{key:c}=t,{onChange:u}=t,{resetValue:d}=t,{style:h={}}=t,{isFirstInvalidInput:p}=t,f="stacked"===h.labels?vc:hc,g=h.showPassword,{showMessage:m}=t,v=!1,w="password",b="";return e.$$set=e=>{"forceValidityFailure"in e&&n(0,o=e.forceValidityFailure),"passwordsDoNotMatch"in e&&n(1,s=e.passwordsDoNotMatch),"isRequired"in e&&n(2,l=e.isRequired),"key"in e&&n(3,c=e.key),"onChange"in e&&n(15,u=e.onChange),"resetValue"in e&&n(16,d=e.resetValue),"style"in e&&n(4,h=e.style),"isFirstInvalidInput"in e&&n(5,p=e.isFirstInvalidInput),"showMessage"in e&&n(6,m=e.showMessage),"$$scope"in e&&n(18,a=e.$$scope)},e.$$.update=()=>{98438&e.$$.dirty&&(d&&(n(7,r=void 0),u(r)),n(10,b=s?Ba("passwordConfirmationError",null,"Passwords do not match"):l?Ba("requiredField",null,"This field is required"):""))},[o,s,l,c,h,p,m,r,v,w,b,f,g,function(e){var t;n(7,r=null==(t=e.target)?void 0:t.value),u("string"==typeof r?r:void 0)},function(){n(8,v=!v),n(9,w=v?"text":"password")},u,d,i,a]}var Bc=class extends Se{constructor(e){super(),$e(this,e,Fc,Nc,_,{forceValidityFailure:0,passwordsDoNotMatch:1,isRequired:2,key:3,onChange:15,resetValue:16,style:4,isFirstInvalidInput:5,showMessage:6})}};function Vc(e){let t,n=e[22].default,r=E(n,e,e[23],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||8388608&i)&&A(r,n,e,e[23],t?C(n,e[23],i,null):I(e[23]),null)},i(e){t||(fe(r,e),t=!0)},o(e){ge(r,e),t=!1},d(e){r&&r.d(e)}}}function zc(e){let t,n;return t=new yo({props:{key:"showPassword"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function jc(e){let t,n,r="button"===e[16]&&function(e){let t,n,r,i,a;return n=new Mc({props:{classes:"tw_password-icon dark:tw_password-icon_dark",visible:e[11],$$slots:{default:[zc]},$$scope:{ctx:e}}}),{c(){t=L("button"),be(n.$$.fragment),V(t,"class","tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark"),V(t,"type","button")},m(o,s){O(o,t,s),ye(n,t,null),r=!0,i||(a=F(t,"click",e[19]),i=!0)},p(e,t){let r={};2048&t&&(r.visible=e[11]),8388608&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n),i=!1,a()}}}(e);return{c(){r&&r.c(),t=N()},m(e,i){r&&r.m(e,i),O(e,t,i),n=!0},p(e,t){"button"===e[16]&&r.p(e,t)},i(e){n||(fe(r),n=!0)},o(e){ge(r),n=!1},d(e){r&&r.d(e),e&&P(t)}}}function Hc(e){let t;return{c(){t=R("Show Password")},m(e,n){O(e,t,n)},d(e){e&&P(t)}}}function qc(e){var t;let n,r;return n=new Bc({props:{forceValidityFailure:!1===e[10],passwordsDoNotMatch:!1===e[10],key:e[0],isRequired:e[8].length>0,onChange:e[17],resetValue:e[12],showMessage:!1===e[10],style:e[5],isFirstInvalidInput:(null==(t=e[2])?void 0:t.derived.isFirstInvalidInput)||!1}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};1024&t&&(i.forceValidityFailure=!1===e[10]),1024&t&&(i.passwordsDoNotMatch=!1===e[10]),1&t&&(i.key=e[0]),256&t&&(i.isRequired=e[8].length>0),4096&t&&(i.resetValue=e[12]),1024&t&&(i.showMessage=!1===e[10]),32&t&&(i.style=e[5]),4&t&&(i.isFirstInvalidInput=(null==(r=e[2])?void 0:r.derived.isFirstInvalidInput)||!1),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Kc(e){var t,n,r;let i,a,o,s,l;i=new e[15]({props:{isFirstInvalidInput:(null==(t=e[2])?void 0:t.derived.isFirstInvalidInput)||!1,hasRightIcon:"button"===e[5].showPassword,key:e[0],label:Ba(Va(e[9]),null,e[13]),message:e[7]||(e[4]?Ba("inputRequiredError"):void 0),onChange:e[18],isInvalid:e[3],isRequired:e[4],showMessage:e[6],type:e[14],value:"string"==typeof e[8]?e[8]:"",$$slots:{"input-button":[jc],default:[Vc]},$$scope:{ctx:e}}});let c="checkbox"===e[16]&&function(e){var t;let n,r,i;return r=new Fs({props:{isFirstInvalidInput:(null==(t=e[2])?void 0:t.derived.isFirstInvalidInput)||!1,isInvalid:!1,key:e[0]+e[5].showPassword,onChange:e[19],value:!1,$$slots:{default:[Hc]},$$scope:{ctx:e}}}),{c(){n=L("div"),be(r.$$.fragment),V(n,"class","tw_w-full tw_input-spacing")},m(e,t){O(e,n,t),ye(r,n,null),i=!0},p(e,t){var n;let i={};
14&t&&(i.isFirstInvalidInput=(null==(n=e[2])?void 0:n.derived.isFirstInvalidInput)||!1),33&t&&(i.key=e[0]+e[5].showPassword),8388608&t&&(i.$$scope={dirty:t,ctx:e}),r.$set(i)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){e&&P(n),_e(r)}}}(e),u=(null==(r=null==(n=e[2])?void 0:n.platform)?void 0:r.confirmPassword)&&qc(e);return{c(){be(i.$$.fragment),a=U(),c&&c.c(),o=U(),u&&u.c(),s=N()},m(e,t){ye(i,e,t),O(e,a,t),c&&c.m(e,t),O(e,o,t),u&&u.m(e,t),O(e,s,t),l=!0},p(e,t){var n,r,a;let o={};4&t&&(o.isFirstInvalidInput=(null==(n=e[2])?void 0:n.derived.isFirstInvalidInput)||!1),32&t&&(o.hasRightIcon="button"===e[5].showPassword),1&t&&(o.key=e[0]),8704&t&&(o.label=Ba(Va(e[9]),null,e[13])),144&t&&(o.message=e[7]||(e[4]?Ba("inputRequiredError"):void 0)),8&t&&(o.isInvalid=e[3]),16&t&&(o.isRequired=e[4]),64&t&&(o.showMessage=e[6]),16384&t&&(o.type=e[14]),256&t&&(o.value="string"==typeof e[8]?e[8]:""),8390656&t&&(o.$$scope={dirty:t,ctx:e}),i.$set(o),"checkbox"===e[16]&&c.p(e,t),null!=(a=null==(r=e[2])?void 0:r.platform)&&a.confirmPassword?u?(u.p(e,t),4&t&&fe(u,1)):(u=qc(e),u.c(),fe(u,1),u.m(s.parentNode,s)):u&&(he(),ge(u,1,1,(()=>{u=null})),pe())},i(e){l||(fe(i.$$.fragment,e),fe(c),fe(u),l=!0)},o(e){ge(i.$$.fragment,e),ge(c),ge(u),l=!1},d(e){_e(i,e),e&&P(a),c&&c.d(e),e&&P(o),u&&u.d(e),e&&P(s)}}}function Gc(e){let t,n,r=e[1],i=Kc(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){2&n&&_(r,r=e[1])?(he(),ge(i,1,1,g),pe(),i=Kc(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function Wc(e,t,n){let r,i,a,o,s,{$$slots:l={},$$scope:c}=t,{callback:u}=t,{callbackMetadata:d}=t,{key:h}=t,{isInvalid:p=!1}=t,{isRequired:f=!1}=t,{style:g={}}=t,m="stacked"===g.labels?vc:hc,v=g.showPassword,{showMessage:w}=t,{validationFailure:b=""}=t,y=!1,_=!1,k="",$="password";return e.$$set=e=>{"callback"in e&&n(1,u=e.callback),"callbackMetadata"in e&&n(2,d=e.callbackMetadata),"key"in e&&n(0,h=e.key),"isInvalid"in e&&n(3,p=e.isInvalid),"isRequired"in e&&n(4,f=e.isRequired),"style"in e&&n(5,g=e.style),"showMessage"in e&&n(6,w=e.showMessage),"validationFailure"in e&&n(7,b=e.validationFailure),"$$scope"in e&&n(23,c=e.$$scope)},e.$$.update=()=>{var t,l;3145990&e.$$.dirty&&(n(9,i=u.getType()),n(0,h=(null==(l=null==(t=null==u?void 0:u.payload)?void 0:t.input)?void 0:l[0].name)||`password-${null==d?void 0:d.idx}`),n(13,o=u.getPrompt()),n(8,s=null==u?void 0:u.getInputValue()),n(12,_=!!k&&""===s),n(10,a=void 0!==r?r===s:void 0))},[h,u,d,p,f,g,w,b,s,i,a,y,_,o,$,m,v,function(e){n(20,r=e)},function(e){n(8,s=e.target.value),u.setInputValue(s),n(21,k=String(s))},function(){n(11,y=!y),n(14,$=y?"text":"password")},r,k,l,c]}var Zc=class extends Se{constructor(e){super(),$e(this,e,Wc,Gc,_,{callback:1,callbackMetadata:2,key:0,isInvalid:3,isRequired:4,style:5,showMessage:6,validationFailure:7})}};function Yc(e){let t,n;return t=new Zc({props:{callback:e[0],callbackMetadata:e[1],style:e[2],key:e[3]}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,[n]){let r={};1&n&&(r.callback=e[0]),2&n&&(r.callbackMetadata=e[1]),4&n&&(r.style=e[2]),8&n&&(r.key=e[3]),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Xc(e,t,n){let r,{callback:i}=t,{callbackMetadata:a}=t,{style:o={}}=t;return e.$$set=e=>{"callback"in e&&n(0,i=e.callback),"callbackMetadata"in e&&n(1,a=e.callbackMetadata),"style"in e&&n(2,o=e.style)},e.$$.update=()=>{var t,o;3&e.$$.dirty&&(n(0,i),n(1,a),n(3,r=(null==(o=null==(t=null==i?void 0:i.payload)?void 0:t.input)?void 0:o[0].name)||`password-${null==a?void 0:a.idx}`))},[i,a,o,r,null,null]}var Jc=class extends Se{constructor(e){super(),$e(this,e,Xc,Yc,_,{selfSubmitFunction:4,stepMetadata:5,callback:0,callbackMetadata:1,style:2})}get selfSubmitFunction(){return this.$$.ctx[4]}get stepMetadata(){return this.$$.ctx[5]}};function Qc(e){let t,n,r,i=e[2].default,a=E(i,e,e[1],null);return{c(){t=L("p"),a&&a.c(),V(t,"class",n=`${e[0]} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`)},m(e,n){O(e,t,n),a&&a.m(t,null),r=!0},p(e,[o]){a&&a.p&&(!r||2&o)&&A(a,i,e,e[1],r?C(i,e[1],o,null):I(e[1]),null),(!r||1&o&&n!==(n=`${e[0]} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`))&&V(t,"class",n)},i(e){r||(fe(a,e),r=!0)},o(e){ge(a,e),r=!1},d(e){e&&P(t),a&&a.d(e)}}}function eu(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"$$scope"in e&&n(1,i=e.$$scope)},[a,i,r]}var tu=class extends Se{constructor(e){super(),$e(this,e,eu,Qc,_,{classes:0})}};function nu(e){let t,n,r,i;return t=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"}}),r=new tu({props:{$$slots:{default:[iu]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment),n=U(),be(r.$$.fragment)},m(e,a){ye(t,e,a),O(e,n,a),ye(r,e,a),i=!0},p(e,t){let n={};258&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){i||(fe(t.$$.fragment,e),fe(r.$$.fragment,e),i=!0)},o(e){ge(t.$$.fragment,e),ge(r.$$.fragment,e),i=!1},d(e){_e(t,e),e&&P(n),_e(r,e)}}}function ru(e){let t,n;return t=new tu({props:{$$slots:{default:[au]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};258&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function iu(e){let t;return{c(){t=R(e[1])},m(e,n){O(e,t,n)},p(e,n){2&n&&j(t,e[1])},d(e){e&&P(t)}}}function au(e){let t,n,r,i,a;return t=new Yo({props:{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"}}),{c(){be(t.$$.fragment),n=U(),r=L("span"),i=R(e[1])},m(e,o){ye(t,e,o),O(e,n,o),O(e,r,o),T(r,i),a=!0},p(e,t){(!a||2&t)&&j(i,e[1])},i(e){a||(fe(t.$$.fragment,e),a=!0)},o(e){ge(t.$$.fragment,e),a=!1},d(e){_e(t,e),e&&P(n),e&&P(r)}}}function ou(e){let t,n,r,i,a=[ru,nu],o=[];function s(e,t){var n;return null!=(n=e[0])&&n.inline?0:1}return n=s(e),r=o[n]=a[n](e),{c(){t=L("div"),r.c(),V(t,"class","tw_text-center")},m(e,r){O(e,t,r),o[n].m(t,null),i=!0},p(e,[i]){let l=n;n=s(e),n===l?o[n].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),r=o[n],r?r.p(e,i):(r=o[n]=a[n](e),r.c()),fe(r,1),r.m(t,null))},i(e){i||(fe(r),i=!0)},o(e){ge(r),i=!1},d(e){e&&P(t),o[n].d()}}}
1function su(e,t,n){let r,i,{callback:a}=t,{callbackMetadata:o}=t,{selfSubmitFunction:s=null}=t,{options:l=null}=t;return e.$$set=e=>{"callback"in e&&n(2,a=e.callback),"callbackMetadata"in e&&n(3,o=e.callbackMetadata),"selfSubmitFunction"in e&&n(6,s=e.selfSubmitFunction),"options"in e&&n(0,l=e.options)},e.$$.update=()=>{204&e.$$.dirty&&(n(2,a),n(7,i),n(3,o),n(6,s),n(1,r=a.getMessage()),clearTimeout(i),n(7,i=setTimeout((()=>{o&&n(3,o.derived.isReadyForSubmission=!0,o),s&&s()}),a.getWaitTime())))},[l,r,a,o,{},null,s,i]}var lu=class extends Se{constructor(e){super(),$e(this,e,su,ou,_,{style:4,stepMetadata:5,callback:2,callbackMetadata:3,selfSubmitFunction:6,options:0})}get style(){return this.$$.ctx[4]}get stepMetadata(){return this.$$.ctx[5]}};function cu(e){let t;return{c(){t=R(e[0])},m(e,n){O(e,t,n)},p(e,n){1&n&&j(t,e[0])},d(e){e&&P(t)}}}function uu(e){let t,n,r,i,a;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"}}),i=new tu({props:{$$slots:{default:[cu]},$$scope:{ctx:e}}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),be(i.$$.fragment),V(t,"class","tw_text-center"),V(t,"aria-live","assertive")},m(e,o){O(e,t,o),ye(n,t,null),T(t,r),ye(i,t,null),a=!0},p(e,[t]){let n={};65&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i(e){a||(fe(n.$$.fragment,e),fe(i.$$.fragment,e),a=!0)},o(e){ge(n.$$.fragment,e),ge(i.$$.fragment,e),a=!1},d(e){e&&P(t),_e(n),_e(i)}}}function du(e,t,n){let r,{callback:i}=t;return e.$$set=e=>{"callback"in e&&n(5,i=e.callback)},e.$$.update=()=>{32&e.$$.dirty&&n(0,r=`${Ba("redirectingTo")} ${new URL(i.getRedirectUrl()).hostname}`)},[r,null,null,null,{},i]}var hu=class extends Se{constructor(e){super(),$e(this,e,du,uu,_,{callbackMetadata:1,selfSubmitFunction:2,stepMetadata:3,style:4,callback:5})}get callbackMetadata(){return this.$$.ctx[1]}get selfSubmitFunction(){return this.$$.ctx[2]}get stepMetadata(){return this.$$.ctx[3]}get style(){return this.$$.ctx[4]}};function pu(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),r=D("path"),V(n,"d","M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"),V(r,"d","M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"class",e[0]),V(t,"fill","currentColor"),V(t,"viewBox","0 0 16 18")},m(e,i){O(e,t,i),T(t,n),T(t,r)},p(e,[n]){2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1]),1&n&&V(t,"class",e[0])},i:g,o:g,d(e){e&&P(t)}}}function fu(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var gu=class extends Se{constructor(e){super(),$e(this,e,fu,pu,_,{classes:0,size:1})}};function mu(e){let t,n;return{c(){t=D("svg"),n=D("path"),V(n,"d","M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625
1h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[1]),V(t,"height",e[1]),V(t,"fill","currentColor"),V(t,"class",e[0]),V(t,"viewBox","0 0 18 18")},m(e,r){O(e,t,r),T(t,n)},p(e,[n]){2&n&&V(t,"width",e[1]),2&n&&V(t,"height",e[1]),1&n&&V(t,"class",e[0])},i:g,o:g,d(e){e&&P(t)}}}function vu(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var wu=class extends Se{constructor(e){super(),$e(this,e,vu,mu,_,{classes:0,size:1})}};function bu(e){let t,n,r,i,a,o,s;return{c(){t=D("svg"),n=D("g"),r=D("path"),i=D("path"),a=D("path"),o=D("path"),s=D("path"),V(r,"fill","#EA4335"),V(r,"d","M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"),V(i,"fill","#4285F4"),V(i,"d","M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"),V(a,"fill","#FBBC05"),V(a,"d","M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"),V(o,"fill","#34A853"),V(o,"d","M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"),V(s,"fill","none"),V(s,"d","M0 0h48v48H0z"),V(t,"version","1.1"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 56 56"),V(t,"class",e[0])},m(e,l){O(e,t,l),T(t,n),T(n,r),T(n,i),T(n,a),T(n,o),T(n,s)},p(e,[n]){2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1]),1&n&&V(t,"class",e[0])},i:g,o:g,d(e){e&&P(t)}}}function yu(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var _u=class extends Se{constructor(e){super(),$e(this,e,yu,bu,_,{classes:0,size:1})}};function ku(e,t,n){let r=e.slice();return r[10]=t[n],r}function $u(e){let t,n;function r(){return e[9](e[10])}return t=new ts({props:{classes:"tw_button-google dark:tw_button-google_dark",type:"button",width:"auto",onClick:r,$$slots:{default:[xu]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(n,i){e=n;let a={};2&i&&(a.onClick=r),8194&i&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Su(e){let t,n;function r(){return e[8](e[10])}return t=new ts({props:{classes:"tw_button-facebook dark:tw_button-facebook_dark",type:"button",width:"auto",onClick:r,$$slots:{default:[Cu]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(n,i){e=n;let a={};2&i&&(a.onClick=r),8194&i&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Eu(e){let t,n;function r(){return e[7](e[10])}return t=new ts({props:{classes:"tw_button-apple dark:tw_button-apple_dark",type:"button",width:"auto",onClick:r,$$slots:{default:[Au]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(n,i){e=n;let a={};2&i&&(a.onClick=r),8194&i&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function xu(e){let t,n,r,i,a,o,s=e[10].text+"";return t=new _u({props:{classes:"tw_inline-block tw_fill-current"}}),r=new yo({props:{key:"continueWith"}}),{c(){be(t.$$.fragment),n=U(),be(r.$$.fragment),i=U(),a=R(s)},m(e,s){ye(t,e,s),O(e,n,s),ye(r,e,s),O(e,i,s),O(e,a,s),o=!0},p(e,t){(!o||2&t)&&s!==(s=e[10].text+"")&&j(a,s)},i(e){o||(fe(t.$$.fragment,e),fe(r.$$.fragment,e),o=!0)},o(e){ge(t.$$.fragment,e),ge(r.$$.fragment,e),o=!1},d(e){_e(t,e),e&&P(n),_e(r,e),e&&P(i),e&&P(a)}}}function Cu(e){let t,n,r,i,a,o,s=e[10].text+"";return t=new wu({props:{classes:"tw_inline-block tw_fill-current"}}),r=new yo({props:{key:"continueWith"}}),{c(){be(t.$$.fragment),n=U(),be(r.$$.fragment),i=U(),a=R(s)},m(e,s){ye(t,e,s),O(e,n,s),ye(r,e,s),O(e,i,s),O(e,a,s),o=!0},p(e,t){(!o||2&t)&&s!==(s=e[10].text+"")&&j(a,s)},i(e){o||(fe(t.$$.fragment,e),fe(r.$$.fragment,e),o=!0)},o(e){ge(t.$$.fragment,e),ge(r.$$.fragment,e),o=!1},d(e){_e(t,e),e&&P(n),_e(r,e),e&&P(i),e&&P(a)}}}function Au(e){let t,n,r,i,a,o,s=e[10].text+"";return t=new gu({props:{classes:"tw_inline-block tw_fill-current"}}),r=new yo({props:{key:"continueWith"}}
1),{c(){be(t.$$.fragment),n=U(),be(r.$$.fragment),i=U(),a=R(s)},m(e,s){ye(t,e,s),O(e,n,s),ye(r,e,s),O(e,i,s),O(e,a,s),o=!0},p(e,t){(!o||2&t)&&s!==(s=e[10].text+"")&&j(a,s)},i(e){o||(fe(t.$$.fragment,e),fe(r.$$.fragment,e),o=!0)},o(e){ge(t.$$.fragment,e),ge(r.$$.fragment,e),o=!1},d(e){_e(t,e),e&&P(n),_e(r,e),e&&P(i),e&&P(a)}}}function Iu(e){let t,n,r,i,a,o,s,l=[Eu,Su,$u],c=[];function u(e,i){return 2&i&&(t=null),2&i&&(n=null),2&i&&(r=null),null==t&&(t=!!e[10].text.toUpperCase().includes("APPLE")),t?0:(null==n&&(n=!!e[10].text.toUpperCase().includes("FACEBOOK")),n?1:(null==r&&(r=!!e[10].text.toUpperCase().includes("GOOGLE")),r?2:-1))}return~(i=u(e,-1))&&(a=c[i]=l[i](e)),{c(){a&&a.c(),o=N()},m(e,t){~i&&c[i].m(e,t),O(e,o,t),s=!0},p(e,t){let n=i;i=u(e,t),i===n?~i&&c[i].p(e,t):(a&&(he(),ge(c[n],1,1,(()=>{c[n]=null})),pe()),~i?(a=c[i],a?a.p(e,t):(a=c[i]=l[i](e),a.c()),fe(a,1),a.m(o.parentNode,o)):a=null)},i(e){s||(fe(a),s=!0)},o(e){ge(a),s=!1},d(e){~i&&c[i].d(e),e&&P(o)}}}function Tu(e){let t,n;return t=new Ll({props:{num:1,$$slots:{default:[Iu]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};8194&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Ou(e){let t,n;return t=new Ll({props:{num:1,$$slots:{default:[Pu]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Pu(e){let t;return{c(){t=L("hr"),V(t,"class","tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark")},m(e,n){O(e,t,n)},p:g,d(e){e&&P(t)}}}function Mu(e){let t,n,r,i=e[1],a=[];for(let l=0;l<i.length;l+=1)a[l]=Tu(ku(e,i,l));let o=e=>ge(a[e],1,1,(()=>{a[e]=null})),s=e[0]&&e[0].derived.numOfCallbacks>1&&Ou(e);return{c(){for(let e=0;e<a.length;e+=1)a[e].c();t=U(),s&&s.c(),n=N()},m(e,i){for(let t=0;t<a.length;t+=1)a[t].m(e,i);O(e,t,i),s&&s.m(e,i),O(e,n,i),r=!0},p(e,[r]){if(6&r){let n;for(i=e[1],n=0;n<i.length;n+=1){let o=ku(e,i,n);a[n]?(a[n].p(o,r),fe(a[n],1)):(a[n]=Tu(o),a[n].c(),fe(a[n],1),a[n].m(t.parentNode,t))}for(he(),n=i.length;n<a.length;n+=1)o(n);pe()}e[0]&&e[0].derived.numOfCallbacks>1?s?1&r&&fe(s,1):(s=Ou(e),s.c(),fe(s,1),s.m(n.parentNode,n)):s&&(he(),ge(s,1,1,(()=>{s=null})),pe())},i(e){if(!r){for(let e=0;e<i.length;e+=1)fe(a[e]);fe(s),r=!0}},o(e){a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)ge(a[t]);ge(s),r=!1},d(e){M(a,e),e&&P(t),s&&s.d(e),e&&P(n)}}}function Lu(e,t,n){let r,{callback:i}=t,{callbackMetadata:a}=t,{selfSubmitFunction:o=null}=t,{stepMetadata:s}=t;function l(e){i.setProvider(e),a&&n(3,a.derived.isReadyForSubmission=!0,a),o&&o()}return e.$$set=e=>{"callback"in e&&n(5,i=e.callback),"callbackMetadata"in e&&n(3,a=e.callbackMetadata),"selfSubmitFunction"in e&&n(6,o=e.selfSubmitFunction),"stepMetadata"in e&&n(0,s=e.stepMetadata)},e.$$.update=()=>{if(32&e.$$.dirty){let e=i.getProviders().filter((e=>"localAuthentication"===e.provider)),t=i.getProviders().filter((e=>"localAuthentication"!==e.provider));e.length>0&&i.setProvider("localAuthentication"),n(1,r=t.map((e=>({value:e.provider,text:e.uiConfig.buttonDisplayName}))))}},[s,r,l,a,{},i,o,e=>l(e.value),e=>l(e.value),e=>l(e.value)]}var Du=class extends Se{constructor(e){super(),$e(this,e,Lu,Mu,_,{style:4,callback:5,callbackMetadata:3,selfSubmitFunction:6,stepMetadata:0})}get style(){return this.$$.ctx[4]}};function Ru(e,t,n){let r=e.slice();return r[11]=t[n],r}function Uu(e,t,n){let r=e.slice();return r[8]=t[n],r}function Nu(e){let t,n,r,i,a,o,s;r=new yo({props:{key:e[1]}});let l=e[3],c=[];for(let u=0;u<l.length;u+=1)c[u]=Bu(Ru(e,l,u));return{c(){t=L("div"),n=L("p"),be(r.$$.fragment),i=U(),a=L("ul");for(let e=0;e<c.length;e+=1)c[e].c();V(n,"class","tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"),V(a,"class","tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"),V(t,"class","tw_input-policies tw_w-full"),V(t,"id",o=""+(e[0]?`${e[0]}-message`:""))},m(e,o){O(e,t,o),T(t,n),ye(r,n,null),T(t,i),T(t,a);for(let t=0;t<c.length;t+=1)c[t].m(a,null);s=!0},p(e,n){let i={};if(2&n&&(i.key=e[1]),r.$set(i),8&n){let t;for(l=e[3],t=0;t<l.length;t+=1){let r=Ru(e,l,t);c[t]?c[t].p(r,n):(c[t]=Bu(r),c[t].c(),c[t].m(a,null))}for(;t<c.length;t+=1)c[t].d(1);c.length=l.length}(!s||1&n&&o!==(o=""+(e[0]?`${e[0]}-message`:"")))&&V(t,"id",o)},i(e){s||(fe(r.$$.fragment,e),s=!0)},o(e){ge(r.$$.fragment,e),s=!1},d(e){e&&P(t),_e(r),M(c,e)}}}function Fu(e){let t,n,r,i,a,o,s;r=new yo({props:{key:e[1]}});let l=e[4],c=[];for(let u=0;u<l.length;u+=1)c[u]=Vu(Uu(e,l,u));return{c(){t=L("div"),n=L("p"),be(r.$$.fragment),i=U(),a=L("ul");for(let e=0;e<c.length;e+=1)c[e].c();V(n,"class","tw_text-error-dark dark:tw_text-error-light tw_w-full"),V(a,"class","tw_text-error-dark dark:tw_text-error-light tw_w-full"),V(t,"class","tw_input-policies tw_w-full"),V(t,"id",o=""+(e[0]?`${e[0]}-message`:""))},m(e,o){O(e,t,o),T(t,n),ye(r,n,null),T(t,i),T(t,a);for(let t=0;t<c.length;t+=1)c[t].m(a,null);s=!0},p(e,n){let i={};if(2&n&&(i.key=e[1]),r.$set(i),16&n){let t;for(l=e[4],t=0;t<l.length;t+=1){let r=Uu(e,l,t);c[t]?c[t].p(r,n):(c[t]=Vu(r),c[t].c(),c[t].m(a,null))}for(;t<c.length;t+=1)c[t].d(1);c.length=l.length}(!s||1&n&&o!==(o=""+(e[0]?`${e[0]}-message`:"")))&&V(t,"id",o)},i(e){s||(fe(r.$$.fragment,e),s=!0)},o(e){ge(r.$$.fragment,e),s=!1},d(e){e&&P(t),_e(r),M(c,e)}}}function Bu(e){let t,n,r=e[11].message+"";return{c(){t=L("li"),n=R(r),V(t,"class","tw_list-disc")},m(e,r){O(e,t,r),T(t,n)},p(e,t){8&t&&r!==(r=e[11].message+"")&&j(n,r)},d(e){e&&P(t)}}}function Vu(e){let t,n,r=e[8].message+"";return{c(){t=L("li"),n=R(r),V(t,"class","tw_list-disc")},m(e,r){O(e,t,r),T(t,n)},p(e,t){16&t&&r!==(r=e[8].message+"")&&j(n,r)},d(e){e&&P(t)}}}function zu(e){let t,n,r,i,a=[Fu,Nu],o=[];function s(e,t){return e[4].length?0:e[2]&&e[3].length?1:-1}return~(t=s(e))&&(n=o[t]=a[t](e)),{c(){n&&n.c(),r=N()},m(e,n){~t&&o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?~t&&o[t].p(e,i):(n&&(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe()),~t?(n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r)):n=null)},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){~t&&o[t].d(e),e&&P(r)}}}function ju(e,t,n){let{callback:r}=t,{key:i}=t,{label:a}=t,{messageKey:o}=t,{showPolicies:s=!1}=t,l=ys(r,a),c=_s(r.getPolicies()),u=l.reduce(((e,t)=>e=e.concat(t.restructured)),[]);return e.$$set=e=>{"callback"in e&&n(5,r=e.callback),"key"in e&&n(0,i=e.key),"label"in e&&n(6,a=e.label),"messageKey"in e&&n(1,o=e.messageKey),"showPol
1icies"in e&&n(2,s=e.showPolicies)},e.$$.update=()=>{224&e.$$.dirty&&(n(7,l=ys(r,a)),n(3,c=_s(r.getPolicies())),n(4,u=l.reduce(((e,t)=>e=e.concat(t.restructured)),[])))},[i,o,s,c,u,r,a,l]}var Hu=class extends Se{constructor(e){super(),$e(this,e,ju,zu,_,{callback:5,key:0,label:6,messageKey:1,showPolicies:2})}};function qu(e){let t,n;return t=new Hu({props:{callback:e[0],key:e[3],label:e[2],messageKey:"valueRequirements"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};1&n&&(r.callback=e[0]),8&n&&(r.key=e[3]),4&n&&(r.label=e[2]),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Ku(e){var t;let n,r;return n=new e[9]({props:{isFirstInvalidInput:(null==(t=e[1])?void 0:t.derived.isFirstInvalidInput)||!1,key:e[3],label:Ba(e[5],null,e[2]),message:e[4]?Ba("inputRequiredError"):void 0,onChange:e[10],isRequired:e[4],isInvalid:e[8],type:e[7],showMessage:!!e[8],value:e[6],$$slots:{default:[qu]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};2&t&&(i.isFirstInvalidInput=(null==(r=e[1])?void 0:r.derived.isFirstInvalidInput)||!1),8&t&&(i.key=e[3]),36&t&&(i.label=Ba(e[5],null,e[2])),16&t&&(i.message=e[4]?Ba("inputRequiredError"):void 0),16&t&&(i.isRequired=e[4]),256&t&&(i.isInvalid=e[8]),128&t&&(i.type=e[7]),256&t&&(i.showMessage=!!e[8]),64&t&&(i.value=e[6]),65549&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Gu(e){let t,n,r=e[0],i=Ku(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){1&n&&_(r,r=e[0])?(he(),ge(i,1,1,g),pe(),i=Ku(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function Wu(e,t,n){let r,i,a,o,s,l,c,u,d,{callback:h}=t,{callbackMetadata:p}=t,{style:f={}}=t,g="stacked"===f.labels?vc:hc;return e.$$set=e=>{"callback"in e&&n(0,h=e.callback),"callbackMetadata"in e&&n(1,p=e.callbackMetadata),"style"in e&&n(13,f=e.style)}
1,e.$$.update=()=>{var t,f;49159&e.$$.dirty&&(n(3,r=(null==(f=null==(t=null==h?void 0:h.payload)?void 0:t.input)?void 0:f[0].name)||`password-${null==p?void 0:p.idx}`),n(4,i=ks(h)),n(5,a=h.getOutputByName("name","")),n(14,o=h.getPolicies()),n(6,s=null==h?void 0:h.getInputValue()),n(2,l=h.getPrompt()),n(7,c=function(e){let t=null==e?void 0:e.value;if("object"!=typeof t)return"text";let n=null==t?void 0:t.policyRequirements;return Array.isArray(n)?n.includes("VALID_EMAIL_ADDRESS_FORMAT")?"email":(n.includes("VALID_USERNAME"),"text"):"text"}(o)),n(15,u=ys(h,l)),n(8,d=!!u.length))},[h,p,l,r,i,a,s,c,d,g,function(e){h.setInputValue(e.target.value)},null,null,f,o,u]}var Zu=class extends Se{constructor(e){super(),$e(this,e,Wu,Gu,_,{selfSubmitFunction:11,stepMetadata:12,callback:0,callbackMetadata:1,style:13})}get selfSubmitFunction(){return this.$$.ctx[11]}get stepMetadata(){return this.$$.ctx[12]}};function Yu(e){let t,n,r,i=e[4].default,a=E(i,e,e[3],null);return{c(){t=L("a"),a&&a.c(),V(t,"class",n=`${e[0]} tw_link dark:tw_link_dark`),V(t,"href",e[1]),V(t,"target",e[2])},m(e,n){O(e,t,n),a&&a.m(t,null),r=!0},p(e,[o]){a&&a.p&&(!r||8&o)&&A(a,i,e,e[3],r?C(i,e[3],o,null):I(e[3]),null),(!r||1&o&&n!==(n=`${e[0]} tw_link dark:tw_link_dark`))&&V(t,"class",n),(!r||2&o)&&V(t,"href",e[1]),(!r||4&o)&&V(t,"target",e[2])},i(e){r||(fe(a,e),r=!0)},o(e){ge(a,e),r=!1},d(e){e&&P(t),a&&a.d(e)}}}function Xu(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{href:o}=t,{target:s="_self"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"href"in e&&n(1,o=e.href),"target"in e&&n(2,s=e.target),"$$scope"in e&&n(3,i=e.$$scope)},[a,o,s,i,r]}var Ju=class extends Se{constructor(e){super(),$e(this,e,Xu,Yu,_,{classes:0,href:1,target:2})}};function Qu(e){let t;return{c(){t=L("p"),t.innerHTML="Error: Configuration is missing <code>termsAndConditions</code> URL.",V(t,"class","tw_text-error-dark dark:tw_text-error-light tw_input-spacing")},m(e,n){O(e,t,n)},p:g,i:g,o:g,d(e){e&&P(t)}}}function ed(e){var t,n;let r,i,a,o;return r=new Ju({props:{classes:"tw_block tw_mb-4",href:null==(t=e[2])?void 0:t.termsAndConditions,target:"_blank",$$slots:{default:[td]},$$scope:{ctx:e}}}),a=new e[3]({props:{isFirstInvalidInput:(null==(n=e[0])?void 0:n.derived.isFirstInvalidInput)||!1,key:e[1],onChange:e[4],value:!1,$$slots:{default:[nd]},$$scope:{ctx:e}}}),{c(){be(r.$$.fragment),i=U(),be(a.$$.fragment)},m(e,t){ye(r,e,t),O(e,i,t),ye(a,e,t),o=!0},p(e,t){var n,i;let o={};4&t&&(o.href=null==(n=e[2])?void 0:n.termsAndConditions),512&t&&(o.$$scope={dirty:t,ctx:e}),r.$set(o);let s={};1&t&&(s.isFirstInvalidInput=(null==(i=e[0])?void 0:i.derived.isFirstInvalidInput)||!1),2&t&&(s.key=e[1]),512&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(fe(r.$$.fragment,e),fe(a.$$.fragment,e),o=!0)},o(e){ge(r.$$.fragment,e),ge(a.$$.fragment,e),o=!1},d(e){_e(r,e),e&&P(i),_e(a,e)}}}function td(e){let t,n=Ba("termsAndConditionsLinkText")+"";return{c(){t=R(n)},m(e,n){O(e,t,n)},p:g,d(e){e&&P(t)}}}function nd(e){let t,n;return t=new yo({props:{key:"termsAndConditions"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function rd(e){let t,n,r,i,a=[ed,Qu],o=[];function s(e,t){var n;return null!=(n=e[2])&&n.termsAndConditions?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function id(e,t,n){let r;S(e,io,(e=>n(2,r=e)));let i,{style:a={}}=t,{callback:o}=t,{callbackMetadata:s}=t,l="standard"===a.checksAndRadios?js:Ds;return e.$$set=e=>{"style"in e&&n(7,a=e.style),"callback"in e&&n(8,o=e.callback),"callbackMetadata"in e&&n(0,s=e.callbackMetadata)},e.$$.update=()=>{var t,r;257&e.$$.dirty&&n(1,i=(null==(r=null==(t=null==o?void 0:o.payload)?void 0:t.input)?void 0:r[0].name)||`terms-${null==s?void 0:s.idx}`)},[s,i,r,l,function(e){o.setAccepted(e.target.checked)},null,null,a,o]}var ad=class extends Se{constructor(e){super(),$e(this,e,id,rd,_,{selfSubmitFunction:5,stepMetadata:6,style:7,callback:8,callbackMetadata:0})}get selfSubmitFunction(){return this.$$.ctx[5]}get stepMetadata(){return this.$$.ctx[6]}};function od(e){let t,n;return t=new Go({props:{id:"",needsFocus:!1,type:e[1],$$slots:{default:[ld]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};2&n&&(r.type=e[1]),257&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function sd(e){let t,n;return t=new tu({props:{classes:e[0].length<100?"tw_font-bold tw_mt-6":"tw_mt-6",$$slots:{default:[cd]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};1&n&&(r.classes=e[0].length<100?"tw_font-bold tw_mt-6":"tw_mt-6"),257&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ld(e){let t;return{c(){t=R(e[0])},m(e,n){O(e,t,n)},p(e,n){1&n&&j(t,e[0])},d(e){e&&P(t)}}}function cd(e){let t,n;return{c(){t=new K(!1),n=N(),t.a=n},m(r,i){t.m(e[0],r,i),O(r,n,i)},p(e,n){1&n&&t.p(e[0])},d(e){e&&P(n),e&&t.d()}}}function ud(e){let t,n,r,i,a=[sd,od],o=[];function s(e,t){return"info"===e[1]?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}
1function dd(e,t,n){let{callback:r}=t,i=r.getMessage(),a=La(i),o="info";return e.$$set=e=>{"callback"in e&&n(6,r=e.callback)},e.$$.update=()=>{192&e.$$.dirty&&(n(7,i=r.getMessage()),n(0,a=La(i)),n(1,o=function(e){switch(e){case"0":default:return"info";case"1":return"warning";case"2":return"error"}}(r.getMessageType())))},[a,o,null,null,null,{},r,i]}var hd=class extends Se{constructor(e){super(),$e(this,e,dd,ud,_,{callbackMetadata:2,selfSubmitFunction:3,stepMetadata:4,style:5,callback:6})}get callbackMetadata(){return this.$$.ctx[2]}get selfSubmitFunction(){return this.$$.ctx[3]}get stepMetadata(){return this.$$.ctx[4]}get style(){return this.$$.ctx[5]}};function pd(e){let t;return{c(){t=L("p"),t.textContent=`Unknown callback encountered: ${e[0]}. Please contact support.`,V(t,"class","tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing")},m(e,n){O(e,t,n)},p:g,i:g,o:g,d(e){e&&P(t)}}}function fd(e,t,n){let{callback:r}=t,i=r.getType();return e.$$set=e=>{"callback"in e&&n(5,r=e.callback)},[i,null,null,null,{},r]}var gd=class extends Se{constructor(e){super(),$e(this,e,fd,pd,_,{callbackMetadata:1,selfSubmitFunction:2,stepMetadata:3,style:4,callback:5})}get callbackMetadata(){return this.$$.ctx[1]}get selfSubmitFunction(){return this.$$.ctx[2]}get stepMetadata(){return this.$$.ctx[3]}get style(){return this.$$.ctx[4]}};function md(e){let t,n;return t=new Hu({props:{callback:e[0],label:e[3],messageKey:"passwordRequirements",showPolicies:!0}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};1&n&&(r.callback=e[0]),8&n&&(r.label=e[3]),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function vd(e){let t,n;return t=new Zc({props:{callback:e[0],callbackMetadata:e[1],isInvalid:e[5],isRequired:e[6],key:e[4],showMessage:e[5],style:e[2],$$slots:{default:[md]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};1&n&&(r.callback=e[0]),2&n&&(r.callbackMetadata=e[1]),32&n&&(r.isInvalid=e[5]),16&n&&(r.key=e[4]),32&n&&(r.showMessage=e[5]),4&n&&(r.style=e[2]),1033&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function wd(e){let t,n,r=e[0],i=vd(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){1&n&&_(r,r=e[0])?(he(),ge(i,1,1,g),pe(),i=vd(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function bd(e,t,n){let r,i,a,o,{callback:s}=t,{callbackMetadata:l}=t,{style:c={}}=t,u=ks(s);return e.$$set=e=>{"callback"in e&&n(0,s=e.callback),"callbackMetadata"in e&&n(1,l=e.callbackMetadata),"style"in e&&n(2,c=e.style)},e.$$.update=()=>{var t,c;523&e.$$.dirty&&(n(4,r=(null==(c=null==(t=null==s?void 0:s.payload)?void 0:t.input)?void 0:c[0].name)||`password-${null==l?void 0:l.idx}`),n(3,a=s.getPrompt()),n(9,o=ys(s,a)),n(5,i=!!o.length))},[s,l,c,a,r,i,u,null,null,o]}var yd=class extends Se{constructor(e){super(),$e(this,e,bd,wd,_,{selfSubmitFunction:7,stepMetadata:8,callback:0,callbackMetadata:1,style:2})}get selfSubmitFunction(){return this.$$.ctx[7]}get stepMetadata(){return this.$$.ctx[8]}};function _d(e){let t,n;return t=new Hu({props:{callback:e[0],key:e[4],label:e[2],messageKey:"usernameRequirements"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};1&n&&(r.callback=e[0]),16&n&&(r.key=e[4]),4&n&&(r.label=e[2]),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function kd(e){var t;let n,r;return n=new e[8]({props:{isFirstInvalidInput:(null==(t=e[1])?void 0:t.derived.isFirstInvalidInput)||!1,isRequired:e[6],isInvalid:e[5],key:e[4],label:Ba(Va(e[3]),null,e[2]),message:e[6]?Ba("inputRequiredError"):void 0,onChange:e[9],showMessage:!1,type:"text",value:"string"==typeof e[7]?e[7]:"",$$slots:{default:[_d]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};2&t&&(i.isFirstInvalidInput=(null==(r=e[1])?void 0:r.derived.isFirstInvalidInput)||!1),64&t&&(i.isRequired=e[6]),32&t&&(i.isInvalid=e[5]),16&t&&(i.key=e[4]),12&t&&(i.label=Ba(Va(e[3]),null,e[2])),64&t&&(i.message=e[6]?Ba("inputRequiredError"):void 0),128&t&&(i.value="string"==typeof e[7]?e[7]:""),16405&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function $d(e){let t,n,r=e[0],i=kd(e);return{c(){i.c(),t=N()},m(e,r){i.m(e,r),O(e,t,r),n=!0},p(e,[n]){1&n&&_(r,r=e[0])?(he(),ge(i,1,1,g),pe(),i=kd(e),i.c(),fe(i,1),i.m(t.parentNode,t)):i.p(e,n)},i(e){n||(fe(i),n=!0)},o(e){ge(i),n=!1},d(e){e&&P(t),i.d(e)}}}function Sd(e,t,n){let r,i,a,o,s,l,c,{callback:u}=t,{callbackMetadata:d}=t,{style:h={}}=t,p="stacked"===h.labels?vc:hc;return e.$$set=e=>{"callback"in e&&n(0,u=e.callback),"callbackMetadata"in e&&n(1,d=e.callbackMetadata),"style"in e&&n(12,h=e.style)}
1,e.$$.update=()=>{var t,h;8199&e.$$.dirty&&(n(3,r=u.getType()),n(4,i=(null==(h=null==(t=null==u?void 0:u.payload)?void 0:t.input)?void 0:h[0].name)||`validated-name=${null==d?void 0:d.idx}`),n(6,o=ks(u)),n(2,s=u.getPrompt()),n(7,l=null==u?void 0:u.getInputValue()),n(13,c=ys(u,s)),n(5,a=!!c.length))},[u,d,s,r,i,a,o,l,p,function(e){u.setInputValue(e.target.value)},null,null,h,c]}var Ed=class extends Se{constructor(e){super(),$e(this,e,Sd,$d,_,{selfSubmitFunction:10,stepMetadata:11,callback:0,callbackMetadata:1,style:12})}get selfSubmitFunction(){return this.$$.ctx[10]}get stepMetadata(){return this.$$.ctx[11]}};function xd(e){let t,n,r,i,a;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"}}),i=new tu({props:{$$slots:{default:[Cd]},$$scope:{ctx:e}}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),be(i.$$.fragment),V(t,"class","tw_text-center tw_w-full tw_py-4")},m(e,o){O(e,t,o),ye(n,t,null),T(t,r),ye(i,t,null),a=!0},p(e,t){let n={};128&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i(e){a||(fe(n.$$.fragment,e),fe(i.$$.fragment,e),a=!0)},o(e){ge(n.$$.fragment,e),ge(i.$$.fragment,e),a=!1},d(e){e&&P(t),_e(n),_e(i)}}}function Cd(e){let t;return{c(){t=R(e[1])},m(e,n){O(e,t,n)},p:g,d(e){e&&P(t)}}}function Ad(e){var t;let n,r,i=1===(null==(t=e[0])?void 0:t.derived.numOfCallbacks)&&xd(e);return{c(){i&&i.c(),n=N()},m(e,t){i&&i.m(e,t),O(e,n,t),r=!0},p(e,[t]){var r;1===(null==(r=e[0])?void 0:r.derived.numOfCallbacks)?i?(i.p(e,t),1&t&&fe(i,1)):(i=xd(e),i.c(),fe(i,1),i.m(n.parentNode,n)):i&&(he(),ge(i,1,1,(()=>{i=null})),pe())},i(e){r||(fe(i),r=!0)},o(e){ge(i),r=!1},d(e){i&&i.d(e),e&&P(n)}}}function Id(e,t,n){let{callback:r}=t,{callbackMetadata:i=null}=t,{stepMetadata:a=null}=t,{selfSubmitFunction:o}=t,s=new Pt({}),l=r.getMessage();return async function(){var e,t;let a=null!=(e=null==r?void 0:r.isLocationRequired())&&e,l=null!=(t=null==r?void 0:r.isMetadataRequired())&&t,c=await s.getProfile({location:a,metadata:l});r.setProfile(c),i&&n(2,i.derived.isReadyForSubmission=!0,i),o&&o()}(),e.$$set=e=>{"callback"in e&&n(3,r=e.callback),"callbackMetadata"in e&&n(2,i=e.callbackMetadata),"stepMetadata"in e&&n(0,a=e.stepMetadata),"selfSubmitFunction"in e&&n(4,o=e.selfSubmitFunction)},[a,l,i,r,o]}var Td=class extends Se{constructor(e){super(),$e(this,e,Id,Ad,_,{callback:3,callbackMetadata:2,stepMetadata:0,selfSubmitFunction:4})}};function Od({nameOfCaptcha:e,siteKey:t}){return"hcaptcha"===e&&window.hcaptcha?window.hcaptcha.render("fr-recaptcha",{sitekey:t,callback:"frHandleCaptcha","expired-callback":"frHandleExpiredCallback","chalexpired-callback":"frHandleExpiredCallback","error-callback":"frHandleErrorCallback"}):"grecaptcha"===e&&window.grecaptcha?window.grecaptcha.render("fr-recaptcha",{sitekey:t,callback:window.frHandleCaptcha,"expired-callback":window.frHandleExpiredCallback}):void 0}function Pd(e){let t,n=!1===e[1]&&function(e){let t;return{c(){t=L("div"),V(t,"id","fr-recaptcha"),V(t,"class",`${e[2]} tw_flex-1 tw_w-full tw_input-spacing`),V(t,"data-sitekey",e[0]),V(t,"data-expired-callback","frHandleExpiredCallback"),V(t,"data-chalexpired-callback","frHandleExpiredCallback"),V(t,"data-error-callback","frHandleErrorCallback"),V(t,"data-callback","frHandleCaptcha")},m(e,n){O(e,t,n)},p:g,d(e){e&&P(t)}}}(e);return{c(){n&&n.c(),t=N()},m(e,r){n&&n.m(e,r),O(e,t,r)},p(e,[t]){!1===e[1]&&n.p(e,t)},i:g,o:g,d(e){n&&n.d(e),e&&P(t)}}}function Md(e,t,n){var r,i;let{callback:a}=t,o="",s=null!=(r=null==a?void 0:a.getSiteKey())?r:"",l=null==a?void 0:a.getOutputByName("reCaptchaV3",!1),c=null!=(i=null==a?void 0:a.getOutputByName("captchaDivClass","h-captcha"))?i:"h-captcha";return Y((()=>{l||a&&(window.frHandleCaptchaError=function(e){var t,n;let r=null!=(t=null==e?void 0:e.getSiteKey())?t:"";return function(e){return e.match("h-captcha")}(null!=(n=null==e?void 0:e.getOutputByName("captchaDivClass","h-captcha"))?n:"h-captcha")?()=>Od({nameOfCaptcha:"hcaptcha",siteKey:r}):()=>Od({nameOfCaptcha:"grecaptcha",siteKey:r})}(a),window.frHandleCaptcha=function(e){return t=>{null==e||e.setResult(t)}}(a),window.frHandleExpiredCallback=function(){null==a||a.setResult(""),Od({nameOfCaptcha:"hcaptcha",siteKey:s})},Od({nameOfCaptcha:"g-recaptcha"===c?"grecaptcha":"hcaptcha",siteKey:s}))})),eo.subscribe((e=>{var t;n(7,o=null!=(t=null==e?void 0:e.recaptchaAction)?t:"")})),e.$$set=e=>{"callback"in e&&n(3,a=e.callback)},e.$$.update=()=>{128&e.$$.dirty&&o.length&&function(){if(l&&o.length)try{window.grecaptcha.ready((async function(){let e=await window.grecaptcha.execute(s,{action:o});null==a||a.setResult(e)}))}catch(e){throw new Error(`Error executing recaptcha. Please make sure you have passed a siteKey and you have loaded the google recaptcha script in your app prior to this Error: ${e}`)}}()}
1,[s,l,c,a,null,null,{},o]}var Ld=class extends Se{constructor(e){super(),$e(this,e,Md,Pd,_,{callback:3,selfSubmitFunction:4,stepMetadata:5,style:6})}get selfSubmitFunction(){return this.$$.ctx[4]}get stepMetadata(){return this.$$.ctx[5]}get style(){return this.$$.ctx[6]}};function Dd(e,t,n){return[null,null,null,null,{}]}var Rd=class extends Se{constructor(e){super(),$e(this,e,Dd,null,_,{callback:0,callbackMetadata:1,selfSubmitFunction:2,stepMetadata:3,style:4})}get callback(){return this.$$.ctx[0]}get callbackMetadata(){return this.$$.ctx[1]}get selfSubmitFunction(){return this.$$.ctx[2]}get stepMetadata(){return this.$$.ctx[3]}get style(){return this.$$.ctx[4]}};function Ud(e){let t,n,r;return n=new yo({props:{key:"signalsEvaluation"}}),{c(){t=L("p"),be(n.$$.fragment)},m(e,i){O(e,t,i),ye(n,t,null),r=!0},p:g,i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Nd(e){let t,n,r;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24",$$slots:{default:[Ud]},$$scope:{ctx:e}}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_text-center tw_w-full tw_py-4")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},p(e,[t]){let r={};16&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Fd(e,t,n){let{callback:r}=t,{selfSubmitFunction:i=null}=t,{pingProtect:a={envId:""}}=t,o=!1;return Y((()=>{!async function(){try{await gn.getData()}catch(e){e instanceof Error?r.setClientError(e.message):r.setClientError("An error occurred while initializing PingProtect")}i&&i()}()})),e.$$set=e=>{"callback"in e&&n(0,r=e.callback),"selfSubmitFunction"in e&&n(1,i=e.selfSubmitFunction),"pingProtect"in e&&n(2,a=e.pingProtect)},e.$$.update=()=>{var t;12&e.$$.dirty&&(n(3,o=null!=(t=null==a?void 0:a.behavioralDataCollection)&&t),"undefined"!=typeof window&&(!0===o?gn.pauseBehavioralData():gn.resumeBehavioralData()))},[r,i,a,o]}var Bd=class extends Se{constructor(e){super(),$e(this,e,Fd,Nd,_,{callback:0,selfSubmitFunction:1,pingProtect:2})}};function Vd(e){let t,n;return t=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function zd(e){let t,n,r=!e[0]&&Vd();return{c(){t=L("div"),r&&r.c()},m(e,i){O(e,t,i),r&&r.m(t,null),n=!0},p(e,[n]){e[0]?r&&(he(),ge(r,1,1,(()=>{r=null})),pe()):r?1&n&&fe(r,1):(r=Vd(),r.c(),fe(r,1),r.m(t,null))},i(e){n||(fe(r),n=!0)},o(e){ge(r),n=!1},d(e){e&&P(t),r&&r.d()}}}function jd(e,t,n){let{callback:r}=t,{selfSubmitFunction:i=null}=t,a=!1;return Y((()=>{!async function(){let e=r.getConfig();try{await gn.start(e),n(0,a=!0)}catch(t){t instanceof Error?r.setClientError(t.message):r.setClientError("An error occurred while initializing PingProtect")}i&&i()}()})),e.$$set=e=>{"callback"in e&&n(3,r=e.callback),"selfSubmitFunction"in e&&n(4,i=e.selfSubmitFunction)},[a,{},null,r,i]}var Hd=class extends Se{constructor(e){super(),$e(this,e,jd,zd,_,{style:1,stepMetadata:2,callback:3,selfSubmitFunction:4})}get style(){return this.$$.ctx[1]}get stepMetadata(){return this.$$.ctx[2]}};function qd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new gd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=8388609&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Kd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Hd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=4194305&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Gd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Bd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=2097153&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Wd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Ld({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=1048577&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Zd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Rd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=262145&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Yd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Td({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=524289&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Xd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new hd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=131073&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Jd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new hd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=65537&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Qd(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new ad({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=32769&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function eh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Ed({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=16385&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function th(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new yd({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=8193&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function nh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Zu({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=4097&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function rh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Du({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=2049&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ih(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new hu({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=1025&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ah(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new lu({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=513&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function oh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Jc({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=257&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function sh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Ac({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=129&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function lh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Sc({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=65&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ch(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Wl({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=33&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function uh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Kl({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=17&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function dh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Tl({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=9&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function hh(e){let t,n,r=[e[24]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new Ws({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=5&n?me(r,[ve(e[24])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ph(e){let t,n,r,i,a=[hh,dh,uh,ch,lh,sh,oh,ah,ih,rh,nh,th,eh,Qd,Jd,Xd,Yd,Zd,Wd,Gd,Kd,qd],o=[];function s(e,t){return e[1]===je.BooleanAttributeInputCallback?0:e[1]===je.ChoiceCallback?1:e[1]===je.ConfirmationCallback?2:e[1]===je.HiddenValueCallback?3:e[1]===je.KbaCreateCallback?4:e[1]===je.NameCallback?5:e[1]===je.PasswordCallback?6:e[1]===je.PollingWaitCallback?7:e[1]===je.RedirectCallback?8:e[1]===je.SelectIdPCallback?9:e[1]===je.StringAttributeInputCallback?10:e[1]===je.ValidatedCreatePasswordCallback?11:e[1]===je.ValidatedCreateUsernameCallback?12:e[1]===je.TermsAndConditionsCallback?13:e[1]===je.TextOutputCallback?14:e[1]===je.SuspendedTextOutputCallback?15:e[1]===je.DeviceProfileCallback?16:e[1]===je.MetadataCallback?17:e[1]===je.ReCaptchaCallback?18:e[1]===je.PingOneProtectEvaluationCallback?19:e[1]===je.PingOneProtectInitializeCallback?20:21}function l(e,t){return 0===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[2]});return t[24]=n,t}(e):1===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[3]});return t[24]=n,t}(e):2===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[4]});return t[24]=n,t}(e):3===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[5]});return t[24]=n,t}(e):4===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[6]});return t[24]=n,t}(e):5===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[7]});return t[24]=n,t}(e):6===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[8]});return t[24]=n,t}(e):7===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[9]});return t[24]=n,t}(e):8===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[10]});return t[24]=n,t}(e):9===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[11]});return t[24]=n,t}(e):10===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[12]});return t[24]=n,t}(e):11===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[13]});return t[24]=n,t}(e):12===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[14]});return t[24]=n,t}(e):13===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[15]});return t[24]=n,t}(e):14===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[16]});return t[24]=n,t}(e):15===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[17]});return t[24]=n,t}(e):16===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[19]});return t[24]=n,t}(e):17===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[18]});return t[24]=n,t}(e):18===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[20]});return t[24]=n,t}(e):19===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[21]});return t[24]=n,t}(e):20===t?function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[22]});return t[24]=n,t}(e):function(e){let t=e.slice(),n=p(h({},t[0]),{callback:t[23]});return t[24]=n,t}(e)}return t=s(e),n=o[t]=a[t](l(e,t)),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let c=t;t=s(e),t===c?o[t].p(l(e,t),i):(he(),ge(o[c],1,1,(()=>{o[c]=null})),pe(),n=o[t],n?n.p(l(e,t),i):(n=o[t]=a[t](l(e,t)),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function fh(e,t,n){let r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k,$,S,E,{props:x}=t;return e.$$set=e=>{"props"in e&&n(0,x=e.props)},e.$$.update=()=>{if(3&e.$$.dirty)switch(n(1,r=x.callback.getType()),r){case je.BooleanAttributeInputCallback:n(2,i=x.callback);break;case je.ChoiceCallback:n(3,a=x.callback);break;case je.ConfirmationCallback:n(4,o=x.callback);break;case je.HiddenValueCallback:n(5,s=x.callback);break;case je.KbaCreateCallback:n(6,l=x.callback);break;case je.NameCallback:n(7,c=x.callback);break;case je.ReCaptchaCallback:n(20,k=x.callback);break;case je.PasswordCallback:n(8,u=x.callback);break;case je.PollingWaitCallback:n(9,d=x.callback);break;case je.RedirectCallback:n(10,h=x.callback);break;case je.SelectIdPCallback:n(11,p=x.callback);break;case je.StringAttributeInputCallback:n(12,f=x.callback);break;case je.ValidatedCreatePasswordCallback:n(13,g=x.callback);break;case je.ValidatedCreateUsernameCallback:n(14,m=x.callback);break;case je.TermsAndConditionsCallback:n(15,v=x.callback);break;case je.TextOutputCallback:n(16,w=x.callback);break;case je.SuspendedTextOutputCallback:n(17,b=x.callback);break;case je.DeviceProfileCallback:n(19,_=x.callback);break;case je.MetadataCallback:n(18,y=x.callback);break;case je.PingOneProtectEvaluationCallback:n(21,$=x.callback);break;case je.PingOneProtectInitializeCallback:n(22,S=x.callback);break;default:n(23,E=x.callback)}},[x,r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k,$,S,E]}var gh=class extends Se{constructor(e){super(),$e(this,e,fh,ph,_,{props:0})}};function mh(e,t,n){let r=e.slice();return r[16]=t[n],r[18]=n,r}function vh(e){let t,n,r;return n=new hs({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function wh(e){let t,n;return t=new Go({props:{id:Ih,needsFocus:e[6],type:"error",$$slots:{default:[bh]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.needsFocus=e[6]),524420&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function bh(e){var t;let n,r=Ba(e[7],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;132&t&&r!==(r=Ba(e[7],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function yh(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[16],callbackMetadata:null==(t=e[4])?void 0:t.callbacks[e[18]],selfSubmitFunction:e[12],stepMetadata:(null==(n=e[4])?void 0:n.step)&&h({},e[4].step),style:e[11]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};2096&t&&(a.props={callback:e[16],callbackMetadata:null==(n=e[4])?void 0:n.callbacks[e[18]],selfSubmitFunction:e[12],stepMetadata:(null==(i=e[4])?void 0:i.step)&&h({},e[4].step),style:e[11]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function _h(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[Sh]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),524288&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function kh(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[Eh]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i=
1{};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),524288&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function $h(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[xh]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),524288&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Sh(e){let t,n;return t=new yo({props:{key:"nextButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Eh(e){let t,n;return t=new yo({props:{key:"nextButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function xh(e){let t,n;return t=new yo({props:{key:"nextButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Ch(e){var t,n,r,i,a;let o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k=(null==(t=e[2])?void 0:t.icon)&&"inline"!==e[1]&&vh();c=new cs({props:{html:!0,string:(null==(n=e[5])?void 0:n.getHeader())||""}}),h=new cs({props:{html:!0,string:(null==(r=e[5])?void 0:r.getDescription())||""}});let $=(null==(i=e[2])?void 0:i.message)&&wh(e),S=null==(a=e[5])?void 0:a.callbacks,E=[];for(let T=0;T<S.length;T+=1)E[T]=yh(mh(e,S,T));let x=e=>ge(E[e],1,1,(()=>{E[e]=null})),C=[$h,kh,_h],A=[];function I(e,t){var n,r,i,a,o,s;return 16&t&&(m=null),null==m&&(m=!(null!=(r=null==(n=e[4])?void 0:n.step)&&r.derived.isStepSelfSubmittable())),m?0:null!=(a=null==(i=e[4])?void 0:i.step)&&a.derived.isUserInputOptional?1:null!=(s=null==(o=e[4])?void 0:o.step)&&s.derived.numOfSelfSubmittableCbs?-1:2}return~(v=I(e,-1))&&(w=A[v]=C[v](e)),y=new ms({props:{journey:e[3]}}),{c(){k&&k.c(),o=U(),s=L("header"),l=L("h1"),be(c.$$.fragment),u=U(),d=L("p"),be(h.$$.fragment),p=U(),$&&$.c(),f=U();for(let e=0;e<E.length;e+=1)E[e].c();g=U(),w&&w.c(),b=U(),be(y.$$.fragment),V(l,"class","tw_primary-header dark:tw_primary-header_dark"),V(d,"class","tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"),V(s,"id",Th)},m(t,n){k&&k.m(t,n),O(t,o,n),O(t,s,n),T(s,l),ye(c,l,null),T(s,u),T(s,d),ye(h,d,null),e[14](s),O(t,p,n),$&&$.m(t,n),O(t,f,n);for(let e=0;e<E.length;e+=1)E[e].m(t,n);O(t,g,n),~v&&A[v].m(t,n),O(t,b,n),ye(y,t,n),_=!0},p(e,t){var n,r,i,a,s;null!=(n=e[2])&&n.icon&&"inline"!==e[1]?k?6&t&&fe(k,1):(k=vh(),k.c(),fe(k,1),k.m(o.parentNode,o)):k&&(he(),ge(k,1,1,(()=>{k=null})),pe());let l={};32&t&&(l.string=(null==(r=e[5])?void 0:r.getHeader())||""),c.$set(l);let u={};if(32&t&&(u.string=(null==(i=e[5])?void 0:i.getDescription())||""),h.$set(u),null!=(a=e[2])&&a.message?$?($.p(e,t),4&t&&fe($,1)):($=wh(e),$.c(),fe($,1),$.m(f.parentNode,f)):$&&(he(),ge($,1,1,(()=>{$=null})),pe()),6192&t){let n;for(S=null==(s=e[5])?void 0:s.callbacks,n=0;n<S.length;n+=1){let r=mh(e,S,n);E[n]?(E[n].p(r,t),fe(E[n],1)):(E[n]=yh(r),E[n].c(),fe(E[n],1),E[n].m(g.parentNode,g))}for(he(),n=S.length;n<E.length;n+=1)x(n);pe()}let d=v;v=I(e,t),v===d?~v&&A[v].p(e,t):(w&&(he(),ge(A[d],1,1,(()=>{A[d]=null})),pe()),~v?(w=A[v],w?w.p(e,t):(w=A[v]=C[v](e),w.c()),fe(w,1),w.m(b.parentNode,b)):w=null);let p={};8&t&&(p.journey=e[3]),y.$set(p)},i(e){if(!_){fe(k),fe(c.$$.fragment,e),fe(h.$$.fragment,e),fe($);for(let e=0;e<S.length;e+=1)fe(E[e]);fe(w),fe(y.$$.fragment,e),_=!0}},o(e){ge(k),ge(c.$$.fragment,e),ge(h.$$.fragment,e),ge($),E=E.filter(Boolean);for(let t=0;t<E.length;t+=1)ge(E[t]);ge(w),ge(y.$$.fragment,e),_=!1},d(t){k&&k.d(t),t&&P(o),t&&P(s),_e(c),_e(h),e[14](null),t&&P(p),$&&$.d(t),t&&P(f),M(E,t),t&&P(g),~v&&A[v].d(t),t&&P(b),_e(y,t)}}}function Ah(e){let t,n,r;function i(t){e[15](t)}let a={ariaDescribedBy:e[8],id:Oh,needsFocus:e[9],onSubmitWhenValid:e[13],$$slots:{default:[Ch]},$$scope:{ctx:e}};return void 0!==e[0]&&(a.formEl=e[0]),t=new is({props:a}),Q.push((()=>we(t,"formEl",i))),{c(){be(t.$$.fragment)},m(e,n){ye(t,e,n),r=!0},p(e,[r]){let i={};256&r&&(i.ariaDescribedBy=e[8]),512&r&&(i.needsFocus=e[9]),527614&r&&(i.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,i.formEl=e[0],ae((()=>n=!1))),t.$set(i)},i(e){r||(fe(t.$$.fragment,e),r=!0)},o(e){ge(t.$$.fragment,e),r=!1},d(e){_e(t,e)}}}var Ih="genericStepFailureMessage",Th="genericStepHeader",Oh="genericStepForm";function Ph(e,t,n){let r;S(e,fo,(e=>n(11,r=e)));let i,{componentStyle:a}=t,{form:o}=t,{formEl:s=null}=t,{journey:l}=t,{metadata:c}=t,{step:u}=t,d=!1,h="",p="genericStepHeader",f=!1;function g(){n(6,d=!1),n(9,f=!1),null==o||o.submit()}return X((()=>{null!=o&&o.message?(n(8,p=Ih),n(6,d=!0),n(9,f=!1)):(n(8,p=Th),n(6,d=!1),n(9,f=!0))})),Y((()=>vs(i,l))),e.$$set=e=>{"componentStyle"in e&&n(1,a=e.componentStyle),"form"in e&&n(2,o=e.form),"formEl"in e&&n(0,s=e.formEl),"journey"in e&&n(3,l=e.journey),"metadata"in e&&n(4,c=e.metadata),"step"in e&&n(5,u=e.step)},e.$$.update=()=>{36&e.$$.dirty&&(Ha(u)&&kt.redirect(u),n(7,h=za(null==o?void 0:o.message)))},[s,a,o,l,c,u,d,h,p,f,i,r,function(){var e;null!=(e=null==c?void 0:c.step)&&e.derived.isStepSelfSubmittable()&&g()},g,function(e){Q[e?"unshift":"push"]((()=>{i=e,n(10,i)}))},function(e){s=e,n(0,s)}]}var Mh=class extends Se{constructor(e){super(),$e(this,e,Ph,Ah,_,{componentStyle:1,form:2,formEl:0,journey:3,metadata:4,step:5})}};function Lh(e){let t,n,r,i,a,o=e[3].default,s=E(o,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("title"),s&&s.c(),V(n,"d","M0 0h24v24H0z"),V(n,"fill","none"),V(r,"d","M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 24 24"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){O(e,t,o),T(t,n),T(t,r),T(t,i),s&&s.m(i,null),a=!0},p(e,[n]){s&&s.p&&(!a||4&n)&&A(s,o,e,e[2],a?C(o,e[2],n,null):I(e[2]),null),(!a||1&n)&&V(t,"class",e[0]),(!a||2&n)&&V(t,"height",e[1]),(!a||2&n)&&V(t,"width",e[1])},i(e){a||(fe(s,e),a=!0)},o(e){ge(s,e),a=!1},d(e){e&&P(t),s&&s.d(e)}}}function Dh(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Rh=class extends Se{constructor(e){super(),$e(this,e,Dh,Lh,_,{classes:0,size:1})}};
1function Uh(e,t,n){let r=e.slice();return r[13]=t[n],r[15]=n,r}function Nh(e){var t;let n,r,i,a,o,s,l,c=(null==(t=e[2])?void 0:t.icon)&&Fh();return i=new yo({props:{key:"twoFactorAuthentication"}}),s=new yo({props:{key:"useTheAuthenticatorAppOnYourPhone"}}),{c(){c&&c.c(),n=U(),r=L("h1"),be(i.$$.fragment),a=U(),o=L("p"),be(s.$$.fragment),V(r,"class","tw_primary-header dark:tw_primary-header_dark"),V(o,"class","tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light")},m(e,t){c&&c.m(e,t),O(e,n,t),O(e,r,t),ye(i,r,null),O(e,a,t),O(e,o,t),ye(s,o,null),l=!0},p(e,t){var r;null!=(r=e[2])&&r.icon?c?4&t&&fe(c,1):(c=Fh(),c.c(),fe(c,1),c.m(n.parentNode,n)):c&&(he(),ge(c,1,1,(()=>{c=null})),pe())},i(e){l||(fe(c),fe(i.$$.fragment,e),fe(s.$$.fragment,e),l=!0)},o(e){ge(c),ge(i.$$.fragment,e),ge(s.$$.fragment,e),l=!1},d(e){c&&c.d(e),e&&P(n),e&&P(r),_e(i),e&&P(a),e&&P(o),_e(s)}}}function Fh(e){let t,n,r;return n=new Rh({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Bh(e){let t,n;return t=new Go({props:{id:"formFailureMessageAlert",needsFocus:e[5],type:"error",$$slots:{default:[Vh]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};32&n&&(r.needsFocus=e[5]),65668&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Vh(e){var t;let n,r=Ba(e[7],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;132&t&&r!==(r=Ba(e[7],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function zh(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[13],callbackMetadata:null==(t=e[4])?void 0:t.callbacks[e[15]],selfSubmitFunction:e[10],stepMetadata:(null==(n=e[4])?void 0:n.step)&&h({},e[4].step),style:e[9]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};784&t&&(a.props={callback:e[13],callbackMetadata:null==(n=e[4])?void 0:n.callbacks[e[15]],selfSubmitFunction:e[10],stepMetadata:(null==(i=e[4])?void 0:i.step)&&h({},e[4].step),style:e[9]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function jh(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[qh]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),65536&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function Hh(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[Kh]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),65600&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function qh(e){let t,n;return t=new yo({props:{key:"loginButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Kh(e){let t,n;return t=new yo({props:{key:e[6][0].text}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.key=e[6][0].text),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Gh(e){var t;let n,r,i,a,o,s,l,c,u="inline"!==e[1]&&Nh(e),d=(null==(t=e[2])?void 0:t.message)&&Bh(e),h=e[8],p=[];for(let w=0;w<h.length;w+=1)p[w]=zh(Uh(e,h,w));let f=e=>ge(p[e],1,1,(()=>{p[e]=null})),g=[Hh,jh],m=[];function v(e,t){var n,r,i,o,s;return 16&t&&(a=null),null!=(n=e[6])&&n.length?0:(null==a&&(a=!(!(null!=(i=null==(r=e[4])?void 0:r.step)&&i.derived.isUserInputOptional||null==(s=null==(o=e[4])?void 0:o.step))&&s.derived.isStepSelfSubmittable())),a?1:-1)}return~(o=v(e,-1))&&(s=m[o]=g[o](e)),{c(){u&&u.c(),n=U(),d&&d.c(),r=U();for(let e=0;e<p.length;e+=1)p[e].c();i=U(),s&&s.c(),l=N()},m(e,t){u&&u.m(e,t),O(e,n,t),d&&d.m(e,t),O(e,r,t);for(let n=0;n<p.length;n+=1)p[n].m(e,t);O(e,i,t),~o&&m[o].m(e,t),O(e,l,t),c=!0},p(e,t){var a;if("inline"!==e[1]?u?(u.p(e,t),2&t&&fe(u,1)):(u=Nh(e),u.c(),fe(u,1),u.m(n.parentNode,n)):u&&(he(),ge(u,1,1,(()=>{u=null})),pe()),null!=(a=e[2])&&a.message?d?(d.p(e,t),4&t&&fe(d,1)):(d=Bh(e),d.c(),fe(d,1),d.m(r.parentNode,r)):d&&(he(),ge(d,1,1,(()=>{d=null})),pe()),1808&t){let n;for(h=e[8],n=0;n<h.length;n+=1){let r=Uh(e,h,n);p[n]?(p[n].p(r,t),fe(p[n],1)):(p[n]=zh(r),p[n].c(),fe(p[n],1),p[n].m(i.parentNode,i))}for(he(),n=h.length;n<p.length;n+=1)f(n);pe()}let c=o;o=v(e,t),o===c?~o&&m[o].p(e,t):(s&&(he(),ge(m[c],1,1,(()=>{m[c]=null})),pe()),~o?(s=m[o],s?s.p(e,t):(s=m[o]=g[o](e),s.c()),fe(s,1),s.m(l.parentNode,l)):s=null)},i(e){if(!c){fe(u),fe(d);for(let e=0;e<h.length;e+=1)fe(p[e]);fe(s),c=!0}}
1,o(e){ge(u),ge(d),p=p.filter(Boolean);for(let t=0;t<p.length;t+=1)ge(p[t]);ge(s),c=!1},d(e){u&&u.d(e),e&&P(n),d&&d.d(e),e&&P(r),M(p,e),e&&P(i),~o&&m[o].d(e),e&&P(l)}}}function Wh(e){var t;let n,r,i;function a(t){e[12](t)}let o={ariaDescribedBy:"formFailureMessageAlert",onSubmitWhenValid:null==(t=e[2])?void 0:t.submit,$$slots:{default:[Gh]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.formEl=e[0]),n=new is({props:o}),Q.push((()=>we(n,"formEl",a))),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),i=!0},p(e,[t]){var i;let a={};4&t&&(a.onSubmitWhenValid=null==(i=e[2])?void 0:i.submit),66558&t&&(a.$$scope={dirty:t,ctx:e}),!r&&1&t&&(r=!0,a.formEl=e[0],ae((()=>r=!1))),n.$set(a)},i(e){i||(fe(n.$$.fragment,e),i=!0)},o(e){ge(n.$$.fragment,e),i=!1},d(e){_e(n,e)}}}function Zh(e,t,n){let r;S(e,fo,(e=>n(9,r=e)));let i,{componentStyle:a}=t,{form:o}=t,{formEl:s=null}=t,{journey:l}=t,{metadata:c}=t,{step:u}=t,d=!1,h="",p=[];return X((()=>{n(5,d=!(null==o||!o.message))})),e.$$set=e=>{"componentStyle"in e&&n(1,a=e.componentStyle),"form"in e&&n(2,o=e.form),"formEl"in e&&n(0,s=e.formEl),"journey"in e&&n(3,l=e.journey),"metadata"in e&&n(4,c=e.metadata),"step"in e&&n(11,u=e.step)},e.$$.update=()=>
1{if(2052&e.$$.dirty){n(7,h=za(null==o?void 0:o.message));let e=u.getCallbacksOfType(je.ConfirmationCallback);if(e.length){let t=e[0];n(6,i=t.getOptions().map(((e,t)=>({value:`${t}`,text:e}))))}n(8,p=u.callbacks.filter((e=>e.getType()!==je.ConfirmationCallback)))}},[s,a,o,l,c,d,i,h,p,r,function(){var e;null!=(e=null==c?void 0:c.step)&&e.derived.isStepSelfSubmittable()&&(null==o||o.submit())},u,function(e){s=e,n(0,s)}]}var Yh=class extends Se{constructor(e){super(),$e(this,e,Zh,Wh,_,{componentStyle:1,form:2,formEl:0,journey:3,metadata:4,step:11})}};function Xh(e){let t,n,r,i,a,o=e[3].default,s=E(o,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("title"),s&&s.c(),V(n,"d","M0 0h24v24H0z"),V(n,"fill","none"),V(r,"d","M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"),V(t,"class",e[0]),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"height",e[1]),V(t,"viewBox","0 0 24 24"),V(t,"width",e[1])},m(e,o){O(e,t,o),T(t,n),T(t,r),T(t,i),s&&s.m(i,null),a=!0},p(e,[n]){s&&s.p&&(!a||4&n)&&A(s,o,e,e[2],a?C(o,e[2],n,null):I(e[2]),null),(!a||1&n)&&V(t,"class",e[0]),(!a||2&n)&&V(t,"height",e[1]),(!a||2&n)&&V(t,"width",e[1])},i(e){a||(fe(s,e),a=!0)},o(e){ge(s,e),a=!1},d(e){e&&P(t),s&&s.d(e)}}}function Jh(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var Qh=class extends Se{constructor(e){super(),$e(this,e,Jh,Xh,_,{classes:0,size:1})}};function ep(e,t,n){let r=e.slice();return r[13]=t[n],r[15]=n,r}function tp(e){var t;let n,r,i,a,o,s,l,c=(null==(t=e[2])?void 0:t.icon)&&np();return i=new yo({props:{key:"registerHeader"}}),s=new yo({props:{key:"alreadyHaveAnAccount",html:!0}}),{c(){c&&c.c(),n=U(),r=L("h1"),be(i.$$.fragment),a=U(),o=L("p"),be(s.$$.fragment),V(r,"class","tw_primary-header dark:tw_primary-header_dark"),V(o,"class","tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light")},m(t,u){c&&c.m(t,u),O(t,n,u),O(t,r,u),ye(i,r,null),O(t,a,u),O(t,o,u),ye(s,o,null),e[11](o),l=!0},p(e,t){var r;null!=(r=e[2])&&r.icon?c?4&t&&fe(c,1):(c=np(),c.c(),fe(c,1),c.m(n.parentNode,n)):c&&(he(),ge(c,1,1,(()=>{c=null})),pe())},i(e){l||(fe(c),fe(i.$$.fragment,e),fe(s.$$.fragment,e),l=!0)},o(e){ge(c),ge(i.$$.fragment,e),ge(s.$$.fragment,e),l=!1},d(t){c&&c.d(t),t&&P(n),t&&P(r),_e(i),t&&P(a),t&&P(o),_e(s),e[11](null)}}}function np(e){let t,n,r;return n=new Qh({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function rp(e){let t,n;return t=new Go({props:{id:"formFailureMessageAlert",needsFocus:e[6],type:"error",$$slots:{default:[ip]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.needsFocus=e[6]),65668&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function ip(e){var t;let n,r=Ba(e[7],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;132&t&&r!==(r=Ba(e[7],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function ap(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[13],callbackMetadata:null==(t=e[4])?void 0:t.callbacks[e[15]],selfSubmitFunction:e[10],stepMetadata:(null==(n=e[4])?void 0:n.step)&&h({},e[4].step),style:e[9]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};560&t&&(a.props={callback:e[13],callbackMetadata:null==(n=e[4])?void 0:n.callbacks[e[15]],selfSubmitFunction:e[10],stepMetadata:(null==(i=e[4])?void 0:i.step)&&h({},e[4].step),style:e[9]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function op(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[sp]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),65536&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function sp(e){let t,n;return t=new yo({props:{key:"registerButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function lp(e){var t,n,r,i,a;let o,s,l,c,u,d=(null==(n=null==(t=e[4])?void 0:t.step)?void 0:n.derived.isUserInputOptional)||!(null!=(i=null==(r=e[4])?void 0:r.step)&&i.derived.isStepSelfSubmittable()),h="inline"!==e[1]&&tp(e),p=e[2].message&&rp(e),f=null==(a=e[5])?void 0:a.callbacks,g=[];for(let w=0;w<f.length;w+=1)g[w]=ap(ep(e,f,w));let m=e=>ge(g[e],1,1,(()=>{g[e]=null})),v=d&&op(e);return{c(){h&&h.c(),o=U(),p&&p.c(),s=U();for(let e=0;e<g.length;e+=1)g[e].c();l=U(),v&&v.c(),c=N()},m(e,t){h&&h.m(e,t),O(e,o,t),p&&p.m(e,t),O(e,s,t);for(let n=0;n<g.length;n+=1)g[n].m(e,t);O(e,l,t),v&&v.m(e,t),O(e,c,t),u=!0},p(e,t){var n,r,i,a,u;if("inline"!==e[1]?h?(h.p(e,t),2&t&&fe(h,1)):(h=tp(e),h.c(),fe(h,1),h.m(o.parentNode,o)):h&&(he(),ge(h,1,1,(()=>{h=null})),pe()),e[2].message?p?(p.p(e,t),4&t&&fe(p,1)):(p=rp(e),p.c(),fe(p,1),p.m(s.parentNode,s)):p&&(he(),ge(p,1,1,(()=>{p=null})),pe()),1584&t){let r;for(f=null==(n=e[5])?void 0:n.callbacks,r=0;r<f.length;r+=1){let n=ep(e,f,r);g[r]?(g[r].p(n,t),fe(g[r],1)):(g[r]=ap(n),g[r].c(),fe(g[r],1),g[r].m(l.parentNode,l))}
1for(he(),r=f.length;r<g.length;r+=1)m(r);pe()}16&t&&(d=(null==(i=null==(r=e[4])?void 0:r.step)?void 0:i.derived.isUserInputOptional)||!(null!=(u=null==(a=e[4])?void 0:a.step)&&u.derived.isStepSelfSubmittable())),d?v?(v.p(e,t),16&t&&fe(v,1)):(v=op(e),v.c(),fe(v,1),v.m(c.parentNode,c)):v&&(he(),ge(v,1,1,(()=>{v=null})),pe())},i(e){if(!u){fe(h),fe(p);for(let e=0;e<f.length;e+=1)fe(g[e]);fe(v),u=!0}},o(e){ge(h),ge(p),g=g.filter(Boolean);for(let t=0;t<g.length;t+=1)ge(g[t]);ge(v),u=!1},d(e){h&&h.d(e),e&&P(o),p&&p.d(e),e&&P(s),M(g,e),e&&P(l),v&&v.d(e),e&&P(c)}}}function cp(e){var t;let n,r,i;function a(t){e[12](t)}let o={ariaDescribedBy:"formFailureMessageAlert",onSubmitWhenValid:null==(t=e[2])?void 0:t.submit,$$slots:{default:[lp]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.formEl=e[0]),n=new is({props:o}),Q.push((()=>we(n,"formEl",a))),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),i=!0},p(e,[t]){var i;let a={};4&t&&(a.onSubmitWhenValid=null==(i=e[2])?void 0:i.submit),66558&t&&(a.$$scope={dirty:t,ctx:e}),!r&&1&t&&(r=!0,a.formEl=e[0],ae((()=>r=!1))),n.$set(a)},i(e){i||(fe(n.$$.fragment,e),i=!0)},o(e){ge(n.$$.fragment,e),i=!1},d(e){_e(n,e)}}}function up(e,t,n){let r;S(e,fo,(e=>n(9,r=e)));let i,{componentStyle:a}=t,{form:o}=t,{formEl:s=null}=t,{journey:l}=t,{metadata:c}=t,{step:u}=t,d=!1,h="";return X((()=>{n(6,d=!(null==o||!o.message))})),Y((()=>{"modal"===a&&vs(i,l)})),e.$$set=e=>{"componentStyle"in e&&n(1,a=e.componentStyle),"form"in e&&n(2,o=e.form),"formEl"in e&&n(0,s=e.formEl),"journey"in e&&n(3,l=e.journey),"metadata"in e&&n(4,c=e.metadata),"step"in e&&n(5,u=e.step)},e.$$.update=()=>{4&e.$$.dirty&&n(7,h=za(null==o?void 0:o.message))},[s,a,o,l,c,u,d,h,i,r,function(){var e;null!=(e=null==c?void 0:c.step)&&e.derived.isStepSelfSubmittable()&&(null==o||o.submit())},function(e){Q[e?"unshift":"push"]((()=>{i=e,n(8,i)}))},function(e){s=e,n(0,s)}]}var dp=class extends Se{constructor(e){super(),$e(this,e,up,cp,_,{componentStyle:1,form:2,formEl:0,journey:3,metadata:4,step:5})}};function hp(e,t,n){let r=e.slice();return r[15]=t[n],r[17]=n,r}function pp(e){var t;let n,r,i,a,o=(null==(t=e[2])?void 0:t.icon)&&fp();return i=new yo({props:{key:"loginHeader"}}),{c(){o&&o.c(),n=U(),r=L("h1"),be(i.$$.fragment),V(r,"class","tw_primary-header dark:tw_primary-header_dark")},m(e,t){o&&o.m(e,t),O(e,n,t),O(e,r,t),ye(i,r,null),a=!0},p(e,t){var r;null!=(r=e[2])&&r.icon?o?4&t&&fe(o,1):(o=fp(),o.c(),fe(o,1),o.m(n.parentNode,n)):o&&(he(),ge(o,1,1,(()=>{o=null})),pe())},i(e){a||(fe(o),fe(i.$$.fragment,e),a=!0)},o(e){ge(o),ge(i.$$.fragment,e),a=!1},d(e){o&&o.d(e),e&&P(n),e&&P(r),_e(i)}}}function fp(e){let t,n,r;return n=new Rh({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function gp(e){let t,n;return t=new Go({props:{id:"formFailureMessageAlert",needsFocus:e[6],type:"error",$$slots:{default:[mp]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.needsFocus=e[6]),262276&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function mp(e){var t;let n,r=Ba(e[7],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;132&t&&r!==(r=Ba(e[7],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function vp(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[15],callbackMetadata:null==(t=e[4])?void 0:t.callbacks[e[17]],selfSubmitFunction:e[10],stepMetadata:(null==(n=e[4])?void 0:n.step)&&h({},e[4].step),style:e[9]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};560&t&&(a.props={callback:e[15],callbackMetadata:null==(n=e[4])?void 0:n.callbacks[e[17]],selfSubmitFunction:e[10],stepMetadata:(null==(i=e[4])?void 0:i.step)&&h({},e[4].step),style:e[9]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function wp(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[3])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[bp]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};8&t&&(i.busy=null==(r=e[3])?void 0:r.loading),262144&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function bp(e){let t,n;return t=new yo({props:{key:"loginButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function yp(e){let t,n,r,i,a,o,s,l,c,u,d,h;return c=new yo({props:{key:"dontHaveAnAccount",html:!0}}),{c(){t=L("p"),n=L("button"),n.textContent=`${Ba("forgotPassword",null,"Forgot Password?")}`,r=R("\n      \xa0\n      "),i=L("button"),i.textContent=`${Ba("forgotUsername",null,"Forgot Username?")}`,a=U(),o=L("hr"),s=U(),l=L("p"),be(c.$$.fragment),V(t,"class","tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"),V(o,"class","tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"),V(l,"class","tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light")},m(p,f){O(p,t,f),T(t,n),T(t,r),T(t,i),O(p,a,f),O(p,o,f),O(p,s,f),O(p,l,f),ye(c,l,null),e[13](l),u=!0,d||(h=[F(n,"click",B(e[11])),F(i,"click",B(e[12]))],d=!0)},p:g,i(e){u||(fe(c.$$.fragment,e),u=!0)},o(e){ge(c.$$.fragment,e),u=!1},d(n){n&&P(t),n&&P(a),n&&P(o),n&&P(s),n&&P(l),_e(c),e[13](null),d=!1,b(h)}}}function _p(e){var t,n,r,i,a,o;let s,l,c,u,d,h,p=(null==(n=null==(t=e[4])?void 0:t.step)?void 0:n.derived.isUserInputOptional)||!(null!=(i=null==(r=e[4])?void 0:r.step)&&i.derived.isStepSelfSubmittable()),f="inline"!==e[1]&&pp(e),g=(null==(a=e[2])?void 0:a.message)&&gp(e),m=null==(o=e[5])?void 0:o.callbacks,v=[];for(let _=0;_<m.length;_+=1)v[_]=vp(hp(e,m,_));let w=e=>ge(v[e],1,1,(()=>{v[e]=null})),b=p&&wp(e),y="inline"!==e[1]&&yp(e);return{c(){f&&f.c(),s=U(),g&&g.c(),l=U();for(let e=0;e<v.length;e+=1)v[e].c();c=U(),b&&b.c(),u=U(),y&&y.c(),d=N()}
1,m(e,t){f&&f.m(e,t),O(e,s,t),g&&g.m(e,t),O(e,l,t);for(let n=0;n<v.length;n+=1)v[n].m(e,t);O(e,c,t),b&&b.m(e,t),O(e,u,t),y&&y.m(e,t),O(e,d,t),h=!0},p(e,t){var n,r,i,a,o,h;if("inline"!==e[1]?f?(f.p(e,t),2&t&&fe(f,1)):(f=pp(e),f.c(),fe(f,1),f.m(s.parentNode,s)):f&&(he(),ge(f,1,1,(()=>{f=null})),pe()),null!=(n=e[2])&&n.message?g?(g.p(e,t),4&t&&fe(g,1)):(g=gp(e),g.c(),fe(g,1),g.m(l.parentNode,l)):g&&(he(),ge(g,1,1,(()=>{g=null})),pe()),1584&t){let n;for(m=null==(r=e[5])?void 0:r.callbacks,n=0;n<m.length;n+=1){let r=hp(e,m,n);v[n]?(v[n].p(r,t),fe(v[n],1)):(v[n]=vp(r),v[n].c(),fe(v[n],1),v[n].m(c.parentNode,c))}for(he(),n=m.length;n<v.length;n+=1)w(n);pe()}16&t&&(p=(null==(a=null==(i=e[4])?void 0:i.step)?void 0:a.derived.isUserInputOptional)||!(null!=(h=null==(o=e[4])?void 0:o.step)&&h.derived.isStepSelfSubmittable())),p?b?(b.p(e,t),16&t&&fe(b,1)):(b=wp(e),b.c(),fe(b,1),b.m(u.parentNode,u)):b&&(he(),ge(b,1,1,(()=>{b=null})),pe()),"inline"!==e[1]?y?(y.p(e,t),2&t&&fe(y,1)):(y=yp(e),y.c(),fe(y,1),y.m(d.parentNode,d)):y&&(he(),ge(y,1,1,(()=>{y=null})),pe())},i(e){if(!h){fe(f),fe(g);for(let e=0;e<m.length;e+=1)fe(v[e]);fe(b),fe(y),h=!0}},o(e){ge(f),ge(g),v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)ge(v[t]);ge(b),ge(y),h=!1},d(e){f&&f.d(e),e&&P(s),g&&g.d(e),e&&P(l),M(v,e),e&&P(c),b&&b.d(e),e&&P(u),y&&y.d(e),e&&P(d)}}}function kp(e){var t;let n,r,i;function a(t){e[14](t)}let o={ariaDescribedBy:"formFailureMessageAlert",onSubmitWhenValid:null==(t=e[2])?void 0:t.submit,$$slots:{default:[_p]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.formEl=e[0]),n=new is({props:o}),Q.push((()=>we(n,"formEl",a))),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),i=!0},p(e,[t]){var i;let a={};4&t&&(a.onSubmitWhenValid=null==(i=e[2])?void 0:i.submit),263166&t&&(a.$$scope={dirty:t,ctx:e}),!r&&1&t&&(r=!0,a.formEl=e[0],ae((()=>r=!1))),n.$set(a)},i(e){i||(fe(n.$$.fragment,e),i=!0)},o(e){ge(n.$$.fragment,e),i=!1},d(e){_e(n,e)}}}function $p(e,t,n){let r;S(e,fo,(e=>n(9,r=e)));let i,{componentStyle:a}=t,{form:o}=t,{formEl:s=null}=t,{journey:l}=t,{metadata:c}=t,{step:u}=t,d=!1,h="";X((()=>{n(6,d=!(null==o||!o.message))})),Y((()=>{"modal"===a&&vs(i,l)}));return e.$$set=e=>{"componentStyle"in e&&n(1,a=e.componentStyle),"form"in e&&n(2,o=e.form),"formEl"in e&&n(0,s=e.formEl),"journey"in e&&n(3,l=e.journey),"metadata"in e&&n(4,c=e.metadata),"step"in e&&n(5,u=e.step)},e.$$.update=()=>{4&e.$$.dirty&&n(7,h=za(null==o?void 0:o.message))},[s,a,o,l,c,u,d,h,i,r,function(){var e;null!=(e=null==c?void 0:c.step)&&e.derived.isStepSelfSubmittable()&&(null==o||o.submit())},()=>{l.push({tree:"ResetPassword"})},()=>{l.push({tree:"ForgottenUsername"})},function(e){Q[e?"unshift":"push"]((()=>{i=e,n(8,i)}))},function(e){s=e,n(0,s)}]}var Sp=class extends Se{constructor(e){super(),$e(this,e,$p,kp,_,{componentStyle:1,form:2,formEl:0,journey:3,metadata:4,step:5})}};function Ep(e){let t,n,r,i,a,o;return{c(){t=D("svg"),n=D("path"),r=D("path"),i=D("path"),a=D("path"),o=D("path"),V(n,"d","M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"),V(r,"d","M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"),V(i,"d","M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"),V(a,"d","M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"),V(o,"d","M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.
104ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,s){O(e,t,s),T(t,n),T(t,r),T(t,i),T(t,a),T(t,o)},p(e,[n]){1&n&&V(t,"class",e[0]),2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1])},i:g,o:g,d(e){e&&P(t)}}}function xp(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var Cp=class extends Se{constructor(e){super(),$e(this,e,xp,Ep,_,{classes:0,size:1})}};function Ap(e){let t,n,r;return n=new Cp({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Ip(e){let t,n,r;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_text-center tw_w-full tw_py-4")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Tp(e){let t,n;return t=new Go({props:{id:Fp,needsFocus:e[4],type:"error",$$slots:{default:[Op]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};16&n&&(r.needsFocus=e[4]),262212&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Op(e){var t;let n,r=Ba(e[6],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;68&t&&r!==(r=Ba(e[6],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function Pp(e){let t,n,r,i,a=[Dp,Lp],o=[];function s(e,t){return e[3]?0:1}return n=s(e),r=o[n]=a[n](e),{c(){t=L("header"),r.c(),V(t,"class","tw_input-spacing"),V(t,"id",Bp)},m(e,r){O(e,t,r),o[n].m(t,null),i=!0},p(e,i){let l=n;n=s(e),n===l?o[n].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),r=o[n],r?r.p(e,i):(r=o[n]=a[n](e),r.c()),fe(r,1),r.m(t,null))},i(e){i||(fe(r),i=!0)},o(e){ge(r),i=!1},d(e){e&&P(t),o[n].d()}}}function Mp(e){let t,n,r,i,a,o,s,l,c,u;return r=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}}),o=new yo({props:{key:"verifyYourIdentity"}}),c=new yo({props:{key:"useDeviceForIdentityVerification"}}),{c(){t=L("header"),n=L("div"),be(r.$$.fragment),i=U(),a=L("h1"),be(o.$$.fragment),s=U(),l=L("p"),be(c.$$.fragment),V(n,"class","tw_text-center tw_w-full tw_py-4"),V(a,"class","tw_primary-header dark:tw_primary-header_dark"),V(l,"class","tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"),V(t,"id",Bp)},m(e,d){O(e,t,d),T(t,n),ye(r,n,null),T(t,i),T(t,a),ye(o,a,null),T(t,s),T(t,l),ye(c,l,null),u=!0},p:g,i(e){u||(fe(r.$$.fragment,e),fe(o.$$.fragment,e),fe(c.$$.fragment,e),u=!0)},o(e){ge(r.$$.fragment,e),ge(o.$$.fragment,e),ge(c.$$.fragment,e),u=!1},d(e){e&&P(t),_e(r),_e(o),_e(c)}}}function Lp(e){let t,n,r,i,a,o;return n=new yo({props:{key:"registerYourDevice",values:{name:e[5].length>0?e[5]:Ba("yourDevice")}}}),a=new yo({props:{key:"chooseYourDeviceForIdentityVerification"}}),{c(){t=L("h1"),be(n.$$.fragment),r=U(),i=L("p"),be(a.$$.fragment),V(t,"class","tw_primary-header dark:tw_primary-header_dark"),V(i,"class","tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light")},m(e,s){O(e,t,s),ye(n,t,null),O(e,r,s),O(e,i,s),ye(a,i,null),o=!0},p(e,t){let r={};32&t&&(r.values={name:e[5].length>0?e[5]:Ba("yourDevice")}),n.$set(r)},i(e){o||(fe(n.$$.fragment,e),fe(a.$$.fragment,e),o=!0)},o(e){ge(n.$$.fragment,e),ge(a.$$.fragment,e),o=!1},d(e){e&&P(t),_e(n),e&&P(r),e&&P(i),_e(a)}}}function Dp(e){let t,n,r,i,a,o,s;return n=new yo({props:{key:"nameYourDevice"}}),i=new hc({props:{type:"text",isRequired:!1,isFirstInvalidInput:!1,key:"devicename",onChange:e[11],label:Ba("optionallyNameDevice")}}),o=new ts({props:{style:"primary",type:"submit",width:"full",onClick:e[15],$$slots:{default:[Rp]},$$scope:{ctx:e}}}),{c(){t=L("h1"),be(n.$$.fragment),r=U(),be(i.$$.fragment),a=U(),be(o.$$.fragment),V(t,"class","tw_primary-header dark:tw_primary-header_dark")},m(e,l){O(e,t,l),ye(n,t,null),O(e,r,l),ye(i,e,l),O(e,a,l),ye(o,e,l),s=!0},p(e,t){let n={};520&t&&(n.onClick=e[15]),262144&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n)},i(e){s||(fe(n.$$.fragment,e),fe(i.$$.fragment,e),fe(o.$$.fragment,e),s=!0)},o(e){ge(n.$$.fragment,e),ge(i.$$.fragment,e),ge(o.$$.fragment,e),s=!1},d(e){e&&P(t),_e(n),e&&P(r),_e(i,e),e&&P(a),_e(o,e)}}}function Rp(e){let t,n;return t=new yo({props:{key:"nextButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Up(e){var t,n;let r,i,a,o,s,l,c,u=(null==(t=e[2])?void 0:t.icon)&&"inline"!==e[1]&&Ap(),d=e[9]&&Ip(),h=(null==(n=e[2])?void 0:n.message)&&Tp(e),p=[Mp,Pp],f=[];return o=e[10]===en.Authentication?0:1,s=f[o]=p[o](e),{c(){u&&u.c(),r=U(),d&&d.c(),i=U(),h&&h.c(),a=U(),s.c(),l=N()},m(e,t){u&&u.m(e,t),O(e,r,t),d&&d.m(e,t),O(e,i,t),h&&h.m(e,t),O(e,a,t),f[o].m(e,t),O(e,l,t),c=!0},p(e,t){var n,o;null!=(n=e[2])&&n.icon&&"inline"!==e[1]?u?6&t&&fe(u,1):(u=Ap(),u.c(),fe(u,1),u.m(r.parentNode,r)):u&&(he(),ge(u,1,1,(()=>{u=null})),pe()),e[9]?d?512&t&&fe(d,1):(d=Ip(),d.c(),fe(d,1),d.m(i.parentNode,i)):d&&(he(),ge(d,1,1,(()=>{d=null})),pe()),null!=(o=e[2])&&o.message?h?(h.p(e,t),4&t&&fe(h,1)):(h=Tp(e),h.c(),fe(h,1),h.m(a.parentNode,a)):h&&(he(),ge(h,1,1,(()=>{h=null})),pe()),s.p(e,t)},i(e){c||(fe(u),fe(d),fe(h),fe(s),c=!0)},o(e){ge(u),ge(d),ge(h),ge(s),c=!1},d(e){u&&u.d(e),e&&P(r),d&&d.d(e),e&&P(i),h&&h.d(e),e&&P(a),f[o].d(e),e&&P(l)}}}function Np(e){let t,n,r;function i(t){e[16](t)}let a={ariaDescribedBy:e[7],id:Vp,needsFocus:e[8],$$slots:{default:[Up]},$$scope:{ctx:e}};return void 0!==e[0]&&(a.formEl=e[0]),t=new is({props:a}),Q.push((()=>we(t,"formEl",i))),{c(){be(t.$$.fragment)},m(e,n){ye(t,e,n),r=!0},p(e,[r]){let i={};128&r&&(i.ariaDescribedBy=e[7]),256&r&&(i.needsFocus=e[8]),262782&r&&(i.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,i.formEl=e[0],ae((()=>n=!1))),t.$set(i)},i(e){r||(fe(t.$$.fragment,e),r=!0)},o(e){ge(t.$$.fragment,e),r=!1},d(e){_e(t,e)}}}
1var Fp="genericStepFailureMessage",Bp="genericStepHeader",Vp="genericStepForm";function zp(e,t,n){let{allowWebAuthn:r=!0}=t,{componentStyle:i}=t,{form:a}=t,{formEl:o=null}=t,{step:s}=t,l=!1,c="",u=!1,d="",h="genericStepHeader",p=!1,f=!0,g=!1,m=ln.getWebAuthnStepType(s);X((()=>{null!=a&&a.message?(n(7,h=Fp),n(4,l=!0),n(8,p=!1)):(n(7,h=Bp),n(4,l=!1),n(8,p=!0))}));return e.$$set=e=>{"allowWebAuthn"in e&&n(12,r=e.allowWebAuthn),"componentStyle"in e&&n(1,i=e.componentStyle),"form"in e&&n(2,a=e.form),"formEl"in e&&n(0,o=e.formEl),"step"in e&&n(13,s=e.step)},e.$$.update=()=>{20492&e.$$.dirty&&(n(6,d=za(null==a?void 0:a.message)),r&&!u&&(en.Registration===m&&!f||en.Authentication===m)&&async function(){try{switch(m){case en.Registration:try{await ln.register(s,c),n(14,u=!0)}catch(e){}break;case en.Authentication:await ln.authenticate(s)}}catch(e){}a.submit()}())},[o,i,a,f,l,c,d,h,p,g,m,function(e){let t=e.target;n(5,c=t.value)},r,s,u,()=>{n(3,f=!1),n(9,g=!0)},function(e){o=e,n(0,o)}]}var jp=class extends Se{constructor(e){super(),$e(this,e,zp,Np,_,{allowWebAuthn:12,componentStyle:1,form:2,formEl:0,step:13})}};function Hp(e){let t,n;return{c(){t=D("svg"),n=D("path"),V(n,"fill-rule","evenodd"),V(n,"d","M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"class",e[0]),V(t,"fill","currentColor"),V(t,"viewBox","0 0 16 18")},m(e,r){O(e,t,r),T(t,n)},p(e,[n]){2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1]),1&n&&V(t,"class",e[0])},i:g,o:g,d(e){e&&P(t)}}}function qp(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var Kp=class extends Se{constructor(e){super(),$e(this,e,qp,Hp,_,{classes:0,size:1})}};function Gp(e,t,n){let r=e.slice();return r[11]=t[n],r}function Wp(e){let t,n,r;return n=new Kp({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Zp(e){let t,n,r,i,a=e[11]+"";return{c(){t=L("li"),n=L("span"),r=R(a),i=U(),V(n,"class","tw_text-secondary-dark dark:tw_text-secondary-light"),V(t,"class","tw_text-center")},m(e,a){O(e,t,a),T(t,n),T(n,r),T(t,i)},p(e,t){64&t&&a!==(a=e[11]+"")&&j(r,a)},d(e){e&&P(t)}}}function Yp(e){let t,n;return t=new yo({props:{key:"nextButton"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Xp(e){var t,n;let r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k,$,S,E,x=(null==(t=e[2])?void 0:t.icon)&&"inline"!==e[1]&&Wp();o=new yo({props:{key:"yourMultiFactorAuthIsEnabled"}}),c=new yo({props:{key:"useThisNewMfaToHelpVerifyYourIdentity"}}),f=new yo({props:{key:"dontGetLockedOut"}}),v=new yo({props:{html:!0,key:"yourRecoveryCodesToAccessAccountForLostDevice"}});let C=e[6],A=[];for(let I=0;I<C.length;I+=1)A[I]=Zp(Gp(e,C,I));return k=new yo({props:{html:!0,key:"useOneOfTheseCodes",values:{name:e[7]}}}),S=new ts({props:{busy:null==(n=e[3])?void 0:n.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[Yp]},$$scope:{ctx:e}}}),{c(){x&&x.c(),r=U(),i=L("header"),a=L("h1"),be(o.$$.fragment),s=U(),l=L("p"),be(c.$$.fragment),u=U(),d=L("hr"),h=U(),p=L("h2"),be(f.$$.fragment),g=U(),m=L("p"),be(v.$$.fragment),w=U(),b=L("ol");for(let e=0;e<A.length;e+=1)A[e].c();y=U(),_=L("p"),be(k.$$.fragment),$=U(),be(S.$$.fragment),V(a,"class","tw_primary-header dark:tw_primary-header_dark"),V(l,"class","tw_-mt-5 tw_mb-2 tw_py-4 tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light"),V(i,"id",Qp),V(d,"class","tw_border-collapse tw_border-secondary-light dark:tw_border-secondary-dark tw_mb-8"),V(p,"class","tw_secondary-header dark:tw_secondary-header_dark tw_text-lg"),V(m,"class","tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"),V(b,"class","tw_font-mono tw_border tw_border-secondary-light dark:tw_border-secondary-dark tw_bg-white dark:tw_bg-body-dark tw_list-decimal tw_text-secondary-light dark:tw_text-secondary-light tw_py-4 tw_list-inside tw_rounded-md tw_mb-4 tw_columns-2"),V(_,"class","tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6")},m(e,t){x&&x.m(e,t),O(e,r,t),O(e,i,t),T(i,a),ye(o,a,null),T(i,s),T(i,l),ye(c,l,null),O(e,u,t),O(e,d,t),O(e,h,t),O(e,p,t),ye(f,p,null),O(e,g,t),O(e,m,t),ye(v,m,null),O(e,w,t),O(e,b,t);for(let n=0;n<A.length;n+=1)A[n].m(b,null);O(e,y,t),O(e,_,t),ye(k,_,null),O(e,$,t),ye(S,e,t),E=!0},p(e,t){var n,i;if(null!=(n=e[2])&&n.icon&&"inline"!==e[1]?x?6&t&&fe(x,1):(x=Wp(),x.c(),fe(x,1),x.m(r.parentNode,r)):x&&(he(),ge(x,1,1,(()=>{x=null})),pe()),64&t){let n;for(C=e[6],n=0;n<C.length;n+=1){let r=Gp(e,C,n);A[n]?A[n].p(r,t):(A[n]=Zp(r),A[n].c(),A[n].m(b,null))}for(;n<A.length;n+=1)A[n].d(1);A.length=C.length}let a={};128&t&&(a.values={name:e[7]}),k.$set(a);let o={};8&t&&(o.busy=null==(i=e[3])?void 0:i.loading),16384&t&&(o.$$scope={dirty:t,ctx:e}),S.$set(o)},i(e){E||(fe(x),fe(o.$$.fragment,e),fe(c.$$.fragment,e),fe(f.$$.fragment,e),fe(v.$$.fragment,e),fe(k.$$.fragment,e),fe(S.$$.fragment,e),E=!0)},o(e){ge(x),ge(o.$$.fragment,e),ge(c.$$.fragment,e),ge(f.$$.fragment,e),ge(v.$$.fragment,e),ge(k.$$.fragment,e),ge(S.$$.fragment,e),E=!1},d(e){x&&x.d(e),e&&P(r),e&&P(i),_e(o),_e(c),e&&P(u),e&&P(d),e&&P(h),e&&P(p),_e(f),e&&P(g),e&&P(m),_e(v),e&&P(w),e&&P(b),M(A,e),e&&P(y),e&&P(_),_e(k),e&&P($),_e(S,e)}}}function Jp(e){let t,n,r;function i(t){e[10](t)}let a={ariaDescribedBy:e[4],id:ef,needsFocus:e[5],onSubmitWhenValid:e[9],$$slots:{default:[Xp]},$$scope:{ctx:e}};return void 0!==e[0]&&(a.formEl=e[0]),t=new is({props:a}),Q.push((()=>we(t,"formEl",i))),{c(){be(t.$$.fragment)},m(e,n){ye(t,e,n),r=!0},p(e,[r]){let i={};16&r&&(i.ariaDescribedBy=e[4]),32&r&&(i.needsFocus=e[5]),4&r&&(i.onSubmitWhenValid=e[9]),16590&r&&(i.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,i.formEl=e[0],ae((()=>n=!1))),t.$set(i)},i(e){r||(fe(t.$$.fragment,e),r=!0)},o(e){ge(t.$$.fragment,e),r=!1},d(e){_e(t,e)}}}var Qp="genericStepHeader",ef="genericStepForm";function tf(e,t,n){let{componentStyle:r}=t,{form:i}=t,{formEl:a=null}=t,{journey:o}=t,{step:s}=t,l="genericStepHeader",c=!1,u=[],d="New Security Key";X((()=>{null!=i&&i.message?(n(4,l="genericStepFailureMessage"),n(5,c=!1)):(n(4,l=Qp),n(5,c=!0))}));return e.$$set=e=>{"componentStyle"in e&&n(1,r=e.componentStyle),"form"in e&&n(2,i=e.form),"formEl"in e&&n(0,a=e.formEl),"journey"in e&&n(3,o=e.journey),"step"in e&&n(8,s=e.step)},e.$$.update=()=>{256&e.$$.dirty&&(n(6,u=Lt.getCodes(s)),n(7,d=Lt.getDeviceName(s)))},[a,r,i,o,l,c,u,d,s,()=>i.submit(),function(e){a=e,n(0,a)}]}var nf=class extends Se{constructor(e){super(),$e(this,e,tf,Jp,_,{componentStyle:1,form:2,formEl:0,journey:3,step:8})}};function rf(e){let t,n,r,i,a=e[3].default,o=E(a,e,e[2],null);return{c(){t=D("svg"),n=D("path"),r=D("title"),o&&o.c(),V(n,"fill-rule","evenodd"),V(n,"d","M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z"),V(t,"class",e[0]),V(t,"width",e[1]),V(t,"height",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,a){O(e,t,a),T(t,n),T(t,r),o&&o.m(r,null),i=!0},p(e,[n]){o&&o.p&&(!i||4&n)&&A(o,a,e,e[2],i?C(a,e[2],n,null):I(e[2]),null),(!i||1&n)&&V(t,"class",e[0]),(!i||2&n)&&V(t,"width",e[1]),(!i||2&n)&&V(t,"height",e[1])},i(e){i||(fe(o,e),i=!0)},o(e){ge(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function af(e,t,n){let{$$slots:r={},$$scope:i}=t,{classes:a=""}=t,{size:o="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,a=e.classes),"size"in e&&n(1,o=e.size),"$$scope"in e&&n(2,i=e.$$scope)},[a,o,i,r]}var of=class extends Se{constructor(e){super(),$e(this,e,af,rf,_,{classes:0,size:1})}};function sf(e){let t,n;return{c(){t=D("svg"),n=D("path"),V(n,"d","M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"width",e[1]),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,r){O(e,t,r),T(t,n)},p(e,[n]){1&n&&V(t,"class",e[0]),2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1])},i:g,o:g,d(e){e&&P(t)}}}function lf(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var cf=class extends Se{constructor(e){super(),$e(this,e,lf,sf,_,{classes:0,size:1})}};function uf(e){var t;let n=e.slice(),r={callback:n[10],callbackMetadata:null==(t=n[1])?void 0:t.callbacks[n[15]],options:{inline:!0},selfSubmitFunction:n[16],style:n[14]};return n[22]=r,n}function df(e,t,n){let r=e.slice();return r[23]=t[n],r[25]=n,r}function hf(e){var t;let n,r,i,a,o,s,l,c=(null==(t=e[0])?void 0:t.icon)&&pf();return i=new yo({props:{key:"twoFactorAuthentication"}}),s=new yo({props:{key:"scanQrCodeWithAuthenticator"}}),{c(){c&&c.c(),n=U(),r=L("h1"),be(i.$$.fragment),a=U(),o=L("p"),be(s.$$.fragment),V(r,"class","tw_primary-header dark:tw_primary-header_dark"),V(o,"class","tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light")},m(e,t){c&&c.m(e,t),O(e,n,t),O(e,r,t),ye(i,r,null),O(e,a,t),O(e,o,t),ye(s,o,null),l=!0},p(e,t){var r;null!=(r=e[0])&&r.icon?c?1&t&&fe(c,1):(c=pf(),c.c(),fe(c,1),c.m(n.parentNode,n)):c&&(he(),ge(c,1,1,(()=>{c=null})),pe())},i(e){l||(fe(c),fe(i.$$.fragment,e),fe(s.$$.fragment,e),l=!0)},o(e){ge(c),ge(i.$$.fragment,e),ge(s.$$.fragment,e),l=!1},d(e){c&&c.d(e),e&&P(n),e&&P(r),_e(i),e&&P(a),e&&P(o),_e(s)}}}function pf(e){let t,n,r;return n=new cf({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center tw_mb-6")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function ff(e){let t,n;return t=new Go({props:{id:"formFailureMessageAlert",needsFocus:e[5],type:"error",$$slots:{default:[gf]}
1,$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};32&n&&(r.needsFocus=e[5]),67108993&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function gf(e){var t;let n,r=Ba(e[7],null,null==(t=e[0])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;129&t&&r!==(r=Ba(e[7],null,null==(i=e[0])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function mf(e){let t,n,r,i,a,o;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_my-6 tw_w-24"}}),a=new yo({props:{key:"loading"}}),{c(){t=L("div"),be(n.$$.fragment),r=U(),i=L("p"),be(a.$$.fragment),V(i,"class","tw_text-secondary-dark dark:tw_text-secondary-light"),V(t,"class","tw_text-center")},m(e,s){O(e,t,s),ye(n,t,null),T(t,r),T(t,i),ye(a,i,null),o=!0},i(e){o||(fe(n.$$.fragment,e),fe(a.$$.fragment,e),o=!0)},o(e){ge(n.$$.fragment,e),ge(a.$$.fragment,e),o=!1},d(e){e&&P(t),_e(n),_e(a)}}}function vf(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[23],callbackMetadata:null==(t=e[1])?void 0:t.callbacks[e[25]],selfSubmitFunction:e[16],stepMetadata:(null==(n=e[1])?void 0:n.step)&&h({},e[1].step),style:e[14]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};16642&t&&(a.props={callback:e[23],callbackMetadata:null==(n=e[1])?void 0:n.callbacks[e[25]],selfSubmitFunction:e[16],stepMetadata:(null==(i=e[1])?void 0:i.step)&&h({},e[1].step),style:e[14]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function wf(e){let t,n,r=[e[22]],i={};for(let a=0;a<r.length;a+=1)i=m(i,r[a]);return t=new lu({props:i}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let i=115714&n?me(r,[ve(e[22])]):{};t.$set(i)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function bf(e){let t,n;return t=new yo({props:{key:"onMobileOpenInAuthenticator"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function yf(e){let t,n;return t=new yo({props:{key:"copyUrl"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function _f(e){var t;let n,r;return n=new ts({props:{busy:null==(t=e[4])?void 0:t.loading,style:"primary",type:"submit",width:"full",$$slots:{default:[kf]},$$scope:{ctx:e}}}),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),r=!0},p(e,t){var r;let i={};16&t&&(i.busy=null==(r=e[4])?void 0:r.loading),67108928&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){_e(n,e)}}}function kf(e){let t,n;return t=new yo({props:{key:e[6][0].text}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.key=e[6][0].text),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function $f(e){var t,n;let r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k,$,S,E,x,C,A,I,D,R,B,z="inline"!==e[3]&&hf(e),j=(null==(t=e[0])?void 0:t.message)&&ff(e),H=!e[9]&&mf(),q=e[8],K=[];for(let T=0;T<q.length;T+=1)K[T]=vf(df(e,q,T));let G=e=>ge(K[e],1,1,(()=>{K[e]=null})),W=e[10]&&wf(uf(e));h=new yo({props:{key:"qrCodeNotWorking"}}),g=new Ju({props:{href:e[12],classes:"tw_block tw_my-6",target:"_self",$$slots:{default:[bf]},$$scope:{ctx:e}}}),w=new yo({props:{key:"copyAndPasteUrlBelow"}}),k=new yo({props:{key:"url"}}),E=new of({props:{classes:"tw_fill-current tw_inline-block tw_align-top",size:"16",$$slots:{default:[yf]},$$scope:{ctx:e}}});let Z=(null==(n=e[6])?void 0:n.length)&&_f(e);return{c(){z&&z.c(),r=U(),j&&j.c(),i=U(),H&&H.c(),a=U(),o=L("canvas"),s=U();for(let e=0;e<K.length;e+=1)K[e].c();l=U(),W&&W.c(),c=U(),u=L("details"),d=L("summary"),be(h.$$.fragment),p=U(),f=L("div"),be(g.$$.fragment),m=U(),v=L("p"),be(w.$$.fragment),b=U(),y=L("div"),_=L("label"),be(k.$$.fragment),$=U(),S=L("button"),be(E.$$.fragment),x=U(),C=L("input"),A=U(),Z&&Z.c(),I=N(),V(o,"class","tw_m-auto tw_mb-6"),V(o,"data-testid","qr-code-canvas"),V(v,"class","tw_text-base tw_my-6"),V(_,"for","mfa-registration-url"),V(S,"class","tw_absolute tw_h-4 tw_bg-background-dark tw_right-1 tw_top-1 tw_shadow-[0_0_1rem_2rem_black] tw_shadow-background-light dark:tw_shadow-background-dark tw_text-secondary-dark dark:tw_text-secondary-light"),V(C,"class","tw_bg-transparent tw_border-none focus-visible:tw_outline-none tw_font-mono tw_w-full"),V(C,"id","mfa-registration-url"),C.value=e[12],V(y,"class","tw_relative tw_overflow-hidden"),V(f,"class","tw_overflow-hidden"),V(u,"class","tw_my-6 tw_text-secondary-dark dark:tw_text-secondary-light")}
1,m(t,n){z&&z.m(t,n),O(t,r,n),j&&j.m(t,n),O(t,i,n),H&&H.m(t,n),O(t,a,n),O(t,o,n),e[19](o),O(t,s,n);for(let e=0;e<K.length;e+=1)K[e].m(t,n);O(t,l,n),W&&W.m(t,n),O(t,c,n),O(t,u,n),T(u,d),ye(h,d,null),T(u,p),T(u,f),ye(g,f,null),T(f,m),T(f,v),ye(w,v,null),T(f,b),T(f,y),T(y,_),ye(k,_,null),T(y,$),T(y,S),ye(E,S,null),T(y,x),T(y,C),e[20](C),O(t,A,n),Z&&Z.m(t,n),O(t,I,n),D=!0,R||(B=F(S,"click",e[17]),R=!0)},p(e,t){var n,o;if("inline"!==e[3]?z?(z.p(e,t),8&t&&fe(z,1)):(z=hf(e),z.c(),fe(z,1),z.m(r.parentNode,r)):z&&(he(),ge(z,1,1,(()=>{z=null})),pe()),null!=(n=e[0])&&n.message?j?(j.p(e,t),1&t&&fe(j,1)):(j=ff(e),j.c(),fe(j,1),j.m(i.parentNode,i)):j&&(he(),ge(j,1,1,(()=>{j=null})),pe()),e[9]?H&&(he(),ge(H,1,1,(()=>{H=null})),pe()):H?512&t&&fe(H,1):(H=mf(),H.c(),fe(H,1),H.m(a.parentNode,a)),82178&t){let n;for(q=e[8],n=0;n<q.length;n+=1){let r=df(e,q,n);K[n]?(K[n].p(r,t),fe(K[n],1)):(K[n]=vf(r),K[n].c(),fe(K[n],1),K[n].m(l.parentNode,l))}for(he(),n=q.length;n<K.length;n+=1)G(n);pe()}e[10]?W?(W.p(uf(e),t),1024&t&&fe(W,1)):(W=wf(uf(e)),W.c(),fe(W,1),W.m(c.parentNode,c)):W&&(he(),ge(W,1,1,(()=>{W=null})),pe());let s={};4096&t&&(s.href=e[12]),67108864&t&&(s.$$scope={dirty:t,ctx:e}),g.$set(s);let u={};67108864&t&&(u.$$scope={dirty:t,ctx:e}),E.$set(u),(!D||4096&t&&C.value!==e[12])&&(C.value=e[12]),null!=(o=e[6])&&o.length?Z?(Z.p(e,t),64&t&&fe(Z,1)):(Z=_f(e),Z.c(),fe(Z,1),Z.m(I.parentNode,I)):Z&&(he(),ge(Z,1,1,(()=>{Z=null})),pe())},i(e){if(!D){fe(z),fe(j),fe(H);for(let e=0;e<q.length;e+=1)fe(K[e]);fe(W),fe(h.$$.fragment,e),fe(g.$$.fragment,e),fe(w.$$.fragment,e),fe(k.$$.fragment,e),fe(E.$$.fragment,e),fe(Z),D=!0}},o(e){ge(z),ge(j),ge(H),K=K.filter(Boolean);for(let t=0;t<K.length;t+=1)ge(K[t]);ge(W),ge(h.$$.fragment,e),ge(g.$$.fragment,e),ge(w.$$.fragment,e),ge(k.$$.fragment,e),ge(E.$$.fragment,e),ge(Z),D=!1},d(t){z&&z.d(t),t&&P(r),j&&j.d(t),t&&P(i),H&&H.d(t),t&&P(a),t&&P(o),e[19](null),t&&P(s),M(K,t),t&&P(l),W&&W.d(t),t&&P(c),t&&P(u),_e(h),_e(g),_e(w),_e(k),_e(E),e[20](null),t&&P(A),Z&&Z.d(t),t&&P(I),R=!1,B()}}}function Sf(e){var t;let n,r,i;function a(t){e[21](t)}let o={ariaDescribedBy:"formFailureMessageAlert",onSubmitWhenValid:null==(t=e[0])?void 0:t.submit,$$slots:{default:[$f]},$$scope:{ctx:e}};return void 0!==e[2]&&(o.formEl=e[2]),n=new is({props:o}),Q.push((()=>we(n,"formEl",a))),{c(){be(n.$$.fragment)},m(e,t){ye(n,e,t),i=!0},p(e,[t]){var i;let a={};1&t&&(a.onSubmitWhenValid=null==(i=e[0])?void 0:i.submit),67141627&t&&(a.$$scope={dirty:t,ctx:e}),!r&&4&t&&(r=!0,a.formEl=e[2],ae((()=>r=!1))),n.$set(a)},i(e){i||(fe(n.$$.fragment,e),i=!0)},o(e){ge(n.$$.fragment,e),i=!1},d(e){_e(n,e)}}}function Ef(e,t,n){let r;S(e,fo,(e=>n(14,r=e)));let i,a,o,s,{componentStyle:l}=t,{form:c}=t,{formEl:u=null}=t,{journey:d}=t,{metadata:h}=t,{step:p}=t,f=!1,g="",m=[],v=!1,w="";return X((()=>{n(5,f=!(null==c||!c.message))})),Y((()=>{!async function(){try{let e=await Promise.resolve().then((function(){return Xm}));n(9,v=!0),n(12,w=Mt.getQRCodeData(p).uri),e.toCanvas(o,w,{errorCorrectionLevel:"L",version:20,width:400},(function(e){e&&(n(0,c.message=Ba("qrCodeFailedToRender"),c),console.error(e))}))}catch(e){n(0,c.message=Ba("qrCodeImportFailure"),c),console.error("Failed to import QR Code library")}}()})),e.$$set=e=>{"componentStyle"in e&&n(3,l=e.componentStyle),"form"in e&&n(0,c=e.form),"formEl"in e&&n(2,u=e.formEl),"journey"in e&&n(4,d=e.journey),"metadata"in e&&n(1,h=e.metadata),"step"in e&&n(18,p=e.step)},e.$$.update=()=>{if(262147&e.$$.dirty){h&&n(1,h.step.derived.stageName="QRCode",h);let e=p.getCallbacksOfType(je.ConfirmationCallback);if(e.length){let t=e[0];n(6,i=t.getOptions().map(((e,t)=>({value:`${t}`,text:e}))))}p.callbacks.forEach(((e,t)=>{e.getType()===je.PollingWaitCallback&&n(10,a=e)})),n(7,g=za(null==c?void 0:c.message)),n(8,m=p.callbacks.filter((e=>e.getType()!==je.TextOutputCallback&&e.getType()!==je.ConfirmationCallback&&e.getType()!==je.PollingWaitCallback)))}},[c,h,u,l,d,f,i,g,m,v,a,o,w,s,r,undefined,function(){var e;null!=(e=null==h?void 0:h.step)&&e.derived.isStepSelfSubmittable()&&(null==c||c.submit())},async function(){s.select(),document.execCommand("copy")},p,function(e){Q[e?"unshift":"push"]((()=>{o=e,n(11,o)}))},function(e){Q[e?"unshift":"push"]((()=>{s=e,n(13,s)}))},function(e){u=e,n(2,u)}]}var xf=class extends Se{constructor(e){super(),$e(this,e,Ef,Sf,_,{componentStyle:3,form:0,formEl:2,journey:4,metadata:1,step:18})}};function Cf(e){let t,n;return{c(){t=D("svg"),n=D("path"),V(n,"d","M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"),V(t,"class",e[0]),V(t,"height",e[1]),V(t,"width",e[1]),V(t,"viewBox","0 0 16 16"),V(t,"xmlns","http://www.w3.org/2000/svg")},m(e,r){O(e,t,r),T(t,n)},p(e,[n]){1&n&&V(t,"class",e[0]),2&n&&V(t,"height",e[1]),2&n&&V(t,"width",e[1])},i:g,o:g,d(e){e&&P(t)}}}function Af(e,t,n){let{classes:r=""}=t,{size:i="24px"}=t;return e.$$set=e=>{"classes"in e&&n(0,r=e.classes),"size"in e&&n(1,i=e.size)},[r,i]}var If=class extends Se{constructor(e){super(),$e(this,e,Af,Cf,_,{classes:0,size:1})}};function Tf(e,t,n){let r=e.slice();return r[16]=t[n],r[18]=n,r}function Of(e){let t,n,r;return n=new If({props:{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_flex tw_justify-center")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Pf(e){let t,n;return t=new Go({props:{id:Uf,needsFocus:e[6],type:"error",$$slots:{default:[Mf]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p(e,n){let r={};64&n&&(r.needsFocus=e[6]),524420&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Mf(e){var t;let n,r=Ba(e[7],null,null==(t=e[2])?void 0:t.message)+"";return{c(){n=R(r)},m(e,t){O(e,n,t)},p(e,t){var i;132&t&&r!==(r=Ba(e[7],null,null==(i=e[2])?void 0:i.message)+"")&&j(n,r)},d(e){e&&P(n)}}}function Lf(e){var t,n;let r,i;return r=new gh({props:{props:{callback:e[16],callbackMetadata:null==(t=e[4])?void 0:t.callbacks[e[18]],selfSubmitFunction:e[12],stepMetadata:(null==(n=e[4])?void 0:n.step)&&h({},e[4].step),style:e[11]}}}),{c(){be(r.$$.fragment)},m(e,t){ye(r,e,t),i=!0},p(e,t){var n,i;let a={};2096&t&&(a.props={callback:e[16],callbackMetadata:null==(n=e[4])?void 0:n.callbacks[e[18]],selfSubmitFunction:e[12],stepMetadata:(null==(i=e[4])?void 0:i.step)&&h({},e[4].step),style:e[11]}),r.$set(a)},i(e){i||(fe(r.$$.fragment,e),i=!0)},o(e){ge(r.$$.fragment,e),i=!1},d(e){_e(r,e)}}}function Df(e){var t,n,r,i;let a,o,s,l,c,u,d,h,p,f=(null==(t=e[2])?void 0:t.icon)&&"inline"!==e[1]&&Of();l=new cs({props:{html:!0,string:(null==(n=e[5])?void 0:n.getHeader())||Ba("checkYourEmail")}});let g=(null==(r=e[2])?void 0:r.message)&&Pf(e),m=null==(i=e[5])?void 0:i.callbacks,v=[];for(let b=0;b<m.length;b+=1)v[b]=Lf(Tf(e,m,b));let w=e=>ge(v[e],1,1,(()=>{v[e]=null}));return h=new ms({props:{journey:e[3]}}),{c(){f&&f.c(),a=U(),o=L("header"),s=L("h1"),be(l.$$.fragment),c=U(),g&&g.c(),u=U();for(let e=0;e<v.length;e+=1)v[e].c();d=U(),be(h.$$.fragment),V(s,"class","tw_primary-header dark:tw_primary-header_dark"),V(o,"id",Nf)}
1,m(t,n){f&&f.m(t,n),O(t,a,n),O(t,o,n),T(o,s),ye(l,s,null),e[14](o),O(t,c,n),g&&g.m(t,n),O(t,u,n);for(let e=0;e<v.length;e+=1)v[e].m(t,n);O(t,d,n),ye(h,t,n),p=!0},p(e,t){var n,r,i,o;null!=(n=e[2])&&n.icon&&"inline"!==e[1]?f?6&t&&fe(f,1):(f=Of(),f.c(),fe(f,1),f.m(a.parentNode,a)):f&&(he(),ge(f,1,1,(()=>{f=null})),pe());let s={};if(32&t&&(s.string=(null==(r=e[5])?void 0:r.getHeader())||Ba("checkYourEmail")),l.$set(s),null!=(i=e[2])&&i.message?g?(g.p(e,t),4&t&&fe(g,1)):(g=Pf(e),g.c(),fe(g,1),g.m(u.parentNode,u)):g&&(he(),ge(g,1,1,(()=>{g=null})),pe()),6192&t){let n;for(m=null==(o=e[5])?void 0:o.callbacks,n=0;n<m.length;n+=1){let r=Tf(e,m,n);v[n]?(v[n].p(r,t),fe(v[n],1)):(v[n]=Lf(r),v[n].c(),fe(v[n],1),v[n].m(d.parentNode,d))}for(he(),n=m.length;n<v.length;n+=1)w(n);pe()}let c={};8&t&&(c.journey=e[3]),h.$set(c)},i(e){if(!p){fe(f),fe(l.$$.fragment,e),fe(g);for(let e=0;e<m.length;e+=1)fe(v[e]);fe(h.$$.fragment,e),p=!0}},o(e){ge(f),ge(l.$$.fragment,e),ge(g),v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)ge(v[t]);ge(h.$$.fragment,e),p=!1},d(t){f&&f.d(t),t&&P(a),t&&P(o),_e(l),e[14](null),t&&P(c),g&&g.d(t),t&&P(u),M(v,t),t&&P(d),_e(h,t)}}}function Rf(e){let t,n,r;function i(t){e[15](t)}let a={ariaDescribedBy:e[8],id:Ff,needsFocus:e[9],onSubmitWhenValid:e[13],$$slots:{default:[Df]},$$scope:{ctx:e}};return void 0!==e[0]&&(a.formEl=e[0]),t=new is({props:a}),Q.push((()=>we(t,"formEl",i))),{c(){be(t.$$.fragment)},m(e,n){ye(t,e,n),r=!0},p(e,[r]){let i={};256&r&&(i.ariaDescribedBy=e[8]),512&r&&(i.needsFocus=e[9]),527614&r&&(i.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,i.formEl=e[0],ae((()=>n=!1))),t.$set(i)},i(e){r||(fe(t.$$.fragment,e),r=!0)},o(e){ge(t.$$.fragment,e),r=!1},d(e){_e(t,e)}}}var Uf="genericStepFailureMessage",Nf="genericStepHeader",Ff="genericStepForm";function Bf(e,t,n){let r;S(e,fo,(e=>n(11,r=e)));let i,{componentStyle:a}=t,{form:o}=t,{formEl:s=null}=t,{journey:l}=t,{metadata:c}=t,{step:u}=t,d=!1,h="",p="genericStepHeader",f=!1;function g(){n(6,d=!1),n(9,f=!1),null==o||o.submit()}return X((()=>{null!=o&&o.message?(n(8,p=Uf),n(6,d=!0),n(9,f=!1)):(n(8,p=Nf),n(6,d=!1),n(9,f=!0))})),Y((()=>vs(i,l))),e.$$set=e=>{"componentStyle"in e&&n(1,a=e.componentStyle),"form"in e&&n(2,o=e.form),"formEl"in e&&n(0,s=e.formEl),"journey"in e&&n(3,l=e.journey),"metadata"in e&&n(4,c=e.metadata),"step"in e&&n(5,u=e.step)},e.$$.update=()=>{36&e.$$.dirty&&(Ha(u)&&kt.redirect(u),n(7,h=za(null==o?void 0:o.message)))},[s,a,o,l,c,u,d,h,p,f,i,r,function(){var e;null!=(e=null==c?void 0:c.step)&&e.derived.isStepSelfSubmittable()&&g()},g,function(e){Q[e?"unshift":"push"]((()=>{i=e,n(10,i)}))},function(e){s=e,n(0,s)}]}var Vf=class extends Se{constructor(e){super(),$e(this,e,Bf,Rf,_,{componentStyle:1,form:2,formEl:0,journey:3,metadata:4,step:5})}};function zf(e){if(!e||"Step"!==e.type)return Mh;switch((null==e?void 0:e.getStage)&&e.getStage()){case"OneTimePassword":return Yh;case"DefaultRegistration":return dp;case"DefaultLogin":return Sp}return ln.getWebAuthnStepType(e)?jp:Lt.isDisplayStep(e)?nf:Mt.isQRCodeStep(e)?xf:e.getCallbacksOfType(je.SuspendedTextOutputCallback).length>0?Vf:Mh}function jf(e){let t,n,r,i;return t=new Go({props:{id:"unrecoverableStepError",needsFocus:e[4],type:"error",$$slots:{default:[Kf]},$$scope:{ctx:e}}}),r=new ts({props:{style:"secondary",onClick:e[7],$$slots:{default:[Gf]},$$scope:{ctx:e}}}),{c(){be(t.$$.fragment),n=U(),be(r.$$.fragment)},m(e,a){ye(t,e,a),O(e,n,a),ye(r,e,a),i=!0},p(e,n){let i={};16&n&&(i.needsFocus=e[4]),512&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i);let a={};512&n&&(a.$$scope={dirty:n,ctx:e}),r.$set(a)},i(e){i||(fe(t.$$.fragment,e),fe(r.$$.fragment,e),i=!0)},o(e){ge(t.$$.fragment,e),ge(r.$$.fragment,e),i=!1},d(e){_e(t,e),e&&P(n),_e(r,e)}}}function Hf(e){let t,n,r;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_text-center tw_w-full tw_py-4")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},p:g,i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function qf(e){let t,n,r,i,a=[Zf,Wf],o=[];function s(e,t){var n;return e[5]&&!e[5].step?0:(null==(n=e[5].step)?void 0:n.type)===Ze.Step?1:-1}return~(t=s(e))&&(n=o[t]=a[t](e)),{c(){n&&n.c(),r=N()},m(e,n){~t&&o[t].m(e,n),O(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?~t&&o[t].p(e,i):(n&&(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe()),~t?(n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r)):n=null)},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){~t&&o[t].d(e),e&&P(r)}}}function Kf(e){let t,n;return t=new yo({props:{html:!0,key:"unrecoverableError"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Gf(e){let t,n;return t=new yo({props:{key:"tryAgain"}}),{c(){be(t.$$.fragment)},m(e,r){ye(t,e,r),n=!0},p:g,i(e){n||(fe(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){_e(t,e)}}}function Wf(e){let t,n,r,i;function a(t){e[8](t)}var o=zf(e[5].step);function s(e){var t,n;let r={componentStyle:e[1],form:{icon:e[2],message:(null==(t=e[5].error)?void 0:t.message)||"",status:null!=(n=e[5].error)&&n.c
1ode?"error":"ok",submit:e[6]},journey:{loading:e[5].loading,pop:e[3].pop,push:e[3].push,stack:no},metadata:e[5].metadata,step:e[5].step};return void 0!==e[0]&&(r.formEl=e[0]),{props:r}}return o&&(t=G(o,s(e)),Q.push((()=>we(t,"formEl",a)))),{c(){t&&be(t.$$.fragment),r=N()},m(e,n){t&&ye(t,e,n),O(e,r,n),i=!0},p(e,i){var l,c;let u={};if(2&i&&(u.componentStyle=e[1]),36&i&&(u.form={icon:e[2],message:(null==(l=e[5].error)?void 0:l.message)||"",status:null!=(c=e[5].error)&&c.code?"error":"ok",submit:e[6]}),40&i&&(u.journey={loading:e[5].loading,pop:e[3].pop,push:e[3].push,stack:no}),32&i&&(u.metadata=e[5].metadata),32&i&&(u.step=e[5].step),!n&&1&i&&(n=!0,u.formEl=e[0],ae((()=>n=!1))),o!==(o=zf(e[5].step))){if(t){he();let e=t;ge(e.$$.fragment,1,0,(()=>{_e(e,1)})),pe()}o?(t=G(o,s(e)),Q.push((()=>we(t,"formEl",a))),be(t.$$.fragment),fe(t.$$.fragment,1),ye(t,r.parentNode,r)):t=null}else o&&t.$set(u)},i(e){i||(t&&fe(t.$$.fragment,e),i=!0)},o(e){t&&ge(t.$$.fragment,e),i=!1},d(e){e&&P(r),t&&_e(t,e)}}}function Zf(e){let t,n,r;return n=new Yo({props:{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}}),{c(){t=L("div"),be(n.$$.fragment),V(t,"class","tw_text-center tw_w-full tw_py-4")},m(e,i){O(e,t,i),ye(n,t,null),r=!0},p:g,i(e){r||(fe(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){e&&P(t),_e(n)}}}function Yf(e){let t,n,r,i,a=[qf,Hf,jf],o=[];function s(e,t){return e[5]&&!e[5].completed?0:e[5]&&e[5].successful?1:2}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}function Xf(e,t,n){let r,i=g,a=()=>(i(),i=k(c,(e=>n(5,r=e))),c);e.$$.on_destroy.push((()=>i()));let{componentStyle:o}=t,{displayIcon:s}=t,{formEl:l=null}=t,{journeyStore:c}=t;a(),r||console.error("Widget missing configuration. Import and call `configuration()`, then use `set()` to configure.");let u=!1;return X((()=>{n(4,u=r&&!r.successful)})),e.$$set=e=>{"componentStyle"in e&&n(1,o=e.componentStyle),"displayIcon"in e&&n(2,s=e.displayIcon),"formEl"in e&&n(0,l=e.formEl),"journeyStore"in e&&a(n(3,c=e.journeyStore))},[l,o,s,c,u,r,function(){null==c||c.next(r.step)},function(){null==c||c.reset(),null==c||c.next()},function(e){l=e,n(0,l)}]}var Jf=class extends Se{constructor(e){super(),$e(this,e,Xf,Yf,_,{componentStyle:1,displayIcon:2,formEl:0,journeyStore:3})}};function Qf(e){var t,n,r;let i,a,o,s;function l(t){e[9](t)}let c={componentStyle:"inline",displayIcon:null==(r=null==(n=null==(t=e[4])?void 0:t.stage)?void 0:n.icon)||r,journeyStore:e[5]};return void 0!==e[3]&&(c.formEl=e[3]),a=new Jf({props:c}),Q.push((()=>we(a,"formEl",l))),{c(){i=L("div"),be(a.$$.fragment),V(i,"class","fr_widget-root")},m(e,t){O(e,i,t),ye(a,i,null),s=!0},p(e,t){var n,r,i;let s={};16&t&&(s.displayIcon=null==(i=null==(r=null==(n=e[4])?void 0:n.stage)?void 0:r.icon)||i),!o&&8&t&&(o=!0,s.formEl=e[3],ae((()=>o=!1))),a.$set(s)},i(e){s||(fe(a.$$.fragment,e),s=!0)},o(e){ge(a.$$.fragment,e),s=!1},d(e){e&&P(i),_e(a)}}}function eg(e){var t,n;let r,i,a,o;function s(t){e[7](t)}let l={dialogId:"sampleDialog",withHeader:null==(n=null==(t=e[4])?void 0:t.sections)?void 0:n.header,$$slots:{default:[tg]},$$scope:{ctx:e}};return void 0!==e[2]&&(l.dialogEl=e[2]),i=new Oo({props:l}),Q.push((()=>we(i,"dialogEl",s))),e[8](i),{c(){r=L("div"),be(i.$$.fragment),V(r,"class","fr_widget-root")},m(e,t){O(e,r,t),ye(i,r,null),o=!0},p(e,t){var n,r;let o={};16&t&&(o.withHeader=null==(r=null==(n=e[4])?void 0:n.sections)?void 0:r.header),1048&t&&(o.$$scope={dirty:t,ctx:e}),!a&&4&t&&(a=!0,o.dialogEl=e[2],ae((()=>a=!1))),i.$set(o)},i(e){o||(fe(i.$$.fragment,e),o=!0)},o(e){ge(i.$$.fragment,e),o=!1},d(t){t&&P(r),e[8](null),_e(i)}}}function tg(e){var t,n,r,i;let a,o,s;function l(t){e[6](t)}let c={componentStyle:"modal",displayIcon:null!=(i=null==(n=null==(t=e[4])?void 0:t.stage)?void 0:n.icon)?i:!(null!=(r=e[4])&&r.logo),journeyStore:e[5]};return void 0!==e[3]&&(c.formEl=e[3]),a=new Jf({props:c}),Q.push((()=>
1we(a,"formEl",l))),{c(){be(a.$$.fragment)},m(e,t){ye(a,e,t),s=!0},p(e,t){var n,r,i,s;let l={};16&t&&(l.displayIcon=null!=(s=null==(r=null==(n=e[4])?void 0:n.stage)?void 0:r.icon)?s:!(null!=(i=e[4])&&i.logo)),!o&&8&t&&(o=!0,l.formEl=e[3],ae((()=>o=!1))),a.$set(l)},i(e){s||(fe(a.$$.fragment,e),s=!0)},o(e){ge(a.$$.fragment,e),s=!1},d(e){_e(a,e)}}}function ng(e){let t,n,r,i,a=[eg,Qf],o=[];function s(e,t){return"modal"===e[0]?0:1}return t=s(e),n=o[t]=a[t](e),{c(){n.c(),r=N()},m(e,n){o[t].m(e,n),O(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?o[t].p(e,i):(he(),ge(o[l],1,1,(()=>{o[l]=null})),pe(),n=o[t],n?n.p(e,i):(n=o[t]=a[t](e),n.c()),fe(n,1),n.m(r.parentNode,r))},i(e){i||(fe(n),i=!0)},o(e){ge(n),i=!1},d(e){o[t].d(e),e&&P(r)}}}var rg=function(e){let t,n,r;function i(){t.reset(),n.reset(),r.reset()}let a={info(){(!t||!n||!r)&&mn("missingStores");let{get:e,subscribe:i}=r;return{get:function(t){return e(t),new Promise(((e,t)=>{let n=r.subscribe((r=>{r.successful?(e(r),n()):r.error&&(t(r),n())}))}))},subscribe:i}},async logout(){(!t||!n||!r)&&mn("missingStores");let e,{clientId:a}=De.get();e=a?Xt:Wt;try{await e.logout(),i()}catch(o){throw i(),o}},tokens(){(!t||!n||!r)&&mn("missingStores");let{get:e,subscribe:i}=n;return{get:function(t){return e(t),new Promise(((e,t)=>{let r=n.subscribe((n=>{n.successful?(e(n),r()):n.error&&(t(n),r())}))}))},subscribe:i}}};return{component:e,configuration:e=>(null!=e&&e.forgerock&&Si(p(h({clientId:"WebLoginWidgetClient",realmPath:"alpha",redirectUri:"object"==typeof window?`${window.location.origin}${window.location.pathname}`:"https://localhost:3000/callback",scope:"openid email"},null==e?void 0:e.forgerock),{support:"legacy"})),t=to(null==e?void 0:e.forgerock),n=lo(null==e?void 0:e.forgerock),r=uo(null==e?void 0:e.forgerock),Na(null==e?void 0:e.content),Ti(null==e?void 0:e.journeys),ao(null==e?void 0:e.links),go(null==e?void 0:e.style),{set(e){null!=e&&e.forgerock&&Si(p(h({clientId:"WebLoginWidgetClient",realmPath:"alpha",redirectUri:"object"==typeof window?window.location.href:"https://localhost:3000/callback",scope:"openid email"},null==e?void 0:e.forgerock),{support:"legacy"})),t=to(null==e?void 0:e.forgerock),n=lo(null==e?void 0:e.forgerock),r=uo(null==e?void 0:e.forgerock),Na(null==e?void 0:e.content),Ti(null==e?void 0:e.journeys),ao(null==e?void 0:e.links),go(null==e?void 0:e.style)}}),getStores:function(){return{journeyStore:t,oauthStore:n,userStore:r}},journey:i=>{var a,o;(!t||!n||!r)&&mn("missingStores");let s=null==(a=null==i?void 0:i.oauth)||a,l=null==(o=null==i?void 0:i.user)||o,{subscribe:c}=Ce([t,n,r],(([t,i,a],o)=>{o({journey:t,oauth:i,user:a}),(i.error||a.error)&&"modal"===u&&e.close({reason:"auto"}),t.successful&&i.successful&&a.completed?"modal"===u&&e.close({reason:"auto"}):t.successful&&i.successful?l&&!1===a.loading&&!1===a.completed?r.get():l||"modal"===u&&e.close({reason:"auto"}):t.successful&&(s&&!1===i.loading&&!1===i.completed?n.get():s||"modal"===u&&e.close({reason:"auto"}))})),u=null;function d(e){return n.reset(),r.reset(),u=$(Ae).type,null!=e&&e.resumeUrl?t.resume(e.resumeUrl):t.start(h(h({recaptchaAction:null==e?void 0:e.recaptchaAction},null==e?void 0:e.forgerock),(null==e?void 0:e.journey)&&{tree:null==e?void 0:e.journey})),new Promise(((e,t)=>{let n=c((r=>{(r.oauth.error||r.user.error)&&(t(r),n()),r.journey.successful&&r.oauth.successful&&r.user.completed?(e(r),n()):r.journey.successful&&r.oauth.successful?l||(e(r),n()):r.journey.successful&&(s||(e(r),n()))}))}))}return{change:function(e){return d(e)},start:d,subscribe:c}},protect:{start:gn.start.bind(gn),getData:gn.getData.bind(gn),pauseBehavioralData:gn.pauseBehavioralData.bind(gn),resumeBehavioralData:gn.resumeBehavioralData.bind(gn)},request:pn.request.bind(pn),user:a}}((()=>{let{update:e}=Ae,{subscribe:t}=Ce([Ae],(([e],t)=>{t({error:e.error,lastAction:e.lastAction,mounted:e.mounted,open:e.open,reason:e.reason})}));return{close:e=>{Ie(e,!0)},open:()=>{e((e=>{var t;return"inline"===e.type?(console.warn('Component type of "inline" has no `open` method'),e):null!=(t=e.modal)&&t.component?(e.modal.element.showModal(),p(h({},e),{lastAction:"open",open:!0,reason:null})):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),e)}))},subscribe:t}})()),ig=rg.configuration,ag=rg.journey,og=(rg.request,rg.user);rg.protect;function sg(e,t,n){let r;S(e,fo,(e=>n(4,r=e)));let i,a,o,{type:s="modal"}=t,{journeyStore:l}=rg.getStores();return Y((()=>{!function(e,t){Ae.update((n=>p(h({},n),{lastAction:"mount",modal:h({},e&&{component:e,element:t}),mounted:!0,type:e?"modal":"inline",reason:null})))}(i,a)})),e.$$set=e=>{"type"in e&&n(0,s=e.type)},[s,i,a,o,r,l,function(e){o=e,n(3,o)},function(e){a=e,n(2,a)},function(e){Q[e?"unshift":"push"]((()=>{i=e,n(1,i)}))},function(e){o=e,n(3,o)}]}var lg=class extends Se{constructor(e){super(),$e(this,e,sg,ng,_,{type:0})}};function cg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}typeof window<"u"&&(function(e){"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");
1return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n})}(window),function(){var e="st-ping-div";function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(n){t((function(){if(n){var t=(r=document.getElementById(e))||((r=document.createElement("div")).style.border="none",r.style.position="absolute",r.style.top="-999px",r.style.left="-999px",r.style.width="0",r.style.height="0",r.style.visibility="hidden",r.style.overflow="hidden",r.id=e,document.body.appendChild(r),r);window._pingOneSignalsToken=getComputedStyle(t,"::after").content.replace(/['"]+/g,""),document.dispatchEvent(new CustomEvent("PingOneSignalsTokenReadyEvent"))}var r,i;i="Finished - "+(n?"success":"failure"),window["enable-logs-pingOneSignals"]&&console.log(i)}))}var r,i,a,o,s=document.querySelector("script[data-pingOneSignalsSkipToken]");if(s&&"true"===s.getAttribute("data-pingOneSignalsSkipToken"))return window._pingOneSignalsToken="skipped_token_"+(new Date).getTime(),t((function(){document.dispatchEvent(new CustomEvent("PingOneSignalsTokenSkippedEvent"))}));window._pingOneSignalsToken||(window._pingOneSignalsToken="uninitialized_token_"+(new Date).getTime()),r=window._pingOneSignalsCustomHost||"apps.pingone.com",i={sdkVersion:"5.3.5w",platform:navigator.platform||""},a=encodeURIComponent(function(e){var t,n,r,i,a,o,s,l="",c=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128)),t+=String.fromCharCode(63&r|128))}return t}(e);c<e.length;)i=(t=e.charCodeAt(c++))>>2,a=(3&t)<<4|(n=e.charCodeAt(c++))>>4,o=(15&n)<<2|(r=e.charCodeAt(c++))>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),l=l+u.charAt(i)+u.charAt(a)+u.charAt(o)+u.charAt(s);return l}(function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e.charCodeAt(r)^t.charCodeAt(r%7);n.push(String.fromCharCode(i))}return n.join("")}(JSON.stringify(i),"dkiBm42"))),(o=document.createElement("link")).type="text/css",o.rel="stylesheet",o.href="https://"+r+"/signals/sdk/pong.css?body="+a+"&e=2",(document.head||document.getElementsByTagName("head")[0]).appendChild(o),o.onload=function(){n(!0)},o.onerror=function(){n(!1)}}(),function(e){e._POSignalsEntities||(e._POSignalsEntities={}),e._pingOneSignals&&console.warn("PingOne Signals script was imported multiple times")}(window),function(e){function t(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var n=setTimeout;function r(e){return!(!e||void 0===e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void l(t.promise,i)}s(t.promise,r)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void u((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(o){l(e,o)}var r,i}function l(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(r){if(n)return;n=!0,l(t,r)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},a.prototype.finally=t,a.all=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);
1if(0===i.length)return t([]);var a=i.length;function o(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var s=r.then;if("function"==typeof s)return void s.call(r,(function(t){o(e,t)}),n)}i[e]=r,0==--a&&t(i)}catch(l){n(l)}}for(var s=0;s<i.length;s++)o(s,i[s])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.race accepts an array"));for(var i=0,o=e.length;i<o;i++)a.resolve(e[i]).then(t,n)}))},a._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},a._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},"function"!=typeof e.Promise?e.Promise=a:e.Promise.prototype.finally||(e.Promise.prototype.finally=t)}(window),(ug||(ug={})).PromiseQueue=function(){var e=function(){};function t(e,t,n){this.options=n=n||{},this.pendingPromises=0,this.maxPendingPromises=void 0!==e?e:1/0,this.maxQueuedPromises=void 0!==t?t:1/0,this.queue=[]}return t.prototype.add=function(t){var n=this;return new Promise((function(r,i,a){n.queue.length>=n.maxQueuedPromises?i(new Error("Queue limit reached")):(n.queue.push({promiseGenerator:t,resolve:r,reject:i,notify:a||e}),n._dequeue())}))},t.prototype.getPendingLength=function(){return this.pendingPromises},t.prototype.getQueueLength=function(){return this.queue.length},t.prototype._dequeue=function(){var e=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var t,n=this.queue.shift();if(!n)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,(t=n.promiseGenerator(),t&&"function"==typeof t.then?t:new Promise((function(e){e(t)}))).then((function(t){e.pendingPromises--,n.resolve(t),e._dequeue()}),(function(t){e.pendingPromises--,n.reject(t),e._dequeue()}),(function(e){n.notify(e)}))}catch(r){e.pendingPromises--,n.reject(r),e._dequeue()}return!0},t}(),function(e){var t="input is invalid type",n=!e.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",r="0123456789abcdef".split(""),i=[-2147483648,8388608,32768,128],a=[24,16,8,0],o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=["hex","array","digest","arrayBuffer"],l=[];!e.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!n||!e.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var c=function(e,t){return function(n){return new p(t,!0).update(n)[e]()}},u=function(e){var t=c("hex",e);t.create=function(){return new p(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<s.length;++n){var r=s[n];t[r]=c(r,e)}return t},d=function(e,t){return function(n,r){return new f(n,t,!0).update(r)[e]()}},h=function(e){var t=d("hex",e);t.create=function(t){return new f(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<s.length;++n){var r=s[n];t[r]=d(r,e)}return t};function p(e,t){t?(l[0]=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0,this.blocks=l):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function f(e,r,i){var a,o=typeof e;if("string"===o){var s,l=[],c=e.length,u=0;for(a=0;a<c;++a)(s=e.charCodeAt(a))<128?l[u++]=s:s<2048?(l[u++]=192|s>>6,l[u++]=128|63&s):s<55296||s>=57344?(l[u++]=224|s>>12,l[u++]=128|s>>6&63,l[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),l[u++]=240|s>>18,l[u++]=128|s>>12&63,l[u++]=128|s>>6&63,l[u++]=128|63&s);e=l}else{if("object"!==o)throw new Error(t);if(null===e)throw new Error(t);
1if(n&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||n&&ArrayBuffer.isView(e)))throw new Error(t)}e.length>64&&(e=new p(r,!0).update(e).array());var d=[],h=[];for(a=0;a<64;++a){var f=e[a]||0;d[a]=92^f,h[a]=54^f}p.call(this,r,i),this.update(h),this.oKeyPad=d,this.inner=!0,this.sharedMemory=i}p.prototype.update=function(e){if(!this.finalized){var r,i=typeof e;if("string"!==i){if("object"!==i)throw new Error(t);if(null===e)throw new Error(t);if(n&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||n&&ArrayBuffer.isView(e)))throw new Error(t);r=!0}for(var o,s,l=0,c=e.length,u=this.blocks;l<c;){if(this.hashed&&(this.hashed=!1,u[0]=this.block,u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),r)for(s=this.start;l<c&&s<64;++l)u[s>>2]|=e[l]<<a[3&s++];else for(s=this.start;l<c&&s<64;++l)(o=e.charCodeAt(l))<128?u[s>>2]|=o<<a[3&s++]:o<2048?(u[s>>2]|=(192|o>>6)<<a[3&s++],u[s>>2]|=(128|63&o)<<a[3&s++]):o<55296||o>=57344?(u[s>>2]|=(224|o>>12)<<a[3&s++],u[s>>2]|=(128|o>>6&63)<<a[3&s++],u[s>>2]|=(128|63&o)<<a[3&s++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),u[s>>2]|=(240|o>>18)<<a[3&s++],u[s>>2]|=(128|o>>12&63)<<a[3&s++],u[s>>2]|=(128|o>>6&63)<<a[3&s++],u[s>>2]|=(128|63&o)<<a[3&s++]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=u[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},p.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=i[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},p.prototype.hash=function(){var e,t,n,r,i,a,s,l,c,u=this.h0,d=this.h1,h=this.h2,p=this.h3,f=this.h4,g=this.h5,m=this.h6,v=this.h7,w=this.blocks;for(e=16;e<64;++e)t=((i=w[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=w[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,w[e]=w[e-16]+t+w[e-7]+n|0;for(c=d&h,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,v=(i=w[0]-1413257819)-150054599|0,p=i+24177077|0):(a=704751109,v=(i=w[0]-210244248)-1521486534|0,p=i+143694565|0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(a=u&d)^u&h^c,v=p+(i=v+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&g^~f&m)+o[e]+w[e])|0,p=i+(t+r)|0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(s=p&u)^p&d^a,m=h+(i=m+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&f^~v&g)+o[e+1]+w[e+1])|0,t=((h=i+(t+r)|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(l=h&p)^h&u^s,g=d+(i=g+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&f)+o[e+2]+w[e+2])|0,t=((d=i+(t+r)|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(c=d&h)^d&p^l,f=u+(i=f+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&v)+o[e+3]+w[e+3])|0,u=i+(t+r)|0;this.h0=this.h0+u|0,this.h1=this.h1+d|0,this.h2=this.h2+h|0,this.h3=this.h3+p|0,this.h4=this.h4+f|0,this.h5=this.h5+g|0,this.h6=this.h6+m|0,this.h7=this.h7+v|0},p.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,a=this.h4,o=this.h5,s=this.h6,l=this.h7,c=r[e>>28&15]+r[e>>24&15]+r[e>>20&15]+r[e>>16&15]+r[e>>12&15]+r[e>>8&15]+r[e>>4&15]+r[15&e]+r[t>>28&15]+r[t>>24&15]+r[t>>20&15]+r[t>>16&15]+r[t>>12&15]+r[t>>8&15]+r[t>>4&15]+r[15&t]+r[n>>28&15]+r[n>>24&15]+r[n>>20&15]+r[n>>16&15]+r[n>>12&15]+r[n>>8&15]+r[n>>4&15]+r[15&n]+r[i>>28&15]+r[i>>24&15]+r[i>>20&15]+r[i>>16&15]+r[i>>12&15]+r[i>>8&15]+r[i>>4&15]+r[15&i]+r[a>>28&15]+r[a>>24&15]+r[a>>20&15]+r[a>>16&15]+r[a>>12&15]+r[a>>8&15]+r[a>>4&15]+r[15&a]+r[o>>28&15]+r[o>>24&15]+r[o>>20&15]+r[o>>16&15]+r[o>>12&15]+r[o>>8&15]+r[o>>4&15]+r[15&o]+r[s>>28&15]+r[s>>24&15]+r[s>>20&15]+r[s>>16&15]+r[s>>12&15]+r[s>>8&15]+r[s>>4&15]+r[15&s];return this.is224||(c+=r[l>>28&15]+r[l>>24&15]+r[l>>20&15]+r[l>>16&15]+r[l>>12&15]+r[l>>8&15]+r[l>>4&15]+r[15&l]),c},p.prototype.toString=p.prototype.hex,p.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,o=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},p.prototype.array=p.prototype.digest,p.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},f.prototype=new p,f.prototype.finalize=function(){if(p.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();p.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),p.prototype.finalize.call(this)}};var g=u();g.sha256=g,g.sha224=u(!0),g.sha256.hmac=h(),g.sha224.hmac=h(!0),e.sha256=g.sha256,e.sha224=g.sha224}(ug||(ug={})),(ug||(ug={})).FingerprintJS=function(e){function t(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function n(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function r(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function i(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function a(e,t){return[e[0]^t[0],e[1]^t[1]]}function o(e){return a(e=n(e=a(e=n(e=a(e,[0,e[0]>>>1]),[4283543511,3981806797]),[0,e[0]>>>1]),[3301882366,444984403]),[0,e[0]>>>1])}
1function s(e,s){s=s||0;var l,c=(e=e||"").length%16,u=e.length-c,d=[0,s],h=[0,s],p=[0,0],f=[0,0],g=[2277735313,289559509],m=[1291169091,658871167];for(l=0;l<u;l+=16)p=[255&e.charCodeAt(l+4)|(255&e.charCodeAt(l+5))<<8|(255&e.charCodeAt(l+6))<<16|(255&e.charCodeAt(l+7))<<24,255&e.charCodeAt(l)|(255&e.charCodeAt(l+1))<<8|(255&e.charCodeAt(l+2))<<16|(255&e.charCodeAt(l+3))<<24],f=[255&e.charCodeAt(l+12)|(255&e.charCodeAt(l+13))<<8|(255&e.charCodeAt(l+14))<<16|(255&e.charCodeAt(l+15))<<24,255&e.charCodeAt(l+8)|(255&e.charCodeAt(l+9))<<8|(255&e.charCodeAt(l+10))<<16|(255&e.charCodeAt(l+11))<<24],d=t(n(d=t(d=r(d=a(d,p=n(p=r(p=n(p,g),31),m)),27),h),[0,5]),[0,1390208809]),h=t(n(h=t(h=r(h=a(h,f=n(f=r(f=n(f,m),33),g)),31),d),[0,5]),[0,944331445]);switch(p=[0,0],f=[0,0],c){case 15:f=a(f,i([0,e.charCodeAt(l+14)],48));case 14:f=a(f,i([0,e.charCodeAt(l+13)],40));case 13:f=a(f,i([0,e.charCodeAt(l+12)],32));case 12:f=a(f,i([0,e.charCodeAt(l+11)],24));case 11:f=a(f,i([0,e.charCodeAt(l+10)],16));case 10:f=a(f,i([0,e.charCodeAt(l+9)],8));case 9:h=a(h,f=n(f=r(f=n(f=a(f,[0,e.charCodeAt(l+8)]),m),33),g));case 8:p=a(p,i([0,e.charCodeAt(l+7)],56));case 7:p=a(p,i([0,e.charCodeAt(l+6)],48));case 6:p=a(p,i([0,e.charCodeAt(l+5)],40));case 5:p=a(p,i([0,e.charCodeAt(l+4)],32));case 4:p=a(p,i([0,e.charCodeAt(l+3)],24));case 3:p=a(p,i([0,e.charCodeAt(l+2)],16));case 2:p=a(p,i([0,e.charCodeAt(l+1)],8));case 1:d=a(d,p=n(p=r(p=n(p=a(p,[0,e.charCodeAt(l)]),g),31),m))}return d=a(d,[0,e.length]),h=t(h=a(h,[0,e.length]),d=t(d,h)),d=o(d),h=t(h=o(h),d=t(d,h)),("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)}var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var d=window;function h(e){return parseInt(e)}function p(e){return parseFloat(e)}function f(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var g=window,m=navigator,v=document;function w(){return f(["MSCSSMatrix"in g,"msSetImmediate"in g,"msIndexedDB"in g,"msMaxTouchPoints"in m,"msPointerEnabled"in m])>=4}function b(){return f(["msWriteProfilerMark"in g,"MSStream"in g,"msLaunchUri"in m,"msSaveBlob"in m])>=3&&!w()}function y(){return f(["webkitPersistentStorage"in m,"webkitTemporaryStorage"in m,0===m.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in g,"BatteryManager"in g,"webkitMediaStream"in g,"webkitSpeechGrammar"in g])>=5}function _(){return f(["ApplePayError"in g,"CSSPrimitiveValue"in g,"Counter"in g,0===m.vendor.indexOf("Apple"),"getStorageUpdates"in m,"WebKitMediaKeys"in g])>=4}function k(){return f(["safari"in g,!("DeviceMotionEvent"in g),!("ongestureend"in g),!("standalone"in m)])>=3}var $=window,S=document;function E(e,t,n){var r;(r=t)&&"function"==typeof r.setValueAtTime&&t.setValueAtTime(n,e.currentTime)}function x(e){var t=new Error(e);return t.name=e,t}var C=document,A=["monospace","sans-serif","serif"],I=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera S
1ans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"],T={fontStyle:"normal",fontWeight:"normal",letterSpacing:"normal",lineBreak:"auto",lineHeight:"normal",textTransform:"none",textAlign:"left",textDecoration:"none",textShadow:"none",whiteSpace:"normal",wordBreak:"normal",wordSpacing:"normal",position:"absolute",left:"-9999px",fontSize:"48px"},O=navigator,P=window,M=navigator,L=window,D=window,R=window,U=document,N={osCpu:function(){return navigator.oscpu},languages:function(){var e=[],t=M.language||M.userLanguage||M.browserLanguage||M.systemLanguage;if(void 0!==t&&e.push([t]),Array.isArray(M.languages))y()&&f([!("MediaSettingsRange"in g),"RTCEncodedAudioFrame"in g,""+g.Intl=="[object Intl]",""+g.Reflect=="[object Reflect]"])>=3||e.push(M.languages);else if("string"==typeof M.languages){var n=M.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return"number"==typeof(e=p(navigator.deviceMemory))&&isNaN(e)?undefined:e;var e},screenResolution:function(){var e=[h(L.screen.width),h(L.screen.height)];return e.sort().reverse(),e},availableScreenResolution:function(){if(D.screen.availWidth&&D.screen.availHeight){var e=[h(D.screen.availWidth),h(D.screen.availHeight)];return e.sort().reverse(),e}},hardwareConcurrency:function(){try{var e=h(navigator.hardwareConcurrency);return isNaN(e)?1:e}catch(t){return 1}},timezoneOffset:function(){var e=(new Date).getFullYear();return Math.max(p(new Date(e,0,1).getTimezoneOffset()),p(new Date(e,6,1).getTimezoneOffset()))},timezone:function(){var e;if(null!==(e=R.Intl)&&void 0!==e&&e.DateTimeFormat)return(new R.Intl.DateTimeFormat).resolvedOptions().timeZone},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!w()&&!b())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){return navigator.platform},plugins:function(){if(w())return[];if(navigator.plugins){for(var e=[],t=0;t<navigator.plugins.length;++t){var n=navigator.plugins[t];if(n){for(var r=[],i=0;i<n.length;++i){var a=n[i];r.push({type:a.type,suffixes:a.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},canvas:function(){var e,t=function(){var e=document.createElement("canvas");return e.width=240,e.height=140,e.style.display="inline",[e,e.getContext("2d")]}(),n=t[0],r=t[1];if(e=n,!r||!e.toDataURL)return{winding:!1,data:""};r.rect(0,0,10,10),r.rect(2,2,6,6);var i=!r.isPointInPath(5,5,"evenodd");return r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank \xf0\u0178\u02dc\u0192 gly",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank \xf0\u0178\u02dc\u0192 gly",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),{winding:i,data:function(e){return e.toDataURL()}(n)}},touchSupport:function(){var e,t=0;void 0!==O.maxTouchPoints?t=h(O.maxTouchPoints):void 0!==O.msMaxTouchPoints&&(t=O.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in P}},fonts:function(){var e=C.body,t=C.createElement("div"),n=C.createElement("div"),r={},i={},a=function(){var e=C.createElement("span");e.textContent="mmMwWLliI0O&1";for(var t=0,n=Object.keys(T);t<n.length;t++){var r=n[t];
1e.style[r]=T[r]}return e},o=function(e){return A.some((function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]}))},s=A.map((function(e){var n=a();return n.style.fontFamily=e,t.appendChild(n),n}));e.appendChild(t);for(var l=0,c=A.length;l<c;l++)r[A[l]]=s[l].offsetWidth,i[A[l]]=s[l].offsetHeight;var u=function(){for(var e={},t=function(t){e[t]=A.map((function(e){var r=function(e,t){var n=a();return n.style.fontFamily="'"+e+"',"+t,n}(t,e);return n.appendChild(r),r}))},r=0,i=I;r<i.length;r++)t(i[r]);return e}();e.appendChild(n);for(var d=[],h=0,p=I.length;h<p;h++)o(u[I[h]])&&d.push(I[h]);return e.removeChild(n),e.removeChild(t),d},audio:function(){return c(this,void 0,void 0,(function(){var e,t,n,r,i,a;return u(this,(function(o){switch(o.label){case 0:if(!(e=$.OfflineAudioContext||$.webkitOfflineAudioContext))return[2,-2];if(_()&&!k()&&!(f(["DOMRectList"in g,"RTCPeerConnectionIceEvent"in g,"SVGGeometryElement"in g,"ontransitioncancel"in g])>=3))return[2,-1];t=new e(1,44100,44100),(n=t.createOscillator()).type="triangle",E(t,n.frequency,1e4),r=t.createDynamicsCompressor(),E(t,r.threshold,-50),E(t,r.knee,40),E(t,r.ratio,12),E(t,r.reduction,-20),E(t,r.attack,0),E(t,r.release,.25),n.connect(r),r.connect(t.destination),n.start(0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,(s=t,new Promise((function(e,t){s.oncomplete=function(t){return e(t.renderedBuffer)};var n=3,r=function(){switch(s.startRendering(),s.state){case"running":setTimeout((function(){return t(x("timeout"))}),1e3);break;case"suspended":S.hidden||n--,n>0?setTimeout(r,500):t(x("suspended"))}};r()})))];case 2:return i=o.sent(),[3,5];case 3:if("timeout"===(a=o.sent()).name||"suspended"===a.name)return[2,-3];throw a;case 4:return n.disconnect(),r.disconnect(),[7];case 5:return[2,function(e){for(var t=0,n=4500;n<5e3;++n)t+=Math.abs(e[n]);return t}(i.getChannelData(0))]}var s}))}))},pluginsSupport:function(){return void 0!==navigator.plugins},productSub:function(){return navigator.productSub},emptyEvalLength:function(){return eval.toString().length},errorFF:function(){try{throw"a"}catch(e){try{return e.toSource(),!0}catch(t){return!1}}},vendor:function(){return navigator.vendor},chrome:function(){return void 0!==window.chrome},cookiesEnabled:function(){try{U.cookie="cookietest=1; SameSite=Strict;";var e=-1!==U.cookie.indexOf("cookietest=");return U.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}};function F(e,t,n){return c(this,void 0,void 0,(function(){var r,i,a,o,s,c,d,h,p;return u(this,(function(u){switch(u.label){case 0:r=Date.now(),i={},a=0,o=Object.keys(e),u.label=1;case 1:if(!(a<o.length))return[3,7];if(s=o[a],function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(n,s))return[3,6];c=void 0,u.label=2;case 2:return u.trys.push([2,4,,5]),p={},[4,e[s](t)];case 3:return p.value=u.sent(),c=p,[3,5];case 4:return d=u.sent(),c=d&&"object"==typeof d&&"message"in d?{error:d}:{error:{message:d}},[3,5];case 5:h=Date.now(),i[s]=l(l({},c),{duration:h-r}),r=h,u.label=6;case 6:return a++,[3,1];case 7:return[2,i]}}))}))}function B(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?l({name:(n=t).name,message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")},n):t;var n,r}),2)}function V(e){return s(function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],a=e[i],o=a.error?"error":JSON.stringify(a.value);t+=(t?"|":"")+i.replace(/([:|\\])/g,"\\$1")+":"+o}return t}(e))}var z=function(){function e(){}return e.prototype.get=function(e){return void 0===e&&(e={}),c(this,void 0,void 0,(function(){var t,n;return u(this,(function(r){switch(r.label){case 0:return[4,F(N,void 0,[])];case 1:return t=r.sent(),n=function(e){var t;return{components:e,get visitorId(){return void 0===t&&(t=V(this.components)),t},set visitorId(e){t=e}}}(t),e.debug&&console.log("Copy the text below to get the debug data:\n\n```\nversion: 3.0.5\nuserAgent: "+navigator.userAgent+"\ngetOptions: "+JSON.stringify(e,void 0,2)+"\nvisitorId: "+n.visitorId+"\ncomponents: "+B(t)+"\
1n```"),[2,n]}}))}))},e}();function j(e){var t=(void 0===e?{}:e).delayFallback,n=void 0===t?50:t;return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,(t=n,r=2*n,void 0===r&&(r=1/0),new Promise((function(e){d.requestIdleCallback?d.requestIdleCallback((function(){return e()}),{timeout:r}):setTimeout(e,Math.min(t,r))})))];case 1:return e.sent(),[2,new z]}var t,r}))}))}var H={load:j,hashComponents:V,componentsToDebugString:B},q=s;return e.componentsToDebugString=B,e.default=H,e.getComponents=F,e.hashComponents=V,e.isChromium=y,e.isDesktopSafari=k,e.isEdgeHTML=b,e.isGecko=function(){var e;return f(["buildID"in m,(null===(e=v.documentElement)||void 0===e?void 0:e.style)&&"MozAppearance"in v.documentElement.style,"MediaRecorderErrorEvent"in g,"mozInnerScreenX"in g,"CSSMozDocumentRule"in g,"CanvasCaptureMediaStream"in g])>=4},e.isTrident=w,e.isWebKit=_,e.load=j,e.murmurX64Hash128=q,e}({}),function(e){var t,n,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return i.get(e);if("objectStoreNames"===t)return e.objectStoreNames||a.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return u(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function c(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(h(this),t),u(r.get(this))}:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u(e.apply(h(this),t))}:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e.call.apply(e,function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([h(this),t],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(n),!1));return a.set(i,t.sort?t.sort():[t]),u(i)}}function u(e){if(e instanceof IDBRequest)return n=e,(a=new Promise((function(e,t){var r=function(){n.removeEventListener("success",i),n.removeEventListener("error",a)},i=function(){e(u(n.result)),r()},a=function(){t(n.error),r()};n.addEventListener("success",i),n.addEventListener("error",a)}))).then((function(e){e instanceof IDBCursor&&r.set(e,n)})).catch((function(){})),s.set(a,n),a;var n,a;if(o.has(e))return o.get(e);var d=function(e){return"function"==typeof e?c(e):(e instanceof IDBTransaction&&function(e){if(!i.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));i.set(e,t)}}(e),n=e,(t||(t=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return n instanceof e}))?new Proxy(e,l):e);var n}(e);return d!==e&&(o.set(e,d),s.set(d,e)),d}var d,h=function(e){return s.get(e)},p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},g=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},m=["get","getKey","getAll","getAllKeys","count"],v=["put","add","delete","clear"],w=new Map;function b(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if(w.get(t))return w.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=v.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||m.includes(n))){var a=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];
1return function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var a,o,s;return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(l){switch(l.label){case 0:return a=this.transaction(e,i?"readwrite":"readonly"),o=a.store,r&&(o=o.index(t.shift())),[4,Promise.all([(s=o)[n].apply(s,g([],f(t),!1)),i&&a.done])];case 1:return[2,l.sent()[0]]}}))}))};return w.set(t,a),a}}}l=p(p({},d=l),{get:function(e,t,n){return b(e,t)||d.get(e,t,n)},has:function(e,t){return!!b(e,t)||d.has(e,t)}}),e.deleteDB=function(e,t){var n=(void 0===t?{}:t).blocked,r=indexedDB.deleteDatabase(e);return n&&r.addEventListener("blocked",(function(e){return n(e.oldVersion,e)})),u(r).then((function(){}))},e.openDB=function(e,t,n){var r=void 0===n?{}:n,i=r.blocked,a=r.upgrade,o=r.blocking,s=r.terminated,l=indexedDB.open(e,t),c=u(l);return a&&l.addEventListener("upgradeneeded",(function(e){a(u(l.result),e.oldVersion,e.newVersion,u(l.transaction),e)})),i&&l.addEventListener("blocked",(function(e){return i(e.oldVersion,e.newVersion,e)})),c.then((function(e){s&&e.addEventListener("close",(function(){return s()})),o&&e.addEventListener("versionchange",(function(e){return o(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),c},e.unwrap=h,e.wrap=u}(ug||(ug={})),function(e){function t(e,n){var r;n=n||{},this._id=t._generateUUID(),this._promise=n.promise||Promise,this._frameId=n.frameId||"CrossStorageClient-"+this._id,this._origin=t._getOrigin(e),this._requests={},this._connected=!1,this._closed=!1,this._count=0,this._timeout=n.timeout||5e3,this._listener=null,this._installListener(),n.frameId&&(r=document.getElementById(n.frameId)),r&&this._poll(),r=r||this._createFrame(e),this._hub=r.contentWindow}t.frameStyle={width:0,height:0,border:"none",display:"none",position:"absolute",top:"-999px",left:"-999px"},t._getOrigin=function(e){var t;return(t=document.createElement("a")).href=e,t.host||(t=window.location),((t.protocol&&":"!==t.protocol?t.protocol:window.location.protocol)+"//"+t.host).replace(/:80$|:443$/,"")},t._generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},t.prototype.onConnect=function(){var e=this;return this._connected?this._promise.resolve():this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):(this._requests.connect||(this._requests.connect=[]),new this._promise((function(t,n){var r=setTimeout((function(){n(new Error("CrossStorageClient could not connect"))}),e._timeout);e._requests.connect.push((function(e){if(clearTimeout(r),e)return n(e);t()}))})))},t.prototype.set=function(e,t){return this._request("set",{key:e,value:t})},t.prototype.getSignedPayload=function(e,t){return console.log("sending payload: ",e," deviceId: ",t),this._request("getSignedData",{payload:e,deviceId:t})},t.prototype.getDeviceDetails=function(e){return this._request("getDeviceDetails",{deviceName:e})},t.prototype.setDeviceDetails=function(e,t){return this._request("setDeviceDetails",{deviceName:e,deviceId:t})},t.prototype.get=function(e){var t=Array.prototype.slice.call(arguments);return this._request("get",{keys:t})},t.prototype.del=function(){var e=Array.prototype.slice.call(arguments);return this._request("del",{keys:e})},t.prototype.clear=function(){return this._request("clear")},t.prototype.getKeys=function(){return this._request("getKeys")},t.prototype.close=function(e){let t=this._frameId,n=this;this._request("close").catch((function(e){})).finally((function(){try{var r=document.getElementById(t);r&&!e&&r.parentNode.removeChild(r),window.removeEventListener?window.removeEventListener("message",n._listener,!1):window.detachEvent("onmessage",n._listener),n._connected=!1,n._closed=!0}catch(i){}}))},t.prototype._installListener=function(){var e=this;this._listener=function(t){var n,r,i;if(!e._closed&&t.data&&"string"==typeof t.data&&("null"===t.origin?"file://":t.origin)===e._origin)if("cross-storage:unavailable"!==t.data){if(-1!==t.data.indexOf("cross-storage:")&&!e._connected){if(e._connected=!0,!e._requests.connect)return;for(n=0;n<e._requests.connect.length;n++)e._requests.connect[n](r);delete e._requests.connect}if("cross-storage:ready"!==t.data){try{i=JSON.parse(t.data)}catch(a){return}i.id&&e._requests[i.id]&&e._requests[i.id](i.error,i.result)}}else{if(e._closed||e.close(),!e._requests.connect)return;for(r=new Error("Closing client. Could not access localStorage in hub."),n=0;n<e._requests.connect.length;n++)e._requests.connect[n](r)}},window.addEventListener?window.addEventListener("message",this._listener,!1):window.attachEvent("onmessage",this._listener)},t.prototype._poll=function(){var e,t,n;n="file://"===(e=this)._origin?"*":e._origin,t=setInterval((function(){if(e._connected)return clearInterval(t);e._hub&&e._hub.postMessage("cross-storage:poll",n)}),1e3)},t.prototype._createFrame=function(e){var n,r;for(r in(n=window.document.createElement("iframe")).id=this._frameId,t.frameStyle)t.frameStyle.hasOwnProperty(r)&&(n.style[r]=t.frameStyle[r]);return window.document.body.appendChild(n),n.src=e,n},t.prototype._request=function(e,t){var n,r;return this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):((r=this)._count++,n={id:this._id+":"+r._count,method:"cross-storage:"+e,params:t},new this._promise((function(e,t){var i,a,o;i=setTimeout((function(){r._requests[n.id]&&(delete r._requests[n.id],t(new Error("Timeout: could not perform "+n.method)))}),r._timeout),r._requests[n.id]=function(a,o){if(clearTimeout(i),delete r._requests[n.id],a)return t(new Error(a));e(o)},Array.prototype.toJSON&&(a=Array.prototype.toJSON,Array.prototype.toJSON=null),o="file://"===r._origin?"*":r._origin,r._hub.postMessage(JSON.stringify(n),o),a&&(Array.prototype.toJSON=a)})))},e.CrossStorageClient=t}(ug||(ug={})),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1;return function(e){var r=Object(e);
1if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var o,s=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)}(r.length),l=t(this)?Object(new this(s)):new Array(s),c=0;c<s;)o=r[c],l[c]=a?void 0===i?a(o,c):a.call(i,o,c):o,c+=1;return l.length=s,l}}()),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),Promise.allSettled=Promise.allSettled||function(e){return Promise.all(e.map((function(e){return e.then((function(e){return{status:"fulfilled",value:e}})).catch((function(e){return{status:"rejected",reason:e}}))})))},function(e){var t="model",n="name",r="type",i="vendor",a="version",o="mobile",s="tablet",l="smarttv",c=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},u=function(e,t){return"string"==typeof e&&-1!==d(t).indexOf(d(e))},d=function(e){return e.toLowerCase()},h=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),void 0===t?e:e.substring(0,255)},p=function(e,t){for(var n,r,i,a,o,s,l=0;l<t.length&&!o;){var c=t[l],u=t[l+1];for(n=r=0;n<c.length&&!o;)if(o=c[n++].exec(e))for(i=0;i<u.length;i++)s=o[++r],"object"==typeof(a=u[i])&&a.length>0?2===a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,s):this[a[0]]=a[1]:3===a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=s?s.replace(a[1],a[2]):void 0:this[a[0]]=s?a[1].call(this,s,a[2]):void 0:4===a.length&&(this[a[0]]=s?a[3].call(this,s.replace(a[1],a[2])):void 0):this[a]=s||void 0;l+=2}},f=function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(u(t[n][r],e))return"?"===n?void 0:n}else if(u(t[n],e))return"?"===n?void 0:n;return e},g={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},m={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[a,[n,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[a,[n,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[n,a],[/opios[\/ ]+([\w\.]+)/i],[a,[n,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[a,[n,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[n,a],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[a,[n,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[a,[n,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[a,[n,"WeChat"]],[/konqueror\/([\w\.]+)/i],[a,[n,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[a,[n,"IE"]],[/yabrowser\/([\w\.]+)/i],[a,[n,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[n,/(.+)/,"$1 Secure Browser"],a],[/\bfocus\/([\w\.]+)/i],[a,[n,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[a,[n,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[a,[n,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[a,[n,"Dolphin"]],[/coast\/([\w\.]+)/i],[a,[n,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[a,[n,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[a,[n,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[n,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[n,/(.+)/,"$1 Browser"],a],[/(comodo_dragon)\/([\w\.]+)/i],[[n,/_/g," "],a],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[n,a],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[n],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[n,"Facebook"],a],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[n,a],[/\bgsa\/([\w\.]+) .*safari\//i],[a,[n,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[a,[n,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[n,"Chrome WebView"],a],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[a,[n,"Android Browser"]],[/(chrome|omniweb|arora|[t
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[n,a],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[a,[n,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[a,n],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[n,[a,f,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[n,a],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[n,"Netscape"],a],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[a,[n,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[n,a]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",d]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",d]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[t,[i,"Samsung"],[r,s]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[t,[i,"Samsung"],[r,o]],[/\((ip(?:hone|od)[\w ]*);/i],[t,[i,"Apple"],[r,o]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[t,[i,"Apple"],[r,s]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[t,[i,"Huawei"],[r,s]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[t,[i,"Huawei"],[r,o]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[t,/_/g," "],[i,"Xiaomi"],[r,o]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[t,/_/g," "],[i,"Xiaomi"],[r,s]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[t,[i,"OPPO"],[r,o]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[t,[i,"Vivo"],[r,o]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[t,[i,"Realme"],[r,o]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[t,[i,"Motorola"],[r,o]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[t,[i,"Motorola"],[r,s]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[t,[i,"LG"],[r,s]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[t,[i,"LG"],[r,o]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[t,[i,"Lenovo"],[r,s]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[t,/_/g," "],[i,"Nokia"],[r,o]],[/(pixel c)\b/i],[t,[i,"Google"],[r,s]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[t,[i,"Google"],[r,o]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[t,[i,"Sony"],[r,o]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[t,"Xperia Tablet"],[i,"Sony"],[r,s]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[t,[i,"OnePlus"],[r,o]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[t,[i,"Amazon"],[r,s]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[t,/(.+)/g,"Fire Phone $1"],[i,"Amazon"],[r,o]],[/(playbook);[-\w\),; ]+(rim)/i],[t,i,[r,s]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[t,[i,"BlackBerry"],[r,o]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[t,[i,"ASUS"],[r,s]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[t,[i,"ASUS"],[r,o]],[/(nexus 9)/i],[t,[i,"HTC"],[r,s]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[i,[t,/_/g," "],[r,o]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[t,[i,"Acer"],[r,s]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[t,[i,"Meizu"],[r,o]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[t,[i,"Sharp"],[r,o]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[i,t,[r,o]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[i,t,[r,s]],[/(surface duo)/i],[t,[i,"Microsoft"],[r,s]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[t,[i,"Fairphone"],[r,o]],[/(u304aa)/i],[t,[i,"AT&T"],[r,o]],[/\bsie-(\w*)/i],[t,[i,"Siemens"],[r,o]],[/\b(rct\w+) b/i],[t,[i,"RCA"],[r,s]],[/\b(venue[\d ]{2,7}) b/i],[t,[i,"Dell"],[r,s]],[/\b(q(?:mv|ta)\w+) b/i],[t,[i,"Verizon"],[r,s]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[t,[i,"Barnes & Noble"],[r,s]],[/\b(tm\d{3}\w+) b/i],[t,[i,"NuVision"],[r,s]],[/\b(k88) b/i],[t,[i,"ZTE"],[r,s]],[/\b(nx\d{3}j) b/i],[t,[i,"ZTE"],[r,o]],[/\b(gen\d{3}) b.+49h/i],[t,[i,"Swiss"],[r,o]],[/\b(zur\d{3}) b/i],[t,[i,"Swiss"],[r,s]],[/\b((zeki)?tb.*\b) b/i],[t,[i,"Zeki"],[r,s]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[i,"Dragon Touch"],t,[r,s]],[/\b(ns-?\w{0,9}) b/i],[t,[i,"Insignia"],[r,s]],[/\b((nxa|next)-?\w{0,9}) b/i],[t,[i,"NextBook"],[r,s]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[i,"Voice"],t,[r,o]],[/\b(lvtel\-)?(v1[12]) b/i],[[i,"LvTel"],t,[r,o]],[/\b(ph-1) /i],[t,[i,"Essential"],[r,o]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[t,[i,"Envizen"],[r,s]],[/\b(trio[-\w\. ]+) b/i],[t,[i,"MachSpeed"],[r,s]],[/\btu_(1491) b/i],[t,[i,"Rotor"],[r,s]],[/(shield[\w ]+) b/i],[t,[i,"Nvidia"],[r,s]],[/(sprint) (\w+)/i],[i,t,[r,o]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[i,"Microsoft"],[r,o]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[t,[i,"Zebra"],[r,s]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[t,[i,"Zebra"],[r,o]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[i,t,[r,"console"]],[/droid.+; (shield) bui/i],[t,[i,"Nvidia"],[r,"console"]],[/(playstation [345portablevi]+)/i],[t,[i,"Sony"],[r,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[t,[i,"Microsoft"],[r,"console"]],[/smart-tv.+(samsung)/i],[i,[r,l]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[i,"Samsung"],[r,l]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[i,"LG"],[r,l]],[/(apple) ?tv/i],[i,[t,"Apple TV"],[r,l]],[/crkey/i],[[t,"Chromecast"],[i,"Google"],[r,l]],[/droid.+aft(\w)( bui|\))/i],[t,[i,"Amazon"],[r,l]],[/\(dtv[\);].+(aquos)/i],[t,[i,"Sharp"],[r,l]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[i,h],[t,h],[r,l]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[r,l]],[/((pebble))app/i],[i,t,[r,"wearable"]],[/droid.+; (glass) \d/i],[t,[i,"Google"],[r,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[t,[i,"Zebra"],[r,"wearable"]],[/(quest( 2)?)/i],[t,[i,"Facebook"],[r,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[i,[r,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[t,[r,o]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[t,[r,s]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[r,s]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[r,o]],[/(android[-\w\. ]{0,9});.+buil/i],[t,[i,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[a,[n,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[a,[n,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[n,a],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[a,n]],os:[[/microsoft (windows) (vista|xp)/i],[n,a],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[n,[a,f,g]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,"Windows"],[a,f,g]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[a,/_/g,"."],[n,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[n,"Mac OS"],[a,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[a,n],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[n,a],[/\(bb(10);/i],[a,[n,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[a,[n,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[a,[n,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[a,[n,"webOS"]],[/crkey\/([\d\.]+)/i],[a,[n,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[n,"Chromium OS"],a],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[n,a],[/(sunos) ?([\w\.\d]*)/i],[[n,"Solaris"],a],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[n,a]]},v=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof v))return new v(e,t).getResult();var n=e||(typeof window<"u"&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(m,t):m;return this.getBrowser=function(){var e,t={name:void 0,version:void 0};return p.call(t,n,r.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return p.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return p.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return p.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return p.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>255?h(e,255):e,this},this.setUA(n),this};v.VERSION="1.0.2",v.BROWSER=c([n,a,"major"]),v.CPU=c(["architecture"]),v.DEVICE=c([t,i,r,"console",o,l,s,"wearable","embedded"]),v.ENGINE=v.OS=c([n,a]),e.UAParser=v}(ug||(ug={})),(ug||(ug={})).pako=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&cg)return cg(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var a=cg,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1
vendor: 4,916 bytes, line 1
1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],2:[function(e,t,n){function r(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var i=e("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(c){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){o=!1}for(var s=new i.Buf8(256),l=0;l<256;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1,n.string2buf=function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,a,o,l=t||e.length,c=new Array(2*l);for(i=0,n=0;n<l;)if((a=e[n++])<128)c[i++]=a;else if((o=s[a])>4)c[i++]=65533,n+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&n<l;)a=a<<6|63&e[n++],o--;o>1?c[i++]=65533:a<65536?c[i++]=a:(a-=65536,c[i++]=55296|a>>10&1023,c[i++]=56320|1023&a)}return r(c,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},{}],4:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],5:[function(e,t,n){function r(e,t){return e.msg=E[t],t}function i(e){return(e<<1)-(e>4?9:0)}function a(e){for(var t=e.length;--t>=0;)e[t]=0}function o(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(_.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function s(e,t){k._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function c(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function u(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,_.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=$(e.adler,t,i,n):2===e.state.wrap&&(e.adler=S(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function d(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-j?e.strstart-(e.w_size-j):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+z,p=c[a+o-1],f=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===f&&c[n+o-1]===p&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<h);if(r=z-(h-a),a=h-z,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[a+o-1],f=c[a+o]}}}while((t=d[t&u])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function h(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-j)){_.arraySet(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);t=n=o;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=u(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>
1=V)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+V-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<V)););}while(e.lookahead<j&&0!==e.strm.avail_in)}function p(e,t){for(var n,r;;){if(e.lookahead<j){if(h(e),e.lookahead<j&&t===x)return K;if(0===e.lookahead)break}if(n=0,e.lookahead>=V&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+V-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-j&&(e.match_length=d(e,n)),e.match_length>=V)if(r=k._tr_tally(e,e.strstart-e.match_start,e.match_length-V),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=V){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+V-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=k._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(s(e,!1),0===e.strm.avail_out))return K}return e.insert=e.strstart<V-1?e.strstart:V-1,t===C?(s(e,!0),0===e.strm.avail_out?W:Z):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?K:G}function f(e,t){for(var n,r,i;;){if(e.lookahead<j){if(h(e),e.lookahead<j&&t===x)return K;if(0===e.lookahead)break}if(n=0,e.lookahead>=V&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+V-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=V-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-j&&(e.match_length=d(e,n),e.match_length<=5&&(e.strategy===O||e.match_length===V&&e.strstart-e.match_start>4096)&&(e.match_length=V-1)),e.prev_length>=V&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-V,r=k._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-V),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+V-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=V-1,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return K}else if(e.match_available){if((r=k._tr_tally(e,0,e.window[e.strstart-1]))&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return K}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=k._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<V-1?e.strstart:V-1,t===C?(s(e,!0),0===e.strm.avail_out?W:Z):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?K:G}function g(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=L,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new _.Buf16(2*F),this.dyn_dtree=new _.Buf16(2*(2*U+1)),this.bl_tree=new _.Buf16(2*(2*N+1)),a(this.dyn_ltree),a(this.dyn_dtree),a(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new _.Buf16(B+1),this.heap=new _.Buf16(2*R+1),a(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new _.Buf16(2*R+1),a(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function v(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=M,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?H:q,e.adler=2===t.wrap?0:1,t.last_flush=x,k._tr_init(t),A):r(e,I)}function w(e){var t,n=v(e);return n===A&&((t=e.state).window_size=2*t.w_size,a(t.head),t.max_lazy_match=y[t.level].max_lazy,t.good_match=y[t.level].good_length,t.nice_match=y[t.level].nice_length,t.max_chain_length=y[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=V-1,t.match_available=0,t.ins_h=0),n}function b(e,t,n,i,a,o){if(!e)return I;var s=1;if(t===T&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>D||n!==L||i<8||i>15||t<0||t>9||o<0||o>P)return r(e,I);8===i&&(i=9);var l=new m;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+V-1)/V),l.window=new _.Buf8(2*l.w_size),l.head=new _.Buf16(l.hash_size),l.prev=new _.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new _.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,w(e)}var y,_=e("../utils/common"),k=e("./trees"),$=e("./adler32"),S=e("./crc32"),E=e("./messages"),x=0,C=4,A=0,I=-2,T=-1,O=1,P=4,M=2,L=8,D=9,R=286,U=30,N=19,F=2*R+1,B=15,V=3,z=258,j=z+V+1,H=42,q=113,K=1,G=2,W=3,Z=4;y=[new g(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(h(e),0===e.lookahead&&t===x)return K;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,s(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-j&&(s(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===C?(s(e,!0),0===e.strm.avail_out?W:Z):(e.strstart>e.block_start&&(s(e,!1),e.strm.avail_out),K)}
vendor: 4,202 bytes, line 1
1)),new g(4,4,8,4,p),new g(4,5,16,8,p),new g(4,6,32,32,p),new g(4,4,16,16,f),new g(8,16,32,32,f),new g(8,16,128,128,f),new g(8,32,128,256,f),new g(32,128,258,1024,f),new g(32,258,258,4096,f)],n.deflateInit=function(e,t){return b(e,t,L,15,8,0)},n.deflateInit2=b,n.deflateReset=w,n.deflateResetKeep=v,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?I:(e.state.gzhead=t,A):I},n.deflate=function(e,t){var n,u,d,p;if(!e||!e.state||t>5||t<0)return e?r(e,I):I;if(u=e.state,!e.output||!e.input&&0!==e.avail_in||666===u.status&&t!==C)return r(e,0===e.avail_out?-5:I);if(u.strm=e,n=u.last_flush,u.last_flush=t,u.status===H)if(2===u.wrap)e.adler=0,l(u,31),l(u,139),l(u,8),u.gzhead?(l(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),l(u,255&u.gzhead.time),l(u,u.gzhead.time>>8&255),l(u,u.gzhead.time>>16&255),l(u,u.gzhead.time>>24&255),l(u,9===u.level?2:u.strategy>=2||u.level<2?4:0),l(u,255&u.gzhead.os),u.gzhead.extra&&u.gzhead.extra.length&&(l(u,255&u.gzhead.extra.length),l(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(e.adler=S(e.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(l(u,0),l(u,0),l(u,0),l(u,0),l(u,0),l(u,9===u.level?2:u.strategy>=2||u.level<2?4:0),l(u,3),u.status=q);else{var f=L+(u.w_bits-8<<4)<<8;f|=(u.strategy>=2||u.level<2?0:u.level<6?1:6===u.level?2:3)<<6,0!==u.strstart&&(f|=32),f+=31-f%31,u.status=q,c(u,f),0!==u.strstart&&(c(u,e.adler>>>16),c(u,65535&e.adler)),e.adler=1}if(69===u.status)if(u.gzhead.extra){for(d=u.pending;u.gzindex<(65535&u.gzhead.extra.length)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),o(e),d=u.pending,u.pending!==u.pending_buf_size));)l(u,255&u.gzhead.extra[u.gzindex]),u.gzindex++;u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=73)}else u.status=73;if(73===u.status)if(u.gzhead.name){d=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),o(e),d=u.pending,u.pending===u.pending_buf_size)){p=1;break}p=u.gzindex<u.gzhead.name.length?255&u.gzhead.name.charCodeAt(u.gzindex++):0,l(u,p)}while(0!==p);u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),0===p&&(u.gzindex=0,u.status=91)}else u.status=91;if(91===u.status)if(u.gzhead.comment){d=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),o(e),d=u.pending,u.pending===u.pending_buf_size)){p=1;break}p=u.gzindex<u.gzhead.comment.length?255&u.gzhead.comment.charCodeAt(u.gzindex++):0,l(u,p)}while(0!==p);u.gzhead.hcrc&&u.pending>d&&(e.adler=S(e.adler,u.pending_buf,u.pending-d,d)),0===p&&(u.status=103)}else u.status=103;if(103===u.status&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&o(e),u.pending+2<=u.pending_buf_size&&(l(u,255&e.adler),l(u,e.adler>>8&255),e.adler=0,u.status=q)):u.status=q),0!==u.pending){if(o(e),0===e.avail_out)return u.last_flush=-1,A}else if(0===e.avail_in&&i(t)<=i(n)&&t!==C)return r(e,-5);if(666===u.status&&0!==e.avail_in)return r(e,-5);if(0!==e.avail_in||0!==u.lookahead||t!==x&&666!==u.status){var g=2===u.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(h(e),0===e.lookahead)){if(t===x)return K;break}if(e.match_length=0,n=k._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===C?(s(e,!0),0===e.strm.avail_out?W:Z):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?K:G}(u,t):3===u.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=z){if(h(e),e.lookahead<=z&&t===x)return K;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=V&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+z;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=z-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=V?(n=k._tr_tally(e,1,e.match_length-V),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=k._tr_tally(e,0,e.
1window[e.strstart]),e.lookahead--,e.strstart++),n&&(s(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===C?(s(e,!0),0===e.strm.avail_out?W:Z):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?K:G}(u,t):y[u.level].func(u,t);if(g!==W&&g!==Z||(u.status=666),g===K||g===W)return 0===e.avail_out&&(u.last_flush=-1),A;if(g===G&&(1===t?k._tr_align(u):5!==t&&(k._tr_stored_block(u,0,0,!1),3===t&&(a(u.head),0===u.lookahead&&(u.strstart=0,u.block_start=0,u.insert=0))),o(e),0===e.avail_out))return u.last_flush=-1,A}return t!==C?A:u.wrap<=0?1:(2===u.wrap?(l(u,255&e.adler),l(u,e.adler>>8&255),l(u,e.adler>>16&255),l(u,e.adler>>24&255),l(u,255&e.total_in),l(u,e.total_in>>8&255),l(u,e.total_in>>16&255),l(u,e.total_in>>24&255)):(c(u,e.adler>>>16),c(u,65535&e.adler)),o(e),u.wrap>0&&(u.wrap=-u.wrap),0!==u.pending?A:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==H&&69!==t&&73!==t&&91!==t&&103!==t&&t!==q&&666!==t?r(e,I):(e.state=null,t===q?r(e,-3):A):I},n.deflateSetDictionary=function(e,t){var n,r,i,o,s,l,c,u,d=t.length;if(!e||!e.state||(2===(o=(n=e.state).wrap)||1===o&&n.status!==H||n.lookahead))return I;for(1===o&&(e.adler=$(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===o&&(a(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new _.Buf8(n.w_size),_.arraySet(u,t,d-n.w_size,n.w_size,0),t=u,d=n.w_size),s=e.avail_in,l=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,h(n);n.lookahead>=V;){r=n.strstart,i=n.lookahead-(V-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+V-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=V-1,h(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=V-1,n.match_available=0,e.next_in=l,e.input=c,e.avail_in=s,n.wrap=o,A},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(e,t,n){function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function a(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function o(e){return e<256?B[e]:B[256+(e>>>7)]}function s(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function l(e,t,n){e.bi_valid>I-n?(e.bi_buf|=t<<e.bi_valid&65535,s(e,e.bi_buf),e.bi_buf=t>>I-e.bi_valid,e.bi_valid+=n-I):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function c(e,t,n){l(e,n[2*t],n[2*t+1])}function u(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function d(e,t,n){var r,i,a=new Array(A+1),o=0;for(r=1;r<=A;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=u(a[s]++,s))}}function h(e){var t;for(t=0;t<S;t++)e.dyn_ltree[2*t]=0;for(t=0;t<E;t++)e.dyn_dtree[2*t]=0;for(t=0;t<x;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*T]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function p(e){e.bi_valid>8?s(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function f(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function g(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&f(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!f(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function m(e,t,n){var r,i,a,s,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?c(e,i,t):(c(e,(a=V[i])+$+1,t),0!==(s=L[a])&&l(e,i-=z[a],s),c(e,a=o(--r),n),0!==(s=D[a])&&l(e,r-=j[a],s))}while(u<e.last_lit);c(e,T,t)}function v(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=C,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)g(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],g(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,g(e,a,1)}while(e.heap_len>=2);
1e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,g=0;for(a=0;a<=A;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<C;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>f&&(a=f,g++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==g){do{for(a=f-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[f]--,g-=2}while(g>0);for(a=f;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),d(a,c,e.bl_count)}function w(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*O]++):s<=10?e.bl_tree[2*P]++:e.bl_tree[2*M]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function b(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,d=4;for(0===o&&(u=138,d=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<d)do{c(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(c(e,i,e.bl_tree),s--),c(e,O,e.bl_tree),l(e,s-3,2)):s<=10?(c(e,P,e.bl_tree),l(e,s-3,3)):(c(e,M,e.bl_tree),l(e,s-11,7));s=0,a=i,0===o?(u=138,d=3):i===o?(u=6,d=3):(u=7,d=4)}}function y(e,t,n,r){var i,a,o;l(e,(k<<1)+(r?1:0),3),a=t,o=n,p(i=e),s(i,o),s(i,~o),_.arraySet(i.pending_buf,i.window,a,o,i.pending),i.pending+=o}var _=e("../utils/common"),k=0,$=256,S=$+1+29,E=30,x=19,C=2*S+1,A=15,I=16,T=256,O=16,P=17,M=18,L=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=new Array(2*(S+2));r(N);var F=new Array(2*E);r(F);var B=new Array(512);r(B);var V=new Array(256);r(V);var z=new Array(29);r(z);var j=new Array(E);r(j);var H,q,K,G=!1;n._tr_init=function(e){G||(function(){var e,t,n,r,a,o=new Array(A+1);for(n=0,r=0;r<28;r++)for(z[r]=n,e=0;e<1<<L[r];e++)V[n++]=r;for(V[n-1]=r,a=0,r=0;r<16;r++)for(j[r]=a,e=0;e<1<<D[r];e++)B[a++]=r;for(a>>=7;r<E;r++)for(j[r]=a<<7,e=0;e<1<<D[r]-7;e++)B[256+a++]=r;for(t=0;t<=A;t++)o[t]=0;for(e=0;e<=143;)N[2*e+1]=8,e++,o[8]++;for(;e<=255;)N[2*e+1]=9,e++,o[9]++;for(;e<=279;)N[2*e+1]=7,e++,o[7]++;for(;e<=287;)N[2*e+1]=8,e++,o[8]++;for(d(N,S+1,o),e=0;e<E;e++)F[2*e+1]=5,F[2*e]=u(e,5);H=new i(N,L,$+1,S,A),q=new i(F,D,0,E,A),K=new i(new Array(0),R,0,x,7)}(),G=!0),e.l_desc=new a(e.dyn_ltree,H),e.d_desc=new a(e.dyn_dtree,q),e.bl_desc=new a(e.bl_tree,K),e.bi_buf=0,e.bi_valid=0,h(e)},n._tr_stored_block=y,n._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<$;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),v(e,e.l_desc),v(e,e.d_desc),o=function(e){var t;for(w(e,e.dyn_ltree,e.l_desc.max_code),w(e,e.dyn_dtree,e.d_desc.max_code),v(e,e.bl_desc),t=x-1;t>=3&&0===e.bl_tree[2*U[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?y(e,t,n,r):4===e.strategy||a===i?(l(e,2+(r?1:0),3),m(e,N,F)):(l(e,4+(r?1:0),3),function(e,t,n,r){var i;for(l(e,t-257,5),l(e,n-1,5),l(e,r-4,4),i=0;i<r;i++)l(e,e.bl_tree[2*U[i]+1],3);b(e,e.dyn_ltree,t-1),b(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),m(e,e.dyn_ltree,e.dyn_dtree)),h(e),r&&p(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(V[n]+$+1)]++,e.dyn_dtree[2*o(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;l(e,2,3),c(e,T,N),16===(t=e).bi_valid?(s(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
1=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":1}],8:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);this.options=o.assign({level:h,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=a.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==d)throw new Error(l[n]);if(t.header&&a.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(i="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=a.deflateSetDictionary(this.strm,i))!==d)throw new Error(l[n]);this._dict_set=!0}}function i(e,t){var n=new r(t);if(n.push(e,!0),n.err)throw n.msg||l[n.err];return n.result}var a=e("./zlib/deflate"),o=e("./utils/common"),s=e("./utils/strings"),l=e("./zlib/messages"),c=e("./zlib/zstream"),u=Object.prototype.toString,d=0,h=-1,p=0,f=8;r.prototype.push=function(e,t){var n,r,i=this.strm,l=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=s.string2buf(e):"[object ArrayBuffer]"===u.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new o.Buf8(l),i.next_out=0,i.avail_out=l),1!==(n=a.deflate(i,r))&&n!==d)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(s.buf2binstring(o.shrinkBuf(i.output,i.next_out))):this.onData(o.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=a.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===d):2!==r||(this.onEnd(d),i.avail_out=0,!0)},r.prototype.onData=function(e){this.chunks.push(e)},r.prototype.onEnd=function(e){e===d&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=r,n.deflate=i,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,i(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,i(e,t)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js"),(ug||(ug={})).evaluateModernizr=function(){!function(e,t,n,r){function i(e,t){return typeof e===t}function a(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):y?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function o(e,t){return!!~(""+e).indexOf(t)}function s(e,t,r,i){var o,s,l,c,u="modernizr",d=a("div"),h=function(){var e=n.body;return e||((e=a(y?"svg":"body")).fake=!0),e}();if(parseInt(r,10))for(;r--;)(l=a("div")).id=i?i[r]:u+(r+1),d.appendChild(l);return(o=a("style")).type="text/css",o.id="s"+u,(h.fake?h:d).appendChild(o),h.appendChild(d),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(n.createTextNode(e)),d.id=u,h.fake&&(h.style.background="",h.style.overflow="hidden",c=b.style.overflow,b.style.overflow="hidden",b.appendChild(h)),s=t(d,e),h.fake?(h.parentNode.removeChild(h),b.style.overflow=c,b.offsetHeight):d.parentNode.removeChild(d),!!s}function l(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function c(e,n,r){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,n);var a=t.console;null!==i?r&&(i=i.getPropertyValue(r)):a&&a[a.error?"error":"log"].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else i=!n&&e.currentStyle&&e.currentStyle[r];return i}function u(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,n){return t+n.toUpperCase()})).replace(/^-/,"")}function d(e,n,d,h){function p(){g&&(delete E.style,delete E.modElem)}if(h=!i(h,"undefined")&&h,!i(d,"undefined")){var f=function(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(l(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];i--;)a.push("("+l(e[i])+":"+n+")");return s("@supports ("+(a=a.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===c(e,null,"position")}))}return r}(e,d);if(!i(f,"undefined"))return f}
1for(var g,m,v,w,b,y=["modernizr","tspan","samp"];!E.style&&y.length;)g=!0,E.modElem=a(y.shift()),E.style=E.modElem.style;for(v=e.length,m=0;m<v;m++)if(w=e[m],b=E.style[w],o(w,"-")&&(w=u(w)),E.style[w]!==r){if(h||i(d,"undefined"))return p(),"pfx"!==n||w;try{E.style[w]=d}catch(_){}if(E.style[w]!==b)return p(),"pfx"!==n||w}return p(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function p(e,t,n,r,a){var o=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+$.join(o+" ")+o).split(" ");return i(t,"string")||i(t,"undefined")?d(s,t,r,a):function(e,t,n){var r;for(var a in e)if(e[a]in t)return!1===n?e[a]:i(r=t[e[a]],"function")?h(r,n||t):r;return!1}(s=(e+" "+x.join(o+" ")+o).split(" "),t,n)}function f(e,t,n){return p(e,r,r,t,n)}var g=[],m={_version:"3.11.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){g.push({name:e,fn:t,options:n})},addAsyncTest:function(e){g.push({name:null,fn:e})}},v=function(){};v.prototype=m,v=new v;var w=[],b=n.documentElement,y="svg"===b.nodeName.toLowerCase(),_=function(){var e=!("onblur"in b);return function(t,n){var i;return!!t&&(n&&"string"!=typeof n||(n=a(n||"div")),!(i=(t="on"+t)in n)&&e&&(n.setAttribute||(n=a("div")),n.setAttribute(t,""),i="function"==typeof n[t],n[t]!==r&&(n[t]=r),n.removeAttribute(t)),i)}}();m.hasEvent=_,v.addTest("ambientlight",_("devicelight",t)),v.addTest("applicationcache","applicationCache"in t),function(){var e=a("audio");v.addTest("audio",(function(){var t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t))}catch(n){}return t}));try{e.canPlayType&&(v.addTest("audio.ogg",e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),v.addTest("audio.mp3",e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),v.addTest("audio.opus",e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),v.addTest("audio.wav",e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),v.addTest("audio.m4a",(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch(t){}}();var k="Moz O ms Webkit",$=m._config.usePrefixes?k.split(" "):[];m._cssomPrefixes=$;var S={elem:a("modernizr")};v._q.push((function(){delete S.elem}));var E={style:S.elem.style};v._q.unshift((function(){delete E.style}));var x=m._config.usePrefixes?k.toLowerCase().split(" "):[];m._domPrefixes=x,m.testAllProps=p;var C=function(e){var n,i=O.length,a=t.CSSRule;if(void 0===a)return r;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in a)return"@"+e;for(var o=0;o<i;o++){var s=O[o];if(s.toUpperCase()+"_"+n in a)return"@-"+s.toLowerCase()+"-"+e}return!1};m.atRule=C;var A=m.prefixed=function(e,t,n){return 0===e.indexOf("@")?C(e):(-1!==e.indexOf("-")&&(e=u(e)),t?p(e,t,n):p(e,"pfx"))};v.addTest("batteryapi",!!A("battery",navigator)||!!A("getBattery",navigator),{aliases:["battery-api"]}),v.addTest("blobconstructor",(function(){try{return!!new Blob}catch(e){return!1}}),{aliases:["blob-constructor"]}),v.addTest("contextmenu","contextMenu"in b&&"HTMLMenuItemElement"in t),v.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest);var I=A("crypto",t);v.addTest("crypto",!!A("subtle",I)),v.addTest("customelements","customElements"in t),v.addTest("customprotocolhandler",(function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(e){return e instanceof TypeError}return!1})),v.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),v.addTest("dart",!!A("startDart",navigator)),v.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype),v.addTest("eventlistener","addEventListener"in t),v.addTest("forcetouch",(function(){return!!_(A("mouseforcewillbegin",t,!1),t)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN})),v.addTest("fullscreen",!(!A("exitFullscreen",n,!1)&&!A("cancelFullScreen",n,!1))),v.addTest("gamepads",!!A("getGamepads",navigator)),v.addTest("geolocation","geolocation"in navigator),v.addTest("ie8compat",!t.addEventListener&&!!n.documentMode&&7===n.documentMode),v.addTest("intl",!!A("Intl",t)),v.addTest("json","JSON"in t&&"parse"in JSON&&"stringify"in JSON),m.testAllProps=f,v.addTest("ligatures",f("fontFeatureSettings",'"liga" 1')),v.addTest("messagechannel","MessageChannel"in t),v.addTest("notification",(function(){if(!t.Notification||!t.Notification.requestPermission)return!1;if("granted"===t.Notification.permission)return!0;try{new t.Notification("")}catch(e){if("TypeError"===e.name)return!1}return!0})),v.addTest("pagevisibility",!!A("hidden",n,!1)),v.addTest("performance",!!A("performance",t));var T=[""].concat(x);m._domPrefixesAll=T,v.addTest("pointerevents",(function(){for(var e=0,t=T.length;e<t;e++)if(_(T[e]+"pointerdown"))return!0;return!1})),v.addTest("pointerlock",!!A("exitPointerLock",n)),v.addTest("queryselector","querySelector"in n&&"querySelectorAll"in n),v.addTest("quotamanagement",(function(){var e=A("temporaryStorage",navigator),t=A("persistentStorage",navigator);return!(!e||!t)})),v.addTest("requestanimationframe",!!A("requestAnimationFrame",t),{aliases:["raf"]}
1),v.addTest("serviceworker","serviceWorker"in navigator);var O=m._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];m._prefixes=O;var P=function(){var e=t.matchMedia||t.msMatchMedia;return e?function(t){var n=e(t);return n&&n.matches||!1}:function(e){var t=!1;return s("@media "+e+" { #modernizr { position: absolute; } }",(function(e){t="absolute"===c(e,null,"position")})),t}}();m.mq=P,v.addTest("touchevents",(function(){if("ontouchstart"in t||t.TouchEvent||t.DocumentTouch&&n instanceof DocumentTouch)return!0;var e=["(",O.join("touch-enabled),("),"heartz",")"].join("");return P(e)})),v.addTest("typedarrays","ArrayBuffer"in t),v.addTest("vibrate",!!A("vibrate",navigator)),function(){var e=a("video");v.addTest("video",(function(){var t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t))}catch(n){}return t}));try{e.canPlayType&&(v.addTest("video.ogg",e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),v.addTest("video.h264",e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),v.addTest("video.h265",e.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),v.addTest("video.webm",e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),v.addTest("video.vp9",e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),v.addTest("video.hls",e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),v.addTest("video.av1",e.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch(t){}}(),v.addTest("webgl",(function(){return"WebGLRenderingContext"in t}));var M=!1;try{M="WebSocket"in t&&2===t.WebSocket.CLOSING}catch(D){}v.addTest("websockets",M),v.addTest("xdomainrequest","XDomainRequest"in t),v.addTest("matchmedia",!!A("matchMedia",t)),function(){var e,t,n,r,a,o;for(var s in g)if(g.hasOwnProperty(s)){if(e=[],(t=g[s]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)1===(o=e[a].split(".")).length?v[o[0]]=r:(v[o[0]]&&(!v[o[0]]||v[o[0]]instanceof Boolean)||(v[o[0]]=new Boolean(v[o[0]])),v[o[0]][o[1]]=r),w.push((r?"":"no-")+o.join("-"))}}(),delete m.addTest,delete m.addAsyncTest;for(var L=0;L<v._q.length;L++)v._q[L]();e.Modernizr=v}(ug||(ug={}),window,document)},dg=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))},hg=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},pg=function(){return(pg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},function(e){!function(t){var n=function(){function n(){this._isIphoneOrIPad=!1,(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(this._isIphoneOrIPad=!0),this.initUAParser()}return Object.defineProperty(n.prototype,"userAgentData",{get:function(){return this._userAgentData}
1,enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceType",{get:function(){return this._deviceType||(t.Util.isMobile?this._deviceType=this.mobileType||this.desktopType||n.UNKNOWN_DEVICE_TYPE:this._deviceType=this.desktopType||this.mobileType||n.UNKNOWN_DEVICE_TYPE),this._deviceType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isIphoneOrIPad",{get:function(){return this._isIphoneOrIPad},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"browserName",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.name?this._userAgentData.browser.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"browserVersion",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.version?this._userAgentData.browser.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"osName",{get:function(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.name?this._userAgentData.os.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"osVersion",{get:function(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.version?this._userAgentData.os.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCategory",{get:function(){return this._userAgentData&&this._userAgentData.device?this._userAgentData.device.type:""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"engineName",{get:function(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.name?this._userAgentData.engine.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"engineVersion",{get:function(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.version?this._userAgentData.engine.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cpuArchitecture",{get:function(){return this._userAgentData&&this._userAgentData.cpu&&this._userAgentData.cpu.architecture?this._userAgentData.cpu.architecture.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceModel",{get:function(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.model?this._userAgentData.device.model.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceVendor",{get:function(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.vendor?this._userAgentData.device.vendor.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"desktopType",{get:function(){var e=this.browserName;this.browserVersion&&(e=e+"("+this.browserVersion+")");var t=this.osName;this.osVersion&&(t=t+"("+this.osVersion+")");var n=e&&t?e+"-"+t:e||t;return n?n.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mobileType",{get:function(){var e=this.deviceModel,t=this.deviceVendor,n=e&&t?e+" "+t:e||t;return n?n.trim():""},enumerable:!1,configurable:!0}),n.prototype.initUAParser=function(){try{var n=new e.UAParser;n.setUA(navigator.userAgent),this._userAgentData=n.getResult()}catch(r){t.Logger.warn("UAParser failure",r)}},n.UNKNOWN_DEVICE_TYPE="unknown",n}();t.BrowserInfo=n}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function e(){}return Object.defineProperty(e,"CLIENT_VERSION",{get:function(){return"5.3.5w"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"SALT",{get:function(){return"ST8irbd3bB"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"TAB_UUID_KEY",{get:function(){return"pos_tid"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OPS_KEY",{get:function(){return"pos_ops"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DEVICE_ID_KEY",{get:function(){return"SecuredTouchDeviceId"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"LAST_DEVICE_KEY_RESYNC",{get:function(){return"DeviceRefreshDate"}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e,"CAPTURED_KEYBOARD_INTERACTIONS",{get:function(){return"pos_cki"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"CAPTURED_MOUSE_INTERACTIONS",{get:function(){return"pos_cmi"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"CAPTURED_GESTURES",{get:function(){return"pos_cg"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"CAPTURED_INDIRECT",{get:function(){return"pos_cie"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"CAPTURED_TAGS",{get:function(){return"pos_ct"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"KEYBOARD_INTERACTIONS_COUNT",{get:function(){return"pos_kic"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"MOUSE_INTERACTIONS_COUNT",{get:function(){return"pos_mic"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"GESTURES_COUNT",{get:function(){return"pos_gc"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"EVENT_COUNTERS",{get:function(){return"pos_ec"},enumerable:!1,configurable:!0}),e}();e.Constants=t}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function t(e,t,n){if(void 0===e&&(e="RSA-PSS"),void 0===t&&(t=["sign","verify"]),void 0===n&&(n="SHA-256"),this.signingKeyType=e,this.keyUsage=t,this.algorithm=n,this._crypto=window.crypto||window.msCrypto,!this._crypto||!this._crypto.subtle)throw new Error("Cryptography API not supported in this browser")}return t.prototype.generateKeys=function(){return dg(this,void 0,void 0,(function(){return hg(this,(function(e){return[2,this._crypto.subtle.generateKey({name:this.signingKeyType,modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:{name:this.algorithm}},!1,this.keyUsage)]}))}))},t.prototype.exportPublicKey=function(t){return dg(this,void 0,void 0,(function(){var n,r,i;return hg(this,(function(a){switch(a.label){case 0:return[4,this._crypto.subtle.exportKey("spki",t.publicKey)];case 1:return n=a.sent(),r=e.Util.ab2str(n),i=btoa(r),e.Logger.debug("Exported base64 pub key: ",i),[2,i]}}))}))},t.prototype.exportPrivateKey=function(t){return dg(this,void 0,void 0,(function(){var n,r,i,a;return hg(this,(function(o){switch(o.label){case 0:return[4,this._crypto.subtle.exportKey("pkcs8",t.privateKey)];case 1:return n=o.sent(),r=e.Util.ab2str(n),i=btoa(r),a="-----BEGIN PRIVATE KEY-----\n"+i+"\n-----END PRIVATE KEY-----",e.Logger.debug("Exported base64 pem:",a),[2,a]}}))}))},t.prototype.signChallenge=function(t,n,r){return void 0===r&&(r=0),dg(this,void 0,void 0,(function(){var i,a,o;return hg(this,(function(s){switch(s.label){case 0:return i=e.Util.string2buf(t),[4,this._crypto.subtle.sign({name:this.signingKeyType,saltLength:r,hash:this.algorithm},n,i)];case 1:return a=s.sent(),o=btoa(String.fromCharCode.apply(null,new Uint8Array(a))),e.Logger.debug("Signed challenge: ",o),[2,o]}}))}))},t}();e.CryptoOperator=t}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function e(){}return Object.defineProperty(e,"isLogEnabled",{get:function(){return this._isLogEnabled||window["enable-logs-pingOneSignals"]},set:function(e){this._isLogEnabled=e},enumerable:!1,configurable:!0}),e.debug=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=e.TAG+" "+t,e.isLogEnabled&&(n&&n.length>0?console.debug?console.debug(t,n):console.log(t,n):console.debug?console.debug(t):console.log(t))},e.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=e.TAG+" "+t,e.isLogEnabled&&(n&&n.length>0?console.error(t,n):console.error(t))},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=e.TAG+" "+t,e.isLogEnabled&&(n&&n.length>0?console.warn(t,n):console.warn(t))},e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=e.TAG+" "+t,e.isLogEnabled&&(n&&n.length>0?console.info(t,n):console.info(t))},e.TAG="[SignalsSDK]",e}();e.Logger=t}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function e(){}return Object.defineProperty(e,"INITIALIZATION_ERROR",{get:function(){return"INITIALIZATION_ERROR"}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e,"UNEXPECTED_ERROR",{get:function(){return"UNEXPECTED_ERROR"},enumerable:!1,configurable:!0}),e}();e.POErrorCodes=t}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function n(){}return Object.defineProperty(n,"isMobile",{get:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},enumerable:!1,configurable:!0}),n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},n.ieFix=function(){(-1!=navigator.userAgent.indexOf("MSIE")?/MSIE (\d+\.\d+);/:/Trident.*rv[ :]*(\d+\.\d+)/).test(navigator.userAgent)&&(document.body.setAttribute("style","-ms-touch-action:none;"),document.body.style.touchAction="none",document.body.style.msTouchAction="none")},n.now=function(){var e=window.performance||{};return e.now=e.now||e.webkitNow||e.msNow||e.oNow||e.mozNow||function(){return(new Date).getTime()},e.now()},n.base64Uint8Array=function(e){var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=e.length,i="";for(t=0;t<r;t+=3)i+=n[e[t]>>2],i+=n[(3&e[t])<<4|e[t+1]>>4],i+=n[(15&e[t+1])<<2|e[t+2]>>6],i+=n[63&e[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},n.string2buf=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},n.utf8Encode=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},n.hash=function(r){var i=n.hashCache.get(r);
1return i||(i=e.sha256(r+t.Constants.SALT),n.hashCache.set(r,i)),i},n.hashMini=function(e){var t,n,r=""+JSON.stringify(e),i=2166136261;for(t=0,n=r.length;t<n;t++)i=Math.imul(31,i)+r.charCodeAt(t)|0;return("0000000"+(i>>>0).toString(16)).substr(-8)},n.hashCode=function(e){var t=0,n=e?e.length:0,r=0;if(n>0)for(;r<n;)t=(t<<5)-t+e.charCodeAt(r++)|0;return t},n.mod=function(e,t){return(n.hashCode(e)%t+t)%t},n.isEmail=function(e){try{return e&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.toLowerCase())}catch(n){return t.Logger.warn("isEmail function failed to parse string",n),!1}},n.getEmailDomain=function(e){return n.isEmail(e)?e.substring(e.lastIndexOf("@")+1):""},n.extendPrimitiveValues=function(e,t,r){for(var i=n.allKeys(t),a=0;a<i.length;)n.isObject(t[i[a]])||r&&(!r||void 0!==e[i[a]])||(e[i[a]]=t[i[a]]),a++;return e},n.flatten=function(e){var t={};return n.dive("",e,t),t},n.isFunction=function(e){return e&&"function"==typeof e},n.isPassiveSupported=function(){var e=!1,t=function(){};try{var n={get passive(){return e=!0,!0}};window.addEventListener("test",t,n),window.removeEventListener("test",t,!1)}catch(r){e=!1}return e},n.getAttribute=function(e,t){try{if(e&&"function"==typeof e.getAttribute)return e.getAttribute(t)||""}catch(n){}return""},n.createInvisibleElement=function(e){try{var n=document.createElement(e);return n.style.display="none",n.style.border="none",n.style.position="absolute",n.style.top="-999px",n.style.left="-999px",n.style.width="0",n.style.height="0",n.style.visibility="hidden",n}catch(r){return t.Logger.warn("Failed to create element",r),null}},n.values=function(e){for(var t=n.allKeys(e),r=t.length,i=Array(r),a=0;a<r;a++)i[a]=e[t[a]];return i},n.getValuesOfMap=function(e){if(this.isFunction(e.values))return Array.from(e.values());var t=[];return e.forEach((function(e){return t.push(e)})),t},n.typesCounter=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i.type]=(t[i.type]||0)+1}return t},n.modifiersKeys=function(e){var t=[];return e.getModifierState&&["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"].forEach((function(n){e.getModifierState(n.toString())&&t.push(n)})),t},n.getElementText=function(e){var t,n;return e instanceof HTMLInputElement?["checkbox","radio"].indexOf(e.type)>=0?""+e.checked:e.value:e instanceof HTMLSelectElement?null===(n=null===(t=e.selectedOptions)||void 0===t?void 0:t[0])||void 0===n?void 0:n.innerText:e.innerText},n.getSrcElement=function(e){return e.srcElement||e.target},n.getObjectType=function(e){try{var t=/function (.{1,})\(/.exec(e.constructor.toString());return t&&t.length>1?t[1]:""}catch(n){return""}},n.isSelectorMatches=function(e,t,n){try{var r=Element.prototype,i=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector,a=0;
1do{if(i.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType&&a++<n);return null}catch(o){return null}},n.anySelectorMatches=function(e,n,r){try{for(var i=0,a=n;i<a.length;i++){var o=a[i];if(this.isSelectorMatches(e,o,r))return!0}}catch(s){t.Logger.warn(s)}return!1},n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},n.safeJsonParse=function(e){var n=null;try{e&&(n=JSON.parse(e))}catch(r){t.Logger.warn("Failed to parse object "+r),n=null}return n},n.getElementSelectionStart=function(e){var t;try{t=e.selectionStart}catch(n){t=""}return t},n.getElementSelectionEnd=function(e){var t;try{t=e.selectionEnd}catch(n){t=""}return t},n.isClickableInput=function(e){return e&&["button","checkbox","color","radio","range","image","submit","file","reset"].indexOf(e.type)>=0},n.isTextInput=function(e){return e&&["date","datetime-local","email","month","number","password","search","tel","text","time","url","week","datetime"].indexOf(e.type)>=0},n.getDeviceOrientation=function(){var e=screen.orientation||screen.mozOrientation||{},t=screen.msOrientation||e.type,n=e.angle;return{orientation:null==t?void 0:t.toString(),angle:null==n?void 0:n.toString()}},n.getDevToolsState=function(){var e,t,n=window.outerWidth-window.innerWidth>160,r=window.outerHeight-window.innerHeight>160,i=n?"vertical":"horizontal";return r&&n||!(null!==(t=null===(e=window.Firebug)||void 0===e?void 0:e.chrome)&&void 0!==t&&t.isInitialized||n||r)?{open:!1,orientation:void 0}:{open:!0,orientation:i}},n.getCookie=function(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null},n.setCookie=function(e,t,n){var r=new Date;r.setTime(r.getTime()+1e3*n),document.cookie=e+"="+t+";path=/;secure;SameSite=None;expires="+r.toUTCString()},n.deleteCookie=function(e){n.setCookie(e,"",-1)},n.delay=function(e){return new Promise((function(t){return setTimeout(t,e)}))},n.getHostnameFromRegex=function(e){if(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]}return null},n.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},n.promiseTimeout=function(e,t){var n=new Promise((function(t,n){var r=setTimeout((function(){clearTimeout(r),n(new Error("Timed out in "+e+"ms."))}),e)}));return Promise.race([t,n])},n.getProperty=function(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)},n.filterReduce=function(e,t){return Object.keys(e).filter((function(n){return t(e[n])})).reduce((function(t,n){var r;return pg(pg({},t),((r={})[n]=e[n],r))}),{})},n.dive=function(e,t,r){for(var i in t)if(t.hasOwnProperty(i)){var a=i,o=t[i];e.length>0&&(a=e+"."+i),n.isObject(o)?n.dive(a,o,r):r[a]=o}},n.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},n.allKeys=function(e){if(!n.isObject(e))return[];var t=[];for(var r in e)t.push(r);return t},n.encryptionString=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e.charCodeAt(r)^t.charCodeAt(r%t.length);n.push(String.fromCharCode(i))}return n.join("")},n.encryptionBytes=function(e,t){for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e[r]^t.charCodeAt(r%t.length);return n},n.parseJwt=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},n.calculateMeanTimeDeltasBetweenEvents=function(e){var t=0;if((null==e?void 0:e.length)>1){for(var n=e[0].epochTs,r=1;r<e.length;r++)t+=e[r].epochTs-n,n=e[r].epochTs;t/=e.length-1}return t},n.sortEventsByTimestamp=function(e){return e.sort((function(e,t){return e.eventTs>t.eventTs?1:e.eventTs<t.eventTs?-1:e.epochTs>t.epochTs?1:e.epochTs<t.epochTs?-1:"click"===e.type?1:-1}))},n.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(e.getX()-t.getX(),2)+Math.pow(e.getY()-t.getY(),2))},n.calculateMeanDistanceBetweenPoints=function(e){var t=0;if((null==e?void 0:e.length)>1){for(var r=1;r<e.length;r++)t+=n.distanceBetweenPoints(e[r-1],e[r]);t/=e.length-1}return t},n.filterArrayByLength=function(e,t){return e.length<=t?e:e.slice(0,t).concat(e[e.length-1])},n.keepFirstEventsWithDistance=function(e){var t=e.events,n=e.threshold,r=e.min,i=e.max;if(t.length<=r)return t;var a,o=t[0];for(a=1;a<t.length&&a<i&&!(Math.max(Math.abs(t[a].getX()-o.getX()),Math.abs(t[a].getY()-o.getY()))>=n);a++);return t.slice(0,Math.max(a+1,r))},n.ab2str=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))},n.str2ab=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return t},n.hashCache=new Map,n.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=",n}();t.Util=n}(e._POSignalsUtils||(e._POSignalsUtils={}))}(ug||(ug={})),dg=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))},hg=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},function(e){var t=e.openDB;!function(e){var n=function(){function e(){}return e.initDB=function(){return dg(this,void 0,void 0,(function(){var n,r=this;return hg(this,(function(i){if(!(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB))throw new Error("IndexedDB is not supported");return n=new e,[2,new Promise((function(i){return dg(r,void 0,void 0,(function(){var r;return hg(this,(function(a){switch(a.label){case 0:return r=n,[4,t(this._PingDBName,e._version,{upgrade:function(t,n,r,i,a){t.createObjectStore(e._storeDefaultName)}})];case 1:return r.indexedDatabase=a.sent(),i(n),[2]}}))}))}))]}))}))},e.prototype.close=function(){this.indexedDatabase.close()},e.prototype.getValue=function(t){return this.indexedDatabase.get(e._storeDefaultName,t)},e.prototype.setValue=function(t,n){return this.indexedDatabase.put(e._storeDefaultName,n,t)},e._PingDBName="Ping",e._version=1,e._storeDefaultName="PING_ONE",e}();e.IndexedDBStorage=n}(e._POSignalsStorage||(e._POSignalsStorage={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function t(t,n){this.crossStorageClient=new e.CrossStorageClient(t,n)}return t.prototype.get=function(t){var n=e._POSignalsUtils.Util.hash(t);return this.crossStorageClient.get(n)},t.prototype.del=function(t){return this.crossStorageClient.del(e._POSignalsUtils.Util.hash(t))},t.prototype.set=function(t,n,r){return this.crossStorageClient.set(e._POSignalsUtils.Util.hash(t),n,r)},t.prototype.onConnect=function(){return this.crossStorageClient.onConnect()},t.prototype.close=function(e){return this.crossStorageClient.close(e)},t.prototype.getSignedPayload=function(e,t){return this.crossStorageClient.getSignedPayload(e,t)},t.prototype.getDeviceDetails=function(t){var n=e._POSignalsUtils.Util.hash(t);return this.crossStorageClient.getDeviceDetails(n)},t.prototype.setDeviceDetails=function(t,n){var r=e._POSignalsUtils.Util.hash(t);return this.crossStorageClient.setDeviceDetails(r,n)},t}();t.CrossStorage=n;var r=function(){function e(e){this.storage=e}return e.prototype.get=function(e){return Promise.resolve(this.storage.getItem(e))},e.prototype.del=function(e){return this.storage.removeItem(e),Promise.resolve()},e.prototype.set=function(e,t){return this.storage.setItem(e,t),Promise.resolve()},e.prototype.onConnect=function(){return Promise.resolve()},e.prototype.close=function(e){return Promise.resolve()},e.prototype.getSignedPayload=function(e,t){return Promise.resolve([])},e.prototype.getDeviceDetails=function(e){return Promise.resolve([])},e.prototype.setDeviceDetails=function(e,t){return Promise.resolve([])},e}();t.CrossStorageFallback=r}(e._POSignalsStorage||(e._POSignalsStorage={}))}(ug||(ug={})),function(e){var t=function(){function t(e,t,n){this.deviceId=e,this.dbStorage=t,this.cryptoHandler=n}return t.prototype.getExportedPublicKey=function(){return dg(this,void 0,void 0,(function(){var e;return hg(this,(function(t){switch(t.label){case 0:return[4,this.getDeviceKeys()];case 1:return(e=t.sent())?[2,this.cryptoHandler.exportPublicKey(e)]:[2]}}))}))},t.prototype.setDeviceKeys=function(e){return dg(this,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return[4,this.dbStorage.setValue(this.deviceId,e)];case 1:return t=n.sent(),this.cachedDeviceKey=e,[2,t]}}))}))},t.prototype.associateDeviceKeys=function(){return dg(this,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return[4,this.cryptoHandler.generateKeys()];case 1:return t=n.sent(),e._POSignalsUtils.Logger.info("Associating new device domain keys"),[4,this.setDeviceKeys(t)];case 2:return n.sent(),[2,t]}}))}))},t.prototype.signDeviceWithKeys=function(e){return dg(this,void 0,void 0,(function(){var n,r,i;return hg(this,(function(a){switch(a.label){case 0:return r=(n=this.cryptoHandler).signChallenge,i=[e],[4,this.getDeviceKeys()];case 1:return[2,r.apply(n,i.concat([a.sent().privateKey,t._default_salt]))]}}))}))},t.prototype.getDeviceKeys=function(){return dg(this,void 0,void 0,(function(){var e;return hg(this,(function(t){switch(t.label){case 0:return this.cachedDeviceKey?[3,2]:(e=this,[4,this.dbStorage.getValue(this.deviceId)]);case 1:e.cachedDeviceKey=t.sent(),t.label=2;case 2:return[2,this.cachedDeviceKey]}}))}))},t._default_salt=32,t}();e.DeviceKeys=t}(ug||(ug={})),function(e){!function(t){var n=function(){function n(){this._disabledStorage=[],this.assertionValues=["BROWSER_ENGINE_VERSION","NAVIGATOR_LANGUAGE","OS_NAME","OS_VERSION","NAVIGATOR_USER_AGENT","FINGER_PRINT","RESOLUTION","PUSH_NOTIFICATIONS_SUPPORTED","COOKIES_ENABLED","IS_INCOGNITO","IS_PRIVATE_MODE"];try{window.sessionStorage.setItem("_st_storage_enabled_check","test"),window.sessionStorage.removeItem("_st_storage_enabled_check"),this.signalsSessionStorage=window.sessionStorage}
1catch(n){e._POSignalsUtils.Logger.warn("session storage disabled"),this._disabledStorage.push("sessionStorage"),this.signalsSessionStorage=new t.StorageFallback}try{window.localStorage.setItem("_st_storage_enabled_check","test"),window.localStorage.removeItem("_st_storage_enabled_check"),this.signalsLocalStorage=new t.StorageWrapper(window.localStorage)}catch(n){e._POSignalsUtils.Logger.warn("local storage disabled"),this._disabledStorage.push("localStorage"),this.signalsLocalStorage=new t.StorageWrapper(new t.StorageFallback),this.crossStorage=new t.CrossStorageFallback(this.signalsLocalStorage)}}return n.prototype.setStorageConfig=function(e){this.disableHub=e.disableHub,this.hubUrl=e.hubUrl,this.universalTrustEnabled=this.isUniversalTrustEnabled(e.universalDeviceIdentification),this.devEnv=e.devEnv},Object.defineProperty(n,"instance",{get:function(){return n._instance||(n._instance=new n),n._instance},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tabUUID",{get:function(){var t=this.signalsSessionStorage.getItem(e._POSignalsUtils.Constants.TAB_UUID_KEY);return t||(t=e._POSignalsUtils.Util.newGuid(),this.signalsSessionStorage.setItem(e._POSignalsUtils.Constants.TAB_UUID_KEY,t)),t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ops",{get:function(){var t=Number(this.signalsSessionStorage.getItem(e._POSignalsUtils.Constants.OPS_KEY));return isNaN(t)?null:t},set:function(t){t?this.signalsSessionStorage.setItem(e._POSignalsUtils.Constants.OPS_KEY,t.toString()):this.signalsSessionStorage.removeItem(e._POSignalsUtils.Constants.OPS_KEY)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabledStorage",{get:function(){return this._disabledStorage},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sessionStorage",{get:function(){return this.signalsSessionStorage},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"localStorage",{get:function(){return this.signalsLocalStorage},enumerable:!1,configurable:!0}),n.prototype.initDeviceIdentity=function(){return dg(this,void 0,void 0,(function(){var n,r,i;return hg(this,(function(a){switch(a.label){case 0:return(r=this.signalsLocalStorage.getItem(e._POSignalsUtils.Constants.DEVICE_ID_KEY))&&(this.cachedDeviceId=r),this.universalTrustEnabled?(this.deviceTrust={attestation:{},dtts:(new Date).getTime()},this.disableHub&&(this.deviceTrust.hubDisabled=!0),i=this,[4,t.IndexedDBStorage.initDB()]):[3,3];case 1:return i.indexedDBStorage=a.sent(),[4,this.loadLocalDeviceTrust()];case 2:n=a.sent(),a.label=3;case 3:return this.disableHub||r&&!this.shouldFallbackToP1Key(n)?[3,5]:[4,this.fallbackToCrossStorage(this.hubUrl)];case 4:return a.sent(),[3,6];case 5:this.crossStorage=new t.CrossStorageFallback(this.signalsLocalStorage),a.label=6;case 6:return this.getDeviceId()?[3,8]:[4,this.associateDeviceDetails(this.disableHub)];case 7:a.sent(),a.label=8;case 8:return!this.universalTrustEnabled||this.getDeviceId()&&n?[3,10]:[4,this.createDomainKeys(this.disableHub)];case 9:a.sent(),a.label=10;case 10:return[2,this.getDeviceId()]}}))}))},n.prototype.shouldFallbackToP1Key=function(e){return this.universalTrustEnabled&&!this.disableHub&&(!e||this.isRefreshRequired(this.deviceKeyRsyncIntervals))},n.prototype.isRefreshRequired=function(t){if(void 0===t&&(t=3),!this.deviceTrust.dtts)return!0;var n=this.signalsLocalStorage.getItem(e._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC);if(!n||isNaN(parseInt(n)))return!0;var r=this.deviceTrust.dtts-n>864e5*t;return r&&e._POSignalsUtils.Logger.debug("Refresh required"),r},n.prototype.loadLocalDeviceTrust=function(){return dg(this,void 0,void 0,(function(){var n,r;return hg(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),this.cachedDeviceId?this.cachedDeviceId?(this.domainDeviceKeys=new e.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new e._POSignalsUtils.CryptoOperator),[4,this.domainDeviceKeys.getDeviceKeys()]):[3,3]:(e._POSignalsUtils.Logger.debug("No device id found on customer domain"),[2,!1]);case 1:return i.sent()?(n=this.deviceTrust.attestation,[4,this.domainDeviceKeys.getExportedPublicKey()]):(e._POSignalsUtils.Logger.debug("No device keys found on customer domain"),[2,!1]);case 2:return n.deviceKey=i.sent(),this.crossStorage=new t.CrossStorageFallback(this.signalsLocalStorage),[2,!0];case 3:return[3,5];case 4:return r=i.sent(),e._POSignalsUtils.Logger.error("Domain PKI initialization failed",r),[2,!1];case 5:return[2]}}
1))}))},n.prototype.createDomainKeys=function(t){return dg(this,void 0,void 0,(function(){var n,r;return hg(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),!t&&this._disabledStorage.lastIndexOf("hub")>-1?(e._POSignalsUtils.Logger.debug("Hub unavailable - skipping domain trust creation"),[2]):(this.domainDeviceKeys=new e.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new e._POSignalsUtils.CryptoOperator),[4,this.domainDeviceKeys.associateDeviceKeys()]);case 1:return i.sent(),n=this.deviceTrust.attestation,[4,this.domainDeviceKeys.getExportedPublicKey()];case 2:return n.deviceKey=i.sent(),[3,4];case 3:return r=i.sent(),e._POSignalsUtils.Logger.error("Domain PKI initialization failed",r),[3,4];case 4:return[2]}}))}))},n.prototype.getDeviceId=function(){return this.cachedDeviceId},n.prototype.associateDeviceDetails=function(t){var n,r;return dg(this,void 0,void 0,(function(){var i;return hg(this,(function(a){switch(a.label){case 0:return e._POSignalsUtils.Logger.debug("Associating fresh device details"),this.cachedDeviceId="Id-"+e._POSignalsUtils.Util.newGuid(),this.signalsLocalStorage.setItem(e._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId),t?[3,4]:this.universalTrustEnabled?(i=this.deviceTrust.attestation,[4,this.crossStorage.setDeviceDetails(e._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId)]):[3,2];case 1:return i.fallbackDeviceKey=a.sent()[0],[3,4];case 2:return[4,this.crossStorage.set(e._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId)];case 3:a.sent(),a.label=4;case 4:return e._POSignalsUtils.Logger.debug("PingOne Signals deviceId: "+this.cachedDeviceId),[2,[this.cachedDeviceId,null===(r=null===(n=this.deviceTrust)||void 0===n?void 0:n.attestation)||void 0===r?void 0:r.fallbackDeviceKey]]}}))}))},n.prototype.addAssertion=function(t){return dg(this,void 0,void 0,(function(){var n,r,i,a,o,s,l;return hg(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,5,6,7]),!this.universalTrustEnabled||!this.deviceTrust.attestation.deviceKey&&!this.deviceTrust.attestation.fallbackDeviceKey)return[2];for(n=(n=t.deviceId).concat("-"+t.deviceType),r=0,i=this.assertionValues;r<i.length;r++)a=i[r],null!=t[a]&&null!=t[a]&&(n=n.concat("-"+t[a]));return n=n.concat("-"+this.deviceTrust.dtts),e._POSignalsUtils.Logger.debug("Device identityContract "+n),this.deviceTrust.attestation.fallbackDeviceKey&&this.crossStorage?(o=this.deviceTrust.attestation,[4,this.crossStorage.getSignedPayload(n,this.getDeviceId())]):[3,2];case 1:return o.deviceToken=c.sent()[1],this.signalsLocalStorage.setItem(e._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC,(new Date).getTime()),[3,4];case 2:return s=this.deviceTrust.attestation,[4,this.domainDeviceKeys.signDeviceWithKeys(n)];case 3:s.deviceToken=c.sent(),c.label=4;case 4:return[3,7];case 5:return l=c.sent(),e._POSignalsUtils.Logger.warn("Device attestation failed:",l),[3,7];case 6:return this.universalTrustEnabled&&e._POSignalsUtils.Logger.info("Device attestation "+JSON.stringify(this.deviceTrust,null,2)),[7];case 7:return[2]}}
1))}))},n.prototype.closeTrustStore=function(){try{this.crossStorage.close(this.devEnv),this.indexedDBStorage&&this.indexedDBStorage.close()}catch(t){e._POSignalsUtils.Logger.info("Unable to close trust store:",t)}},n.prototype.fallbackToCrossStorage=function(n){return dg(this,void 0,void 0,(function(){var r;return hg(this,(function(i){switch(i.label){case 0:e._POSignalsUtils.Logger.debug("PingOne Signals cross storage is required, initializing"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.initCrossStorage(n)];case 2:return i.sent(),e._POSignalsUtils.Logger.info("PingOne Signals cross storage initiated"),[3,4];case 3:return r=i.sent(),e._POSignalsUtils.Logger.warn("PingOne Signals Session crossStorage failed to connect "+r),this._disabledStorage.push("hub"),this.crossStorage=new t.CrossStorageFallback(this.signalsLocalStorage),[3,4];case 4:return[2]}}))}))},n.prototype.initCrossStorage=function(n){return dg(this,void 0,void 0,(function(){var r,i,a,o,s;return hg(this,(function(l){switch(l.label){case 0:return r=this.universalTrustEnabled?"1.0.7":"1.0.1",i="https://apps.pingone.com/signals/web-sdk/hub-"+r+"/hub.html",(a=((null==n?void 0:n.trim())||i).replace(/\/$/,"")).endsWith("html")||(a+="/hub.html"),this.crossStorage=new t.CrossStorage(a,{timeout:2e3}),[4,this.crossStorage.onConnect()];case 1:return l.sent(),this.universalTrustEnabled?[4,this.crossStorage.getDeviceDetails(e._POSignalsUtils.Constants.DEVICE_ID_KEY)]:[3,3];case 2:return o=l.sent(),this.cachedDeviceId=o[0],[3,5];case 3:return s=this,[4,this.crossStorage.get(e._POSignalsUtils.Constants.DEVICE_ID_KEY)];case 4:s.cachedDeviceId=l.sent(),l.label=5;case 5:return this.cachedDeviceId?this.signalsLocalStorage.setItem(e._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId):e._POSignalsUtils.Logger.info("no device id from hub"),this.universalTrustEnabled&&(o&&o[1]?(this.deviceTrust.attestation.fallbackDeviceKey=o[1],e._POSignalsUtils.Logger.info("Using fallback device keys from hub "+this.deviceTrust.attestation.fallbackDeviceKey)):e._POSignalsUtils.Logger.info("failed to use any device keys")),[2]}}))}))},n.prototype.isUniversalTrustEnabled=function(e){return null!=e&&("boolean"==typeof e?e:"string"==typeof e&&"true"===e.toLowerCase())},n}();t.SessionStorage=n}(e._POSignalsStorage||(e._POSignalsStorage={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function t(e){this.storage=e}return t.prototype.getItem=function(t){var n=e._POSignalsUtils.Util.hash(t),r=this.storage.getItem(n);return r||(r=this.storage.getItem(t))&&(this.storage.setItem(n,r),this.storage.removeItem(t)),r},t.prototype.removeItem=function(t){return this.storage.removeItem(e._POSignalsUtils.Util.hash(t))},t.prototype.setItem=function(t,n){return this.storage.setItem(e._POSignalsUtils.Util.hash(t),n)},t}();
1t.StorageWrapper=n;var r=function(){function e(){this.internalStorageMap=new Map}return e.prototype.getItem=function(e){return this.internalStorageMap.get(e)},e.prototype.removeItem=function(e){this.internalStorageMap.delete(e)},e.prototype.setItem=function(e,t){this.internalStorageMap.set(e,t)},e}();t.StorageFallback=r}(e._POSignalsStorage||(e._POSignalsStorage={}))}(ug||(ug={})),pg=function(){return(pg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},dg=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))},hg=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},function(e){!function(e){var t=function(){function e(){}return e.prototype.isCanvasSupported=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},e.prototype.getWebglCanvas=function(e){var t=document.createElement("canvas"),n=null;try{n="webgl"===e?t.getContext("webgl")||t.getContext("experimental-webgl"):t.getContext("webgl2")}catch(r){}return n||(n=null),n},e.prototype.isWebGlSupported=function(e){if(!this.isCanvasSupported())return!1;var t=this.getWebglCanvas(e);return("webgl"===e?!!window.WebGLRenderingContext:!!window.WebGL2RenderingContext)&&!!t},e.prototype.isWebGl=function(e){return!!this.isWebGlSupported(e)&&!!this.getWebglCanvas(e)},e.prototype.getWebglVendorAndRenderer=function(e){try{if(this.isWebGlSupported(e)){var t=this.getWebglCanvas(e),n=t.getExtension("WEBGL_debug_renderer_info");return t.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}catch(r){}return null},e.prototype.getHasLiedLanguages=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1},e.prototype.getHasLiedResolution=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},e.prototype.getHasLiedOs=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,r=navigator.platform.toLowerCase();return e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e||void 0!==n&&((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e||n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e||(-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))||(r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)},e.prototype.getHasLiedBrowser=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var r,i=eval.toString().length;if(37===i&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e||39===i&&"Internet Explorer"!==e&&"Other"!==e||33===i&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}
1catch(a){try{a.toSource(),r=!0}catch(o){r=!1}}return r&&"Firefox"!==e&&"Other"!==e},e}();e.FingerprintLegacyMetadata=t}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function n(t,n){this.sessionData=t,this.metadataParams=n,this.deviceId=null,this.hasMicrophone=null,this.hasSpeakers=null,this.hasWebcam=null,this.isBatterySupported=null,this.batteryLevel=null,this.batteryCharging=null,this.batteryChargingTime=null,this.batteryDischargingTime=null,this.headlessTests=new Map,this.lieTests={},this.gpsSupported=null,this.fingerPrintComponentKeys=new Set(["navigatorPlatform","colorDepth","deviceMemory","pixelRatio","hardwareConcurrency","screenResolution","availableScreenResolution","timezoneOffset","timezone","sessionStorage","localStorage","indexedDB","addBehavior","openDatabase","cpuClass","platform","canvas","adBlock","touchSupport","fonts","audio","osCpu","productSub","emptyEvalLength","errorFF","chrome","cookiesEnabled"]),this.webGlStatus=-1,this.numberOfVideoDevices=0,this.numberOfAudioDevices=0,this.videoInputDevices=[],this.audioInputDevices=[],this.audioOutputDevices=[],this.webRtcIps=new Map,this.lastCalculatedMetadata=null,this.metadataQueue=new e.PromiseQueue(1)}return Object.defineProperty(n.prototype,"OPS",{get:function(){if(!this.metadataParams.browserInfo.isIphoneOrIPad)return 0;var e=this.sessionData.ops;return e||(e=this.getOps(),this.sessionData.ops=e),e},enumerable:!1,configurable:!0}),n.prototype.getDeviceAttributes=function(){return dg(this,void 0,void 0,(function(){var t=this;return hg(this,(function(n){return[2,this.metadataQueue.add((function(){return dg(t,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return this.lastCalculatedMetadata?[3,3]:(t=this,[4,this.calculateDeviceMetadata()]);case 1:return t.lastCalculatedMetadata=n.sent(),e._POSignalsUtils.Logger.info("calculated device attributes."),e._POSignalsUtils.Logger.info("PingOne Signals deviceId: "+this.deviceId),[4,this.sessionData.addAssertion(this.lastCalculatedMetadata)];case 2:n.sent(),this.sessionData.closeTrustStore(),n.label=3;case 3:return[2,this.lastCalculatedMetadata]}}))}))}))]}))}))},n.prototype.getObfsInfo=function(){return{identifier:"x1",key:"Xq7tSbjB517mhZwt"}},n.prototype.calculateDeviceMetadata=function(){return dg(this,void 0,void 0,(function(){var n,r,i,a,o;return hg(this,(function(s){switch(s.label){case 0:return this.gpsSupported=null!=navigator.geolocation,n=this.metadataParams.metadataBlackList,r=[this.sessionData.initDeviceIdentity().catch((function(t){e._POSignalsUtils.Logger.warn("failed to get deviceId info",t)})),this.getFingerPrint(n).catch((function(t){e._POSignalsUtils.Logger.warn("failed to get fingerprint info",t.message)})),this.getPrivateMode().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get incognito info",t)})),t.Incognito.isPrivateMode().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get private mode info",t)})),this.getPermissionsMetadata().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get permissions info",t)})),new t.DetectHeadless(n).getHeadlessResults().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get headless results",t)})),new t.DetectLies(n).getAllLies().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get lies results",t)})),this.audioIntVideoInit().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get audio-video info",t)})),this.batteryInit().catch((function(t){return e._POSignalsUtils.Logger.warn("failed to get battery info",t)}))],[4,Promise.all(r)];case 1:return o=s.sent(),this.deviceId=o[0],this.fingerPrint=o[1],this.isPrivateMode=o[2],this.isPrivateModeV2=o[3],this.permissions=o[4],this.headlessTests=o[5],this.lieTests=o[6],i={ops:this.OPS,devicePixelRatio:window.devicePixelRatio,screenWidth:window.screen.width,screenHeight:window.screen.height},e._POSignalsUtils.Util.extendPrimitiveValues(i,screen,!1),a=[{deviceId:this.deviceId,deviceType:this.metadataParams.browserInfo.deviceType,osVersion:(this.metadataParams.browserInfo.osName+" "+this.metadataParams.browserInfo.osVersion).trim()||""}],[4,this.getIdentificationMetadata(n)];
1case 2:return[2,pg.apply(void 0,[pg.apply(void 0,[pg.apply(void 0,[pg.apply(void 0,a.concat([s.sent()])),this.getIoMetadata()]),this.getSensorsMetadata()]),i])]}}))}))},n.prototype.batteryInit=function(){return dg(this,void 0,void 0,(function(){var t,n=this;return hg(this,(function(r){switch(r.label){case 0:return t=this,[4,e._POSignalsUtils.Util.promiseTimeout(50,new Promise((function(r,i){navigator.getBattery?(n.isBatterySupported=!0,navigator.getBattery().then((function(e){e&&(t.batteryLevel=e.level,t.batteryCharging=e.charging,t.batteryChargingTime=e.chargingTime,t.batteryDischargingTime=e.dischargingTime),r()})).catch((function(t){e._POSignalsUtils.Logger.warn("Battery "+t),r()}))):(e._POSignalsUtils.Logger.debug("Battery not supported!"),r())})))];case 1:return r.sent(),[2]}}))}))},n.prototype.enumerateDevicesEnabled=function(){var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return!e._POSignalsUtils.Util.inIframe()||!t},n.prototype.getRTCPeerConnection=function(){var e=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!e){var t=window["iframe.contentWindow"];t&&(e=t.RTCPeerConnection||t.mozRTCPeerConnection||t.webkitRTCPeerConnection)}return e},n.prototype.collectWebRtc=function(){var e=this;try{var t={},n=new(this.getRTCPeerConnection())({iceServers:[{urls:this.metadataParams.webRtcUrl.trim()}]},{optional:[{RtpDataChannels:!0}]});n.onicecandidate=function(n){if(n.candidate){var r=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(n.candidate.candidate)[1];void 0===t[r]&&(n.candidate.candidate.indexOf("host")>0?e.webRtcIps.set("WEB_RTC_HOST_IP",r):n.candidate.candidate.indexOf("srflx")>0&&e.webRtcIps.set("WEB_RTC_SRFLX_IP",r)),t[r]=!0}},n.createDataChannel(""),n.createOffer((function(e){n.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}catch(r){}},n.prototype.audioIntVideoInit=function(){return dg(this,void 0,void 0,(function(){var t,n=this;return hg(this,(function(r){switch(r.label){case 0:return t=this,[4,e._POSignalsUtils.Util.promiseTimeout(50,new Promise((function(r,i){return n.enumerateDevicesEnabled()?navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?void navigator.mediaDevices.enumerateDevices().then((function(e){e.forEach((function(e){e.kind&&("audioinput"==e.kind.toLowerCase()?(t.hasMicrophone=!0,t.numberOfAudioDevices++,e.label&&t.audioInputDevices.push(e.label)):"videoinput"==e.kind.toLowerCase()?(t.hasWebcam=!0,t.numberOfVideoDevices++,e.label&&t.videoInputDevices.push(e.label)):"audiooutput"==e.kind.toLowerCase()&&(t.hasSpeakers=!0,t.numberOfAudioDevices++,e.label&&t.audioOutputDevices.push(e.label)))})),r()})).catch((function(t){e._POSignalsUtils.Logger.warn("enumerateDevices failed",t),r()})):(e._POSignalsUtils.Logger.debug("enumerateDevices() not supported."),void r()):(e._POSignalsUtils.Logger.debug("enumerateDevices() cannot run within safari iframe"),void r())})))];case 1:return r.sent(),[2]}}))}))},n.prototype.getFingerPrint=function(t){return dg(this,void 0,void 0,(function(){var n,r,i=this;return hg(this,(function(a){switch(a.label){case 0:return t.has("fingerprint")?[2,Promise.resolve("")]:(n=new Promise((function(t,n){return dg(i,void 0,void 0,(function(){var r,i;return hg(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,e.FingerprintJS.load()];case 1:return[4,a.sent().get()];case 2:return r=a.sent(),this.fingerPrint=r.visitorId,this.fingerPrintComponents=r.components,t(r.visitorId),[3,4];case 3:return i=a.sent(),e._POSignalsUtils.Logger.warn("Failed to get FingerPrint "+i),n({err:i,message:"FingerPrint failed"}),[3,4];case 4:return[2]}}
1))}))})),r=new Promise((function(t,n){return dg(i,void 0,void 0,(function(){return hg(this,(function(t){switch(t.label){case 0:return[4,e._POSignalsUtils.Util.delay(this.metadataParams.fingerprintTimeoutMillis)];case 1:return t.sent(),n({message:"Fingerprint timeout"}),[2]}}))}))})),[4,Promise.race([n,r])]);case 1:return[2,a.sent()]}}))}))},n.prototype.getSensorsMetadata=function(){var e={};return this.flatAndAddMetadata(e,"DEDVCE_LIGHT_SUPPORTED",(function(){return"ondevicelight"in window})),this.flatAndAddMetadata(e,"IS_TOUCH_DEVICE",(function(){return"ontouchstart"in window})),window.DeviceMotionEvent||this.flatAndAddMetadata(e,"ACCELEROMETER_SUPPORTED",(function(){return!1})),window.DeviceOrientationEvent||this.flatAndAddMetadata(e,"GYROSCOPE_SUPPORTED",(function(){return!1})),this.flatAndAddMetadata(e,"PROXIMITY_SUPPORTED",(function(){return"ondeviceproximity"in window})),e},n.prototype.getIdentificationMetadata=function(r){return dg(this,void 0,void 0,(function(){var i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y,_,k,$,S,E=this;return hg(this,(function(x){switch(x.label){case 0:return i=this,a={},this.flatAndAddMetadata(a,"FINGER_PRINT",(function(){return E.fingerPrint})),this.metadataParams.browserInfo.userAgentData&&(this.flatAndAddMetadata(a,"OS_NAME",(function(){return E.metadataParams.browserInfo.osName})),this.flatAndAddMetadata(a,"OS_VERSION",(function(){return E.metadataParams.browserInfo.osVersion}))),this.metadataParams.browserInfo.userAgentData&&(this.flatAndAddMetadata(a,"DEVICE_MODEL",(function(){return E.metadataParams.browserInfo.deviceModel})),this.flatAndAddMetadata(a,"DEVICE_VENDOR",(function(){return E.metadataParams.browserInfo.deviceVendor}))),this.metadataParams.browserInfo.userAgentData&&(this.flatAndAddMetadata(a,"BROWSER_ENGINE_NAME",(function(){return E.metadataParams.browserInfo.engineName})),this.flatAndAddMetadata(a,"BROWSER_ENGINE_VERSION",(function(){return E.metadataParams.browserInfo.engineVersion}))),this.metadataParams.browserInfo.userAgentData&&this.flatAndAddMetadata(a,"CPU_ARCHITECTURE",(function(){return E.metadataParams.browserInfo.cpuArchitecture})),this.flatAndAddMetadata(a,"NAVIGATOR_VENDOR",(function(){return navigator.vendor})),this.flatAndAddMetadata(a,"NAVIGATOR_PLUGINS_LENGTH",(function(){return navigator.plugins?navigator.plugins.length:null})),this.flatAndAddMetadata(a,"NAVIGATOR_MIME_TYPES_LENGTH",(function(){return navigator.mimeTypes?navigator.mimeTypes.length:null})),this.flatAndAddMetadata(a,"NAVIGATOR_LANGUAGE",(function(){return navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage})),this.flatAndAddMetadata(a,"NAVIGATOR_LANGUAGES",(function(){return navigator.languages})),this.flatAndAddMetadata(a,"NAVIGATOR_MAX_TOUCH_POINTS",(function(){return navigator.maxTouchPoints||navigator.msMaxTouchPoints})),this.flatAndAddMetadata(a,"NAVIGATOR_POINTER_ENABLED",(function(){return navigator.pointerEnabled||navigator.msPointerEnabled})),this.flatAndAddMetadata(a,"NAVIGATOR_WEB_DRIVER",(function(){return navigator.webdriver})),this.flatAndAddMetadata(a,"NAVIGATOR_HARDWARE_CONCURRENCY",(function(){return navigator.hardwareConcurrency})),this.flatAndAddMetadata(a,"NAVIGATOR_VIBRATE",(function(){return null!=navigator.vibrate})),this.flatAndAddMetadata(a,"PUSH_NOTIFICATIONS_SUPPORTED",(function(){return"Notification"in window})),this.flatAndAddMetadata(a,"NAVIGATOR_APP_CODE_NAME",(function(){return navigator.appCodeName})),this.flatAndAddMetadata(a,"NAVIGATOR_APP_NAME",(function(){return navigator.appName})),this.flatAndAddMetadata(a,"NAVIGATOR_APP_VERSION",(function(){return navigator.appVersion})),this.flatAndAddMetadata(a,"NAVIGATOR_ON_LINE",(function(){return navigator.onLine})),this.flatAndAddMetadata(a,"NAVIGATOR_PLATFORM",(function(){return navigator.platform})),this.flatAndAddMetadata(a,"NAVIGATOR_PRODUCT",(function(){return navigator.product})),this.flatAndAddMetadata(a,"NAVIGATOR_USER_AGENT",(function(){return navigator.userAgent})),this.flatAndAddMetadata(a,"NAVIGATOR_PDF_VIEWER_ENABLED",(function(){return navigator.pdfViewerEnabled})),this.flatAndAddMetadata(a,"NAVIGATOR_DEVICE_MEMORY",(function(){return navigator.deviceMemory})),this.flatAndAddMetadata(a,"NAVIGATOR_CONNECTION_RTT",(function(){return navigator.connection?navigator.connection.rtt:null})),r.has("modernizr")?[3,2]:[4,this.safeAddModernizrFeatures(a)];case 1:x.sent(),x.label=2;case 2:if((o=window._pingOneSignalsPingResult||window._ST_PING)?this.flatAndAddMetadata(a,"JS_CHALLENGE",(function(){return o}
1)):this.flatAndAddMetadata(a,"JS_CHALLENGE",(function(){return"unknown"})),s=new t.FingerprintLegacyMetadata,this.flatAndAddMetadata(a,"IS_WEBGL",(function(){return s.isWebGl("webgl")})),this.flatAndAddMetadata(a,"WEBGLVENDORANDRENDERER",(function(){return s.getWebglVendorAndRenderer("webgl")})),this.flatAndAddMetadata(a,"IS_WEBGL2",(function(){return s.isWebGl("webgl2")})),this.flatAndAddMetadata(a,"WEBGL2VENDORANDRENDERER",(function(){return s.getWebglVendorAndRenderer("webgl2")})),this.flatAndAddMetadata(a,"HASLIEDLANGUAGES",(function(){return s.getHasLiedLanguages()})),this.flatAndAddMetadata(a,"HASLIEDRESOLUTION",(function(){return s.getHasLiedResolution()})),this.flatAndAddMetadata(a,"HASLIEDOS",(function(){return s.getHasLiedOs()})),this.flatAndAddMetadata(a,"HASLIEDBROWSER",(function(){return s.getHasLiedBrowser()})),this.fingerPrintComponents)for(u in l=function(e){if(!c.fingerPrintComponents.hasOwnProperty(e))return"continue";var t=c.fingerPrintComponents[e];"fonts"==e?c.flatAndAddMetadata(a,"JS_FONTS",(function(){return t.value.length})):"canvas"==e?c.flatAndAddMetadata(a,"IS_CANVAS",(function(){return null!=t.value})):"screenResolution"==e&&t.value&&t.value.length?c.flatAndAddMetadata(a,"RESOLUTION",(function(){return t.value.join(",")})):"availableScreenResolution"==e&&t.value&&t.value.length?c.flatAndAddMetadata(a,"AVAILABLE_RESOLUTION",(function(){return t.value.join(",")})):"touchSupport"==e&&t.value?c.flatAndAddMetadata(a,"TOUCH_SUPPORT",(function(){return t.value})):"audio"==e&&t.value?c.flatAndAddMetadata(a,"AUDIO_FINGERPRINT",(function(){return t.value})):"osCpu"==e&&t.value?c.flatAndAddMetadata(a,"OS_CPU",(function(){return t.value})):"productSub"==e&&t.value?c.flatAndAddMetadata(a,"PRODUCT_SUB",(function(){return t.value})):"emptyEvalLength"==e&&t.value?c.flatAndAddMetadata(a,"EMPTY_EVAL_LENGTH",(function(){return t.value})):"errorFF"==e&&t.value?c.flatAndAddMetadata(a,"ERROR_FF",(function(){return t.value})):"chrome"==e&&t.value?c.flatAndAddMetadata(a,"CHROME",(function(){return t.value})):"cookiesEnabled"==e&&t.value?c.flatAndAddMetadata(a,"COOKIES_ENABLED",(function(){return t.value})):i.fingerPrintComponentKeys.has(e)&&null!=e&&c.flatAndAddMetadata(a,e.toUpperCase(),(function(){return t.value}))},c=this,this.fingerPrintComponents)l(u);for(g in this.flatAndAddMetadata(a,"IS_INCOGNITO",(function(){return E.isPrivateMode})),this.flatAndAddMetadata(a,"IS_PRIVATE_MODE",(function(){return E.isPrivateModeV2})),this.flatAndAddMetadata(a,"IS_WEB_GLSTATUS",(function(){return E.webGlStatus})),d={selenium:navigator.webdriver||e._POSignalsUtils.Util.getAttribute(window.document.documentElement,"webdriver")||"",phantomjs:{_phantom:window._phantom||"",__phantomas:window.__phantomas||"",callPhantom:window.callPhantom||""},nodejs:{Buffer:window.Buffer||""},couchjs:{emit:window.emit||""},rhino:{spawn:window.spawn||""},chromium:{domAutomationController:window.domAutomationController||"",domAutomation:window.domAutomation||""},outerWidth:window.outerWidth,outerHeight:window.outerHeight},this.flatAndAddMetadata(a,"HEADLESS",(function(){return d})),this.flatAndAddMetadata(a,"HEADLESS",(function(){return E.headlessTests})),this.flatAndAddMetadata(a,"LIES",(function(){var e={};for(var t in E.lieTests)e[t]=JSON.stringify(E.lieTests[t]);return Object.keys(e).length>0?e:null})),this.flatAndAddMetadata(a,"STEALTH",(function(){return new t.DetectStealth(r).getStealthResult()})),this.flatAndAddMetadata(a,"REF_LINK",(function(){return document.referrer})),this.flatAndAddMetadata(a,"PLUGINS",(function(){for(var e={length:navigator.plugins.length,details:[]},t=0;t<e.length;t++)e.details.push({length:navigator.plugins[t].length,name:navigator.plugins[t].name,version:navigator.plugins[t].version,filename:navigator.plugins[t].filename});return e})),this.flatAndAddMetadata(a,"AUDIO",(function(){return E.numberOfAudioDevices})),this.flatAndAddMetadata(a,"VIDEO",(function(){return E.numberOfVideoDevices})),this.flatAndAddMetadata(a,"VIDEO_INPUT_DEVICES",(function(){return E.videoInputDevices.toString()})),this.flatAndAddMetadata(a,"AUDIO_INPUT_DEVICES",(function(){return E.audioInputDevices.toString()})),this.flatAndAddMetadata(a,"AUDIO_OUTPUT_DEVICES",(function(){return E.audioOutputDevices.toString()})),this.flatAndAddMetadata(a,"MEDIA_CODEC_MP4_AVC1",(function(){return E.getMediaCodec('video/mp4;; codecs = "avc1.42E01E"')})),this.flatAndAddMetadata(a,"MEDIA_CODEC_X_M4A",(function(){return E.getMediaCodec("audio/x-m4a")})),this.flatAndAddMetadata(a,"MEDIA_CODEC_AAC",(function(){return E.getMediaCodec("audio/aac")})),h=this.metadataParams.additionalMediaCodecs,p=function(e){if(!h.hasOwnProperty(e))return"continue";f.flatAndAddMetadata(a,"MEDIA_CODEC_"+e,(function(){return E.getMediaCodec(h[e])}))},f=this,h)p(g);window.performance&&window.performance.memory&&(this.flatAndAddMetadata(a,"MEMORY_HEAP_SIZE_LIMIT",(function(){return window.performance.memory.jsHeapSizeLimit})),this.flatAndAddMetadata(a,"MEMORY_TOTAL_HEAP_SIZE",(function(){return window.performance.memory.totalJSHeapSize})),this.flatAndAddMetadata(a,"MEMORY_USED_HEAP_SIZE",(function(){return window.performance.memory.usedJSHeapSize}))),this.flatAndAddMetadata(a,"IS_ACCEPT_COOKIES",(function(){return navigator.cookieEnabled})),this.flatAndAddMetadata(a,"selenium_in_document",(function(){return t.SeleniumProperties.seleniumInDocument()})),this.flatAndAddMetadata(a,"selenium_in_window",(function(){return t.SeleniumProperties.seleniumInWindow()})),this.flatAndAddMetadata(a,"selenium_in_navigator",(function(){return t.SeleniumProperties.seleniumInNavigator()})),this.flatAndAddMetadata(a,"selenium_sequentum",(function(){return t.SeleniumProperties.seleniumSequentum()})),this.flatAndAddMetadata(a,"DOCUMENT_ELEMENT_SELENIUM",(function(){return e._POSignalsUtils.Util.getAttribute(window.document.documentElement,"selenium")}
1)),this.flatAndAddMetadata(a,"DOCUMENT_ELEMENT_WEBDRIVER",(function(){return e._POSignalsUtils.Util.getAttribute(window.document.documentElement,"webdriver")})),this.flatAndAddMetadata(a,"DOCUMENT_ELEMENT_DRIVER",(function(){return e._POSignalsUtils.Util.getAttribute(window.document.documentElement,"driver")})),this.flatAndAddMetadata(a,"window_html_webdriver",(function(){return!!e._POSignalsUtils.Util.getAttribute(document.getElementsByTagName("html")[0],"webdriver")})),this.flatAndAddMetadata(a,"window_geb",(function(){return!!window.geb})),this.flatAndAddMetadata(a,"window_awesomium",(function(){return!!window.awesomium})),this.flatAndAddMetadata(a,"window_RunPerfTest",(function(){return!!window.RunPerfTest})),this.flatAndAddMetadata(a,"window_fmget_targets",(function(){return!!window.fmget_targets})),this.flatAndAddMetadata(a,"hasTrustToken",(function(){return"hasTrustToken"in document})),this.flatAndAddMetadata(a,"trustTokenOperationError",(function(){return"trustTokenOperationError"in XMLHttpRequest.prototype})),this.flatAndAddMetadata(a,"setTrustToken",(function(){return"setTrustToken"in XMLHttpRequest.prototype})),this.flatAndAddMetadata(a,"trustToken",(function(){return"trustToken"in HTMLIFrameElement.prototype})),this.flatAndAddMetadata(a,"localStorage.length",(function(){return localStorage.length})),this.flatAndAddMetadata(a,"sessionStorage.length",(function(){return sessionStorage.length})),this.sessionData.disabledStorage.forEach((function(e){E.flatAndAddMetadata(a,e.toUpperCase()+"_FAILED",(function(){return!0}))})),this.flatAndAddMetadata(a,"WEB_RTC_ENABLED",(function(){return!!E.getRTCPeerConnection()})),this.metadataParams.webRtcUrl&&this.metadataParams.webRtcUrl.length>0&&(this.collectWebRtc(),this.webRtcIps.forEach((function(e,t){null!=t&&null!=e&&E.flatAndAddMetadata(a,t,(function(){return e}))})),this.webRtcIps.clear()),window.matchMedia&&this.flatAndAddMetadata(a,"MQ_SCREEN",(function(){var e=window.matchMedia("(min-width: "+(window.innerWidth-1)+"px)");return{matches:e.matches,media:e.media}})),this.addIframeData(a,r),window.Notification&&this.flatAndAddMetadata(a,"NOTIFICATION_PERMISSION",(function(){return window.Notification.permission})),this.flatAndAddMetadata(a,"HAS_CHROME_APP",(function(){return window.chrome&&"app"in window.chrome})),this.flatAndAddMetadata(a,"HAS_CHROME_CSI",(function(){return window.chrome&&"csi"in window.chrome})),this.flatAndAddMetadata(a,"HAS_CHROME_LOADTIMES",(function(){return window.chrome&&"loadTimes"in window.chrome})),this.flatAndAddMetadata(a,"HAS_CHROME_RUNTIME",(function(){return window.chrome&&"runtime"in window.chrome})),this.flatAndAddMetadata(a,"CHROMIUM_MATH",n.detectChromium),this.addClientHints(a),this.flatAndAddMetadata(a,"NAVIGATOR_KEYBOARD_SUPPORTED",(function(){return!!navigator.keyboard})),this.flatAndAddMetadata(a,"NAVIGATOR_HID_SUPPORTED",(function(){return!!navigator.hid})),this.flatAndAddMetadata(a,"NAVIGATOR_SERIAL_SUPPORTED",(function(){return!!navigator.serial})),this.flatAndAddMetadata(a,"NAVIGATOR_PRESENTATION_SUPPORTED",(function(){return!!navigator.presentation})),x.label=3;case 3:return x.trys.push([3,6,,7]),r.has("floc")||!e.Util.isFunction(document.interestCohort)?[3,5]:[4,e.Util.promiseTimeout(100,document.interestCohort())];case 4:m=x.sent(),v=m.id,w=m.version,this.flatAndAddMetadata(a,"floc_id",(function(){return v})),this.flatAndAddMetadata(a,"floc_version",(function(){return w})),x.label=5;case 5:return[3,7];case 6:return x.sent(),[3,7];case 7:for(_ in b=function(t){y.flatAndAddMetadata(a,t,(function(){return e._POSignalsUtils.Util.getProperty(window,E.metadataParams.dataPoints[t])}))},y=this,this.metadataParams.dataPoints)b(_);for($ in k=this.metadataParams.propertyDescriptors)k.hasOwnProperty($)&&(S="window"===$?window:window[$])&&this.addPropertyDescriptorInfo(S,$.toUpperCase()+"_PROPERTY_DESCRIPTOR",k[$],a);return[2,a]}}))}))},n.prototype.addClientHints=function(t){try{var n=navigator.userAgentData;if(!n)return;this.flatAndAddMetadata(t,"NAVIGATOR_CLIENT_HINTS_PLATFORM",(function(){return n.platform})),this.flatAndAddMetadata(t,"NAVIGATOR_CLIENT_HINTS_MOBILE",(function(){return n.mobile}));var r=n.brands;if(!r)return;for(var i=function(e){if(r[e].hasOwnProperty("brand")&&r[e].hasOwnProperty("version")){var n=r[e].brand+":"+r[e].version;a.flatAndAddMetadata(t,"NAVIGATOR_CLIENT_HINTS_BRAND_"+e,(function(){return n}))}},a=this,o=0;o<r.length;o++)i(o)}
1catch(s){e._POSignalsUtils.Logger.warn("failed to add client hints",s)}},n.prototype.addPropertyDescriptorInfo=function(t,n,r,i){try{for(var a=function(e){o.flatAndAddMetadata(i,n+"_"+e.toUpperCase(),(function(){var n=t.prototype?t.prototype:t,r=Object.getOwnPropertyDescriptor(n,e);if(r){var i=r.get?r.get.toString():void 0;return JSON.stringify({configurable:r.configurable,enumerable:r.enumerable,value:r.value,writable:r.writable,getter:null!=i&&i.length<100?i:void 0})}return"undefined"}))},o=this,s=0,l=r;s<l.length;s++)a(l[s])}catch(c){e._POSignalsUtils.Logger.warn("failed to add properties descriptor",c)}},n.prototype.addIframeData=function(t,n){if(!n.has("IFRAME_DATA"))try{var r=e._POSignalsUtils.Util.createInvisibleElement("iframe");if(!r)return;r.srcdoc="blank page",document.body.appendChild(r),this.flatAndAddMetadata(t,"IFRAME_CHROME",(function(){return typeof r.contentWindow.chrome})),this.flatAndAddMetadata(t,"IFRAME_WIDTH",(function(){return r.contentWindow.screen.width})),this.flatAndAddMetadata(t,"IFRAME_HEIGHT",(function(){return r.contentWindow.screen.height})),r.remove()}catch(i){e._POSignalsUtils.Logger.warn("failed to add iframe data",i)}},n.prototype.getPermissionsMetadata=function(){return dg(this,void 0,void 0,(function(){var t,n,r,i,a,o;return hg(this,(function(s){switch(s.label){case 0:if(t={},n=["accelerometer","accessibility-events","ambient-light-sensor","background-sync","camera","clipboard-read","clipboard-write","geolocation","gyroscope","magnetometer","microphone","midi","notifications","payment-handler","persistent-storage","push"],r=[],navigator.permissions)for(a in i=function(e){var i=n[e];r.push(navigator.permissions.query({name:i}).then((function(e){t[i]=e.state})).catch((function(e){})))},n)i(a);s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),e._POSignalsUtils.Logger.warn(o),[3,4];case 4:return[2,t]}}))}))},n.prototype.getMediaCodec=function(e){var t=document.createElement("video");if(t&&t.canPlayType)return t.canPlayType(e)},n.prototype.safeAddModernizrFeatures=function(t){return dg(this,void 0,void 0,(function(){var n,r,i,a,o,s;return hg(this,(function(l){switch(l.label){case 0:return e.evaluateModernizr(),n=this,r=e.Modernizr,i=r.prefixed,a=r.hasEvent,this.flatAndAddMetadata(t,"ambient_light",(function(){return r.ambientlight})),this.flatAndAddMetadata(t,"application_cache",(function(){return r.applicationcache})),this.flatAndAddMetadata(t,"audio",(function(){return!!r.audio})),r.audio&&this.flatAndAddMetadata(t,"audio",(function(){return r.audio})),this.flatAndAddMetadata(t,"battery_api",(function(){return!!i("battery",navigator)||!!i("getBattery",navigator)})),this.flatAndAddMetadata(t,"blob_constructor",(function(){return r.blobconstructor})),this.flatAndAddMetadata(t,"context_menu",(function(){return r.contextmenu})),this.flatAndAddMetadata(t,"cors",(function(){return r.cors})),this.flatAndAddMetadata(t,"cryptography",(function(){return r.cryptography})),this.flatAndAddMetadata(t,"custom_elements",(function(){return r.customelements})),this.flatAndAddMetadata(t,"custom_protocol_handler",(function(){return r.customprotocolhandler})),this.flatAndAddMetadata(t,"custom_event",(function(){return r.customevent})),this.flatAndAddMetadata(t,"dart",(function(){return r.dart})),this.flatAndAddMetadata(t,"data_view",(function(){return r.dataview})),this.flatAndAddMetadata(t,"event_listener",(function(){return r.eventlistener})),[4,this.safeModernizrOn("exiforientation")];case 1:return o=l.sent(),n.flatAndAddMetadata(t,"exif_orientation",(function(){return o})),this.flatAndAddMetadata(t,"force_touch",(function(){return r.forcetouch})),r.forcetouch&&(this.flatAndAddMetadata(t,"force_touch.mouse_force_will_begin",(function(){return a(i("mouseforcewillbegin",window,!1),window)})),this.flatAndAddMetadata(t,"force_touch.webkit_force_at_mouse_down",(function(){return MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN})),this.flatAndAddMetadata(t,"force_touch.webkit_force_at_force_mouse_down",(function(){return MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN}))),this.flatAndAddMetadata(t,"full_screen",(function(){return r.fullscreen})),this.flatAndAddMetadata(t,"game_pads",(function(){return r.gamepads})),this.flatAndAddMetadata(t,"geo_location",(function(){return r.geolocation})),this.flatAndAddMetadata(t,"ie8compat",(function(){return r.ie8compat})),[4,this.safeModernizrOn("indexeddb")];case 2:return s=l.sent(),n.flatAndAddMetadata(t,"indexed_db",(function(){return s})),this.flatAndAddMetadata(t,"indexed_db_blob",(function(){return r.indexeddbblob})),this.flatAndAddMetadata(t,"internationalization",(function(){return r.intl})),this.flatAndAddMetadata(t,"json",(function(){return r.json})),this.flatAndAddMetadata(t,"ligatures",(function(){return r.ligatures})),this.flatAndAddMetadata(t,"media_source",(function(){return"MediaSource"in window})),this.flatAndAddMetadata(t,"message_channel",(function(){return r.messagechannel})),this.flatAndAddMetadata(t,"notification",(function(){return r.notification})),this.flatAndAddMetadata(t,"page_visibility",(function(){return r.pagevisibility})),this.flatAndAddMetadata(t,"performance",(function(){return r.performance})),this.flatAndAddMetadata(t,"pointer_events",(function(){return r.pointerevents})),this.flatAndAddMetadata(t,"pointer_lock",(function(){return r.pointerlock})),this.flatAndAddMetadata(t,"proximity",(function(){return r.proximity})),this.flatAndAddMetadata(t,"query_selector",(function(){return r.queryselector})),this.flatAndAddMetadata(t,"quota_management",(function(){return r.quotamanagement})),this.flatAndAddMetadata(t,"request_animation_frame",(function(){return r.requestanimationframe})),this.flatAndAddMetadata(t,"service_worker",(function(){return r.serviceworker})),this.flatAndAddMetadata(t,"touch_events",(function(){return r.touchevents})),this.flatAndAddMetadata(t,"typed_arrays",(function(){return r.typedarrays})),this.flatAndAddMetadata(t,"vibrate",(function(){return r.vibrate})),this.flatAndAddMetadata(t,"video",(function(){return!!r.video})),r.video&&this.flatAndAddMetadata(t,"video",(function(){return r.video})),this.flatAndAddMetadata(t,"web_gl",(function(){return r.webgl})),this.flatAndAddMetadata(t,"web_sockets",(function(){return r.websockets})),this.flatAndAddMetadata(t,"x_domain_request",(function(){return r.xdomainrequest})),this.flatAndAddMetadata(t,"matchmedia",(function(){return r.matchmedia})),[2]}}))}))},n.prototype.getIoMetadata=function(){var t=this,n={},r=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return this.flatAndAddMetadata(n,"NETWORK_TYPE",(function(){return r?r.type:null})),this.flatAndAddMetadata(n,"NETWORK_DOWNLOAD_MAX",(function(){return r?r.downlinkMax:null})),this.flatAndAddMetadata(n,"BLUTOOTH_SUPPORTED",(function(){return!!navigator.bluetooth})),this.flatAndAddMetadata(n,"HAS_SPEAKERS",(function(){return t.hasSpeakers})),this.flatAndAddMetadata(n,"HAS_MICROPHONE",(function(){return t.hasMicrophone})),this.flatAndAddMetadata(n,"HAS_CAMERA",(function(){return t.hasWebcam})),this.flatAndAddMetadata(n,"BATTERY_SUPPORTED",(function(){return t.isBatterySupported})),this.flatAndAddMetadata(n,"BATTERY_LEVEL",(function(){return t.batteryLevel})),this.flatAndAddMetadata(n,"BATTERY_CHARGING",(function(){return t.batteryCharging})),this.flatAndAddMetadata(n,"BATTERY_CHARGING_TIME",(function(){return t.batteryChargingTime})),this.flatAndAddMetadata(n,"BATTERY_DISCHARGING_TIME",(function(){return t.batteryDischargingTime})),this.flatAndAddMetadata(n,"GPS_SUPPORTED",(function(){return t.gpsSupported})),this.flatAndAddMetadata(n,"IS_MOBILE",(function(){return e._POSignalsUtils.Util.isMobile})),this.flatAndAddMetadata(n,"HAS_TOUCH",(function(){return"ontouchstart"in document.documentElement})),this.flatAndAddMetadata(n,"PERMISSIONS",(function(){return t.permissions})),this.flatAndAddMetadata(n,"PREFERS_COLOR_SCHEME",(function(){return window.matchMedia("(prefers-color-scheme: light)").matches?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":void 0})),n},n.prototype.safeAddMetadata=function(t,n,r){try{var i=new Set(this.metadataParams.metadataBlackList||[]);null==n||null==r||i.has(n)||(t[n]=r)}catch(a){e._POSignalsUtils.Logger.warn("Failed to add "+n+" -> "+r+", "+a)}},n.prototype.safeModernizrOn=function(t){return dg(this,void 0,void 0,(function(){var n,r;return hg(this,(function(i){switch(i.label){case 0:return n=new Promise((function(n){try{e.Modernizr.on(t,(function(e){n(e)}))}catch(r){n(null),e._POSignalsUtils.Logger.warn("Modernizr.on Failed with feature "+t,r)}})),r=e._POSignalsUtils.Util.delay(250).then((function(){return null})),[4,Promise.race([n,r])];case 1:return[2,i.sent()]}}))}))},n.prototype.flatAndAddMetadata=function(t,n,r){try{var i=new Set(this.metadataParams.metadataBlackList||[]);if(!n||i.has(n))return;var a=r();if("object"==typeof a&&null!==a){var o=e._POSignalsUtils.Util.flatten(a);for(var s in o)this.safeAddMetadata(t,n+"."+s,o[s])}else this.safeAddMetadata(t,n,a)}catch(l){e._POSignalsUtils.Logger.warn("Failed to add "+n,l)}},n.prototype.getOps=function(){var t,n=new Date,r=0;do{r++,t=(new Date).getTime()-n.getTime()}while(t<500);var i=r/t;return e._POSignalsUtils.Logger.debug("Ops : "+i),i},n.prototype.getPrivateMode=function(){return dg(this,void 0,void 0,(function(){var e;return hg(this,(function(t){return e=this,[2,new Promise((function(t,n){e.detectPrivateMode((function(e){t(e)}))}))]}))}))},n.prototype.detectPrivateMode=function(e){var t,n=e.bind(null,!0),r=e.bind(null,!1);window.webkitRequestFileSystem?window.webkitRequestFileSystem(0,0,r,n):"MozAppearance"in document.documentElement.style?((t=indexedDB.open("test")).onerror=n,t.onsuccess=r):/constructor/i.test(window.HTMLElement)||window.safari?function(){try{localStorage.length||(localStorage.x=1,localStorage.removeItem("x")),r()}catch(e){navigator.cookieEnabled?n():r()}}():window.indexedDB||!window.PointerEvent&&!window.MSPointerEvent?r():n()},n.detectChromium=function(){return 1.4474840516030247==Math.acos(.123)&&.881373587019543==Math.acosh(Math.SQRT2)&&1.1071487177940904==Math.atan(2)&&.5493061443340548==Math.atanh(.5)&&1.4645918875615231==Math.cbrt(Math.PI)&&-.4067775970251724==Math.cos(21*Math.LN2)&&9199870313877772e292==Math.cosh(492*Math.LOG2E)&&1.718281828459045==Math.expm1(1)&&101.76102278593319==Math.hypot(6*Math.PI,-100)&&.4971498726941338==Math.log10(Math.PI)&&12246467991473532e-32==Math.sin(Math.PI)&&11.548739357257748==Math.sinh(Math.PI)&&-3.3537128705376014==Math.tan(10*Math.LOG2E)&&.12238344189440875==Math.tanh(.123)&&1.9275814160560204e-50==Math.pow(Math.PI,-100)},n}();t.Metadata=n}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function e(){}return e.seleniumInDocument=function(){for(var e=0,t=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"];e<t.length;e++)if(document[t[e]])return!0;return!1},e.seleniumInWindow=function(){for(var e=0,t=["_phantom","__nightmare","_selenium","callPhantom","calledSelenium","callSelenium","_Selenium_IDE_Recorder"];e<t.length;e++)if(window[t[e]])return!0;return!1},e.seleniumInNavigator=function(){for(var e=0,t=["webdriver","__driver_evaluate","__webdriver_evaluate","__selenium_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__selenium_unwrapped","__fxdriver_unwrapped","_Selenium_IDE_Recorder","_selenium","calledSelenium","_WEBDRIVER_ELEM_CACHE","ChromeDriverw","driver-evaluate","webdriver-evaluate","selenium-evaluate","webdriverCommand","webdriver-evaluate-response","__webdriverFunc","__webdriver_script_fn","__$webdriverAsyncExecutor","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","$chrome_asyncScriptInfo","$cdc_asdjflasutopfhvcZLmcfl_"];e<t.length;e++)if(navigator[t[e]])return!0;return!1},e.seleniumSequentum=function(){return window.external&&window.external.toString()&&-1!=window.external.toString().indexOf("Sequentum")},e}();e.SeleniumProperties=t}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function t(e){this.propertyBlackList=e}return t.prototype.getHeadlessResults=function(){return dg(this,void 0,void 0,(function(){var t,n=this;return hg(this,(function(r){switch(r.label){case 0:return[4,this.headlessResults(window)];case 1:return t=r.sent(),[4,this.test(t,"iframe_window",(function(){return dg(n,void 0,void 0,(function(){var t,n;return hg(this,(function(r){switch(r.label){case 0:return Object.getOwnPropertyDescriptors&&(t=e._POSignalsUtils.Util.createInvisibleElement("iframe"))?(t.srcdoc="page intentionally left blank",document.body.appendChild(t),"function get contentWindow() { [native code] }"!==Object.getOwnPropertyDescriptors(HTMLIFrameElement.prototype).contentWindow.get.toString()||t.contentWindow===window?[2,!0]:[4,this.headlessResults(t.contentWindow)]):[2];case 1:return n=r.sent(),t.remove(),[2,n]}}))}))}))];case 2:return r.sent(),[2,t]}}))}))},t.prototype.headlessResults=function(e){return dg(this,void 0,void 0,(function(){var t,n,r=this;return hg(this,(function(i){switch(i.label){case 0:return t=new Map,(n=[]).push(this.test(t,"headless_chrome",(function(){return dg(r,void 0,void 0,(function(){return hg(this,(function(t){return[2,/HeadlessChrome/.test(e.navigator.userAgent)]}))}))}))),n.push(this.test(t,"navigator.webdriver_present",(function(){return dg(r,void 0,void 0,(function(){return hg(this,(function(t){return[2,"webdriver"in e.navigator]}))}))}))),n.push(this.test(t,"window.chrome_missing",(function(){return dg(r,void 0,void 0,(function(){return hg(this,(function(t){return[2,/Chrome/.test(e.navigator.userAgent)&&!e.chrome]}))}))}))),n.push(this.test(t,"permissions_api",(function(){return dg(r,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return e.navigator.permissions&&e.Notification?[4,e.navigator.permissions.query({name:"notifications"})]:[3,2];case 1:return t=n.sent(),[2,"denied"===e.Notification.permission&&"prompt"===t.state];case 2:return[2]}}
1))}))}))),n.push(this.test(t,"permissions_api_overriden",(function(){return dg(r,void 0,void 0,(function(){var t;return hg(this,(function(n){return(t=e.navigator.permissions)?"function query() { [native code] }"!==t.query.toString()||"function toString() { [native code] }"!==t.query.toString.toString()||t.query.toString.hasOwnProperty("[[Handler]]")&&t.query.toString.hasOwnProperty("[[Target]]")&&t.query.toString.hasOwnProperty("[[IsRevoked]]")?[2,!0]:[2,t.hasOwnProperty("query")]:[2]}))}))}))),n.push(this.test(t,"navigator.plugins_empty",(function(){return dg(r,void 0,void 0,(function(){return hg(this,(function(e){return[2,0===navigator.plugins.length]}))}))}))),n.push(this.test(t,"navigator.languages_blank",(function(){return dg(r,void 0,void 0,(function(){return hg(this,(function(e){return[2,""===navigator.languages]}))}))}))),n.push(this.test(t,"consistent_plugins_prototype",(function(){return dg(r,void 0,void 0,(function(){var e;return hg(this,(function(t){return e=PluginArray.prototype===navigator.plugins.__proto__,navigator.plugins.length>0&&(e=e&&Plugin.prototype===navigator.plugins[0].__proto__),[2,e]}))}))}))),n.push(this.test(t,"consistent_mimetypes_prototype",(function(){return dg(r,void 0,void 0,(function(){var e;return hg(this,(function(t){return e=MimeTypeArray.prototype===navigator.mimeTypes.__proto__,navigator.mimeTypes.length>0&&(e=e&&MimeType.prototype===navigator.mimeTypes[0].__proto__),[2,e]}))}))}))),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}}))}))},t.prototype.test=function(t,n,r){return dg(this,void 0,void 0,(function(){var i,a;return hg(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),this.propertyBlackList.has(n)?[3,2]:[4,e._POSignalsUtils.Util.promiseTimeout(100,r())];case 1:null!=(i=o.sent())&&(t[n]=i),o.label=2;case 2:return[3,4];case 3:return a=o.sent(),e._POSignalsUtils.Logger.warn(n+" headless test was failed",a),[3,4];case 4:return[2]}}
1))}))},t}();t.DetectHeadless=n}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function n(e){this.propertyBlackList=e,this.result={}}return n.prototype.documentLie=function(e,t){if(t.lied)for(var n=0,r=t.lieTypes;n<r.length;n++){var i=r[n];this.result[i]||(this.result[i]=[]),this.result[i].push(e)}},n.prototype.getLies=function(e,t,r){var i=this;if(void 0===r&&(r=null),"function"!=typeof e)return{lied:!1,lieTypes:[]};var a=e.name.replace(/get\s/,""),o={undefined_properties:function(){return!!r&&n.getUndefinedValueLie(r,a)},to_string:function(){return n.getToStringLie(e,a,i.iframeWindow)},prototype_in_function:function(){return n.getPrototypeInFunctionLie(e)},own_property:function(){return n.getOwnPropertyLie(e)},object_to_string_error:function(){return n.getNewObjectToStringTypeErrorLie(e)}},s=Object.keys(o).filter((function(e){return!i.propertyBlackList.has("LIES."+e)&&!!o[e]()}));return{lied:s.length>0,lieTypes:s}},n.prototype.getAllLies=function(){return dg(this,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return this.propertyBlackList.has("LIES")?[2,this.result]:(this.propertyBlackList.has("LIES_IFRAME")||(t=e._POSignalsUtils.Util.createInvisibleElement("iframe"))&&(document.body.appendChild(t),this.iframeWindow=t),[4,Promise.all([this.searchLies((function(){return AnalyserNode}),{target:["minDecibels"]}),this.searchLies((function(){return AudioBuffer}),{target:["copyFromChannel"]}),this.searchLies((function(){return BiquadFilterNode}),{target:["getFrequencyResponse"]}),this.searchLies((function(){return CanvasRenderingContext2D}),{target:["getLineDash"]}),this.searchLies((function(){return DOMRect}),{target:["height"]}),this.searchLies((function(){return DOMRectReadOnly}),{target:["left"]}),this.searchLies((function(){return Element}),{target:["getClientRects"]}),this.searchLies((function(){return HTMLCanvasElement}),{target:["height"]}),this.searchLies((function(){return Math}),{target:["sinh"]}),this.searchLies((function(){return MediaDevices}),{target:["enumerateDevices"]}),this.searchLies((function(){return Navigator}),{target:["plugins"]}),this.searchLies((function(){return OffscreenCanvasRenderingContext2D}),{target:["getLineDash"]}),this.searchLies((function(){return SVGRect}),{target:["x"]})])]);case 1:return n.sent(),this.iframeWindow.remove(),[2,this.result]}}))}))},n.prototype.searchLies=function(t,n){var r=void 0===n?{}:n,i=r.target,a=void 0===i?[]:i,o=r.ignore,s=void 0===o?[]:o;return dg(this,void 0,void 0,(function(){var n,r,i=this;return hg(this,(function(o){try{if(void 0===(l=n=t())||!l)return[2]}catch(c){return[2]}var l;return r=n.prototype?n.prototype:n,Object.getOwnPropertyNames(r).forEach((function(t){if(!("constructor"==t||a.length&&!new Set(a).has(t)||s.length&&new Set(s).has(t))){var r=/\s(.+)\]/,o=(n.name?n.name:r.test(n)?r.exec(n)[1]:void 0)+"."+t;try{var l=n.prototype?n.prototype:n;try{if("function"==typeof l[t]){var c=i.getLies(l[t],l);return void i.documentLie(o,c)}}catch(h){}var u=Object.getOwnPropertyDescriptor(l,t).get,d=i.getLies(u,l,n);i.documentLie(o,d)}catch(h){e._POSignalsUtils.Logger.warn("failed "+t+" test execution",h)}}})),[2]}))}))},n.getUndefinedValueLie=function(e,t){var n=e.name,r=window[n.charAt(0).toLowerCase()+n.slice(1)];return!!r&&(void 0!==Object.getOwnPropertyDescriptor(r,t)||void 0!==Reflect.getOwnPropertyDescriptor(r,t))},n.getToStringLie=function(e,t,n){var r,i;try{r=n.Function.prototype.toString.call(e)}catch(l){}try{i=n.Function.prototype.toString.call(e.toString)}catch(l){}var a=r||e.toString(),o=i||e.toString.toString(),s=function(e){var t;return(t={})["function "+e+"() { [native code] }"]=!0,t["function get "+e+"() { [native code] }"]=!0,t["function () { [native code] }"]=!0,t["function "+e+"() {\n    [native code]\n}"]=!0,t["function get "+e+"() {\n    [native code]\n}"]=!0,t["function () {\n    [native code]\n}"]=!0,t};return!s(t)[a]||!s("toString")[o]},n.getPrototypeInFunctionLie=function(e){return"prototype"in e},n.getOwnPropertyLie=function(e){return e.hasOwnProperty("arguments")||e.hasOwnProperty("caller")||e.hasOwnProperty("prototype")||e.hasOwnProperty("toString")},n.getNewObjectToStringTypeErrorLie=function(e){try{return Object.create(e).toString(),!0}catch(s){var n=s.stack.split("\n"),r=/at Object\.apply/,i=!n.slice(1).find((function(e){return r.test(e)})),a="TypeError"==s.constructor.name&&n.length>1,o="chrome"in window||t.Metadata.detectChromium();return!(!a||!o||/at Function\.toString/.test(n[1])&&i)||!a}},n}();t.DetectLies=n}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(t){var n=function(){function n(e){this.propertyBlackList=e,this.result=new Map}return n.prototype.getStealthResult=function(){return this.addStealthTest("srcdoc_throws_error",(function(){try{return!!document.createElement("iframe").srcdoc}catch(e){return!0}})),this.addStealthTest("srcdoc_triggers_window_proxy",(function(){var t=document.createElement("iframe");return t.srcdoc=""+e._POSignalsUtils.Util.hashMini(crypto.getRandomValues(new Uint32Array(10))),!!t.contentWindow})),this.addStealthTest("index_chrome_too_high",(function(){var e="cookieStore"in window?"cookieStore":"ondevicemotion"in window?"ondevicemotion":"speechSynthesis",t=[];for(var n in window)t.push(n);return t.indexOf("chrome")>t.indexOf(e)}
1)),this.addStealthTest("chrome_runtime_functions_invalid",(function(){if(!("chrome"in window)||!("runtime"in window.chrome))return!1;try{return"prototype"in window.chrome.runtime.sendMessage||"prototype"in window.chrome.runtime.connect||(new window.chrome.runtime.sendMessage,new window.chrome.runtime.connect,!0)}catch(e){return"TypeError"!=e.constructor.name}})),this.addStealthTest("Function_prototype_toString_invalid_typeError",(function(){var e=new n.StackTraceTester;return e.isInvalidStackTraceSize(Function.prototype.toString)||e.isInvalidStackTraceSize((function(){}))})),this.result},n.prototype.addStealthTest=function(t,n){if(!this.propertyBlackList.has(t))try{this.result[t]=n()}catch(r){e._POSignalsUtils.Logger.warn("stealth test "+t+" failed",r)}},n.StackTraceTester=function(){function e(){}return e.prototype.isInvalidStackTraceSize=function(e){var n=this;try{return this.you=function(){return Object.create(e).toString()},this.cant=function(){return n.you()},this.hide=function(){return n.cant()},this.hide(),!0}catch(s){var r=s.stack.split("\n"),i=!/at Object\.apply/.test(r[1]),a="TypeError"==s.constructor.name&&r.length>=5,o="chrome"in window||t.Metadata.detectChromium();return!(!a||!o||i&&/at Function\.toString/.test(r[1])&&/\.you/.test(r[2])&&/\.cant/.test(r[3])&&/\.hide/.test(r[4]))||!a}},e}(),n}();t.DetectStealth=n}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),function(e){!function(e){var t=function(){function e(){}return e.isPrivateMode=function(){return new Promise((function(e){var t,n,r=function(){return e(!0)},i=function(){return e(!1)};try{if((n=navigator&&/(?=.*(opera|chrome)).*/i.test(navigator.userAgent)&&navigator.storage&&navigator.storage.estimate)&&navigator.storage.estimate().then((function(e){e.quota<12e7?r():i()})).catch((function(e){i()})),n||function(){var e="MozAppearance"in document.documentElement.style;if(e)if(null==indexedDB)r();else{var t=indexedDB.open("inPrivate");t.onsuccess=i,t.onerror=r}return e}()||function(){var e=navigator&&navigator.userAgent&&navigator.userAgent.match(/Version\/([0-9\._]+).*Safari/);if(e){if(parseInt(e[1],10)<11)return function(){try{localStorage.length||(localStorage.setItem("inPrivate","0"),localStorage.removeItem("inPrivate")),i()}catch(e){navigator.cookieEnabled?r():i()}return!0}();try{window.openDatabase(null,null,null,null),i()}catch(t){r()}}return!!e}()||((t=!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent))&&r(),t))return}catch(a){}return i()}))},e}();e.Incognito=t}(e._POSignalsMetadata||(e._POSignalsMetadata={}))}(ug||(ug={})),fg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dg=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))},hg=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},pg=function(){return(pg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},function(e){var t;(t=e.GestureType||(e.GestureType={}))[t.Unknown=0]="Unknown",t[t.FlingRight=1]="FlingRight",t[t.FlingLeft=2]="FlingLeft",t[t.FlingUp=3]="FlingUp",t[t.FlingDown=4]="FlingDown",t[t.Diagonal=5]="Diagonal",t[t.ScrollRight=6]="ScrollRight",t[t.ScrollLeft=7]="ScrollLeft",t[t.ScrollUp=8]="ScrollUp",t[t.ScrollDown=9]="ScrollDown",t[t.Tap=10]="Tap",t[t.DoubleTap=11]="DoubleTap"}(ug||(ug={})),function(e){var t=function(){function e(e,t){this.handler=e,this.isOnce=t,this.isExecuted=!1}return e.prototype.execute=function(e,t,n){if(!this.isOnce||!this.isExecuted){this.isExecuted=!0;var r=this.handler;e?setTimeout((function(){r.apply(t,n)}),1):r.apply(t,n)}},e}(),n=function(){function e(){this._wrap=new o(this),this._subscriptions=new Array}return e.prototype.subscribe=function(e){e&&this._subscriptions.push(new t(e,!1))},e.prototype.sub=function(e){this.subscribe(e)},e.prototype.one=function(e){e&&this._subscriptions.push(new t(e,!0))},e.prototype.has=function(e){if(e)for(var t=0,n=this._subscriptions;t<n.length;t++)if(n[t].handler==e)return!0;return!1},e.prototype.unsubscribe=function(e){if(e)for(var t=0;t<this._subscriptions.length;t++)if(this._subscriptions[t].handler==e){this._subscriptions.splice(t,1);break}},e.prototype.unsub=function(e){this.unsubscribe(e)},e.prototype._dispatch=function(e,t,n){for(var r=0;r<this._subscriptions.length;r++){var i=this._subscriptions[r];if(i.isOnce){if(!0===i.isExecuted)continue;this._subscriptions.splice(r,1),r--}i.execute(e,t,n)}},e.prototype.asEvent=function(){return this._wrap},e}();e.DispatcherBase=n;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.dispatch=function(e,t){this._dispatch(!1,this,arguments)},t.prototype.dispatchAsync=function(e,t){this._dispatch(!0,this,arguments)},t}(n);e.EventDispatcher=r;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.dispatch=function(e){this._dispatch(!1,this,arguments)},t.prototype.dispatchAsync=function(e){this._dispatch(!0,this,arguments)},t}(n),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.dispatch=function(){this._dispatch(!1,this,arguments)},t.prototype.dispatchAsync=function(){this._dispatch(!0,this,arguments)},t}(n),o=function(){function e(e){this._subscribe=function(t){return e.subscribe(t)},this._unsubscribe=function(t){return e.unsubscribe(t)},this._one=function(t){return e.one(t)},this._has=function(t){return e.has(t)}}return e.prototype.subscribe=function(e){this._subscribe(e)},e.prototype.sub=function(e){this.subscribe(e)},e.prototype.unsubscribe=function(e){this._unsubscribe(e)},e.prototype.unsub=function(e){this.unsubscribe(e)},e.prototype.one=function(e){this._one(e)},e.prototype.has=function(e){return this._has(e)},e}(),s=function(){function e(){this._events={}}return e.prototype.get=function(e){var t=this._events[e];return t||(t=this.createDispatcher(),this._events[e]=t,t)},e.prototype.remove=function(e){this._events[e]=null},e}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.createDispatcher=function(){return new r},t}(s),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.createDispatcher=function(){return new i},t}(s),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.createDispatcher=function(){return new a},t}(s);(function(){function e(){this._events=new l}Object.defineProperty(e.prototype,"events",{get:function(){return this._events}
1,enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e,t){this._events.get(e).subscribe(t)},e.prototype.sub=function(e,t){this.subscribe(e,t)},e.prototype.unsubscribe=function(e,t){this._events.get(e).unsubscribe(t)},e.prototype.unsub=function(e,t){this.unsubscribe(e,t)},e.prototype.one=function(e,t){this._events.get(e).one(t)},e.prototype.has=function(e,t){return this._events.get(e).has(t)}})(),function(){function e(){this._events=new c}Object.defineProperty(e.prototype,"events",{get:function(){return this._events},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e,t){this._events.get(e).subscribe(t)},e.prototype.sub=function(e,t){this.subscribe(e,t)},e.prototype.one=function(e,t){this._events.get(e).one(t)},e.prototype.has=function(e,t){return this._events.get(e).has(t)},e.prototype.unsubscribe=function(e,t){this._events.get(e).unsubscribe(t)},e.prototype.unsub=function(e,t){this.unsubscribe(e,t)}}(),function(){function e(){this._events=new u}Object.defineProperty(e.prototype,"events",{get:function(){return this._events},enumerable:!1,configurable:!0}),e.prototype.one=function(e,t){this._events.get(e).one(t)},e.prototype.has=function(e,t){return this._events.get(e).has(t)},e.prototype.subscribe=function(e,t){this._events.get(e).subscribe(t)},e.prototype.sub=function(e,t){this.subscribe(e,t)},e.prototype.unsubscribe=function(e,t){this._events.get(e).unsubscribe(t)},e.prototype.unsub=function(e,t){this.unsubscribe(e,t)}}()}(ug||(ug={})),function(e){var t=function(){function t(e){this._isStarted=!1,this._isEventsStarted=!1,this._gestureTimestamps=[],this._maxSensorSamples=0,this._sensorsTimestampDeltaInMillis=0,this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this.orientationImplementationFix=1,this.delegate=e,window.navigator.userAgent.match(/^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i)&&(this.orientationImplementationFix=-1),this.accelerometerUpdateHandle=this.accelerometerUpdate.bind(this),this.orientationUpdateHandle=this.orientationUpdate.bind(this)}return Object.defineProperty(t.prototype,"LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS",{get:function(){return 3e3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"accX",{get:function(){return this._accX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"accY",{get:function(){return this._accY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"accZ",{get:function(){return this._accZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lienarAccX",{get:function(){return this._lienarAccX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lienarAccY",{get:function(){return this._lienarAccY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lienarAccZ",{get:function(){return this._lienarAccZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotX",{get:function(){return this._rotX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotY",{get:function(){return this._rotY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotZ",{get:function(){return this._rotZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSensorSamples",{get:function(){return this._maxSensorSamples},set:function(e){this._maxSensorSamples=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sensorsTimestampDeltaInMillis",{get:function(){return this._sensorsTimestampDeltaInMillis},set:function(e){this._sensorsTimestampDeltaInMillis=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"accelerometerList",{get:function(){return this.getRelevantSensorSamples(this._accelerometerList)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gyroscopeList",{get:function(){return this.getRelevantSensorSamples(this._gyroscopeList)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linearAccelerometerList",{get:function(){return this.getRelevantSensorSamples(this._linearAccelerometerList)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotationList",{get:function(){return this._rotationList},enumerable:!1,configurable:!0}),t.prototype.start=function(){this._isStarted||(this._isStarted=!0,e._POSignalsUtils.Logger.debug("Sensor events started..."))},t.prototype.getRotationListCopy=function(){return this._rotationList?Array.from(this._rotationList):[]},t.prototype.stop=function(){this._isStarted&&(null!=window.DeviceMotionEvent&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isStarted=!1,e._POSignalsUtils.Logger.debug("Sensor events stopped"))},t.prototype.getRelevantSensorSamples=function(t){if(0==t.length||this._sensorsTimestampDeltaInMillis<1||0==this._gestureTimestamps.length)return t;for(var n=new Map,r=null,i=0,a=0;a<t.length;a++)for(var o=0;o<this._gestureTimestamps.length;o++)(i=t[a].timestamp)>=(r=this._gestureTimestamps[o]).start-this._sensorsTimestampDeltaInMillis&&i<=r.end+this._sensorsTimestampDeltaInMillis&&n.set(t[a].timestamp,t[a]);return e._POSignalsUtils.Util.getValuesOfMap(n)},t.prototype.stopEvents=function(){this._isEventsStarted&&(null!=window.DeviceMotionEvent&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isEventsStarted=!1,e._POSignalsUtils.Logger.debug("Sensor events stopped listening"))},t.prototype.startEvents=function(){this._isEventsStarted||(null!=window.DeviceMotionEvent?this.delegate.addEventListener(window,"devicemotion",this.accelerometerUpdateHandle,!0):e._POSignalsUtils.Logger.warn("DeviceMotion not supported!"),window.DeviceOrientationEvent?this.delegate.addEventListener(window,"deviceorientation",this.orientationUpdateHandle,!0):e._POSignalsUtils.Logger.warn("DeviceOrientation not supported!"),e._POSignalsUtils.Logger.debug("Sensor events start listening..."),this._isEventsStarted=!0)},t.prototype.reset=function(){this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this._gestureTimestamps.length>0?this._gestureTimestamps=[this._gestureTimestamps[this._gestureTimestamps.length-1]]:this._gestureTimestamps=[],this._accX=0,this._accY=0,this._accZ=0,this._rotX=0,this._rotY=0,this._rotZ=0},t.prototype.onGesture=function(e){this._isEventsStarted||this.startEvents(),e.events.length>1&&this._gestureTimestamps.push({start:e.events[0].eventTs,end:e.events[e.events.length-1].eventTs})},t.prototype.puaseSensorsCollectionIfNoActivity=function(e){return(this._gestureTimestamps.length>0?this._gestureTimestamps[this._gestureTimestamps.length-1].end:0)>0?Math.abs(e-this._gestureTimestamps[this._gestureTimestamps.length-1].end)>this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS&&(this.stopEvents(),!0):(this.stopEvents(),!0)},t.prototype.getDeviceAcceleration=function(e){return e&&null!=e.x&&null!=e.y&&null!=e.z?e:null},t.prototype.accelerometerUpdate=function(t){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(e._POSignalsUtils.Util.now()))return;var n=this.getDeviceAcceleration(t.accelerationIncludingGravity);n&&(this._accX=n.x*this.orientationImplementationFix,this._accY=n.y*this.orientationImplementationFix,this._accZ=n.z,this.safeAddSensorSample({x:this._accX,y:this._accY,z:this._accX,timestamp:e._POSignalsUtils.Util.now()},this._accelerometerList));var r=this.getDeviceAcceleration(t.acceleration);r&&(this._lienarAccX=r.x*this.orientationImplementationFix,this._lienarAccY=r.y*this.orientationImplementationFix,this._lienarAccZ=r.z,this.safeAddSensorSample({x:this._lienarAccX,y:this._lienarAccY,z:this._lienarAccZ,timestamp:e._POSignalsUtils.Util.now()},this._linearAccelerometerList)),t.rotationRate&&null!=t.rotationRate.alpha&&null!=t.rotationRate.beta&&null!=t.rotationRate.gamma&&(this._rotX=t.rotationRate.alpha,this._rotY=t.rotationRate.beta,this._rotZ=t.rotationRate.gamma,this.safeAddSensorSample({x:this._rotX,y:this._rotY,z:this._rotZ,timestamp:e._PO
1SignalsUtils.Util.now()},this._gyroscopeList))}catch(i){e._POSignalsUtils.Logger.warn("error in accelerometer handler",i)}},t.prototype.orientationUpdate=function(t){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(e._POSignalsUtils.Util.now()))return;null!=t.alpha&&null!=t.beta&&null!=t.gamma&&this.safeAddSensorSample({x:t.alpha,y:t.beta,z:t.gamma,timestamp:e._POSignalsUtils.Util.now()},this._rotationList)}catch(n){e._POSignalsUtils.Logger.warn("error in orientation handler",n)}},t.prototype.safeAddSensorSample=function(e,t){this.maxSensorSamples>t.length&&t.push(e)},t}();e.Sensors=t}(ug||(ug={})),function(e){var t=function(){function t(){this._pointerParams=new e.PointerParams}return Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pointerParams",{get:function(){return this._pointerParams},enumerable:!1,configurable:!0}),t}();e.PointerConfig=t}(ug||(ug={})),function(e){var t,n;(n=t||(t={}))[n.Up=1]="Up",n[n.Down=2]="Down",n[n.Left=3]="Left",n[n.Right=4]="Right";var r=function(){function n(t,n){this.BEHAVIORAL_TYPE="gestures",this._isStarted=!1,this._onGesture=new e.EventDispatcher,this.touchSnapshotsMap=new Map,this.snapshotStartTime=new Map,this.delegate=t,this.sensors=n,this.touchStartHandler=this.touchStart.bind(this),this.touchMoveHandler=this.touchMove.bind(this),this.touchEndHandler=this.touchEnd.bind(this),this.touchCancelHandler=this.touchCancel.bind(this)}return Object.defineProperty(n.prototype,"onGesture",{get:function(){return this._onGesture.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"SCROLL_MIN_DURATION",{get:function(){return 500},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"SWIPE_MAX_ANGLE",{get:function(){return 45},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TAP_MOVEMENT_TRESHOLD",{get:function(){return 10},enumerable:!1,configurable:!0}),n.prototype.countEvents=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i.type]=(t[i.type]||0)+1}return t},n.prototype.clearTouchSnapshots=function(e){this.touchSnapshotsMap.delete(e),this.snapshotStartTime.delete(e)},n.prototype.getTouchSnapshots=function(e){var t;return this.touchSnapshotsMap.has(e)?t=this.touchSnapshotsMap.get(e):(t=[],this.touchSnapshotsMap.set(e,t)),t},n.prototype.isEmpty=function(){return 0===this.touchSnapshotsMap.size},n.prototype.start=function(){this._isStarted||(this.delegate.addEventListener(document,"touchstart",this.touchStartHandler),this.delegate.addEventListener(document,"touchmove",this.touchMoveHandler),this.delegate.addEventListener(document,"touchend",this.touchEndHandler),this.delegate.addEventListener(document,"touchcancel",this.touchCancelHandler),this._isStarted=!0)},n.prototype.stop=function(){this._isStarted&&(document.removeEventListener("touchstart",this.touchStartHandler),document.removeEventListener("touchmove",this.touchMoveHandler),document.removeEventListener("touchend",this.touchEndHandler),document.removeEventListener("touchcancel",this.touchCancelHandler),this._isStarted=!1)},n.prototype.touchStart=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;e._POSignalsUtils.Logger.debug("touchstart("+t.changedTouches.length+")",t),t.changedTouches.length>0&&this.pushSnapshot(t)}catch(n){e._POSignalsUtils.Logger.warn("error in touchStart handler",n)}},n.prototype.touchMove=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;e._POSignalsUtils.Logger.debug("touchmove("+t.changedTouches.length+")",t),t.changedTouches.length>0&&this.pushSnapshot(t)}catch(n){e._POSignalsUtils.Logger.warn("error in touchMove handler",n)}},n.prototype.touchEnd=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onGesture.dispatch(this,null);if(e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;e._POSignalsUtils.Logger.debug("touchend("+t.changedTouches.length+")",t),this.gestureEnd(t)}
1catch(n){e._POSignalsUtils.Logger.warn("error in touchEnd handler",n)}},n.prototype.touchCancel=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onGesture.dispatch(this,null);if(e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;e._POSignalsUtils.Logger.debug("touchcancel("+t.changedTouches.length+")",t),this.gestureEnd(t)}catch(n){e._POSignalsUtils.Logger.warn("error in touchCancel handler",n)}},n.prototype.gestureEnd=function(t){t.changedTouches.length>0&&this.pushSnapshot(t);for(var n=0;n<t.changedTouches.length;n++){var r=t.changedTouches.item(n),i=this.getTouchSnapshots(r.identifier);i.length>0&&(this.isTap(i)?this.dispatchGesture(e.GestureType.Tap,r.identifier):this.dispatchGesture(this.calcGestureType(i),r.identifier))}},n.prototype.calcGestureType=function(n){var r,i=this.getDirection(n);if(this.isFling(n))switch(i){case t.Up:r=e.GestureType.FlingUp;break;case t.Right:r=e.GestureType.FlingRight;break;case t.Down:r=e.GestureType.FlingDown;break;case t.Left:r=e.GestureType.FlingLeft}else if(this.isScroll(n))switch(i){case t.Up:r=e.GestureType.ScrollUp;break;case t.Right:r=e.GestureType.ScrollRight;break;case t.Down:r=e.GestureType.ScrollDown;break;case t.Left:r=e.GestureType.ScrollLeft}return r},n.prototype.pushSnapshot=function(t){if(t.changedTouches&&t.changedTouches.length>0)for(var n,r=function(){var r=t.changedTouches.item(a);n=r.radiusX&&r.radiusY?(r.radiusX+r.radiusY)/2:null,i.snapshotStartTime.has(r.identifier)||i.snapshotStartTime.set(r.identifier,(new Date).getTime());var o=i.getTouchSnapshots(r.identifier);o.length<e.PointerConfig.instance.pointerParams.maxSnapshotsCount&&o.push({type:t.type,eventTs:t.timeStamp,epochTs:(new Date).getTime(),relativeX:r.screenX,relativeY:r.screenY,x:r.clientX,y:r.clientY,pressure:r.force,size:n,xaccelerometer:i.sensors.accX,yaccelerometer:i.sensors.accY,zaccelerometer:i.sensors.accZ,xlinearaccelerometer:i.sensors.lienarAccX,ylinearaccelerometer:i.sensors.lienarAccY,zlinearaccelerometer:i.sensors.lienarAccZ,xrotation:i.sensors.rotX,yrotation:i.sensors.rotY,zrotation:i.sensors.rotZ,radiusX:r.radiusX,radiusY:r.radiusY,rotationAngle:r.rotationAngle,pageX:r.pageX,pageY:r.pageY,getX:function(){return r.screenX},getY:function(){return r.screenY}})},i=this,a=0;a<t.changedTouches.length;a++)r()},n.prototype.dispatchGesture=function(t,n){var r=this.touchSnapshotsMap.get(n)||[],i=r.filter((function(e){return"touchmove"===e.type}));this._onGesture.dispatch(this,{epochTs:this.snapshotStartTime.get(n)||0,counter:this.delegate.gesturesCounter,type:t,events:r,eventCounters:this.countEvents(r),duration:this.delegate.getInteractionDuration(r),additionalData:this.delegate.additionalData,uiControl:void 0,timeProximity:e._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(i),meanEuclidean:e._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(i),reduction:{}}),this.clearTouchSnapshots(n)},n.prototype.isTap=function(e){var t=Math.abs(e[0].x-e[1].x),n=Math.abs(e[0].y-e[1].y);return 2==e.length&&t<this.TAP_MOVEMENT_TRESHOLD&&n<this.TAP_MOVEMENT_TRESHOLD},n.prototype.isFling=function(e){return e.length>1&&e[e.length-1].eventTs-e[0].eventTs<this.SCROLL_MIN_DURATION},n.prototype.isScroll=function(e){return e.length>1&&e[e.length-1].eventTs-e[0].eventTs>this.SCROLL_MIN_DURATION},n.prototype.getDirection=function(e){var n=this.calcAngle(e[0],e[e.length-1]);return n>90-this.SWIPE_MAX_ANGLE&&n<=90+this.SWIPE_MAX_ANGLE?t.Up:n>180-this.SWIPE_MAX_ANGLE&&n<=180+this.SWIPE_MAX_ANGLE?t.Right:n>270-this.SWIPE_MAX_ANGLE&&n<=270+this.SWIPE_MAX_ANGLE?t.Down:t.Left},n.prototype.calcAngle=function(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI+180},n}();e.GestureEvents=r}(ug||(ug={})),function(e){var t=function(){function t(e){this.key=e,this.cache=this.loadFromStorage()}return t.prototype.loadFromStorage=function(){var e=t.sessionStorage.getItem(this.key);return e||(e=JSON.stringify([])),JSON.parse(e)},t.prototype.get=function(){return this.cache},Object.defineProperty(t.prototype,"length",{get:function(){return this.cache.length}
1,enumerable:!1,configurable:!0}),t.prototype.push=function(e){var n=this.cache.push(e);return t.sessionStorage.setItem(this.key,JSON.stringify(this.cache)),n},t.prototype.set=function(e){this.cache=e,t.sessionStorage.setItem(this.key,JSON.stringify(this.cache))},t.prototype.remove=function(e){this.cache.splice(e,1),t.sessionStorage.setItem(this.key,JSON.stringify(this.cache))},t.prototype.concat=function(e){return this.cache.concat(e)},t.prototype.clear=function(){this.cache=[],t.sessionStorage.removeItem(this.key)},t.sessionStorage=e._POSignalsStorage.SessionStorage.instance.sessionStorage,t}();e.StorageArray=t}(ug||(ug={})),function(e){var t=function(){function t(){this.MAX_TAGS=10,this._tags=new e.StorageArray(e._POSignalsUtils.Constants.CAPTURED_TAGS)}return Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this._tags.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableTags",{set:function(e){this._disableTags=e},enumerable:!1,configurable:!0}),t.prototype.setTag=function(t,n){var r;if(!this._disableTags)if(e.PointerConfig.instance.pointerParams.enabled)if(t){var i=e.PointerConfig.instance.pointerParams.tagsBlacklistRegex;if(i&&(t.match(i)||null!=n&&n.match(i)))e._POSignalsUtils.Logger.info("Tag name or value is blacklisted");else if(!(this._tags.length>=this.MAX_TAGS)){this._tags.push({name:t.trim(),value:(null===(r=null==n?void 0:n.trim)||void 0===r?void 0:r.call(n))||void 0,epochTs:Date.now(),timestamp:Date.now()});var a=n?t+":"+n:t;e._POSignalsUtils.Logger.info("Add tag: "+a)}}else e._POSignalsUtils.Logger.info("Can't add tag, missing name");else e._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled")},t.prototype.reset=function(){this._tags.clear()},t}();e.Tags=t}(ug||(ug={})),function(e){var t=function(){function t(e){this.client=e}return t.prototype.calculateStrategyResult=function(t,n){return{shouldCollect:this.client.getBufferSize()<e.PointerConfig.instance.pointerParams.bufferSize}},t}();e.FirstInteractionsStrategy=t}(ug||(ug={})),function(e){var t,n;(n=t||(t={}))[n.RICH=3]="RICH",n[n.CLICK=2]="CLICK",n[n.MOVE=1]="MOVE",n[n.POOR=0]="POOR";var r=function(){function n(e){this.client=e,this.MAX_INTERACTIONS_PER_TYPE=5,this.MAX_MOUSE_AND_GESTURE=this.MAX_INTERACTIONS_PER_TYPE+1,this.RICH_MOUSE_MOVES_AMOUNT=8,this.MIN_KEYBOARD_EVENTS=4}return n.prototype.isRichMouseInteraction=function(e){return e.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT&&this.isClickInteraction(e)},n.prototype.isClickInteraction=function(e){return e.mousedown>0&&e.mouseup>0},n.prototype.isMoveInteraction=function(e){return e.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT},n.prototype.classifyMouseInteraction=function(n){var r=e._POSignalsUtils.Util.typesCounter(n.events);return this.isRichMouseInteraction(r)?t.RICH:this.isClickInteraction(r)?t.CLICK:this.isMoveInteraction(r)?t.MOVE:t.POOR},n.prototype.findMinPriorityGestureIndex=function(e,t){if(0===t.length)return-1;for(var n=e?-1:0,r=e?e.events.length:t[0].events.length,i=0;i<t.length;i++)t[i].events.length<r&&(n=i,r=t[i].events.length);return n},n.prototype.calculateStrategyResult=function(e,n){var r=this.client.getBehavioralData();switch(n){case"mouse":if(r.mouse.interactions.length<this.MAX_INTERACTIONS_PER_TYPE){if(r.touch.interactions.length+r.mouse.interactions.length>=this.MAX_MOUSE_AND_GESTURE){var i=this.findMinPriorityGestureIndex(null,r.touch.interactions);if(-1!==i)return{shouldCollect:!0,remove:{type:"touch",index:i}}}return{shouldCollect:!0}}var a=this.classifyMouseInteraction(e);if(a===t.POOR)return{shouldCollect:!1};for(var o=-1,s=a,l=0;l<r.mouse.interactions.length;l++){var c=this.classifyMouseInteraction(r.mouse.interactions[l]);c<s&&(o=l,s=c)}return-1===o?{shouldCollect:!1}:{shouldCollect:!0,remove:{type:"mouse",index:o}};case"keyboard":if(r.keyboard.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0};if(e.events.length<this.MIN_KEYBOARD_EVENTS)return{shouldCollect:!1};for(l=0;l<r.keyboard.interactions.length;l++)if(r.keyboard.interactions[l].events.length<this.MIN_KEYBOARD_EVENTS)return{shouldCollect:!0,remove:{type:"keyboard",index:l}};return{shouldCollect:!1};case"touch":if(r.touch.interactions.length<this.MAX_INTERACTIONS_PER_TYPE&&r.touch.interactions.length+r.mouse.interactions.length<this.MAX_MOUSE_AND_GESTURE)return{shouldCollect:!0};var u=e,d=this.findMinPriorityGestureIndex(u,r.touch.interactions);return-1===d?{shouldCollect:!1}:{shouldCollect:!0,remove:{type:"touch",index:d}}}},n}();e.PriorityStrategy=r}(ug||(ug={})),function(e){var t,n;
1(n=t=e.BufferingStrategyType||(e.BufferingStrategyType={}))[n.FIRST_INTERACTIONS=0]="FIRST_INTERACTIONS",n[n.PRIORITY_INTERACTIONS=1]="PRIORITY_INTERACTIONS";var r=function(){function n(){}return n.createBufferingStrategy=function(n,r){switch(n){case t.FIRST_INTERACTIONS:return new e.FirstInteractionsStrategy(r);case t.PRIORITY_INTERACTIONS:return new e.PriorityStrategy(r)}},n}();e.StrategyFactory=r}(ug||(ug={})),function(e){var t=function(){function t(t){this.sessionData=t,this.instanceUUID=e._POSignalsUtils.Util.newGuid(),this._isBehavioralDataPaused=!1,this.started=!1,this.initQueue=new e.PromiseQueue(1)}return t.instance=function(){if(!this._instance){var t=e._POSignalsStorage.SessionStorage.instance;if(!document.body)throw e._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");this._instance=new e.Client(t,e.BufferingStrategyType.PRIORITY_INTERACTIONS)}return this._instance},t.prototype.getData=function(){return dg(this,void 0,void 0,(function(){return hg(this,(function(e){switch(e.label){case 0:if(!this.startedPromise)throw new Error("SDK not initialized");return[4,this.startedPromise];case 1:return e.sent(),[4,this.dataHandler.getData(Date.now())];case 2:return[2,e.sent()]}}))}))},t.prototype.addTag=function(t,n){e.Tags.instance.setTag(t,n)},t.prototype.start=function(t){var n,r;return void 0===t&&(t={}),dg(this,void 0,void 0,(function(){var i,a;return hg(this,(function(o){switch(o.label){case 0:return null===(n=t.waitForWindowLoad)||void 0===n||n?[4,this.loadEventPromise()]:[3,2];case 1:o.sent(),o.label=2;case 2:if(this.initParams=t,this.validateStartParams(t),this.clientVersion=e._POSignalsUtils.Constants.CLIENT_VERSION,this.started)return e._POSignalsUtils.Logger.warn("SDK already initialized"),[2];this.browserInfo=new e._POSignalsUtils.BrowserInfo,e._POSignalsUtils.Logger.isLogEnabled=!!t.consoleLogEnabled||!!t.devEnv,e._POSignalsUtils.Logger.info("Starting Signals SDK..."),e.Tags.instance.disableTags=!!this.initParams.disableTags,this.sessionData.setStorageConfig(t),i=e.PointerConfig.instance.pointerParams,a={additionalMediaCodecs:i.additionalMediaCodecs,browserInfo:this.browserInfo,fingerprintTimeoutMillis:i.fingerprintTimeoutMillis,metadataBlackList:new Set(i.metadataBlackList.concat(t.deviceAttributesToIgnore)),propertyDescriptors:i.propertyDescriptors,webRtcUrl:i.webRtcUrl,dataPoints:i.metadataDataPoints},this.metadata=new e._POSignalsMetadata.Metadata(this.sessionData,a),this.dataHandler=new e.DataHandler(this.clientVersion,this.instanceUUID,this.initParams,this.metadata,this,t.externalIdentifiers,this.sessionData),(null===(r=this.initParams.behavioralDataCollection)||void 0===r||r)&&this.refreshListening(),t.lazyMetadata||this.metadata.getDeviceAttributes(),this.started=!0;try{this.logInit(),this.addStartupTags()}catch(s){e._POSignalsUtils.Logger.warn("SDK post init failed",s)}return[2]}}
1))}))},t.prototype.logInit=function(){var t,n;e._POSignalsUtils.Logger.info("PingOne Signals initialized. "+JSON.stringify({timestamp:(new Date).getTime(),sdkVersion:this.clientVersion,instanceUUID:this.instanceUUID,tabUUID:this.sessionData.tabUUID},null,2));var r=function(){return e._POSignalsUtils.Logger.info("Token Ready: "+window._pingOneSignalsToken)},i=function(){e._POSignalsUtils.Logger.info("Signals token fetch is disabled"),window._pingOneSignalsToken=void 0};"skipped"===(null===(t=window._pingOneSignalsToken)||void 0===t?void 0:t.substring(0,7))?i():"uninitialized"!==(null===(n=window._pingOneSignalsToken)||void 0===n?void 0:n.substring(0,13))&&r(),document.addEventListener("PingOneSignalsTokenReadyEvent",r),document.addEventListener("PingOneSignalsTokenSkippedEvent",i)},Object.defineProperty(t.prototype,"isBehavioralDataPaused",{get:function(){return this._isBehavioralDataPaused},enumerable:!1,configurable:!0}),t.prototype.getSignalsToken=function(){var e="";if("string"==typeof window._pingOneSignalsToken&&0<=window._pingOneSignalsToken.indexOf(":")){var t=window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g);t&&0<t.length&&(e=t[0].replace(/&s*$/,"").replace(/t:/,""))}else"string"==typeof window._pingOneSignalsToken&&(e=window._pingOneSignalsToken);return e},t.prototype.pauseBehavioralData=function(){this._isBehavioralDataPaused||(this._isBehavioralDataPaused=!0,this.addTag("SDK paused behaviorally"))},t.prototype.resumeBehavioralData=function(){this._isBehavioralDataPaused&&(this._isBehavioralDataPaused=!1,this.addTag("SDK resumed behaviorally"))},t.prototype.startSignals=function(t){return dg(this,void 0,void 0,(function(){var n,r,i=this;return hg(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this.startedPromise=this.initQueue.add((function(){return i.start(t)})),[4,this.startedPromise];case 1:return[2,a.sent()];case 2:throw n=a.sent(),r={id:e._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR,message:n.message,code:"SDK initialization failed."},new Error(JSON.stringify(r));case 3:return[2]}}
1))}))},t.prototype.validateStartParams=function(t){if(!document.body)throw e._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");t.externalIdentifiers=t.externalIdentifiers||{}},t.prototype.loadEventPromise=function(){return dg(this,void 0,void 0,(function(){return hg(this,(function(e){return[2,new Promise((function(e){"complete"===document.readyState?e():window.addEventListener("load",(function(t){e()}))}))]}))}))},t.prototype.addStartupTags=function(){this.addTag("SDK started"),document.referrer&&this.addTag("referrer",document.referrer),this.addTag("location",window.location.href)},t}();e.ClientBase=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onClipboardEvent=new e.EventDispatcher,this.delegate=t,this.onClipboardEventHandler=this.onEvent.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onClipboardEvent",{get:function(){return this._onClipboardEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.onEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onClipboardEvent.dispatch(this,this.createClipboardEvent(t))}catch(n){e._POSignalsUtils.Logger.warn("error in clipboard handler",n)}},t.prototype.createClipboardEvent=function(t){var n=e._POSignalsUtils.Util.getSrcElement(t);return{category:"ClipboardEvent",type:t.type,eventTs:t.timeStamp,epochTs:(new Date).getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(n),elementId:null==n?void 0:n.id}}},t.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"cut",this.onClipboardEventHandler),this.delegate.addEventListener(document,"copy",this.onClipboardEventHandler),this.delegate.addEventListener(document,"paste",this.onClipboardEventHandler))},t.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("cut",this.onClipboardEventHandler),document.removeEventListener("copy",this.onClipboardEventHandler),document.removeEventListener("paste",this.onClipboardEventHandler))},t}();e.ClipboardEvents=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onDragEvent=new e.EventDispatcher,this.delegate=t,this.onDragEventHandler=this.onEvent.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDragEvent",{get:function(){return this._onDragEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.createDragEvent=function(e){return{category:"DragEvent",type:e.type,eventTs:e.timeStamp,epochTs:(new Date).getTime(),additionalData:{locationHref:location.href}}},t.prototype.onEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onDragEvent.dispatch(this,this.createDragEvent(t))}catch(n){e._POSignalsUtils.Logger.warn("error in drag handler",n)}},t.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"dragstart",this.onDragEventHandler),this.delegate.addEventListener(document,"dragexit",this.onDragEventHandler),this.delegate.addEventListener(document,"drop",this.onDragEventHandler),this.delegate.addEventListener(document,"dragend",this.onDragEventHandler))},t.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("dragstart",this.onDragEventHandler),document.removeEventListener("dragexit",this.onDragEventHandler),document.removeEventListener("drop",this.onDragEventHandler),document.removeEventListener("dragend",this.onDragEventHandler))},t}();e.DragEvents=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onFocusEvent=new e.EventDispatcher,this.delegate=t,this.onFocusEventHandler=this.onEvent.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocusEvent",{get:function(){return this._onFocusEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.getRelatedTarget=function(t){if(!t.relatedTarget)return{type:"",stId:"",elementId:""};var n={type:e._POSignalsUtils.Util.getObjectType(t.relatedTarget),stId:"",elementId:""};t.relatedTarget.id&&(n.elementId=t.relatedTarget.id);try{var r=t.relatedTarget;n.stId=this.delegate.getElementsStID(r)}catch(i){}return n},t.prototype.createFocusEvent=function(t){var n=e._POSignalsUtils.Util.getSrcElement(t),r=this.getRelatedTarget(t);return{category:"FocusEvent",type:t.type,eventTs:t.timeStamp,epochTs:(new Date).getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(n),elementId:n?n.id:"",relatedTarget:r}}},t.prototype.onEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onFocusEvent.dispatch(this,this.createFocusEvent(t))}catch(n){e._POSignalsUtils.Logger.warn("error in focus handler",n)}},t.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"DOMFocusIn",this.onFocusEventHandler),this.delegate.addEventListener(document,"DOMFocusOut",this.onFocusEventHandler),this.delegate.addEventListener(document,"focus",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusin",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusout",this.onFocusEventHandler))},t.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("DOMFocusIn",this.onFocusEventHandler),document.removeEventListener("DOMFocusOut",this.onFocusEventHandler),document.removeEventListener("focus",this.onFocusEventHandler),document.removeEventListener("focusin",this.onFocusEventHandler),document.removeEventListener("focusout",this.onFocusEventHandler))},t}();e.FocusEvents=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onUIEvent=new e.EventDispatcher,this.delegate=t,this.onUIEventHandler=this.onEvent.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUIEvent",{get:function(){return this._onUIEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.createUIEvent=function(e){return{category:"UIEvent",type:e.type,eventTs:e.timeStamp,epochTs:(new Date).getTime(),additionalData:{locationHref:location.href}}},t.prototype.onEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onUIEvent.dispatch(this,this.createUIEvent(t))}catch(n){e._POSignalsUtils.Logger.warn("error in UIEvent handler",n)}},t.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"resize",this.onUIEventHandler),this.delegate.addEventListener(document,"scroll",this.onUIEventHandler),this.delegate.addEventListener(document,"select",this.onUIEventHandler))},t.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("resize",this.onUIEventHandler),document.removeEventListener("scroll",this.onUIEventHandler),document.removeEventListener("select",this.onUIEventHandler))},t}();e.UIEvents=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.BEHAVIORAL_TYPE="indirect",this.visibilityChangeEventName="visibilitychange",this.hiddenProperty="hidden",this._isStarted=!1,this._onGeneralEvent=new e.EventDispatcher,this.delegate=t,this.onGeneralEventHandler=this.onEvent.bind(this),this.onLangChangeHandler=this.onLangChangeEvent.bind(this),this.onOrientationChangeHandler=this.onOrientationChangeEvent.bind(this),this.onVisibilityChangeHandler=this.onVisibilityChangeEvent.bind(this),void 0!==document.msHidden?(this.hiddenProperty="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==document.webkitHidden&&(this.hiddenProperty="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onGeneralEvent",{get:function(){return this._onGeneralEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.onEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onGeneralEvent.dispatch(this,this.createGeneralEvent(t))}catch(n){e._POSignalsUtils.Logger.warn("error in general event handler",n)}},t.prototype.onLangChangeEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var n=this.createGeneralEvent(t);this._onGeneralEvent.dispatch(this,n)}catch(r){e._POSignalsUtils.Logger.warn("error in LangChange event handler",r)}},t.prototype.onOrientationChangeEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var n=this.createGeneralEvent(t),r=e._POSignalsUtils.Util.getDeviceOrientation();n.additionalData.deviceOrientation=r.orientation,n.additionalData.deviceAngle=r.angle,this._onGeneralEvent.dispatch(this,n)}catch(i){e._POSignalsUtils.Logger.warn("error in OrientationChange event handler",i)}},t.prototype.onVisibilityChangeEvent=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var n=this.createGeneralEvent(t);n.additionalData.hidden=!!document[this.hiddenProperty],document.visibilityState&&(n.additionalData.visibilityState=document.visibilityState.toString()),this._onGeneralEvent.dispatch(this,n)}catch(r){e._POSignalsUtils.Logger.warn("error in VisibilityChange event handler",r)}},t.prototype.createGeneralEvent=function(e){return{category:"Event",type:e.type,eventTs:e.timeStamp,epochTs:(new Date).getTime(),additionalData:{locationHref:location.href}}},t.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,this.visibilityChangeEventName,this.onVisibilityChangeHandler),this.delegate.addEventListener(document,"change",this.onGeneralEventHandler),this.delegate.addEventListener(document,"fullscreenchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"invalid",this.onGeneralEventHandler),this.delegate.addEventListener(window,"languagechange",this.onLangChangeHandler),this.delegate.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.delegate.addEventListener(document,"seeked",this.onGeneralEventHandler),this.delegate.addEventListener(document,"seeking",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectstart",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectionchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"submit",this.onGeneralEventHandler),this.delegate.addEventListener(document,"volumechange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"reset",this.onGeneralEventHandler),this.delegate.addEventListener(document,"textInput",this.onGeneralEventHandler))},t.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChangeHandler),document.removeEventListener("change",this.onGeneralEventHandler),document.removeEventListener("fullscreenchange",this.onGeneralEventHandler),document.removeEventListener("invalid",this.onGeneralEventHandler),window.removeEventListener("languagechange",this.onLangChangeHandler),window.removeEventListener("orientationchange",this.onOrientationChangeHandler),document.removeEventListener("seeked",this.onGeneralEventHandler),document.removeEventListener("seeking",this.onGeneralEventHandler),document.removeEventListener("selectstart",this.onGeneralEventHandler),document.removeEventListener("selectionchange",this.onGeneralEventHandler),document.removeEventListener("submit",this.onGeneralEventHandler),document.removeEventListener("volumechange",this.onGeneralEventHandler),document.removeEventListener("reset",this.onGeneralEventHandler),document.removeEventListener("textInput",this.onGeneralEventHandler))},t}();e.GeneralEvents=t}(ug||(ug={})),function(e){var t=function(){function t(t){this.DEFAULT_INDIRECT_IDLE_INTERVAL=1e3,this.MAX_INDIRECT_EVENTS=25,this._onIndirect=new e.EventDispatcher,this.indirectEvents=[],this.idleTimeInMillis=this.DEFAULT_INDIRECT_IDLE_INTERVAL,this.lastIndirectEventTimestamp=0,this._isStarted=!1,this.clipboardEvents=new e.ClipboardEvents(t),this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)),this.dragEvents=new e.DragEvents(t),this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)),this.focusEvents=new e.FocusEvents(t),this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)),this.uiEvents=new e.UIEvents(t),this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)),this.generalEvents=new e.GeneralEvents(t),this.generalEvents.onGeneralEvent.
1subscribe(this.handleEvent.bind(this)),this.onTimeElapsedHandler=this.onTimeElapsed.bind(this)}return Object.defineProperty(t.prototype,"onIndirect",{get:function(){return this._onIndirect.asEvent()},enumerable:!1,configurable:!0}),t.prototype.onTimeElapsed=function(){return dg(this,void 0,void 0,(function(){return hg(this,(function(e){return this.indirectEvents.length>0&&(new Date).getTime()-this.lastIndirectEventTimestamp>=this.idleTimeInMillis&&this.dispatch(),[2]}))}))},t.prototype.handleEvent=function(e,t){this.lastIndirectEventTimestamp=(new Date).getTime(),this.pushEvent(t)},t.prototype.pushEvent=function(e){this.indirectEvents.push(e),this.indirectEvents.length>=this.MAX_INDIRECT_EVENTS&&this.dispatch()},t.prototype.clearBuffer=function(){var e={events:this.indirectEvents};return this.indirectEvents=[],e},t.prototype.dispatch=function(){try{clearInterval(this.updateIntervalHandle),this._onIndirect.dispatch(this,this.clearBuffer()),this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,e.PointerConfig.instance.pointerParams.indirectIntervalMillis)}catch(t){e._POSignalsUtils.Logger.warn("Failed to dispatch indirect events",t)}},Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),t.prototype.start=function(){this._isStarted||(this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,e.PointerConfig.instance.pointerParams.indirectIntervalMillis),this.clipboardEvents.start(),this.dragEvents.start(),this.focusEvents.start(),this.uiEvents.start(),this.generalEvents.start(),this._isStarted=!0)},t.prototype.stop=function(){this._isStarted&&(this.clipboardEvents.stop(),this.dragEvents.stop(),this.focusEvents.stop(),this.uiEvents.stop(),this.generalEvents.stop(),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1)},t.prototype.unsubscribe=function(){this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)),this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)),this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)),this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)),this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this))},t}();e.IndirectClient=t}(ug||(ug={})),function(e){var t=function(){function t(){this.config={},this._cacheHash=0,this.cache=new Map}return t.prototype.refreshCssSelectors=function(t){try{if(!t)return;var n=e._POSignalsUtils.Util.hashCode(JSON.stringify(t));if(this._cacheHash===n)return;this.config=t,this._cacheHash=n,this.cache=new Map}catch(r){e._POSignalsUtils.Logger.warn("Failed to set css selectors",r)}},t.prototype.getIdentification=function(t,n){if(null===this.cache.get(t))return null;if(void 0!==this.cache.get(t))return this.cache.get(t);for(var r in this.config)try{if(!this.config.hasOwnProperty(r))continue;var i=this.config[r]||[];e._POSignalsUtils.Util.isArray(i)||(i=[].concat(i));for(var a=0,o=i;a<o.length;a++){var s=o[a];if(e._POSignalsUtils.Util.isSelectorMatches(t,s,n))return this.cache.set(t,r),r}}catch(l){e._POSignalsUtils.Logger.warn("Failed to find selector for "+r,l)}return this.cache.set(t,null),null},Object.defineProperty(t.prototype,"cacheHash",{get:function(){return this._cacheHash},enumerable:!1,configurable:!0}),t}();e.ElementsIdentifications=t}(ug||(ug={})),function(e){var t=function(){function t(t,n){this.BEHAVIORAL_TYPE="eventKeyboard",this._isStarted=!1,this._onInteraction=new e.EventDispatcher,this._onEnterPress=new e.EventDispatcher,this._onObfuscatedValue=new e.EventDispatcher,this.interactionsMap=new Map,this._fieldsIdentifications=new e.ElementsIdentifications,this.keyStrokeMap=new Map,this.delegate=t,this.uiControlManager=n,this.onKeyDownHandle=this.onKeyDown.bind(this),this.onKeyUpHandle=this.onKeyUp.bind(this),this.onFocusHandle=this.onFocus.bind(this),this.onBlurHandle=this.onBlur.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onInteraction",{get:function(){return this._onInteraction.asEvent()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onEnterPress",{get:function(){return this._onEnterPress.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onObfuscatedValue",{get:function(){return this._onObfuscatedValue.asEvent()},enumerable:!1,configurable:!0}),t.prototype.refreshKeyboardCssSelectors=function(e){this._fieldsIdentifications.refreshCssSelectors(e)},Object.defineProperty(t.prototype,"modifiersKeys",{get:function(){return["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"specialKeys",{get:function(){return["Tab","Shift","Backspace","Enter","CapsLock","Meta","Delete","Alt","ArrowDown","ArrowUp","Control","ArrowLeft","End","Unidentified","Home","ArrowRight","Insert","Pause","PageDown","PageUp","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","AltGraph","Escape"]},enumerable:!1,configurable:!0}),t.prototype.countEvent=function(e,t){t&&(t.eventCounters[e]=(t.eventCounters[e]||0)+1)},t.prototype.clearBuffer=function(){var t=e._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap);return this.interactionsMap.clear(),t},t.prototype.start=function(){this._isStarted?e._POSignalsUtils.Logger.debug("Desktop Keyboard events already listening"):(this.delegate.addEventListener(document,"keydown",this.onKeyDownHandle),this.delegate.addEventListener(document,"keyup",this.onKeyUpHandle),this.delegate.addEventListener(document,"focus",this.onFocusHandle,!0),this.delegate.addEventListener(document,"blur",this.onBlurHandle,!0),this._isStarted=!0,e._POSignalsUtils.Logger.debug("Desktop Keyboard events start listening..."))},t.prototype.stop=function(){this._isStarted?(document.removeEventListener("keydown",this.onKeyDownHandle),document.removeEventListener("keyup",this.onKeyUpHandle),document.removeEventListener("focus",this.onFocusHandle,!0),document.removeEventListener("blur",this.onBlurHandle,!0),this._isStarted=!1,e._POSignalsUtils.Logger.debug("Desktop Keyboard events stop listening...")):e._POSignalsUtils.Logger.debug("Desktop Keyboard events already stopped")},t.prototype.getInteractionFromElement=function(t){var n,r=null,i=null,a=e._POSignalsUtils.Util.getSrcElement(t);if(a&&a instanceof HTMLInputElement&&!e._POSignalsUtils.Util.isClickableInput(a)&&e._POSignalsUtils.Util.isFunction(a.getAttribute)&&(null===(n=a.hasAttribute)||void 0===n||!n.call(a,"data-st-ignore"))&&!e._POSignalsUtils.Util.anySelectorMatches(a,e.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist,0)){i=this.delegate.getElementsStID(a);for(var o=e.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes,s=0;s<o.length&&!i;s++)i=a.getAttribute(o[s]);i&&!e.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(i)&&((r=this.interactionsMap.get(a))||(r={epochTs:(new Date).getTime(),stId:i,elementId:e._POSignalsUtils.Util.getAttribute(a,"id"),name:e._POSignalsUtils.Util.getAttribute(a,"name"),type:e._POSignalsUtils.Util.getAttribute(a,"type"),events:[],counter:this.delegate.keyboardCounter,eventCounters:{},duration:0,numOfDeletions:0,additionalData:this.delegate.additionalData},this.interactionsMap.set(a,r)))}return r},t.prototype.getKeyCode=function(t){return t.keyCode?t.keyCode:t.which?t.which:t.code?e._POSignalsUtils.Util.hashCode(t.code):e._POSignalsUtils.Util.hashCode(t.key)+(t.location||0)},t.prototype.getKeyboardEvent=function(e){return e||window.event},t.prototype.getKeystrokeId=function(t,n){var r,i=this.getKeyCode(t);return"keyup"===n&&(this.keyStrokeMap.has(i)?(r=this.keyStrokeMap.get(i),this.keyStrokeMap.delete(i)):r=e._POSignalsUtils.Util.newGuid()),"keydown"===n&&(this.keyStrokeMap.has(i)&&t.repeat?r=this.keyStrokeMap.get(i):(r=e._POSignalsUtils.Util.newGuid(),this.keyStrokeMap.set(i,r))),r},t.prototype.createKeyboardInteractionEvent=function(t,n){var r=e._POSignalsUtils.Util.getSrcElement(n),i=r.value?r.value.toString().length:0;return{type:t,eventTs:n.timeStamp,epochTs:(new Date).getTime(),selectionStart:e._POSignalsUtils.Util.getElementSelectionStart(r),selectionEnd:e._POSignalsUtils.Util.getElementSelectionEnd(r),key:null,keystrokeId:null,currentLength:i}},t.prototype.enrichKeyboardEvent=function(t,n){(this.modifiersKeys.indexOf(t.key)>=0||this.specialKeys.indexOf(t.key)>=0)&&(n.key=t.key),n.keystrokeId=this.getKeystrokeId(t,n.type);var r=e._POSignalsUtils.Util.getSrcElement(t);n.currentLength=String(r.value).length},t.prototype.onFocus=function(t){var n,r;try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);t=this.getKeyboardEvent(t);var i=this.getInteractionFromElement(t);if(this.countEvent(t.type,i),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;if(i){var a=this.createKeyboardInteractionEvent("focus",t);i.events.push(a);var o=this.uiControlManager.createUIControlData(t);o&&(i.uiControl={uiElement:o.uiElement,enrichedData:o.enrichedData},(null===(r=null===(n=o.uiElement)||void 0===n?void 0:n.id)||void 0===r?void 0:r.length)>0&&e._POSignalsUtils.Logger.info("Typing in element with id '"+o.uiElement.id+"'"))}}
1catch(s){e._POSignalsUtils.Logger.warn("error in keyboard focus handler",s)}},t.prototype.onKeyUp=function(t){try{if(13!==(t=this.getKeyboardEvent(t)).keyCode&&13!==t.which||this._onEnterPress.dispatch(this,e._POSignalsUtils.Util.getSrcElement(t)),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);var n=this.getInteractionFromElement(t);if(this.countEvent(t.type,n),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;if(n){var r=this.createKeyboardInteractionEvent("keyup",t);this.enrichKeyboardEvent(t,r),n.events.push(r)}else this.keyStrokeMap.delete(this.getKeyCode(t))}catch(i){e._POSignalsUtils.Logger.warn("error in keyUp handler",i)}},t.prototype.isEmpty=function(){return 0===this.interactionsMap.size},t.prototype.onKeyDown=function(t){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);t=this.getKeyboardEvent(t);var n=this.getInteractionFromElement(t);if(this.countEvent(t.type,n),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;if(n){var r=this.createKeyboardInteractionEvent("keydown",t);this.enrichKeyboardEvent(t,r),n.events.push(r)}}catch(i){e._POSignalsUtils.Logger.warn("error in keyDown handler",i)}},t.prototype.onBlur=function(t){try{t=this.getKeyboardEvent(t);var n=this.getInteractionFromElement(t);if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);if(this.countEvent(t.type,n),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type))return;if(n){var r=this.createKeyboardInteractionEvent("blur",t);n.events.push(r),n.duration=this.delegate.getInteractionDuration(n.events),n.numOfDeletions=this.calculateNumOfDeletions(n.events);var i=e._POSignalsUtils.Util.getSrcElement(t);this.interactionsMap.delete(i),this._onInteraction.dispatch(this,n)}}catch(a){e._POSignalsUtils.Logger.warn("error in blur handler",a)}},t.prototype.calculateNumOfDeletions=function(e){if(null==e||!e[0])return 0;for(var t=0,n=e[0].currentLength,r=1;r<e.length;r++)e[r].currentLength<n&&t++,n=e[r].currentLength;return t},Object.defineProperty(t.prototype,"fieldsIdentifications",{get:function(){return this._fieldsIdentifications},enumerable:!1,configurable:!0}),t}();e.Keyboard=t}(ug||(ug={})),function(e){var t=function(){function t(t,n){var r,i=this,a=e.PointerConfig.instance.pointerParams.uiModelingElementFilters,o=e._POSignalsUtils.Util.getAttribute,s=null===(r=t.getBoundingClientRect)||void 0===r?void 0:r.call(t);this._htmlElement=t,this._data={location:this.getUIElementAttribute(a.location,(function(){return window.location.href})),id:this.getUIElementAttribute(a.id,(function(){return o(t,"id")})),aria_label:this.getUIElementAttribute(a.aria_label,(function(){return o(t,"aria-label")})),data_st_field:this.getUIElementAttribute(a.data_st_field,(function(){return n.getElementsStID(t)})),data_st_tag:this.getUIElementAttribute(a.data_st_tag,(function(){return o(t,"data-st-tag")})),data_selenium:this.getUIElementAttribute(a.data_selenium,(function(){return o(t,"data-selenium")})),data_selenium_id:this.getUIElementAttribute(a.data_selenium_id,(function(){return o(t,"data-selenium-id")})),data_testid:this.getUIElementAttribute(a.data_testid,(function(){return o(t,"data-testid")})),data_test_id:this.getUIElementAttribute(a.data_test_id,(function(){return o(t,"data-test-id")})),data_qa_id:this.getUIElementAttribute(a.data_qa_id,(function(){return o(t,"data-qa-id")})),data_id:this.getUIElementAttribute(a.data_id,(function(){return o(t,"data-id")})),name:this.getUIElementAttribute(a.name,(function(){return o(t,"name")})),placeholder:this.getUIElementAttribute(a.placeholder,(function(){return o(t,"placeholder")})),role:this.getUIElementAttribute(a.role,(function(){return o(t,"role")})),type:this.getUIElementAttribute(a.type,(function(){return o(t,"type")})),nodeTypeInt:this.getUIElementAttribute(a.nodeTypeInt,(function(){return t.nodeType})),nodeName:this.getUIElementAttribute(a.nodeName,(function(){return t.nodeName})),cursorType:this.getUIElementAttribute(a.cursorType,(function(){return window.getComputedStyle(t).cursor})),text:this.getUIElementAttribute(a.text,(function(){return i.getElementText(t)}
1)),textLength:this.getUIElementAttribute(a.textLength,(function(){var e;return(null===(e=i.getElementText(t))||void 0===e?void 0:e.length)||null})),bottom:this.getUIElementAttribute(a.bottom,(function(){return null==s?void 0:s.bottom})),height:this.getUIElementAttribute(a.height,(function(){return null==s?void 0:s.height})),left:this.getUIElementAttribute(a.left,(function(){return null==s?void 0:s.left})),right:this.getUIElementAttribute(a.right,(function(){return null==s?void 0:s.right})),top:this.getUIElementAttribute(a.top,(function(){return null==s?void 0:s.top})),width:this.getUIElementAttribute(a.width,(function(){return null==s?void 0:s.width})),x:this.getUIElementAttribute(a.x,(function(){return null==s?void 0:s.x})),y:this.getUIElementAttribute(a.y,(function(){return null==s?void 0:s.y}))},this._data.elementId=this.getStrongestElementID()}return Object.defineProperty(t.prototype,"data",{get:function(){return e._POSignalsUtils.Util.filterReduce(this._data,(function(e){return null!=e&&""!==e}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"htmlElement",{get:function(){return this._htmlElement},enumerable:!1,configurable:!0}),t.prototype.getUIElementAttribute=function(t,n){var r;try{if(null===(r=null==t?void 0:t.enabled)||void 0===r||r){var i=n();return"string"==typeof i&&("number"==typeof(null==t?void 0:t.maxLength)&&i.length>t.maxLength&&(i=i.substring(0,t.maxLength)),null!=t&&t.filterRegex&&(i=i.replace(new RegExp(t.filterRegex,"g"),"*"))),i}}catch(a){e._POSignalsUtils.Logger.warn("Failed to add ui element attribute",a)}return null},t.prototype.getStrongestElementID=function(){return this._data.data_st_field||this._data.data_selenium_id||this._data.data_selenium||this._data.data_testid||this._data.data_test_id||this._data.data_qa_id||this._data.data_id||this._data.id||""},t.prototype.getElementText=function(t){return t instanceof HTMLInputElement&&!e._POSignalsUtils.Util.isClickableInput(t)?null:e._POSignalsUtils.Util.getElementText(t)},t.prototype.equals=function(e){return!!e&&!(e.location&&location.href.indexOf(e.location)<0)&&(!e.elementId||e.elementId===this._data.elementId)&&(!e.id||e.id===this._data.id)&&(!e.aria_label||e.aria_label===this._data.aria_label)&&(!e.data_st_field||e.data_st_field===this._data.data_st_field)&&(!e.data_st_tag||e.data_st_tag===this._data.data_st_tag)&&(!e.data_selenium||e.data_selenium===this._data.data_selenium)&&(!e.data_selenium_id||e.data_selenium_id===this._data.data_selenium_id)&&(!e.data_testid||e.data_testid===this._data.data_testid)&&(!e.data_test_id||e.data_test_id===this._data.data_test_id)&&(!e.data_qa_id||e.data_qa_id===this._data.data_qa_id)&&(!e.data_id||e.data_id===this._data.data_id)&&(!e.name||e.name===this._data.name)&&(!e.placeholder||e.placeholder===this._data.placeholder)&&(!e.role||e.role===this._data.role)&&(!e.type||e.type===this._data.type)&&(!e.nodeTypeInt||e.nodeTypeInt===this._data.nodeTypeInt)&&(!e.nodeName||e.nodeName===this._data.nodeName)&&(!e.cursorType||e.cursorType===this._data.cursorType)&&(!e.text||e.text===this._data.text)&&(!e.textLength||e.textLength===this._data.textLength)&&(!e.bottom||e.bottom===this._data.bottom)&&(!e.height||e.height===this._data.height)&&(!e.left||e.left===this._data.left)&&(!e.right||e.right===this._data.right)&&(!e.top||e.top===this._data.top)&&(!e.width||e.width===this._data.width)&&(!e.x||e.x===this._data.x)&&(!e.y||e.y===this._data.y)},t.createCssSelector=function(e){var t="";return null!=e&&e.nodeName&&(t+=e.nodeName.toLowerCase()),null!=e&&e.id&&(t+='[id="'+e.id+'"]'),null!=e&&e.aria_label&&(t+='[aria-label="'+e.aria_label+'"]'),null!=e&&e.data_st_field&&(t+='[data-st-field="'+e.data_st_field+'"]'),null!=e&&e.data_st_tag&&(t+='[data-st-tag="'+e.data_st_tag+'"]'),null!=e&&e.data_selenium&&(t+='[data-selenium="'+e.data_selenium+'"]'),null!=e&&e.data_selenium_id&&(t+='[data-selenium-id="'+e.data_selenium_id+'"]'),null!=e&&e.data_testid&&(t+='[data-testid="'+e.data_testid+'"]'),null!=e&&e.data_test_id&&(t+='[data-test-id="'+e.data_test_id+'"]'),null!=e&&e.data_qa_id&&(t+='[data-qa-id="'+e.data_qa_id+'"]'),null!=e&&e.data_id&&(t+='[data-id="'+e.data_id+'"]'),null!=e&&e.name&&(t+='[name="'+e.name+'"]'),null!=e&&e.placeholder&&(t+='[placeholder="'+e.placeholder+'"]'),null!=e&&e.role&&(t+='[role="'+e.role+'"]'),null!=e&&e.type&&(t+='[type="'+e.type+'"]'),t},t}();e.UiElement=t}(ug||(ug={})),function(e){var t=function(){function t(e){this._clientDelegate=e}return t.prototype.createUIControlData=function(t){var n=e._POSignalsUtils.Util.getSrcElement(t);if(!n)return null;var r=e.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex;
1if(r&&window.location.href.match(r))return e._POSignalsUtils.Logger.debug("ui control data is disabled for this url"),null;var i=new e.UiElement(n,this._clientDelegate);return this.findMatchingUiControl(i)||{uiElement:i.data}},t.prototype.findMatchingUiControl=function(t,n){void 0===n&&(n=0);try{var r=e.PointerConfig.instance.pointerParams.uiControlsConfig;if(0===r.length||n>e.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents)return null;for(var i=!1,a=0,o=r;a<o.length;a++){var s=o[a];if((s.tagConfig||s.enrichedData)&&(i=!0,t.equals(s.uiElement)))return{uiElement:t.data,enrichedData:s.enrichedData,tagConfig:s.tagConfig}}if(!i)return null;var l=t.htmlElement.parentElement;if((null==l?void 0:l.nodeType)===Node.ELEMENT_NODE){var c=new e.UiElement(l,this._clientDelegate);return this.findMatchingUiControl(c,n+1)}}catch(u){e._POSignalsUtils.Logger.warn("failed to find matching ui control",u)}return null},t.prototype.convertToTagValueConfig=function(t){var n;return{context:null===(n=null==t?void 0:t.uiElement)||void 0===n?void 0:n.location,valueSelector:e.UiElement.createCssSelector(null==t?void 0:t.uiElement),operation:null==t?void 0:t.operation,valueMandatory:null==t?void 0:t.valueMandatory}},t}();e.UIControlManager=t}(ug||(ug={})),function(e){var t=function(){function t(t,n){this.BEHAVIORAL_TYPE="mouse",this._isStarted=!1,this._onInteraction=new e.EventDispatcher,this._onClickEvent=new e.EventDispatcher,this.lastMouseInteractionTimestamp=null,this.mouseEventsCounter=0,this.eventCounters={},this.delegate=t,this.uiControlManager=n,this.wheelOptions=!!e._POSignalsUtils.Util.isPassiveSupported()&&{passive:!0},this.onPointerHandle=this.onPointerEvent.bind(this),this.onClickHandle=this.onClick.bind(this),this.onDblclickHandle=this.onMouseClickEvent.bind(this),this.onMousedownHandle=this.onMouseClickEvent.bind(this),this.onMousemoveHandle=this.onMouseEvent.bind(this),this.onMouseoutHandle=this.onMouseout.bind(this),this.onMouseoverHandle=this.onMouseEvent.bind(this),this.onMouseupHandle=this.onMouseClickEvent.bind(this),this.onWheelHandle=this.onMouseEvent.bind(this),this.interactionUpdateHandle=this.interactionUpdate.bind(this)}return Object.defineProperty(t.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onInteraction",{get:function(){return this._onInteraction.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onClickEvent",{get:function(){return this._onClickEvent.asEvent()},enumerable:!1,configurable:!0}),t.prototype.countEvent=function(e){this.eventCounters[e]=(this.eventCounters[e]||0)+1},t.prototype.interactionUpdate=function(){this.lastMouseInteraction?(new Date).getTime()-this.lastMouseInteractionTimestamp>=e.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis&&this.dispatch():!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)&&(new Date).getTime()-this.lastMouseInteractionTimestamp<=e.PointerConfig.instance.pointerParams.mouseIntervalMillis&&this.dispatch()},t.prototype.enrichLastInteraction=function(){var t;if(this.lastMouseInteraction){this.lastMouseInteraction.eventCounters=this.eventCounters,this.lastMouseInteraction.duration=this.delegate.getInteractionDuration(this.lastMouseInteraction.events);var n=null===(t=this.lastMouseInteraction.events)||void 0===t?void 0:t.filter((function(e){return"mousemove"===e.type}));this.lastMouseInteraction.timeProximity=e._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(n),this.lastMouseInteraction.meanEuclidean=e._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(n)}},t.prototype.dispatch=function(){try{this.enrichLastInteraction(),this._onInteraction.dispatch(this,this.lastMouseInteraction),this.eventCounters={},this.lastMouseInteraction=null,this.mouseEventsCounter=0}catch(t){e._POSignalsUtils.Logger.warn("Failed to dispatch mouse events",t)}},t.prototype.updateInteraction=function(t,n){this.lastMouseInteraction||(this.lastMouseInteraction={epochTs:(new Date).getTime(),events:[],counter:this.delegate.mouseCounter,additionalData:this.delegate.additionalData,eventCounters:{},duration:0,timeProximity:0,uiControl:void 0,meanEuclidean:0,reduction:{}}),this.lastMouseInteraction.events.push(t),this.mouseEventsCounter++,n&&(this.lastMouseInteraction.uiControl={uiElement:n.uiElement,enrichedData:n.enrichedData},this.delegate.addUiControlTags(n.tagConfig)),this.mouseEventsCounter>=e.PointerConfig.instance.pointerParams.maxMouseEvents&&this.dispatch()},t.prototype.start=function(){this._isStarted?e._POSignalsUtils.Logger.debug("Desktop Mouse events already listening"):(this.delegate.addEventListener(document,"click",this.onClickHandle,!0),this.delegate.addEventListener(document,"dblclick",this.onDblclickHandle),this.delegate.addEventListener(document,"mousedown",this.onMousedownHandle),this.delegate.addEventListener(document,"mousemove",this.onMousemoveHandle),this.delegate.addEventListener(document,"mouseout",this.onMouseoutHandle),this.delegate.addEventListener(document,"mouseover",this.onMouseoverHandle),this.delegate.addEventListener(document,"mouseup",this.onMouseupHandle),this.delegate.addEventListener(document,"wheel",this.onWheelHandle,this.wheelOptions),this.delegate.addEventListener(document,"pointerover",this.onPointerHandle),this.delegate.addEventListener(document,"pointerenter",this.onPointerHandle),this.delegate.addEventListener(document,"pointerdown",this.onPointerHandle),this.delegate.addEventListener(document,"pointermove",this.onPointerHandle),this.delegate.addEventListener(document,"pointerup",this.onPointerHandle),this.delegate.addEventListener(document,"pointercancel",this.onPointerHandle),this.delegate.addEventListener(document,"pointerout",this.onPointerHandle),this.delegate.addEventListener(document,"pointerleave",this.onPointerHandle),this.updateIntervalHandle=setInterval(this.interactionUpdateHandle,e.PointerConfig.instance.pointerParams.mouseIntervalMillis),this._isStarted=!0,e._POSignalsUtils.Logger.debug("Desktop Mouse events start listening..."))},t.prototype.stop=function(){this._isStarted?(document.removeEventListener("click",this.onClickHandle,!0),document.removeEventListener("dblclick",this.onDblclickHandle),document.removeEventListener("mousedown",this.onMousedownHandle),document.removeEventListener("mousemove",this.onMousemoveHandle),document.removeEventListener("mouseout",this.onMouseoutHandle),document.removeEventListener("mouseover",this.onMouseoverHandle),document.removeEventListener("mouseup",this.onMouseupHandle),document.removeEventListener("wheel",this.onWheelHandle,this.wheelOptions),document.removeEventListener("pointerover",this.onPointerHandle),document.removeEventListener("pointerenter",this.onPointerHandle),document.removeEventListener("pointerdown",this.onPointerHandle),document.removeEventListener("pointermove",this.onPointerHandle),document.removeEventListener("pointerup",this.onPointerHandle),document.removeEventListener("pointercancel",this.onPointerHandle),document.removeEventListener("pointerout",this.onPointerHandle),document.removeEventListener("pointerleave",this.onPointerHandle),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1,e._POSignalsUtils.Logger.debug("Desktop Mouse events stop listening...")):e._POSignalsUtils.Logger.debug("Desktop Mouse events already stopped")},t.prototype.onClick=function(t){var n,r;try{this.lastMouseInteractionTimestamp=(new Date).getTime();var i=e._POSignalsUtils.Util.getSrcElement(t);if(this._onClickEvent.dispatch(this,i),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(t.type),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)))return;var a=this.uiControlManager.createUIControlData(t);this.updateInteraction(this.createMouseClickEvent(t.type,t),a),this.dispatch(),(null===(r=null===(n=null==a?void 0:a.uiElement)||void 0===n?void 0:n.id)||void 0===r?void 0:r.length)>0&&e._POSignalsUtils.Logger.info("Tapped on element with id '"+a.uiElement.id+"'")}
1catch(o){e._POSignalsUtils.Logger.warn("error in "+t.type+" handler",o)}},t.prototype.onMouseout=function(t){try{this.onMouseEvent(t);var n=t.relatedTarget||t.toElement;n&&"HTML"!==n.nodeName||this.dispatch()}catch(r){e._POSignalsUtils.Logger.warn("error in "+t.type+" handler",r)}},t.prototype.onMouseEvent=function(t){try{if("wheel"!==t.type&&(this.lastMouseInteractionTimestamp=(new Date).getTime()),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(t.type),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)))return;this.updateInteraction(this.createMouseEvent(t.type,t))}catch(n){e._POSignalsUtils.Logger.warn("error in "+t.type+" handler",n)}},t.prototype.onMouseClickEvent=function(t){try{if(this.lastMouseInteractionTimestamp=(new Date).getTime(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(t.type),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)))return;this.updateInteraction(this.createMouseClickEvent(t.type,t))}catch(n){e._POSignalsUtils.Logger.warn("error in "+t.type+" handler",n)}},t.prototype.onPointerEvent=function(t){try{if(this.lastMouseInteractionTimestamp=(new Date).getTime(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(t.type),e.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)))return;this.updateInteraction(this.createPointerEvent(t.type,t))}catch(n){e._POSignalsUtils.Logger.warn("error in "+t.type+" handler",n)}},t.prototype.clearBuffer=function(){var e=null;return this.lastMouseInteraction&&(e=this.lastMouseInteraction),this.lastMouseInteraction=null,e},t.prototype.isEmpty=function(){return!this.lastMouseInteraction},t.prototype.createMouseEvent=function(e,t){return{type:e,eventTs:t.timeStamp,epochTs:(new Date).getTime(),button:t.button,offsetX:t.offsetX,offsetY:t.offsetY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY,getX:function(){return t.screenX},getY:function(){return t.screenY}}},t.prototype.createPointerEvent=function(e,t){var n=this.createMouseEvent(e,t);return pg(pg({},n),{pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary})},t.prototype.createMouseClickEvent=function(t,n){var r=this.createMouseEvent(t,n);if(n.target&&e._POSignalsUtils.Util.isFunction(n.target.getBoundingClientRect)){var i=n.target.getBoundingClientRect();r.targetBottom=i.bottom,r.targetHeight=i.height,r.targetLeft=i.left,r.targetRight=i.right,r.targetTop=i.top,r.targetWidth=i.width,r.targetX=i.x,r.targetY=i.y}return r},t}();e.Mouse=t}(ug||(ug={})),function(e){var t=function(){function t(e){this.counter=0,this.key=e,this.counter=this.loadFromStorage()}return t.prototype.loadFromStorage=function(){var e=t.sessionStorage.getItem(this.key);return Number(e)||0},t.prototype.get=function(){return this.counter},t.prototype.increment=function(e){void 0===e&&(e=1),this.counter+=e,t.sessionStorage.setItem(this.key,this.counter)},t.prototype.decrement=function(e){void 0===e&&(e=1),this.increment(-1*e)},t.prototype.reset=function(){this.counter=0,t.sessionStorage.removeItem(this.key)},t.sessionStorage=e._POSignalsStorage.SessionStorage.instance.sessionStorage,t}();e.StorageCounter=t}(ug||(ug={})),function(e){var t=function(){function t(e){this.mapKey=e,this.cache=this.loadFromStorage()}return t.prototype.loadFromStorage=function(){var e=t.sessionStorage.getItem(this.mapKey);return e||(e=JSON.stringify({})),JSON.parse(e)},t.prototype.asMap=function(){return this.cache},t.prototype.set=function(e,n,r){void 0===r&&(r=!0),this.cache[e]=n,r&&t.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},t.prototype.sync=function(){t.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},t.prototype.get=function(e){return this.cache[e]},t.prototype.delete=function(e){delete this.cache[e],t.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},t.prototype.values=function(){return e._POSignalsUtils.Util.values(this.cache)},t.prototype.clear=function(){this.cache={},t.sessionStorage.removeItem(this.mapKey)}
1,t.sessionStorage=e._POSignalsStorage.SessionStorage.instance.sessionStorage,t}();e.StorageMap=t}(ug||(ug={})),function(e){var t=function(){function t(){this.config={},this._cacheHash=0,this.cache=new Map}return t.prototype.refreshConfig=function(t){try{if(!t)return;var n=e._POSignalsUtils.Util.hashCode(JSON.stringify(t));if(this._cacheHash===n)return;this.config=t,this._cacheHash=n,this.cache=new Map}catch(r){e._POSignalsUtils.Logger.warn("Failed to set css selectors",r)}},t.prototype.getMatchingTags=function(t,n){var r=this.cache.get(t);if(r)return r;var i={};for(var a in this.config)try{if(!this.config.hasOwnProperty(a))continue;var o=this.config[a].selector||[];e._POSignalsUtils.Util.isArray(o)||(o=[].concat(o));for(var s=0,l=o;s<l.length;s++){var c=l[s];e._POSignalsUtils.Util.isSelectorMatches(t,c,n)&&(i[a]=this.config[a])}}catch(u){e._POSignalsUtils.Logger.warn("Failed to get the config for "+a+" tag",u)}return this.cache.set(t,i),i},t.prototype.getValue=function(t,n){if(n&&t)switch(n=n.trim(),t){case"email_domain":return e._POSignalsUtils.Util.getEmailDomain(n);case"obfuscate":return""+e._POSignalsUtils.Util.mod(n,1e3);case"plain":return n;case"zip":return n.substr(0,3);case"length":return""+n.length}return""},Object.defineProperty(t.prototype,"cacheHash",{get:function(){return this._cacheHash},enumerable:!1,configurable:!0}),t}();e.TagsIdentifications=t}(ug||(ug={})),function(e){var t=function(){function t(){this._reduceFactorMap=null}return Object.defineProperty(t.prototype,"reduceFactorMap",{get:function(){return this._reduceFactorMap},set:function(e){this._reduceFactorMap=e},enumerable:!1,configurable:!0}),t.prototype.reduceEventsByFactor=function(t){var n=this;try{if(!t||0===t.length||!this.reduceFactorMap)return t;for(var r=new Map,i=[],a=0;a<t.length;a++)r.get(t[a].type)?r.get(t[a].type).push(a):r.set(t[a].type,[a]);r.forEach((function(e,t){var r=n.reduceFactorMap[t]?Number(n.reduceFactorMap[t]):0;n.reduceByFactor(r,e,(function(t){i[e[t]]=!0}))}));var o=[];for(a=0;a<t.length;a++)i[a]&&o.push(t[a]);return t.length!==o.length&&e._POSignalsUtils.Logger.debug(t.length-o.length+" events reduced out of "+t.length),o}catch(s){return e._POSignalsUtils.Logger.warn("Failed to reduce events",s),t}},t.prototype.reduceByFactor=function(e,t,n){e=Math.min(e,1);for(var r=Math.round(Math.max(t.length*(1-e),2)),i=(t.length-1)/(r-1),a=Math.min(t.length,r),o=0;o<a;o++)n(Math.round(o*i))},t}();e.ReduceFactor=t}(ug||(ug={})),function(e){var t=function(){function t(e){this.algorithm=e}return t.prototype.reduce=function(n,r){if(-1===t.TYPES_TO_REDUCE.indexOf(r))return{keptEvents:n,epsilon:0};if(n.length<=t.MIN_EVENTS_TO_REDUCE)return{keptEvents:n,epsilon:0};var i=n.length<50?.55:n.length<100?.35:.2,a=n.length<50?1:n.length<100?3:7,o=this.algorithm.reduceEvents(n,a),s=o.length/n.length;if(o.length>=10&&s>=i)return{keptEvents:o,epsilon:a};var l=n.length<50?.1:n.length<100?.3:.7,c=this.algorithm.reduceEvents(n,l),u=c.length/n.length;if(c.length<=t.MIN_EVENTS_TO_REDUCE||u<=i)return{keptEvents:c,epsilon:l};var d=(Math.min(a,Math.pow(a,s/i))*Math.abs(u-i)+l*Math.abs(s-i))/Math.abs(s-u);return(d<l||d>a)&&e._POSignalsUtils.Logger.warn("linear weighted average - calculated epsilon is out of range, lowEpsilon: "+l+", highEpsilon: "+a+", epsilon: "+d),{keptEvents:this.algorithm.reduceEvents(n,d),epsilon:d}},t.MIN_EVENTS_TO_REDUCE=18,t.TYPES_TO_REDUCE=["mousemove","touchmove"],t}();e.RDPEpsilonStrategy=t}(ug||(ug={})),function(e){var t=function(){function t(e){this.rdpStrategy=e}return t.prototype.reduceWithRPD=function(t){var n=this;if(!t||0===t.length)return{events:t,reductionInfo:{}};for(var r=new Map,i=[],a=0,o=t;a<o.length;a++){var s=o[a];r.get(s.type)?r.get(s.type).push(s):r.set(s.type,[s])}var l={};return r.forEach((function(e,t){var r=n.rdpStrategy.reduce(e,t),a=r.keptEvents,o=r.epsilon;o>0&&(l[t]={epsilon:o,originalLength:e.length,keptLength:a.length}),i=i.concat(a)})),{events:e._POSignalsUtils.Util.sortEventsByTimestamp(i),reductionInfo:l}},t}();e.ReduceRDP=t}(ug||(ug={})),function(e){var t=function(){function e(){}return e.prototype.getSqDist=function(e,t){var n=e.getX()-t.getX(),r=e.getY()-t.getY();return n*n+r*r},e.prototype.getSqSegDist=function(e,t,n){var r=t.getX(),i=t.getY(),a=n.getX()-r,o=n.getY()-i;if(0!==a||0!==o){var s=((e.getX()-r)*a+(e.getY()-i)*o)/(a*a+o*o);s>1?(r=n.getX(),i=n.getY()):s>0&&(r+=a*s,i+=o*s)}return(a=e.getX()-r)*a+(o=e.getY()-i)*o},e.prototype.simplifyRadialDist=function(e,t){for(var n,r=e[0],i=[r],a=1,o=e.length;a<o;
1a++)n=e[a],this.getSqDist(n,r)>t&&(i.push(n),r=n);return r!==n&&i.push(n),i},e.prototype.simplifyDPStep=function(e,t,n,r,i){for(var a,o=r,s=t+1;s<n;s++){var l=this.getSqSegDist(e[s],e[t],e[n]);l>o&&(a=s,o=l)}o>r&&(a-t>1&&this.simplifyDPStep(e,t,a,r,i),i.push(e[a]),n-a>1&&this.simplifyDPStep(e,a,n,r,i))},e.prototype.simplifyDouglasPeucker=function(e,t){var n=e.length-1,r=[e[0]];return this.simplifyDPStep(e,0,n,t,r),r.push(e[n]),r},e.prototype.simplify=function(e,t,n){if(e.length<=2)return e;var r=void 0!==t?t*t:1;return e=n?e:this.simplifyRadialDist(e,r),this.simplifyDouglasPeucker(e,r)},e.prototype.reduceEvents=function(e,t){return this.simplify(e,t)},e}();e.RDPReduction=t}(ug||(ug={})),function(e){var t=function(){function t(){}return t.prototype.filterMoveEvents=function(t,n){if(t.length<=18)return t;for(var r=t.filter((function(e){return e.type===n})),i=e._POSignalsUtils.Util.keepFirstEventsWithDistance({events:r,threshold:200,min:18,max:30}),a=-1,o={},s=0;s<t.length;s++){var l=t[s];l.type!==n&&("mousedown"!==l.type?o[l.type]||(i.push(l),o[l.type]=!0):a=s)}return a>=0&&i.push(t[a]),e._POSignalsUtils.Util.sortEventsByTimestamp(i)},t}();e.EventsReduction=t}(ug||(ug={})),function(e){var t=function(){function t(){this.reduceFactor=new e.ReduceFactor,this.reduceRDP=new e.ReduceRDP(new e.RDPEpsilonStrategy(new e.RDPReduction)),this.eventsReduction=new e.EventsReduction}return Object.defineProperty(t.prototype,"reduceFactorMap",{set:function(e){this.reduceFactor.reduceFactorMap=e},enumerable:!1,configurable:!0}),t.prototype.reduceGesture=function(e){var t=this.reduceRDP.reduceWithRPD(e.events);e.events=this.eventsReduction.filterMoveEvents(t.events,"touchmove"),e.reduction=t.reductionInfo},t.prototype.reduceKeyboardInteraction=function(t){t.events=e._POSignalsUtils.Util.filterArrayByLength(t.events,50)},t.prototype.reduceMouseInteraction=function(e){var t=this.reduceRDP.reduceWithRPD(e.events);e.events=this.eventsReduction.filterMoveEvents(t.events,"mousemove"),e.reduction=t.reductionInfo},t}();e.ReductionManager=t}(ug||(ug={})),function(e){var t=function(t){function n(n,r){var i=t.call(this,n)||this;return i.tagsWithValueIdentifications=new e.TagsIdentifications,i.reductionManager=new e.ReductionManager,i.lastGestureTimestamp=0,i.currentBufferSize=0,i.bufferingStrategy=e.StrategyFactory.createBufferingStrategy(r,i),i.capturedKeyboardInteractions=new e.StorageArray(e._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS),i.keyboardInteractionsCount=new e.StorageCounter(e._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT),i.mouseInteractionsCount=new e.StorageCounter(e._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT),i.gesturesCount=new e.StorageCounter(e._POSignalsUtils.Constants.GESTURES_COUNT),i.eventCounters=new e.StorageMap(e._POSignalsUtils.Constants.EVENT_COUNTERS),i.capturedMouseInteractions=new e.StorageArray(e._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS),i.capturedGestures=new e.StorageArray(e._POSignalsUtils.Constants.CAPTURED_GESTURES),i.capturedIndirectEvents=new e.StorageArray(e._POSignalsUtils.Constants.CAPTURED_INDIRECT),i.currentBufferSize=i.capturedGestures.length+i.capturedMouseInteractions.length+i.capturedKeyboardInteractions.length,i.uiControlManager=new e.UIControlManager(i),i.keyboard=new e.Keyboard(i,i.uiControlManager),i.keyboard.onInteraction.subscribe(i.handleKeyboardInteraction.bind(i)),i.keyboard.onEnterPress.subscribe(i.handleStTagOnEnter.bind(i)),i.keyboard.onObfuscatedValue.subscribe(i.handleTagValueOnBlur.bind(i)),i.mouse=new e.Mouse(i,i.uiControlManager),i.mouse.onInteraction.subscribe(i.handleMouseInteraction.bind(i)),i.mouse.onClickEvent.subscribe(i.handleStTagOnClick.bind(i)),i.sensors=new e.Sensors(i),i.gesture=new e.GestureEvents(i,i.sensors),i.gesture.onGesture.subscribe(i.handleGesture.bind(i)),i.indirect=new e.IndirectClient(i),i.indirect.onIndirect.subscribe(i.handleIndirect.bind(i)),i.onUrlChangeHandler=i.onUrlChange.bind(i),i.onEventHandler=i.onEvent.bind(i),i}return fg(n,t),Object.defineProperty(n.prototype,"keyboardCounter",{get:function(){return this.keyboardInteractionsCount.get()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mouseCounter",{get:function(){return this.mouseInteractionsCount.get()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gesturesCounter",{get:function(){return this.gesturesCount.get()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"additionalData",{get:function(){var t=e._POSignalsUtils.Util.getDeviceOrientation();return{locationHref:location.href,devTools:e._POSignalsUtils.Util.getDevToolsState(),innerWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,innerHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio,deviceOrientation:t.orientation,deviceAngle:t.angle}},enumerable:!1,configurable:!0}),n.prototype.getBehavioralData=function(){return this.clearIndirectBuffer(),{mouse:{count:this.mouseInteractionsCount.get(),interactions:this.capturedMouseInteractions.get()},keyboard:{count:this.keyboardInteractionsCount.get(),interactions:this.capturedKeyboardInteractions.get()},touch:{count:this.gesturesCount.get(),interactions:this.capturedGestures.get()},indirect:{events:this.capturedIndirectEvents.get()},eventCounters:this.eventCounters.asMap()}},n.prototype.getBufferSize=function(){return this.currentBufferSize},n.prototype.getInteractionDuration=function(e){return(null==e?void 0:e.length)>0?e[e.length-1].epochTs-e[0].epochTs:0},n.prototype.dispose=function(){return dg(this,void 0,void 0,(function(){return hg(this,(function(e){return this.stopListening(),this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)),this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)),this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)),this.indirect.unsubscribe(),this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this)),[2]}))}))},n.prototype.collectBehavioralData=function(t){if(this.isBehavioralDataPaused)return!1;var n=e.PointerConfig.instance.pointerParams.behavioralBlacklist;return!(t&&n&&n[t])||!window.location.href.match(n[t])},n.prototype.getElementsStID=function(t){try{return e._POSignalsUtils.Util.getAttribute(t,"data-st-field")||this.keyboard.fieldsIdentifications.getIdentification(t,0)||""}catch(n){return e._POSignalsUtils.Logger.warn("failed to get element stId",n),""}},n.prototype.addEventListener=function(t,n,r,i){e.PointerConfig.instance.pointerParams.eventsBlackList.has(n)||(t.addEventListener(n,this.onEventHandler,i),t.addEventListener(n,r,i))},n.prototype.addUiControlTags=function(t){if((null==t?void 0:t.length)>0)for(var n=!1,r=0,i=t;r<i.length;r++){var a=i[r];try{if(null!=a&&a.name){var o=this.uiControlManager.convertToTagValueConfig(a.value);n=this.addSingleTagWithValue(a.name,o)||n}}catch(s){e._POSignalsUtils.Logger.warn("failed to add tag config",s)}}},n.prototype.refreshListening=function(){var t=e.PointerConfig.instance;this.tagsWithValueIdentifications.refreshConfig(t.pointerParams.remoteTags),this.reductionManager.reduceFactorMap=t.pointerParams.eventsReduceFactorMap,this.keyboard.refreshKeyboardCssSelectors(t.pointerParams.keyboardCssSelectors),this.sensors.maxSensorSamples=t.pointerParams.maxSensorSamples,this.sensors.sensorsTimestampDeltaInMillis=t.pointerParams.sensorsDeltaInMillis,this.mouse.start(),this.keyboard.start(),this.gesture.start(),this.indirect.start(),0==t.pointerParams.maxSensorSamples?this.sensors.stop():this.sensors.start(),this.addEventListener(window,"_onlocationchange",this.onUrlChangeHandler),this.addEventListener(window,"popstate",this.onUrlChangeHandler)},n.prototype.addSingleTagWithValue=function(t,n){try{if(null!=n&&n.context&&!window.location.href.match(n.context))return!1;var r="";if(null!=n&&n.operation&&null!=n&&n.valueSelector){var i=document.querySelector(n.valueSelector);
1if(i){var a=e._POSignalsUtils.Util.getElementText(i);r=this.tagsWithValueIdentifications.getValue(n.operation,a)}}if(null!=n&&n.valueMandatory&&!r)return e._POSignalsUtils.Logger.warn("tag '"+t+"' wasn't added. value is missing"),!1;this.addTag(t,r)}catch(o){e._POSignalsUtils.Logger.warn("failed to add "+t+" tag",o)}return!1},n.prototype.addTagsWithValue=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=this.addSingleTagWithValue(n,e[n])||t)},n.prototype.handleStTagOnEnter=function(t,n){n instanceof HTMLInputElement&&e._POSignalsUtils.Util.isTextInput(n)&&this.handleStTagElement(n)},n.prototype.handleTagValueOnBlur=function(e,t){t&&this.addTag(t.fieldKey,t.obfuscatedValue)},n.prototype.handleStTagOnClick=function(t,n){n instanceof HTMLInputElement&&!e._POSignalsUtils.Util.isClickableInput(n)||this.handleStTagElement(n)},n.prototype.handleMouseInteraction=function(e,t){if(t){this.mouseInteractionsCount.increment(),this.reductionManager.reduceMouseInteraction(t);var n=this.bufferingStrategy.calculateStrategyResult(t,"mouse");n.shouldCollect&&(n.remove&&this.removeInteraction(n.remove),this.capturedMouseInteractions.push(t),this.lastGestureTimestamp!==t.events[t.events.length-1].eventTs&&this.currentBufferSize++,this.eventCounters.sync())}},n.prototype.handleIndirect=function(e,t){this.addIndirectEvents(t),this.eventCounters.sync()},n.prototype.handleKeyboardInteraction=function(e,t){if(t){this.keyboardInteractionsCount.increment(),this.reductionManager.reduceKeyboardInteraction(t);var n=this.bufferingStrategy.calculateStrategyResult(t,"keyboard");n.shouldCollect&&(n.remove&&this.removeInteraction(n.remove),this.capturedKeyboardInteractions.push(t),this.currentBufferSize++,this.eventCounters.sync())}},n.prototype.handleGesture=function(e,t){var n;if(this.isValidGesture(t)){this.gesturesCount.increment(),this.reductionManager.reduceGesture(t);var r=this.bufferingStrategy.calculateStrategyResult(t,"touch");r.shouldCollect&&(r.remove&&this.removeInteraction(r.remove),this.sensors.onGesture(t),this.capturedGestures.push(t),this.currentBufferSize++,this.lastGestureTimestamp=null===(n=t.events[t.events.length-1])||void 0===n?void 0:n.eventTs,this.eventCounters.sync())}},n.prototype.clearIndirectBuffer=function(){var e=this.indirect.clearBuffer();this.addIndirectEvents(e)},n.prototype.removeInteraction=function(e){switch(e.type){case"mouse":this.capturedMouseInteractions.remove(e.index);break;case"keyboard":this.capturedKeyboardInteractions.remove(e.index);break;case"touch":this.capturedGestures.remove(e.index)}},n.prototype.addIndirectEvents=function(t){var n;if((null===(n=null==t?void 0:t.events)||void 0===n?void 0:n.length)>0){for(var r=[],i=e._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get()),a=0,o=t.events;a<o.length;a++){var s=o[a];e.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(s.type)&&this.capturedIndirectEvents.length+r.length<e.PointerConfig.instance.pointerParams.maxIndirectEvents&&r.push(s),i[s.type]>0||(r.push(s),i[s.type]=1)}this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(r))}},n.prototype.onUrlChange=function(){this.addTag("location",window.location.href)},n.prototype.onEvent=function(e){this.isBehavioralDataPaused||this.eventCounters.set(e.type,(this.eventCounters.get(e.type)||0)+1,!1)},n.prototype.handleStTagElement=function(t){if(t){var n=e.PointerConfig.instance.pointerParams.maxSelectorChildren,r=this.tagsWithValueIdentifications.getMatchingTags(t,
1n);this.addTagsWithValue(r);var i=e._POSignalsUtils.Util.isSelectorMatches(t,"[data-st-tag]",n);if(i instanceof Element){var a=e._POSignalsUtils.Util.getAttribute(i,"data-st-tag"),o=e._POSignalsUtils.Util.getAttribute(i,"data-st-tag-value");a&&this.addTag(a,o)}}},n.prototype.stopListening=function(){this.keyboard.stop(),this.mouse.stop(),this.gesture.stop(),this.indirect.stop(),this.sensors.stop(),window.removeEventListener("_onlocationchange",this.onUrlChangeHandler),window.removeEventListener("popstate",this.onUrlChangeHandler)},n.prototype.clearBehavioralData=function(){this.capturedKeyboardInteractions.clear(),this.capturedMouseInteractions.clear(),this.capturedGestures.clear(),this.capturedIndirectEvents.clear(),this.sensors.reset(),e.Tags.instance.reset(),this.currentBufferSize=0,this.keyboardInteractionsCount.reset(),this.mouseInteractionsCount.reset(),this.gesturesCount.reset(),this.eventCounters.clear()},n.prototype.isValidGesture=function(t){var n,r;return(null===(n=null==t?void 0:t.events)||void 0===n?void 0:n.length)>0&&(null===(r=null==t?void 0:t.events)||void 0===r?void 0:r.length)<e.PointerConfig.instance.pointerParams.maxSnapshotsCount},n}(e.ClientBase);e.Client=t}(ug||(ug={})),gg=function(){function e(){}return e.getData=function(){return ug.ClientBase.instance().getData()},e.init=function(e){return ug._POSignalsUtils.Util.ieFix(),ug.ClientBase.instance().startSignals(e)},e.initSilent=function(e){return this.init(e)},e.pauseBehavioralData=function(){ug.ClientBase.instance().pauseBehavioralData()},e.resumeBehavioralData=function(){ug.ClientBase.instance().resumeBehavioralData()},e}(),mg=function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)},mg((function(){if(!window._pingOneSignalsReady){var e=new CustomEvent("PingOneSignalsReadyEvent");document.dispatchEvent(e),window._pingOneSignalsReady=!0}})),function(e){var t=function(){function t(e,t,n,r,i,a,o){this.clientVersion=e,this.instanceUUID=t,this.initParams=n,this.metadata=r,this.behavioralDataHandler=i,this.externalIdentifiers=a,this.sessionStorage=o}return t.prototype.getData=function(e){return dg(this,void 0,void 0,(function(){var t;return hg(this,(function(n){switch(n.label){case 0:return[4,this.getRiskData(e)];case 1:return t=n.sent(),[2,this.toString(t)]}}))}))},t.prototype.getRiskData=function(t){return dg(this,void 0,void 0,(function(){var n,r;return hg(this,(function(i){switch(i.label){case 0:return r={},[4,this.metadata.getDeviceAttributes()];case 1:return r.deviceAttributes=i.sent(),r.behavioral=this.behavioralDataHandler.getBehavioralData(),r.tags=e.Tags.instance.tags,r.sdkConfig=this.initParams,r.epochTs=t,r.instanceUUID=this.instanceUUID,r.tabUUID=e._POSignalsStorage.SessionStorage.instance.tabUUID,r.origin=location.origin,r.href=location.href,r.sdkVersion=this.clientVersion,r.platform="web",r.clientToken=window._pingOneSignalsToken,r.externalIdentifiers=this.externalIdentifiers,n=r,this.sessionStorage.deviceTrust&&(n.deviceTrust=this.sessionStorage.deviceTrust),[2,n]}}))}))},t.prototype.toString=function(t){var n,r=this.metadata.getObfsInfo();try{n=e._POSignalsUtils.Util.string2buf(JSON.stringify(t))}catch(i){throw new Error("Failed to create data, "+i.message)}try{n=e.pako.gzip(n)}catch(i){throw new Error("Failed to compress data, "+i.message)}try{n=e._POSignalsUtils.Util.encryptionBytes(n,r.key)}catch(i){throw new Error("failed to obfuscate data, "+i.message)}try{return e._POSignalsUtils.Util.base64Uint8Array(n)+"."+btoa(r.identifier)}catch(i){throw new Error("failed to encode data, "+i.message)}},t}();e.DataHandler=t}(ug||(ug={})),function(e){var t=function(){function t(){this._configuration={enabled:t.ENABLED_DEFAULT,bufferSize:t.BUFFER_SIZE_DEFAULT,maxSnapshotsCount:t.MAX_SNAPSHOTS_COUNT_DEFAULT,sensors:t.SENSORS_DEFAULT,metadataBlacklist:t.METADATA_BLACK_LIST_DEFAULT,tagsBlacklistRegex:t.TAGS_BLACK_LIST_REGEX_DEFAULT,behavioralBlacklist:t.BEHAVIORAL_BLACK_LIST_DEFAULT,webRtcUrl:t.WEB_RTC_URL_DEFAULT,eventsBlackList:t.EVENTS_BLACK_LIST_DEFAULT,eventsToIgnore:t.EVENTS_TO_IGNORE_DEFAULT,highPriorityIndirectEvents:t.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT,indirectIntervalMillis:t.INDIRECT_INT
1ERVAL_MILLIS_DEFAULT,mouseIntervalMillis:t.MOUSE_INTERVAL_MILLIS_DEFAULT,mouseIdleTimeoutMillis:t.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT,maxMouseEvents:t.MAX_MOUSE_EVENTS_DEFAULT,maxIndirectEvents:t.MAX_INDIRECT_EVENTS_DEFAULT,keyboardFieldBlackList:t.KEYBOARD_FIELD_BLACK_LIST_DEFAULT,keyboardCssSelectors:t.KEYBOARD_CSS_SELECTORS_DEFAULT,keyboardCssSelectorsBlacklist:t.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT,keyboardIdentifierAttributes:t.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT,remoteTags:t.REMOTE_TAGS_DEFAULT,maxSelectorChildren:t.MAX_SELECTOR_CHILDREN_DEFAULT,eventsReduceFactorMap:t.EVENTS_REDUCE_FACTOR_MAP_DEFAULT,propertyDescriptors:t.PROPERTY_DESCRIPTORS_DEFAULT,additionalMediaCodecs:t.ADDITIONAL_MEDIA_CODECS_DEFAULT,fingerprintTimeoutMillis:t.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT,metadataDataPoints:t.METADATA_DATA_POINTS_DEFAULT,uiModeling:t.UI_MODELING_CONFIG_DEFAULT,uiControl:t.UI_CONTROL_LIST_DEFAULT}}return t.prototype.updateParams=function(e){e&&(this._configuration=e)},Object.defineProperty(t.prototype,"enabled",{get:function(){return"boolean"==typeof this._configuration.enabled?this._configuration.enabled:t.ENABLED_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bufferSize",{get:function(){return"number"==typeof this._configuration.bufferSize&&this._configuration.bufferSize>0?this._configuration.bufferSize:t.BUFFER_SIZE_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSnapshotsCount",{get:function(){return"number"==typeof this._configuration.maxSnapshotsCount&&this._configuration.maxSnapshotsCount>=0?this._configuration.maxSnapshotsCount:t.MAX_SNAPSHOTS_COUNT_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSensorSamples",{get:function(){var e=this._configuration.sensors;return e&&"number"==typeof e.maxSensorSamples&&e.maxSensorSamples>=0?e.maxSensorSamples:t.SENSORS_DEFAULT.maxSensorSamples},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sensorsDeltaInMillis",{get:function(){var e=this._configuration.sensors;return e&&"number"==typeof e.sensorsDeltaInMillis&&e.sensorsDeltaInMillis>=0?e.sensorsDeltaInMillis:t.SENSORS_DEFAULT.sensorsDeltaInMillis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadataBlackList",{get:function(){var n;return e._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist)&&(null===(n=this._configuration.metadataBlacklist)||void 0===n?void 0:n.length)>0?this._configuration.metadataBlacklist:t.METADATA_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"behavioralBlacklist",{get:function(){return this._configuration.behavioralBlacklist?this._configuration.behavioralBlacklist:t.BEHAVIORAL_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagsBlacklistRegex",{get:function(){return"string"==typeof this._configuration.tagsBlacklistRegex?this._configuration.tagsBlacklistRegex:t.TAGS_BLACK_LIST_REGEX_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"webRtcUrl",{get:function(){return"string"==typeof this._configuration.webRtcUrl?this._configuration.webRtcUrl:t.WEB_RTC_URL_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventsBlackList",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList)&&(this._configuration.eventsBlackList=new Set(this._configuration.eventsBlackList)),this._configuration.eventsBlackList instanceof Set?this._configuration.eventsBlackList:t.EVENTS_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventsToIgnore",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore)&&(this._configuration.eventsToIgnore=new Set(this._configuration.eventsToIgnore)),this._configuration.eventsToIgnore instanceof Set?this._configuration.eventsToIgnore:t.EVENTS_TO_IGNORE_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highPriorityIndirectEvents",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents)&&(this._configuration.highPriorityIndirectEvents=new Set(this._configuration.highPriorityIndirectEvents)),this._configuration.highPriorityIndirectEvents instanceof Set?this._configuration.highPriorityIndirectEvents:t.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indirectIntervalMillis",{get:function(){return"number"==typeof this._configuration.indirectIntervalMillis&&this._configuration.indirectIntervalMillis>0?this._configuration.indirectIntervalMillis:t.INDIRECT_INTERVAL_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mouseIntervalMillis",{get:function(){return"number"==typeof this._configuration.mouseIntervalMillis&&this._configuration.mouseIntervalMillis>0?this._configuration.mouseIntervalMillis:t.MOUSE_INTERVAL_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mouseIdleTimeoutMillis",{get:function(){return"number"==typeof this._configuration.mouseIdleTimeoutMillis&&this._configuration.mouseIdleTimeoutMillis>0?this._configuration.mouseIdleTimeoutMillis:t.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxMouseEvents",{get:function(){return"number"==typeof this._configuration.maxMouseEvents&&this._configuration.maxMouseEvents>=0?this._configuration.maxMouseEvents:t.MAX_MOUSE_EVENTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxIndirectEvents",{get:function(){return"number"==typeof this._configuration.maxIndirectEvents&&this._configuration.maxIndirectEvents>=0?this._configuration.maxIndirectEvents:t.MAX_INDIRECT_EVENTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyboardFieldBlackList",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList)&&(this._configuration.keyboardFieldBlackList=new Set(this._configuration.keyboardFieldBlackList)),this._configuration.keyboardFieldBlackList instanceof Set?this._configuration.keyboardFieldBlackList:t.KEYBOARD_FIELD_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyboardCssSelectors",{get:function(){return this._configuration.keyboardCssSelectors?this._configuration.keyboardCssSelectors:t.KEYBOARD_CSS_SELECTORS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyboardCssSelectorsBlacklist",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist)?this._configuration.keyboardCssSelectorsBlacklist:t.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyboardIdentifierAttributes",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes)?this._configuration.keyboardIdentifierAttributes:t.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteTags",{get:function(){return this._configuration.remoteTags?this._configuration.remoteTags:t.REMOTE_TAGS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectorChildren",{get:function(){return"number"==typeof this._configuration.maxSelectorChildren&&this._configuration.maxSelectorChildren>0?this._configuration.maxSelectorChildren:t.MAX_SELECTOR_CHILDREN_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventsReduceFactorMap",{get:function(){return this._configuration.eventsReduceFactorMap?this._configuration.eventsReduceFactorMap:t.EVENTS_REDUCE_FACTOR_MAP_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyDescriptors",{get:function(){return this._configuration.propertyDescriptors?this._configuration.propertyDescriptors:t.PROPERTY_DESCRIPTORS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalMediaCodecs",{get:function(){return this._configuration.additionalMediaCodecs?this._configuration.additionalMediaCodecs:t.ADDITIONAL_MEDIA_CODECS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fingerprintTimeoutMillis",{get:function(){return"number"==typeof this._configuration.fingerprintTimeoutMillis&&this._configuration.fingerprintTimeoutMillis>0?this._configuration.fingerprintTimeoutMillis:t.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadataDataPoints",{get:function(){return this._configuration.metadataDataPoints?this._configuration.metadataDataPoints:t.METADATA_DATA_POINTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiModelingBlacklistRegex",{get:function(){var e;return"string"==typeof(null===(e=this._configuration.uiModeling)||void 0===e?void 0:e.blacklistRegex)?this._configuration.uiModeling.blacklistRegex:t.UI_MODELING_CONFIG_DEFAULT.blacklistRegex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiModelingElementFilters",{get:function(){var e;return null!==(e=this._configuration.uiModeling)&&void 0!==e&&e.uiElementFilters?this._configuration.uiModeling.uiElementFilters:t.UI_MODELING_CONFIG_DEFAULT.uiElementFilters},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiModelingMaxMatchingParents",{get:function(){var e;return"number"==typeof(null===(e=this._configuration.uiModeling)||void 0===e?void 0:e.maxMatchingParents)?this._configuration.uiModeling.maxMatchingParents:t.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiControlsConfig",{get:function(){return e._POSignalsUtils.Util.isArray(this._configuration.uiControl)?this._configuration.uiControl:t.UI_CONTROL_LIST_DEFAULT},enumerable:!1,configurable:!0}),t.ENABLED_DEFAULT=!0,t.BUFFER_SIZE_DEFAULT=4,t.MAX_SNAPSHOTS_COUNT_DEFAULT=500,t.METADATA_BLACK_LIST_DEFAULT=[],t.TAGS_BLACK_LIST_REGEX_DEFAULT="",t.BEHAVIORAL_BLACK_LIST_DEFAULT={},t.WEB_RTC_URL_DEFAULT="",t.EVENTS_BLACK_LIST_DEFAULT=new Set,t.EVENTS_TO_IGNORE_DEFAULT=new Set(["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","dragstart","dragexit","drop","dragend"]),t.MAX_INDIRECT_EVENTS_DEFAULT=15,t.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT=new Set(["copy","cut","paste","resize","orientationchange","languagechange","submit","select"]),t.INDIRECT_INTERVAL_MILLIS_DEFAULT=1e3,t.MOUSE_INTERVAL_MILLIS_DEFAULT=1e3,t.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT=1e3,t.MAX_MOUSE_EVENTS_DEFAULT=500,t.KEYBOARD_FIELD_BLACK_LIST_DEFAULT=new Set,t.KEYBOARD_CSS_SELECTORS_DEFAULT={},t.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT=[],t.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT=["data-selenium","data-selenium-id","data-testid","data-test-id","data-qa-id","data-id","id"],t.REMOTE_TAGS_DEFAULT={dv_form_submit:{selector:'[data-skbuttontype="form-submit"]'},login_attempt_email_domain:{selector:'[data-st-tag="login.login_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_hash:{selector:'[data-st-tag="login.login_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_length:{selector:'[data-st-tag="login.login_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_email_domain:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_hash:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_length:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0}},t.MAX_SELECTOR_CHILDREN_DEFAULT=2,t.EVENTS_REDUCE_FACTOR_MAP_DEFAULT={},t.PROPERTY_DESCRIPTORS_DEFAULT={chrome:["app","csi","loadtimes","runtime"],navigator:["webdriver"],Navigator:["languages","hardwareConcurrency"],window:["outerWidth","outerHeight"],Screen:["width","height"]},t.ADDITIONAL_MEDIA_CODECS_DEFAULT={},t.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT=3e3,t.METADATA_DATA_POINTS_DEFAULT={},t.UI_CONTROL_LIST_DEFAULT=[],t.UI_MODELING_CONFIG_DEFAULT={blacklistRegex:"",uiElementFilters:{text:{maxLength:25},placeholder:{maxLength:25}},maxMatchingParents:2},t.SENSORS_DEFAULT={maxSensorSamples:1,sensorsDeltaInMillis:0},t}();e.PointerParams=t}(ug||(ug={})),window._POSignalsEntities=ug,window._pingOneSignals=gg);var ug,dg,hg,pg,fg,gg,mg,vg,wg=Object.freeze({__proto__:null}),bg={},yg={},_g={},kg=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];_g.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},_g.getSymbolTotalCodewords=function(e){return kg[e]},_g.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},_g.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');vg=e},_g.isKanjiModeEnabled=function(){return"undefined"!=typeof vg},_g.toSJIS=function(e){return vg(e)};var $g={};function Sg(){this.buffer=[],this.length=0}!function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&"undefined"!=typeof e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(r){return n}}}($g),Sg.prototype={get:function(e){let t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Eg=Sg;function xg(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}xg.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},xg.prototype.get=function(e,t){return this.data[e*this.size+t]},xg.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},xg.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Cg=xg,Ag={};!function(e){let t=_g.getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];let n=Math.floor(e/7)+2,r=t(e),i=145===r?26:2*Math.ceil((r-13)/(2*n-2)),a=[r-7];for(let t=1;t<n-1;t++)a[t]=a[t-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||n.push([r[e],r[t]]);return n}}(Ag);var Ig={},Tg=_g.getSymbolSize;Ig.getPositions=function(e){let t=Tg(e);return[[0,0],[t-7,0],[0,t-7]]};var Og={};!function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let t=3,n=3,r=40,i=10;function a(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(n+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return n*r%2+n*r%3===0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let l=0;l<n;l++){i=a=0,o=s=null;for(let c=0;c<n;c++){let n=e.get(l,c);n===o?i++:(i>=5&&(r+=t+(i-5)),o=n,i=1),n=e.get(c,l),n===s?a++:(a>=5&&(r+=t+(a-5)),s=n,a=1)}i>=5&&(r+=t+(i-5)),a>=5&&(r+=t+(a-5))}return r},e.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){let t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);(4===t||0===t)&&r++}return r*n},e.getPenaltyN3=function(e){let t=e.size,n=0,i=0,a=0;for(let r=0;r<t;r++){i=a=0;for(let o=0;o<t;o++)i=i<<1&2047|e.get(r,o),o>=10&&(1488===i||93===i)&&n++,a=a<<1&2047|e.get(o,r),o>=10&&(1488===a||93===a)&&n++}return n*r},e.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*i},e.applyMask=function(e,t){let n=t.size;
1for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}}(Og);var Pg={},Mg=$g,Lg=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Dg=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Pg.getBlocksCount=function(e,t){switch(t){case Mg.L:return Lg[4*(e-1)+0];case Mg.M:return Lg[4*(e-1)+1];case Mg.Q:return Lg[4*(e-1)+2];case Mg.H:return Lg[4*(e-1)+3];default:return}},Pg.getTotalCodewordsCount=function(e,t){switch(t){case Mg.L:return Dg[4*(e-1)+0];case Mg.M:return Dg[4*(e-1)+1];case Mg.Q:return Dg[4*(e-1)+2];case Mg.H:return Dg[4*(e-1)+3];default:return}};var Rg={},Ug={},Ng=new Uint8Array(512),Fg=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)Ng[t]=e,Fg[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)Ng[t]=Ng[t-255]}(),Ug.log=function(e){if(e<1)throw new Error("log("+e+")");return Fg[e]},Ug.exp=function(e){return Ng[e]},Ug.mul=function(e,t){return 0===e||0===t?0:Ng[Fg[e]+Fg[t]]},function(e){let t=Ug;e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let a=0;a<n.length;a++)r[a]^=t.mul(n[a],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}}(Rg);var Bg=Rg;function Vg(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Vg.prototype.initialize=function(e){this.degree=e,this.genPoly=Bg.generateECPolynomial(this.degree)},Vg.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Bg.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let e=new Uint8Array(this.degree);return e.set(n,r),e}return n};var zg=Vg,jg={},Hg={},qg={isValid:function(e){return!isNaN(e)&&e>=1&&e<=40}},Kg={},Gg="[0-9]+",Wg="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",Zg="(?:(?![A-Z0-9 $%*+\\-./:]|"+(Wg=Wg.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";Kg.KANJI=new RegExp(Wg,"g"),Kg.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Kg.BYTE=new RegExp(Zg,"g"),Kg.NUMERIC=new RegExp(Gg,"g"),Kg.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var Yg=new RegExp("^"+Wg+"$"),Xg=new RegExp("^"+Gg+"$"),Jg=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Kg.testKanji=function(e){return Yg.test(e)},Kg.testNumeric=function(e){return Xg.test(e)},Kg.testAlphanumeric=function(e){return Jg.test(e)},function(e){let t=qg,n=Kg;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(r){return n}}}
1(Hg),function(e){let t=_g,n=Pg,r=$g,i=Hg,a=qg,o=t.getBCHDigit(7973);function s(e,t){return i.getCharCountIndicator(e,t)+4}function l(e,t){let n=0;return e.forEach((function(e){let r=s(e.mode,t);n+=r+e.getBitsLength()})),n}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw new Error("Invalid QR Code version");"undefined"==typeof o&&(o=i.BYTE);let l=8*(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r));if(o===i.MIXED)return l;let c=l-s(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){let a,o=r.from(n,r.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let r=1;r<=40;r++)if(l(t,r)<=e.getCapacity(r,n,i.MIXED))return r}(t,o);if(0===t.length)return 1;a=t[0]}else a=t;return function(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}(a.mode,a.getLength(),o)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let n=e<<12;for(;t.getBCHDigit(n)-o>=0;)n^=7973<<t.getBCHDigit(n)-o;return e<<12|n}}(jg);var Qg={},em=_g,tm=em.getBCHDigit(1335);Qg.getEncodedBits=function(e,t){let n=e.bit<<3|t,r=n<<10;for(;em.getBCHDigit(r)-tm>=0;)r^=1335<<em.getBCHDigit(r)-tm;return 21522^(n<<10|r)};var nm={},rm=Hg;function im(e){this.mode=rm.NUMERIC,this.data=e.toString()}im.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},im.prototype.getLength=function(){return this.data.length},im.prototype.getBitsLength=function(){return im.getBitsLength(this.data.length)},im.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))};var am=im,om=Hg,sm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function lm(e){this.mode=om.ALPHANUMERIC,this.data=e}lm.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},lm.prototype.getLength=function(){return this.data.length},lm.prototype.getBitsLength=function(){return lm.getBitsLength(this.data.length)},lm.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*sm.indexOf(this.data[t]);n+=sm.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(sm.indexOf(this.data[t]),6)};var cm=lm,um=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=1024*(i-55296)+a-56320+65536,r+=1)}i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<55296||i>=57344&&i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i>=65536&&i<=1114111?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):t.push(239,191,189)}return new Uint8Array(t).buffer},dm=Hg;function hm(e){this.mode=dm.BYTE,"string"==typeof e&&(e=um(e)),this.data=new Uint8Array(e)}hm.getBitsLength=function(e){return 8*e},hm.prototype.getLength=function(){return this.data.length},hm.prototype.getBitsLength=function(){return hm.getBitsLength(this.data.length)},hm.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var pm=hm,fm=Hg,gm=_g;function mm(e){this.mode=fm.KANJI,this.data=e}mm.getBitsLength=function(e){return 13*e},mm.prototype.getLength=function(){return this.data.length},mm.prototype.getBitsLength=function(){return mm.getBitsLength(this.data.length)},mm.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=gm.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}};var vm=mm,wm={exports:{}};!function(e){var t={single_source_shortest_paths:function(e,n,r){var i={},a={};a[n]=0;var o,s,l,c,u,d,h,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(o=p.pop()).value,c=o.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=a[l],("undefined"==typeof a[l]||h>
1d)&&(a[l]=d,p.push(l,d),i[l]=s));if("undefined"!=typeof r&&"undefined"==typeof a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t}(wm);var bm=wm.exports;!function(e){let t=Hg,n=am,r=cm,i=pm,a=vm,o=Kg,s=_g,l=bm;function c(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r,i=[];for(;null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function d(e){let n,r,i=u(o.NUMERIC,t.NUMERIC,e),a=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e);return s.isKanjiModeEnabled()?(n=u(o.BYTE,t.BYTE,e),r=u(o.KANJI,t.KANJI,e)):(n=u(o.BYTE_KANJI,t.BYTE,e),r=[]),i.concat(a,n,r).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e,o){let l,c=t.getBestModeForData(e);if(l=t.from(o,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l===t.KANJI&&!s.isKanjiModeEnabled()&&(l=t.BYTE),l){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e}),[])},e.fromString=function(n,r){let i=function(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:c(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:c(i.data)}])}}return n}(d(n,s.isKanjiModeEnabled())),a=function(e,n){let r={},i={start:{}},a=["start"];for(let o=0;o<e.length;o++){let s=e[o],l=[];for(let e=0;e<s.length;e++){let c=s[e],u=""+o+e;l.push(u),r[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===c.mode?(i[o][u]=h(r[o].lastCount+c.length,c.mode)-h(r[o].lastCount,c.mode),r[o].lastCount+=c.length):(r[o]&&(r[o].lastCount=c.length),i[o][u]=h(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,n))}}a=l}for(let t=0;t<a.length;t++)i[a[t]].end=0;return{map:i,table:r}}(i,r),o=l.find_path(a.map,"start","end"),u=[];for(let e=1;e<o.length-1;e++)u.push(a.table[o[e]].node);return e.fromArray(u.reduce((function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}}(nm);var ym=_g,_m=$g,km=Eg,$m=Cg,Sm=Ag,Em=Ig,xm=Og,Cm=Pg,Am=zg,Im=jg,Tm=Qg,Om=Hg,Pm=nm;function Mm(e,t,n){let r,i,a=e.size,o=Tm.getEncodedBits(t,n);for(r=0;r<15;r++)i=1===(o>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(a-15+r,8,i,!0),r<8?e.set(8,a-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(a-8,8,1,!0)}function Lm(e,t,n){let r=new km;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),Om.getCharCountIndicator(t.mode,e)),t.write(r)}));let i=8*(ym.getSymbolTotalCodewords(e)-Cm.getTotalCodewordsCount(e,t));for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let a=(i-r.getLengthInBits())/8;for(let o=0;o<a;o++)r.put(o%2?17:236,8);return function(e,t,n){let r=ym.getSymbolTotalCodewords(t),i=Cm.getTotalCodewordsCount(t,n),a=r-i,o=Cm.getBlocksCount(t,n),s=r%o,l=o-s,c=Math.floor(r/o),u=Math.floor(a/o),d=u+1,h=c-u,p=new Am(h),f=0,g=new Array(o),m=new Array(o),v=0,w=new Uint8Array(e.buffer);for(let $=0;$<o;$++){let e=$<l?u:d;g[$]=w.slice(f,f+e),m[$]=p.encode(g[$]),f+=e,v=Math.max(v,e)}let b,y,_=new Uint8Array(r),k=0;for(b=0;b<v;b++)for(y=0;y<o;y++)b<g[y].length&&(_[k++]=g[y][b]);for(b=0;b<h;b++)for(y=0;y<o;y++)_[k++]=m[y][b];return _}(r,e,t)}function Dm(e,t,n,r){let i;if(Array.isArray(e))i=Pm.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){let t=Pm.rawSplit(e);r=Im.getBestVersionForData(t,n)}i=Pm.fromString(e,r||40)}}let a=Im.getBestVersionForData(i,n);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<a)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+a+".\n")}else t=a;let o=Lm(t,n,i),s=ym.getSymbolSize(t),l=new $m(s);return function(e,t){let n=e.size,r=Em.getPositions(t);for(let i=0;i<r.length;i++){let t=r[i][0],a=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;
1i<=7;i++)a+i<=-1||n<=a+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,a+i,!0,!0):e.set(t+r,a+i,!1,!0))}}(l,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(l),function(e,t){let n=Sm.getPositions(t);for(let r=0;r<n.length;r++){let t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}(l,t),Mm(l,n,0),t>=7&&function(e,t){let n,r,i,a=e.size,o=Im.getEncodedBits(t);for(let s=0;s<18;s++)n=Math.floor(s/3),r=s%3+a-8-3,i=1===(o>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(l,t),function(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=1===(t[o]>>>a&1)),e.set(i,s-n,r),a--,-1===a&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(l,o),isNaN(r)&&(r=xm.getBestMask(l,Mm.bind(null,l,n))),xm.applyMask(r,l),Mm(l,n,r),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}yg.create=function(e,t){if("undefined"==typeof e||""===e)throw new Error("No input text");let n,r,i=_m.M;return"undefined"!=typeof t&&(i=_m.from(t.errorCorrectionLevel,_m.M),n=Im.from(t.version),r=xm.from(t.maskPattern),t.toSJISFunc&&ym.setToSJISFunction(t.toSJISFunc)),Dm(e,n,i,r)};var Rm={},Um={};!function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});let n="undefined"==typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+2*n.margin)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+2*r.margin)*o),l=r.margin*o,c=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=r.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){d=c[a[Math.floor((e-l)/o)*i+Math.floor((n-l)/o)]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}(Um),function(e){let t=Um;e.render=function(e,n,r){let i=r,a=n;"undefined"==typeof i&&(!n||!n.getContext)&&(i=n,n=void 0),n||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=t.getOptions(i);let o=t.getImageWidth(e.modules.size,i),s=a.getContext("2d"),l=s.createImageData(o,o);return t.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,o),s.putImageData(l,0,0),a},e.renderToDataURL=function(t,n,r){let i=r;"undefined"==typeof i&&(!n||!n.getContext)&&(i=n,n=void 0),i||(i={});let a=e.render(t,n,i),o=i.type||"image/png",s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}}(Rm);var Nm={},Fm=Um;function Bm(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Vm(e,t,n){let r=e+t;return"undefined"!=typeof n&&(r+=" "+n),r}Nm.render=function(e,t,n){let r=Fm.getOptions(t),i=e.modules.size,a=e.modules.data,o=i+2*r.margin,s=r.color.light.a?"<path "+Bm(r.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",l="<path "+Bm(r.color.dark,"stroke")+' d="'+function(e,t,n){let r="",i=0,a=!1,o=0;for(let s=0;s<e.length;s++){let l=Math.floor(s%t),c=Math.floor(s/t);!l&&!a&&(a=!0),e[s]?(o++,s>0&&l>
10&&e[s-1]||(r+=a?Vm("M",l+n,.5+c+n):Vm("m",i,0),i=0,a=!1),l+1<t&&e[s+1]||(r+=Vm("h",o),o=0)):i++}return r}(a,i,r.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+c+' shape-rendering="crispEdges">'+s+l+"</svg>\n";return"function"==typeof n&&n(null,u),u};var zm=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},jm=yg,Hm=Rm,qm=Nm;function Km(e,t,n,r,i){let a=[].slice.call(arguments,1),o=a.length,s="function"==typeof a[o-1];if(!s&&!zm())throw new Error("Callback required as last argument");if(!s){if(o<1)throw new Error("Too few arguments provided");return 1===o?(n=t,t=r=void 0):2===o&&!t.getContext&&(r=n,n=t,t=void 0),new Promise((function(i,a){try{let a=jm.create(n,r);i(e(a,t,r))}catch(o){a(o)}}))}if(o<2)throw new Error("Too few arguments provided");2===o?(i=n,n=t,t=r=void 0):3===o&&(t.getContext&&"undefined"==typeof i?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0));try{let a=jm.create(n,r);i(null,e(a,t,r))}catch(l){i(l)}}var Gm=bg.create=jm.create,Wm=bg.toCanvas=Km.bind(null,Hm.render),Zm=bg.toDataURL=Km.bind(null,Hm.renderToDataURL),Ym=bg.toString=Km.bind(null,(function(e,t,n){return qm.render(e,n)})),Xm=function(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}({__proto__:null,create:Gm,default:bg,toCanvas:Wm,toDataURL:Zm,toString:Ym},[bg]);function Jm(){return(0,i.jsxs)("p",{className:"disclaimer",children:["This site is protected by hCaptcha and its"," ",(0,i.jsx)("a",{href:"https://www.hcaptcha.com/privacy",target:"_blank",rel:"noreferrer",className:"link",children:"Privacy Policy"})," ","and"," ",(0,i.jsx)("a",{href:"https://www.hcaptcha.com/terms",target:"_blank",rel:"noreferrer",className:"link",children:"Terms of Service"})," ","apply."]})}!function(){if("undefined"==typeof document)return;let e=document.createElement("style");e.textContent=".disclaimer{font-size:14px;line-height:20px;color:var(--color-text-bold-default);margin:16px 0 0}.spark .disclaimer{font-weight:500}",document.head.appendChild(e)}();var Qm="app_webview";function ev(e,t){return(null==e?void 0:e.gotoUrl)||t||(null==e?void 0:e.fallbackUrl)}function tv(){return"true"===new URL(window.location.href).searchParams.get(Qm)}function nv({journeyName:e,realmPath:t="online",clientId:n="loginWidgetPublicClient",redirectUrls:a,authPath:o="fr-callback.html",baseUrl:s,onLoginSuccess:l,onJourneyEvent:c,noDisclaimer:u,isLoginPage:d}){let h=(0,r.useRef)(null),[p,f]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{let r=s||window.location.origin;ig().set({forgerock:{serverConfig:{baseUrl:new URL("openam",r).toString(),timeout:6e4},realmPath:t,redirectUri:new URL(o,r).toString(),tree:"ULALogin",clientId:n,scope:"openid profile",tokenStore:"sessionStorage"},journeys:{register:{journey:"ULARegister",match:["#/service/Registration"]},forgotUsername:{journey:"ULAForgotUsername",match:["#/service/ForgotUsername"]},forgotPassword:{journey:"ULAForgotPassword",match:["#/service/ForgotPassword"]}},content:{userName:"Email",nextButton:"Continue",backToDefault:"Return to sign in",backToLogin:"Return to sign in",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authenticator app.",nameYourDevice:"Name your passkey",optionallyNameDevice:"Passkey name"},style:{labels:"stacked"}});let i=ag(),u=og.tokens(),h=og.info(),p=new URL(window.location.href);if("true"===p.searchParams.get("logout"))og.logout().then((()=>window.location.replace(ev(a))));else{let t=function(e){let t=e.get("code"),n=e.get("state");return!!(e.get("form_post_entry")||t&&n)}(p.searchParams)?{journey:e,resumeUrl:p.toString()}:{journey:e};i.start(t)}let g=!1,m="",v=i.subscribe((e=>{var t,n;c&&c(e),e.user.successful&&(m=null!=(n=null==(t=e.journey.response)?void 0:t.successUrl)?n:""),f(!!e.journey.recaptchaAction)})),w=u.subscribe((e=>{e.completed&&e.successful&&g&&h.get()})),b=h.subscribe((e=>{var t,i;if(e.successful){let o=JSON.parse(null!=(t=sessionStorage.getItem(`FR-SDK-${n}`))?t:""),s={sparkID:null==(i=e.response)?void 0:i.sub,accessToken:null==o?void 0:o.accessToken,refreshToken:null==o?void 0:o.refreshToken};d&&tv()?async function(e,t){let n=new URL("/jwe",t);return n.searchParams.set(Qm,"true"),fetch(n,{method:"POST",body:JSON.stringify(e)}).then((e=>e.json()))}(s,r).then((async e=>{l&&await l({profileId:s.sparkID});let t=new URL(e.redirect_url);t.searchParams.append("cookie_name",e.cookie_name),t.searchParams.append("cookie_value",e.cookie_value),window.location.replace(t)})):async function(e,t){let n=new URL("/jwe",t);return fetch(n,{method:"POST",body:JSON.stringify(e)})}(s,r).then((async()=>{l&&await l({profileId:s.sparkID}),a&&(b(),window.location.replace(ev(a,m)))}))}else e.completed&&e.error&&(g=!0,u.get({forceRenew:!0}))}
1));return()=>{v(),b(),w()}}),[a,e,s,n,o,t]),(0,r.useEffect)((()=>{d&&tv()&&function(){var e;sessionStorage.removeItem("FR-SDK-loginWidgetPublicClient");let t=null==(e=document.cookie.split("; ").find((e=>e.startsWith("GAM"))))?void 0:e.split("=")[0];t&&(document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.spark.co.nz; Secure;`)}();let e=new lg({target:h.current,props:{type:"inline"}});return()=>{e.$destroy()}}),[h]),(0,i.jsxs)("div",{className:"widget",children:[(0,i.jsx)("div",{ref:h}),!u&&p?(0,i.jsx)(Jm,{}):null]})}function rv(e){window.digitalData.push(e)}function iv({journey:e,user:t},n,r){var i,a,o,s,l,c,u,d;let p="skinny"===n||"skinnyjump"===n;if(t.completed){let{sub:e,loginOption:n}=null!=(i=t.response)?i:{};!function(e,t){rv({event:"login.loginAction",w3cddl:{page:{pageInfo:{brand:t?"Skinny":"Spark",pageName:"login.loginState",pageID:window.location.pathname,destinationURL:`${window.location.origin}${window.location.pathname}`,referringURL:window.location.origin,pageUrlWithQuery:window.location.href,breadcrumbs:[],language:""},category:{primaryCategory:t?"skinny-ecare":"myspark",pageType:"Landing Page"},attributes:{pageHost:window.location.hostname,pageTitle:document.title,pageLevel:0,isVisibleInNav:!1,subCategories:["login"]}},user:[{profile:{profileID:e.profileId,attributes:{loginOption:e.loginOption||(t?"Skinny":"Spark"),authState:e.isSuccess?"Authenticated":"Unknown",multiFactorAuthType:e.isSuccess?"email":"None",rememberme:e.isSuccess?"yes":"Unknown"}}}],event:[{eventInfo:{eventName:(t?"Skinny-ecare":"MySpark")+" Login",eventAction:"login.loginAction"},attributes:{isSuccess:e.isSuccess,errorMessage:e.errorMessage,internalErrorCode:"",internalErrorMessage:""}}]}})}({profileId:e,loginOption:n,isSuccess:t.successful,errorMessage:null==(a=t.error)?void 0:a.message},p)}let f=r(e,p);if(!f)return;let g=null==(o=t.response)?void 0:o.sub,m=e.recaptchaAction,v=null==(s=e.error)?void 0:s.message,{componentInfo:w,profileInfo:b,eventInfo:y,eventAttributes:_,pageLoadInfo:k}=f;return w?rv({event:"component.view",w3cddl:{event:[{eventInfo:{eventName:"Component View",eventAction:"component.view"},attributes:{isSuccess:null!=(l=null==_?void 0:_.isSuccess)?l:!e.error,errorMessage:null!=(c=null==_?void 0:_.errorMessage)?c:v,internalErrorCode:"",internalErrorMessage:""}}],component:[{componentInfo:w,category:{primaryCategory:p?"skinny-ecare":"myspark"},attributes:{stateName:m}}],user:[{profileInfo:h({profileID:g},b)}]}}):y?rv({event:y.eventAction,w3cddl:{event:[{eventInfo:h({},y),attributes:{isSuccess:null!=(u=null==_?void 0:_.isSuccess)?u:!e.error,errorMessage:null!=(d=null==_?void 0:_.errorMessage)?d:v,internalErrorCode:"",internalErrorMessage:"",mfaType:null==_?void 0:_.mfaType}}],user:[{profileInfo:h({profileID:g},b)}]}}):k?rv({event:"page.load",w3cddl:{page:{pageInfo:{brand:p?"Skinny":"Spark",pageName:k.pageName,pageID:window.location.pathname,destinationURL:`${window.location.origin}${window.location.pathname}`,referringURL:window.location.origin,pageURLwithQuery:window.location.href,breadcrumbs:[],language:document.documentElement.lang},category:{primaryCategory:p?"skinny-ecare":"myspark",pageType:"Landing Page"},attributes:{isVisibleInNav:!1,pageHost:window.location.hostname,pageTitle:document.title,pageLevel:"0",subCategories:k.subCategories}},product:[]}}):void 0}function av(e,t){var n,r,i,a,o,s,l,c,u,d,h,p,f,g,m,v,w,b,y;let _=null==(n=e.step)?void 0:n.payload.callbacks;if(null!=_&&_.length){if("Email"===_[0].output[0].value&&"Choose a password"===(null==(r=_[1])?void 0:r.output[0].value)){let e=null==(i=_[0].input)?void 0:i[0].value;return e?{componentInfo:{componentID:"register.EmailAndPassword",componentName:(t?"Skinny":"MySpark")+" Registration Email And Password"},profileInfo:{email:e}}:{pageLoadInfo:{pageName:"register.enterEmailAndPasswordState",subCategories:["register"]}}}if("First Name"===_[0].output[0].value&&null!=(a=_[0].input)&&a[0].value&&"Last Name"===(null==(o=_[1])?void 0:o.output[0].value)&&null!=(l=null==(s=_[1])?void 0:s.input)&&l[0].value)return{componentInfo:{componentID:"register.FirstNameLastName",componentName:(t?"Skinny":"MySpark")+" Registration First Name Last Name"},profileInfo:{firstName:_[0].input[0].value,lastName:_[1].input[0].value}};if("Enter verification code"===(null==(c=_[1])?void 0:c.output[0].value)&&""===(null==(d=null==(u=_[1])?void 0:u.input)?void 0:d[0].value))return{componentInfo:{componentID:"auth.verificationCode",componentName:(t?"Skinny":"MySpark")+" Verification Code"}};
1if(null!=(h=_[1])&&h.output.find((e=>"options"===e.name&&Array.isArray(e.value)&&e.value.includes("Retry"))))return{componentInfo:{componentID:"auth.resendVerificationCode",componentName:(t?"Skinny":"MySpark")+" Resend Verification Code"}};if(!e.loading&&"User Name"===_[0].output[0].value){if("Password"===(null==(p=_[1])?void 0:p.output[0].value))return{componentInfo:{componentID:"login.emailAndPassword",componentName:(t?"Skinny":"MySpark")+" Login Email And Password"}};let e=null==(g=null==(f=_[0].input)?void 0:f.find((e=>"IDToken1"===e.name)))?void 0:g.value;return e?{componentInfo:{componentID:"resetPassword.email",componentName:(t?"Skinny":"MySpark")+" Reset Password Email"},profileInfo:{email:e}}:{componentInfo:{componentID:"resetPassword.initiateResetPassword",componentName:(t?"Skinny":"MySpark")+" Reset Password Initiate"}}}if("New password"===_[0].output[0].value&&""===(null==(m=_[0].input)?void 0:m[0].value))return{componentInfo:{componentID:"resetPassword.password",componentName:(t?"Skinny":"MySpark")+" Reset Password Enter Password"}};if("You've successfully changed your password."===_[0].output[0].value)return{eventInfo:{eventName:"Register Set Password Success",eventAction:"register.setPasswordAction"}};if("Your account has been successfully created."===_[0].output[0].value)return{eventInfo:{eventName:(t?"Skinny-ecare":"MySpark")+" Registration",eventAction:"register.registerAction"}};if("We couldn't sign you in with your passkey"===(null==(v=e.step)?void 0:v.payload.header))return{eventInfo:{eventName:(t?"Skinny-ecare":"MySpark")+" Login",eventAction:"login.loginAction"},eventAttributes:{isSuccess:!1,errorMessage:null==(w=e.step)?void 0:w.payload.header},profileInfo:{attributes:{loginOption:"Passkey"}}};if(!e.loading&&"Verification method"===_[0].output[0].value&&"choices"===(null==(b=_[0].output[1])?void 0:b.name))return{componentInfo:{componentID:"mfa.selectType",componentName:(t?"Skinny":"MySpark")+" Select MFA Type"}};if(!e.loading&&"Choose a sign in option"===_[0].output[0].value&&0===(null==(y=_[0].input)?void 0:y[0].value))return e.error?{eventInfo:{eventName:(t?"Skinny-ecare":"MySpark")+" Login",eventAction:"login.loginAction"}}:{pageLoadInfo:{pageName:"login.loginState",subCategories:["login"]}}}}function ov(e){var t=e,{brand:n="spark",isLoginPage:a,onLoginSuccess:o,onJourneyEvent:s}=t,l=f(t,["brand","isLoginPage","onLoginSuccess","onJourneyEvent"]);let c=(0,r.useCallback)((async e=>o?o(e):await new Promise((e=>setTimeout(e,1e3)))),[]),u=(0,r.useCallback)((e=>{if(iv(e,n,av),s)return s(e)}),[]);return(0,i.jsx)(nv,p(h({},l),{onLoginSuccess:c,onJourneyEvent:u,isLoginPage:a}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.